Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

QED-E201 statement definitions

Definition
QED_E201

by floration · Nov 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

codinginformationtheoryqed

Definitions for the QED problem QED-E201, ending with the proposition Claim.

A map E:{0,1}k→{0,1}nE:\{0,1\}^k\to\{0,1\}^nE:{0,1}k→{0,1}n is a (3,δ,ε)(3,\delta,\varepsilon)(3,δ,ε)-LDC if for each i∈[k]i\in[k]i∈[k] there is a probability distribution μi\mu_iμi​ on pairs (S,f)(S,f)(S,f) with S∈[n]3S\in[n]^3S∈[n]3 and f:{0,1}3→{0,1}f:\{0,1\}^3\to\{0,1\}f:{0,1}3→{0,1} such that for all x∈{0,1}kx\in\{0,1\}^kx∈{0,1}k and all y∈{0,1}ny\in\{0,1\}^ny∈{0,1}n with dH(y,E(x))≤δnd_H(y,E(x))\le\delta ndH​(y,E(x))≤δn: Pr⁡(S,f)∼μi[f(yS)=xi]≥12+ε\Pr_{(S,f)\sim\mu_i}[f(y_S)=x_i]\ge\tfrac12+\varepsilonPr(S,f)∼μi​​[f(yS​)=xi​]≥21​+ε. Prove: for all fixed δ,ε∈(0,1/2)\delta,\varepsilon\in(0,1/2)δ,ε∈(0,1/2) there exist c=c(δ,ε)>0c=c(\delta,\varepsilon)>0c=c(δ,ε)>0 and KKK such that every (3,δ,ε)(3,\delta,\varepsilon)(3,δ,ε)-LDC with k≥Kk\ge Kk≥K has n≥k3+cn\ge k^{3+c}n≥k3+c. (Strengthening: ccc independent of δ,ε\delta,\varepsilonδ,ε.)

Definition code
import Mathlib
/-! QED-E201: 3-query locally decodable codes: beat the cubic lower bound
A 3-query locally decodable code encodes k bits into n bits so that any single message bit can be recovered with probability 1/2+eps by reading just 3 randomly chosen positions, even after a delta fraction of the codeword has been corrupted. The shortest known such codes have length exp(exp(O(sqrt(log k loglog k)))), while the best lower bound (2023) is n >= k^3/polylog(k). Prove n >= k^{3+c} for some fixed c>0.
Informal statement: A map $E:\{0,1\}^k\to\{0,1\}^n$ is a $(3,\delta,\varepsilon)$-LDC if for each $i\in[k]$ there is a probability distribution $\mu_i$ on pairs $(S,f)$ with $S\in[n]^3$ and $f:\{0,1\}^3\to\{0,1\}$ such that for all $x\in\{0,1\}^k$ and all $y\in\{0,1\}^n$ with $d_H(y,E(x))\le\delta n$: $\Pr_{(S,f)\sim\mu_i}[f(y_S)=x_i]\ge\tfrac12+\varepsilon$. Prove: for all fixed $\delta,\varepsilon\in(0,1/2)$ there exist $c=c(\delta,\varepsilon)>0$ and $K$ such that every $(3,\delta,\varepsilon)$-LDC with $k\ge K$ has $n\ge k^{3+c}$. (Strengthening: $c$ independent of $\delta,\varepsilon$.)
Formalization notes:
* Bits are `Bool`; messages `Fin k → Bool`, codewords `Fin n → Bool`; Hamming distance is
  Mathlib's `hammingDist` (number of differing coordinates).
* A decoder for bit i is a probability distribution μ i on the finite set of queries
  (Fin 3 → Fin n) × ((Fin 3 → Bool) → Bool): a query tuple S (repetitions allowed, so this
  covers ≤ 3 queries) and a decision function f. Its success probability on y is
  Σ_q μ i q · [q.2 (y ∘ q.1) = x i]. This is the standard non-adaptive LDC definition used by
  Katz–Trevisan and Alrabiah–Guruswami–Kothari–Manohar (adaptive 3-query decoders are not
  covered by this definition, as in the informal statement).
* `IsLDC3 k n δ ε E` requires the existence of such μ for every i, with success ≥ 1/2 + ε for all
  x and all y with d_H(y, E x) ≤ δ n.
* Quantifiers follow the informal statement: ∀ δ ε ∈ (0,1/2), ∃ c > 0, ∃ K, ∀ k ≥ K, ∀ n, every
  (3,δ,ε)-LDC E : {0,1}^k → {0,1}^n has n ≥ k^{3+c} (real power). There is no junk at n = 0:
  then y is unique and the decoder cannot output both values of x_i with probability > 1/2.
* Claim = the k^{3+c} lower bound (c may depend on δ, ε). ¬Claim: for some δ, ε, for every
  c > 0 there are arbitrarily large k with a (3,δ,ε)-LDC of length n < k^{3+c}.
-/
namespace OpenProblems.QEDE201
noncomputable section

/-- `E` is a non-adaptive `(3, δ, ε)` locally decodable code. -/
def IsLDC3 (k n : ℕ) (δ ε : ℝ) (E : (Fin k → Bool) → (Fin n → Bool)) : Prop :=
  ∀ i : Fin k, ∃ μ : (Fin 3 → Fin n) × ((Fin 3 → Bool) → Bool) → ℝ,
    (∀ q, 0 ≤ μ q) ∧ (∑ q, μ q) = 1 ∧
    ∀ x : Fin k → Bool, ∀ y : Fin n → Bool, (hammingDist y (E x) : ℝ) ≤ δ * n →
      (1 : ℝ) / 2 + ε ≤ ∑ q, μ q * (if q.2 (y ∘ q.1) = x i then (1 : ℝ) else 0)

/-- 3-query LDCs have length at least `k^{3+c}`. -/
def Claim : Prop :=
  ∀ δ ε : ℝ, 0 < δ → δ < 1 / 2 → 0 < ε → ε < 1 / 2 →
    ∃ c : ℝ, 0 < c ∧ ∃ K : ℕ, ∀ k : ℕ, K ≤ k → ∀ n : ℕ,
      ∀ E : (Fin k → Bool) → (Fin n → Bool), IsLDC3 k n δ ε E →
        (k : ℝ) ^ ((3 : ℝ) + c) ≤ (n : ℝ)

end
end OpenProblems.QEDE201
Source
QED open problem QED-E201, https://floration.github.io/QED/#QED-E201
Human review
  • Endorsed by Shuze Chen · Nov 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by floration · Nov 28, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me