Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.

Slides:



Advertisements
Similar presentations
Some important properties Lectures of Prof. Doron Peled, Bar Ilan University.
Advertisements

PROOF BY CONTRADICTION
Artificial Intelligence Chapter 13 The Propositional Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Possible World Semantics for Modal Logic
1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
Logic.
Logic Concepts Lecture Module 11.
Knowledge Representation Methods
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
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.
Knowledge Representation I (Propositional Logic) CSE 473.
Let remember from the previous lesson what is Knowledge representation
CS 4700: Foundations of Artificial Intelligence
EE1J2 – Discrete Maths Lecture 5 Analysis of arguments (continued) More example proofs Formalisation of arguments in natural language Proof by contradiction.
Logical and Rule-Based Reasoning Part I. Logical Models and Reasoning Big Question: Do people think logically?
I NTRO TO L OGIC Dr Shlomo Hershkop March
Proof Systems KB |- Q iff there is a sequence of wffs D1,..., Dn such that Dn is Q and for each Di in the sequence: a) either Di is in KB or b) Di can.
First Order Logic Chapter 7. PL is a Weak Representational Language §Propositional Logic (PL) is not a very expressive language because: §Hard to identify.
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
Knowledge Representation Use of logic. Artificial agents need Knowledge and reasoning power Can combine GK with current percepts Build up KB incrementally.
Pattern-directed inference systems
Logical Agents Logic Propositional Logic Summary
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.
1 CMSC 471 Fall 2002 Class #10/12–Wednesday, October 2 / Wednesday, October 9.
Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Jim Little UBC CS 322 – CSP October 20, 2014.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
LDK R Logics for Data and Knowledge Representation PL of Classes.
October 17, 2012Introduction to Artificial Intelligence Lecture 11: Knowledge Representation and Reasoning I 1Semantics In propositional logic, we associate.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
CS6133 Software Specification and Verification
CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 1 Lecture 2 CS 1813 – Discrete Mathematics Proofs Propositions and Calculuses.
1 Propositional Logic Introduction. 2 What is propositional logic? Propositional Logic is concerned with propositions and their interrelationships. 
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
11 Artificial Intelligence CS 165A Thursday, October 25, 2007  Knowledge and reasoning (Ch 7) Propositional logic 1.
CS2351 Artificial Intelligence Bhaskar.V Class Notes on Knowledge Representation - Logical Agents.
Chapter 7. Propositional and Predicate Logic Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
LDK R Logics for Data and Knowledge Representation Propositional Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
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.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
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
1 Chapter 2.1 Chapter 2.2 Chapter 2.3 Chapter 2.4 All images are copyrighted to their respective copyright holders and reproduced here for academic purposes.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
Artificial Intelligence Logical Agents Chapter 7.
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 04 : Logic.
Propositional Logic (a.k.a. Sentential Logic)
Chapter 7. Propositional and Predicate Logic
Propositional Logic Russell and Norvig: Chapter 6 Chapter 7, Sections 7.1—7.4 CS121 – Winter 2003.
Knowledge Representation and Reasoning
The Propositional Calculus
ARTIFICIAL INTELLIGENCE
Semantics In propositional logic, we associate atoms with propositions about the world. We specify the semantics of our logic, giving it a “meaning”. Such.
Information Technology Department
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Artificial Intelligence
Back to “Serious” Topics…
Logics for Data and Knowledge Representation
Chapter 7. Propositional and Predicate Logic
Knowledge Representation I (Propositional Logic)
TRUTH TABLES.
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
ece 720 intelligent web: ontology and beyond
Presentation transcript:

Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof (Inference) System

Example of k-rep in prop calc §R : “It is raining” §B : “Take the bus to class” §W : “Walk to class” §Some things to tell our agent l R  B (“If it is raining, (then) take the bus to class”) l  R  W (“If it is not raining, (then) walk to class”) §Ideally, we would like our agent to sense that it is raining & then decide to take the bus

Alphabet Non-Logical Symbols (meaning given by interpretation) §Propositions l P, Q, R,… atomic statements (facts) about the world R : it’s-raining-now needn’t be a single letter Logical Symbols (fixed meaning)

Alphabet Logical Symbols §Connectives: not (  ) and (  ) or (  ) implies (  ) equivalent (  ) §Punctuation Symbols: (, ) §Truth symbols: TRUE, FALSE

Well-formed formulae (wffs) §Sentences l just like in a programming language, there are rules (syntax) for legally creating compound statements l remember: we’re always stating a truth about the world, hence every wff is something that has a Boolean value (it is either a true or a false statement about the world)

Syntax rules §Propositions (P, Q, R, …) are wffs §Truth symbols (TRUE, FALSE) are wffs §If A is a wff, so is  A §If A and B are wffs, so are l A  B l A  B l A  B l A  B There are no other wffs. §Language: set of all wffs

Are these WFFs? §P Q R §(P  Q)  (R  S) §P   (Q  R)

Semantics §KB |= Q KB - Set of wffs Q- a wff |= Entailment §Compositional §Two-Valued

What is an interpretation? §An interpretation gives meaning to the non- logical symbols of the language. §An assignment of facts to atomic wffs l a fact is taken to be either true or false about the world l thus, by providing an interpretation, we also provide the truth value of each of the atoms example P : it-is-raining-here-now since this is either a true or false statement about the world, the value of P is either true or false a function that maps atomic formulas to truth values

Truth tables Connectives Semantics

How to evaluate a wff §((P  U)  R)  (S  V) §First, we need an interpretation l P : T; U : F; R : T; S : F; V : T §Then using this interpretation, evaluate formula according to the fixed meanings of the connectives l P  U : T l (P  U)  R : T l S  V : F l whole formula : F

Satisfiability and Models §An interpretation I satisfies a wff iff I assigns the wff the value T § An interpretation I satisfies a set of S of wffs iff I satisfies every wff in S. §An interpretation that satisfies a (set of) wff is said to be a model of it. §A (set of) wff is satisfiable iff there exists some interpretation that satisfies it

§Examples: l P is satisfiable simply let P be true l P   P is unsatisfiable if P is false, the formula is false if P is true,  P is false, the formula is false l P  Q is satisfiable three ways: P is true, Q is true; etc. l A wff that is unsatisfiable is called a contradiction l for example, a model for {A  B,  B  C} is A : true, B : true, C : true note: there may be more than one model for a (set of) wff

KB |= Q iff for every interpretation I, If I satisfies KB then I satisfies Q. That is, if every model of KB is also a model of Q. For example: A  B, A |= B Entailment (Logical Consequence)

Validity §A formula G is valid if it is true for every interpretation §P   P is valid if P is true, then the formula is true if P is false, then ~P is true and the formula is true l (P   Q)  (  P  Q) isn’t valid when P is true & Q is true, the formula isn’t true in order to not be valid, there only need exist one counter-example l also called a tautology

Some important Theorems a) KB |= Q iff KB U {  Q} is unsatisfiable b) KB, A |= B iff KB |= (A  B) c) Monotonicity: if KB  KB’ then {Q | KB |= Q}  {Q | KB’ |= Q}