Logic and Proofs Notes
Implications and Logical Equivalence
Example of Lying
- Scenario: Someone promises to buy a new car if you graduate from Oberlin with honors in mathematics.
- Lying occurs: Only if you graduate from Oberlin with honors in mathematics, and they don't buy you a new car.
Logical Equivalence
- Claim: is logically equivalent to
- Verification: Use a truth table to confirm their equivalence.
Knights and Knaves Worksheet
- Reference to a worksheet on Knights and Knaves.
Implication
- Truth Table for Implication ():
- T T: T
- T F: F
- F T: T
- F F: T
- Key Point: When the hypothesis (P) is false, the implication () is true, regardless of the conclusion (Q).
- Vacuous Truth: Some say when the hypothesis (P) is false, the implication () is vacuously true.
Alternate Ways of Expressing
- If P then Q.
- P implies Q.
- Q if P.
- P is a sufficient condition for Q.
- Q is a necessary condition for P.
- P only if Q.
- Example with P = "x > 5" and Q = "x > 3"
- If x > 5 then x > 3.
- x > 5 implies that x > 3.
- x > 3 if x > 5.
- x > 5 is a sufficient condition for x > 3.
- x > 3 is a necessary condition for x > 5.
- x > 5 only if x > 3.
- Note: Rephrasing example 4: To show that x > 3 holds, it suffices to show that x > 5.
Contrapositive
- is logically equivalent to
- The implication is called the contrapositive of
- Truth Table:
| P | Q | ~Q | ~P | |
|---|---|---|---|---|
| T | T | F | F | |
| T | F | T | F | |
| F | T | F | T | |
| F | F | T | T | |
DeMorgan's Laws |
Example: Showing Equivalence
| P | Q | \ | ||||
|---|---|---|---|---|---|---|
| T | T | T | F | F | F | |
| T | F | F | T | T | T | |
| F | T | T | F | F | F | |
| F | F | T | F | T | F | |
Equivalence |
- (P if and only if Q)
- Equivalent to
- Truth Table:
| P | Q | ||
|---|---|---|---|
| T | T | T | |
| T | F | F | |
| F | T | F | |
| F | F | T | |
Quantifiers |
- Existential Quantifier: (There exists)
- Example: (There exists a number x such that )
- Specifying the domain: (There exists a real number x such that )