Docsity

Equivalence, Lecture Notes - Computer Science, Study notes of Discrete Structures and Graph Theory

Partial preview of the text

Download Equivalence, Lecture Notes - Computer Science and more Study notes Discrete Structures and Graph Theory in PDF only on Docsity!

Lecture 3: Propositional

Equivalences

Zeph Grunschlag

Announcements

OH’s today moved to 3:30-5pm

HW1 due next Monday

CVN (Columbia Video Network) is hiring

work-study camera operators, multi-

media and video streaming people. No

experience required. Contact

[email protected].

Tautologies, contradictions,

contingencies

DEF: A compound proposition is called a tautology if no matter what truth values its atomic propositions have, its own truth value is T.

EG: p  ¬ p (Law of excluded middle)

The opposite to a tautology, is a compound proposition that’s always false – a contradiction.

EG: p  ¬ p

On the other hand, a compound proposition whose truth value isn’t constant is called a contingency.

EG: p  ¬ p

Tautologies and contradictions

The easiest way to see if a compound

proposition is a tautology/contradiction

is to use a truth table.

T

F

F

T

p  p

T

T

p  p

T

F

F

T

p  p

F

F

p  p

Tautology by truth table

p q ¬^ p^ p  q ¬^ p^ (p^ ^ q )^ [ ¬^ p^ (p^ ^ q )]^ q

T T

T F

F T

F F

Tautology by truth table

p q ¬^ p^ p  q ¬^ p^ (p^ ^ q )^ [ ¬^ p^ (p^ ^ q )]^ q

T T F

T F F

F T T

F F T

Tautology by truth table

p q ¬^ p^ p  q ¬^ p^ (p^ ^ q )^ [ ¬^ p^ (p^ ^ q )]^ q

T T F T F

T F F T F

F T T T T

F F T F F

Tautology by truth table

p q ¬^ p^ p  q ¬^ p^ (p^ ^ q )^ [ ¬^ p^ (p^ ^ q )]^ q

T T F T F T

T F F T F T

F T T T T T

F F T F F T

Logical Equivalences

DEF: Two compound propositions p, q are

logically equivalent if their biconditional

joining p  q is a tautology. Logical

equivalence is denoted by p  q.

EG: The contrapositive of a logical implication

is the reversal of the implication, while negating both components. I.e. the

contrapositive of p  q is ¬ q  ¬ p. As we’ll

see next: p  q  ¬ q  ¬ p

Logical Equivalence of

Conditional and Contrapositive

The easiest way to check for logical equivalence is to see if the truth tables of both variants

have identical last columns:

p q p  q

Q: why does this work given definition of ?

p q ¬ q ¬ p ¬ q ¬ p

Logical Equivalence of

Conditional and Contrapositive

The easiest way to check for logical equivalence is to see if the truth tables of both variants

have identical last columns:

T F T T

T F T F

T T F F

p q p  q

Q: why does this work given definition of ?

T T F F

p ¬ p ¬ q ¬ p T F T F

q ¬ q

Logical Equivalence of

Conditional and Contrapositive

The easiest way to check for logical equivalence is to see if the truth tables of both variants

have identical last columns:

T F T T

T F T F

T T F F

p q p  q

Q: why does this work given definition of ?

T T F F

p ¬ p ¬ q ¬ p T F T F

q F T F T

¬ q

Logical Equivalence of

Conditional and Contrapositive

The easiest way to check for logical equivalence is to see if the truth tables of both variants

have identical last columns:

T F T T

T F T F

T T F F

p q p  q

Q: why does this work given definition of ?

T F T T

T T F F

p ¬ q ¬ p F F T T

¬ p T F T F

q F T F T

¬ q

Logical Equivalences

A: p  q by definition means that p  q

is a tautology. Furthermore, the

biconditional is true exactly when the

truth values of p and of q are identical.

So if the last column of truth tables of p

and of q is identical, the biconditional

join of both is a tautology.