Open Lemmata

Notation and traps

v1.0.1 Samuel Okwuonu CC BY-SA 4.0 core/notation

Writing proofs the way typeset notes write them, and the mistakes the checker must refuse.

Verified every entry gives its recorded verdict under engine 0.4.0, checked 23 November 2026.

notation Writing the notes' notation11 entries

  1. Notation
    Theorem 1.1 in Unicodechecks · at Course
    Theorem: "Triangle inequality"Claim: ∀ a ∈ ℝ, ∀ b ∈ ℝ, |a + b| ≤ |a| + |b|Proof:    Let a, b : ℝ    Step: |a + b| ≤ |a| + |b|QED
  2. Notation
    Definition 2.6 shape: forall eps > 0, exists delta > 0checks · at Course
    Theorem: "lim 3x = 6 at x = 2, epsilon-delta"Claim: ∀ ε > 0, ∃ δ > 0, ∀ x ∈ ℝ, |x − 2| < δ ⇒ |3·x − 6| < εProof:    Given ε : ℝ where ε > 0    Let δ = ε / 3    Subproof:        Given x : ℝ        Assume |x − 2| < δ        Step: |3·x − 6| = 3·|x − 2|        Step: < 3·δ        Step: = ε    Therefore ∃ δ > 0, ∀ x ∈ ℝ, |x − 2| < δ ⇒ |3·x − 6| < ε [witness: ε / 3]QED
  3. Notation
    Example 2.20 with ∞ and \inftychecks · at Course
    Step: lim(1/x, x, 0, "+") = ∞Step: \lim_{x \to 0^-} 1/x = -\inftyStep: lim(x², x, -∞) = ∞
  4. Notation
    Example 3.22 geometric series in Unicodechecks · at Course
    Let r ∈ ℝAssume |r| < 1Step: \sum_{k=0}^{\infty} r^k = 1/(1 − r)
  5. Notation
    |S_n| = n! written with the postfix bangchecks · at Course
    Let n : ℕAssume n ≥ 1Step: n! = n·(n − 1)!Step: 5! = 120
  6. Notation
    Remark 4 with superscript inverseschecks · at Course
    Assume Group(G, op, e, inv)Given a, b : GStep: (a·b)⁻¹ = b⁻¹·a⁻¹Step: a·a⁻¹ = eStep: a²·a³ = a⁵Step: a⁰ = e
  7. Notation
    Elements declared with ∈checks · at Course
    Assume Group(G, op, e, inv)Let g ∈ GStep: g·e = gStep: e·g = g
  8. Notation
    Bounded quantifier over a group carrierchecks · at Course
    Theorem: "Every element has an inverse"Claim: Group(G, op, e, inv) => ∀ a ∈ G, ∃ b ∈ G, op(a, b) = eProof:    Assume Group(G, op, e, inv)    Given a : G    Therefore exists b : G, op(a, b) = e [witness: inv(a)]QED
  9. Notation
    Logical connectives in Unicodechecks · at Course
    Let x : ℝAssume h: x > 2 ∧ x < 5Therefore x > 1 ∨ x < -1Therefore ¬(x = 0)Therefore x ≠ 0
  10. Notation
    Greek letters typed directlychecks · at Course
    Let α, β : ℝAssume α < βStep: (α + β)/2 < βStep: α < (α + β)/2
  11. Notation
    Sinh, arctan, floor and binomialchecks · at Course
    Let x : ℝStep: cosh(x)^2 - sinh(x)^2 = 1Step: tan(atan(x)) = xStep: floor(7/2) = 3Step: binomial(5, 2) = 10

traps Soundness traps26 entries

  1. Trap
    Oo is not a real numbertrap · fails, as it should · at Course
    Let a : RealStep: oo - 1 < oo - 2

    ∞ is not a number you can subtract from: ∞ − 1 and ∞ − 2 are both ∞, so neither is less than the other.

  2. Trap
    -oo is below every real, not abovetrap · fails, as it should · at Course
    Let a : RealStep: -oo > a

    In the extended reals −∞ < a for every real a, so −∞ > a is false.

  3. Trap
    Oo * 0 is indeterminatetrap · fails, as it should · at Course
    Step: oo * 0 = 0

    0 · ∞ is an indeterminate form; the notes leave it undefined.

  4. Trap
    A declared oo is an ordinary variabletrap · fails, as it should · at Course
    Let oo : RealStep: oo > 5

    Once `oo` is declared as a variable it is just a real number, so nothing makes it greater than 5.

  5. Trap
    Limits at infinity have one side onlytrap · fails, as it should · at Course
    Step: lim(1/x, x, oo, "+") = 0

    x can only approach ∞ from below, so a direction such as "+" makes no sense there.

  6. Trap
    Sin(1/x) has no limit at 0trap · fails, as it should · at Course
    Step: lim(sin(1/x), x, 0) = 0

    sin(1/x) oscillates between −1 and 1 in every neighbourhood of 0 (Example 2.34), so it has no limit.

  7. Trap
    Geometric series needs |r| < 1trap · fails, as it should · at Course
    Let r : RealStep: sum(k, 0, oo, r^k) = 1/(1 - r)

    Σ rᵏ converges to 1/(1 − r) only when |r| < 1; with nothing known about r the sum may diverge.

  8. Trap
    Partial geometric sum needs r != 1trap · fails, as it should · at Course
    Let r : RealLet n : NatStep: sum(k, 0, n, r^k) = (1 - r^(n + 1))/(1 - r)

    At r = 1 the partial sum is n + 1 and (1 − rⁿ⁺¹)/(1 − r) divides by zero; the closed form needs r ≠ 1.

  9. Trap
    Rho^n -> 0 needs rho < 1trap · fails, as it should · at Course
    Let \rho : RealAssume \rho > 1Step: lim(\rho^n, n, oo) = 0

    For ρ > 1, ρⁿ → ∞ (Example 3.8), not 0.

  10. Trap
    |sin| <= 1 does not give |sin| <= 1/2trap · fails, as it should · at Course
    Let x : RealStep: |sin(x)| <= 1/2

    sin reaches 1 (at π/2), so |sin x| ≤ 1/2 is false in general.

  11. Trap
    Exp > 0 does not give exp > 1trap · fails, as it should · at Course
    Let x : RealStep: exp(x) > 1

    eˣ < 1 for every x < 0.

  12. Trap
    Log is not bounded below by its argumenttrap · fails, as it should · at Course
    Let x : RealAssume x > 0Step: log(x) >= x - 1

    log x ≤ x − 1 for x > 0, with equality only at 1; the reverse inequality fails, e.g. at x = 2.

  13. Trap
    Symbolic gcd is not 1trap · fails, as it should · at Course
    Let n, k : IntStep: gcd(n, k) = 1

    gcd(n, k) depends on n and k: gcd(4, 6) = 2.

  14. Trap
    Symbolic lcm is not the producttrap · fails, as it should · at Course
    Let n, k : IntStep: lcm(n, k) = n * k

    lcm(n, k) = nk only when gcd(n, k) = 1: lcm(4, 6) = 12, not 24.

  15. Trap
    Wrong factorialtrap · fails, as it should · at Course
    Step: 4! = 12

    4! = 4 · 3 · 2 · 1 = 24.

  16. Trap
    Congruent mod 0 is equalitytrap · fails, as it should · at Course
    Let a : IntStep: a + 1 = a (mod 0)

    Modulo 0, a ≡ b means b − a is a multiple of 0, i.e. a = b; a + 1 ≠ a.

  17. Trap
    Congruence does not survive divisiontrap · fails, as it should · at Course
    Let i, k, n : IntAssume h: 2 * i = 2 * k (mod n)Therefore i = k (mod n)

    2i ≡ 2k (mod n) does not give i ≡ k (mod n) when n is even: i = 0, k = 2, n = 4.

  18. Trap
    (ab)^-1 is not a^-1 b^-1 in a grouptrap · fails, as it should · at Course
    Assume Group(G, op, e, inv)Given a, b : GStep: (a * b)^-1 = a^-1 * b^-1

    (ab)⁻¹ = b⁻¹a⁻¹ (Remark 4); a⁻¹b⁻¹ is a different word unless the group is abelian.

  19. Check
    But (ab)^-1 = a^-1 b^-1 in an abelian groupchecks · at Course
    Assume AbelianGroup(G, op, e, inv)Given a, b : GStep: (a * b)^-1 = a^-1 * b^-1
  20. Trap
    A^2 b^2 is not (ab)^2 in a grouptrap · fails, as it should · at Course
    Assume Group(G, op, e, inv)Given a, b : GStep: a^2 * b^2 = (a * b)^2

    (ab)² = abab, which equals a²b² = aabb only if ba = ab.

  21. Check
    Real variables still commute under *checks · at Course
    Assume Group(G, op, e, inv)Let x, y : RealStep: x * y = y * x
  22. Check
    A hypothesis can make two words equalchecks · at Course
    Assume Group(G, op, e, inv)Given a, b : GAssume h: op(a, b) = op(b, a)Step: op(op(a, b), inv(a)) = b
  23. Trap
    An undeclared type is still refusedtrap · fails, as it should · at Course
    Given a : Widget

    Widget is neither a number type nor a structure's carrier, so it cannot be a type.

  24. Trap
    Bounded exists keeps its guardtrap · fails, as it should · at Course
    Let x : RealTherefore exists d > 0, d < 0

    ∃ d > 0 with d < 0 asks for a number that is both positive and negative.

  25. Trap
    Bounded forall keeps its guardtrap · fails, as it should · at Course
    Therefore forall x > 0, x > 1

    ∀ x > 0, x > 1 fails at x = 1/2.

  26. Trap
    A sum that divides by zero is undefinedtrap · fails, as it should · at Course
    Step: sum(k, -1, 1, 1/k) = 0

    The index runs through k = 0, where 1/k is undefined, so the sum has no value.