Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Claim 3.9 — D_{L+u,r} plus ν_s noise is within statistical distance 4ε of ν_t, t = √(r² + s²)

Proved
RegevLWE.GaussConv.claim_3_9

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

discrete-gaussianlatticesp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1smoothing-parameterstatistical-distance

Let L⊂RnL \subset \mathbb{R}^nL⊂Rn be a lattice, let u∈Rnu \in \mathbb{R}^nu∈Rn be any vector, let r,s>0r, s > 0r,s>0, and let t:=r2+s2t := \sqrt{r^2 + s^2}t:=r2+s2​. Assume that

rst=11/r2+1/s2≥ηϵ(L)\frac{rs}{t} = \frac{1}{\sqrt{1/r^2 + 1/s^2}} \ge \eta_\epsilon(L)trs​=1/r2+1/s2​1​≥ηϵ​(L)

for some 0<ϵ<120 < \epsilon < \tfrac120<ϵ<21​. Let YYY be the continuous distribution on Rn\mathbb{R}^nRn obtained by sampling from the discrete Gaussian DL+u,rD_{L+u,r}DL+u,r​ and adding an independent noise vector distributed according to νs\nu_sνs​; its density is Y(x)=∑y∈L+uDL+u,r(y) νs(x−y)Y(x) = \sum_{y \in L+u} D_{L+u,r}(y)\,\nu_s(x - y)Y(x)=∑y∈L+u​DL+u,r​(y)νs​(x−y). Then the statistical distance between YYY and νt\nu_tνt​ is at most 4ϵ4\epsilon4ϵ:

Δ(Y,νt)=∫Rn∣Y(x)−νt(x)∣ dx≤4ϵ.\Delta(Y, \nu_t) = \int_{\mathbb{R}^n} \bigl| Y(x) - \nu_t(x)\bigr|\,dx \le 4\epsilon .Δ(Y,νt​)=∫Rn​​Y(x)−νt​(x)​dx≤4ϵ.

When both Gaussians are sufficiently wide compared to the smoothing parameter, adding continuous Gaussian noise of width sss to a discrete Gaussian of width rrr on a lattice coset produces, up to statistical distance 4ϵ4\epsilon4ϵ, the continuous Gaussian of width r2+s2\sqrt{r^2+s^2}r2+s2​ that one obtains for two continuous Gaussians. This is the input of Corollary 3.10 and of the classical step (Lemma 3.11) of Regev's reduction.

Formalization Note Δ\DeltaΔ is ∫∣φ1−φ2∣\int|\varphi_1 - \varphi_2|∫∣φ1​−φ2​∣ with no factor 12\tfrac1221​ (p. 34:14), computed as a lower Lebesgue integral in [0,∞][0,\infty][0,∞], so the bound cannot hold vacuously through a non-integrable difference. The hypothesis ϵ>0\epsilon > 0ϵ>0 is added (Definition 2.10 defines ηϵ\eta_\epsilonηϵ​ for ϵ>0\epsilon > 0ϵ>0 only; for ϵ≤0\epsilon \le 0ϵ≤0 the infimum would be over the empty set, equal to 000 in Lean, and the hypothesis would be vacuous). YYY is given by its density, the formula the proof writes on its first line. No restriction on nnn: for n=0n = 0n=0 both densities equal 111 at the single point of R0\mathbb{R}^0R0.

Preamble
import Mathlib
import Definitions.Def_RegevLWE_GaussConv_Gaussian
import Definitions.Def_RegevLWE_GaussConv_Lattice
Formal statement
namespace RegevLWE.GaussConv

theorem claim_3_9 {n : ℕ} (L : Submodule ℤ (EuclideanSpace ℝ (Fin n))) [DiscreteTopology L]
    [IsZLattice ℝ L] (u : EuclideanSpace ℝ (Fin n)) {r s ε : ℝ} (hr : 0 < r) (hs : 0 < s)
    (hε : 0 < ε) (hε2 : ε < 1 / 2)
    (h : smoothingParam L ε ≤ r * s / Real.sqrt (r ^ 2 + s ^ 2)) :
    statDist (Ydensity L u r s) (nu (Real.sqrt (r ^ 2 + s ^ 2))) ≤ ENNReal.ofReal (4 * ε) := by sorry

end RegevLWE.GaussConv
Source
Regev, On Lattices, Learning with Errors, Random Linear Codes, and Cryptography, J. ACM 56(6) (2009), Article 34, p. 34:25, Claim 3.9
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