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.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

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.
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
Deduction In addition to being able to represent facts, or real- world statements, as formulas, we want to be able to manipulate facts, e.g., derive new.
Logic Concepts Lecture Module 11.
Knowledge Representation Methods
CS128 – Discrete Mathematics for Computer Science
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
TR1413: Discrete Mathematics For Computer Science Lecture 3: Formal approach to propositional logic.
Knowledge Representation I (Propositional Logic) CSE 473.
From Chapter 4 Formal Specification using Z David Lightfoot
Logical Agents Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2005.
Discussion #9 1/9 Discussion #9 Tautologies and Contradictions.
CSM6120 Introduction to Intelligent Systems Propositional and Predicate Logic.
Predicates and Quantifiers
Artificial Intelligence Reasoning. Reasoning is the process of deriving logical conclusions from given facts. Durkin defines reasoning as ‘the process.
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
I NTRO TO L OGIC Dr Shlomo Hershkop March
Intro to Discrete Structures
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
 Predicate: A sentence that contains a finite number of variables and becomes a statement when values are substituted for the variables. ◦ Domain: the.
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
1 CMSC 471 Fall 2002 Class #10/12–Wednesday, October 2 / Wednesday, October 9.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
2.3Logical Implication: Rules of Inference From the notion of a valid argument, we begin a formal study of what we shall mean by an argument and when such.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 1.
SSK3003 DISCRETE STRUCTURES
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Propositional Logic. Propositions Any statement that is either True (T) or False (F) is a proposition Propositional variables: a variable that can assume.
Propositional Logic. Topics Propositional calculus Deductions and prove Logical equivalence Tautologies Satisfiability.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.
CS6133 Software Specification and Verification
Predicate Calculus. Topics Predicate calculus First-order predicate calculus Properties of logical systems – soundness, – completeness, – monotonicity,
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
Artificial Intelligence “Introduction to Formal Logic” Jennifer J. Burg Department of Mathematics and Computer Science.
11 Artificial Intelligence CS 165A Thursday, October 25, 2007  Knowledge and reasoning (Ch 7) Propositional logic 1.
Chapter 7. Propositional and Predicate Logic Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
1 Section 6.2 Propositional Calculus Propositional calculus is the language of propositions (statements that are true or false). We represent propositions.
1 Lecture 3 The Languages of K, T, B and S4. 2 Last time we extended the language PC to the language S5 by adding two new symbols ‘□’ (for ‘It is necessary.
Daniel Kroening and Ofer Strichman 1 Decision Procedures An Algorithmic Point of View Basic Concepts and Background.
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.
Metalogic Soundness and Completeness. Two Notions of Logical Consequence Validity: If the premises are true, then the conclusion must be true. Provability:
Symbolic Logic and Rules of Inference. whatislogic.php If Tom is a philosopher, then Tom is poor. Tom is a philosopher.
CT214 – Logical Foundations of Computing Darren Doherty Rm. 311 Dept. of Information Technology NUI Galway
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
Chapter 7. Propositional and Predicate Logic
2. The Logic of Compound Statements Summary
Lecture 2 The Language of S5
Knowledge Representation and Reasoning
Propositional and Predicate Logic
CS201: Data Structures and Discrete Mathematics I
CS201: Data Structures and Discrete Mathematics I
Back to “Serious” Topics…
Computer Security: Art and Science, 2nd Edition
Chapter 7. Propositional and Predicate Logic
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
CS201: Data Structures and Discrete Mathematics I
CS201: Data Structures and Discrete Mathematics I
Presentation transcript:

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 Truth Tables l Complex Truth Tables l Tautology l Equivalence l Propositional Logic

3 Chapter 7 Contents (2) l Deduction l Predicate Calculus Quantifiers  and  l Properties of logical systems l Abduction and inductive reasoning l Modal logic

4 What is Logic? l Reasoning about the validity of arguments. l An argument is valid if its conclusions follow logically from its premises – even if the argument doesn’t actually reflect the real world: nAll lemons are blue nMary is a lemon nTherefore, Mary is blue.

5 Logical Operators l AndΛ l OrV l Not ¬ l Implies → (if… then…) l Iff ↔ (if and only if)

6 Translating between English and Logic l Facts and rules need to be translated into logical notation. l For example: nIt is Raining and it is Thursday: R Λ T nR means “It is Raining”, T means “it is Thursday”.

7 Translating between English and Logic l More complex sentences need predicates. E.g.: nIt is raining in New York: nR(N) nCould also be written N(R), or even just R. l It is important to select the correct level of detail for the concepts you want to reason about.

8 Truth Tables l Tables that show truth values for all possible inputs to a logical operator. l For example: l A truth table shows the semantics of a logical operator.

9 Complex Truth Tables l We can produce truth tables for complex logical expressions, which show the overall value of the expression for all possible combinations of variables:

10 Tautology The expression A v ¬A is a tautology. l This means it is always true, regardless of the value of A. A is a tautology: this is written ╞ A l A tautology is true under any interpretation. l An expression which is false under any interpretation is contradictory.

11 Equivalence l Two expressions are equivalent if they always have the same logical value under any interpretation: A Λ B  B Λ A l Equivalences can be proven by examining truth tables.

12 Some Useful Equivalences l A v A  A l A Λ A  A l A Λ (B Λ C)  (A Λ B) Λ C l A v (B v C)  (A v B) v C l A Λ (B v C)  (A Λ B) v (A Λ C) l A Λ (A v B)  A l A v (A Λ B)  A l A Λ true  AA Λ false  false l A v true  trueA v false  A

13 Propositional Logic l Propsitional logic is a logical system. l It deals with propositions. l Propositional Calculus is the language we use to reason about propositional logic. l A sentence in propositional logic is called a well-formed formula (wff).

14 Propositional Logic l The following are wff’s: l P, Q, R… l true, false l (A) l ¬A l A Λ B l A v B l A → B l A ↔ B

15 Deduction l The process of deriving a conclusion from a set of assumptions. l Use a set of rules, such as: AA → B B l (Modus Ponens) l If we deduce a conclusion C from a set of assumptions, we write: l {A 1, A 2, …, A n } ├ C

16 Deduction - Example

17 Predicate Calculus l Predicate Calculus extends the syntax of propositional calculus with predicates and quantifiers: nP(X) – P is a predicate. l First Order Predicate Calculus (FOPC) allows predicates to apply to objects or terms, but not functions or predicates.

18 Quantifiers  and  l  - For all: n xP(x) is read “For all x’es, P (x) is true”. l  - There Exists: n x P(x) is read “there exists an x such that P(x) is true”. l Relationship between the quantifiers: n xP(x)  ¬(x)¬P(x) n“If There exists an x for which P holds, then it is not true that for all x P does not hold”.

19 Properties of Logical Systems l Soundness: Is every theorem valid? l Completeness: Is every tautology a theorem? l Decidability: Does an algorithm exist that will determine if a wff is valid? l Monotonicity: Can a valid logical proof be made invalid by adding additional premises or assumptions?

20 Abduction and Inductive Reasoning l Abduction: BA → B A l Not logically valid, BUT can still be useful. l In fact, it models the way humans reason all the time: nEvery non-flying bird I’ve seen before has been a penguin; hence that non-flying bird must be a penguin. l Not valid reasoning, but likely to work in many situations.

21 Modal logic l Modal logic is a higher order logic. l Allows us to reason about certainties, and possible worlds. l If a statement A is contingent then we say that A is possibly true, which is written: ◊A l If A is non-contingent, then it is necessarily true, which is written:  A