Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

LIDT definitions: LDT / Basic / SqrtBounds

Definition
LIDT_MIPStarRE_LDT_Basic_SqrtBounds

by Dengnifer · Oct 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

lidt

This bundle records the square-root subadditivity estimates used throughout the error bookkeeping. It handles both two-term and three-term sums of nonnegative errors, allowing separate contributions to be absorbed into a single square-root bound.

Principal definitions:

  • sqrt_add_le_add_sqrt: bounds the square root of a two-term sum by the sum of square roots.
  • sqrt_add3_le_add3_sqrt: gives the corresponding three-term bound.

Formalization credit: Sirui Lu, Ruixuan Deng, Yanqiao Zhu, and Zhengfeng Ji (arXiv:2609.19814). Mathematical source: Zhengfeng Ji, Anand Natarajan, Thomas Vidick, John Wright, and Henry Yuen (arXiv:2009.12982).

Definition code
-- Generated from MIPStarRE/LDT/Basic/SqrtBounds.lean by skeleton subtraction.
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_ParametersBase
import Mathlib

namespace LIDT

/-!
# Square-root bounds for error estimates

Small reusable inequalities for square roots of nonnegative error terms.
-/

@[expose] public section

namespace MIPStarRE.LDT

/-- Subadditivity of the square root on nonnegative error terms. -/
theorem sqrt_add_le_add_sqrt {x y : Error} (hx : 0 ≤ x) (hy : 0 ≤ y) :
    Real.sqrt (x + y) ≤ Real.sqrt x + Real.sqrt y := by
  refine Real.sqrt_le_iff.mpr ?_
  refine ⟨by positivity, ?_⟩
  nlinarith [Real.sq_sqrt hx, Real.sq_sqrt hy, Real.sqrt_nonneg x, Real.sqrt_nonneg y]

/-- Three-term subadditivity of the square root on nonnegative error terms. -/
theorem sqrt_add3_le_add3_sqrt {x y z : Error}
    (hx : 0 ≤ x) (hy : 0 ≤ y) (hz : 0 ≤ z) :
    Real.sqrt (x + y + z) ≤ Real.sqrt x + Real.sqrt y + Real.sqrt z := by
  calc
    Real.sqrt (x + y + z) = Real.sqrt ((x + y) + z) := by ring_nf
    _ ≤ Real.sqrt (x + y) + Real.sqrt z := sqrt_add_le_add_sqrt (add_nonneg hx hy) hz
    _ ≤ Real.sqrt x + Real.sqrt y + Real.sqrt z := by
      nlinarith [sqrt_add_le_add_sqrt hx hy, Real.sqrt_nonneg z]

end MIPStarRE.LDT

end

end LIDT
Source
https://github.com/LionSR/MIPStarRE/blob/f382c801026f53a9efc260fdee707cb35e0adb15/MIPStarRE/LDT/Basic/SqrtBounds.lean#L15-L30

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me