Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4.3, average-case form — sketch plus universal hashing extracts ℓ≤m~−2log⁡(1/ε)+2\ell\le\tilde m-2\log(1/\varepsilon)+2ℓ≤m~−2log(1/ε)+2 bits

Proved
FuzzyExtractors.Hamming.lemma_4_3_avg

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

fuzzy-extractorsp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1secure-sketchuniversal-hashing

Let (SS,Rec)(\mathsf{SS},\mathsf{Rec})(SS,Rec) be an average-case (M,m,m~,t)(\mathcal M,m,\tilde m,t)(M,m,m~,t)-secure sketch on a finite space M\mathcal MM, let {Hx:M→{0,1}ℓ}x∈X\{H_x:\mathcal M\to\{0,1\}^\ell\}_{x\in X}{Hx​:M→{0,1}ℓ}x∈X​ be a universal family indexed by a finite nonempty set XXX, let ε>0\varepsilon>0ε>0, and suppose

ℓ  ≤  m~−2log⁡(1/ε)+2.\ell\;\le\;\tilde m-2\log(1/\varepsilon)+2 .ℓ≤m~−2log(1/ε)+2.

Then the construction of Lemma 4.1 with Ext(w;x)=Hx(w)\mathsf{Ext}(w;x)=H_x(w)Ext(w;x)=Hx​(w), namely Gen(w)=(Hx(w),(SS(w),x))\mathsf{Gen}(w)=(H_x(w),(\mathsf{SS}(w),x))Gen(w)=(Hx​(w),(SS(w),x)) and Rep(w′,(s,x))=Hx(Rec(w′,s))\mathsf{Rep}(w',(s,x))=H_x(\mathsf{Rec}(w',s))Rep(w′,(s,x))=Hx​(Rec(w′,s)), is an average-case (M,m,ℓ,t,ε)(\mathcal M,m,\ell,t,\varepsilon)(M,m,ℓ,t,ε)-fuzzy extractor.

In particular one can extract up to m~−2log⁡(1/ε)+2\tilde m-2\log(1/\varepsilon)+2m~−2log(1/ε)+2 nearly uniform bits from a secure sketch with residual min-entropy m~\tilde mm~.

Formalization Note This is the sentence "if the above secure sketch is average-case secure, then so is the resulting fuzzy extractor" (p. 14) applied to Lemma 4.3. ε>0\varepsilon>0ε>0 is explicit; ℓ\ellℓ is a natural number with ℓ≤m~−2log⁡(1/ε)+2\ell\le\tilde m-2\log(1/\varepsilon)+2ℓ≤m~−2log(1/ε)+2 as a real inequality.

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

theorem lemma_4_3_avg {M S X : Type} [Fintype M] [Fintype X] [Nonempty X] {ℓ : ℕ}
    (dis : M → M → ℕ) (m m' ε : ℝ) (t : ℕ)
    (SS : M → PMF S) (Rec : M → S → PMF M) (hSS : IsAvgSecureSketch dis m m' t SS Rec)
    (H : X → M → (Fin ℓ → Bool)) (hH : IsUniversal H)
    (hε : 0 < ε) (hℓ : (ℓ : ℝ) ≤ m' - 2 * Real.logb 2 (1 / ε) + 2) :
    IsAvgFuzzyExtractor dis m ℓ t ε
      (sketchExtGen SS fun w x => H x w) (sketchExtRep Rec fun w x => H x w) := 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, Lemma 4.3 and the following sentence, 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