Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Unnumbered variational maxima (6)–(7)

Open
QAlgorithms.Papers.Independent.Intakenext100.P45.traceVariational

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

prove2quantum

For any self-adjoint finite-dimensional operator AAA, let A+A_+A+​ be its positive part and P+P_+P+​ the orthogonal projection onto its range. Both maxima are attained at P+P_+P+​:

Tr⁡A+=max⁡0≤X≤ITr⁡(AX)=max⁡P=P∗=P2Tr⁡(AP).\operatorname{Tr}A_+=\max_{0\le X\le I}\operatorname{Tr}(AX)=\max_{P=P^*=P^2}\operatorname{Tr}(AP).TrA+​=0≤X≤Imax​Tr(AX)=P=P∗=P2max​Tr(AP).

The zero eigenspace is excluded from P+P_+P+​. This characterizes the optimal binary testing effect.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P45
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Intakenext100.P45

open QAlgorithms Filter

open scoped Matrix ComplexConjugate ComplexOrder ENNReal BigOperators Topology

open QAlgorithms.Papers.Independent.Information100.P07
  (support positivePart positiveProjection IsProjection)

open QAlgorithms.Papers.Independent.Information100.P56 (IsLaw)

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

open QAlgorithms.Papers.Independent.Dependency50.P28 (logNonnegativeExtended relativeEntropy)

open QAlgorithms.Papers.Independent.Claimed50.P15 (positiveMatrixRpow)

attribute [local instance] Classical.propDecidable Classical.decEq

variable {I J : Type} [Fintype I] [DecidableEq I] [Fintype J] [DecidableEq J]

/-- arXiv:0708.4282v1, PDF p.7: Unnumbered variational maxima (6)–(7). -/
theorem traceVariational (A : Mat I) (hA : A.IsHermitian) :
    IsProjection (positiveProjection A) ∧ IsEffect (positiveProjection A) ∧
    (A * positiveProjection A).trace.re = (positivePart A).trace.re ∧
    (∀ X : Mat I, IsEffect X → (A * X).trace.re ≤ (positivePart A).trace.re) ∧
    (∀ P : Mat I, IsProjection P → (A * P).trace.re ≤ (positivePart A).trace.re) := by sorry

end QAlgorithms.Papers.Independent.Intakenext100.P45

end
Source
Asymptotic Error Rates in Quantum Hypothesis Testing, arXiv:0708.4282v1, PDF p. 7, Unnumbered variational maxima (6)–(7)
Read-back

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

For every finite index type III with decidable equality and every Hermitian complex matrix AAA indexed by III, let A+A_+A+​ be the matrix obtained by applying t↦max⁡(t,0)t\mapsto\max(t,0)t↦max(t,0) to AAA by continuous functional calculus, and let P+P_+P+​ be the orthogonal projection onto the range of A+A_+A+​. Then P+P_+P+​ is Hermitian and satisfies P+2=P+P_+^2=P_+P+2​=P+​; both P+P_+P+​ and 1−P+1-P_+1−P+​ are positive semidefinite; and

Re⁡tr⁡(AP+)=Re⁡tr⁡(A+).\operatorname{Re}\operatorname{tr}(AP_+)=\operatorname{Re}\operatorname{tr}(A_+).Retr(AP+​)=Retr(A+​).

For every complex matrix XXX indexed by III such that XXX and 1−X1-X1−X are positive semidefinite,

Re⁡tr⁡(AX)≤Re⁡tr⁡(A+),\operatorname{Re}\operatorname{tr}(AX)\leq\operatorname{Re}\operatorname{tr}(A_+),Retr(AX)≤Retr(A+​),

and the same inequality holds for every Hermitian idempotent matrix PPP in place of XXX. The index type may be empty, in which case all these traces are zero.

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