Discrete Mathematics Lecture # 3.

Slides:



Advertisements
Similar presentations
Propositional Equivalences
Advertisements

Propositional Equivalences
2.2 Conditional Statements. Goals Identify statements which are conditional Identify the antecedent and consequent of a conditional statement Negate conditional.
Logic 2 The conditional and biconditional
Logic 1 Statements and Logical Operators. Logic Propositional Calculus – Using statements to build arguments – Arguments are based on statements or propositions.
Propositional Logic. Negation Given a proposition p, negation of p is the ‘not’ of p.
Chapter 9: Boolean Algebra
CSci 2011 Discrete Mathematics Lecture 3 CSci 2011.
Propositions and Truth Tables
Discrete Maths 2. Propositional Logic Objective
Discrete Mathematics and Its Applications
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
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.
Thinking Mathematically Logic 3.6 Negations of Conditional Statements and De Morgan’s Laws.
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.
Lecture Propositional Equivalences. Compound Propositions Compound propositions are made by combining existing propositions using logical operators.
Reading: Chapter 4 (44-59) from the text book
Thinking Mathematically Equivalent Statements, Conditional Statements, and De Morgan’s Laws.
Lecture 9 Conditional Statements CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Section 1.2: Propositional Equivalences In the process of reasoning, we often replace a known statement with an equivalent statement that more closely.
UMBC CMSC 203, Section Fall CMSC 203, Section 0401 Discrete Structures Fall 2004 Matt Gaston
Symbolic Logic The Following slide were written using materials from the Book: The Following slide were written using materials from the Book: Discrete.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
Discrete Mathematics Lecture # 7. Bi conditional  If p and q are statement variables, the bi conditional of p and q is  “ p if, and only if, q ” and.
رياضيات متقطعة لعلوم الحاسب MATH 226. Text books: (Discrete Mathematics and its applications) Kenneth H. Rosen, seventh Edition, 2012, McGraw- Hill.
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.
Mathematics for Comter I Lecture 3: Logic (2) Propositional Equivalences Predicates and Quantifiers.
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.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 01: Boolean Logic Sections 1.1 and 1.2 Jarek Rossignac.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Discrete Math by R.S. Chang, Dept. CSIE, NDHU1 Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems.
Law of logic Lecture 4.
CS-7081 Application - 1. CS-7082 Example - 2 CS-7083 Simplifying a Statement – 3.
Discrete Mathematical
2. The Logic of Compound Statements Summary
Conditional Statements
Logic Day #2 Math Studies IB NPHS Miss Rose
The Foundations: Logic and Proofs
CSE15 Discrete Mathematics 01/23/17
DISCRETE MATHEMATICS CHAPTER I.
CSNB 143 Discrete Mathematical Structures
CS 202, Spring 2008 Epp, sections 1.1 and 1.2
6/20/2018 Arab Open University Faculty of Computer Studies M131 - Discrete Mathematics 6/20/2018.
Logic.
Citra Noviyasari, S.Si, MT
Logical Equivalence of Propositions
MATH 245 Spring 2009 This is mathematics for computer science
(CSC 102) Discrete Structures Lecture 2.
Boolean Algebra.
Discrete Mathematics Lecture # 2.
Mathematics for Computing
The Foundations: Logic and Proofs
Principles of Computing – UFCFA3-30-1
Propositional Equivalences
Information Technology Department
CS 220: Discrete Structures and their Applications
CS201: Data Structures and Discrete Mathematics I
Propositional Equivalences
CSE 311 Foundations of Computing I
Discrete Mathematics Lecture # 8.
CSS 342 Data Structures, Algorithms, and Discrete Mathematics I
Discrete Mathematics and Its Applications Kenneth H
CSE 321 Discrete Structures
Cs Discrete Mathematics
Foundations of Discrete Mathematics
Discrete Structures Prepositional Logic 2
A THREE-BALL GAME.
CS201: Data Structures and Discrete Mathematics I
The Foundations: Logic and Proofs
Presentation transcript:

Discrete Mathematics Lecture # 3

Laws of Logic Negation laws Double negation laws Idempotent laws p  ~ p ≡ T p  ~ p ≡ C Double negation laws ~ (~ p ) ≡ p Idempotent laws p  p ≡ p p  p ≡ p

Laws of Logic De Morgan’s laws Universal bound laws \ Domination Laws ~(p  q) ≡ ~p  ~q ~(p  q) ≡ ~p  ~q Universal bound laws \ Domination Laws p  C ≡ C p  T ≡ T

Laws of Logic Absorption laws Negation of T & C p  (p  q) ≡ p ~C ≡ T

Laws of Logic Identity Laws Commutative laws Distributive laws p  F ≡ p p  T≡ p Commutative laws p  q ≡ q  p p  q≡ q  p Distributive laws p  (q  r) ≡ (p  q)  (p  r) p  (q  r) ≡ (p  q)  (p  r)

Application Using law of logic, simplify the statement form p  [~(~p  q)] Solution  p  [~(~p)  (~q)] DeMorgan’s Law p  [p(~q)] Double Negative Law  [p  p](~q) Associative Law for  p  (~q) Indempotent Law which is the simplified statement form.

Example Verify that ~ (~ p  q)  (p  q) p Solution  (~(~p)  ~q) (p  q) De Morgan’s Law (p  ~q)  (p  q) Double Negative Law  p  (~q  q) Distributive Law in reverse  p  c Negation Law  p Identity Law

Simplifying a Statement “You will get an A if you are hardworking and the sun shines, or you are hardworking and it rains.” Solution: Let p = “You are hardworking’ q = “The sun shines” r = “It rains” The condition is then (p  q)  (p  r)

Simplifying a Statement The condition was (p  q)  (p  r) And using distributive law in reverse,  p  (q  r) Putting p  (q  r) back into English, we can rephrase the given sentence as “You will get an A if you are hardworking and the sun shines or it rains.

Exercise Use Logical Equivalence to rewrite each of the following sentences more simply. It is not true that I am tired and you are smart. It is not true that I am tired or you are smart. I forgot my pen or my bag and I forgot my pen or my glasses. It is raining and I have forgotten my umbrella, or it is raining and I have forgotten my hat.

Conditional Statements "If you earn an A in Math, then I'll buy you a computer." p: “you earn an A in Math” and q: “I'll buy you a computer”

Conditional Statements The original statement is then saying: If p is true, then q is true Or If p, then q We also phrase this as p implies q, and is denoted p  q.

Truth table for p  q

Conditional Statements or Implication If p and q are statement variables, the conditional of q by p is “If p then q” or “p implies q” and is denoted p  q.

Conditional statements or implication The arrow " " is the conditional operator p is called the hypothesis(or antecedent) q is called the conclusion (or consequent).

Example Statements “If 1 = 1, then 3 = 3.” “If 1 = 1, then 2 = 3.” “If 1 = 1, then 1 = 2 and 2 = 3.” “If 1 = 3 or 1 = 2 then 3 = 3.”

Example Statements Truth Values “If 1 = 1, then 3 = 3.” True “If 1 = 1, then 2 = 3.” False “If 1 = 0, then 3 = 3.” True “If 1 = 2, then 2 = 3.” True “If 1 = 1, then 1 = 2 and 2 = 3.” False “If 1 = 3 or 1 = 2 then 3 = 3.” True

Alternative ways of expressing implications “if p then q” “not p unless q” “p implies q” “q follows from p” “if p, q” “q if p” “p only if q”

Alternative ways of expressing implications “q whenever p” “p is sufficient for q” “a sufficient condition for q is p” “q is necessary for p” “a necessary condition for p is q”

Exercise a) Your guarantee is good only if you bought your CD player less than 90 days ago. If your guarantee is good, then you must have bought your CD player less than 90 days ago. b) To get tenure as a professor, it is sufficient to be world-famous. If you are world-famous, then you will get tenure as a professor.

Exercise c) That you get the job implies that you have the best credentials. If you get the job, then you have the best credentials. d) It is necessary to walk 8 miles to get to the top of the Peak. If you get to the top of the peak, then you must have walked 8 miles.