one_strongly_euclidean_variable_height_scalar_bound
For q at least one and z nonnegative, q(1+2z) is at most sqrt(q) times q+2z+2z².
Statement
theorem one_strongly_euclidean_variable_height_scalar_bound (q z : ℝ) (hq : 1 ≤ q) (hz : 0 ≤ z) :
q*(1+2*z) ≤ Real.sqrt q*(q+2*z+2*z^2)- Source
- OP-1304: scalar bound for the variable-height spherical extension.
- Verified
- 12 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Used by 1
- one_strongly_euclidean_spherical_core_variable_height_extensionLet A and B be types, H a real inner-product space, u:A→H, p:B→A, c∈H, q≥1, and h:B→ℝ with h(b)>0 for every b. Assume ‖u(a)−c‖²=q²/4 for…
The proof, explained
Setting $Q = \sqrt{q}$ and replacing $q$ by $Q^2$, the inequality reduces to $Q^2(1+2z) \le Q(Q^2+2z+2z^2)$. The difference between the right-hand and left-hand sides can be rewritten by completing the square as $Q\left(\frac{Q^2-1}{2} + 2\left(z - \frac{Q-1}{2}\right)^2\right)$. Since $q \ge 1$ implies $Q \ge 1$, each component of this decomposition is non-negative, establishing the bound.
Define $Q = \sqrt{q}$ and show that $1 \le Q$.
We introduce the shorthand $Q = \sqrt{q}$. Because $q \ge 1$ by assumption, monotonicity of the square root function (`Real.one_le_sqrt.mpr`) ensures that $Q \ge 1$.
uses
Real.one_le_sqrt.mprlet Q := Real.sqrt q have hQ : 1 ≤ Q := by dsimp [Q] exact Real.one_le_sqrt.mpr hq
$Q^2 = q$.
Since $q \ge 1 \ge 0$, squaring the square root of $q$ yields $q$ by `Real.sq_sqrt`.
uses
Real.sq_sqrthave hQ2 : Q^2 = q := Real.sq_sqrt (by linarith)
The expression $Q \left( \frac{Q^2 - 1}{2} + 2\left(z - \frac{Q - 1}{2}\right)^2 \right)$ is non-negative.
Because $Q \ge 1$, we have $(Q^2 - 1)/2 \ge 0$. The squared term $2(z - (Q - 1)/2)^2$ is also non-negative as a positive multiple of a square. Since $Q \ge 1 > 0$, the product of $Q$ with the sum of these two non-negative terms is non-negative.
have h1 : 0 ≤ (Q^2-1)/2 := by nlinarith have h2 : 0 ≤ 2*(z-(Q-1)/2)^2 := by positivity have h3 : 0 ≤ Q*((Q^2-1)/2+2*(z-(Q-1)/2)^2) := by positivity
$q(1 + 2z) \le \sqrt{q}(q + 2z + 2z^2)$.
Expressing $\sqrt{q}$ as $Q$ and substituting $q = Q^2$, the desired inequality becomes $Q^2(1 + 2z) \le Q(Q^2 + 2z + 2z^2)$. The difference between the right-hand and left-hand sides is identically equal to $Q \left( \frac{Q^2 - 1}{2} + 2\left(z - \frac{Q - 1}{2}\right)^2 \right)$, which was just shown to be non-negative; non-linear arithmetic concludes the proof.
change q*(1+2*z) ≤ Q*(q+2*z+2*z^2) rw [← hQ2] nlinarith
Real.one_le_sqrt.mpr- If a real number satisfies $1 \le x$, then $1 \le \sqrt{x}$.
Real.sq_sqrt- For any real number $x \ge 0$, $(\sqrt{x})^2 = x$.
- In the final step, `nlinarith` silently verifies the algebraic identity expanding the difference $Q(Q^2 + 2z + 2z^2) - Q^2(1 + 2z)$ into the sum-of-squares expression $Q\left(\frac{Q^2-1}{2} + 2\left(z - \frac{Q-1}{2}\right)^2\right)$.
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.
theorem one_strongly_euclidean_variable_height_scalar_bound (q z : ℝ) (hq : 1 ≤ q) (hz : 0 ≤ z) : q*(1+2*z) ≤ Real.sqrt q*(q+2*z+2*z^2) := by let Q := Real.sqrt q have hQ : 1 ≤ Q := by dsimp [Q] exact Real.one_le_sqrt.mpr hq have hQ2 : Q^2 = q := Real.sq_sqrt (by linarith) have h1 : 0 ≤ (Q^2-1)/2 := by nlinarith have h2 : 0 ≤ 2*(z-(Q-1)/2)^2 := by positivity have h3 : 0 ≤ Q*((Q^2-1)/2+2*(z-(Q-1)/2)^2) := by positivity change q*(1+2*z) ≤ Q*(q+2*z+2*z^2) rw [← hQ2] nlinarith