COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.

Slides:



Advertisements
Similar presentations
Resolution Proof System for First Order Logic
Advertisements

Introduction to Theorem Proving
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Propositional and First Order Reasoning. Terminology Propositional variable: boolean variable (p) Literal: propositional variable or its negation p 
Disjunctive Normal Form CS 680: Formal Methods Jeremy Johnson.
Models and Propositional Logic In propositional logic, a model in general simply fixes the truth value – true or false – for every proposition symbol.
Logic Concepts Lecture Module 11.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 3 Syntax of Propositional Logic Parse trees revised Construction of parse trees Semantics of propositional.
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Computability and Complexity 8-1 Computability and Complexity Andrei Bulatov Logic Reminder.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
From Chapter 4 Formal Specification using Z David Lightfoot
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
1 Inference Rules and Proofs Z: Inference Rules and Proofs.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Chapter 3 Propositional Logic
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
EE1J2 – Discrete Maths Lecture 5
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Discussion #10 1/16 Discussion #10 Logical Equivalences.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
SAT Solver Math Foundations of Computer Science. 2 Boolean Expressions  A Boolean expression is a Boolean function  Any Boolean function can be written.
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Satisfiability Introduction to Artificial Intelligence COS302 Michael L. Littman Fall 2001.
Copyright © Curt Hill Truth Tables A way to show Boolean Operations.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Normal Forms, Tautology and Satisfiability 2/3/121.
CS1502 Formal Methods in Computer Science
Conjunctive normal form: any formula of the predicate calculus can be transformed into a conjunctive normal form. Def. A formula is said to be in conjunctive.
Propositional Equivalences
INTRODUCTION TO ARTIFICIAL INTELLIGENCE COS302 MICHAEL L. LITTMAN FALL 2001 Satisfiability.
Marriage Problem Your the sovereign in a small kingdom. One of your jobs is to marry off the people in kingdom. There are three rules that apply.
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
Application: Digital Logic Circuits Lecture 5 Section 1.4 Wed, Jan 24, 2007.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Circuit Design.
Lecture Propositional Equivalences. Compound Propositions Compound propositions are made by combining existing propositions using logical operators.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
Propositional calculus
Propositional Logic. Propositions Any statement that is either True (T) or False (F) is a proposition Propositional variables: a variable that can assume.
Thinking Mathematically
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Joan Ridgway. If a proposition is not indeterminate then it is either true (T) or false (F). True and False are complementary events. For two propositions,
CS2351 Artificial Intelligence Bhaskar.V Class Notes on Knowledge Representation - Logical Agents.
1 Section 6.2 Propositional Calculus Propositional calculus is the language of propositions (statements that are true or false). We represent propositions.
The Logic of Boolean Connectives Chapter 4 Language, Proof and Logic.
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 04 : Logic.
DISCRETE MATHEMATICS CHAPTER I.
Discussion #10 Logical Equivalences
ARTIFICIAL INTELLIGENCE
Logics for Data and Knowledge Representation
Propositional Calculus: Boolean Algebra and Simplification
Elementary Metamathematics
NP-Completeness Proofs
Propositional Equivalences
TRUTH TABLES.
Lecture 2: Propositional Equivalences
PROPOSITIONAL LOGIC - SYNTAX-
RESOLUTION.
Presentation transcript:

COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University pursuant to Part VB of the Copyright Act 1968 (the Act). The material in this communication may be subject to copyright under the Act. Any further reproduction or communication of this material by you may be the subject of copyright protection under the Act. Do not remove this notice.

Clauses and Resolvents CSE2303 Formal Methods I Lecture 21

Overview Formula Disjunctive Normal Form Conjunctive Normal Form Clauses Resolvents

Formula Using propositional variables every statement can be represented by a formula. Example. S: If the price is less than $30 and I have at least $50, then I will buy that CD. P: The price of the CD is less than $30. L: I have at least $50. B: I will buy that CD. S: (P  L)  B

Terminology (P  ¬R  Q)  (¬P  R  Q) propositional variables literals A literal is either a propositional variable, or the negation of a propositional variable.

Terminology (P  ¬R  Q)  (¬P  R  Q) conjunction of literals disjunction of literals

Logical Equivalent We say two formulae are logically equivalent if they always have the same truth table. E.g. (P  Q ) and ¬P  Q ¬(P  R  Q) and ¬P  ¬R  ¬Q ¬(P  R  Q) and ¬P  ¬R  ¬Q P  Q and (¬P  Q)  (P  ¬Q)

Special Forms A formula is in Disjunctive Normal Form (DNF) if it is a disjunction D 1  D 2  …  D n where each D i is a conjunction of literals. A formula is in Conjunctive Normal Form (CNF) if it is a conjunction C 1  C 2  …  C n where each C i is a disjunction of literals.

Example Disjunctive Normal Forms (¬P  ¬R)  (¬P  Q)  (Q  ¬R)  Q (¬P  ¬R  ¬Q)  (¬P  ¬R  Q)  (¬P  R  Q)  (P  ¬R  Q)  (P  R  Q) Conjunctive Normal Forms (¬P  ¬R  Q)  (¬P  R  Q)  (P  ¬R  Q) (¬P  Q)  (¬R  Q) P  Q

Theorem Every formula is logically equivalent to formula in disjunctive normal form. Example: (P  Q )  (R  Q) is logically equivalent to: (¬P  ¬R  ¬Q)  (¬P  ¬R  Q)  (¬P  R  Q)  (P  ¬R  Q)  (P  R  Q)

Proof of Theorem Take any formula A. Write the truth table A. Delete those rows where A gets F. If no rows are left output (P  ¬P) Else, delete the last column. Replace each T by the variable at the top of the column, each F by the negation of the variable. Put  between the literals. Put brackets around the rows, and  between the rows.

Theorem Every formula is logically equivalent to formula in conjunctive normal form. Example: (P  Q )  (R  Q) is logically equivalent to: (¬P  ¬R  Q)  (¬P  R  Q)  (P  ¬R  Q)

Proof of Theorem Take any formula A. Write the truth table A. Delete those rows where A gets T. If no rows are left output (P  ¬P) Else, delete the last column. Replace each T by the negation of the variable at the top of the column, each F by the variable. Put  between the literals. Put brackets around the rows, and  between the rows.

Clause A clause is a set of literals. Every clause corresponds to a disjunction. E.g. {¬P, Q, ¬R} (¬P  Q  ¬R) Every set of clauses correspond to a CNF. E.g. {{¬P, Q, ¬R}, {¬Q, R}} (¬P  Q  ¬R)  (¬Q  R)

Clausal Form Every formula can be represented as a set of clauses. Example: (P  Q )  (R  Q) CNF: (¬P  ¬R  Q)  (¬P  R  Q)  (P  ¬R  Q) Clausal Form: {{¬P, ¬R, Q}, {¬P, R, Q}, {P, ¬R, Q}}

Resolvents {¬P, ¬R, Q}{¬P, R, Q} {¬P, Q}R-resolvent

Definition If C 1 is a clause which contains P, and If C 2 is a clause which contains ¬P, then P-resolvent(C 1, C 2 ) is the set C 1  C 2 -{P, ¬P}

Examples {¬P, ¬R, Q}{P, R, Q} {¬P, ¬R, Q}{P, R, Q} {¬P}{P} {¬P, P, Q} {¬R, R, Q}  Empty clause

Terminology A formula is a tautology when it always gets the value T. A formula is called unsatisfiable if it never gets the value T.

Examples (P  Q)  ¬Q  P P  ¬P The Empty Clause 

Resolvent {A, ¬R}{B, R} {A, B}

(A  ¬R)  (B  R) is logically equivalent to (A  ¬R)  (B  R)  (A  B) {{A, ¬R},{B, R}} is logically equivalent to {{A, ¬R}, {B, R}, {A, B}} {{A, ¬R},{B, R}} is unsatisfiable if and only if {{A, ¬R}, {B, R}, {A, B}} is unsatisfiable.

Example {P, ¬Q}{P, Q}{¬P, Q}{¬P, ¬Q} {P}{Q} {¬P}

Revision Know the definition of the following forms: –DNF (disjunctive normal form). –CNF (conjunctive normal form). –Clausal Form. Be able to express a propositional formula in the following forms: –DNF (disjunctive normal form). –CNF (conjunctive normal form). –Clausal Form. Know what are resolvents.