Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Lemma 3.15, p. 34:31 — the expectation is at most (1/√2)(1 + ε) < 0.9

Proved
RegevLWE.Hyperplane.expectation_lt_nine_tenths

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

discrete-gaussianlatticesp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1smoothing-parameter

Let L⊂RnL \subset \mathbb{R}^nL⊂Rn be a lattice, let 0<ϵ≤1100 < \epsilon \le \tfrac1{10}0<ϵ≤101​ 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. Then

Expx∼DL,r[exp⁡(−π(⟨w,x⟩/r)2)]≤12(1+ϵ)<0.9.\mathop{\mathrm{Exp}}_{x \sim D_{L,r}}\Bigl[\exp\bigl(-\pi(\langle w, x\rangle/r)^2\bigr)\Bigr] \le \frac{1}{\sqrt2}(1 + \epsilon) < 0.9 .Expx∼DL,r​​[exp(−π(⟨w,x⟩/r)2)]≤2​1​(1+ϵ)<0.9.

This combines the expectation chain with ρr(L)≥det⁡(L∗) rn\rho_r(L) \ge \det(L^*)\,r^nρr​(L)≥det(L∗)rn. Since exp⁡(−π(⟨w,x⟩/r)2)=1\exp(-\pi(\langle w, x\rangle/r)^2) = 1exp(−π(⟨w,x⟩/r)2)=1 for every xxx orthogonal to www and is at most 111 everywhere, the expectation upper-bounds the probability that xxx lies in any subspace orthogonal to www, which gives Lemma 3.15.

Formalization Note The expectation is ∑x∈LDL,r(x)exp⁡(−π⟨w,x⟩2/r2)\sum_{x \in L} D_{L,r}(x)\exp(-\pi\langle w, x\rangle^2/r^2)∑x∈L​DL,r​(x)exp(−π⟨w,x⟩2/r2); the paper's coordinate x1x_1x1​ (after its "without loss of generality" rotation) is ⟨w,x⟩\langle w, x\rangle⟨w,x⟩ for a unit vector www. ϵ>0\epsilon > 0ϵ>0 and r>0r > 0r>0 are the paper's standing readings.

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

theorem expectation_lt_nine_tenths {n : ℕ} (L : Submodule ℤ (EuclideanSpace ℝ (Fin n)))
    [DiscreteTopology L] [IsZLattice ℝ L] {ε r : ℝ} (hε : 0 < ε) (hε10 : ε ≤ 1 / 10)
    (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 / Real.sqrt 2 * (1 + ε) ∧
    1 / Real.sqrt 2 * (1 + ε) < 9 / 10 := 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, last sentence ('Therefore, the expectation above is at most …')
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