Theorem 5.1 — the code-offset sketch of an code is an average-case -secure sketch
ProvedFuzzyExtractors.Hamming.theorem_5_1Let be a finite additive group with elements, , and let be a nonempty code with codewords in which distinct codewords are at Hamming distance at least ; write (so ). Let be the code-offset construction (Construction 2): for a uniformly random , and decodes to a codeword and outputs . Then for every ,
and .
This is the sketch half of the mission's goal; combined with universal hashing it gives Theorem 5.2.
Formalization Note The paper says "one can construct"; we state the claim for the code-offset construction itself, which is what the proof gives and is stronger. The code need not be linear and need not be an integer, so is written . may be any finite additive commutative group (the paper views it as an additive cyclic group). The efficiency clause is dropped; the linear "Furthermore" sentence is the separate item theorem_5_1_linear.
import Mathlib import Definitions.Def_FuzzyExtractors_Hamming_Basic
namespace FuzzyExtractors.Hamming
theorem theorem_5_1 {F : Type} [Fintype F] [DecidableEq F] [AddCommGroup F] {n : ℕ}
(C : Finset (Fin n → F)) (hC : C.Nonempty) (t : ℕ) (hdist : MinDistGe C (2 * t + 1)) :
∀ m : ℝ, IsAvgSecureSketch hammingDist m
(m - ((n : ℝ) * Real.logb 2 (Fintype.card F) - Real.logb 2 C.card)) t
(codeOffsetSS C hC) (codeOffsetRec C t) := by sorry
end FuzzyExtractors.Hamming
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.