Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§V, equation (49): one extended code works for every BSC

Open
QAlgorithms.Papers.Independent.Intake100.P31.deterministic_coset

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

For a normalized additive error law PPP, independent of the seed and uniformly transmitted codeword, let P^(k)=Pr⁡[∣X∣=k]\widehat P(k)=\Pr[|X|=k]P(k)=Pr[∣X∣=k]. Write [a]+=max⁡{a,0}[a]_+=\max\{a,0\}[a]+​=max{a,0} and FR(k)=2−n[1−h(min⁡{k/n,1/2})−R]+F_R(k)=2^{-n[1-h(\min\{k/n,1/2\})-R]_+}FR​(k)=2−n[1−h(min{k/n,1/2})−R]+​. Decoding means ML word decoding with a fixed syndrome-based deterministic tie rule, followed by quotient projection when an inner code is specified. For s∈[0,1]s\in[0,1]s∈[0,1] and p∈[0,1]p\in[0,1]p∈[0,1], define E0(s,p)=s−(1+s)log⁡2(p1/(1+s)+(1−p)1/(1+s))E_0(s,p)=s-(1+s)\log_2(p^{1/(1+s)}+(1-p)^{1/(1+s)})E0​(s,p)=s−(1+s)log2​(p1/(1+s)+(1−p)1/(1+s)) and E(R,p)=max⁡0≤s≤1[−sR+E0(s,p)]E(R,p)=\max_{0\le s\le1}[-sR+E_0(s,p)]E(R,p)=max0≤s≤1​[−sR+E0​(s,p)]. Given 1≤t≤n1\le t\le n1≤t≤n and an inner code KKK with dim⁡K≤t\dim K\le tdimK≤t, there exists a dimension-ttt extension L≥KL\ge KL≥K, chosen independently of the BSC parameter, such that

∀p∈[0,1],Pe(L/K;p)≤(n+1)2−nE(t/n,p).\forall p\in[0,1],\qquad P_e(L/K;p)\le(n+1)2^{-nE(t/n,p)}.∀p∈[0,1],Pe​(L/K;p)≤(n+1)2−nE(t/n,p).

Only the ML decoder may change with ppp.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P31
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Intake100.P31

open scoped BigOperators Matrix ComplexConjugate

open QAlgorithms

local instance {n : ℕ} (C : BinaryLinearCode n) : Fintype C := Fintype.ofFinite C

/-- PDF p.11 (49): one extension works for every p; dimension feasibility is explicit. -/
theorem deterministic_coset {n t : ℕ} (hn : 0 < n) (ht : 1 ≤ t) (htn : t ≤ n)
    (small : BinaryLinearCode n) (hd : Module.finrank (ZMod 2) small ≤ t) :
    ∃ large : BinaryLinearCode n, small ≤ large ∧ Module.finrank (ZMod 2) large = t ∧
      ∀ p : ℝ, p ∈ Set.Icc 0 1 → cosetWordError small large (bsc p) ≤
        (n + 1) * (2 : ℝ) ^ (-(n : ℝ) * gallagerExponent ((t : ℝ) / n) p) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P31

end
Source
Dual universality of hash functions and its applications to quantum cryptography, arXiv:1101.0064v4, PDF p. 11, §V, equation (49): one extended code works for every BSC
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

For all natural numbers n,tn,tn,t satisfying n>0n>0n>0 and 1≤t≤n1\le t\le n1≤t≤n, and every binary linear subspace S⊆Bn:=F2nS\subseteq B_n:=\mathbb F_2^nS⊆Bn​:=F2n​ with dim⁡F2S≤t\dim_{\mathbb F_2}S\le tdimF2​​S≤t, there exists a single binary linear subspace C⊆BnC\subseteq B_nC⊆Bn​ such that S⊆CS\subseteq CS⊆C, dim⁡F2C=t\dim_{\mathbb F_2}C=tdimF2​​C=t, and, for every real p∈[0,1]p\in[0,1]p∈[0,1],

1∣C∣∑a∈C∑x∈BnPp(x) 1{dC,p(a+x)−a∉S}≤(n+1) 2−nG(t/n,p).\frac1{|C|}\sum_{a\in C}\sum_{x\in B_n} P_p(x)\,\mathbf1_{\{d_{C,p}(a+x)-a\notin S\}} \le (n+1)\,2^{-nG(t/n,p)}.∣C∣1​a∈C∑​x∈Bn​∑​Pp​(x)1{dC,p​(a+x)−a∈/S}​≤(n+1)2−nG(t/n,p).

Here Pp(x)P_p(x)Pp​(x) is the product over coordinates of 1−p1-p1−p when xi=0x_i=0xi​=0 and ppp otherwise; dC,p(y)=y−eyd_{C,p}(y)=y-e_ydC,p​(y)=y−ey​, where eye_yey​ is the fixed choice of a maximizer of Pp(e)P_p(e)Pp​(e) among errors satisfying y−e∈Cy-e\in Cy−e∈C, including its choice in ties; and

G(R,p)=sup⁡0≤s≤1[−sR+s−(1+s)log⁡2 ⁣(p1/(1+s)+(1−p)1/(1+s))],log⁡2u=log⁡ulog⁡2.G(R,p)=\sup_{0\le s\le1} \left[ -sR+s-(1+s)\log_2\!\left(p^{1/(1+s)}+(1-p)^{1/(1+s)}\right) \right], \qquad \log_2u=\frac{\log u}{\log2}.G(R,p)=0≤s≤1sup​[−sR+s−(1+s)log2​(p1/(1+s)+(1−p)1/(1+s))],log2​u=log2logu​.

Thus the same containing code is required to satisfy the inequality for every ppp, including both endpoints. The hypotheses allow dim⁡S=t\dim S=tdimS=t, in which case the asserted containing code must equal SSS and the error indicator is always zero.

Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 31, 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