Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1.11

Open
QAlgorithms.Papers.Independent.Extend50.P34.rank_copy_complexity

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

prove2quantum

For r≥1r\ge1r≥1 and 0<ϵ≤1/20<\epsilon\le1/20<ϵ≤1/2, rank at most rrr can be tested with perfect completeness using O(r2/ϵ)O(r^2/\epsilon)O(r2/ϵ) iid copies, uniformly in the ambient dimension. In sufficiently large ambient dimension, every such tester needs Ω(r2/ϵ)\Omega(r^2/\epsilon)Ω(r2/ϵ) copies, while every two-sided tester needs Ω(r/ϵ)\Omega(r/\epsilon)Ω(r/ϵ) copies:

none-sided=Θ(r2/ϵ),ntwo-sided=Ω(r/ϵ).n_{\text{one-sided}}=\Theta(r^2/\epsilon),\qquad n_{\text{two-sided}}=\Omega(r/\epsilon).none-sided​=Θ(r2/ϵ),ntwo-sided​=Ω(r/ϵ).

Soundness is rejection with probability at least 2/32/32/3 for every state ϵ\epsilonϵ-far from rank at most rrr. The lower bounds are worst case in the ambient dimension.

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.11, arXiv:1501.05028v1, PDF p.1. At most r; upper uniform in d, lower existential in d. r=1 uses pure-state testing (p.5); the section 6.2 construction needs r≥2. -/
theorem rank_copy_complexity
    : ∃ C c b : ℝ, 0 < C ∧ 0 < c ∧ 0 < b ∧
      ∀ r : ℕ, 1 ≤ r → ∀ epsilon : ℝ, 0 < epsilon → epsilon ≤ 1/2 →
        (∀ d : ℕ, 0 < d → ∃ n : ℕ, (n : ℝ) ≤ C * r^2 / epsilon ∧
          QuantumTestable d n (supportProperty d r) epsilon true) ∧
        (∃ d : ℕ, r < d ∧ ∀ n : ℕ,
          QuantumTestable d n (supportProperty d r) epsilon true →
          c * r^2 / epsilon ≤ n) ∧
        (∃ d : ℕ, r < d ∧ ∀ n : ℕ,
          QuantumTestable d n (supportProperty d r) epsilon false →
          b * r / epsilon ≤ n) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P34

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

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

There exist positive real constants C,c,bC,c,bC,c,b such that, for every natural number r≥1r\ge1r≥1 and every real 0<ϵ≤1/20<\epsilon\le1/20<ϵ≤1/2, three assertions hold: in every positive natural dimension ddd, there is a natural number n≤Cr2/ϵn\le Cr^2/\epsilonn≤Cr2/ϵ admitting a one-sided quantum test for the property of having at most rrr nonzero eigenvalues; there is a dimension d>rd>rd>r in which every such one-sided test using nnn copies satisfies cr2/ϵ≤ncr^2/\epsilon\le ncr2/ϵ≤n; and there is a dimension d>rd>rd>r in which every two-sided test using nnn copies satisfies br/ϵ≤nbr/\epsilon\le nbr/ϵ≤n. The two existential dimensions need not coincide. More explicitly, write Pd,rP_{d,r}Pd,r​ for the set of vectors p∈Rdp\in\mathbb R^dp∈Rd with pi≥0p_i\ge0pi​≥0, ∑ipi=1\sum_i p_i=1∑i​pi​=1, and at most rrr nonzero coordinates. A test on nnn copies is a complex matrix MMM, indexed by {0,…,d−1}n\{0,\ldots,d-1\}^n{0,…,d−1}n, for which MMM and I−MI-MI−M are positive semidefinite. For every positive semidefinite trace-one matrix ρ\rhoρ, its acceptance value is Re⁡Tr⁡(Mρ⊗n)\operatorname{Re}\operatorname{Tr}(M\rho^{\otimes n})ReTr(Mρ⊗n), where (ρ⊗n)u,v=∏iρui,vi(\rho^{\otimes n})_{u,v}=\prod_i\rho_{u_i,v_i}(ρ⊗n)u,v​=∏i​ρui​,vi​​; this value must equal 111 on λ↓(ρ)∈Pd,r\lambda^\downarrow(\rho)\in P_{d,r}λ↓(ρ)∈Pd,r​ for a one-sided test, and must be at least 2/32/32/3 there for a two-sided test, while either kind must have acceptance at most 1/31/31/3 whenever 12∑i∣λi↓(ρ)−qi∣≥ϵ\frac12\sum_i|\lambda_i^\downarrow(\rho)-q_i|\ge\epsilon21​∑i​∣λi↓​(ρ)−qi​∣≥ϵ for every q∈Pd,rq\in P_{d,r}q∈Pd,r​. Eigenvalues are listed in decreasing order with multiplicity. All natural sample sizes, including 000, are quantified; for n=0n=0n=0 the tensor power is the scalar 111. When d≤rd\le rd≤r, the rejection condition has no instances.

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