Documentation

CslibFrontier.Foundations.Data.Code.OddCircuitAsymptotic

Linear codes beyond the Gilbert–Varshamov bound #

Saglam's theorem [Saglam2027, abstract and Section 3.3]: for fixed ε > 0 and log n ≪ d ≤ (1 / 2 - ε) n there are binary linear codes of length n, minimum distance d and size at least c_ε n 2 ^ n / ∑_{1 ≤ i < d} C(n, i), which is Ω(n) times the Gilbert–Varshamov bound 2 ^ n / (V + 1).

Cslib.Code.exists_parityCheckCode_of_fourierBounds derives this from Lemma 3.1 of [Sag26], given as the hypothesis that Cslib.Code.PuncturedBallFourierBounds n w C holds for some C, K, N and all n ≥ N, K log₂ n ≤ w ≤ (1 / 2 - ε) n. The asymptotic quantifiers are explicit: there are c > 0, K and N such that for all n ≥ N and all d with K log₂ n ≤ d ≤ (1 / 2 - ε) n some parity-check matrix H defines a code of minimum distance at least d with c n 2 ^ n ≤ |C| ∑_{1 ≤ i < d} C(n, i). A single K serves all n, which is the uniform reading of log n ≪ d. The constant is c = (log 2 - h(1 / 2 - ε)) / 8.

The proof follows Section 3.3 with ζ = 1 / 2. Let w = d - 1, V = |B| for the punctured ball B, and R = log (2 ^ n / V) ≥ (log 2 - h(1 / 2 - ε)) n by the entropy bound on the ball. Choose m with τ = V / 2 ^ m ∈ [R / 4, R / 2). The moment term of Cslib.Code.exists_le_minDist_parityCheckCode_of_moment_tail is at most (sinh 1 - 1) C / n < 1 / 2, and the tail term is at most exp (τ - R + 2 n u log (e / u)) / (2 τ) ≤ 1 / (2 τ) with u = log₂ n / w, because u log (e / u) ≤ 2 √u is small when w ≥ K log₂ n. The m + 1 parity checks leave at least 2 ^ (n - m - 1) = τ 2 ^ n / (2 V) ≥ (R / 8) 2 ^ n / V codewords. Saglam's sharper leading constant (1 - ζ) / 4, with ζ → 0, is not formalized.

Cslib.Code.exists_parityCheckCode_of_ks completes the conditional chain: it derives the same conclusion from the Kirshner–Samorodnitsky bounds Cslib.Code.KSThirdMomentBound and Cslib.Code.KSTailBound, which are imported results stated as hypotheses (Cslib.Code.exists_puncturedBallFourierBounds_of_ks).

Main results #

References #

theorem Cslib.Code.exists_parityCheckCode_of_fourierBounds {ε : ℝ} (hε : 0 < ε) (hε2 : ε < 1 / 2) (h31 : ∃ (C : ℝ) (K : ℝ) (N : ℕ), ∀ n ≥ N, ∀ (w : ℕ), K * Real.logb 2 ↑n ≤ ↑w → ↑w ≤ (1 / 2 - ε) * ↑n → PuncturedBallFourierBounds n w C) :
∃ c > 0, ∃ (K : ℝ) (N : ℕ), ∀ n ≥ N, ∀ (d : ℕ), K * Real.logb 2 ↑n ≤ ↑d → ↑d ≤ (1 / 2 - ε) * ↑n → ∃ (m : ℕ) (H : Matrix (Fin m) (Fin n) (ZMod 2)), ↑d ≤ minDist ↑(parityCheckCode H) ∧ c * ↑n * 2 ^ n ≤ ↑(Nat.card ↥(parityCheckCode H)) * ∑ i ∈ Finset.Ico 1 d, ↑(n.choose i)

Saglam's theorem from Lemma 3.1 [Saglam2027, abstract and Section 3.3]: if the moment and tail estimates PuncturedBallFourierBounds n w C hold for all n ≥ N₀ and K₀ log₂ n ≤ w ≤ (1 / 2 - ε) n, then there are c > 0, K and N such that for all n ≥ N and K log₂ n ≤ d ≤ (1 / 2 - ε) n some parity-check matrix over 𝔽₂ defines a linear code of length n and minimum distance at least d with c n 2 ^ n ≤ |C| ∑_{1 ≤ i < d} C(n, i).

theorem Cslib.Code.exists_parityCheckCode_of_ks {ε : ℝ} (hε : 0 < ε) (hε2 : ε < 1 / 2) (hKS : ∃ (N : ℕ), ∀ n ≥ N, ∀ (w : ℕ), KSThirdMomentBound n w ∧ KSTailBound n w) :
∃ c > 0, ∃ (K : ℝ) (N : ℕ), ∀ n ≥ N, ∀ (d : ℕ), K * Real.logb 2 ↑n ≤ ↑d → ↑d ≤ (1 / 2 - ε) * ↑n → ∃ (m : ℕ) (H : Matrix (Fin m) (Fin n) (ZMod 2)), ↑d ≤ minDist ↑(parityCheckCode H) ∧ c * ↑n * 2 ^ n ≤ ↑(Nat.card ↥(parityCheckCode H)) * ∑ i ∈ Finset.Ico 1 d, ↑(n.choose i)

Saglam's theorem from the Kirshner–Samorodnitsky bounds [Saglam2027, abstract]: if the imported bounds KSThirdMomentBound n w and KSTailBound n w hold for all w and all sufficiently large n (Kirshner and Samorodnitsky state them for every n), then for every 0 < ε < 1 / 2 there are c > 0, K and N such that for all n ≥ N and K log₂ n ≤ d ≤ (1 / 2 - ε) n some binary linear code of length n and minimum distance at least d has at least c n 2 ^ n / ∑_{1 ≤ i < d} C(n, i) words.