CS206 Lecture 03. Propositional Logic Proofs. Plan for Lecture 03. Axioms. Normal Forms

Similar documents
Propositional Calculus: Formula Simplification, Essential Laws, Normal Forms

Solutions to Homework I (1.1)

CS250: Discrete Math for Computer Science. L6: CNF and Natural Deduction for PropCalc

CSC Discrete Math I, Spring Propositional Logic

Section 1.2 Propositional Equivalences. A tautology is a proposition which is always true. A contradiction is a proposition which is always false.

Part 1: Propositional Logic

A brief introduction to Logic. (slides from

Tautologies, Contradictions, and Contingencies

We last time we began introducing equivalency laws.

CS 486: Lecture 2, Thursday, Jan 22, 2009

CSE20: Discrete Mathematics for Computer Science. Lecture Unit 2: Boolan Functions, Logic Circuits, and Implication

Propositional Resolution

CS156: The Calculus of Computation

Logic Part I: Classical Logic and Its Semantics

Propositional Equivalence

Supplementary exercises in propositional logic

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

Announcements. CS311H: Discrete Mathematics. Propositional Logic II. Inverse of an Implication. Converse of a Implication

Normal Forms of Propositional Logic

software design & management Gachon University Chulyun Kim

Propositional Logic Language

The Calculus of Computation: Decision Procedures with Applications to Verification. Part I: FOUNDATIONS. by Aaron Bradley Zohar Manna

Announcements. CS243: Discrete Structures. Propositional Logic II. Review. Operator Precedence. Operator Precedence, cont. Operator Precedence Example

1.3 Propositional Equivalences

CS 512, Spring 2017, Handout 10 Propositional Logic: Conjunctive Normal Forms, Disjunctive Normal Forms, Horn Formulas, and other special forms

Sec$on Summary. Tautologies, Contradictions, and Contingencies. Logical Equivalence. Normal Forms (optional, covered in exercises in text)

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

2.2: Logical Equivalence: The Laws of Logic

Logic and Discrete Mathematics. Section 3.5 Propositional logical equivalence Negation of propositional formulae

Advanced Topics in LP and FP

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

02 Propositional Logic

Compound Propositions

Theory of Computer Science

Overview. I Review of natural deduction. I Soundness and completeness. I Semantics of propositional formulas. I Soundness proof. I Completeness proof.

Tecniche di Verifica. Introduction to Propositional Logic

Deductive Systems. Lecture - 3

COMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning

Chapter 2: Switching Algebra and Logic Circuits

Boolean Algebra, Gates and Circuits

Learning Goals of CS245 Logic and Computation

PHIL12A Section answers, 16 February 2011

Truth-Functional Logic

Logic: Propositional Logic (Part I)

ECE473 Lecture 15: Propositional Logic

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

Propositional Logic Basics Propositional Equivalences Normal forms Boolean functions and digital circuits. Propositional Logic.

Comp487/587 - Boolean Formulas

Language of Propositional Logic

CS156: The Calculus of Computation Zohar Manna Autumn 2008


Inference in Propositional Logic

Computation and Logic Definitions

Boolean Algebra. Philipp Koehn. 9 September 2016

Logic: First Order Logic

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Logic Synthesis and Verification

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010

If f = ABC + ABC + A B C then f = AB C + A BC + AB C + A BC + A B C

Part I: Propositional Calculus

CHAPTER1: Digital Logic Circuits Combination Circuits

Formal Verification Methods 1: Propositional Logic

Example. Logic. Logical Statements. Outline of logic topics. Logical Connectives. Logical Connectives

Propositional logic II.

Topic 1: Propositional logic

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.

Propositional natural deduction

Boolean Algebra. Examples: (B=set of all propositions, or, and, not, T, F) (B=2 A, U,, c, Φ,A)

CISC-102 Winter 2016 Lecture 17

Propositional Logic Resolution (6A) Young W. Lim 12/12/16

Lecture 2 Propositional Logic & SAT

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

UNIT-I: Propositional Logic

Propositional and Predicate Logic - II

MAI0203 Lecture 7: Inference and Predicate Calculus

Chapter 2 Combinational Logic Circuits

Midterm Exam Solution

Propositional Logic Resolution (6A) Young W. Lim 12/31/16

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/30)

Section 1.1: Logical Form and Logical Equivalence

1. Name the person who developed Boolean algebra

Part 1: Propositional Logic

CS 226: Digital Logic Design

Introduction to Sets and Logic (MATH 1190)

Foundations of Artificial Intelligence

Natural Deduction. Formal Methods in Verification of Computer Systems Jeremy Johnson

Combinational Logic Design Principles

CDM Propositional Logic

Normal Forms Note: all ppts about normal forms are skipped.

Equivalences. Proposition 2.8: The following equivalences are valid for all formulas φ, ψ, χ: (φ φ) φ. Idempotency Idempotency Commutativity

Exercises 1 - Solutions

Disjunction/Conjunction Normal Form

Propositional Calculus

CS206 Lecture 21. Modal Logic. Plan for Lecture 21. Possible World Semantics

~ p is always false. Based on the basic truth table for disjunction, if q is true then p ~

CSE 20 DISCRETE MATH WINTER

AMTH140 Lecture 8. Symbolic Logic

Introduction to Decision Sciences Lecture 2

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Chapter 4: Classical Propositional Semantics

Transcription:

CS206 Lecture 03 Propositional Logic Proofs G. Sivakumar Computer Science Department IIT Bombay siva@iitb.ac.in http://www.cse.iitb.ac.in/ siva Page 1 of 12 Fri, Jan 03, 2003 Plan for Lecture 03 Axioms Normal Forms

Semantics How to assign a meaning to a formula? Base Case Page 2 of 12 An interpretation, or truth assignment, is a function from a set of propositional symbols to {t, f}. Inductive Case Truth Tables for Connectives f 1 f 2 f 1 f 1 f 2 f 1 f 2 f 1 f 2 f 1 f 2 t t f t t t t t f f f t f f f t t f t t f f f t f f t t

Page 3 of 12 Some Denitions An interpretation satises a formula if the formula evaluates to t (1) under the interpretation. A set S of formulae is valid (or a tautology) if every interpretation for S satises every formula in S. A set S of formulae is satisable (or consistent) if there is some interpretation for S that satises every formula in S. A set S of formulae is unsatisable (or inconsistent) if it is not satisable. A set S of formulae entails A if every interpretation that satises all elements of S, also satises A. We write S = A Formulae A and B are equivalent, A B, provided A = B and B = A. Note: = and are metasymbols and not logical connectives.

Some Examples Valid p p (q (q)) Satisable p q (p) (q r) Neither is valid. Page 4 of 12 Unsatisable (r (r)) {p, q, (p) (q)}

Equivalence Axioms Can you prove the following equivalences? Page 5 of 12 Idempotency Laws P P P P P P Commutativity Laws P Q Q P P Q Q P Associativity Laws (P Q) R P (Q R) (P Q) R P (Q R) Direct use of truth tables!

Distributive Laws More Axioms (P Q) R (P R) (Q R) (P Q) R (P R) (Q R) De Morgan Laws (P Q) (P ) (Q) (P Q) (P ) (Q) Connectives Elimination Page 6 of 12 P Q (P Q) (Q P ) P Q (P ) Q...

Page 7 of 12 Simplicatoin Axioms P f f P t P P f P P t t ( (P )) P P (P ) t P (P ) f... Is there a complete set?

Normal Forms Use a set of axioms to simplify a formula into a normal form. Page 8 of 12

Page 9 of 12 Normal Form Denition A literal is an atomic formula or its negation. A maxterm is a literal or a disjunction of literals. A minterm is a literal or a conjunction of literals. A formula is in Negation Normal Form (NNF) if the only connectives in it are,, and, where is only applied to atomic formulae. A formula is in Conjunctive Normal Form (CNF) if it has the form A 1 A 2... A m (any parenthesization), where each A i is maxterm. A formula is in Disjunctive Normal Form (DNF) if it has the form A 1 A 2... A m (any parenthesization), where each A i is minterm.

Normal Forms Top level description only (ll in details). 1. Eliminate other connectives (, ). Page 10 of 12 P Q (P Q) (Q P ) P Q (P ) Q... 2. Push negation inside. (P Q) (P ) (Q) (P Q) (P ) (Q) ( (P )) P 3. Distribute Or over And (for CNF) (P Q) R (P R) (Q R) P (Q R) (P Q) (P R) 4. Simplify P f P P t t P (P ) t

Why Normal Forms Ideally, we would like the following. If a formula F is valid, its only normal form should be t. If a formula F is unsatisable, its only normal form should be f. If a formula F is satisable (but not valid), its (unique) normal form should allow us to nd interpretations that satisfy the formula. This would give a nice decision procedure for propositional logic. But, CNF and DNF do not have these properties! Quiz: Find a formula with two dierent normal forms! Page 11 of 12

Exclusive-OR to the rescue A decision procedure for propositional logic using rewriting. Choose exclusive-or (denoted + below) and and (denoted by concatenation) as the basis set of operators. x1 x x0 0 xx x x + x 0 x + 0 x Page 12 of 12 Just like polynomials we work with in algebra. Interesting rules neg(x) x + 1 x y x + y + xy All tautologies simplify to 1. All contradictions simplify to 0. Other normal forms mean the formula is satisable.