Class: CSE 16 Subject: computer-science discrete-math Date: 2024-11-06 Teacher: Prof. Musacchio

Direct Proof

Example

  • Proposition If two integers have opposite parity, then their sum is odd.

    • Proof. Suppose m and n are two integers with opposite parity. We need to show that m + n is odd. This is done in two cases, as follows.
    • Case 1.
      • Suppose is even and n is odd.
      • Thus and for some integers and .
      • Therefore , which is odd (by Definition 4.2).
    • Case 2.
      • Suppose is odd and is even.
      • Thus and for some integers and .
      • Therefore , which is odd (by Definition 4.2).
  • The phrase “Without loss of generality…” is a common way of signaling that the proof is treating just one of several nearly identical cases.