Documentation

CslibFrontier.Computability.LocallyDecodable.Matching

Hypergraph matching extraction from smooth decoders #

Every non-adaptive (q, c, ε) smooth decoder for a code C : (ι → Bool) → P → Γ induces, for each message bit i, a q-bounded hypergraph matching of pairwise-disjoint nonempty query sets whose deterministic predictors each recover x i with advantage at least ε / 2 over a uniformly random message x [KT00], [Yek12].

The argument filters the supported query plans of the decoder to the good plans whose average decoding accuracy over uniform messages is at least 1 / 2 + η (for 0 < η < ε). By an averaging bound, good plans occur with probability at least 2 (ε - η), and every good plan queries at least one position (a zero-query plan has accuracy exactly 1 / 2 on a uniform bit). Any maximal matching M in the resulting hypergraph of good query sets hits every good plan, so its vertex set V(M) (of size at most q |M|) is hit with probability at least 2 (ε - η). Smoothness bounds each vertex's query probability by c / |P|, yielding 2 (ε - η) |P| ≤ q c |M|. Setting η = ε / 2 gives ε |P| ≤ q c |M|.

Combined with Cslib.Code.isSmoothDecoder_mask_nonadaptivePlan and Cslib.Code.IsLocalDecoder.isSmoothDecoder_adaptive, this extracts linear-size decoding matchings both from non-adaptive local decoders (with no advantage loss) and from arbitrary adaptive local decoders (with the |Γ| ^ -(q - 1) reduction factor).

Main definitions #

Main results #

References #

structure Cslib.Code.DecodingMatching {ι P Γ : Type} [Fintype ι] [DecidableEq ι] (C : (ι → Bool) → P → Γ) (i : ι) (q : ℕ) (η : ℝ) :

A decoding matching for message bit i of C : (ι → Bool) → P → Γ: a pairwise-disjoint family edges of nonempty subsets of P of size at most q, together with a deterministic predictor for each edge e that reads only C x restricted to e and recovers x i with probability at least 1 / 2 + η over a uniformly random message x.

theorem Cslib.Code.exists_decodingMatching_of_nonadaptivePlan {ι P Γ : Type} [Fintype ι] [DecidableEq ι] [Fintype P] [DecidableEq P] [Finite Γ] {C : (ι → Bool) → P → Γ} {q : ℕ} {c ε η : ℝ} (i : ι) (planLaw : PMF (NonadaptivePlan P Γ q)) (hη : 0 < η) (hacc : 1 / 2 + ε ≤ ∑' (plan : NonadaptivePlan P Γ q), (planLaw plan).toReal * ((Probability.PMF.uniformOfFintype (ι → Bool)).toOuterMeasure {x : ι → Bool | plan.eval (C x) = x i}).toReal) (hsmooth : ∀ (j : P), (planLaw.toOuterMeasure {plan : NonadaptivePlan P Γ q | j ∈ plan.querySet}).toReal ≤ c / ↑(Fintype.card P)) :
∃ (M : DecodingMatching C i q η), 2 * (ε - η) * ↑(Fintype.card P) ≤ ↑q * c * ↑M.edges.card

Hypergraph matching extraction from a smooth non-adaptive plan distribution [KT00], [Yek12]: if a distribution planLaw over q-query non-adaptive plans recovers bit i of a uniform message with probability at least 1 / 2 + ε and queries each position with probability at most c / |P|, then for every threshold 0 < η there is a DecodingMatching for bit i with accuracy 1 / 2 + η and 2 (ε - η) |P| ≤ q c |M|.

theorem Cslib.Code.IsSmoothDecoder.exists_decodingMatching_of_nonadaptivePlan {ι P Γ : Type} [Fintype ι] [DecidableEq ι] [Fintype P] [DecidableEq P] [Finite Γ] {C : (ι → Bool) → P → Γ} {q : ℕ} {c ε : ℝ} {planLaw : ι → ProbComp (NonadaptivePlan P Γ q)} (hA : IsSmoothDecoder C q c ε fun (i : ι) => nonadaptivePlan (planLaw i)) (hε : 0 < ε) (i : ι) :
∃ (M : DecodingMatching C i q (ε / 2)), ε * ↑(Fintype.card P) ≤ ↑q * c * ↑M.edges.card

Hypergraph matching extraction from a non-adaptive smooth decoder [KT00], [Yek12]: a (q, c, ε) smooth decoder given by nonadaptivePlan yields, for every message bit i, a DecodingMatching of accuracy 1 / 2 + ε / 2 and size satisfying ε |P| ≤ q c |M|.

theorem Cslib.Code.IsSmoothDecoder.exists_decodingMatching_of_nonadaptive {ι P Γ : Type} [Fintype ι] [DecidableEq ι] [Fintype P] [DecidableEq P] [Finite Γ] [Nonempty Γ] {R : Type} {C : (ι → Bool) → P → Γ} {q : ℕ} {c ε : ℝ} {coins : ι → ProbComp R} {Q : ι → R → Fin q → P} {output : ι → R → (Fin q → Γ) → Bool} (hA : IsSmoothDecoder C q c ε fun (i : ι) => nonadaptive (coins i) (Q i) (output i)) (hε : 0 < ε) (i : ι) :
∃ (M : DecodingMatching C i q (ε / 2)), ε * ↑(Fintype.card P) ≤ ↑q * c * ↑M.edges.card

Hypergraph matching extraction from a Code.nonadaptive smooth decoder.

theorem Cslib.Code.IsLocalDecoder.exists_decodingMatching_of_nonadaptivePlan {ι P Γ : Type} [Fintype ι] [DecidableEq ι] [Fintype P] [Finite Γ] [DecidableEq Γ] {C : (ι → Bool) → P → Γ} {q : ℕ} {δ ε : ℝ} {planLaw : ι → ProbComp (NonadaptivePlan P Γ q)} (hA : IsLocalDecoder C q δ ε fun (i : ι) => nonadaptivePlan (planLaw i)) (hδ : 0 < δ) (hε : 0 < ε) (i : ι) :
∃ (M : DecodingMatching C i q (ε / 2)), δ * ε * ↑(Fintype.card P) ≤ ↑q ^ 2 * ↑M.edges.card

Hypergraph matching extraction from a non-adaptive (q, δ, ε) local decoder: smooths with no advantage loss (c = q / δ) to obtain a matching with δ ε |P| ≤ q ^ 2 |M|.

theorem Cslib.Code.IsLocalDecoder.exists_decodingMatching {ι P Γ : Type} [Fintype ι] [DecidableEq ι] [Fintype P] [Fintype Γ] [Nonempty Γ] [DecidableEq Γ] {C : (ι → Bool) → P → Γ} {q : ℕ} {δ ε : ℝ} {A : LocalDecoder ι P Γ} (hA : IsLocalDecoder C q δ ε A) (hδ : 0 < δ) (hε : 0 < ε) (i : ι) :
∃ (M : DecodingMatching C i q (ε / (2 * ↑(Fintype.card Γ) ^ (q - 1)))), δ * ε * ↑(Fintype.card P) ≤ ↑q ^ 2 * ↑(Fintype.card Γ) ^ (q - 1) * ↑M.edges.card

Hypergraph matching extraction from an arbitrary (possibly adaptive) (q, δ, ε) local decoder: reduces adaptivity with factor |Γ| ^ -(q - 1), smooths heavy positions, and extracts a decoding matching for bit i of accuracy 1 / 2 + ε / (2 |Γ| ^ (q - 1)) and size satisfying δ ε |P| ≤ q ^ 2 |Γ| ^ (q - 1) |M|.