Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4.5 — Construction 1 is an average-case (M,m,m−log⁡∣Π∣+log⁡Γ+log⁡K,t)(\mathcal M, m, m-\log|\Pi|+\log\Gamma+\log K, t)(M,m,m−log∣Π∣+logΓ+logK,t)-secure sketch

Proved
FuzzyExtractors.Hamming.lemma_4_5

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

coding-theorymin-entropyp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1secure-sketch

Let M\mathcal MM be a finite space with a symmetric distance dis\mathrm{dis}dis, and let C⊆MC\subseteq\mathcal MC⊆M be a nonempty (M,K,t)(\mathcal M,K,t)(M,K,t)-code, K=∣C∣K=|C|K=∣C∣: every point has at most one codeword within distance ttt. Let Π\PiΠ be a finite family of permutations of M\mathcal MM that are isometries, dis(π(a),π(b))=dis(a,b)\mathrm{dis}(\pi(a),\pi(b))=\mathrm{dis}(a,b)dis(π(a),π(b))=dis(a,b), and act transitively: for all a,ba,ba,b some π∈Π\pi\in\Piπ∈Π has π(a)=b\pi(a)=bπ(a)=b. Let Γ≥1\Gamma\ge 1Γ≥1 be such that for every www and bbb there are at least Γ\GammaΓ permutations π∈Π\pi\in\Piπ∈Π with π(w)=b\pi(w)=bπ(w)=b.

Let (SS,Rec)(\mathsf{SS},\mathsf{Rec})(SS,Rec) be Construction 1: SS(w)\mathsf{SS}(w)SS(w) picks b∈Cb\in Cb∈C uniformly, then π\piπ uniformly among the π∈Π\pi\in\Piπ∈Π with π(w)=b\pi(w)=bπ(w)=b, and outputs π\piπ; Rec(w′,π)\mathsf{Rec}(w',\pi)Rec(w′,π) decodes π(w′)\pi(w')π(w′) to a codeword b′b'b′ and outputs π−1(b′)\pi^{-1}(b')π−1(b′). Then for every mmm,

(SS,Rec) is an average-case (M,  m,  m−log⁡∣Π∣+log⁡Γ+log⁡K,  t)-secure sketch.(\mathsf{SS},\mathsf{Rec}) \text{ is an average-case } \big(\mathcal M,\; m,\; m-\log|\Pi|+\log\Gamma+\log K,\; t\big)\text{-secure sketch.}(SS,Rec) is an average-case (M,m,m−log∣Π∣+logΓ+logK,t)-secure sketch.

This is the general sketch for transitive metric spaces; the code-offset construction for the Hamming metric is its instance with Π\PiΠ the translations.

Formalization Note The page defines Γ\GammaΓ by the garbled sentence "Let Γ\GammaΓ be the number of elements π∈Π\pi\in\Piπ∈Π such that min⁡w,b∣{π∣π(w)=b}∣≥Γ\min_{w,b}|\{\pi\mid\pi(w)=b\}|\ge\Gammaminw,b​∣{π∣π(w)=b}∣≥Γ", glossed as "for each www and bbb, there are at least Γ\GammaΓ choices for π\piπ"; we state the gloss, with Γ>0\Gamma>0Γ>0 explicit (the paper leaves it implicit in log⁡Γ\log\GammalogΓ). Symmetry of dis\mathrm{dis}dis (a metric axiom the paper assumes for M\mathcal MM) is stated as a hypothesis because decoding uses dis(π(w′),c)≤t\mathrm{dis}(\pi(w'),c)\le tdis(π(w′),c)≤t. "Closest codeword" is replaced by "a codeword within distance ttt", which coincides with it whenever correctness is in question. The efficiency sentence is dropped.

Preamble
import Mathlib
import Definitions.Def_FuzzyExtractors_Hamming_Basic
Formal statement
namespace FuzzyExtractors.Hamming

theorem lemma_4_5 {M Pm : Type} [Fintype M] [DecidableEq M] [Fintype Pm]
    (dis : M → M → ℕ) (hsymm : ∀ a b, dis a b = dis b a)
    (C : Finset M) (hC : C.Nonempty) (t : ℕ) (hcode : IsCode dis C t)
    (act : Pm → M ≃ M) (hiso : ∀ π a b, dis (act π a) (act π b) = dis a b)
    (htrans : ∀ a b, ∃ π, act π a = b)
    (Γ : ℕ) (hΓpos : 0 < Γ) (hΓ : ∀ w b, Γ ≤ (Finset.univ.filter fun π => act π w = b).card) :
    ∀ m : ℝ, IsAvgSecureSketch dis m
      (m - Real.logb 2 (Fintype.card Pm) + Real.logb 2 Γ + Real.logb 2 C.card) t
      (transSS C hC act htrans) (transRec dis C t act) := by sorry

end FuzzyExtractors.Hamming
Source
Dodis, Ostrovsky, Reyzin & Smith, Fuzzy Extractors: How to Generate Strong Keys from Biometrics and Other Noisy Data, arXiv:cs/0602007v4, Construction 1 and Lemma 4.5, p. 14
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 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