Lecture notes

Proof by contradiction

  • You assume that what you want to prove is false
  • You deduce something absurd
  • Assumption “not p” cannot be true then p must be true

Proof by contrapositive

  • If you want to prove “if p, then q”
  • You can prove “if not q, then not p” (logically equivalent to the first one)

Quantifiers

When dealing with proof by contrapositive, the quantifier must not change, only the implication

Example

prime x is odd Contrapositive: even x is not prime

  • x even
  • x has more than 2 divisors, namely 1, 2k, 2, k
  • x is not prime

Example

Contrapositive:

  • Let
      • is obviously smaller than 1

Lecture slides