Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1.12

Open
QAlgorithms.Papers.Independent.Extend50.P34.uniform_rank_distinguishing_complexity

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

prove2quantum

For integers 1≤Δ≤r1\le\Delta\le r1≤Δ≤r, uniform spectra on rrr and r+Δr+\Deltar+Δ eigenvalues can be distinguished with O(r2/Δ)O(r^2/\Delta)O(r2/Δ) copies. Conversely, for some absolute b,c>0b,c>0b,c>0 and all sufficiently large rrr, every such tester uses

n≥cΔ r 2−b/(log⁡r)0.33.n\ge\frac{c}{\Delta}\,r^{\,2-b/(\log r)^{0.33}}.n≥Δc​r2−b/(logr)0.33.

Both bounds hold uniformly in every ambient dimension d≥r+Δd\ge r+\Deltad≥r+Δ and every eigenbasis, with success probability 2/32/32/3. The displayed lower bound is the precise meaning of the source's nearly quadratic notation (equation (27)).

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)

/-- Theorem 1.12, arXiv:1501.05028v1, PDF p.1. Use equation (27), not division by a polylogarithm. Constants and r-threshold precede Delta,d and the input state. -/
theorem uniform_rank_distinguishing_complexity
    : (∃ A : ℝ, 0 < A ∧ ∀ r Delta : ℕ, 1 ≤ Delta → Delta ≤ r →
        ∀ d : ℕ, r+Delta ≤ d → ∃ n : ℕ, (n : ℝ) ≤ A*r^2/Delta ∧
          DistinguishesRanks d n r Delta) ∧
      (∃ b c : ℝ, 0 < b ∧ 0 < c ∧ ∃ r0 : ℕ, 2 ≤ r0 ∧
        ∀ r : ℕ, r0 ≤ r → ∀ Delta : ℕ, 1 ≤ Delta → Delta ≤ r →
          ∀ d : ℕ, r+Delta ≤ d → ∀ n : ℕ,
            DistinguishesRanks d n r Delta →
              c * Real.rpow r (2 - b / Real.rpow (Real.log r) (33/100 : ℝ)) / Delta ≤ n) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P34

end
Source
Quantum Spectrum Testing, arXiv:1501.05028v1, PDF p. 1, Theorem 1.12
Read-back

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

There exists a real constant A>0A>0A>0 such that, for all natural numbers r,Δr,\Deltar,Δ satisfying 1≤Δ≤r1\le\Delta\le r1≤Δ≤r, and every natural number d≥r+Δd\ge r+\Deltad≥r+Δ, there is a natural number nnn, with no explicit positivity requirement, such that n≤Ar2/Δn\le Ar^2/\Deltan≤Ar2/Δ and there exists a complex matrix MMM on (Cd)⊗n(\mathbb C^d)^{\otimes n}(Cd)⊗n for which both MMM and I−MI-MI−M are positive semidefinite and, for every positive semidefinite d×dd\times dd×d matrix ρ\rhoρ of trace 111, Re⁡tr⁡(Mρ⊗n)≤1/3\operatorname{Re}\operatorname{tr}(M\rho^{\otimes n})\le1/3Retr(Mρ⊗n)≤1/3 if the decreasing eigenvalue list of ρ\rhoρ, after some permutation, has its first rrr entries equal to 1/r1/r1/r and all remaining entries 000, whereas Re⁡tr⁡(Mρ⊗n)≥2/3\operatorname{Re}\operatorname{tr}(M\rho^{\otimes n})\ge2/3Retr(Mρ⊗n)≥2/3 if that list, after some permutation, has its first r+Δr+\Deltar+Δ entries equal to 1/(r+Δ)1/(r+\Delta)1/(r+Δ) and all remaining entries 000. In addition, there exist real constants b,c>0b,c>0b,c>0 and a natural number r0≥2r_0\ge2r0​≥2 such that, for every r≥r0r\ge r_0r≥r0​, every 1≤Δ≤r1\le\Delta\le r1≤Δ≤r, every d≥r+Δd\ge r+\Deltad≥r+Δ, and every natural number nnn, the existence of a matrix MMM with exactly those properties implies

c r 2−b/(log⁡r)33/100Δ≤n.\frac{c\,r^{\,2-b/(\log r)^{33/100}}}{\Delta}\le n.Δcr2−b/(logr)33/100​≤n.

The logarithm is natural and the powers with noninteger exponents are real powers; ρ⊗0\rho^{\otimes0}ρ⊗0 is the 1×11\times11×1 matrix with entry 111.

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