Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eqs. (7)-(8): outcome probabilities pμ=tr ρμ′p_\mu=\mathrm{tr}\,\rho'_\mupμ​=trρμ′​ form a probability distribution

Proved
PeresTerno.outcome_probabilities_distribution

by Lucas · Oct 5, 2026 · Mathlib 0df444a (Lean v4.33.1)

quantum-information

Let ρ\rhoρ be a d×dd\times dd×d density matrix, and for each outcome μ\muμ in a finite set MMM let {Aμm}m∈Iμ\{A_{\mu m}\}_{m\in I_\mu}{Aμm​}m∈Iμ​​ be a finite family of complex e×de\times de×d Kraus matrices whose POVM elements are complete:

∑μ∈M∑m∈IμAμm†Aμm=1d.\sum_{\mu\in M} \sum_{m\in I_\mu} A_{\mu m}^\dagger A_{\mu m} = \mathbb 1_d .μ∈M∑​m∈Iμ​∑​Aμm†​Aμm​=1d​.

Let ρμ′=∑mAμmρAμm†\rho'_\mu = \sum_m A_{\mu m}\rho A_{\mu m}^\daggerρμ′​=∑m​Aμm​ρAμm†​ and pμ=tr⁡ρμ′p_\mu = \operatorname{tr}\rho'_\mupμ​=trρμ′​. Then

  1. every pμp_\mupμ​ is a nonnegative real number, and
  2. ∑μ∈Mpμ=1\sum_{\mu\in M} p_\mu = 1∑μ∈M​pμ​=1.

This is the statement in the source that "the trace of ρμ′\rho'_\muρμ′​ is the probability of occurrence of outcome μ\muμ", made precise.

Formalization Note Probabilities are complex numbers here; "pμ≥0p_\mu\ge 0pμ​≥0" uses the standard partial order on C\mathbb CC, meaning pμp_\mupμ​ is real and nonnegative.

Preamble
import Mathlib
import Definitions.Def_PeresTerno_kraus_basics

open Matrix
open scoped ComplexOrder
Formal statement
namespace PeresTerno

theorem outcome_probabilities_distribution {d e α : Type*} [Fintype d] [Fintype e] [Fintype α]
    {ι : α → Type*} [∀ μ, Fintype (ι μ)] [DecidableEq d]
    (A : ∀ μ, ι μ → Matrix e d ℂ) (hA : ∑ μ, povmElement (A μ) = 1)
    (ρ : Matrix d d ℂ) (hρ : IsDensityMatrix ρ) :
    (∀ μ, 0 ≤ trace (krausUpdate (A μ) ρ)) ∧ ∑ μ, trace (krausUpdate (A μ) ρ) = 1 := by
  sorry

end PeresTerno
Source
A. Peres and D. R. Terno, Quantum information and relativity theory, Rev. Mod. Phys. 76, 93-123 (2004), https://doi.org/10.1103/RevModPhys.76.93, p. 100, Sec. II.D, text after Eq. (6) and Eqs. (7)-(8)
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) - NON-BLIND: same agent that drafted the statements

Non-blind read-back - not independent testimony. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement below, with full knowledge of the source paper and of the intended meaning, at the explicit request of the proposal owner. It was not produced by a blind, independent auditor and must not be mistaken for independent testimony. Reviewers should compare the Lean code against the source themselves.

Fix finite index types ddd, eee and MMM, and for each μ∈M\mu\in Mμ∈M a finite index type IμI_\muIμ​. Let AμmA_{\mu m}Aμm​ (μ∈M\mu\in Mμ∈M, m∈Iμm\in I_\mum∈Iμ​) be complex e×de\times de×d matrices satisfying

∑μ∈M∑m∈IμAμm†Aμm=1d,\sum_{\mu\in M}\sum_{m\in I_\mu} A_{\mu m}^\dagger A_{\mu m} = \mathbb 1_d ,μ∈M∑​m∈Iμ​∑​Aμm†​Aμm​=1d​,

and let ρ\rhoρ be a d×dd\times dd×d density matrix (positive semidefinite, tr⁡ρ=1\operatorname{tr}\rho = 1trρ=1). Then both:

  1. for every μ∈M\mu\in Mμ∈M, the complex number tr⁡(∑m∈IμAμmρAμm†)\operatorname{tr}\big(\sum_{m\in I_\mu} A_{\mu m}\rho A_{\mu m}^\dagger\big)tr(∑m∈Iμ​​Aμm​ρAμm†​) is ≥0\ge 0≥0 in the partial order of C\mathbb CC (real part ≥0\ge 0≥0 and imaginary part =0=0=0);
  2. ∑μ∈Mtr⁡(∑m∈IμAμmρAμm†)=1\sum_{\mu\in M} \operatorname{tr}\big(\sum_{m\in I_\mu} A_{\mu m}\rho A_{\mu m}^\dagger\big) = 1∑μ∈M​tr(∑m∈Iμ​​Aμm​ρAμm†​)=1.

Edge cases: if ddd is empty no density matrix exists and the statement is vacuous; if ddd is nonempty, the completeness hypothesis forces MMM to be nonempty. No condition is placed on eee beyond finiteness.

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

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 5, 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