Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 6.1

Open
QAlgorithms.Papers.Independent.Extend50.P34.rank_tester_pointwise_optimal

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

prove2quantum

Fix d≥r≥1d\ge r\ge1d≥r≥1 and n≥0n\ge0n≥0. Any collective nnn-copy effect MMM that accepts every state of rank at most rrr with probability one has, on every input density matrix ρ\rhoρ,

Pr⁡[Rank Tester accepts ρ]≤Pr⁡[M accepts ρ].\Pr[\text{Rank Tester accepts }\rho]\le\Pr[M\text{ accepts }\rho].Pr[Rank Tester accepts ρ]≤Pr[M accepts ρ].

The Rank Tester itself accepts every rank-at-most-rrr input with probability one. Hence it maximizes rejection probability pointwise among perfectly complete testers, with no asymptotic qualification.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P34
Formal statement
noncomputable section

open scoped Matrix BigOperators

open MeasureTheory

namespace QAlgorithms.Papers.Independent.Extend50.P34

attribute [local instance] Classical.propDecidable

-- Reuse exact pinned definitions; these are imports, not local declarations.

open QAlgorithms.Papers.Independent.Support50.P38 (tv wordMass)

open QAlgorithms.Papers.Independent.Advance50.P28 (counts)

/-- Proposition 6.1, arXiv:1501.05028v1, PDF p.56. Pointwise optimality, not only copy-complexity equality. Perfect completeness for every basis forces acceptance on the entire low-height isotypic subspace. -/
theorem rank_tester_pointwise_optimal
    (d n r : ℕ) (hd : 0 < d) (hr : 1 ≤ r) (hrd : r ≤ d)
    (M : Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ) (hM : IsEffect M)
    (hcomplete : ∀ rho : Matrix (Fin d) (Fin d) ℂ, IsDensityMatrix rho →
      decreasingSpectrum rho ∈ supportProperty d r → effectProb M (piKron n rho) = 1) :
    (∀ rho : Matrix (Fin d) (Fin d) ℂ, IsDensityMatrix rho →
      decreasingSpectrum rho ∈ supportProperty d r → rankAccept n r rho = 1) ∧
    ∀ rho : Matrix (Fin d) (Fin d) ℂ, IsDensityMatrix rho →
      rankAccept n r rho ≤ effectProb M (piKron n rho) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P34

end
Source
Quantum Spectrum Testing, arXiv:1501.05028v1, PDF p. 56, Proposition 6.1
Read-back

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

Let d,n,rd,n,rd,n,r be natural numbers with d>0d>0d>0 and 1≤r≤d1\le r\le d1≤r≤d, and let MMM be a complex matrix indexed by words in {0,…,d−1}n\{0,\ldots,d-1\}^n{0,…,d−1}n, such that both MMM and I−MI-MI−M are positive semidefinite. A density matrix means a positive semidefinite matrix of trace 111; write p(ρ)p(\rho)p(ρ) for its eigenvalues in decreasing order, counting multiplicities, and let Pd,r\mathcal P_{d,r}Pd,r​ be the set of nonnegative vectors of length ddd that sum to 111 and have at most rrr nonzero entries. Define the following matrices for each Young diagram λ\lambdaλ with nnn cells and at most ddd rows. Use the fixed numbering of its cells by {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, and let Rλ,Cλ⊆SnR_\lambda,C_\lambda\subseteq S_nRλ​,Cλ​⊆Sn​ consist of permutations preserving, respectively, each cell's row and column. On CSn\mathbb C^{S_n}CSn​, set

(Yλ)g,h=∑a∈Rλ∑b∈Cλsgn⁡(b) 1{g=hab},(Y_\lambda)_{g,h} =\sum_{a\in R_\lambda}\sum_{b\in C_\lambda} \operatorname{sgn}(b)\,\mathbf1_{\{g=hab\}},(Yλ​)g,h​=a∈Rλ​∑​b∈Cλ​∑​sgn(b)1{g=hab}​,

let QλQ_\lambdaQλ​ be the orthogonal projection onto im⁡Yλ\operatorname{im}Y_\lambdaimYλ​, put fλ=dim⁡Cim⁡Yλf_\lambda=\dim_{\mathbb C}\operatorname{im}Y_\lambdafλ​=dimC​imYλ​, and define χλ(π)=tr⁡(LπQλ)\chi_\lambda(\pi)=\operatorname{tr}(L_\pi Q_\lambda)χλ​(π)=tr(Lπ​Qλ​), where (Lπ)g,h=1{g=πh}(L_\pi)_{g,h}=\mathbf1_{\{g=\pi h\}}(Lπ​)g,h​=1{g=πh}​. On word space let (Tπ)y,x=1{y=x∘π−1}(T_\pi)_{y,x}=\mathbf1_{\{y=x\circ\pi^{-1}\}}(Tπ​)y,x​=1{y=x∘π−1}​ and

Aλ=fλn!∑π∈Snχλ(π−1)Tπ,an,r(ρ)=∑λ:∣λ∣=n, at most d rowsat most r rowsRe⁡tr⁡(Aλρ⊗n),A_\lambda=\frac{f_\lambda}{n!}\sum_{\pi\in S_n}\chi_\lambda(\pi^{-1})T_\pi, \qquad a_{n,r}(\rho)= \sum_{\substack{\lambda:\,|\lambda|=n,\ \text{at most }d\text{ rows}\\ \text{at most }r\text{ rows}}} \operatorname{Re}\operatorname{tr}(A_\lambda\rho^{\otimes n}),Aλ​=n!fλ​​π∈Sn​∑​χλ​(π−1)Tπ​,an,r​(ρ)=λ:∣λ∣=n, at most d rowsat most r rows​∑​Retr(Aλ​ρ⊗n),

where (ρ⊗n)y,z=∏i=0n−1ρyi,zi(\rho^{\otimes n})_{y,z}=\prod_{i=0}^{n-1}\rho_{y_i,z_i}(ρ⊗n)y,z​=∏i=0n−1​ρyi​,zi​​. Assume that Re⁡tr⁡(Mρ⊗n)=1\operatorname{Re}\operatorname{tr}(M\rho^{\otimes n})=1Retr(Mρ⊗n)=1 for every ddd-dimensional density matrix ρ\rhoρ with p(ρ)∈Pd,rp(\rho)\in\mathcal P_{d,r}p(ρ)∈Pd,r​. Then an,r(ρ)=1a_{n,r}(\rho)=1an,r​(ρ)=1 for every such ρ\rhoρ, and, for every ddd-dimensional density matrix ρ\rhoρ, without a support restriction,

an,r(ρ)≤Re⁡tr⁡(Mρ⊗n).a_{n,r}(\rho)\le \operatorname{Re}\operatorname{tr}(M\rho^{\otimes n}).an,r​(ρ)≤Retr(Mρ⊗n).

The statement includes n=0n=0n=0: word space then has one element, tensor products are empty products, and the sum defining a0,ra_{0,r}a0,r​ contains the empty diagram.

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