Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 3: permutation-dual-universal subcode pairs

Open
QAlgorithms.Papers.Independent.Intake100.P31.proposition3

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

prove2quantum

For K≤L≤F2nK\le L\le\mathbb F_2^nK≤L≤F2n​, set ε(L/K)=max⁡1≤k≤n[εk(L)−(∣K∣/∣L∣)εk(K)]\varepsilon(L/K)=\max_{1\le k\le n}[\varepsilon_k(L)-(|K|/|L|)\varepsilon_k(K)]ε(L/K)=max1≤k≤n​[εk​(L)−(∣K∣/∣L∣)εk​(K)]. A dimension-ttt universal pair family (Kr,Lr)(K_r,L_r)(Kr​,Lr​) satisfies Kr≤LrK_r\le L_rKr​≤Lr​ and Pr⁡r[x∈Lr∖Kr]≤ε2t−n\Pr_r[x\in L_r\setminus K_r]\le\varepsilon2^{t-n}Prr​[x∈Lr​∖Kr​]≤ε2t−n for every nonzero xxx. Let 1≤t≤n1\le t\le n1≤t≤n and fix LLL with t≤dim⁡Lt\le\dim Lt≤dimL. There exists a dimension-ttt subcode K≤LK\le LK≤L such that

Pr⁡σ∈Sn[x∈(σK)⊥∖(σL)⊥]≤(n+1)2−t(x≠0).\Pr_{\sigma\in S_n}[x\in(\sigma K)^\perp\setminus(\sigma L)^\perp]\le(n+1)2^{-t}\qquad(x\ne0).σ∈Sn​Pr​[x∈(σK)⊥∖(σL)⊥]≤(n+1)2−t(x=0).

Thus the permuted original pair is almost dual universal. The dimension-feasibility condition repairs the printed omission.

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.9, Proposition 3, corrected feasibility t≤dim(large). -/
theorem proposition3 {n t : ℕ} (hn : 0 < n) (ht : 1 ≤ t) (htn : t ≤ n)
    (large : BinaryLinearCode n) (hd : t ≤ Module.finrank (ZMod 2) large) :
    ∃ small : BinaryLinearCode n, small ≤ large ∧ Module.finrank (ZMod 2) small = t ∧
      PairUniversalAt (fun s => binDual (permCode large s))
        (fun s => binDual (permCode small s)) (n - t) (n + 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. 9, Proposition 3: permutation-dual-universal subcode pairs
Read-back

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

For all natural numbers n,tn,tn,t with n>0n>0n>0 and 1≤t≤n1\le t\le n1≤t≤n, and every binary linear subspace Clarge⊆F2nC_{\mathrm{large}}\subseteq\mathbb F_2^nClarge​⊆F2n​ of dimension at least ttt, there exists a binary linear subspace Csmall⊆ClargeC_{\mathrm{small}}\subseteq C_{\mathrm{large}}Csmall​⊆Clarge​ of dimension exactly ttt with the following property. For each coordinate permutation sss, put Cs={x:x∘s−1∈C}C_s=\{x:x\circ s^{-1}\in C\}Cs​={x:x∘s−1∈C} and Cs⊥={x:∑icixi=0 in F2 for every c∈Cs}C_s^\perp=\{x:\sum_i c_i x_i=0\text{ in }\mathbb F_2\text{ for every }c\in C_s\}Cs⊥​={x:∑i​ci​xi​=0 in F2​ for every c∈Cs​}. Then (Clarge)s⊥⊆(Csmall)s⊥(C_{\mathrm{large}})_s^\perp\subseteq(C_{\mathrm{small}})_s^\perp(Clarge​)s⊥​⊆(Csmall​)s⊥​ for every sss, and every nonzero x∈F2nx\in\mathbb F_2^nx∈F2n​ satisfies

∣{s∈Sn:x∈(Csmall)s⊥, x∉(Clarge)s⊥}∣n!≤(n+1) 2(n−t)−n.\frac{|\{s\in S_n:x\in(C_{\mathrm{small}})_s^\perp,\ x\notin(C_{\mathrm{large}})_s^\perp\}|}{n!} \le (n+1)\,2^{(n-t)-n}.n!∣{s∈Sn​:x∈(Csmall​)s⊥​, x∈/(Clarge​)s⊥​}∣​≤(n+1)2(n−t)−n.

The natural-number difference n−tn-tn−t is nonnegative under the hypotheses and may equal 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