Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Claim 2.2, p. 34:16 — first display: triangle split of ∫|e^{−πx²} − (1+ϵ)^{−1}e^{−πx²/(1+ϵ)²}|

Proved
RegevLWE.PeriodicGauss.first_display

by mikedeng1 · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

gaussianlearning-with-errorsp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1statistical-distance

Let 0<ϵ≤10 < \epsilon \le 10<ϵ≤1. All integrals are over R\mathbb{R}R with respect to Lebesgue measure. Then

∫∣e−πx2−11+ϵe−πx2/(1+ϵ)2∣dx≤∫∣e−πx2−e−πx2/(1+ϵ)2∣dx+∫∣(1−11+ϵ)e−πx2/(1+ϵ)2∣dx,\int \Bigl|e^{-\pi x^2} - \tfrac{1}{1+\epsilon} e^{-\pi x^2/(1+\epsilon)^2}\Bigr|dx \le \int \bigl|e^{-\pi x^2} - e^{-\pi x^2/(1+\epsilon)^2}\bigr|dx + \int \Bigl|\Bigl(1 - \tfrac{1}{1+\epsilon}\Bigr)e^{-\pi x^2/(1+\epsilon)^2}\Bigr|dx,∫​e−πx2−1+ϵ1​e−πx2/(1+ϵ)2​dx≤∫​e−πx2−e−πx2/(1+ϵ)2​dx+∫​(1−1+ϵ1​)e−πx2/(1+ϵ)2​dx,

the last integral equals ϵ\epsilonϵ, and

∫∣e−πx2−e−πx2/(1+ϵ)2∣dx=∫∣e−π(1−1/(1+ϵ)2)x2−1∣ e−πx2/(1+ϵ)2dx.\int \bigl|e^{-\pi x^2} - e^{-\pi x^2/(1+\epsilon)^2}\bigr|dx = \int \bigl|e^{-\pi(1 - 1/(1+\epsilon)^2)x^2} - 1\bigr|\,e^{-\pi x^2/(1+\epsilon)^2}dx.∫​e−πx2−e−πx2/(1+ϵ)2​dx=∫​e−π(1−1/(1+ϵ)2)x2−1​e−πx2/(1+ϵ)2dx.

Together these give the chain of the first display in the proof of Claim 2.2: the statistical distance between the normal densities ν1\nu_1ν1​ and ν1+ϵ\nu_{1+\epsilon}ν1+ϵ​ is at most ∫∣e−π(1−1/(1+ϵ)2)x2−1∣e−πx2/(1+ϵ)2dx+ϵ\int |e^{-\pi(1-1/(1+\epsilon)^2)x^2} - 1|e^{-\pi x^2/(1+\epsilon)^2}dx + \epsilon∫∣e−π(1−1/(1+ϵ)2)x2−1∣e−πx2/(1+ϵ)2dx+ϵ.

This reduces the comparison of two normal densities to the integral of a single nonnegative function, which the next two steps bound.

Formalization Note Every integral is a lower Lebesgue integral of a nonnegative function, valued in [0,∞][0,\infty][0,∞]. The printed chain A≤B+C=B+ϵ=D+ϵA \le B + C = B + \epsilon = D + \epsilonA≤B+C=B+ϵ=D+ϵ is stated as its three component facts A≤B+CA \le B + CA≤B+C, C=ϵC = \epsilonC=ϵ and B=DB = DB=D, which together imply it.

Preamble
import Mathlib
import Definitions.Def_RegevLWE_PeriodicGauss_Gaussian

open MeasureTheory
Formal statement
namespace RegevLWE.PeriodicGauss

/-- Proof of Claim 2.2, p. 34:16, first display. For `0 < ϵ ≤ 1`, with all integrals over `ℝ`,
`∫ |e^{-πx²} - (1/(1+ϵ)) e^{-πx²/(1+ϵ)²}| ≤ ∫ |e^{-πx²} - e^{-πx²/(1+ϵ)²}| + ∫ |(1 - 1/(1+ϵ)) e^{-πx²/(1+ϵ)²}|`,
the second integral equals `ϵ`, and
`∫ |e^{-πx²} - e^{-πx²/(1+ϵ)²}| = ∫ |e^{-π(1-1/(1+ϵ)²)x²} - 1| e^{-πx²/(1+ϵ)²}`. -/
theorem first_display (ϵ : ℝ) (hϵ : 0 < ϵ) (hϵ1 : ϵ ≤ 1) :
    (∫⁻ x : ℝ, ENNReal.ofReal
        |Real.exp (-Real.pi * x ^ 2) - 1 / (1 + ϵ) * Real.exp (-Real.pi * x ^ 2 / (1 + ϵ) ^ 2)|) ≤
      (∫⁻ x : ℝ, ENNReal.ofReal
        |Real.exp (-Real.pi * x ^ 2) - Real.exp (-Real.pi * x ^ 2 / (1 + ϵ) ^ 2)|) +
      (∫⁻ x : ℝ, ENNReal.ofReal
        |(1 - 1 / (1 + ϵ)) * Real.exp (-Real.pi * x ^ 2 / (1 + ϵ) ^ 2)|) ∧
    (∫⁻ x : ℝ, ENNReal.ofReal
        |(1 - 1 / (1 + ϵ)) * Real.exp (-Real.pi * x ^ 2 / (1 + ϵ) ^ 2)|) = ENNReal.ofReal ϵ ∧
    (∫⁻ x : ℝ, ENNReal.ofReal
        |Real.exp (-Real.pi * x ^ 2) - Real.exp (-Real.pi * x ^ 2 / (1 + ϵ) ^ 2)|) =
      ∫⁻ x : ℝ, ENNReal.ofReal
        (|Real.exp (-Real.pi * (1 - 1 / (1 + ϵ) ^ 2) * x ^ 2) - 1| *
          Real.exp (-Real.pi * x ^ 2 / (1 + ϵ) ^ 2)) := by sorry

end RegevLWE.PeriodicGauss
Source
Regev, On Lattices, Learning with Errors, Random Linear Codes, and Cryptography, J. ACM 56(6) (2009), Article 34, p. 34:16, proof of Claim 2.2, first display
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 7, 2026

    Confirmed by the mission captain (proposal self-audit).

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