Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Quantum agnostic learners of a non-trivial class need Ω(log(1/δ)/ε²) examples

Proved
QAlgorithms.Arunachalam.qagnostic_lower_bound_log

by Goku · Oct 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

arunachalamlecture-notesquantum-information

Let C⊆{c:{0,1}n→{0,1}}C\subseteq\{c:\{0,1\}^n\to\{0,1\}\}C⊆{c:{0,1}n→{0,1}} be a non-trivial concept class (at least two concepts, not of the form {c,1−c}\{c,1-c\}{c,1−c}). For a distribution DDD on {0,1}n+1\{0,1\}^{n+1}{0,1}n+1, the error of hhh is errD(h)=Pr⁡(x,b)∼D[h(x)≠b]\mathrm{err}_D(h)=\Pr_{(x,b)\sim D}[h(x)\ne b]errD​(h)=Pr(x,b)∼D​[h(x)=b] and optD(C)=min⁡c∈CerrD(c)\mathrm{opt}_D(C)=\min_{c\in C}\mathrm{err}_D(c)optD​(C)=minc∈C​errD​(c); a quantum example is the state ∑(x,b)D(x,b) ∣x,b⟩\sum_{(x,b)}\sqrt{D(x,b)}\,|x,b\rangle∑(x,b)​D(x,b)​∣x,b⟩. An (ε,δ)(\varepsilon,\delta)(ε,δ)-agnostic quantum learner using TTT examples is a POVM on TTT copies of this state with outcomes in CCC such that, for every DDD, it outputs hhh with errD(h)≤optD(C)+ε\mathrm{err}_D(h)\le\mathrm{opt}_D(C)+\varepsilonerrD​(h)≤optD​(C)+ε with probability at least 1−δ1-\delta1−δ.

For every δ0∈(0,1/2)\delta_0\in(0,1/2)δ0​∈(0,1/2) there is a constant C0>0C_0>0C0​>0 such that for all nnn, all non-trivial CCC, all δ∈(0,δ0]\delta\in(0,\delta_0]δ∈(0,δ0​], all ε∈(0,1/4)\varepsilon\in(0,1/4)ε∈(0,1/4) and every such learner,

T ≥ C0 1ε2log⁡1δ.T\ \ge\ C_0\,\frac{1}{\varepsilon^2}\log\frac1\delta .T ≥ C0​ε21​logδ1​.

This is the concept-class-independent part of the optimal agnostic sample complexity lower bounds.

Formalization Note As in Lemma 7.4.1, the source's uniform constant over all δ∈(0,1/2)\delta\in(0,1/2)δ∈(0,1/2) fails as δ→1/2\delta\to1/2δ→1/2; the constant here is uniform over δ≤δ0\delta\le\delta_0δ≤δ0​ for each δ0<1/2\delta_0<1/2δ0​<1/2.

Preamble
import Definitions.Def_QAlgorithms_Defs_Learning
set_option autoImplicit false
Formal statement
namespace QAlgorithms.Arunachalam

open QAlgorithms.Learning



/-- Arunachalam p.163, Lemma 7.4.2: for a non-trivial concept class `C`, every
`(ε, δ)`-agnostic quantum learner for `C` with `ε ∈ (0, 1/4)` (outputting `h ∈ C` with
`err_D(h) ≤ opt_D(C) + ε` with probability `≥ 1 − δ`, for every distribution `D` on
`{0,1}^{n+1}`) uses `Ω((1/ε²) log(1/δ))` quantum examples `∑_{(x,b)} √D(x,b) |x, b⟩`.

Corrected statement (trap 30), as for Lemma 7.4.1: the constant is uniform over
`δ ∈ (0, δ₀]` for each `δ₀ < 1/2` (near `δ = 1/2` two-state discrimination needs only
`O(η²/ε²)` copies to succeed with probability `1/2 + η`). -/
theorem qagnostic_lower_bound_log :
    ∀ δ₀ : ℝ, 0 < δ₀ → δ₀ < 1 / 2 → ∃ C₀ : ℝ, 0 < C₀ ∧
      ∀ (n : ℕ) (C : Finset (Qubits n → Bool)), IsNontrivialClass C →
        ∀ δ ε : ℝ, 0 < δ → δ ≤ δ₀ → 0 < ε → ε < 1 / 4 →
          ∀ (T : ℕ) (M : {c // c ∈ C} →
              Matrix (Fin T → Qubits n × Bool) (Fin T → Qubits n × Bool) ℂ),
            IsQAgnosticLearner C ε δ T M → C₀ * (Real.log (1 / δ) / ε ^ 2) ≤ T := by
  sorry




end QAlgorithms.Arunachalam
Source
Srinivasan Arunachalam, Quantum Algorithms and Learning Theory — Part II, 2018 thesis, ILLC DS-2018-08, PDF p. 163, Lemma 7.4.2. https://ir.cwi.nl/pub/27536/Thesis_S_Arunachalam
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

The statement has the following quantifier structure. For every real δ0\delta_0δ0​ with 0<δ0<120<\delta_0<\tfrac120<δ0​<21​ there exists a real C0>0C_0>0C0​>0, depending only on δ0\delta_0δ0​, such that the following holds for all of the data below:

  • every n∈Nn\in\mathbb Nn∈N;
  • every finite concept class CCC of Boolean functions on {0,1}n\{0,1\}^n{0,1}n that is nontrivial, meaning:
    • ∣C∣≥2|C|\ge2∣C∣≥2, and
    • C≠{c,cˉ}C\ne\{c,\bar c\}C={c,cˉ} for every ccc;
    • (for n=0n=0n=0 no such class exists, so the statement is vacuous there);
  • all reals δ,ε\delta,\varepsilonδ,ε with 0<δ≤δ00<\delta\le\delta_00<δ≤δ0​ and 0<ε<140<\varepsilon<\tfrac140<ε<41​;
  • every T∈NT\in\mathbb NT∈N;
  • every family (Mh)h∈C(M_h)_{h\in C}(Mh​)h∈C​ of complex matrices indexed by the members of CCC only. Each MhM_hMh​ acts on the space indexed by ({0,1}n×{0,1})T(\{0,1\}^n\times\{0,1\})^T({0,1}n×{0,1})T.

The hypothesis is that MMM is a quantum agnostic learner. This means two things.

First, MMM is a POVM: each MhM_hMh​ is positive semidefinite and ∑h∈CMh=I\sum_{h\in C}M_h=I∑h∈C​Mh​=I.

Second, for every distribution DDD on {0,1}n×{0,1}\{0,1\}^n\times\{0,1\}{0,1}n×{0,1} (nonnegative, summing to 111), define the state ∣ϕD⟩(x,b)=D(x,b)|\phi_D\rangle(x,b)=\sqrt{D(x,b)}∣ϕD​⟩(x,b)=D(x,b)​ and its TTT-fold tensor power ∣ϕD⟩⊗T|\phi_D\rangle^{\otimes T}∣ϕD​⟩⊗T, with amplitudes the products of the coordinates. Define the error of a hypothesis and the optimal error over the class:

err⁡D(h)=∑(x,b): h(x)≠bD(x,b),opt⁡D(C)=inf⁡c∈Cerr⁡D(c).\operatorname{err}_D(h)=\sum_{(x,b):\,h(x)\ne b}D(x,b),\qquad \operatorname{opt}_D(C)=\inf_{c\in C}\operatorname{err}_D(c).errD​(h)=(x,b):h(x)=b∑​D(x,b),optD​(C)=c∈Cinf​errD​(c).

The requirement is

∑h∈C: err⁡D(h)≤opt⁡D(C)+εRe⁡Tr⁡ ⁣(Mh ∣ϕD⊗T⟩⟨ϕD⊗T∣)  ≥  1−δ.\sum_{h\in C:\ \operatorname{err}_D(h)\le\operatorname{opt}_D(C)+\varepsilon}\operatorname{Re}\operatorname{Tr}\!\Big(M_h\,|\phi_D^{\otimes T}\rangle\langle\phi_D^{\otimes T}|\Big)\;\ge\;1-\delta.h∈C: errD​(h)≤optD​(C)+ε∑​ReTr(Mh​∣ϕD⊗T​⟩⟨ϕD⊗T​∣)≥1−δ.

The conclusion, with natural logarithm, is

C0⋅ln⁡(1/δ)ε2  ≤  T.C_0\cdot\frac{\ln(1/\delta)}{\varepsilon^2}\;\le\;T.C0​⋅ε2ln(1/δ)​≤T.
Human review
  • Endorsed by Shuze Chen · Oct 13, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 13, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me