Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Diagonal unitary mixtures preserve complete measurement blocks

Proved
QAlgorithms.Papers.Independent.Intake100.P90.measurementBasis_reduction

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

prove2quantum

Let ρ\rhoρ be a normalized density matrix on finite registers A⊗BA\otimes BA⊗B, with their known orthonormal measurement bases. Let pj≥0p_j\ge0pj​≥0 with ∑jpj=1\sum_jp_j=1∑j​pj​=1, and let OjO_jOj​ be unitaries diagonal in Alice's measurement basis. Define ρA′=∑jpj(Oj⊗I)ρ(Oj†⊗I)\rho'_A=\sum_j p_j(O_j\otimes I)\rho(O_j^\dagger\otimes I)ρA′​=∑j​pj​(Oj​⊗I)ρ(Oj†​⊗I). For each Alice basis label xxx, writing Px=∣x⟩⟨x∣P_x=|x\rangle\langle x|Px​=∣x⟩⟨x∣, one has

(Px⊗I)ρA′(Px⊗I)=(Px⊗I)ρ(Px⊗I).(P_x\otimes I)\rho'_A(P_x\otimes I)=(P_x\otimes I)\rho(P_x\otimes I).(Px​⊗I)ρA′​(Px​⊗I)=(Px​⊗I)ρ(Px​⊗I).

The analogous assertion holds for any normalized mixture of Bob's basis-diagonal unitaries, with projectors I⊗PyI\otimes P_yI⊗Py​. The identity preserves both outcome probabilities and the remaining systems' unnormalized conditional states, and justifies the measurement-equivalent diagonal randomization used in the protocol reduction.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P90
Formal statement
noncomputable section

open scoped ComplexConjugate ComplexOrder

attribute [local instance] Classical.propDecidable Classical.decEq

namespace QAlgorithms.Papers.Independent.Intake100.P90

/-- PDF p.2: equality of the entire projected blocks, on either subsystem,
under a normalized mixture of diagonal unitaries in the known basis. -/
theorem measurementBasis_reduction {I J K : Type*}
    [Fintype I] [Fintype J] [Fintype K] [DecidableEq I] [DecidableEq J]
    (rho : Matrix (I × J) (I × J) ℂ) (hrho : IsDensityMatrix rho)
    (p : K → ℝ) (hp : ∀ k, 0 ≤ p k) (hsum : ∑ k, p k = 1)
    (OA : K → Matrix.unitaryGroup I ℂ) (OB : K → Matrix.unitaryGroup J ℂ)
    (hA : ∀ k, ∃ d : I → ℂ, (∀ x, Complex.normSq (d x) = 1) ∧
      (OA k : Matrix I I ℂ) = Matrix.diagonal d)
    (hBB : ∀ k, ∃ d : J → ℂ, (∀ x, Complex.normSq (d x) = 1) ∧
      (OB k : Matrix J J ℂ) = Matrix.diagonal d) :
    (∀ x : I, let P := Matrix.kronecker (pureDensity (ket x)) (1 : Matrix J J ℂ)
      P * mixOnFirst p (fun k => (OA k : Matrix I I ℂ)) rho * P = P * rho * P) ∧
    (∀ y : J, let P := Matrix.kronecker (1 : Matrix I I ℂ) (pureDensity (ket y))
      P * mixOnSecond p (fun k => (OB k : Matrix J J ℂ)) rho * P = P * rho * P) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P90

end
Source
Lower and upper bounds on the secret key rate for QKD protocols using one--way classical communication, arXiv:quant-ph/0410215v2, PDF p. 2, Unnumbered measurement-basis reduction
Read-back

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

Let I,J,KI,J,KI,J,K be finite types, with decidable equality on III and JJJ. Let ρ\rhoρ be a complex matrix indexed by I×JI\times JI×J that is positive semidefinite and has trace 111. Let p:K→Rp:K\to\mathbb Rp:K→R satisfy pk≥0p_k\ge0pk​≥0 for every kkk and ∑kpk=1\sum_k p_k=1∑k​pk​=1. For each kkk, let AkA_kAk​ and BkB_kBk​ be unitary matrices indexed by III and JJJ, respectively. Assume that each AkA_kAk​ is diagonal with entries dk,xA∈Cd^A_{k,x}\in\mathbb Cdk,xA​∈C satisfying ∣dk,xA∣2=1|d^A_{k,x}|^2=1∣dk,xA​∣2=1, and each BkB_kBk​ is diagonal with entries dk,yB∈Cd^B_{k,y}\in\mathbb Cdk,yB​∈C satisfying ∣dk,yB∣2=1|d^B_{k,y}|^2=1∣dk,yB​∣2=1. Write ExE_xEx​ for the matrix indexed by III whose only nonzero entry is a 111 at (x,x)(x,x)(x,x), and FyF_yFy​ for the analogous matrix indexed by JJJ. Define

MA(ρ)=∑k∈Kpk(Ak⊗IJ)ρ(Ak⊗IJ)†,MB(ρ)=∑k∈Kpk(II⊗Bk)ρ(II⊗Bk)†.\mathcal M_A(\rho)=\sum_{k\in K}p_k(A_k\otimes I_J)\rho(A_k\otimes I_J)^\dagger, \qquad \mathcal M_B(\rho)=\sum_{k\in K}p_k(I_I\otimes B_k)\rho(I_I\otimes B_k)^\dagger.MA​(ρ)=k∈K∑​pk​(Ak​⊗IJ​)ρ(Ak​⊗IJ​)†,MB​(ρ)=k∈K∑​pk​(II​⊗Bk​)ρ(II​⊗Bk​)†.

Then, simultaneously, for every x∈Ix\in Ix∈I, (Ex⊗IJ)MA(ρ)(Ex⊗IJ)=(Ex⊗IJ)ρ(Ex⊗IJ)(E_x\otimes I_J)\mathcal M_A(\rho)(E_x\otimes I_J)=(E_x\otimes I_J)\rho(E_x\otimes I_J)(Ex​⊗IJ​)MA​(ρ)(Ex​⊗IJ​)=(Ex​⊗IJ​)ρ(Ex​⊗IJ​), and for every y∈Jy\in Jy∈J, (II⊗Fy)MB(ρ)(II⊗Fy)=(II⊗Fy)ρ(II⊗Fy)(I_I\otimes F_y)\mathcal M_B(\rho)(I_I\otimes F_y)=(I_I\otimes F_y)\rho(I_I\otimes F_y)(II​⊗Fy​)MB​(ρ)(II​⊗Fy​)=(II​⊗Fy​)ρ(II​⊗Fy​). Here †\dagger† denotes conjugate transpose. The assumptions cannot hold if any of I,J,KI,J,KI,J,K is empty: an empty III or JJJ would force tr⁡ρ=0\operatorname{tr}\rho=0trρ=0, and an empty KKK would force ∑kpk=0\sum_kp_k=0∑k​pk​=0.

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

    Confirmed by the moderator at approval.

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