Proof of Claim 5.3, p. 34:37 — Cauchy–Schwarz Σ_h|P_g(h) − 1/|G|| ≤ |G|^{1/2}(Σ_h(P_g(h) − 1/|G|)²)^{1/2} and the ℓ₂ identity
ProvedRegevLWE.SubsetSum.cauchy_schwarz_l2cauchy-schwarzfinite-abelian-groupp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1statistical-distance
Let be a finite abelian group, , , and let be the distribution of the sum of a uniformly random subset of . Then
- (Cauchy–Schwarz over the points of )
- (the identity, using )
These are the first two steps of the final chain of the proof of Claim 5.3, which bound the statistical distance of from uniform by its norm, pointwise in .
Formalization Note The left-hand side of the first item is statDistUniform g; square roots are Real.sqrt.
Preamble
import Mathlib import Definitions.Def_RegevLWE_SubsetSum_Basic open Finset
Formal statement
namespace RegevLWE.SubsetSum
/-- Proof of Claim 5.3 (Regev, J. ACM 2009, p. 34:37, second display, first two steps), pointwise in
`g`: Cauchy–Schwarz over the `|G|` points of `G`,
`∑_h |P_g(h) − 1/|G|| ≤ |G|^{1/2} (∑_h (P_g(h) − 1/|G|)²)^{1/2}`, and the identity
`∑_h (P_g(h) − 1/|G|)² = ∑_h P_g(h)² − 1/|G|`. -/
theorem cauchy_schwarz_l2 {G : Type*} [AddCommGroup G] [Fintype G] [DecidableEq G] {l : ℕ}
(g : Fin l → G) :
statDistUniform g ≤
Real.sqrt (Fintype.card G) * Real.sqrt (∑ h, (P g h - 1 / (Fintype.card G : ℝ)) ^ 2) ∧
∑ h, (P g h - 1 / (Fintype.card G : ℝ)) ^ 2 = ∑ h, P g h ^ 2 - 1 / (Fintype.card G : ℝ) := by sorry
end RegevLWE.SubsetSum
Source
Regev, On Lattices, Learning with Errors, Random Linear Codes, and Cryptography, J. ACM 56(6) (2009), Article 34, p. 34:37, proof of Claim 5.3, second display (first inequality and the equality that follows)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.