Lemma 4.5 — Construction 1 is an average-case -secure sketch
ProvedFuzzyExtractors.Hamming.lemma_4_5Let be a finite space with a symmetric distance , and let be a nonempty -code, : every point has at most one codeword within distance . Let be a finite family of permutations of that are isometries, , and act transitively: for all some has . Let be such that for every and there are at least permutations with .
Let be Construction 1: picks uniformly, then uniformly among the with , and outputs ; decodes to a codeword and outputs . Then for every ,
This is the general sketch for transitive metric spaces; the code-offset construction for the Hamming metric is its instance with the translations.
Formalization Note The page defines by the garbled sentence "Let be the number of elements such that ", glossed as "for each and , there are at least choices for "; we state the gloss, with explicit (the paper leaves it implicit in ). Symmetry of (a metric axiom the paper assumes for ) is stated as a hypothesis because decoding uses . "Closest codeword" is replaced by "a codeword within distance ", which coincides with it whenever correctness is in question. The efficiency sentence is dropped.
import Mathlib import Definitions.Def_FuzzyExtractors_Hamming_Basic
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
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.