Proof of Claim 5.3, p. 34:37 — for b ≠ b′, Pr_g[Σ b_ig_i = Σ b′_ig_i] = 1/|G|
ProvedRegevLWE.SubsetSum.collision_probcollision-probabilityfinite-abelian-groupleftover-hash-lemmap2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1
Let be a finite abelian group and . For any two distinct vectors in , over a uniform choice of ,
This fact is what makes the expected norm of small: two different subsets of uniformly random group elements have equal sums only with probability .
Formalization Note The probability is the number of tuples with divided by . The hypothesis forces .
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, first sentence): for any `b ≠ b'` in
`{0,1}^l`, over a uniform choice of `g = (g₁, …, g_l) ∈ G^l`,
`Pr_g[∑ bᵢgᵢ = ∑ b'ᵢgᵢ] = 1/|G|`. The probability is the number of tuples `g` with
`∑ bᵢgᵢ = ∑ b'ᵢgᵢ` divided by `|G|^l`. -/
theorem collision_prob {G : Type*} [AddCommGroup G] [Fintype G] [DecidableEq G] {l : ℕ}
(b b' : Fin l → Bool) (hb : b ≠ b') :
((univ.filter fun g : Fin l → G => subsetSum g b = subsetSum g b').card : ℝ) /
(Fintype.card G : ℝ) ^ l = 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, first sentence
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.