Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1.5

Open
QAlgorithms.Papers.Independent.Extend50.P34.support_testing_classical

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

prove2quantum

Fix a constant accuracy 0<ϵ≤1/30<\epsilon\le1/30<ϵ≤1/3. For testing whether a distribution on an arbitrary finite alphabet has at most rrr positive probabilities, there are positive constants C,cC,cC,c and a threshold r0≥2r_0\ge2r0​≥2, depending only on ϵ\epsilonϵ, such that for every r≥r0r\ge r_0r≥r0​,

nupper≤Cr,nlower≥c r/log⁡r.n_{\rm upper}\le Cr,\qquad n_{\rm lower}\ge c\,r/\log r.nupper​≤Cr,nlower​≥cr/logr.

The upper bound is uniform over alphabet sizes. The lower bound holds for some alphabet size larger than rrr. Both bounds use iid samples and worst-input success probability at least 2/32/32/3. This compares classical support testing with quantum rank testing.

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.5, arXiv:1501.05028v1, PDF p.5. Support means at most r. Fixed-accuracy constants precede r and the alphabet; the lower bound is worst case over the alphabet. -/
theorem support_testing_classical
    : ∀ epsilon : ℝ, 0 < epsilon → epsilon ≤ 1/3 →
      ∃ (C c : ℝ) (r0 : ℕ), 0 < C ∧ 0 < c ∧ 2 ≤ r0 ∧
        ∀ r : ℕ, r0 ≤ r →
          (∀ d : ℕ, 0 < d → ∃ n : ℕ, (n : ℝ) ≤ C * r ∧
            ClassicalTestable d n (supportProperty d r) epsilon) ∧
          (∃ d : ℕ, r < d ∧ ∀ n : ℕ,
            ClassicalTestable d n (supportProperty d r) epsilon →
            c * r / Real.log r ≤ n) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P34

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

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

For every real ϵ\epsilonϵ with 0<ϵ≤1/30<\epsilon\le 1/30<ϵ≤1/3, there exist positive real constants C,cC,cC,c and a natural number r0≥2r_0\ge2r0​≥2 such that, for every natural number r≥r0r\ge r_0r≥r0​, both of the following hold: for every natural number d>0d>0d>0, there is a natural sample size n≤Crn\le Crn≤Cr admitting a classical test for distributions on {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} having at most rrr nonzero coordinates; and there exists a natural number d>rd>rd>r such that every natural sample size nnn admitting such a test satisfies cr/log⁡r≤ncr/\log r\le ncr/logr≤n, where log⁡\loglog is the natural logarithm. Here a classical test is a function a:{0,…,d−1}n→[0,1]a:\{0,\ldots,d-1\}^n\to[0,1]a:{0,…,d−1}n→[0,1], with acceptance probability

Aa(p)=∑w∈{0,…,d−1}n(∏i=0n−1pwi)a(w).A_a(p)=\sum_{w\in\{0,\ldots,d-1\}^n}\left(\prod_{i=0}^{n-1}p_{w_i}\right)a(w).Aa​(p)=w∈{0,…,d−1}n∑​(i=0∏n−1​pwi​​)a(w).

For every probability vector ppp—meaning pi≥0p_i\ge0pi​≥0 and ∑ipi=1\sum_i p_i=1∑i​pi​=1—the test must satisfy Aa(p)≥2/3A_a(p)\ge2/3Aa​(p)≥2/3 if ppp has at most rrr nonzero coordinates, and Aa(p)≤1/3A_a(p)\le1/3Aa​(p)≤1/3 if 12∑i∣pi−qi∣≥ϵ\frac12\sum_i|p_i-q_i|\ge\epsilon21​∑i​∣pi​−qi​∣≥ϵ for every probability vector qqq having at most rrr nonzero coordinates. The constants and r0r_0r0​ may depend on ϵ\epsilonϵ; the upper bound holds in every positive dimension, while the lower bound requires only one dimension for each rrr. Sample sizes include n=0n=0n=0, whose word set is a singleton and whose empty product is 111; when d≤rd\le rd≤r, every probability vector has the specified support size and 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