Logic Leo Cheung. Stuff you need to know Logical equivalence Write logical formula from truth table De Morgan’s Law Contrapositive If and only if Modus.

Slides:



Advertisements
Similar presentations
CPSC 121: Models of Computation Unit 6 Rewriting Predicate Logic Statements Based on slides by Patrice Belleville and Steve Wolfman.
Advertisements

CSE115/ENGR160 Discrete Mathematics 01/26/12 Ming-Hsuan Yang UC Merced 1.
Chapter 1 The Logic of Compound Statements. Section 1.3 Valid & Invalid Arguments.
Notes on Logic Continued
CS128 – Discrete Mathematics for Computer Science
Chapter 1 The Logic of Compound Statements. Section 1.2 – 1.3 (Modus Tollens) Conditional and Valid & Invalid Arguments.
Uses for Truth Tables Determine the truth conditions for any compound statementDetermine the truth conditions for any compound statement Determine whether.
Laws of , , and  Excluded middle law Contradiction law P   P  T P   P  F NameLaw Identity laws P  F  P P  T  P Domination laws P  T  T P.
Discrete Mathematics Lecture 2 Alexander Bukharovich New York University.
Proof by Deduction. Deductions and Formal Proofs A deduction is a sequence of logic statements, each of which is known or assumed to be true A formal.
Introduction to Logic Logical Form: general rules
Copyright © Cengage Learning. All rights reserved.
Propositional Logic Lecture 2: Sep 9. Conditional Statement If p then q p is called the hypothesis; q is called the conclusion “If your GPA is 4.0, then.
Chapter 3 Introduction to Logic © 2008 Pearson Addison-Wesley. All rights reserved.
Chapter 3 Section 4 – Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
COS 150 Discrete Structures Assoc. Prof. Svetla Boytcheva Fall semester 2014.
Conditional Statements
COS 150 Discrete Structures Assoc. Prof. Svetla Boytcheva Fall semester 2014.
Thinking Mathematically Logic 3.6 Negations of Conditional Statements and De Morgan’s Laws.
2.2 Inductive and Deductive Reasoning. What We Will Learn Use inductive reasoning Use deductive reasoning.
Thinking Mathematically Logic 3.5 Equivalent Statements and Variation of Conditional Statements.
Thinking Mathematically Equivalent Statements, Conditional Statements, and De Morgan’s Laws.
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.
Section 2-2: Conditional Statements. Conditional A statement that can be written in If-then form symbol: If p —>, then q.
Thinking Mathematically
TRUTH TABLES. Introduction The truth value of a statement is the classification as true or false which denoted by T or F. A truth table is a listing of.
Logic The Lost Art of Argument. Logic - Review Proposition – A statement that is either true or false (but not both) Conjunction – And Disjunction – Or.
Chapter 2 Review Conditional Statements Laws of Logic.
MATHEMATICAL REASONING MATHEMATICAL REASONING. STATEMENT A SENTENCE EITHER TRUE OR FALSE BUT NOT BOTH A SENTENCE EITHER TRUE OR FALSE BUT NOT BOTH.
Dilemma: Division Into Cases Dilemma: p  q p  r q  r  r Premises:x is positive or x is negative. If x is positive, then x 2 is positive. If x is negative,
 2012 Pearson Education, Inc. Slide Chapter 3 Introduction to Logic.
Discrete Mathematics Lecture # 4. Conditional Statements or Implication  If p and q are statement variables, the conditional of q by p is “If p then.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
CT214 – Logical Foundations of Computing Darren Doherty Rm. 311 Dept. of Information Technology NUI Galway
Section 2.2 Homework Quiz Question Put the following Conditional Statement into If Then Form: All birds have feathers.
Geometry Chapter 2: Reasoning and Introduction to Proof We can do this dude!
Deductive and Inductive reasoning
CS-7081 Application - 1. CS-7082 Example - 2 CS-7083 Simplifying a Statement – 3.
Introduction to Logic © 2008 Pearson Addison-Wesley.
2. The Logic of Compound Statements Summary
3. The Logic of Quantified Statements Summary
Propositional Logic.
Discrete Mathematics Logic.
Logic.
Formal Logic CSC 333.
Thinking Mathematically
Truth Tables and Equivalent Statements
Lecture 03 Logic and Propositional Calculus Profs. Koike and Yukita
Logical Equivalence of Propositions
Discrete Mathematics Lecture # 2.
2 Chapter Introduction to Logic and Sets
Conditional Statements
3.5 Symbolic Arguments.
CS 220: Discrete Structures and their Applications
TRUTH TABLES continued.
Propositional Logic.
The Method of Deduction
1 Chapter An Introduction to Problem Solving
Chapter 3 Introduction to Logic 2012 Pearson Education, Inc.
Find the reference angle for the angle measuring {image}
Discrete Mathematics Logic.
1 Chapter An Introduction to Problem Solving
Equivalent Statements
Equivalent Statements
Discrete Mathematics Lecture 4 Logic of Quantified Statements
Copyright © Cengage Learning. All rights reserved.
Logic and Reasoning.
Angles, Angle Pairs, Conditionals, Inductive and Deductive Reasoning
Interpreting Truth tables (biconditional statements)
Presentation transcript:

Logic Leo Cheung

Stuff you need to know Logical equivalence Write logical formula from truth table De Morgan’s Law Contrapositive If and only if Modus Ponens, Modus Tollens Quantifier

Logically equivalence Two statement is logically equivalence if they have the same truth value in every situation

Logically equivalence ? FFFTFF FTTFFF TFTTTT TTTFFF So they are logically equivalence

De Morgan’s Law

What is ? ▫ What is ? ▫ De Morgan’s Law

Contrapositive What is the contrapositive of ▫If I do not understand the course materials, I go to tutorial. ▫Sons of Li Ka Shing are all rich. ▫

Contrapositive Answers ▫If I don’t go to tutorial, I understand the course materials. ▫If one is not rich, he is not son of Li Ka Shing. ▫

If and only if p if q p only if q p if and only if q Are they the same? ▫P if and only if Q ▫P = Q ▫~P if and only if ~Q They are all the same.

Playing with if Are they the same? 1.If it rains, I will stay 2.It does not rain or I will stay 3.If I do not stay, it does not rain How about the followings? 4.If it does not rain, I do not stay 5.If I stay, it rains 6.It rains and I do not stay 1 = 2 = 3 4 = 5 ≠ 1 6 is negation of 1 1 = 2 = 3

Modus Ponens If you know… ▫If p then q ▫p is true Conclusion: q is true

If you skip csc2110 lecture, you will fail the course. And you really skip csc2110 lecture. Conclusion? Modus Ponens You will fail the course.

Modus Tollens If you know… ▫If p then q ▫q is false Conclusion: p is false

Modus Tollens If a figure is a quadrilateral, then the sum of its interior angles is 360 degree. The sum of the interior angle of a figure is not 360 degree. Conclusion? The figure is not a quadrilateral.

Are they true? Given ▫If Leo cheats in the exam, then Leo sits in the back row. ▫Leo sits in the back row Conclusion: Leo cheats in the exam. Wrong conclusion!

Are they true? Given ▫If interest rates are going up, stock market prices will go down. ▫Interest rates are not going up. Conclusion: Stock market prices will not go down. Wrong conclusion!

Argument Conclusion:

Argument Given That means must be false. Conclusion:

Exercises Textbook ▫1.1: ▫1.2: ▫1.3: ▫2.1: ▫2.2: 3(a,c) ▫2.3: ▫2.4: Answers can be found in the textbook.

END