Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Servedio–Gortler: D(C) = O(n·Q(C)^3)

Proved
QAlgorithms.LearningSurvey.servedioGortler_classical_le_cube

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

learning-surveylecture-notesquantum-information

This corollary says that classical and quantum exact learning from membership queries are polynomially related.

Let n≥1n\ge 1n≥1, N=2nN=2^nN=2n, and let C⊆{0,1}NC\subseteq\{0,1\}^NC⊆{0,1}N be a class of concepts c:{0,1}n→{0,1}c:\{0,1\}^n\to\{0,1\}c:{0,1}n→{0,1}. Let D(C)D(C)D(C) be the classical membership query complexity of exactly learning CCC: the least TTT such that some randomized classical learner, which queries c(x)c(x)c(x) at most TTT times on every target and for every outcome of its internal randomness, outputs h=ch=ch=c with probability at least 2/32/32/3 for every c∈Cc\in Cc∈C. Let Q(C)Q(C)Q(C) be the quantum analogue, the least number of queries to Oc:∣x,b⟩↦∣x,b⊕c(x)⟩O_c:|x,b\rangle\mapsto|x,b\oplus c(x)\rangleOc​:∣x,b⟩↦∣x,b⊕c(x)⟩ of a quantum exact learner for CCC. Then there is an absolute constant K>0K>0K>0 such that

D(C) ≤ K n Q(C)3.D(C)\ \le\ K\, n\, Q(C)^3 .D(C) ≤ KnQ(C)3.

It shows that quantum membership queries can give at most a polynomial speed-up for exact learning.

Formalization Note D(C)D(C)D(C) and Q(C)Q(C)Q(C) are the infima of the (nonempty) sets of achievable query counts; for Q(C)Q(C)Q(C) the workspace dimension ranges over all finite sizes.

Preamble
import Definitions.Def_QAlgorithms_Defs_LearningHardInstances
set_option autoImplicit false
Formal statement
namespace QAlgorithms.LearningSurvey

universe u


/-- **Corollary 4.4** (Servedio–Gortler; survey p.10). If a concept class `C ⊆ {0,1}^N`
(`N = 2^n`) has classical and quantum membership query complexities `D(C)` and `Q(C)`, then
`D(C) = O(n Q(C)^3)`. -/
theorem servedioGortler_classical_le_cube :
    ∃ K : ℝ, 0 < K ∧ ∀ (n : ℕ), 1 ≤ n → ∀ (C : Finset (Qubits n → Bool)),
      (Learning.classicalExactComplexity C : ℝ) ≤
        K * (n : ℝ) * (Learning.quantumExactComplexity C : ℝ) ^ 3 := by
  sorry




end QAlgorithms.LearningSurvey
Source
Srinivasan Arunachalam and Ronald de Wolf, A Survey of Quantum Learning Theory, 2017, v3, PDF p. 10, §4.1.1, Corollary 4.4. https://arxiv.org/pdf/1701.06806v3
Read-back

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

Quantum exact complexity. Concepts, classes, TTT-query quantum algorithms with XOR oracle Oc:∣x,b⟩↦∣x,b⊕c(x)⟩O_c:|x,b\rangle\mapsto|x,b\oplus c(x)\rangleOc​:∣x,b⟩↦∣x,b⊕c(x)⟩, and exact learning with success probability ≥2/3\ge 2/3≥2/3 for each c∈Cc\in Cc∈C are as in the previous entry. The quantum exact complexity Q(C)Q(C)Q(C) is the least T∈NT\in\mathbb NT∈N such that some TTT-query algorithm with workspace {0,…,w−1}\{0,\dots,w-1\}{0,…,w−1} (for some w∈Nw\in\mathbb Nw∈N) and some output map exactly learn CCC. It is 000 if no such TTT exists.

Classical exact complexity. A randomized decision tree RRR is a probability distribution over deterministic decision trees. Each tree queries values c(i)c(i)c(i) of the hidden concept, branches on the answer, and outputs a hypothesis {0,1}n→{0,1}\{0,1\}^n\to\{0,1\}{0,1}n→{0,1}. The classical exact complexity R(C)R(C)R(C) is the least TTT for which there is a randomized decision tree RRR such that:

  • every tree in the support of RRR makes at most TTT queries on every input;
  • for every c∈Cc\in Cc∈C, the probability that a tree drawn from RRR and run on ccc outputs exactly ccc is at least 2/32/32/3.

It is 000 if no such TTT exists.

Statement. There is a constant K>0K>0K>0 such that for every n≥1n\ge 1n≥1 and every finite concept class CCC on {0,1}n\{0,1\}^n{0,1}n, with no restriction on ∣C∣|C|∣C∣,

R(C) ≤ K⋅n⋅Q(C)3.R(C)\ \le\ K\cdot n\cdot Q(C)^3 .R(C) ≤ K⋅n⋅Q(C)3.

Edge cases: for C=∅C=\emptysetC=∅, and for singleton CCC, the classical side is 000.

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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me