Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

II A: concatenated-code tensor product and max threshold, (5)–(6)

Open
QAlgorithms.Papers.Independent.Intakethird100.P30.directSum

by Gohan · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let SSS be a finite nonempty set of blocks. For each s∈Ss\in Ss∈S, let CsC_sCs​ be a nonempty code of distinct words on a finite nonempty coordinate register DsD_sDs​, with finite label set KsK_sKs​. Form the full Cartesian concatenation C=∣Cs:s∈S∣C=\lvert C_s:s\in S\rvertC=∣Cs​:s∈S∣, labeled by ∏sKs\prod_s K_s∏s​Ks​, with coordinates ∐sDs\coprod_sD_s∐s​Ds​. For 0≤Q≤120\le Q\le\tfrac120≤Q≤21​, write Ps(Q)P_s(Q)Ps​(Q) and PC(Q)P_C(Q)PC​(Q) for the constructed Bob-only filtered operators. Under the explicit regrouping into corresponding Alice/Bob blocks,

PC(Q)=⨂s∈SPs(Q),ExtB(PC(Q))⟺∀s∈S, ExtB(Ps(Q)),QC∗=max⁡s∈SQCs∗.P_C(Q)=\bigotimes_{s\in S}P_s(Q),\qquad \mathrm{Ext}_B(P_C(Q))\Longleftrightarrow\forall s\in S,\ \mathrm{Ext}_B(P_s(Q)),\qquad Q_C^*=\max_{s\in S}Q_{C_s}^*.PC​(Q)=s∈S⨂​Ps​(Q),ExtB​(PC​(Q))⟺∀s∈S, ExtB​(Ps​(Q)),QC∗​=s∈Smax​QCs​∗​.

Here QC∗Q_C^*QC∗​ is the upper boundary of nonextendable QBERs in [0,12][0,\tfrac12][0,21​], with value zero when none exist. The statement includes two codes and all finite nonempty iterates. Concatenation is a Cartesian product, and the constructed factors have positive trace.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P30
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Intakethird100.P30

open scoped BigOperators Matrix ComplexConjugate ComplexOrder

attribute [local instance] Classical.propDecidable Classical.decEq

variable {I J K L A B : Type}

variable [Fintype I] [Fintype J] [Fintype K] [Fintype L]

variable [Fintype A] [Fintype B]

/-- PDF p.4, (5)–(6), including the finite iterated version: explicit block
regrouping yields the product coefficients and the maximum component threshold. -/
theorem directSum {S : Type} [Fintype S] [Nonempty S]
    {D M : S → Type} [∀ s, Fintype (D s)] [∀ s, Nonempty (D s)]
    [∀ s, Fintype (M s)] [∀ s, Nonempty (M s)]
    (C : (s : S) → M s → (D s → Bool)) (hC : ∀ s, Function.Injective (C s)) :
    (∀ Q : ℝ, 0 ≤ Q → Q ≤ 1 / 2 →
      (∀ (w w2 : Sigma D → Bool) (k l : (s : S) → M s),
        bobState (multiCode C) Q (w, k) (w2, l) =
          ∏ s, bobState (C s) Q ((fun i => w ⟨s, i⟩), k s)
            ((fun i => w2 ⟨s, i⟩), l s)) ∧
      (BobExtendible (bobState (multiCode C) Q) ↔
        ∀ s, BobExtendible (bobState (C s) Q))) ∧
    bobThreshold (multiCode C) = sSup (Set.range (fun s => bobThreshold (C s))) := by sorry

end QAlgorithms.Papers.Independent.Intakethird100.P30

end
Source
Numerical evidence for bound secrecy from two-way post-processing in quantum key distribution, arXiv:1612.07734v2, PDF p. 4, II A: concatenated-code tensor product and max threshold, (5)–(6)
Read-back

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

Let SSS be a finite nonempty type; for each s∈Ss\in Ss∈S, let DsD_sDs​ and MsM_sMs​ be finite nonempty coordinate and label types, and let Cs:Ms→{0,1}DsC_s:M_s\to\{0,1\}^{D_s}Cs​:Ms​→{0,1}Ds​ be injective. Define the combined code by Cmulti(k)(s,i)=Cs(ks)iC_{\mathrm{multi}}(k)_{(s,i)}=C_s(k_s)_iCmulti​(k)(s,i)​=Cs​(ks​)i​, where k∈∏sMsk\in\prod_sM_sk∈∏s​Ms​. For any finite-coordinate code E:L→{0,1}JE:L\to\{0,1\}^{J}E:L→{0,1}J, define

BE,Q((a,k),(a′,l))=∏i∈J(1−2Q21ai=E(k)i1ai′=E(l)i+Q21ai=ai′1E(k)i=E(l)i).B_{E,Q}((a,k),(a',l)) =\prod_{i\in J} \left( \frac{1-2Q}{2}\mathbf1_{a_i=E(k)_i}\mathbf1_{a'_i=E(l)_i} +\frac Q2\mathbf1_{a_i=a'_i}\mathbf1_{E(k)_i=E(l)_i} \right).BE,Q​((a,k),(a′,l))=i∈J∏​(21−2Q​1ai​=E(k)i​​1ai′​=E(l)i​​+2Q​1ai​=ai′​​1E(k)i​=E(l)i​​).

Say that a matrix PPP indexed by A×BA\times BA×B admits a Bob-copy extension when there exists a positive semidefinite matrix indexed by (A×B)×B(A\times B)\times B(A×B)×B whose two partial traces, obtained by summing over either copy of BBB, both equal PPP; no trace-one condition is imposed on this extension. Define

b(E)=sup⁡ ⁣({0}∪{q∈[0,1/2]:BE,q admits no Bob-copy extension}).b(E)=\sup\!\left(\{0\}\cup \{q\in[0,1/2]:B_{E,q}\text{ admits no Bob-copy extension}\}\right).b(E)=sup({0}∪{q∈[0,1/2]:BE,q​ admits no Bob-copy extension}).

The theorem asserts that, for every Q∈[0,1/2]Q\in[0,1/2]Q∈[0,1/2], every pair of Boolean strings w,w′w,w'w,w′ on the disjoint union of the DsD_sDs​, and every k,l∈∏sMsk,l\in\prod_sM_sk,l∈∏s​Ms​,

BCmulti,Q((w,k),(w′,l))=∏s∈SBCs,Q((ws,ks),(ws′,ls)),ws(i)=w(s,i),B_{C_{\mathrm{multi}},Q}((w,k),(w',l)) =\prod_{s\in S}B_{C_s,Q}((w_s,k_s),(w'_s,l_s)), \qquad w_s(i)=w(s,i),BCmulti​,Q​((w,k),(w′,l))=s∈S∏​BCs​,Q​((ws​,ks​),(ws′​,ls​)),ws​(i)=w(s,i),

and that BCmulti,QB_{C_{\mathrm{multi}},Q}BCmulti​,Q​ admits a Bob-copy extension if and only if every BCs,QB_{C_s,Q}BCs​,Q​ does. It also asserts

b(Cmulti)=sup⁡{b(Cs):s∈S}.b(C_{\mathrm{multi}})=\sup\{b(C_s):s\in S\}.b(Cmulti​)=sup{b(Cs​):s∈S}.
Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Nov 1, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me