sq_sub_one_add_one_ge_sq_div_two
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.
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`.
uses
sq_nonneghave h : 0 ≤ (a - 2)^2 := sq_nonneg (a - 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.
linarith
sq_nonneg- The square of any element in a linearly ordered semiring is non-negative ($0 \le x^2$).
- The `linarith` tactic automatically performs ring expansion behind the scenes to verify that $2((a - 1)^2 + 1) - a^2 = (a - 2)^2$, deducing the goal from $(a - 2)^2 \ge 0$ without requiring an explicit algebraic expansion step.
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
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
/-- 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