Documentation

CslibFrontier.Crypto.Computational.FuzzyExtractor.Reusable

Reusable fuzzy extractors: definitions and the reduction steps for the common-matrix scheme #

A fuzzy extractor (Gen, Rep) is reusable if its extracted key r* remains indistinguishable from uniform even when the adversary observes multiple enrollments Gen(w* + δ_i) on correlated readings derived from the same biometric source w* ← W. Following Apon, Cho, Eldefrawy, and Katz ([ACEK17], Sections 2.1–2.2, Definitions 2 and 3), we define the reusability experiments in the public-parameters model over the Hamming space Fin m → ZMod q:

This file defines the experiments and advantages at fixed parameters. The asymptotic notions WeaklyReusable and StronglyReusable, against efficient adversaries, and Theorem 1 in that form are in FuzzyExtractor.Reusable.Security; the Section 5 scheme and its strong reusability are in FuzzyExtractor.Reusable.Encrypt.

In Section 3.3 ([ACEK17], Theorem 1), Apon et al. modify the Fuller–Meng–Reyzin construction (lweFuzzyExtractor) by placing the random matrix A ∈ Z_q^{m × (k + l)} into the common public parameters so that Gen samples only the secret s and outputs c = A s + w. We formalize this construction as commonMatrixFuzzyExtractor and prove the reduction step of the proof of Theorem 1 as an exact identity: for every source W, threshold t and weak-reuse adversary adv, the weak-reuse advantage equals the single-enrollment securityAdvantage of lweFuzzyExtractor against an explicit simulator commonMatrixSimulator t adv that answers each shift δ with c* + A s' + clampShift t δ for a fresh uniform secret s'. Combining this identity with securityAdvantage_lweFuzzyExtractor_le bounds the weak-reuse advantage of each adversary by two decisional LWE advantages of explicit reductions. These are concrete reduction lemmas; Theorem 1 against efficient adversaries is weaklyReusable_commonMatrixFuzzyExtractor in FuzzyExtractor.Reusable.Security.

Correctness is stated averaged over the public parameters (SetupCorrectHammingWithError), and is derived as a decoder-relative step from a caller-supplied average-case decoder hypothesis DecoderCorrectWithError over a uniform matrix; no concrete random-subset LWE decoder ([FMR20], Construction 4.9 / Lemma 4.10) is formalized yet (#6040).

Finally, we formalize the observation of Section 3.3 (p. 10 of ePrint 2017/755) that commonMatrixFuzzyExtractor is not strongly reusable: a 1-query strong-reuse attacker (commonMatrixStrongAttack) querying δ = 0 decodes c* - c₁ = A (s* - s₁) and adds r₁ to recover r*. Relative to a caller-supplied decoder that fails with probability at most δ on error 0 (DecoderCorrectWithError decode 0 δ, #6040), the attacker's strong-reuse advantage is at least 1 - δ - 1 / q ^ k.

Main definitions #

Main results #

What is not proved #

References #

Adaptive shift-query adversaries (Sections 2.1–2.2) #

structure Cslib.Crypto.FuzzyExtractor.ReuseAdversary (PP : Type) (m q : ℕ) (Key Helper Leak σ : Type) :

An adaptive reusability adversary against a public-parameter fuzzy extractor over Fin m → ZMod q, with saved state σ ([ACEK17], Definitions 2 and 3):

  • query pp p* receives the public parameter pp and the challenge helper string p*, queries the shift oracle adaptively, each query δ : Fin m → ZMod q answered with the leakage Leak of a fresh enrollment on w* + δ (the helper string in weak reusability, the helper string and the key in strong reusability), and returns a saved state;
  • guess st r receives the saved state and the challenge key candidate r and outputs a bit.

The key arrives only after the queries, as in step 3 of Definitions 2 and 3. The number of queries is not fixed; a query bound is a property of query (ProbOracleComp.IsQueryBounded).

  • query : PP → Helper → ProbOracleComp (fun (x : Fin m → ZMod q) => Leak) σ

    Receive the public parameter and the challenge helper, query the shift oracle, and return a saved state.

  • guess : σ → Key → ProbComp Bool

    Distinguish the real key r* from a uniform key, given the saved state.

@[reducible, inline]
abbrev Cslib.Crypto.FuzzyExtractor.WeakReuseAdversary (PP : Type) (m q : ℕ) (Key Helper σ : Type) :

A weak-reusability adversary (Definition 2): each shift query leaks only the helper string p_i : Helper.

@[reducible, inline]
abbrev Cslib.Crypto.FuzzyExtractor.StrongReuseAdversary (PP : Type) (m q : ℕ) (Key Helper σ : Type) :

A strong-reusability adversary (Definition 3): each shift query leaks both the helper string and the extracted key (p_i, r_i) : Helper × Key.

def Cslib.Crypto.FuzzyExtractor.clampShift {m q : ℕ} (t : ℕ) (δ : Fin m → ZMod q) :
Fin m → ZMod q

Enforce the Hamming weight bound hammingNorm δ ≤ t required by Definitions 2 and 3: a shift within the bound is kept unchanged, and an out-of-range shift is replaced by 0.

Every clamped shift has Hamming weight at most t.

theorem Cslib.Crypto.FuzzyExtractor.clampShift_of_le {m q t : ℕ} {δ : Fin m → ZMod q} (h : hammingNorm δ ≤ t) :
clampShift t δ = δ

A shift whose Hamming weight is already at most t is unchanged by clampShift.

@[simp]

Clamping the zero shift always returns 0.

Definition 2: Weak reusability #

def Cslib.Crypto.FuzzyExtractor.weakReuseOracle {PP : Type} {m q : ℕ} {Key Helper : Type} (fe : PP → FuzzyExtractor (Fin m → ZMod q) Key Helper) (t : ℕ) (pp : PP) (w δ : Fin m → ZMod q) :
ProbComp Helper

The weak-reusability shift oracle on public parameter pp and reading w* ([ACEK17], Definition 2, step 2): on shift δ, run (fe pp).gen (w* + clampShift t δ) and return the helper string.

def Cslib.Crypto.FuzzyExtractor.weakReuseRealExperiment {PP : Type} {m q : ℕ} {Key Helper σ : Type} (fe : PP → FuzzyExtractor (Fin m → ZMod q) Key Helper) (t : ℕ) (pp : PP) (w : Fin m → ZMod q) (adv : WeakReuseAdversary PP m q Key Helper σ) :

The real weak-reusability experiment on fixed public parameter pp and source reading w* ([ACEK17], Definition 2): sample (r*, p*) ← (fe pp).gen w*, run the query stage of adv on (pp, p*) against weakReuseOracle, and pass r* to adv.guess.

noncomputable def Cslib.Crypto.FuzzyExtractor.weakReuseIdealExperiment {PP : Type} {m q : ℕ} {Key Helper σ : Type} [Fintype Key] [Nonempty Key] (fe : PP → FuzzyExtractor (Fin m → ZMod q) Key Helper) (t : ℕ) (pp : PP) (w : Fin m → ZMod q) (adv : WeakReuseAdversary PP m q Key Helper σ) :

The ideal weak-reusability experiment on fixed public parameter pp and source reading w* ([ACEK17], Definition 2): as weakReuseRealExperiment, except adv.guess receives an independent uniform key u ← ProbComp.uniform Key in place of r*.

noncomputable def Cslib.Crypto.FuzzyExtractor.weakReuseRealGame {PP : Type} {m q : ℕ} {Key Helper σ : Type} (setup : ProbComp PP) (fe : PP → FuzzyExtractor (Fin m → ZMod q) Key Helper) (W : PMF (Fin m → ZMod q)) (t : ℕ) (adv : WeakReuseAdversary PP m q Key Helper σ) :

The real weak-reusability game over setup law setup and source W, built with Game.withSetup W ([ACEK17], Definition 2).

noncomputable def Cslib.Crypto.FuzzyExtractor.weakReuseIdealGame {PP : Type} {m q : ℕ} {Key Helper σ : Type} [Fintype Key] [Nonempty Key] (setup : ProbComp PP) (fe : PP → FuzzyExtractor (Fin m → ZMod q) Key Helper) (W : PMF (Fin m → ZMod q)) (t : ℕ) (adv : WeakReuseAdversary PP m q Key Helper σ) :

The ideal weak-reusability game over setup law setup and source W, built with Game.withSetup W ([ACEK17], Definition 2).

@[reducible, inline]
noncomputable abbrev Cslib.Crypto.FuzzyExtractor.weakReuseAdvantage {PP : Type} {m q : ℕ} {Key Helper σ : Type} [Fintype Key] [Nonempty Key] (setup : ProbComp PP) (fe : PP → FuzzyExtractor (Fin m → ZMod q) Key Helper) (W : PMF (Fin m → ZMod q)) (t : ℕ) (adv : WeakReuseAdversary PP m q Key Helper σ) :

The weak-reusability distinguishing advantage of adv on source W with shift queries of Hamming weight at most t ([ACEK17], Definition 2).

Definition 3: Strong reusability #

def Cslib.Crypto.FuzzyExtractor.strongReuseOracle {PP : Type} {m q : ℕ} {Key Helper : Type} (fe : PP → FuzzyExtractor (Fin m → ZMod q) Key Helper) (t : ℕ) (pp : PP) (w δ : Fin m → ZMod q) :
ProbComp (Helper × Key)

The strong-reusability shift oracle on public parameter pp and reading w* ([ACEK17], Definition 3, step 2): on shift δ, run (r, p) ← (fe pp).gen (w* + clampShift t δ) and return both (p, r).

def Cslib.Crypto.FuzzyExtractor.strongReuseRealExperiment {PP : Type} {m q : ℕ} {Key Helper σ : Type} (fe : PP → FuzzyExtractor (Fin m → ZMod q) Key Helper) (t : ℕ) (pp : PP) (w : Fin m → ZMod q) (adv : StrongReuseAdversary PP m q Key Helper σ) :

The real strong-reusability experiment on fixed public parameter pp and source reading w* ([ACEK17], Definition 3): sample (r*, p*) ← (fe pp).gen w*, run the query stage of adv on (pp, p*) against strongReuseOracle, and pass r* to adv.guess.

noncomputable def Cslib.Crypto.FuzzyExtractor.strongReuseIdealExperiment {PP : Type} {m q : ℕ} {Key Helper σ : Type} [Fintype Key] [Nonempty Key] (fe : PP → FuzzyExtractor (Fin m → ZMod q) Key Helper) (t : ℕ) (pp : PP) (w : Fin m → ZMod q) (adv : StrongReuseAdversary PP m q Key Helper σ) :

The ideal strong-reusability experiment on fixed public parameter pp and source reading w* ([ACEK17], Definition 3): as strongReuseRealExperiment, except adv.guess receives an independent uniform key u ← ProbComp.uniform Key in place of r*.

noncomputable def Cslib.Crypto.FuzzyExtractor.strongReuseRealGame {PP : Type} {m q : ℕ} {Key Helper σ : Type} (setup : ProbComp PP) (fe : PP → FuzzyExtractor (Fin m → ZMod q) Key Helper) (W : PMF (Fin m → ZMod q)) (t : ℕ) (adv : StrongReuseAdversary PP m q Key Helper σ) :

The real strong-reusability game over setup law setup and source W, built with Game.withSetup W ([ACEK17], Definition 3).

noncomputable def Cslib.Crypto.FuzzyExtractor.strongReuseIdealGame {PP : Type} {m q : ℕ} {Key Helper σ : Type} [Fintype Key] [Nonempty Key] (setup : ProbComp PP) (fe : PP → FuzzyExtractor (Fin m → ZMod q) Key Helper) (W : PMF (Fin m → ZMod q)) (t : ℕ) (adv : StrongReuseAdversary PP m q Key Helper σ) :

The ideal strong-reusability game over setup law setup and source W, built with Game.withSetup W ([ACEK17], Definition 3).

@[reducible, inline]
noncomputable abbrev Cslib.Crypto.FuzzyExtractor.strongReuseAdvantage {PP : Type} {m q : ℕ} {Key Helper σ : Type} [Fintype Key] [Nonempty Key] (setup : ProbComp PP) (fe : PP → FuzzyExtractor (Fin m → ZMod q) Key Helper) (W : PMF (Fin m → ZMod q)) (t : ℕ) (adv : StrongReuseAdversary PP m q Key Helper σ) :

The strong-reusability distinguishing advantage of adv on source W with shift queries of Hamming weight at most t ([ACEK17], Definition 3).

Weak reusability and basic security #

def Cslib.Crypto.FuzzyExtractor.WeakReuseAdversary.ofDistinguisher {PP : Type} {m q : ℕ} {Key Helper : Type} (D : Key → Helper → Experiment) :
WeakReuseAdversary PP m q Key Helper Helper

Embed a single-enrollment distinguisher D : Key → Helper → Experiment as a weak-reusability adversary that makes no shift query and saves the challenge helper string p*.

@[simp]
theorem Cslib.Crypto.FuzzyExtractor.weakReuseAdvantage_ofDistinguisher_eq_securityAdvantage {PP : Type} {m q : ℕ} {Key Helper : Type} [Fintype Key] [Nonempty Key] (setup : ProbComp PP) (fe₀ : FuzzyExtractor (Fin m → ZMod q) Key Helper) (W : PMF (Fin m → ZMod q)) (t : ℕ) (D : Key → Helper → Experiment) :
weakReuseAdvantage setup (fun (x : PP) => fe₀) W t (WeakReuseAdversary.ofDistinguisher D) = fe₀.securityAdvantage W D

For a parameter-independent fuzzy extractor fe₀ and any setup law setup, the weak-reusability advantage of WeakReuseAdversary.ofDistinguisher D equals fe₀.securityAdvantage W D: weak reusability implies security in the sense of Definition 1 ([ACEK17], remark after Definition 2).

Correctness averaged over the public parameters #

noncomputable def Cslib.Crypto.FuzzyExtractor.setupReproduceGame {PP : Type} {m q : ℕ} {Key Helper : Type} [DecidableEq Key] (setup : ProbComp PP) (fe : PP → FuzzyExtractor (Fin m → ZMod q) Key Helper) (w w' : Fin m → ZMod q) :

The reproduction game averaged over the public parameters: sample pp ← setup, enroll w with (fe pp).gen, reproduce from w' with (fe pp).rep, and test whether the keys agree.

def Cslib.Crypto.FuzzyExtractor.SetupCorrectHammingWithError {PP : Type} {m q : ℕ} {Key Helper : Type} [DecidableEq Key] (setup : ProbComp PP) (fe : PP → FuzzyExtractor (Fin m → ZMod q) Key Helper) (t : ℕ) (δ : NNReal) :

Hamming reproduction correctness with error δ, averaged over the public parameters: for all readings w, w' with hammingDist w w' ≤ t, setupReproduceGame setup fe w w' fails with probability at most δ. This is the public-parameters form of CorrectHammingWithError; the average over setup matches how [FMR20] and [ACEK17] use an average-case decoder over a uniform matrix.

Section 3.3: Common-matrix FMR construction and Theorem 1 #

noncomputable def Cslib.Crypto.FuzzyExtractor.commonMatrixFuzzyExtractor (m k l q : ℕ) [NeZero q] (decode : Matrix (Fin m) (Fin (k + l)) (ZMod q) → (Fin m → ZMod q) → ProbComp (Option (Fin (k + l) → ZMod q))) (A : Matrix (Fin m) (Fin (k + l)) (ZMod q)) :
FuzzyExtractor (Fin m → ZMod q) (Fin k → ZMod q) (Fin m → ZMod q)

The modified FMR fuzzy extractor of [ACEK17], Section 3.3, parameterized by the common public matrix A : Matrix (Fin m) (Fin (k + l)) (ZMod q):

  • Gen(w) samples a uniform secret s : Fin (k + l) → ZMod q and outputs the first k coordinates of s as the key together with the code-offset helper c = A s + w;
  • Rep(w', c) runs decode A (c - w') and outputs the first k coordinates of the decoded secret (or 0 on none).
theorem Cslib.Crypto.FuzzyExtractor.setupCorrect_commonMatrixFuzzyExtractor_of_decoderCorrectWithError {m k l q : ℕ} [NeZero q] {decode : Matrix (Fin m) (Fin (k + l)) (ZMod q) → (Fin m → ZMod q) → ProbComp (Option (Fin (k + l) → ZMod q))} {t : ℕ} {δ : NNReal} (hdec : DecoderCorrectWithError decode t δ) :

A step after [ACEK17] Section 3.3 (p. 9) establishing δ-error Hamming setup correctness of commonMatrixFuzzyExtractor over a uniform common matrix A relative to a caller-supplied decoder (hdec : DecoderCorrectWithError decode t δ), not the unconditional correctness inherited from [FMR20] Theorem 4.11 (p. 17) that [ACEK17] Theorem 1 (p. 9) presupposes, because no non-toy DecoderCorrectWithError instance (such as the random-subset LWE decoder of [FMR20] Construction 4.9 / Lemma 4.10, pp. 15–16) is formalized yet (#6040).

noncomputable def Cslib.Crypto.FuzzyExtractor.commonMatrixSimulator {m k l q : ℕ} [NeZero q] {σ : Type} (t : ℕ) (adv : WeakReuseAdversary (Matrix (Fin m) (Fin (k + l)) (ZMod q)) m q (Fin k → ZMod q) (Fin m → ZMod q) σ) (r : Fin k → ZMod q) (p : DecodeHelper m (k + l) q Unit) :

The simulator of [ACEK17], Theorem 1 (Section 3.3), as a single-enrollment distinguisher against lweFuzzyExtractor m k l q decode: given key candidate r and helper p = ⟨A, c*, ()⟩, it runs the query stage of adv on (A, c*), answering each shift query δ by sampling a fresh uniform s' : Fin (k + l) → ZMod q and returning c* + A s' + clampShift t δ, and passes r to adv.guess. The simulator never sees the secret s or reading w*.

theorem Cslib.Crypto.FuzzyExtractor.weakReuseRealGame_commonMatrixFuzzyExtractor {m k l q : ℕ} [NeZero q] {σ : Type} (decode : Matrix (Fin m) (Fin (k + l)) (ZMod q) → (Fin m → ZMod q) → ProbComp (Option (Fin (k + l) → ZMod q))) (W : PMF (Fin m → ZMod q)) (t : ℕ) (adv : WeakReuseAdversary (Matrix (Fin m) (Fin (k + l)) (ZMod q)) m q (Fin k → ZMod q) (Fin m → ZMod q) σ) :
weakReuseRealGame (ProbComp.uniform (Matrix (Fin m) (Fin (k + l)) (ZMod q))) (commonMatrixFuzzyExtractor m k l q decode) W t adv = (lweFuzzyExtractor m k l q decode).realGame W (commonMatrixSimulator t adv)

The weak-reusability real game of commonMatrixFuzzyExtractor (over a uniform public matrix A) equals the single-enrollment realGame of lweFuzzyExtractor against commonMatrixSimulator t adv. This is the real-game half of the reduction step in the proof of [ACEK17], Theorem 1.

theorem Cslib.Crypto.FuzzyExtractor.weakReuseIdealGame_commonMatrixFuzzyExtractor {m k l q : ℕ} [NeZero q] {σ : Type} (decode : Matrix (Fin m) (Fin (k + l)) (ZMod q) → (Fin m → ZMod q) → ProbComp (Option (Fin (k + l) → ZMod q))) (W : PMF (Fin m → ZMod q)) (t : ℕ) (adv : WeakReuseAdversary (Matrix (Fin m) (Fin (k + l)) (ZMod q)) m q (Fin k → ZMod q) (Fin m → ZMod q) σ) :

The weak-reusability ideal game of commonMatrixFuzzyExtractor (over a uniform public matrix A) equals the single-enrollment idealGame of lweFuzzyExtractor against commonMatrixSimulator t adv. This is the ideal-game half of the reduction step in the proof of [ACEK17], Theorem 1.

theorem Cslib.Crypto.FuzzyExtractor.weakReuseAdvantage_commonMatrixFuzzyExtractor_eq {m k l q : ℕ} [NeZero q] {σ : Type} (decode : Matrix (Fin m) (Fin (k + l)) (ZMod q) → (Fin m → ZMod q) → ProbComp (Option (Fin (k + l) → ZMod q))) (W : PMF (Fin m → ZMod q)) (t : ℕ) (adv : WeakReuseAdversary (Matrix (Fin m) (Fin (k + l)) (ZMod q)) m q (Fin k → ZMod q) (Fin m → ZMod q) σ) :

The reduction step in the proof of [ACEK17], Theorem 1 (Section 3.3), as an exact identity: for every source W, distance threshold t and weak-reusability adversary adv, the weak-reusability advantage against commonMatrixFuzzyExtractor (under a uniform common matrix A) equals the single-enrollment securityAdvantage of lweFuzzyExtractor against commonMatrixSimulator t adv. This is a reduction lemma, not the security theorem: adv is unrestricted. weaklyReusable_commonMatrixFuzzyExtractor applies it with the efficiency certificate LWEFamily.isPPT_commonMatrixSimulator.

theorem Cslib.Crypto.FuzzyExtractor.weakReuseAdvantage_commonMatrixFuzzyExtractor_le {m k l q : ℕ} [NeZero q] {σ : Type} (decode : Matrix (Fin m) (Fin (k + l)) (ZMod q) → (Fin m → ZMod q) → ProbComp (Option (Fin (k + l) → ZMod q))) (W : PMF (Fin m → ZMod q)) (t : ℕ) (adv : WeakReuseAdversary (Matrix (Fin m) (Fin (k + l)) (ZMod q)) m q (Fin k → ZMod q) (Fin m → ZMod q) σ) :

A step of [ACEK17], Theorem 1, not the theorem: combining weakReuseAdvantage_commonMatrixFuzzyExtractor_eq with securityAdvantage_lweFuzzyExtractor_le, for every source W, distance threshold t and weak-reusability adversary adv, the weak-reusability advantage against commonMatrixFuzzyExtractor is at most the sum of the decisional LWE advantages (secret dimension l, error law W) of two explicit reductions built from adv. Theorem 1 itself, against efficient adversaries, is weaklyReusable_commonMatrixFuzzyExtractor in FuzzyExtractor.Reusable.Security.

Section 3.3 (p. 10): Non-strong-reusability of common-matrix FMR #

theorem Cslib.Crypto.FuzzyExtractor.commonMatrix_recover_key_of_zero_shift {m k l q : ℕ} (A : Matrix (Fin m) (Fin (k + l)) (ZMod q)) (sStar s₁ : Fin (k + l) → ZMod q) (wStar : Fin m → ZMod q) :
A.mulVec sStar + wStar - (A.mulVec s₁ + wStar) = A.mulVec (sStar - s₁) ∧ ((fun (i : Fin k) => (sStar - s₁) (Fin.castAdd l i)) + fun (i : Fin k) => s₁ (Fin.castAdd l i)) = fun (i : Fin k) => sStar (Fin.castAdd l i)

Deterministic key recovery from one zero-shift enrollment in commonMatrixFuzzyExtractor ([ACEK17], Section 3.3, p. 10): if c* = A s* + w* and c₁ = A s₁ + w* share the same matrix A and reading w*, then c* - c₁ = A (s* - s₁) has zero residual error, and adding r₁ = (s₁)_{1..k} to the first k coordinates of s* - s₁ recovers the challenge key r* = (s*)_{1..k}.

noncomputable def Cslib.Crypto.FuzzyExtractor.commonMatrixStrongAttack {m k l q : ℕ} (decode : Matrix (Fin m) (Fin (k + l)) (ZMod q) → (Fin m → ZMod q) → ProbComp (Option (Fin (k + l) → ZMod q))) :
StrongReuseAdversary (Matrix (Fin m) (Fin (k + l)) (ZMod q)) m q (Fin k → ZMod q) (Fin m → ZMod q) (Fin k → ZMod q)

The 1-query strong-reusability attacker against commonMatrixFuzzyExtractor ([ACEK17], Section 3.3, p. 10): it queries shift δ = 0, receives (c₁, r₁), runs decode A (c* - c₁) to recover Δs = s* - s₁, saves the candidate key (Δs)_{1..k} + r₁ (or 0 if decoding fails), and checks whether the challenge key equals it.

theorem Cslib.Crypto.FuzzyExtractor.failProbability_strongReuseRealGame_commonMatrixStrongAttack_le {m k l q : ℕ} [NeZero q] {decode : Matrix (Fin m) (Fin (k + l)) (ZMod q) → (Fin m → ZMod q) → ProbComp (Option (Fin (k + l) → ZMod q))} {δ : NNReal} (hdec : DecoderCorrectWithError decode 0 δ) (W : PMF (Fin m → ZMod q)) (t : ℕ) :

Decoder-relative step for the Section 3.3 attack ([ACEK17], p. 10): relative to a caller-supplied decoder that fails with probability at most δ on error 0 over a uniform matrix (hdec : DecoderCorrectWithError decode 0 δ), the 1-query attack commonMatrixStrongAttack decode outputs false in the real strong-reusability game against commonMatrixFuzzyExtractor (uniform common matrix) with probability at most δ, for every source W. Instantiating hdec beyond toy dimensions awaits the concrete LWE decoder of [FMR20] Construction 4.9 / Lemma 4.10 (#6040).

theorem Cslib.Crypto.FuzzyExtractor.strongReuseIdealGame_commonMatrixStrongAttack_apply_true {m k l q : ℕ} [NeZero q] (decode : Matrix (Fin m) (Fin (k + l)) (ZMod q) → (Fin m → ZMod q) → ProbComp (Option (Fin (k + l) → ZMod q))) (setup : ProbComp (Matrix (Fin m) (Fin (k + l)) (ZMod q))) (W : PMF (Fin m → ZMod q)) (t : ℕ) :

In the ideal strong-reusability game against commonMatrixFuzzyExtractor, the attack commonMatrixStrongAttack decode outputs true with probability exactly 1 / q ^ k: the uniform key u is independent of the attacker's recovered key. This holds for every setup program and every source W.

theorem Cslib.Crypto.FuzzyExtractor.strongReuseAdvantage_commonMatrixStrongAttack_ge {m k l q : ℕ} [NeZero q] {decode : Matrix (Fin m) (Fin (k + l)) (ZMod q) → (Fin m → ZMod q) → ProbComp (Option (Fin (k + l) → ZMod q))} {δ : NNReal} (hdec : DecoderCorrectWithError decode 0 δ) (W : PMF (Fin m → ZMod q)) (t : ℕ) :
1 - ↑δ - 1 / ↑q ^ k ≤ ↑(strongReuseAdvantage (ProbComp.uniform (Matrix (Fin m) (Fin (k + l)) (ZMod q))) (commonMatrixFuzzyExtractor m k l q decode) W t (commonMatrixStrongAttack decode))

Decoder-relative step for the Section 3.3 attack ([ACEK17], p. 10): relative to a caller-supplied decoder (hdec : DecoderCorrectWithError decode 0 δ) that fails with probability at most δ on error 0 over a uniform matrix, the 1-query attack commonMatrixStrongAttack decode has strong-reusability advantage at least 1 - δ - 1 / q ^ k against commonMatrixFuzzyExtractor, for every source W. Instantiating hdec beyond toy dimensions awaits the concrete LWE decoder of [FMR20] Construction 4.9 / Lemma 4.10 (#6040).