Propositional Equivalence

Similar documents
CSC Discrete Math I, Spring Propositional Logic

Compound Propositions

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

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

2.2: Logical Equivalence: The Laws of Logic

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

1.3 Propositional Equivalences

Tautologies, Contradictions, and Contingencies

PROPOSITIONAL CALCULUS

We last time we began introducing equivalency laws.

Chapter 1: The Logic of Compound Statements. January 7, 2008

AMTH140 Lecture 8. Symbolic Logic

Propositional Logic. Spring Propositional Logic Spring / 32

Introduction to Sets and Logic (MATH 1190)

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

Solutions to Homework I (1.1)

Section 1.1: Logical Form and Logical Equivalence

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

Propositional natural deduction

Equivalence and Implication

EECS 1028 M: Discrete Mathematics for Engineers

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

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

THE LOGIC OF COMPOUND STATEMENTS

The Logic of Compound Statements cont.

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

Numbers that are divisible by 2 are even. The above statement could also be written in other logically equivalent ways, such as:

1.1 Statements and Compound Statements

Boolean Logic. CS 231 Dianna Xu

Math.3336: Discrete Mathematics. Propositional Equivalences

ICS141: Discrete Mathematics for Computer Science I

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

PHIL12A Section answers, 16 February 2011

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

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

Chapter 1 Elementary Logic

A statement is a sentence that is definitely either true or false but not both.

Chapter 1, Section 1.1 Propositional Logic

Logic and Propositional Calculus

Logic, Sets, and Proofs

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

CS100: DISCRETE STRUCTURES. Lecture 5: Logic (Ch1)

CSCE 222 Discrete Structures for Computing. Propositional Logic. Dr. Hyunyoung Lee. !!!!!! Based on slides by Andreas Klappenecker

Logic: Propositional Logic (Part I)

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

2 Truth Tables, Equivalences and the Contrapositive

Introduction to Decision Sciences Lecture 2

Warm-Up Problem. Is the following true or false? 1/35

Propositional Calculus: Formula Simplification, Essential Laws, Normal Forms

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

PL: Truth Trees. Handout Truth Trees: The Setup

3 The Semantics of the Propositional Calculus

Logic and Propositional Calculus

Proofs. Joe Patten August 10, 2018

Propositional Logic. Jason Filippou UMCP. ason Filippou UMCP) Propositional Logic / 38

CISC-102 Winter 2016 Lecture 17

Definition 2. Conjunction of p and q

1.1 Language and Logic

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

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

CHAPTER 1. MATHEMATICAL LOGIC 1.1 Fundamentals of Mathematical Logic

1.1 Language and Logic


3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

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

Topic 1: Propositional logic

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

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

Discrete Mathematics and Applications COT3100

Discrete Structures & Algorithms. Propositional Logic EECE 320 // UBC

CSE 20: Discrete Mathematics

Propositional logic ( ): Review from Mat 1348

Mat 243 Exam 1 Review

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

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

Part Two: The Basic Components of the SOFL Specification Language

Truth-Functional Logic

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

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

Propositional Logic 1

Mathematical Reasoning (Part I) 1

Propositional Logic Review

Chapter 4, Logic using Propositional Calculus Handout

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

ANALYSIS EXERCISE 1 SOLUTIONS

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

ANS: If you are in Kwangju then you are in South Korea but not in Seoul.

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

Department of Computer Science & Software Engineering Comp232 Mathematics for Computer Science

software design & management Gachon University Chulyun Kim

Propositional Logic. Fall () Propositional Logic Fall / 30

Section 1.2: Propositional Logic

Propositions. Frequently, we will use the word statement instead of proposition.

Review CHAPTER. 2.1 Definitions in Chapter Sample Exam Questions. 2.1 Set; Element; Member; Universal Set Partition. 2.

Propositional Logic: Equivalence

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Math 102 Section 08, Fall 2010 Solutions Practice for Formal Proofs of Arguments

Logic. Def. A Proposition is a statement that is either true or false.

Learning Goals of CS245 Logic and Computation

Logic and Truth Tables

Transcription:

Propositional Equivalence

Tautologies and contradictions A compound proposition that is always true, regardless of the truth values of the individual propositions involved, is called a tautology. Example: p p is a tautology. A compound proposition that is always false, regardless of the truth values of the individual propositions involved, is called a contradiction. Example: p p is a contradiction. A compound statement that is neither a tautology nor a contradiction is called a contingency.

Logical equivalence We call two algebraic expressions equal if they have the same value for each possible value of the input variables. For example, we say x 2 1 = (x + 1)(x 1) because for all real numbers x, the left side and the right side have the same value. Correspondingly, we should call two compound statements p and q equal if they always share the same truth value. However, the convention is to call them logically equivalent instead, and to use the symbol to represent logical equivalence. Using the biconditional and the concept of a tautology that we just introduced, we can formally define logical equivalence as follows: p q means that p q is a tautology. An alternative definition is that p q means that p and q share the same truth table.

Equivalent vs Equal Do not use the words equivalent and equal interchangeably. Equivalence applies to statements. Two quantities that are the same are equal. If you fail to keep this distinction in mind when dealing with statements that are about quantities, you are in danger of making wholly nonsensical statements. For example, the inequality 2 < x < 3 is equivalent to 4 < 2x < 6. They always share the same truth value, no matter what value is inserted for x. However, if you connect them with an equal sign, then you are making a totally different statement because the equal sign connects quantities, not statements. The notation 2 < x < 3 = 4 < 2x < 6 does NOT mean that 2 < x < 3 is equivalent to 4 < 2x < 6. Rather, it is the false statement 2 < x and x < 3 and 3 = 4 and 4 < 2x and 2x < 6. Notice why this statement has to be false: 3 is not 4.

An important logical equivalence p q p q When we introduced the conditional, we discussed the idea that the conditional should not only be true when the conclusion is true, but also when the premise is false. This explains the equivalence above. A more formal justification can be given using a truth table: p q p q p p q T T T F T T F F F F F T T T T F F T T T Here is an example application of this law: saying if I get elected, I will lower unemployment is equivalent to saying I won t get elected, or I will lower unemployment. Unlike other important logical equivalences, p q p q does not have a commonly agreed upon name. Technically, we could consider this law the definition of the conditional, so we will refer to it by that name

The Laws of De Morgan The two laws of De Morgan explain how negation interacts with conjunction and disjunction. We will illustrate the principle with an example first: It is not true that Joe is rich and famous. This does not mean that Joe is neither rich nor famous. An and statement is true if both individual statements are true; so if the and statement is false, it means that at least one of the two statements is false. Therefore, the statement above is logically equivalent to Joe is not rich or Joe is not famous (perhaps neither). We conclude that the negation of a conjunction must be the disjunction of the negations. There is also a symmetric law of De Morgan which is obtained by switching the roles of conjunction and disjunction. Both laws can be formally proved by truth table. (p q) p q (p q) p q

Negation of Conditionals When we negate conditionals, we must not jump to tempting conclusions. The negation of p q is not q p, nor is it p q, p q, p q, or any other conditional involving p or its negation on one side, and q or its negation on the other side. You can see that by comparing the truth tables, or you can just reason that any conditional of the form described is true for 3 out of the 4 rows, whereas p q is only true for 1 out of the 4 rows. To negate a conditional, we must rewrite it using disjunction and negation, and then carefully apply De Morgan. p q p q p q

De Morgan and Double Inequalities The laws of de Morgan explain how to properly negate a double inequality. In the previous presentation, we stated that the correct negation of 1 x 2 is x < 1 x > 2 To understand this, consider that the original double inequality is a conjunction of two inequalities: 1 x 2 1 x x 2. Thereby, by De Morgan, the negation is the disjunction of the individual inequalities, which leads to x < 1 x > 2.

Other Logical Equivalences involving conjunction, disjunction and negation Equivalences p q q p p q q p p (q r) (p q) r p (q r) (p q) r p (q r) (p q) (p r) p q r (p q) (p r) p F p p T p p T T p F F p p p p p p ( p) p p p q p p (p q) p Name of the Equivalences Commutative laws Associate laws Distributive Laws Identity Laws Domination Laws Idempotent Laws Double Negation Law Absorption Laws

Proving Logical Equivalences All the logical equivalences on the previous slide can be formally justified by truth table. This is a tedious exercise and provides little true insight. We shall give an example of a perhaps more meaningful explanation for one of the absorption laws: p p q p The q inside the parentheses has no effect if p is true already. It can only upgrade a false p to true, but then the conjunction with p reverts that back to false. Therefore, the left side always has the same truth value as p.

Simplifying compound statements using logical equivalences Just like we can use the algebraic laws of numbers to simplify algebraic expressions, we can use the logical equivalences just discussed to rewrite compound statements as equivalent (and hopefully, simpler) compound statements. This helps us understand compound statements, and to identify tautologies and contradictions. The next several slides present examples of such simplifications.

Example 1 Show p q p r p q r We will rewrite the left side using logical equivalences until we have transformed it into the right side. p q p r ( p q) p r p q r (distributive law) p (q r) (definition of conditional) (definition of conditional)

Example 2 Show p q p p Again we rewrite the left side using logical equivalences until we get the right side. p q p p q p (p q) p p (definition of conditional) (De Morgan, double negation) (absorption law)

Logical Equivalence of Conditionals It is an important fact that a conditional is logically equivalent to its contrapositive, but not to its inverse or converse. We can prove this by truth table or by using the logical equivalences we just studied. p q q p Since the inverse is the contrapositive of the converse, inverse and converse are logically equivalent to each other: q p p q

An Example Involving The Biconditional We defined the biconditional p q as (p q) (q p) We shall explore a consequence of that definition. Rewriting the conditionals as disjunctions and then using the distributive law, we get (p q) (q p) ( p q) ( q p) ( p q) ( p p) (q q) (q p) ( p q) (q p) This confirms what we already learned from the truth table: that p q is true if either both p and q are true or both p and q are false.