AFTD Auto-Formalizing Theoretical Domains

one_strongly_euclidean_variable_height_scalar_bound

theoremverified

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

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.

  1. 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$.

    lines 3–6

    uses Real.one_le_sqrt.mpr

      let Q := Real.sqrt q
      have hQ : 1 ≤ Q := by
        dsimp [Q]
        exact Real.one_le_sqrt.mpr hq
  2. $Q^2 = q$.

    Since $q \ge 1 \ge 0$, squaring the square root of $q$ yields $q$ by `Real.sq_sqrt`.

    line 7

    uses Real.sq_sqrt

      have hQ2 : Q^2 = q := Real.sq_sqrt (by linarith)
  3. 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.

    lines 8–10

      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
  4. $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.

    lines 11–13

      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$.

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

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
See it in the graphDiscuss this resultChallenge it