Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Fact 1.6

Open
QAlgorithms.Papers.Independent.Extend50.P34.greene_testing_equivalence

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

prove2quantum

Let PPP be a closed symmetric property of probability distributions on [d][d][d], d≥1d\ge1d≥1, and 0<ϵ<10<\epsilon<10<ϵ<1. For every n≥0n\ge0n≥0, a collective quantum nnn-copy tester exists if and only if a classical nnn-sample tester exists that sees only the longest kkk-increasing subsequence lengths, for 1≤k≤d1\le k\le d1≤k≤d:

quantum testability ⟺ testability from the Greene statistics.\text{quantum testability}\ \Longleftrightarrow\ \text{testability from the Greene statistics}.quantum testability ⟺ testability from the Greene statistics.

A kkk-increasing subsequence is a union of kkk disjoint weakly increasing subsequences. Both testers use success probability 2/32/32/3. This is equivalence of attainable guarantees after reduction, rather than pointwise equality of arbitrary effects.

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)

/-- Fact 1.6, arXiv:1501.05028v1, PDF p.5. Algorithms precede the unknown input; equivalence is existence of testing guarantees. Zero samples are meaningful here. -/
theorem greene_testing_equivalence
    (d n : ℕ) (hd : 0 < d) (P : Set (Fin d → ℝ))
    (hP : IsSpectralProperty P) (epsilon : ℝ) (he : 0 < epsilon) (he1 : epsilon < 1) :
    QuantumTestable d n P epsilon ↔ GreeneTestable d n P epsilon := by sorry

end QAlgorithms.Papers.Independent.Extend50.P34

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

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

For every pair of natural numbers d,nd,nd,n with d>0d>0d>0, every closed set P⊆RdP\subseteq\mathbb R^dP⊆Rd consisting of probability vectors and satisfying p∘π∈P  ⟺  p∈Pp\circ\pi\in P\iff p\in Pp∘π∈P⟺p∈P for every real vector ppp and coordinate permutation π\piπ, and every real 0<ϵ<10<\epsilon<10<ϵ<1, the following two existences are equivalent. The first is a complex matrix MMM indexed by words in {0,…,d−1}n\{0,\ldots,d-1\}^n{0,…,d−1}n, with M,I−MM,I-MM,I−M positive semidefinite, whose value Re⁡Tr⁡(Mρ⊗n)\operatorname{Re}\operatorname{Tr}(M\rho^{\otimes n})ReTr(Mρ⊗n) is at least 2/32/32/3 for every positive semidefinite trace-one matrix ρ\rhoρ whose decreasing eigenvalue vector belongs to PPP, and at most 1/31/31/3 whenever that vector has total variation distance at least ϵ\epsilonϵ from every member of PPP. The second is a function a:Nd→[0,1]a:\mathbb N^d\to[0,1]a:Nd→[0,1] such that, for every probability vector ppp, the value

∑w∈{0,…,d−1}n(∏i=0n−1pwi)a(G1(w),…,Gd(w))\sum_{w\in\{0,\ldots,d-1\}^n} \left(\prod_{i=0}^{n-1}p_{w_i}\right) a\bigl(G_1(w),\ldots,G_d(w)\bigr)w∈{0,…,d−1}n∑​(i=0∏n−1​pwi​​)a(G1​(w),…,Gd​(w))

is at least 2/32/32/3 when p∈Pp\in Pp∈P and at most 1/31/31/3 when 12∑i∣pi−qi∣≥ϵ\frac12\sum_i|p_i-q_i|\ge\epsilon21​∑i​∣pi​−qi​∣≥ϵ for every q∈Pq\in Pq∈P. Here Gk(w)G_k(w)Gk​(w) is the maximum cardinality of a subset of positions that can be colored with kkk colors so that, within each color, letters are weakly increasing in position order; the bounds on aaa apply to every vector in Nd\mathbb N^dNd, including vectors that are not reports of any word. The tensor power has entries ∏iρui,vi\prod_i\rho_{u_i,v_i}∏i​ρui​,vi​​. No nonemptiness of PPP or positivity of nnn is assumed; when n=0n=0n=0, there is one empty word, every GkG_kGk​ is zero, and the tensor power is the scalar 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