Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 18: finite measure-and-prepare programmability iff polytope

Open
QAlgorithms.Papers.Independent.Extend50.P21.measure_prepare_iff_polytope

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

prove2quantum

All Hilbert spaces are nonzero and finite dimensional over C\mathbb CC. Channels are completely positive and trace preserving (CPTP), density operators are positive semidefinite with trace one, and pure programs are unit vectors. The normalized, reference-first Choi operator is cT=(idd1⊗T)(∣Ω⟩⟨Ω∣)c_T=(\mathrm{id}_{d_1}\otimes T)(|\Omega\rangle\langle\Omega|)cT​=(idd1​​⊗T)(∣Ω⟩⟨Ω∣), where ∣Ω⟩=d1−1/2∑i∣i,i⟩|\Omega\rangle=d_1^{-1/2}\sum_i|i,i\rangle∣Ω⟩=d1−1/2​∑i​∣i,i⟩, with two input-sized factors before TTT acts. A processor is one fixed CPTP map P:B(H1⊗Cp)→B(H2)P:\mathcal B(\mathcal H_1\otimes\mathbb C^p)\to\mathcal B(\mathcal H_2)P:B(H1​⊗Cp)→B(H2​), chosen before the target channel. An ε\varepsilonε-processor means that every target TTT has a density program πT\pi_TπT​ with 12∥P(⋅⊗πT)−T∥⋄≤ε\frac12\|P(\cdot\otimes\pi_T)-T\|_\diamond\le\varepsilon21​∥P(⋅⊗πT​)−T∥⋄​≤ε, including entangled reference inputs. Let CCC be a nonempty convex set of CPTP maps. A measure-and-prepare processor has finitely many fixed target channels Tj∈CT_j\in CTj​∈C and positive POVM effects EjE_jEj​ summing to the program identity, with P(A⊗B)=∑jtr⁡(EjB)Tj(A)P(A\otimes B)=\sum_j\operatorname{tr}(E_jB)T_j(A)P(A⊗B)=∑j​tr(Ej​B)Tj​(A). Then

C has a finite exact measure-and-prepare processor ⟺ JC={cT:T∈C} is a finite polytope.C\text{ has a finite exact measure-and-prepare processor}\ \Longleftrightarrow\ J_C=\{c_T:T\in C\}\text{ is a finite polytope}.C has a finite exact measure-and-prepare processor ⟺ JC​={cT​:T∈C} is a finite polytope.

When these conditions hold, the program dimension can equal the finite number of extreme points of JCJ_CJC​, and every channel in CCC has a unit pure program. Nonemptiness is the convention used by the source proof. This characterizes this special processor architecture.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P21
Formal statement
noncomputable section

open scoped Matrix ComplexConjugate ComplexOrder Manifold ContDiff

open QAlgorithms

open QAlgorithms.Papers.Independent.Information100.P56 (normalizedChoi)

open QAlgorithms.Papers.Independent.Support21.P09 (Irreducible EquivalentModels)

open QAlgorithms.Papers.Independent.Information100.P69 (diamond)

open QAlgorithms.Papers.Independent.Information100.P08 (depolarizing)

open QAlgorithms.Papers.Independent.Information100.P60 (wernerHolevo)

namespace QAlgorithms.Papers.Independent.Extend50.P21

attribute [local instance] Classical.propDecidable

attribute [local instance] Classical.decEq

section General

variable {G I O : Type*} [Group G] [TopologicalSpace G]

variable [Fintype I] [DecidableEq I] [inputNonempty : Nonempty I]

variable [Fintype O] [DecidableEq O] [outputNonempty : Nonempty O]

include inputNonempty outputNonempty

/-- PDF pp.9--10, Proposition 18: finite measure-and-prepare programmability
iff a polytope. Nonemptiness is the convention used by the proof. -/
theorem measure_prepare_iff_polytope (C : Set (Superop I O))
    (hne : C.Nonempty) (hconv : Convex ℝ C) (hchannels : ∀ T ∈ C, IsChannel T) :
    ((∃ p : ℕ, 0 < p ∧ ∃ processor : Superop (I × Fin p) O,
      ProgramsChannelClass processor C 0 ∧ FiniteMeasurePrepareProcessor processor C) ↔ Polytope (choiSet C)) ∧
    (Polytope (choiSet C) → ∃ p : ℕ,
      0 < p ∧ p = ((choiSet C).extremePoints ℝ).ncard ∧
      ∃ processor : Superop (I × Fin p) O,
        PureImplements processor C 0 ∧ FiniteMeasurePrepareProcessor processor C) := by sorry

end General

end QAlgorithms.Papers.Independent.Extend50.P21

end
Source
Programmability of covariant quantum channels, arXiv:2012.00717v2, PDF p. 9, Proposition 18: finite measure-and-prepare programmability iff polytope
Read-back

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

Let I,OI,OI,O be finite types with decidable equality, and let CCC be a nonempty real convex set of maps from complex I×II\times II×I matrices to complex O×OO\times OO×O matrices, every member of which is a channel: it has a finite Kraus representation T(A)=∑jKjAKj†T(A)=\sum_jK_jAK_j^\daggerT(A)=∑j​Kj​AKj†​ with ∑jKj†Kj=1\sum_jK_j^\dagger K_j=1∑j​Kj†​Kj​=1. Write J={J(T):T∈C}\mathcal J=\{J(T):T\in C\}J={J(T):T∈C}, where J(T)(i,o),(j,o′)=∣I∣−1T(Eij)o,o′J(T)_{(i,o),(j,o')}=|I|^{-1}T(E_{ij})_{o,o'}J(T)(i,o),(j,o′)​=∣I∣−1T(Eij​)o,o′​; if III is empty, the inverse of its zero cardinality is interpreted as zero. For a processor P\mathcal PP with input register I×{0,…,p−1}I\times\{0,\ldots,p-1\}I×{0,…,p−1}, write Pσ(A)=P(A⊗σ)\mathcal P_\sigma(A)=\mathcal P(A\otimes\sigma)Pσ​(A)=P(A⊗σ). For a linear map Δ\DeltaΔ with input index set III, write

∥Δ∥⋄=sup⁡∥X∥1≤1∥(id⁡I⊗Δ)(X)∥1,∥X∥1=Re⁡tr⁡X†X,\|\Delta\|_\diamond =\sup_{\|X\|_1\le1}\|(\operatorname{id}_I\otimes\Delta)(X)\|_1, \qquad \|X\|_1=\operatorname{Re}\operatorname{tr}\sqrt{X^\dagger X},∥Δ∥⋄​=∥X∥1​≤1sup​∥(idI​⊗Δ)(X)∥1​,∥X∥1​=RetrX†X​,

where the amplification applies Δ\DeltaΔ to each matrix block. There exist a positive integer ppp and a channel processor P\mathcal PP such that every T∈CT\in CT∈C has a positive semidefinite trace-one program σ\sigmaσ with ∥Pσ−T∥⋄/2≤0\|\mathcal P_\sigma-T\|_\diamond/2\le0∥Pσ​−T∥⋄​/2≤0, and such that, for some positive integer kkk, positive semidefinite program effects F0,…,Fk−1F_0,\ldots,F_{k-1}F0​,…,Fk−1​ summing to the identity and targets T0,…,Tk−1∈CT_0,\ldots,T_{k-1}\in CT0​,…,Tk−1​∈C satisfy

P(A⊗B)=∑j=0k−1tr⁡(FjB) Tj(A)for every A,B,\mathcal P(A\otimes B)=\sum_{j=0}^{k-1}\operatorname{tr}(F_jB)\,T_j(A) \quad\text{for every }A,B,P(A⊗B)=j=0∑k−1​tr(Fj​B)Tj​(A)for every A,B,

if and only if J\mathcal JJ is the real convex hull of a nonempty finite set. Furthermore, if this convex-hull property holds, such a processor exists with positive program dimension ppp equal to the set-theoretic natural cardinality of the real extreme points of J\mathcal JJ, and every T∈CT\in CT∈C can then use a program ψψ†\psi\psi^\daggerψψ† with ∥ψ∥=1\|\psi\|=1∥ψ∥=1 and ∥Pψψ†−T∥⋄/2≤0\|\mathcal P_{\psi\psi^\dagger}-T\|_\diamond/2\le0∥Pψψ†​−T∥⋄​/2≤0.

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

    Confirmed by the moderator at approval.

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