Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Three equivalent criteria for 2-sufficiency

Open
QAlgorithms.Papers.Independent.Intake100.P71.twoSufficiencyCriteria

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

prove2quantum

Let H=CIH=\mathbb C^IH=CI, where III is finite and nonempty, and let ρ0,ρ1\rho_0,\rho_1ρ0​,ρ1​ be positive definite positive density matrices of ordinary trace one. Let A⊆B(H)A\subseteq B(H)A⊆B(H) be a concrete unital star subalgebra with the same identity, and let E:B(H)→AE:B(H)\to AE:B(H)→A be its unique ordinary-trace-preserving conditional expectation. Write Eρ(X)=E(ρ)−1/2E(ρ1/2Xρ1/2)E(ρ)−1/2E_\rho(X)=E(\rho)^{-1/2}E(\rho^{1/2}X\rho^{1/2})E(\rho)^{-1/2}Eρ​(X)=E(ρ)−1/2E(ρ1/2Xρ1/2)E(ρ)−1/2, Fρ={X:Eρ(X)=X}F_\rho=\{X:E_\rho(X)=X\}Fρ​={X:Eρ​(X)=X} and Nρ={X:Eρ(X∗X)=Eρ(X)∗Eρ(X), Eρ(XX∗)=Eρ(X)Eρ(X)∗}N_\rho=\{X:E_\rho(X^*X)=E_\rho(X)^*E_\rho(X),\ E_\rho(XX^*)=E_\rho(X)E_\rho(X)^*\}Nρ​={X:Eρ​(X∗X)=Eρ​(X)∗Eρ​(X), Eρ​(XX∗)=Eρ​(X)Eρ​(X)∗}. Write dρ0,ρ1=ρ0−1/2ρ1ρ0−1/2d_{\rho_0,\rho_1}=\rho_0^{-1/2}\rho_1\rho_0^{-1/2}dρ0​,ρ1​​=ρ0−1/2​ρ1​ρ0−1/2​.

A test is any effect 0≤M≤I0\le M\le I0≤M≤I, representing rejection of ρ0\rho_0ρ0​. Its errors are α(M)=Tr⁡(ρ0M)\alpha(M)=\operatorname{Tr}(\rho_0M)α(M)=Tr(ρ0​M) and β(M)=Tr⁡(ρ1(I−M))\beta(M)=\operatorname{Tr}(\rho_1(I-M))β(M)=Tr(ρ1​(I−M)), with Bayes risk Rλ(M)=λα(M)+(1−λ)β(M)R_\lambda(M)=\lambda\alpha(M)+(1-\lambda)\beta(M)Rλ​(M)=λα(M)+(1−λ)β(M) for 0<λ<10<\lambda<10<λ<1. The algebra is 2-sufficient when every test and every such prior admit an effect in AAA with no greater risk. It is sufficient when one completely positive trace-preserving map A→B(H)A\to B(H)A→B(H) recovers both ρi\rho_iρi​ from E(ρi)E(\rho_i)E(ρi​).

Let Πe,λA=inf⁡{Rλ(M):M∈A, 0≤M≤I}\Pi^A_{e,\lambda}=\inf\{R_\lambda(M):M\in A,\ 0\le M\le I\}Πe,λA​=inf{Rλ​(M):M∈A, 0≤M≤I} and let Πe,λ\Pi_{e,\lambda}Πe,λ​ use all ambient effects. Let Pt,0,Pt,+P_{t,0},P_{t,+}Pt,0​,Pt,+​ be the full kernel and strictly positive spectral projections of ρ1−tρ0\rho_1-t\rho_0ρ1​−tρ0​, and let Qt,0,Qt,+Q_{t,0},Q_{t,+}Qt,0​,Qt,+​ be those of E(ρ1)−tE(ρ0)E(\rho_1)-tE(\rho_0)E(ρ1​)−tE(ρ0​) on the same HHH. The following are equivalent:

A is 2-sufficient;Πe,λA=Πe,λfor every 0<λ<1;Qt,0=Pt,0 and Qt,+=Pt,+for every t≥0.\begin{aligned} &A\text{ is 2-sufficient};\\ &\Pi^A_{e,\lambda}=\Pi_{e,\lambda}\quad\text{for every }0<\lambda<1;\\ &Q_{t,0}=P_{t,0}\ \text{and}\ Q_{t,+}=P_{t,+}\quad\text{for every }t\ge0. \end{aligned}​A is 2-sufficient;Πe,λA​=Πe,λ​for every 0<λ<1;Qt,0​=Pt,0​ and Qt,+​=Pt,+​for every t≥0.​

This characterizes preservation of binary testing risks by both spectral projection families.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P71
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Intake100.P71

open scoped Matrix ComplexOrder ComplexConjugate BigOperators

open QAlgorithms.Papers.Independent.Information100.P60 (Mat copies)

open QAlgorithms.Papers.Independent.Information100.P30 (MatrixMap)

open QAlgorithms.Papers.Independent.Information100.P71 (supportPower)

open QAlgorithms.Papers.Independent.Support50.P12 (Alg)

open QAlgorithms.Papers.Independent.Dependency50.P28 (tr LE)

open QAlgorithms.Papers.Independent.Dependency50.P21 (imaginaryPower)

open QAlgorithms.Papers.Independent.Bridge50.P31
  (traceConditionalExpectation stateDual algebraMultiplicativeDomain fixedPoints
   AlgebraChannel derivative weightedPair positiveTest kernelTest)

attribute [local instance] Classical.propDecidable Classical.decEq

variable {I : Type} [Fintype I] [DecidableEq I] [nonemptyI : Nonempty I]

include nonemptyI

/-- PDF p.10, Lemma 5: 2-sufficiency, equality of all interior-prior testing
risks, and BOTH full-kernel and strictly-positive projection identities.
Restricted projectors act on the SAME ambient Hilbert space. -/
theorem twoSufficiencyCriteria (A : Alg I) (rho0 rho1 : Mat I)
    (h0 : IsDensityMatrix rho0) (h1 : IsDensityMatrix rho1)
    (hf0 : rho0.PosDef) (hf1 : rho1.PosDef) :
    (TwoSufficient A rho0 rho1 ↔
      ∀ lam : ℝ, 0 < lam → lam < 1 →
        minimalBayesError A rho0 rho1 lam = minimalBayesError ⊤ rho0 rho1 lam) ∧
    ((∀ lam : ℝ, 0 < lam → lam < 1 →
        minimalBayesError A rho0 rho1 lam = minimalBayesError ⊤ rho0 rho1 lam) ↔
      ∀ t : ℝ, 0 ≤ t →
        kernelTest ((traceConditionalExpectation Set.univ (A : Set (Mat I))) rho1) ((traceConditionalExpectation Set.univ (A : Set (Mat I))) rho0) t = kernelTest rho1 rho0 t ∧
        positiveTest ((traceConditionalExpectation Set.univ (A : Set (Mat I))) rho1) ((traceConditionalExpectation Set.univ (A : Set (Mat I))) rho0) t = positiveTest rho1 rho0 t) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P71

end
Source
Quantum hypothesis testing and sufficient subalgebras, arXiv:0810.4045v2, PDF p. 10, Lemma 5: three equivalent testing criteria
Read-back

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

Let III be a finite type with decidable equality, AAA a unital complex star subalgebra of the matrices on III, and ρ0,ρ1\rho_0,\rho_1ρ0​,ρ1​ positive definite positive semidefinite matrices of complex trace 111, excluding empty III. For any unital complex star subalgebra BBB, define

bB(λ)=inf⁡M∈BM≥0, 1−M≥0[λRe⁡Tr⁡(ρ0M)+(1−λ)Re⁡Tr⁡(ρ1(1−M))],b_B(\lambda)= \inf_{\substack{M\in B\\M\ge0,\ 1-M\ge0}} \left[ \lambda\operatorname{Re}\operatorname{Tr}(\rho_0M) +(1-\lambda)\operatorname{Re}\operatorname{Tr}(\rho_1(1-M)) \right],bB​(λ)=M∈BM≥0, 1−M≥0​inf​[λReTr(ρ0​M)+(1−λ)ReTr(ρ1​(1−M))],

and let ballb_{\mathrm{all}}ball​ use the full matrix algebra. Let EAE_AEA​ be the selected complex-linear positive trace-preserving map into AAA that fixes AAA and satisfies EA(BXC)=BEA(X)CE_A(BXC)=B E_A(X)CEA​(BXC)=BEA​(X)C for arbitrary XXX and B,C∈AB,C\in AB,C∈A. For Hermitian S,RS,RS,R, let Kt(S,R)K_t(S,R)Kt​(S,R) be the orthogonal projection onto the kernel of S−tRS-tRS−tR, and let Pt(S,R)P_t(S,R)Pt​(S,R) be the orthogonal projection onto the range of its positive part, defined by applying x↦max⁡(x,0)x\mapsto\max(x,0)x↦max(x,0) through continuous functional calculus. The statement asserts that the property “for every effect MMM and every 0<λ<10<\lambda<10<λ<1, some effect N∈AN\in AN∈A has Bayesian error at most that of MMM” is equivalent to ∀ 0<λ<1, bA(λ)=ball(λ)\forall\,0<\lambda<1,\ b_A(\lambda)=b_{\mathrm{all}}(\lambda)∀0<λ<1, bA​(λ)=ball​(λ), and also asserts

[∀ 0<λ<1, bA(λ)=ball(λ)]  ⟺  ∀t≥0,Kt(EA(ρ1),EA(ρ0))=Kt(ρ1,ρ0)andPt(EA(ρ1),EA(ρ0))=Pt(ρ1,ρ0).\begin{aligned} \bigl[\forall\,0<\lambda<1,\ b_A(\lambda)=b_{\mathrm{all}}(\lambda)\bigr] \iff \forall t\ge0,\quad& K_t(E_A(\rho_1),E_A(\rho_0))=K_t(\rho_1,\rho_0)\\ &\text{and}\quad P_t(E_A(\rho_1),E_A(\rho_0))=P_t(\rho_1,\rho_0). \end{aligned}[∀0<λ<1, bA​(λ)=ball​(λ)]⟺∀t≥0,​Kt​(EA​(ρ1​),EA​(ρ0​))=Kt​(ρ1​,ρ0​)andPt​(EA​(ρ1​),EA​(ρ0​))=Pt​(ρ1​,ρ0​).​

Thus the projector conditions require equality of both matrices for every nonnegative threshold, including zero; the Bayesian-error condition excludes the endpoint priors.

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