Proof of Claim 5.3, p. 34:36 — Σ_h P_g(h)² = Pr_{b,b′}[Σb_ig_i = Σb′_ig_i] ≤ 1/2^l + Pr[· | b ≠ b′]
ProvedRegevLWE.SubsetSum.l2_norm_collisionLet be a finite abelian group, , and . Let be the distribution of the sum of a uniformly random subset of , and let be independent and uniform in . Then the norm of is the collision probability of the two subset sums, and is bounded by the probability that plus the conditional collision probability given :
This is the first step of the proof of Claim 5.3: it turns the norm of into a count over pairs of subsets, which can then be averaged over .
Formalization Note The probabilities are counts over the pairs : the unconditional probability divides the number of colliding pairs by , and the conditional one divides the number of colliding pairs with by the number of pairs with . For there is no pair with ; the conditional probability is then undefined in the paper and Lean's division gives , and the inequality reads , which holds.
import Mathlib import Definitions.Def_RegevLWE_SubsetSum_Basic open Finset
namespace RegevLWE.SubsetSum
/-- Proof of Claim 5.3 (Regev, J. ACM 2009, p. 34:36, last display): the `ℓ₂` norm of `P_g` is the
collision probability of two independent uniform `b, b' ∈ {0,1}^l`,
`∑_h P_g(h)² = Pr_{b,b'}[∑ bᵢgᵢ = ∑ b'ᵢgᵢ] ≤ 1/2^l + Pr_{b,b'}[∑ bᵢgᵢ = ∑ b'ᵢgᵢ | b ≠ b']`.
Probabilities over `(b, b')` are counts over the `(2^l)²` pairs; the conditional probability is the
count of colliding pairs with `b ≠ b'` divided by the number `(2^l)² − 2^l` of pairs with `b ≠ b'`. -/
theorem l2_norm_collision {G : Type*} [AddCommGroup G] [Fintype G] [DecidableEq G] {l : ℕ}
(g : Fin l → G) :
∑ h, P g h ^ 2 =
((univ.filter fun bb : (Fin l → Bool) × (Fin l → Bool) =>
subsetSum g bb.1 = subsetSum g bb.2).card : ℝ) / ((2 : ℝ) ^ l) ^ 2 ∧
((univ.filter fun bb : (Fin l → Bool) × (Fin l → Bool) =>
subsetSum g bb.1 = subsetSum g bb.2).card : ℝ) / ((2 : ℝ) ^ l) ^ 2 ≤
1 / (2 : ℝ) ^ l +
((univ.filter fun bb : (Fin l → Bool) × (Fin l → Bool) =>
bb.1 ≠ bb.2 ∧ subsetSum g bb.1 = subsetSum g bb.2).card : ℝ) /
(((2 : ℝ) ^ l) ^ 2 - (2 : ℝ) ^ l) := by sorry
end RegevLWE.SubsetSum
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.