CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.

Slides:



Advertisements
Similar presentations
1a)I can identify the hypothesis and the conclusion of a conditional 1b)I can determine if a conditional is true or false 1c)I can write the converse of.
Advertisements

Logic Day Two.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
Prof. Shachar Lovett Clicker frequency: CA CSE 20 Discrete math Prof. Shachar Lovett
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
CS128 – Discrete Mathematics for Computer Science
So far we have learned about:
Mathematical Induction Assume that we are given an infinite supply of stamps of two different denominations, 3 cents and and 5 cents. Prove using mathematical.
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.
The Foundations: Logic and Proofs
Welcome to Interactive Chalkboard 2.3 Conditional Statements.
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.
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.
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
BY: MISS FARAH ADIBAH ADNAN IMK. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC INTRODUCTION PROPOSITION COMPOUND STATEMENTS LOGICAL.
2.3 Analyze Conditional Statements. Objectives Analyze statements in if-then form. Analyze statements in if-then form. Write the converse, inverse, and.
Review I Rosen , 3.1 Know your definitions!
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Chapter 5 – Logic CSNB 143 Discrete Mathematical Structures.
(CSC 102) Lecture 3 Discrete Structures. Previous Lecture Summary Logical Equivalences. De Morgan’s laws. Tautologies and Contradictions. Laws of Logic.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
COS 150 Discrete Structures Assoc. Prof. Svetla Boytcheva Fall semester 2014.
The Inverse Error Jeffrey Martinez Math 170 Dr. Lipika Deka 10/15/13.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
CSS 342 Data Structures, Algorithms, and Discrete Mathematics I
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
Lecture 4. CONDITIONAL STATEMENTS: Consider the statement: "If you earn an A in Math, then I'll buy you a computer." This statement is made up of two.
Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems or solving problems, creativity and insight.
Conditional Statements
Chapter 3: Introduction to Logic. Logic Main goal: use logic to analyze arguments (claims) to see if they are valid or invalid. This is useful for math.
Lecture 9 Conditional Statements CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
LOGIC.
Lesson 20 INTERPRETING TRUTH TABLES. Review Conditional Statements (Less. 17) Original If p, then q. Converse If q, then p. Inverse If ~p, then ~q. Contrapositive.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Conditional Statements – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Conditional Statements Reading: Kolman, Section 2.2.
Section 1.1. Section Summary Propositions Connectives Negation Conjunction Disjunction Implication; contrapositive, inverse, converse Biconditional Truth.
Chapter 2 Fundamentals of Logic 1. What is a valid argument or proof?
Mathematics for Comter I Lecture 2: Logic (1) Basic definitions Logical operators Translating English sentences.
رياضيات متقطعة لعلوم الحاسب MATH 226. Text books: (Discrete Mathematics and its applications) Kenneth H. Rosen, seventh Edition, 2012, McGraw- Hill.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Analyzing Arguments Section 1.5. Valid arguments An argument consists of two parts: the hypotheses (premises) and the conclusion. An argument is valid.
Section 1.1. Propositions A proposition is a declarative sentence that is either true or false. Examples of propositions: a) The Moon is made of green.
If-then statements April 4, What is an if-then statement? One of the postulates we looked at earlier stated: If B is between A and C, then AB +
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Logic The Conditional and Related Statements Resources: HRW Geometry, Lesson 12.3.
1 Statements and Operations Statements and operators can be combined in any way to form new statements. PQ PQPQPQPQ  (P  Q) (  P)  (  Q) TTTFF.
Chapter 1. Chapter Summary  Propositional Logic  The Language of Propositions (1.1)  Logical Equivalences (1.3)  Predicate Logic  The Language of.
Module Code MA0003NI: Computing mathematics Lecture for Week Autumn.
Chapter 1 Logic and proofs
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Chapter 1 Propositional Logic
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
DISCRETE MATHEMATICS CHAPTER I.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
(CSC 102) Discrete Structures Lecture 2.
MATH 15A – Discrete Mathematics
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
Propositional Calculus: Boolean Algebra and Simplification
Information Technology Department
Propositional Equivalence (§1.2)
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
2-3 Conditional Statements
Different Forms of Conditional Statements
Presentation transcript:

CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett

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

1. Proving equivalence of two propositions using truth tables 3

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

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

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

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

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

2. Proving validity of an argument form using truth tables Also: converse, iff, and contrapositive 9

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.

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 ________________________ 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:

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

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

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

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?