Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 7.3 — SHc\mathrm{SH}_cSHc​ is an average-case (t1,(2c−1)t1,m1,m1−⌈n/c⌉log⁡2(n−c+1))(t_1, (2c-1)t_1, m_1, m_1 - \lceil n/c\rceil\log_2(n-c+1))(t1​,(2c−1)t1​,m1​,m1​−⌈n/c⌉log2​(n−c+1))-biometric embedding

Proved
FuzzyExtractors.EditSketch.lemma_7_3

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

biometric-embeddingedit-distancep2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1shingling

Let F\mathcal FF be a finite alphabet and 1≤c≤n1 \le c \le n1≤c≤n. Let SHc\mathrm{SH}_cSHc​ map a string w∈EditF(n)w \in \mathrm{Edit}_{\mathcal F}(n)w∈EditF​(n) (length nnn, insertion/deletion distance) to its ccc-shingling, a subset of Fc\mathcal F^cFc, compared in the set-difference metric SDif(Fc)\mathrm{SDif}(\mathcal F^c)SDif(Fc). For every t1∈Nt_1 \in \mathbb Nt1​∈N and real m1m_1m1​, SHc\mathrm{SH}_cSHc​ is an average-case

(t1, t2=(2c−1)t1, m1, m2=m1−⌈nc⌉log⁡2(n−c+1))\Big(t_1,\ t_2 = (2c - 1)t_1,\ m_1,\ m_2 = m_1 - \big\lceil \tfrac nc \big\rceil \log_2(n - c + 1)\Big)(t1​, t2​=(2c−1)t1​, m1​, m2​=m1​−⌈cn​⌉log2​(n−c+1))

biometric embedding of EditF(n)\mathrm{Edit}_{\mathcal F}(n)EditF​(n) into SDif(Fc)\mathrm{SDif}(\mathcal F^c)SDif(Fc). That is:

  1. if w,w′w, w'w,w′ are within t1t_1t1​ insertions and deletions, then ∣SHc(w)△SHc(w′)∣≤(2c−1)t1|\mathrm{SH}_c(w) \triangle \mathrm{SH}_c(w')| \le (2c - 1)t_1∣SHc​(w)△SHc​(w′)∣≤(2c−1)t1​;
  2. for every pair (W,I)(W, I)(W,I) with H~∞(W∣I)≥m1\tilde{\mathbf H}_\infty(W \mid I) \ge m_1H~∞​(W∣I)≥m1​, we have H~∞(SHc(W)∣I)≥m1−⌈n/c⌉log⁡2(n−c+1)\tilde{\mathbf H}_\infty(\mathrm{SH}_c(W) \mid I) \ge m_1 - \lceil n/c \rceil \log_2(n - c + 1)H~∞​(SHc​(W)∣I)≥m1​−⌈n/c⌉log2​(n−c+1).

Shingling turns the edit metric, for which no direct secure sketch is known, into set difference while losing a controlled amount of entropy.

Formalization Note. The paper says "for any ccc"; 1≤c≤n1 \le c \le n1≤c≤n is made explicit (it is needed for n−c+1≥1n - c + 1 \ge 1n−c+1≥1 and for the shingles to exist). ⌈n/c⌉\lceil n/c \rceil⌈n/c⌉ is ⌈(n : ℝ) / c⌉₊. The edit distance is the published weighted edit distance with insertion/deletion cost 111 and replacement cost 222; the intermediate strings of an edit sequence may have any length, and shingles is defined for every length.

Preamble
import Mathlib
import Definitions.Def_FuzzyExtractors_EditSketch_Basic
Formal statement
namespace FuzzyExtractors.EditSketch

theorem lemma_7_3 (𝓕 : Type) [Fintype 𝓕] [DecidableEq 𝓕] (n c t₁ : ℕ) (m₁ : ℝ)
    (hc : 1 ≤ c) (hcn : c ≤ n) :
    IsAvgBiometricEmbedding (editDis (𝓕 := 𝓕) (n := n)) symmDiffDis t₁ ((2 * c - 1) * t₁) m₁
      (m₁ - (⌈(n : ℝ) / c⌉₊ : ℝ) * Real.logb 2 ((n : ℝ) - c + 1))
      (fun w => shingles c w.1) := by sorry

end FuzzyExtractors.EditSketch
Source
Dodis, Ostrovsky, Reyzin & Smith, Fuzzy Extractors, arXiv:cs/0602007v4, Lemma 7.3, p. 25
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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me