Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Local auxiliary measurement constructs a basis-independent source

Open
QAlgorithms.Papers.Independent.Intakenext100.P04.remotePreparation_basisIndependent

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

prove2quantum

Let ρAA′\rho_{AA'}ρAA′​ be any positive trace-class density operator on an arbitrary complete bipartite complex Hilbert space. Independently choose a∈{0,1}a\in\{0,1\}a∈{0,1} uniformly and perform any normalized two-outcome measurement {Ma,g}g=0,1\{M_{a,g}\}_{g=0,1}{Ma,g​}g=0,1​ on A′A'A′ alone. Construct the subnormalized emitted branches and their weights by

Ba,g=12Tr⁡A′[(I⊗Ma,g)ρAA′(I⊗Ma,g)],pa,g=Tr⁡Ba,g.B_{a,g}=\tfrac12\operatorname{Tr}_{A'}[(I\otimes\sqrt{M_{a,g}})\rho_{AA'}(I\otimes\sqrt{M_{a,g}})],\qquad p_{a,g}=\operatorname{Tr}B_{a,g}.Ba,g​=21​TrA′​[(I⊗Ma,g​​)ρAA′​(I⊗Ma,g​​)],pa,g​=TrBa,g​.

The joint branches before partial trace are positive trace-class operators. Their weights are nonnegative, ∑gpa,g=1/2\sum_g p_{a,g}=1/2∑g​pa,g​=1/2, and

∑gB0,g=∑gB1,g=12Tr⁡A′ρAA′.\sum_g B_{0,g}=\sum_g B_{1,g}=\tfrac12\operatorname{Tr}_{A'}\rho_{AA'}.g∑​B0,g​=g∑​B1,g​=21​TrA′​ρAA′​.

Thus the constructed ensemble satisfies the source's weighted basis-independence condition. Zero-probability outcomes cause no division by zero, and the bit need not be unbiased.

Formalization Note A product Hilbert basis and the coefficient identity for IA⊗Ma,gI_A\otimes M_{a,g}IA​⊗Ma,g​ express locality without a finite-dimensional restriction. The local measurement's reduced branch is independent of the chosen realization of its instrument.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P04
Formal statement
noncomputable section

universe u v w

namespace QAlgorithms.Papers.Independent.Intakenext100.P04

open QAlgorithms

open QAlgorithms.Papers.Independent.Dependency50.P13
  (State IsTraceClass IsPositive operatorTrace)

open QAlgorithms.Papers.Independent.Advance50.P18 (keyEntropy)

open scoped ComplexConjugate

attribute [local instance] Classical.propDecidable Classical.decEq

variable {H : Type u} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]

/-- Koashi–Preskill PDF p.2, source design preceding Protocol 1: local
measurement of a fixed joint state supplies Eq.(1), with its actual branch
weights, without characterizing either the joint state or the two measurements. -/
theorem remotePreparation_basisIndependent {I : Type v} {J : Type w}
    (b : HilbertBasis (I × J) ℂ H) (rho : State b)
    (M : Bool → AuxiliaryMeasurement b) :
    (∀ a g, IsTraceClass (preparationBranch rho (M a) g) ∧
      IsPositive (preparationBranch rho (M a) g)) ∧
    (∀ a g, 0 ≤ preparationWeight rho (M a) g) ∧
    (∀ a, ∑ g, preparationWeight rho (M a) g = 1 / 2) ∧
    (∀ a, ∑ g, weightedEmittedBranch rho (M a) g =
      (1 / 2 : ℂ) • emittedMarginal b rho.val.val) ∧
    (∑ g, weightedEmittedBranch rho (M false) g) =
      ∑ g, weightedEmittedBranch rho (M true) g := by sorry

end QAlgorithms.Papers.Independent.Intakenext100.P04

end
Source
Secure quantum key distribution with an uncharacterized source, arXiv:quant-ph/0208155v2, PDF p. 2, Source-design paragraph preceding Protocol 1
Read-back

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

Let I,JI,JI,J be arbitrary types, HHH a complete complex inner product space, and b:I×J→Hb:I\times J\to Hb:I×J→H a Hilbert basis. Suppose ρ:H→H\rho:H\to Hρ:H→H is continuous and complex linear, has a representation ρx=∑r∈N⟨vr,x⟩ur\rho x=\sum_{r\in\mathbb N}\langle v_r,x\rangle u_rρx=∑r∈N​⟨vr​,x⟩ur​ with ∑r∥ur∥∥vr∥<∞\sum_r\|u_r\|\|v_r\|<\infty∑r​∥ur​∥∥vr​∥<∞, is self-adjoint with Re⁡⟨x,ρx⟩≥0\operatorname{Re}\langle x,\rho x\rangle\ge0Re⟨x,ρx⟩≥0 for all xxx, and satisfies Tr⁡b(ρ)=1\operatorname{Tr}_b(\rho)=1Trb​(ρ)=1, where Tr⁡b(T)=∑(i,j)⟨b(i,j),Tb(i,j)⟩\operatorname{Tr}_b(T)=\sum_{(i,j)}\langle b_{(i,j)},Tb_{(i,j)}\rangleTrb​(T)=∑(i,j)​⟨b(i,j)​,Tb(i,j)​⟩. For each Boolean aaa, suppose there are positive continuous operators Ea,gE_{a,g}Ea,g​, indexed by Boolean ggg, summing to the identity, and some function mam_ama​ such that ⟨b(i,j),Ea,gb(k,l)⟩=δikma(g,j,l)\langle b_{(i,j)},E_{a,g}b_{(k,l)}\rangle=\delta_{ik}m_a(g,j,l)⟨b(i,j)​,Ea,g​b(k,l)​⟩=δik​ma​(g,j,l) for every g,i,j,k,lg,i,j,k,lg,i,j,k,l. Define Ba,g=Ea,g1/2ρEa,g1/2B_{a,g}=E_{a,g}^{1/2}\rho E_{a,g}^{1/2}Ba,g​=Ea,g1/2​ρEa,g1/2​ by continuous functional calculus, wa,g=Re⁡Tr⁡b(Ba,g)/2w_{a,g}=\operatorname{Re}\operatorname{Tr}_b(B_{a,g})/2wa,g​=ReTrb​(Ba,g​)/2, Rb(T)ik=∑j⟨b(i,j),Tb(k,j)⟩R_b(T)_{ik}=\sum_j\langle b_{(i,j)},Tb_{(k,j)}\rangleRb​(T)ik​=∑j​⟨b(i,j)​,Tb(k,j)​⟩, and Wa,g=Rb(Ba,g)/2W_{a,g}=R_b(B_{a,g})/2Wa,g​=Rb​(Ba,g​)/2. The theorem asserts all of the following:

For every a,g,Ba,gx=∑r∈N⟨vra,g,x⟩ura,gfor some ua,g,va,g with ∑r∥ura,g∥∥vra,g∥<∞,Ba,g∗=Ba,g,Re⁡⟨x,Ba,gx⟩≥0for every x,wa,g≥0,For every a,∑gwa,g=12,∑gWa,g=12Rb(ρ),∑gWfalse,g=∑gWtrue,g.\begin{gathered} \text{For every }a,g,\quad B_{a,g}x=\sum_{r\in\mathbb N}\langle v^{a,g}_r,x\rangle u^{a,g}_r \quad\text{for some }u^{a,g},v^{a,g} \text{ with }\sum_r\|u^{a,g}_r\|\|v^{a,g}_r\|<\infty,\\ B_{a,g}^*=B_{a,g}, \qquad \operatorname{Re}\langle x,B_{a,g}x\rangle\ge0 \quad\text{for every }x, \qquad w_{a,g}\ge0,\\ \text{For every }a,\quad \sum_g w_{a,g}=\frac12, \qquad \sum_g W_{a,g}=\frac12R_b(\rho),\\ \sum_g W_{\mathrm{false},g} = \sum_g W_{\mathrm{true},g}. \end{gathered}For every a,g,Ba,g​x=r∈N∑​⟨vra,g​,x⟩ura,g​for some ua,g,va,g with r∑​∥ura,g​∥∥vra,g​∥<∞,Ba,g∗​=Ba,g​,Re⟨x,Ba,g​x⟩≥0for every x,wa,g​≥0,For every a,g∑​wa,g​=21​,g∑​Wa,g​=21​Rb​(ρ),g∑​Wfalse,g​=g∑​Wtrue,g​.​

Both sums over ggg have two terms. There is no nontriviality, separability, or index-countability assumption on H,I,JH,I,JH,I,J; if the basis index set is empty, the trace-one hypothesis cannot hold. Infinite complex sums are interpreted as 000 when not summable.

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