What’s something new I learned this week?
- proof by cases :
Attention : the union of the cases are covering ALL possibilities !!!
- uniqueness (math prerequisite) : if m and n are natural numbers, with n ≠ 0, then there is exactly one pair natural numbers (q, r) such that: m = qn + r, n > r ≥ 0,divide m by n, the quotient and remainder are unique.
- Patterns of inference :
Two categories of inference rules
➔ elimination: larger statement => smaller statement
- introduction rules:
2. conjunction introduction: c is red, c is fast => c is red and fast
3. disjunction introduction: c is red => c is red or fast
4. implication introduction: assume A, then B ⇔ A => B
assume ¬B, then ¬A ⇔ A => B
5. equivalence introduction: A => B and B <=> A <=> B
6. universal introduction: assume a ∈ D, then P(a) =>
∀ x ∈ D, P(x)
7. existential introduction: P(a) and a ∈ D =>
∃ x ∈ D, P(x)
- elimination rules:
A and ¬A => contradiction!
2. conjunction elimination: A ∧ B ⇔ A and B
3. disjunction elimination: A ∨ B and ¬A => B
4. implication elimination: A => B and A => B
A => B and ¬B => ¬A
5. equivalence elimination: A ⇔ B => A => B and B => A
6. universal elimination: ∀ x ∈ D, P(x) and a ∈ D => P(a)
7. existential elimination: ∃ x ∈ D, P(x) =>
Let a ∈ D such that P(a)
- Tips for how to be good at proofs:
➔ become familiar with these patterns, by lots of practice
➔ recognize these patterns in your proof, use the manipulation rules to ger closer to your target.
- what “running time means in computer science:
- absolute running time is not important: