Docsity

Discrete Structure and Mathematics - Slides, Slides of Discrete Structures and Graph Theory

Partial preview of the text

Download Discrete Structure and Mathematics - Slides and more Slides Discrete Structures and Graph Theory in PDF only on Docsity!

CSD101 - Discrete Structures

(Discrete Mathematics)

Spring 2016

Lecture- 2

Logical Equivalence

Translating English Sentences

• “I have neither given nor received help on this exam”

Let p = “I have given help on this exam”

Let q = “I have received help on this exam”

¬p¬q

Translating English Sentences

• “You can access the Internet from campus only if you are

a computer science major or you are not a freshman.”

• Let a = “You can access the Internet from campus

c = “You are a computer science major,”

and f = “You are a freshman” respectively.

• This sentence can be represented as

a → (c ∨¬f ).

Exercise

• Let p and q be the propositions “The election is decided”

and “The votes have been counted,” respectively. Express

each of these compound propositions as an English

sentence.

1. ¬p

2. p ∨ q

3. ¬p ∧ q

4. q → p

5. ¬q → ¬p

6. ¬p → ¬q

7. p ↔ q

8. ¬q ∨ (p ∧ q)

Logical Equivalence

  • p is logically equivalent to q if their truth tables are the same. We write p  q.
  • When two compound propositions always have the same truth value, they are called equivalent.

Logical Equivalence

p q pq T T T T F F F T T F F T p q ¬p q¬p T T F T T F F F F T T T F F T T

Logical Equivalence

Implication Inverse Converse Contrapositive p qpq pqp   q qpq   p T T F F T T T T T F F T F T T F F T T F T F F T F F T T T T T T

Logical Equivalence

Equivalence Name p ∧ T ≡ p p ∨ F ≡ p Identity laws p ∨ T ≡ T p ∧ F ≡ F Domination laws p ∨ p ≡ p p ∧ p ≡ p Idempotent laws ¬ ( ¬ p) ≡ p Double negation law p ∨ q ≡ q ∨ p p ∧ q ≡ q ∧ p Commutative laws (p ∨ q) ∨ r ≡ p ∨ (q ∨ r) (p ∧ q) ∧ r ≡ p ∧ (q ∧ r) Associative laws p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r) p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r) Distribution Laws

Logical Equivalence

Equivalence Name ¬ (p ∧ q) ≡ ¬ p ∨¬ q ¬ (p ∨ q) ≡ ¬ p ∧¬ q De Morgan’s laws p ∨ (p ∧ q) ≡ p p ∧ (p ∨ q) ≡ p Absorption laws p ∨¬ p ≡ T p ∧¬ p ≡ F Negation laws

Logical Equivalence involving Implication Logical Equivalence involving Implication p → q ≡ ¬ p ∨ q p → q ≡ ¬ q →¬ p p ∨ q ≡ ¬ p → q p ∧ q ≡ ¬ (p →¬ q) ¬ (p → q) ≡ p ∧¬ q (p → q) ∧ (p → r) ≡ p → (q ∧ r) (p → r) ∧ (q → r) ≡ (p ∨ q) → r (p → q) ∨ (p → r) ≡ p → (q ∨ r) (p → r) ∨ (q → r) ≡ (p ∧ q) → r

Proof using Logical Equivalence

  • Show that (p  q)  q  p  q is logically equivalent. (p  q)  q  (p  q)  q DeMorgan’s  (p  q)  q Double negation  p  (q  q) Associative  p  q Idempotent

Proof using Logical Equivalence

Show that (p  q)  q is a Tautology.

Proof:

(p  q)  q

 (p  q)  q Implication

 ( p   q)  q De Morgan

  p  ( q  q) Associative

  p  T Negation

 T Dominations

Proof using Logical Equivalence Show that ( ( )) is logically equivalent.

.. ( ( )) ( ) DeMorgan's Law ( ( ) ) DeMorgan's Law ( ) Double Negation Law ( p p q p q L H S p p q p p q p p q p p q                                 ) ( ) Distributive Law ( ) Negation Law ( ) Commutative Law Identity Law .. p p p q F p q p q F p q R H S                     

Chapter Reading

  • Chapter 1 , Kenneth H. Rosen, Discrete Mathematics and Its Applications, Section 1.