AFTD Auto-Formalizing Theoretical Domains

sq_sub_one_add_one_ge_sq_div_two

theoremverified

For every real number a, (a - 1)^2 + 1 is at least a^2 / 2.

Statement

theorem sq_sub_one_add_one_ge_sq_div_two (a : ℝ) :
    (a^2) / 2 ≤ (a - 1)^2 + 1
Source
arXiv:2611.19312, Section 4, equation (1852)
Verified
22 Nov 2026
Axioms
Classical.choiceQuot.soundpropext

Read back from the Lean

For every real number a, (a^2) / 2 ≤ (a - 1)^2 + 1.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

The proof, explained

The inequality is established by completing the square. The difference $((a - 1)^2 + 1) - a^2 / 2$ is algebraically equivalent to $\frac{1}{2}(a - 2)^2$. Since the square of any real number is non-negative, $(a - 2)^2 \ge 0$, and the desired lower bound follows immediately.

  1. The square $(a - 2)^2$ is non-negative: $0 \le (a - 2)^2$.

    The square of any real number is non-negative, applied here to the expression $a - 2$ via `sq_nonneg`.

    line 4

    uses sq_nonneg

      have h : 0 ≤ (a - 2)^2 := sq_nonneg (a - 2)
  2. The inequality $a^2 / 2 \le (a - 1)^2 + 1$ holds. automation

    Multiplying by $2$ and rearranging, the difference $2((a - 1)^2 + 1) - a^2$ expands algebraically to $(a - 2)^2$. Since $(a - 2)^2 \ge 0$, linear arithmetic combines this fact with the polynomial cancellation to close the goal.

    line 5

      linarith
sq_nonneg
The square of any element in a linearly ordered semiring is non-negative ($0 \le x^2$).

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

/-- Quadratic lower bound (a - 1)^2 + 1 ≥ a^2 / 2. -/theorem sq_sub_one_add_one_ge_sq_div_two (a : ℝ) :    (a^2) / 2 ≤ (a - 1)^2 + 1 := by  have h : 0 ≤ (a - 2)^2 := sq_nonneg (a - 2)  linarith
See it in the graphDiscuss this resultChallenge it