ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.

Slides:



Advertisements
Similar presentations
Artificial Intelligence Chapter 13 The Propositional Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Advertisements

Logic Concepts Lecture Module 11.
CS128 – Discrete Mathematics for Computer Science
Logic in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language.
1 Problem Solving CS 331 Dr M M Awais Representational Methods Formal Methods Propositional Logic Predicate Logic.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
Propositional Logic. Negation Given a proposition p, negation of p is the ‘not’ of p.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
From Chapter 4 Formal Specification using Z David Lightfoot
1 Inference Rules and Proofs Z: Inference Rules and Proofs.
CS 4700: Foundations of Artificial Intelligence
CSE115/ENGR160 Discrete Mathematics 01/17/12 Ming-Hsuan Yang UC Merced 1.
I NTRO TO L OGIC Dr Shlomo Hershkop March
Discrete Mathematics and Its Applications
Pattern-directed inference systems
Logical Agents Logic Propositional Logic Summary
ARTIFICIAL INTELLIGENCE Lecture 3 Predicate Calculus.
Of 33 lecture 12: propositional logic – part I. of 33 propositions and connectives … two-valued logic – every sentence is either true or false some sentences.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
Lecture 4. CONDITIONAL STATEMENTS: Consider the statement: "If you earn an A in Math, then I'll buy you a computer." This statement is made up of two.
Lecture Propositional Equivalences. Compound Propositions Compound propositions are made by combining existing propositions using logical operators.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 1.
SSK3003 DISCRETE STRUCTURES
CS 381 DISCRETE STRUCTURES Gongjun Yan Aug 25, November 2015Introduction & Propositional Logic 1.
LECTURE LECTURE Propositional Logic Syntax 1 Source: MIT OpenCourseWare.
1 Introduction to Abstract Mathematics Expressions (Propositional formulas or forms) Instructor: Hayk Melikya
Lecture 9 Conditional Statements CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
CS6133 Software Specification and Verification
Chapter 1: The Foundations: Logic and Proofs
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Chapter 1: The Foundations: Logic and Proofs
Conditional Statements – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Conditional Statements Reading: Kolman, Section 2.2.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 11 Jim Martin.
CS2351 Artificial Intelligence Bhaskar.V Class Notes on Knowledge Representation - Logical Agents.
Albert Gatt LIN3021 Formal Semantics Lecture 3. Aims This lecture is divided into two parts: 1. We make our first attempts at formalising the notion of.
Part-2: Propositional Logic By Dr. Syed Noman Hasany.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
LECTURE 1. Disrete mathematics and its application by rosen 7 th edition THE FOUNDATIONS: LOGIC AND PROOFS 1.1 PROPOSITIONAL LOGIC.
1 Section 6.2 Propositional Calculus Propositional calculus is the language of propositions (statements that are true or false). We represent propositions.
Outline Logic Propositional Logic Well formed formula Truth table
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 01: Boolean Logic Sections 1.1 and 1.2 Jarek Rossignac.
1 Propositional Proofs 1. Problem 2 Deduction In deduction, the conclusion is true whenever the premises are true.  Premise: p Conclusion: (p ∨ q) 
Part-2: Propositional Logic By Dr. Syed Noman Hasany.
CT214 – Logical Foundations of Computing Darren Doherty Rm. 311 Dept. of Information Technology NUI Galway
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
Chapter 1. Chapter Summary  Propositional Logic  The Language of Propositions (1.1)  Logical Equivalences (1.3)  Predicate Logic  The Language of.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 04 : Logic.
CS-7081 Application - 1. CS-7082 Example - 2 CS-7083 Simplifying a Statement – 3.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Simple Logic.
2. The Logic of Compound Statements Summary
Advanced Algorithms Analysis and Design
CSNB 143 Discrete Mathematical Structures
Lecture 1 – Formal Logic.
Knowledge Representation and Reasoning
The Propositional Calculus
Artificial Intelligence
Information Technology Department
Chapter 1 The Foundations: Logic and Proof, Sets, and Functions
Logics for Data and Knowledge Representation
Back to “Serious” Topics…
Discrete Mathematics and Its Applications Kenneth H
MAT 3100 Introduction to Proof
CSNB234 ARTIFICIAL INTELLIGENCE
TRUTH TABLES.
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
ece 720 intelligent web: ontology and beyond
Presentation transcript:

ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus

Contents Introduction Propositional Logic Propositional Calculus Syntax – Symbols-Sentences – Well Formed Formula Prepositional Calculus Semantics Methods of Proof Pros and Cons of Propositional Calculus

Logic and Language Language is defined by: – Syntax: defines the sentences in the language – Semantics: define the "meaning" of sentences i.e. define truth of a sentence in the domain of discourse. Logic: is a formal language for representing information such that conclusions can be drawn.

PROPOSITIONAL CALCULUS SYNTAX SYMBOLS The symbols of propositional calculus are the Propositional Symbols: P,Q, R,S,T,... Truth Symbols: true, false Connectives: , , , ,  – Propositional symbols denote propositions, or statements about the world that may be either true or false, such as – “Car is red" – “Weather is bad." Propositions are denoted by uppercase letters near the end of the English alphabet. Sentences in the propositional calculus are formed from these atomic symbols according to the following rules:

SENTENCES Every propositional symbol and truth symbol is a sentence. – For example: true, P, Q, and R are sentences. The negation of a sentence is a sentence. – For example:  P and  false are sentences. The conjunction (and), of two sentences is a sentence. – For example: P   P is a sentence. The disjunction (or,) of two sentences is a sentence. – For example: P   P is a sentence. The implication of one sentence for another is a sentence. – For example: P  Q is a sentence. The equivalence of two sentences is a sentence. – For example: P  Q = R is a sentence.

SENTENCES A Legal sentence is also called well-formed formula or WFF. In expressions of the form P  Q, P and Q are called the conjuncts. In P v Q, P and Q are referred to as disjuncts. In an implication, P  Q, P is the premise or antecedent and Q, the conclusion or consequent.

Well-Formed Sentence Symbols ( ) and [ ] are used to group symbols into sub expressions and so control their order of evaluation and meaning. For example, (P  Q) = R is quite different from P  (Q = R). An expression is a sentence, or well-formed formula, of the propositional calculus if and only if it can be formed of legal symbols through some sequence of these rules. For example, ((P  Q) => R) =  P   Q  R is a well-formed sentence in the propositional calculus. Why? 

ROPOSITIONAL CALCULUS SEMANTICS An interpretation is a mapping from the propositional symbols into the set {T, F}. Each possible mapping of truth value onto propositions corresponds to a possible world of interpretation. For example, if P denotes the proposition "it is raining" and Q denotes "I am at work," then the set of propositions {P, Q} has four different functional mappings into the truth values {T, F}. These mappings correspond to four different interpretations. An interpretation of a set of propositions is the assignment of a truth value, either T or F, to each propositional symbol. The symbol true is always assigned T, and the symbol false is assigned F.

ROPOSITIONAL CALCULUS SEMANTICS The interpretation or truth value for sentences is determined by: The truth assignment of negation,  P, where P is any propositional symbol, is F if the assignment to P is T, and T if the assignment to P is F. The truth assignment of conjunction, , is T only when both conjuncts have truth value T; otherwise it is F. The truth assignment of disjunction, , is F only when both disjuncts have truth value F; otherwise it is T. The truth assignment of implication, , is F only when the premise or symbol before the implication is T and the truth value of the consequent or symbol after the implication is F; otherwise it is T. The truth assignment of equivalence, , is T only when both expressions have the same truth assignment for all possible interpretations; otherwise it is F.

Equivalence Laws Idempotency Law: P  P= P, P  P= P Involution Law:  (  P)  P commutative law:(P  Q)  (Q  P) and (P  Q)  (Q  P) associative law: ((P  Q)  R)  (P  (Q  R)) ((P  Q)  R)  (P  (Q  R)) distributive law: P  (Q  R)  (P  Q)  (P  R) P  (Q  R) = (P  Q)  (P  R)

Equivalence Laws de Morgan's law:  (P v Q)  (  P   Q)  (P  Q)  (  P  Q) the contrapositive law: (P  Q)  (  Q   P) Conditional Elimination: (P  Q)  (  P  Q) Bidirectional Elimination (P  Q)  (P  Q)  (Q  P)

Examples Prove the Conditional Elimination law: (P  Q)  (  P  Q) PQ  P P  P  QP  Q  P  Q TTFTTT TFFFFT FTTTTT FFTTTT

Methods of proof Truth table enumeration Check the truth value of statement for all interpretations Application of inference rules Derive new sentences which are logical consequences of s 1,s 2,…,s n using only syntactic operations

Pros and cons of propositional calculus Ref[AIMA] Propositional logic is declarative Propositional logic allows partial/disjunctive/negated information – (unlike most data structures and databases) Propositional logic is compositional: – meaning of B  P is derived from meaning of B and of P Meaning in propositional logic is context-independent – (unlike natural language, where meaning depends on context)  Propositional logic has very limited expressive power – (unlike natural language) – E.g., cannot say “There is free place in adjacent squares“ except by writing one sentence for each square