Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2: two-sided symmetric testing bounds

Open
QAlgorithms.Papers.Independent.Bridge50.P02.symmetric_testing_bounds

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

prove2quantum

Let A,BA,BA,B be strictly positive operators on a nonzero finite-dimensional complex Hilbert space, with arbitrary positive traces. Set Δ(X)=AXB−1\Delta(X)=AXB^{-1}Δ(X)=AXB−1 and ΩB=B1/2\Omega_B=B^{1/2}ΩB​=B1/2 in Hilbert–Schmidt space. Let esym∗(A,B)e^*_{\rm sym}(A,B)esym∗​(A,B) be the infimum, over all effects TTT, of Tr⁡(A(I−T))+Tr⁡(BT)\operatorname{Tr}(A(I-T))+\operatorname{Tr}(BT)Tr(A(I−T))+Tr(BT). For every s∈[0,1]s\in[0,1]s∈[0,1],

⟨ΩB,Δ(1+Δ)−1ΩB⟩≤esym∗(A,B)≤⟨ΩB,ΔsΩB⟩=Tr⁡(AsB1−s).\langle\Omega_B,\Delta(1+\Delta)^{-1}\Omega_B\rangle\le e^*_{\rm sym}(A,B)\le\langle\Omega_B,\Delta^s\Omega_B\rangle=\operatorname{Tr}(A^sB^{1-s}).⟨ΩB​,Δ(1+Δ)−1ΩB​⟩≤esym∗​(A,B)≤⟨ΩB​,ΔsΩB​⟩=Tr(AsB1−s).

Writing Pλ(A),Pμ(B)P_\lambda(A),P_\mu(B)Pλ​(A),Pμ​(B) for the spectral projections, the lower quadratic form equals

∑λ∈sp⁡A, μ∈sp⁡Bλ/μ1+λ/μTr⁡(BPλ(A)Pμ(B)).\sum_{\lambda\in\operatorname{sp}A,\,\mu\in\operatorname{sp}B}\frac{\lambda/\mu}{1+\lambda/\mu}\operatorname{Tr}(BP_\lambda(A)P_\mu(B)).λ∈spA,μ∈spB∑​1+λ/μλ/μ​Tr(BPλ​(A)Pμ​(B)).

If μA∣B\mu_{A\mid B}μA∣B​ is the finite spectral measure of −log⁡Δ-\log\Delta−logΔ in ΩB\Omega_BΩB​, these forms are respectively ∫(1+ex)−1 dμA∣B(x)\int(1+e^x)^{-1}\,d\mu_{A\mid B}(x)∫(1+ex)−1dμA∣B​(x) and ∫e−sx dμA∣B(x)\int e^{-sx}\,d\mu_{A\mid B}(x)∫e−sxdμA∣B​(x).

The measure has mass Tr⁡B\operatorname{Tr}BTrB. No trace-one normalization or factor 1/21/21/2 is imposed.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Bridge50_P02
Formal statement
noncomputable section

open Filter MeasureTheory

open scoped BigOperators ENNReal Matrix ComplexConjugate ComplexOrder Matrix.Norms.L2Operator Topology

namespace QAlgorithms.Papers.Independent.Bridge50.P02

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms.Papers.Independent.Claimed50.P15
  (evaluate positiveMatrixRpow modularMatrix modularQuadratic resolventOverlap petzOverlap
    finiteRelativeEntropyNats)

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

open QAlgorithms.Papers.Independent.Information100.P63 (Mat tensorPower testingBeta)

open QAlgorithms.Papers.Independent.Information100.P58 (normalQuantile)

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

/-- Lemma 2, PDF p.13, (3.11)--(3.12): arbitrary strictly positive traces, ALL effects,
and the finite spectral-measure interpretation. -/
theorem symmetric_testing_bounds [Nonempty I] (A B : Mat I)
    (hA : A.PosDef) (hB : B.PosDef) (s : ℝ) (hs : s ∈ Set.Icc (0 : ℝ) 1) :
    resolventOverlap A B ≤ symmetricError A B ∧
    symmetricError A B ≤ modularQuadratic B (positiveMatrixRpow (modularMatrix A B) s) ∧
    modularQuadratic B (positiveMatrixRpow (modularMatrix A B) s) = petzOverlap A B s ∧
    resolventOverlap A B =
      (∑ l ∈ eigenvalueSet A hA.isHermitian, ∑ m ∈ eigenvalueSet B hB.isHermitian,
        ((l/m)/(1+l/m)) * evaluate B (eigenprojector A l * eigenprojector B m)) ∧
    spectralIntegral A B (fun x => 1/(1+Real.exp x)) = resolventOverlap A B ∧
    spectralIntegral A B (fun x => Real.exp (-s*x)) = petzOverlap A B s := by sorry

end QAlgorithms.Papers.Independent.Bridge50.P02

end
Source
Second-order asymptotics for quantum hypothesis testing in settings beyond i.i.d. - quantum lattice systems and more, arXiv:1510.04682v4, PDF p. 13, Lemma 2
Read-back

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

For every nonempty finite index type III with decidable equality, positive definite complex I×II\times II×I matrices A,BA,BA,B, and real s∈[0,1]s\in[0,1]s∈[0,1], define

D(i,j),(k,l)=Aik(B−1)lj,vB(i,j)=(B)ij,qB(K)=Re⁡∑i,jvB(i,j)‾(KvB)(i,j),D_{(i,j),(k,l)}=A_{ik}(B^{-1})_{lj},\qquad v_B(i,j)=(\sqrt B)_{ij},\qquad q_B(K)=\operatorname{Re}\sum_{i,j}\overline{v_B(i,j)}(Kv_B)(i,j),D(i,j),(k,l)​=Aik​(B−1)lj​,vB​(i,j)=(B​)ij​,qB​(K)=Rei,j∑​vB​(i,j)​(KvB​)(i,j),

where square roots and scalar functions of Hermitian matrices are defined by spectral functional calculus. Put

e(A,B)=inf⁡T≥01−T≥0[Re⁡Tr⁡(A(1−T))+Re⁡Tr⁡(BT)],R=qB ⁣(D(1+D)−1),e(A,B)=\inf_{\substack{T\ge0\\1-T\ge0}} \left[\operatorname{Re}\operatorname{Tr}(A(1-T))+ \operatorname{Re}\operatorname{Tr}(BT)\right], \qquad R=q_B\!\left(D(1+D)^{-1}\right),e(A,B)=T≥01−T≥0​inf​[ReTr(A(1−T))+ReTr(BT)],R=qB​(D(1+D)−1),

and define SA,B(f)=qB(f(−log⁡D))\mathcal S_{A,B}(f)=q_B\bigl(f(-\log D)\bigr)SA,B​(f)=qB​(f(−logD)), meaning spectral calculus with scalar function u↦f(−log⁡u)u\mapsto f(-\log u)u↦f(−logu). If ΛA,ΛB\Lambda_A,\Lambda_BΛA​,ΛB​ are the sets of distinct eigenvalues of A,BA,BA,B, and PA(l),PB(m)P_A(l),P_B(m)PA​(l),PB​(m) are their spectral projectors, then

R≤e(A,B)≤qB(Ds)=Re⁡Tr⁡(AsB1−s),R=∑l∈ΛA∑m∈ΛBl/m1+l/m Re⁡Tr⁡(BPA(l)PB(m)),SA,B ⁣(x↦11+ex)=R,SA,B(x↦e−sx)=Re⁡Tr⁡(AsB1−s).\begin{gathered} R\le e(A,B)\le q_B(D^s) =\operatorname{Re}\operatorname{Tr}(A^sB^{1-s}),\\ R=\sum_{l\in\Lambda_A}\sum_{m\in\Lambda_B} \frac{l/m}{1+l/m}\, \operatorname{Re}\operatorname{Tr}\bigl(BP_A(l)P_B(m)\bigr),\\ \mathcal S_{A,B}\!\left(x\mapsto\frac1{1+e^x}\right)=R,\qquad \mathcal S_{A,B}(x\mapsto e^{-sx}) =\operatorname{Re}\operatorname{Tr}(A^sB^{1-s}). \end{gathered}R≤e(A,B)≤qB​(Ds)=ReTr(AsB1−s),R=l∈ΛA​∑​m∈ΛB​∑​1+l/ml/m​ReTr(BPA​(l)PB​(m)),SA,B​(x↦1+ex1​)=R,SA,B​(x↦e−sx)=ReTr(AsB1−s).​

The powers in these formulas use ordinary real-power spectral calculus; no trace normalization of AAA or BBB is assumed, and both endpoints s=0,1s=0,1s=0,1 are included.

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

    Confirmed by the moderator at approval.

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