Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Lemma 3.15, p. 34:31 — E_{x∼D_{L,r}}[exp(−π(⟨w,x⟩/r)²)] ≤ det(L*) rⁿ (1 + ε) / (√2 ρ_r(L))

Proved
RegevLWE.Hyperplane.expectation_chain

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

discrete-gaussianlatticesp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1poisson-summationsmoothing-parameter

Let L⊂RnL \subset \mathbb{R}^nL⊂Rn be a lattice with dual L∗L^*L∗, let ϵ>0\epsilon > 0ϵ>0 and r>0r > 0r>0 with r≥2 ηϵ(L)r \ge \sqrt2\,\eta_\epsilon(L)r≥2​ηϵ​(L), and let w∈Rnw \in \mathbb{R}^nw∈Rn be a unit vector. Write

E:=Expx∼DL,r[exp⁡(−π(⟨w,x⟩/r)2)]=∑x∈LDL,r(x) exp⁡(−π⟨w,x⟩2/r2).E := \mathop{\mathrm{Exp}}_{x \sim D_{L,r}}\Bigl[\exp\bigl(-\pi(\langle w, x\rangle/r)^2\bigr)\Bigr] = \sum_{x \in L} D_{L,r}(x)\, \exp\bigl(-\pi\langle w, x\rangle^2/r^2\bigr).E:=Expx∼DL,r​​[exp(−π(⟨w,x⟩/r)2)]=x∈L∑​DL,r​(x)exp(−π⟨w,x⟩2/r2).

Then

  1. E=1ρr(L)∑x∈Lexp⁡(−π ∥x∥2+⟨w,x⟩2r2)E = \dfrac{1}{\rho_r(L)} \displaystyle\sum_{x \in L} \exp\Bigl(-\pi\,\frac{\|x\|^2 + \langle w, x\rangle^2}{r^2}\Bigr)E=ρr​(L)1​x∈L∑​exp(−πr2∥x∥2+⟨w,x⟩2​);
  2. E=det⁡(L∗) rn2 ρr(L)∑y∈L∗exp⁡(−πr2(∥y∥2−⟨w,y⟩22))E = \dfrac{\det(L^*)\, r^n}{\sqrt2\,\rho_r(L)} \displaystyle\sum_{y \in L^*} \exp\Bigl(-\pi r^2\Bigl(\|y\|^2 - \frac{\langle w, y\rangle^2}{2}\Bigr)\Bigr)E=2​ρr​(L)det(L∗)rn​y∈L∗∑​exp(−πr2(∥y∥2−2⟨w,y⟩2​));
  3. E≤det⁡(L∗) rn2 ρr(L) ρ2/r(L∗)E \le \dfrac{\det(L^*)\, r^n}{\sqrt2\,\rho_r(L)}\, \rho_{\sqrt2/r}(L^*)E≤2​ρr​(L)det(L∗)rn​ρ2​/r​(L∗);
  4. E≤det⁡(L∗) rn2 ρr(L) (1+ϵ)E \le \dfrac{\det(L^*)\, r^n}{\sqrt2\,\rho_r(L)}\, (1 + \epsilon)E≤2​ρr​(L)det(L∗)rn​(1+ϵ).

For w=(1,0,…,0)w = (1, 0, \dots, 0)w=(1,0,…,0) these are the four lines of the displayed chain in the proof of Lemma 3.15: the exponent in (1) is −π((2x1/r)2+(x2/r)2+⋯+(xn/r)2)-\pi\bigl((\sqrt2 x_1/r)^2 + (x_2/r)^2 + \dots + (x_n/r)^2\bigr)−π((2​x1​/r)2+(x2​/r)2+⋯+(xn​/r)2), and the one in (2) is −π((ry1/2)2+(ry2)2+⋯+(ryn)2)-\pi\bigl((r y_1/\sqrt2)^2 + (r y_2)^2 + \dots + (r y_n)^2\bigr)−π((ry1​/2​)2+(ry2​)2+⋯+(ryn​)2). Line (2) is Poisson summation (Lemma 2.14) for an anisotropic Gaussian, and line (4) is where the smoothing hypothesis enters.

Formalization Note The paper assumes "without loss of generality" that (1,0,…,0)(1, 0, \dots, 0)(1,0,…,0) is orthogonal to the subspace HHH, i.e. it rotates coordinates; the statement is given for an arbitrary unit vector www, which is the coordinate-free form of that reduction. The hypothesis ∥w∥=1\|w\| = 1∥w∥=1 forces n≥1n \ge 1n≥1. det⁡(L∗)\det(L^*)det(L∗) is written as (ZLattice.covolume L)−1(\texttt{ZLattice.covolume } L)^{-1}(ZLattice.covolume L)−1. ϵ>0\epsilon > 0ϵ>0 and r>0r > 0r>0 are the paper's standing readings (Definition 2.10 is for ϵ>0\epsilon > 0ϵ>0; rrr is a Gaussian width).

Preamble
import Mathlib
import Definitions.Def_RegevLWE_Hyperplane_DiscreteGaussian
Formal statement
namespace RegevLWE.Hyperplane

theorem expectation_chain {n : ℕ} (L : Submodule ℤ (EuclideanSpace ℝ (Fin n)))
    [DiscreteTopology L] [IsZLattice ℝ L] {ε r : ℝ} (hε : 0 < ε) (hr : 0 < r)
    (h : Real.sqrt 2 * RegevLWE.GaussConv.smoothingParam L ε ≤ r)
    (w : EuclideanSpace ℝ (Fin n)) (hw : ‖w‖ = 1) :
    (∑' x : L, discreteGaussian L r x *
        Real.exp (-Real.pi * (inner ℝ w (x : EuclideanSpace ℝ (Fin n))) ^ 2 / r ^ 2)) =
      1 / rhoLattice r L * ∑' x : L,
        Real.exp (-Real.pi * (‖(x : EuclideanSpace ℝ (Fin n))‖ ^ 2 +
          (inner ℝ w (x : EuclideanSpace ℝ (Fin n))) ^ 2) / r ^ 2) ∧
    (∑' x : L, discreteGaussian L r x *
        Real.exp (-Real.pi * (inner ℝ w (x : EuclideanSpace ℝ (Fin n))) ^ 2 / r ^ 2)) =
      (ZLattice.covolume L)⁻¹ * r ^ n / (Real.sqrt 2 * rhoLattice r L) * ∑' y : RegevLWE.GaussConv.dual L,
        Real.exp (-Real.pi * r ^ 2 * (‖(y : EuclideanSpace ℝ (Fin n))‖ ^ 2 -
          (inner ℝ w (y : EuclideanSpace ℝ (Fin n))) ^ 2 / 2)) ∧
    (∑' x : L, discreteGaussian L r x *
        Real.exp (-Real.pi * (inner ℝ w (x : EuclideanSpace ℝ (Fin n))) ^ 2 / r ^ 2)) ≤
      (ZLattice.covolume L)⁻¹ * r ^ n / (Real.sqrt 2 * rhoLattice r L) *
        rhoDual (Real.sqrt 2 / r) L ∧
    (∑' x : L, discreteGaussian L r x *
        Real.exp (-Real.pi * (inner ℝ w (x : EuclideanSpace ℝ (Fin n))) ^ 2 / r ^ 2)) ≤
      (ZLattice.covolume L)⁻¹ * r ^ n / (Real.sqrt 2 * rhoLattice r L) * (1 + ε) := by sorry

end RegevLWE.Hyperplane
Source
Regev, On Lattices, Learning with Errors, Random Linear Codes, and Cryptography, J. ACM 56(6) (2009), Article 34, p. 34:31, proof of Lemma 3.15, displayed chain
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