Documentation

CslibFrontier.Computability.LocallyDecodable.LowerBound

The Katz–Trevisan lower bound for locally decodable codes #

This module proves the Katz–Trevisan information-theoretic length lower bound n = Ω(k ^ (q / (q - 1))) for q-query locally decodable codes [KT00], [Yek12], both for non-adaptive decoders (with no adaptivity penalty) and for arbitrary adaptive q-query decoders (via Cslib.Code.nonadaptivize, incurring the |Γ| ^ (q - 1) reduction factor).

The proof proceeds in two steps:

  1. Information-theoretic bit-recovery bound (Cslib.Code.card_mul_one_sub_binEntropy_le_logb_card): if deterministic predictors g i recover each bit i ∈ T of a uniformly random message x : ι → Bool from C x : R with probability at least 1 / 2 + η, then |T| · (1 - h₂(1 / 2 + η)) ≤ log₂ |R|, where h₂(p) = Real.binEntropy p / Real.log 2. This combines the chain rule, conditional-entropy subadditivity (Shearer.lean), and Fano's inequality (Fano.lean).
  2. Random restriction of decoding matchings (Cslib.Code.DecodingMatching.pow_le_pow): given a DecodingMatching family M i of size at least α |P| with accuracy 1 / 2 + η for each message bit i, include each coordinate of P independently with probability p. For any sampled subset S ⊆ P, every bit i whose matching contains an edge e ⊆ S is predicted with accuracy 1 / 2 + η from C x|_S, so step 1 bounds the number of recovered bits by |S| · log₂ |Γ| / (1 - h₂(1 / 2 + η)). Disjointness of M i makes the edges in M i hit S independently with probability at least p ^ q, giving an average recovery probability at least α |P| p ^ q / (1 + α |P| p ^ q). Optimizing p = (α |P|) ^ (-1 / q) yields the unified polynomial inequality α · (|ι| · (1 - h₂(1 / 2 + η))) ^ q ≤ (2 log₂ |Γ|) ^ q · |P| ^ (q - 1) for every q ≥ 1 (recovering the log₂ |Γ| upper bound on |ι| at q = 1, and raising to 1 / (q - 1) gives |P| ≥ c(q, δ, ε, |Γ|) · |ι| ^ (q / (q - 1)) for all q ≥ 2 and |Γ| ≥ 2).

Main results #

References #

Information-theoretic bit-recovery bound #

theorem Cslib.Code.card_mul_one_sub_binEntropy_le_logb_card {ι R : Type} [Fintype ι] [DecidableEq ι] [Fintype R] [Nonempty R] (C : (ι → Bool) → R) (T : Finset ι) (g : ι → R → Bool) {η : ℝ} (hη : 0 ≤ η) (hg : ∀ i ∈ T, 1 / 2 + η ≤ ((Probability.PMF.uniformOfFintype (ι → Bool)).toOuterMeasure {x : ι → Bool | g i (C x) = x i}).toReal) :
↑T.card * (1 - Real.binEntropy (1 / 2 + η) / Real.log 2) ≤ Real.logb 2 ↑(Fintype.card R)

Information-theoretic bit-recovery bound [KT00], [Yek12]: if deterministic predictors g i : R → Bool recover each bit i ∈ T of a uniformly random message x : ι → Bool from C x : R with probability at least 1 / 2 + η (0 ≤ η), then |T| · (1 - h₂(1 / 2 + η)) ≤ log₂ |R|, where h₂(p) = Real.binEntropy p / Real.log 2.

Bernoulli random restrictions on disjoint hypergraph matchings #

theorem Cslib.Code.DecodingMatching.pow_le_pow {ι P Γ : Type} [Fintype ι] [DecidableEq ι] [Fintype P] [Nonempty P] [Fintype Γ] [Nonempty Γ] {C : (ι → Bool) → P → Γ} {q : ℕ} {α η : ℝ} (M : (i : ι) → DecodingMatching C i q η) (hq : 1 ≤ q) (hα : 0 < α) (hη : 0 < η) (hsize : ∀ (i : ι), α * ↑(Fintype.card P) ≤ ↑(M i).edges.card) :
α * (↑(Fintype.card ι) * (1 - Real.binEntropy (1 / 2 + η) / Real.log 2)) ^ q ≤ (2 * Real.logb 2 ↑(Fintype.card Γ)) ^ q * ↑(Fintype.card P) ^ (q - 1)

Katz–Trevisan polynomial bound from decoding matchings [KT00], [Yek12]: if every message bit i : ι has a q-bounded decoding matching of size at least α |P| and accuracy 1 / 2 + η (1 ≤ q, 0 < α, 0 < η, P and Γ nonempty), then α · (|ι| · (1 - h₂(1 / 2 + η))) ^ q ≤ (2 log₂ |Γ|) ^ q · |P| ^ (q - 1).

Auxiliary lemmas for code lower bounds #

Katz–Trevisan lower bounds for smooth and locally decodable codes #

theorem Cslib.Code.IsSmoothDecoder.pow_le_pow_of_nonadaptivePlan {ι P Γ : Type} [Fintype ι] [Fintype P] [DecidableEq P] [Fintype Γ] [Nonempty Γ] {C : (ι → Bool) → P → Γ} {q : ℕ} {c ε : ℝ} {planLaw : ι → ProbComp (NonadaptivePlan P Γ q)} (hA : IsSmoothDecoder C q c ε fun (i : ι) => nonadaptivePlan (planLaw i)) (hq : 1 ≤ q) (hc : 0 < c) (hε : 0 < ε) :
ε * (↑(Fintype.card ι) * (1 - Real.binEntropy (1 / 2 + ε / 2) / Real.log 2)) ^ q ≤ ↑q * c * (2 * Real.logb 2 ↑(Fintype.card Γ)) ^ q * ↑(Fintype.card P) ^ (q - 1)

Katz–Trevisan bound for non-adaptive smooth codes [KT00], [Yek12]: every non-adaptive (q, c, ε) smooth decoder (1 ≤ q, 0 < c, 0 < ε) satisfies ε · (|ι| · (1 - h₂(1 / 2 + ε / 2))) ^ q ≤ q · c · (2 log₂ |Γ|) ^ q · |P| ^ (q - 1).

theorem Cslib.Code.IsLocalDecoder.pow_le_pow_of_nonadaptivePlan {ι P Γ : Type} [Fintype ι] [Fintype P] [Fintype Γ] [Nonempty Γ] [DecidableEq Γ] {C : (ι → Bool) → P → Γ} {q : ℕ} {δ ε : ℝ} {planLaw : ι → ProbComp (NonadaptivePlan P Γ q)} (hA : IsLocalDecoder C q δ ε fun (i : ι) => nonadaptivePlan (planLaw i)) (hq : 1 ≤ q) (hδ : 0 < δ) (hε : 0 < ε) :
δ * ε * (↑(Fintype.card ι) * (1 - Real.binEntropy (1 / 2 + ε / 2) / Real.log 2)) ^ q ≤ ↑q ^ 2 * (2 * Real.logb 2 ↑(Fintype.card Γ)) ^ q * ↑(Fintype.card P) ^ (q - 1)

Katz–Trevisan bound for non-adaptive locally decodable codes [KT00], [Yek12]: every non-adaptive (q, δ, ε) local decoder (1 ≤ q, 0 < δ, 0 < ε) satisfies δ · ε · (|ι| · (1 - h₂(1 / 2 + ε / 2))) ^ q ≤ q ^ 2 · (2 log₂ |Γ|) ^ q · |P| ^ (q - 1).

theorem Cslib.Code.IsLocalDecoder.rpow_le_card_of_nonadaptivePlan {ι P Γ : Type} [Fintype ι] [Fintype P] [Fintype Γ] [DecidableEq Γ] {C : (ι → Bool) → P → Γ} {q : ℕ} {δ ε : ℝ} {planLaw : ι → ProbComp (NonadaptivePlan P Γ q)} (hA : IsLocalDecoder C q δ ε fun (i : ι) => nonadaptivePlan (planLaw i)) (hq : 2 ≤ q) (hΓ : 2 ≤ Fintype.card Γ) (hδ : 0 < δ) (hε : 0 < ε) :
(δ * ε ^ (2 * q + 1) / (↑q ^ 2 * (4 * Real.logb 2 ↑(Fintype.card Γ)) ^ q)) ^ (1 / (↑q - 1)) * ↑(Fintype.card ι) ^ (↑q / (↑q - 1)) ≤ ↑(Fintype.card P)

Katz–Trevisan Ω(k ^ (q / (q - 1))) bound for non-adaptive q-query LDCs [KT00], [Yek12]: for 2 ≤ q and 2 ≤ |Γ|, every non-adaptive (q, δ, ε) local decoder satisfies n ≥ c(q, δ, ε, |Γ|) · k ^ (q / (q - 1)) with explicit constant (δ · ε ^ (2q + 1) / (q ^ 2 · (4 log₂ |Γ|) ^ q)) ^ (1 / (q - 1)).

theorem Cslib.Code.IsLocallyDecodable.pow_le_pow {ι P Γ : Type} [Fintype ι] [Fintype P] [Fintype Γ] [Nonempty Γ] [DecidableEq Γ] {C : (ι → Bool) → P → Γ} {q : ℕ} {δ ε : ℝ} (hC : IsLocallyDecodable C q δ ε) (hq : 1 ≤ q) (hδ : 0 < δ) (hε : 0 < ε) :
δ * ε * (↑(Fintype.card ι) * (1 - Real.binEntropy (1 / 2 + ε / (2 * ↑(Fintype.card Γ) ^ (q - 1))) / Real.log 2)) ^ q ≤ ↑q ^ 2 * ↑(Fintype.card Γ) ^ (q - 1) * (2 * Real.logb 2 ↑(Fintype.card Γ)) ^ q * ↑(Fintype.card P) ^ (q - 1)

Katz–Trevisan bound for arbitrary (possibly adaptive) locally decodable codes [KT00], [Yek12]: every (q, δ, ε) locally decodable code (1 ≤ q, 0 < δ, 0 < ε) over a finite nonempty alphabet Γ satisfies δ · ε · (|ι| · (1 - h₂(1 / 2 + ε / (2 |Γ| ^ (q - 1))))) ^ q ≤ q ^ 2 · |Γ| ^ (q - 1) · (2 log₂ |Γ|) ^ q · |P| ^ (q - 1). For q = 1 the factor |Γ| ^ (q - 1) is 1 and |P| ^ (q - 1) is 1, giving an explicit logarithmic-in-|Γ| upper bound on |ι|.

theorem Cslib.Code.IsLocallyDecodable.rpow_le_card {ι P Γ : Type} [Fintype ι] [Fintype P] [Fintype Γ] [DecidableEq Γ] {C : (ι → Bool) → P → Γ} {q : ℕ} {δ ε : ℝ} (hC : IsLocallyDecodable C q δ ε) (hq : 2 ≤ q) (hΓ : 2 ≤ Fintype.card Γ) (hδ : 0 < δ) (hε : 0 < ε) :
(δ * ε ^ (2 * q + 1) / (↑q ^ 2 * ↑(Fintype.card Γ) ^ ((q - 1) * (2 * q + 1)) * (4 * Real.logb 2 ↑(Fintype.card Γ)) ^ q)) ^ (1 / (↑q - 1)) * ↑(Fintype.card ι) ^ (↑q / (↑q - 1)) ≤ ↑(Fintype.card P)

Katz–Trevisan Ω(k ^ (q / (q - 1))) lower bound for arbitrary (possibly adaptive) q-query locally decodable codes [KT00], [Yek12]: for 2 ≤ q, 2 ≤ |Γ|, 0 < δ, and 0 < ε, every (q, δ, ε) locally decodable code satisfies n ≥ c(q, δ, ε, |Γ|) · k ^ (q / (q - 1)) with explicit constant (δ · ε ^ (2q + 1) / (q ^ 2 · |Γ| ^ ((q - 1)(2q + 1)) · (4 log₂ |Γ|) ^ q)) ^ (1 / (q - 1)).