Propositional Equivalences. L32 Agenda Tautologies Logical Equivalences.

Slides:



Advertisements
Similar presentations
Propositional Equivalences
Advertisements

Propositional Equivalences
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 3.2 Truth Tables for Negation, Conjunction, and Disjunction.
Logic Chapter 2. Proposition "Proposition" can be defined as a declarative statement having a specific truth-value, true or false. Examples: 2 is a odd.
1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.
1 Math 306 Foundations of Mathematics I Math 306 Foundations of Mathematics I Goals of this class Introduction to important mathematical concepts Development.
EE1J2 – Discrete Maths Lecture 5
Introduction to Logic Logical Form: general rules
First Order Logic. Propositional Logic A proposition is a declarative sentence (a sentence that declares a fact) that is either true or false, but not.
Discussion #10 1/16 Discussion #10 Logical Equivalences.
CSE 311 Foundations of Computing I Autumn 2011 Lecture 2 More Propositional Logic Application: Circuits Propositional Equivalence.
Chapter 2: The Logic of Compound Statements 2.1 Logical Forms and Equivalence 12.1 Logical Forms and Equivalences Logic is a science of the necessary laws.
3.2 – Truth Tables and Equivalent Statements
TRUTH TABLES. Introduction Statements have truth values They are either true or false but not both Statements may be simple or compound Compound statements.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 3.2 Truth Tables for Negation, Conjunction, and Disjunction.
Normal or Canonical Forms Rosen 1.2 (exercises). Logical Operators  - Disjunction  - Conjunction  - Negation  - Implication p  q   p  q  - Exclusive.
Chapter 1 Section 1.4 More on Conditionals. There are three statements that are related to a conditional statement. They are called the converse, inverse.
Propositions and Truth Tables. Proposition: Makes a claim that may be either true or false; it must have the structure of a complete sentence.
Discrete Maths 2. Propositional Logic Objective
MATERI II PROPOSISI. 2 Tautology and Contradiction Definition A tautology is a statement form that is always true. A statement whose form is a tautology.
Discrete Mathematics CS 285. Lecture 12 Section 1.1: Logic Axiomatic concepts in math: Equals Opposite Truth and falsehood Statement Objects Collections.
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
1 Logic Logic is a discipline that studies the principles and methods used in correct reasoning It includes: A formal language for expressing statements.
Chapter 1 The Logic of Compound Statements. Section 1.1 Logical Form and Logical Equivalence.
BY: MISS FARAH ADIBAH ADNAN IMK. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC INTRODUCTION PROPOSITION COMPOUND STATEMENTS LOGICAL.
Chapter 3 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Discrete Mathematics. Propositional Logic 10/8/2015 What’s a proposition? PropositionsNot Propositions = 32Bring me coffee! CS173 is Bryan’s favorite.
Review I Rosen , 3.1 Know your definitions!
Propositional Equivalences
Chapter 5 – Logic CSNB 143 Discrete Mathematical Structures.
Logical Form and Logical Equivalence Lecture 2 Section 1.1 Fri, Jan 19, 2007.
CSNB143 – Discrete Structure LOGIC. Learning Outcomes Student should be able to know what is it means by statement. Students should be able to identify.
Tautologies, contradictions, contingencies
Chapter 2: The Logic of Compound Statements 2.2 Conditional Statements
Reading: Chapter 4 (44-59) from the text book
Chapter 7 Logic, Sets, and Counting
Propositional Logic. Propositions Any statement that is either True (T) or False (F) is a proposition Propositional variables: a variable that can assume.
Lecture 9 Conditional Statements CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
How do I show that two compound propositions are logically equivalent?
Chapter 7 Logic, Sets, and Counting Section 1 Logic.
Section 1.2: Propositional Equivalences In the process of reasoning, we often replace a known statement with an equivalent statement that more closely.
Propositional Logic ITCS 2175 (Rosen Section 1.1, 1.2)
Logical Form and Logical Equivalence Lecture 1 Section 1.1 Wed, Jan 12, 2005.
Logical Form and Logical Equivalence M Logical Form Example 1 If the syntax is faulty or execution results in division by zero, then the program.
CS203 Discrete Mathematical Structures
Chapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and Proofs
Conditional Statements – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Conditional Statements Reading: Kolman, Section 2.2.
The Foundations: Logic and Proof, Sets, and Foundations PROPOSITIONS A proposition is a declarative sentence that is either True or False, but not the.
Boolean Logic.
Notes - Truth Tables fun, fun, and more fun!!!!. A compound statement is created by combining two or more statements, p and q.
Propositional Equivalence A needed step towards proofs Copyright © 2014 Curt Hill.
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,
Symbolic Logic The Following slide were written using materials from the Book: The Following slide were written using materials from the Book: Discrete.
LECTURE 1. Disrete mathematics and its application by rosen 7 th edition THE FOUNDATIONS: LOGIC AND PROOFS 1.1 PROPOSITIONAL LOGIC.
رياضيات متقطعة لعلوم الحاسب MATH 226. Text books: (Discrete Mathematics and its applications) Kenneth H. Rosen, seventh Edition, 2012, McGraw- Hill.
Mathematics for Computing Lecture 2: Computer Logic and Truth Tables Dr Andrew Purkiss-Trew Cancer Research UK
Chapter 1. Chapter Summary  Propositional Logic  The Language of Propositions (1.1)  Logical Equivalences (1.3)  Predicate Logic  The Language of.
Chapter 1 Logic and proofs
2. The Logic of Compound Statements Summary
The Foundations: Logic and Proofs
COT 3100, Spr Applications of Discrete Structures
(CSC 102) Discrete Structures Lecture 2.
Propositional Equivalences
Information Technology Department
Propositional Equivalence (§1.2)
CS 220: Discrete Structures and their Applications
Propositional Equivalences
Lecture 2: Propositional Equivalences
Discrete Mathematics CMP-200 Propositional Equivalences, Predicates & Quantifiers, Negating Quantified Statements Abdul Hameed
Presentation transcript:

Propositional Equivalences

L32 Agenda Tautologies Logical Equivalences

L33 Tautologies, contradictions, contingencies DEF: A compound proposition is called a tautology if no matter what truth values its atomic propositions have, its own truth value is T. EG: p  ¬ p (Law of excluded middle) The opposite to a tautology, is a compound proposition that ’ s always false – a contradiction. EG: p  ¬ p On the other hand, a compound proposition whose truth value isn ’ t constant is called a contingency. EG: p  ¬ p

L34 Tautologies and contradictions The easiest way to see if a compound proposition is a tautology/contradiction is to use a truth table. TFTF FTFT pp p TTTT p  p TFTF FTFT pp p FFFF p  p

L35 Tautology example Part 1 Demonstrate that [ ¬ p  (p  q )]  q is a tautology in two ways: 1. Using a truth table – show that [ ¬ p  (p  q )]  q is always true 2. Using a proof (will get to this later).

L36 Tautology by truth table pq ¬p¬p p  q ¬ p  (p  q )[ ¬ p  (p  q )]  q TT TF FT FF

L37 Tautology by truth table pq ¬p¬p p  q ¬ p  (p  q )[ ¬ p  (p  q )]  q TTF TFF FTT FFT

L38 Tautology by truth table pq ¬p¬p p  q ¬ p  (p  q )[ ¬ p  (p  q )]  q TTFT TFFT FTTT FFTF

L39 Tautology by truth table pq ¬p¬p p  q ¬ p  (p  q )[ ¬ p  (p  q )]  q TTFTF TFFTF FTTTT FFTFF

L310 Tautology by truth table pq ¬p¬p p  q ¬ p  (p  q )[ ¬ p  (p  q )]  q TTFTFT TFFTFT FTTTTT FFTFFT

L311 Logical Equivalences DEF: Two compound propositions p, q are logically equivalent if their biconditional joining p  q is a tautology. Logical equivalence is denoted by p  q. EG: The contrapositive of a logical implication is the reversal of the implication, while negating both components. I.e. the contrapositive of p  q is ¬ q  ¬ p. As we ’ ll see next: p  q  ¬ q  ¬ p

L312 Logical Equivalence of Conditional and Contrapositive The easiest way to check for logical equivalence is to see if the truth tables of both variants have identical last columns: p  q qp Q: why does this work given definition of  ? ¬q¬p¬q¬p p ¬p¬pq ¬q¬q

L313 Logical Equivalence of Conditional and Contrapositive The easiest way to check for logical equivalence is to see if the truth tables of both variants have identical last columns: TFTTTFTT TFTFTFTF TTFFTTFF p  q qp Q: why does this work given definition of  ? ¬q¬p¬q¬p p ¬p¬pq ¬q¬q

L314 Logical Equivalence of Conditional and Contrapositive The easiest way to check for logical equivalence is to see if the truth tables of both variants have identical last columns: TFTTTFTT TFTFTFTF TTFFTTFF p  q qp Q: why does this work given definition of  ? TTFFTTFF ¬q¬p¬q¬p p ¬p¬p TFTFTFTF q ¬q¬q

L315 Logical Equivalence of Conditional and Contrapositive The easiest way to check for logical equivalence is to see if the truth tables of both variants have identical last columns: TFTTTFTT TFTFTFTF TTFFTTFF p  q qp Q: why does this work given definition of  ? TTFFTTFF ¬q¬p¬q¬p p ¬p¬p TFTFTFTF q FTFTFTFT ¬q¬q

L316 Logical Equivalence of Conditional and Contrapositive The easiest way to check for logical equivalence is to see if the truth tables of both variants have identical last columns: TFTTTFTT TFTFTFTF TTFFTTFF p  q qp Q: why does this work given definition of  ? TTFFTTFF ¬q¬p¬q¬p p FFTTFFTT ¬p¬p TFTFTFTF q FTFTFTFT ¬q¬q

L317 Logical Equivalence of Conditional and Contrapositive The easiest way to check for logical equivalence is to see if the truth tables of both variants have identical last columns: TFTTTFTT TFTFTFTF TTFFTTFF p  q qp Q: why does this work given definition of  ? TFTTTFTT TTFFTTFF ¬q¬p¬q¬p p FFTTFFTT ¬p¬p TFTFTFTF q FTFTFTFT ¬q¬q ABAB TTTTTTTT

L318 Logical Equivalences A: p  q by definition means that p  q is a tautology. Furthermore, the biconditional is true exactly when the truth values of p and of q are identical. So if the last column of truth tables of p and of q is identical, the biconditional join of both is a tautology. Hence, (p  q)  ( ¬ q  ¬ p) is a tautology

L319 Logical Non-Equivalence of Conditional and Converse The converse of a logical implication is the reversal of the implication. I.e. the converse of p  q is q  p. EG: The converse of “ If Donald is a duck then Donald is a bird. ” is “ If Donald is a bird then Donald is a duck. ” As we ’ ll see next: p  q and q  p are not logically equivalent.

L320 Logical Non-Equivalence of Conditional and Converse pq p  qq  p(p  q)  (q  p)

L321 Logical Non-Equivalence of Conditional and Converse pq p  qq  p(p  q)  (q  p) TTFFTTFF TFTFTFTF

L322 Logical Non-Equivalence of Conditional and Converse pq p  qq  p(p  q)  (q  p) TTFFTTFF TFTFTFTF TFTTTFTT

L323 Logical Non-Equivalence of Conditional and Converse pq p  qq  p(p  q)  (q  p) TTFFTTFF TFTFTFTF TFTTTFTT TTFTTTFT

L324 Logical Non-Equivalence of Conditional and Converse stop here pq p  qq  p(p  q)  (q  p) TTFFTTFF TFTFTFTF TFTTTFTT TTFTTTFT TFFTTFFT

L325 Derivational Proof Techniques When compound propositions involve more and more atomic components, the size of the truth table for the compound propositions increases Q1: How many rows are required to construct the truth-table of: ( (q  (p  r ))  (  (s  r)  t) )  (  q  r ) Q2: How many rows are required to construct the truth-table of a proposition involving n atomic components?

L326 Derivational Proof Techniques A1: 32 rows, each additional variable doubles the number of rows A2: In general, 2 n rows Therefore, as compound propositions grow in complexity, truth tables become more and more unwieldy. Checking for tautologies/logical equivalences of complex propositions can become a chore, especially if the problem is obvious.

L327 Derivational Proof Techniques EG: consider the compound proposition (p  p )  (  (s  r)  t) )  (  q  r ) Q: Why is this a tautology?

L328 Derivational Proof Techniques A: Part of it is a tautology (p  p ) and the disjunction of True with any other compound proposition is still True: (p  p )  (  (s  r)  t ))  (  q  r )  T  (  (s  r)  t ))  (  q  r )  T Derivational techniques formalize the intuition of this example.

L329 Tables of Logical Equivalences  Identity laws Like adding 0  Domination laws Like multiplying by 0  Idempotent laws Delete redundancies  Double negation “ I don ’ t like you, not ”  Commutativity Like “ x+y = y+x ”  Associativity Like “ (x+y)+z = y+(x+z) ”  Distributivity Like “ (x+y)z = xz+yz ”  De Morgan

L330 Tables of Logical Equivalences  Excluded middle  Negating creates opposite  Definition of implication in terms of Not and Or

L331 DeMorgan Identities DeMorgan ’ s identities allow for simplification of negations of complex expressions Conjunctional negation:  (p 1  p 2  …  p n )  (  p 1  p 2  …  p n ) “ It ’ s not the case that all are true iff one is false. ” Disjunctional negation:  (p 1  p 2  …  p n )  (  p 1  p 2  …  p n ) “ It ’ s not the case that one is true iff all are false. ”

L332 Tautology example Part 2 Demonstrate that [ ¬ p  (p  q )]  q is a tautology in two ways: 1. Using a truth table (did above) 2. Using a proof relying on Tables 5 and 6 of Rosen, section 1.2 to derive True through a series of logical equivalences

L333 Tautology by proof [ ¬ p  (p  q )]  q

L334 Tautology by proof [ ¬ p  (p  q )]  q  [( ¬ p  p)  ( ¬ p  q)]  qDistributive

L335 Tautology by proof [ ¬ p  (p  q )]  q  [( ¬ p  p)  ( ¬ p  q)]  qDistributive  [ F  ( ¬ p  q)]  q ULE

L336 Tautology by proof [ ¬ p  (p  q )]  q  [( ¬ p  p)  ( ¬ p  q)]  qDistributive  [ F  ( ¬ p  q)]  q ULE  [ ¬ p  q ]  q Identity

L337 Tautology by proof [ ¬ p  (p  q )]  q  [( ¬ p  p)  ( ¬ p  q)]  qDistributive  [ F  ( ¬ p  q)]  q ULE  [ ¬ p  q ]  q Identity  ¬ [ ¬ p  q ]  q ULE

L338 Tautology by proof [ ¬ p  (p  q )]  q  [( ¬ p  p)  ( ¬ p  q)]  qDistributive  [ F  ( ¬ p  q)]  q ULE  [ ¬ p  q ]  q Identity  ¬ [ ¬ p  q ]  q ULE  [ ¬ ( ¬ p)  ¬ q ]  q DeMorgan

L339 Tautology by proof [ ¬ p  (p  q )]  q  [( ¬ p  p)  ( ¬ p  q)]  qDistributive  [ F  ( ¬ p  q)]  q ULE  [ ¬ p  q ]  q Identity  ¬ [ ¬ p  q ]  q ULE  [ ¬ ( ¬ p)  ¬ q ]  q DeMorgan  [p  ¬ q ]  q Double Negation

L340 Tautology by proof [ ¬ p  (p  q )]  q  [( ¬ p  p)  ( ¬ p  q)]  qDistributive  [ F  ( ¬ p  q)]  q ULE  [ ¬ p  q ]  q Identity  ¬ [ ¬ p  q ]  q ULE  [ ¬ ( ¬ p)  ¬ q ]  q DeMorgan  [p  ¬ q ]  q Double Negation  p  [ ¬ q  q ] Associative

L341 Tautology by proof [ ¬ p  (p  q )]  q  [( ¬ p  p)  ( ¬ p  q)]  qDistributive  [ F  ( ¬ p  q)]  q ULE  [ ¬ p  q ]  q Identity  ¬ [ ¬ p  q ]  q ULE  [ ¬ ( ¬ p)  ¬ q ]  q DeMorgan  [p  ¬ q ]  q Double Negation  p  [ ¬ q  q ] Associative  p  [q  ¬ q ] Commutative

L342 Tautology by proof [ ¬ p  (p  q )]  q  [( ¬ p  p)  ( ¬ p  q)]  qDistributive  [ F  ( ¬ p  q)]  q ULE  [ ¬ p  q ]  q Identity  ¬ [ ¬ p  q ]  q ULE  [ ¬ ( ¬ p)  ¬ q ]  q DeMorgan  [p  ¬ q ]  q Double Negation  p  [ ¬ q  q ] Associative  p  [q  ¬ q ] Commutative  p  T ULE

L343 Tautology by proof [ ¬ p  (p  q )]  q  [( ¬ p  p)  ( ¬ p  q)]  qDistributive  [ F  ( ¬ p  q)]  q ULE  [ ¬ p  q ]  q Identity  ¬ [ ¬ p  q ]  q ULE  [ ¬ ( ¬ p)  ¬ q ]  q DeMorgan  [p  ¬ q ]  q Double Negation  p  [ ¬ q  q ] Associative  p  [q  ¬ q ] Commutative  p  T ULE  T Domination

Quiz next class Chapter 1 44