Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3, bound clause: dual of a universal subcode family

Open
QAlgorithms.Papers.Independent.Intake100.P31.theorem3

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

prove2quantum

Let n≥1n\ge1n≥1 and let Cr≤F2nC_r\le\mathbb F_2^nCr​≤F2n​ be indexed by a finite nonempty seed set III, sampled uniformly and independently of inputs. Repeated codes at distinct seeds retain their multiplicity. Write tmin⁡=min⁡rdim⁡Crt_{\min}=\min_r\dim C_rtmin​=minr​dimCr​ and tmax⁡=max⁡rdim⁡Crt_{\max}=\max_r\dim C_rtmax​=maxr​dimCr​. A dimension-ttt universality bound means Pr⁡r[x∈Cr]≤ε2t−n\Pr_r[x\in C_r]\le\varepsilon 2^{t-n}Prr​[x∈Cr​]≤ε2t−n for every nonzero xxx. Fix a code BBB of dimension mmm and suppose every Cr≤BC_r\le BCr​≤B. Assume ε≥0\varepsilon\ge0ε≥0 and Pr⁡r[x∈Cr]≤ε2t−m\Pr_r[x\in C_r]\le\varepsilon2^{t-m}Prr​[x∈Cr​]≤ε2t−m for every x∈B∖{0}x\in B\setminus\{0\}x∈B∖{0}, with t=tmin⁡t=t_{\min}t=tmin​. The duals extend B⊥B^\perpB⊥, have maximum dimension n−tn-tn−t, and are extended-code universal with parameter 2(1−2t−mε)+(ε−1)2t2(1-2^{t-m}\varepsilon)+(\varepsilon-1)2^t2(1−2t−mε)+(ε−1)2t. Explicitly,

∀x∉B⊥,Pr⁡r[x∈Cr⊥]≤(1−2t−mε)21−t+ε−1.\forall x\notin B^\perp,\quad\Pr_r[x\in C_r^\perp]\le(1-2^{t-m}\varepsilon)2^{1-t}+\varepsilon-1.∀x∈/B⊥,rPr​[x∈Cr⊥​]≤(1−2t−mε)21−t+ε−1.

The sharpness clause is separately deferred.

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.6, Theorem 3, bound clause. The duals extend B-perp; the printed
parenthetical subcode/extended-code terminology is reversed. -/
theorem theorem3 {n : ℕ} (hn : 0 < n) {I : Type*} [Fintype I] [Nonempty I]
    (B : BinaryLinearCode n) (C : I → BinaryLinearCode n) (eps : ℝ) (heps : 0 ≤ eps)
    (hu : SubUniversalAt B C (minDim C) eps) :
    maxDim (fun r => binDual (C r)) = n - minDim C ∧
    ExtUniversalAt (binDual B) (fun r => binDual (C r)) (n - minDim C)
      (dualParameter (Module.finrank (ZMod 2) B) (minDim C) eps) ∧
    ∀ x : BinaryBlock n, x ∉ binDual B → seedProbability (fun r => x ∈ binDual (C r)) ≤
      (1 - (2 : ℝ) ^ ((minDim C : ℝ) - Module.finrank (ZMod 2) B) * eps) *
        (2 : ℝ) ^ (1 - (minDim C : ℝ)) + eps - 1 := 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. 6, Theorem 3, bound clause: dual of a universal subcode family
Read-back

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

Let n>0n>0n>0 be natural, let III be finite and nonempty, let B⊆F2nB\subseteq\mathbb F_2^nB⊆F2n​ and Cr⊆F2nC_r\subseteq\mathbb F_2^nCr​⊆F2n​ be binary linear subspaces, and let ε≥0\varepsilon\ge0ε≥0 be real. Put k=dim⁡Bk=\dim Bk=dimB and t=min⁡rdim⁡Crt=\min_r\dim C_rt=minr​dimCr​, and let probabilities denote uniform counting over III. Assume Cr⊆BC_r\subseteq BCr​⊆B for every seed and Pr⁡r[x∈Cr]≤ε2t−k\Pr_r[x\in C_r]\le\varepsilon2^{t-k}Prr​[x∈Cr​]≤ε2t−k for every nonzero x∈Bx\in Bx∈B. For any subspace CCC, write C⊥={x:∑icixi=0 in F2 for every c∈C}C^\perp=\{x:\sum_i c_ix_i=0\text{ in }\mathbb F_2\text{ for every }c\in C\}C⊥={x:∑i​ci​xi​=0 in F2​ for every c∈C}. Then

max⁡rdim⁡Cr⊥=n−t,\max_r\dim C_r^\perp=n-t,rmax​dimCr⊥​=n−t,

every Cr⊥C_r^\perpCr⊥​ contains B⊥B^\perpB⊥, and every x∉B⊥x\notin B^\perpx∈/B⊥ satisfies both

Pr⁡r[x∈Cr⊥]≤[2(1−2t−kε)+(ε−1)2t]2−t\Pr_r[x\in C_r^\perp] \le \bigl[2(1-2^{t-k}\varepsilon)+(\varepsilon-1)2^t\bigr]2^{-t}rPr​[x∈Cr⊥​]≤[2(1−2t−kε)+(ε−1)2t]2−t

and

Pr⁡r[x∈Cr⊥]≤(1−2t−kε)21−t+ε−1.\Pr_r[x\in C_r^\perp] \le(1-2^{t-k}\varepsilon)2^{1-t}+\varepsilon-1.rPr​[x∈Cr⊥​]≤(1−2t−kε)21−t+ε−1.

The subspace BBB may be zero or the whole ambient space; when B=0B=0B=0, the assumed bounds on its nonzero vectors and the concluded bounds outside B⊥B^\perpB⊥ have no instances.

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