Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

2-sufficiency is equivalent to an optimal test at each threshold

Open
QAlgorithms.Papers.Independent.Intake100.P71.twoSufficiencyIffThresholdTests

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​).

At threshold t≥0t\ge0t≥0, a Neyman--Pearson test is an effect maximizing Tr⁡((ρ1−tρ0)M)\operatorname{Tr}((\rho_1-t\rho_0)M)Tr((ρ1​−tρ0​)M) over all effects; this definition includes t=0t=0t=0 directly.

Then

A is 2-sufficient⟺∀t≥0, ∃Mt∈A: Mt is a Neyman–Pearson effect.A\text{ is 2-sufficient}\quad\Longleftrightarrow\quad \forall t\ge0,\ \exists M_t\in A:\ M_t\text{ is a Neyman--Pearson effect}.A is 2-sufficient⟺∀t≥0, ∃Mt​∈A: Mt​ is a Neyman–Pearson effect.

The witness may depend on the threshold. This makes the testing definition usable without choosing a single kernel convention.

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.9: 2-sufficiency iff at EACH nonnegative threshold SOME optimal effect
lies in A. At t=0 the threshold objective is used, not an interior prior. -/
theorem twoSufficiencyIffThresholdTests (A : Alg I) (rho0 rho1 : Mat I)
    (h0 : IsDensityMatrix rho0) (h1 : IsDensityMatrix rho1)
    (hf0 : rho0.PosDef) (hf1 : rho1.PosDef) :
    TwoSufficient A rho0 rho1 ↔
      ∀ t : ℝ, 0 ≤ t → ∃ M : Mat I, M ∈ A ∧ NeymanPearson rho0 rho1 t M := by sorry

end QAlgorithms.Papers.Independent.Intake100.P71

end
Source
Quantum hypothesis testing and sufficient subalgebras, arXiv:0810.4045v2, PDF p. 9, Unnumbered: 2-sufficiency iff one optimal test exists at every threshold
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; these assumptions exclude empty III. An effect is a matrix MMM with M≥0M\ge0M≥0 and 1−M≥01-M\ge01−M≥0. The following are equivalent: for every effect MMM and every real 0<λ<10<\lambda<10<λ<1, there exists an effect N∈AN\in AN∈A such that

λRe⁡Tr⁡(ρ0N)+(1−λ)Re⁡Tr⁡(ρ1(1−N))≤λRe⁡Tr⁡(ρ0M)+(1−λ)Re⁡Tr⁡(ρ1(1−M));\lambda\operatorname{Re}\operatorname{Tr}(\rho_0N) +(1-\lambda)\operatorname{Re}\operatorname{Tr}(\rho_1(1-N)) \le \lambda\operatorname{Re}\operatorname{Tr}(\rho_0M) +(1-\lambda)\operatorname{Re}\operatorname{Tr}(\rho_1(1-M));λReTr(ρ0​N)+(1−λ)ReTr(ρ1​(1−N))≤λReTr(ρ0​M)+(1−λ)ReTr(ρ1​(1−M));

and, for every real t≥0t\ge0t≥0, there exists an effect M∈AM\in AM∈A such that

∀ effects N,Re⁡Tr⁡((ρ1−tρ0)N)≤Re⁡Tr⁡((ρ1−tρ0)M).\forall\text{ effects }N,\qquad \operatorname{Re}\operatorname{Tr}((\rho_1-t\rho_0)N) \le \operatorname{Re}\operatorname{Tr}((\rho_1-t\rho_0)M).∀ effects N,ReTr((ρ1​−tρ0​)N)≤ReTr((ρ1​−tρ0​)M).

The threshold condition includes t=0t=0t=0, while the prior parameter λ\lambdaλ ranges only over the open interval (0,1)(0,1)(0,1); no uniqueness of the effects is asserted.

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