Download presentation
Presentation is loading. Please wait.
Published byEmil Fisher Modified over 9 years ago
1
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
2
Today’s Topics: Equivalence and Validity 1. Proving equivalence of two propositions using truth tables 2. Proving validity of an argument form using truth tables Converse, iff, contrapositive 2
3
1. Proving equivalence of two propositions using truth tables 3
4
Which pair of propositions are equivalent to each other? pq¬q¬pp → q ¬p ∨ q TTFFTT TFTFFF FTFTTT FFTTTT 4 A.p, ¬p B.p → q, ¬p C.q, ¬p ∨ q D.¬q, ¬p E.Other/none/ more than one
5
Truth table for (p → q) ∧ ¬p pqp → q¬p (p → q) ∧ ¬p TTTFF TFFFF FTTTT FFTTT 5 (p → q) ∧ ¬p is equivalent to: A.q B.p → q C.¬p ∨ q D.¬p E.Other/none/m ore than one
6
Hardware for (p → q) ∧ ¬p Hardware for ¬p 6 Back to the Algebra analogy: we do similar simplification in jr. high math: a + b – 2a + 3b + a –(8b/2) + a = a
7
Hardware design efficiency Improved performance of CPUs depends in part on squeezing logic onto as tiny amount of silicon as possible, and using as little electricity/heat as possible. Minimizing logic gates helps both. 7
8
How can we prove that two propositions are not equivalent? A. Make a truth table that has columns for both, and verify that not all the entries in the two columns are T B. Make a truth table that has columns for both, and verify that at least one of the entries in the two columns is F C. Make a truth table that has columns for both, and make sure that the two columns are not identical to each other. D. Make a truth table that has columns for both, and make sure that in the row where the input variables are all T, the propositions are both F 8
9
2. Proving validity of an argument form using truth tables Also: converse, iff, and contrapositive 9
10
If Sally is one of the 47% who do not pay income tax, then Sally is an Obama voter. Therefore, if Sally is an Obama voter, then Sally is one of the 47% who do not pay income tax.* What is the argument form? A. (p → q) (q → p) B. (¬p → ¬q) (¬q → ¬p) C. (p → q) (p → q) D. (¬p → ¬q) (¬p → ¬q) E. Other/none/more than one 10 Be the fact-checker! * I made up this example, this is not what he said in the video.
11
1. Translate to logic form: (p→q) (q→p) 2. Change the “therefore” into “implies” (p→q) → (q→p) 3. Make a truth table for that proposition (preferably step-by-step), and see if ________________________... 11 Be the fact-checker! Same argument form as this: “If this shape is a square, then this shape has four equal-length sides connected at right angles. Therefore, if this shape has four equal-length sides connected at right angles, then this shape is a square.” Whether or not you agree with the statement, is the argument form valid? Steps to determining if it is valid:
12
Step-by-step truth table for (p→q) → (q→p) So, is the argument form valid? A. Valid B. Not valid In your groups, say in words what it is about this table that shows it is valid or not valid. pqp→qp→qq→pq→p(p→q)→ (q→p) TTTTT TFFTT FTTFF FFTTT 12
13
Converse error Here is another example with the same form: If this shape is a square, then this shape is a rectangle. Therefore, if this shape is a rectangle, then this shape is a square. No! p→ q and q→p are the converse of each other. It is not safe to assume that if p→q is true, then q→p is also true! The converse could be true though…as in the equal sides/square example. If both p→q and q→p are true, then we say p↔q (“p iff q”). 13
14
Converse Error Here is another argument a similar form. Remember this? “If something is made out of wood, then it floats. Therefore, if she floats, then she is made out of wood [and therefore a witch!]” 14
15
Argument validity What about this? If this shape is a square, then this shape is a rectangle. Therefore, if this shape is not a rectangle, then this shape is not a square. 1. Translate to logic, then replace with →, giving: (p→q)→(¬q→¬p) 2. Make a truth table: 15 pq¬q¬pp→qp→q¬q→¬p(p→q)→ (¬q→¬p) TTFFT TFTFF FTFTT FFTTT Argument form is? A.Valid B.Not valid Why?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.