Lecture 1: What is a Proof?
Propositional Logic Foundations
- Negation: \( \neg p \) (NOT p) — opposite truth value
- Conjunction: \( p \land q \) (p AND q) — true only if both are true
- Disjunction: \( p \lor q \) (p OR q) — true if at least one is true
- Exclusive OR: \( p \oplus q \) (p XOR q) — true if exactly one is true
- Implication: \( p \to q \) (if p then q) — false only when p is true and q is false
- Biconditional: \( p \leftrightarrow q \) (p if and only if q) — true when both have same truth value
Formula Classifications
Arguments and Reasoning
Predicate Logic & Quantifiers
Notation: \( \forall x \, P(x) \) means "P(x) is true for all x in the domain"
Notation: \( \exists x \, P(x) \) means "there exists at least one x such that P(x) is true"
Notation: \( \exists! x \, P(x) \) means "there exists exactly one x such that P(x) is true"
- \( \forall x \, \forall y \, P(x,y) \) — for all x and all y, P(x,y) is true
- \( \exists x \, \exists y \, P(x,y) \) — there exist x and y such that P(x,y) is true
- \( \forall x \, \exists y \, P(x,y) \) — for every x, there exists a y such that P(x,y)
- \( \exists x \, \forall y \, P(x,y) \) — there exists an x such that for all y, P(x,y)
- \( \neg (\forall x \, P(x)) \equiv \exists x \, \neg P(x) \)
- \( \neg (\exists x \, P(x)) \equiv \forall x \, \neg P(x) \)
Examples of Predicates
Proof Techniques
Proof Methods
Strategy: To prove \( p \to q \), assume p is true and show q must be true through logical steps.
Strategy: To prove \( p \), assume \( \neg p \) is true and derive a contradiction.
Strategy: To prove \( (p_1 \lor p_2 \lor \dots \lor p_n) \to q \), prove \( p_1 \to q \), \( p_2 \to q \), ..., and \( p_n \to q \).
- Base Case: Verify \( P(n_0) \) is true.
- Inductive Hypothesis: Assume \( P(k) \) is true for an arbitrary \( k \geq n_0 \).
- Inductive Step: Prove that \( P(k) \to P(k+1) \) is true.
- Constructive: Find a specific element \( a \) such that \( P(a) \) is true.
- Non-constructive: Prove that such an element must exist without explicitly finding it (often via contradiction).
Logical Laws & Equivalences
The symbol \( \equiv \) denotes logical equivalence. These laws allow us to simplify complex compound propositions.
| Name of Law | Equivalence |
|---|---|
| Identity Laws | \( p \land T \equiv p \) \( p \lor F \equiv p \) |
| Domination Laws | \( p \lor T \equiv T \) \( p \land F \equiv F \) |
| Idempotent Laws | \( p \lor p \equiv p \) \( p \land p \equiv p \) |
| Double Negation | \( \neg(\neg p) \equiv p \) |
| Commutative Laws | \( p \lor q \equiv q \lor p \) \( p \land q \equiv q \land p \) |
| Associative Laws | \( (p \lor q) \lor r \equiv p \lor (q \lor r) \) \( (p \land q) \land r \equiv p \land (q \land r) \) |
| Distributive Laws | \( p \lor (q \land r) \equiv (p \lor q) \land (p \lor r) \) \( p \land (q \lor r) \equiv (p \land q) \lor (p \land r) \) |
| De Morgan's Laws | \( \neg(p \land q) \equiv \neg p \lor \neg q \) \( \neg(p \lor q) \equiv \neg p \land \neg q \) |
| Absorption Laws | \( p \lor (p \land q) \equiv p \) \( p \land (p \lor q) \equiv p \) |
| Implication Law | \( p \to q \equiv \neg p \lor q \) |
Proof Examples
Proof: 1. Assume \( n \) is odd. By definition, \( n = 2k + 1 \) for some integer \( k \).
2. Square both sides: \( n^2 = (2k+1)^2 = 4k^2 + 4k + 1 \).
3. Factor out 2: \( n^2 = 2(2k^2 + 2k) + 1 \).
4. Let \( m = 2k^2 + 2k \). Since \( k \) is an integer, \( m \) is an integer.
5. \( n^2 = 2m + 1 \), which fits the definition of an odd number. Q.E.D.
Proof: We prove the contrapositive: "If \( n \) is even, then \( 3n + 2 \) is even."
1. Assume \( n \) is even. So \( n = 2k \).
2. Then \( 3n + 2 = 3(2k) + 2 = 6k + 2 = 2(3k + 1) \).
3. Since \( 3k+1 \) is an integer, \( 3n + 2 \) is essentially \( 2 \times \text{integer} \), which is even.
4. Since the contrapositive is true, the original statement is true.
Proof: 1. Assume for the sake of contradiction that \( \sqrt{2} \) is rational.
2. Then \( \sqrt{2} = a/b \) for integers \( a, b \) with no common factors (simplified).
3. \( 2 = a^2/b^2 \implies a^2 = 2b^2 \). Thus \( a^2 \) is even, implying \( a \) is even (\( a=2k \)).
4. Substitute back: \( (2k)^2 = 2b^2 \implies 4k^2 = 2b^2 \implies 2k^2 = b^2 \).
5. This implies \( b^2 \) is even, so \( b \) is even.
6. Contradiction: We assumed \( a \) and \( b \) had no common factors, but both are even.
7. Therefore, \( \sqrt{2} \) must be irrational.
Check:
If \( n = 2, 4 \geq 2 \) (True).
If \( n = -3, 9 \geq -3 \) (True).
If \( n = 0, 0 \geq 0 \) (True).
Wait: Is the domain integers or real numbers? If domain is \( \mathbb{R} \), let \( n = 0.5 \).
\( 0.5^2 = 0.25 \). Is \( 0.25 \geq 0.5 \)? False.
\( n = 0.5 \) is a counterexample for the domain of real numbers.
Quick Reference
📋 Foundations
Propositions are statements that are strictly True or False. We build complex logic using connectives (\( \land, \lor, \neg, \to \)).
🔍 Quantifiers
Universal (\( \forall \)): True for all elements.
Existential (\( \exists
\)): True for at least one element.
Remember: \( \neg(\forall x P(x)) \equiv \exists x \neg
P(x) \).
🛠️ Proof Strategy
1. Try Direct Proof first.
2. If "If...then", try Contrapositive.
3. If proving non-existence or irrationality, try Contradiction.
4. If dealing with \( \mathbb{N} \), try Induction.
⚠️ Common Pitfalls
- Confusing \( p \to q \) with \( q \to p \) (Converse error).
- Assuming "some" implies "not all".
- Division by zero in algebraic steps.
- Circular reasoning (assuming what you want to prove).
- \( p \to q \equiv \neg p \lor q \)
- \( p \to q \equiv \neg q \to \neg p \)
- \( \neg (p \to q) \equiv p \land \neg q \) (Negation of Implication)
- \( p \leftrightarrow q \equiv (p \to q) \land (q \to p) \)