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

Similar documents
2.2: Logical Equivalence: The Laws of Logic

CSC Discrete Math I, Spring Propositional Logic

Tautologies, Contradictions, and Contingencies

We last time we began introducing equivalency laws.

Propositional Equivalence

Full file at

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

1.3 Propositional Equivalences

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

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

Chapter 1, Section 1.1 Propositional Logic

Proofs. Joe Patten August 10, 2018

Truth-Functional Logic

Section 1.1 Propositional Logic. proposition : true = T (or 1) or false = F (or 0) (binary logic) the moon is made of green cheese

Boolean Algebra. Philipp Koehn. 9 September 2016

Compound Propositions

Chapter 4: Classical Propositional Semantics

Solutions to Homework I (1.1)

Propositional Calculus: Formula Simplification, Essential Laws, Normal Forms

What is Logic? Introduction to Logic. Simple Statements. Which one is statement?

PROPOSITIONAL CALCULUS

software design & management Gachon University Chulyun Kim

Section 2.2 Set Operations. Propositional calculus and set theory are both instances of an algebraic system called a. Boolean Algebra.

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

CISC-102 Winter 2016 Lecture 17

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

Propositional Logic: Equivalence

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

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

CSE 311: Foundations of Computing. Lecture 3: Digital Circuits & Equivalence

1.1 Statements and Compound Statements

More Propositional Logic Algebra: Expressive Completeness and Completeness of Equivalences. Computability and Logic

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014

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

Natural Deduction is a method for deriving the conclusion of valid arguments expressed in the symbolism of propositional logic.

Logic: Propositional Logic (Part I)

Introduction to Sets and Logic (MATH 1190)

Propositional Logic. Spring Propositional Logic Spring / 32

Show Your Work! Point values are in square brackets. There are 35 points possible. Tables of tautologies and contradictions are on the last page.

Propositional Logic:

Propositional Logic. Logical Expressions. Logic Minimization. CNF and DNF. Algebraic Laws for Logical Expressions CSC 173

University of California, San Diego Department of Computer Science and Engineering CSE 20. Solutions to Midterm Exam Winter 2018

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

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

1.1 Language and Logic

n logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional)

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

CSE 20: Discrete Mathematics

10/5/2012. Logic? What is logic? Propositional Logic. Propositional Logic (Rosen, Chapter ) Logic is a truth-preserving system of inference

Math.3336: Discrete Mathematics. Propositional Equivalences

Propositional logic (revision) & semantic entailment. p. 1/34

Propositional Logic 1

KP/Worksheets: Propositional Logic, Boolean Algebra and Computer Hardware Page 1 of 8

Chapter Summary. Propositional Logic. Predicate Logic. Proofs. The Language of Propositions (1.1) Applications (1.2) Logical Equivalences (1.

ICS141: Discrete Mathematics for Computer Science I

CSE 20 DISCRETE MATH WINTER

CISC-102 Fall 2018 Week 11

Section 1.1: Propositions and Connectives

Logic Overview, I. and T T T T F F F T F F F F

Tecniche di Verifica. Introduction to Propositional Logic

Equivalence and Implication

MAT2345 Discrete Math

Chapter 1, Part I: Propositional Logic. With Question/Answer Animations

Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.3. Section 1.3 Predicates and Quantifiers

CSE 311: Foundations of Computing. Lecture 2: More Logic, Equivalence & Digital Circuits

Packet #1: Logic & Proofs. Applied Discrete Mathematics

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

UNIT-I: Propositional Logic

ECE473 Lecture 15: Propositional Logic

2/13/2012. Logic: Truth Tables. CS160 Rosen Chapter 1. Logic?

Discrete Structures of Computer Science Propositional Logic III Rules of Inference

Logic and Proofs. Jan COT3100: Applications of Discrete Structures Jan 2007

CSC165 Mathematical Expression and Reasoning for Computer Science

HW1 graded review form? HW2 released CSE 20 DISCRETE MATH. Fall

Proving Things. Why prove things? Proof by Substitution, within Logic. Rules of Inference: applying Logic. Using Assumptions.

C241 Homework Assignment 4

Propositional Calculus

Computation and Logic Definitions

Propositional natural deduction

Section 1.2: Propositional Logic

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

The Logic of Compound Statements cont.

Review. Propositional Logic. Propositions atomic and compound. Operators: negation, and, or, xor, implies, biconditional.

Language of Propositional Logic

Solutions to Sample Problems for Midterm

Definition 2. Conjunction of p and q

Disjunction/Conjunction Normal Form

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

Logic and Proof. Aiichiro Nakano

Proposition/Statement. Boolean Logic. Boolean variables. Logical operators: And. Logical operators: Not 9/3/13. Introduction to Logical Operators

Unit 8A Computer Organization. Boolean Logic and Gates

MACM 101 Discrete Mathematics I. Exercises on Propositional Logic. Due: Tuesday, September 29th (at the beginning of the class)

Chapter 1, Part I: Propositional Logic. With Question/Answer Animations

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques

Section 1.7 Proof Methods and Strategy. Existence Proofs. xp(x). Constructive existence proof:

Midterm Exam Solution

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

PHIL12A Section answers, 16 February 2011

3 The Semantics of the Propositional Calculus

Transcription:

Section 1.2 Propositional Equivalences A tautology is a proposition which is always true. Classic Example: P P A contradiction is a proposition which is always false. Classic Example: P P A contingency is a proposition which neither a tautology nor a contradiction. Example: (P Q) R Two propositions P and Q are logically equivalent if P Q is a tautology. We write P Q Example: (P Q) (Q P) (P Q) Prepared by: David F. McAllister TP 1 1999, 2007 McGraw-Hill

Proof: The left side and the right side must have the same truth values independent of the truth value of the component propositions. To show a proposition is not a tautology: use an abbreviated truth table - try to find a counter example or to disprove the assertion. - search for a case where the proposition is false Case 1: Try left side false, right side true Left side false: only one of P Q or Q P need be false. 1a. Assume P Q = F. Then P = T, Q = F. But then right side P Q = F. Oops, wrong guess. 1b. Try Q P = F. Then Q = T, P = F. Then P Q = F. Another wrong guess. Case 2. Try left side true, right side false Prepared by: David F. McAllister TP 2 1999, 2007 McGraw-Hill

If right side is false, P and Q cannot have the same truth value. 2a. Assume P =T, Q = F. Then P Q = F and the conjunction must be false so the left side cannot be true in this case. Another wrong guess. 2b. Assume Q = T, P = F. Again the left side cannot be true. We have exhausted all possibilities and not found a counterexample. The two propositions must be logically equivalent. Note: Because of this equivalence, if and only if or iff is also stated as is a necessary and sufficient condition for. Some famous logical equivalences: Logical Equivalences P T P Identity P F P P T T Domination P F F P P P Idempotency P P P ( P)) P Double negation P Q Q P Commutativity P Q Q P (P Q) R P (Q R) Associativity (P Q) R P (Q R) Prepared by: David F. McAllister TP 3 1999, 2007 McGraw-Hill

P (Q R) (P Q) (P R) P (Q R) (P Q) (P R) (P Q) P Q (P Q) P Q P Q P Q P P T P P F P T P Distributivity DeMorgan s laws Implication Tautology Contradiction P F P (P Q) (Q P) Equivalence (P Q) (P Q) (P Q) Absurdity P (P Q) ( Q P) Contrapositive P (P Q) P Absorption P (P Q) P (P Q) R Exportation P (Q R) Note: equivalent expressions can always be substituted for each other in a more complex expression - useful for simplification. Prepared by: David F. McAllister TP 4 1999, 2007 McGraw-Hill

Normal or Canonical Forms Unique representations of a proposition Examples: Construct a simple proposition of two variables which is true only when P is true and Q is false: P Q P is true and Q is true: P Q P is true and Q is false or P is true and Q is true: (P Q) (P Q) A disjunction of conjunctions where - every variable or its negation is represented once in each conjunction (a minterm) - each minterms appears only once Disjunctive Normal Form (DNF) Important in switching theory, simplification in the design of circuits. Prepared by: David F. McAllister TP 5 1999, 2007 McGraw-Hill

Method: To find the minterms of the DNF. Use the rows of the truth table where the proposition is 1 or True If a zero appears under a variable, use the negation of the propositional variable in the minterm Example: If a one appears, use the propositional variable. Find the DNF of (P Q) R P Q R (P Q) R 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 0 There are 5 cases where the proposition is true, hence 5 minterms. Rows 1,2,3, 5 and 7 produce the following disjunction of minterms: Prepared by: David F. McAllister TP 6 1999, 2007 McGraw-Hill

(P Q) R ( P Q R) ( P Q R) ( P Q R) (P Q R) (P Q R) Note that you get a Conjunctive Normal Form (CNF) if you negate a DNF and use DeMorgan s Laws. Prepared by: David F. McAllister TP 7 1999, 2007 McGraw-Hill