Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

A class of size at most M needing Ω(√((N−k+1)k)) quantum membership queries

Proved
QAlgorithms.Arunachalam.exactLearning_NM_lowerBound

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

arunachalamlecture-notesquantum-information

This is the lower-bound lemma behind Kothari's characterization of the (N,M)(N,M)(N,M)-quantum query complexity of exact learning.

A concept is an NNN-bit string c∈{0,1}Nc\in\{0,1\}^Nc∈{0,1}N (its truth table on [N][N][N]), and a concept class is a set C⊆{0,1}N\mathcal C\subseteq\{0,1\}^NC⊆{0,1}N. A quantum exact learner for C\mathcal CC is a TTT-query algorithm UTOcUT−1⋯OcU0U_T O_c U_{T-1}\cdots O_c U_0UT​Oc​UT−1​⋯Oc​U0​ acting on a fixed start state, with unitaries U0,…,UTU_0,\dots,U_TU0​,…,UT​ independent of ccc, a finite workspace, and the membership 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)⟩; it must output ccc with probability at least 2/32/32/3 for every c∈Cc\in\mathcal Cc∈C.

There is an absolute constant c0>0c_0>0c0​>0 such that for all N,M∈NN,M\in\mathbb NN,M∈N there exists C⊆{0,1}N\mathcal C\subseteq\{0,1\}^NC⊆{0,1}N with ∣C∣≤M|\mathcal C|\le M∣C∣≤M such that, for every integer kkk with 1≤k≤N1\le k\le N1≤k≤N and (Nk−1)+(Nk)≤M\binom{N}{k-1}+\binom{N}{k}\le M(k−1N​)+(kN​)≤M, every quantum exact learner for C\mathcal CC making TTT queries satisfies

T ≥ c0(N−k+1) k.T\ \ge\ c_0\sqrt{(N-k+1)\,k}.T ≥ c0​(N−k+1)k​.

Together with Fact 6.4.9 this gives the lower bound Ω(Nlog⁡M/(log⁡(N/log⁡M)+1))\Omega\big(\sqrt{N\log M/(\log(N/\log M)+1)}\big)Ω(NlogM/(log(N/logM)+1)​) of Theorem 6.4.7 for N<M≤2NN<M\le 2^NN<M≤2N.

Formalization Note The learner is the frozen QueryAlg with the XOR oracle and an arbitrary finite workspace type; the Ω-constant is quantified before NNN and MMM. The range 1≤k≤N1\le k\le N1≤k≤N is the one of the proof (Hamming weights k−1k-1k−1 and kkk).

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

open QAlgorithms.Learning

/-- Arunachalam p.133, Lemma 6.4.8: there is a concept class `C ⊆ {0,1}^N` with `|C| ≤ M` such
that every quantum exact learner for `C` (XOR membership oracle `QMQ(c)`, success probability
`≥ 2/3` on every `c ∈ C`, §6.3.1) makes `Ω(√((N − k + 1) k))` queries, for every `k ∈ [1, N]`
with `binom(N, k−1) + binom(N, k) ≤ M`. The constant of `Ω` is universal (chosen before `N`,
`M`); the learner may use any finite workspace (internal randomness via start state and
workspace). -/
theorem exactLearning_NM_lowerBound :
    ∃ c0 : ℝ, 0 < c0 ∧ ∀ N M : ℕ, ∃ C : Finset (Fin N → Bool), C.card ≤ M ∧
      ∀ k : ℕ, 1 ≤ k → k ≤ N → N.choose (k - 1) + N.choose k ≤ M →
        ∀ (W : Type) [Fintype W] [DecidableEq W] (T : ℕ) (A : QueryAlg (Fin N) Bool W T)
          (out : (Fin N × Bool) × W → (Fin N → Bool)),
          IsQExactLearner A out C →
            c0 * Real.sqrt ((((N - k + 1 : ℕ) : ℝ)) * (k : ℝ)) ≤ (T : ℝ) := by
  sorry



end QAlgorithms.Arunachalam
Source
Srinivasan Arunachalam, Quantum Algorithms and Learning Theory — Part II, 2018 thesis, ILLC DS-2018-08, PDF p. 133, Lemma 6.4.8. 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 asserts that there is a real constant c0>0c_0 > 0c0​>0 such that for all natural numbers NNN and MMM there exists a concept class CCC with the following property. Here CCC is a finite set of Boolean functions c:{0,…,N−1}→{0,1}c : \{0,\dots,N-1\} \to \{0,1\}c:{0,…,N−1}→{0,1} with ∣C∣≤M|C| \le M∣C∣≤M. The class CCC may depend on NNN and MMM only.

For every natural number kkk satisfying

1≤k≤Nand(Nk−1)+(Nk)≤M,1 \le k \le N \quad\text{and}\quad \binom{N}{k-1} + \binom{N}{k} \le M,1≤k≤Nand(k−1N​)+(kN​)≤M,

and for every quantum TTT-query exact learner of CCC, the number of queries satisfies

c0 (N−k+1) k  ≤  T.c_0\,\sqrt{(N-k+1)\,k} \;\le\; T.c0​(N−k+1)k​≤T.

Since k≤Nk \le Nk≤N, the quantity N−k+1N-k+1N−k+1 involves no truncated subtraction.

The learner. It consists of:

  • an arbitrary finite workspace index set WWW (in the lowest universe, with decidable equality);
  • a number T∈NT \in \mathbb{N}T∈N;
  • a query algorithm AAA, given by:
    • a unit vector ψ0\psi_0ψ0​ in C({0,…,N−1}×{0,1})×W\mathbb{C}^{(\{0,\dots,N-1\}\times\{0,1\})\times W}C({0,…,N−1}×{0,1})×W;
    • unitaries U0,…,UTU_0,\dots,U_TU0​,…,UT​ on that space;
  • an output map out\mathrm{out}out from basis labels ((i,b),w)((i,b),w)((i,b),w) to Boolean functions on {0,…,N−1}\{0,\dots,N-1\}{0,…,N−1}.

Running the learner. For a concept ccc, the oracle is Oc⊗IWO_c \otimes I_WOc​⊗IW​, where OcO_cOc​ is the XOR oracle

Oc ∣i,b⟩=∣i, b⊕c(i)⟩.O_c\,|i,b\rangle = |i,\, b \oplus c(i)\rangle.Oc​∣i,b⟩=∣i,b⊕c(i)⟩.

Here addition on {0,1}\{0,1\}{0,1} is XOR. The final state is

ψT(c)=UT(Oc⊗I) UT−1⋯U1(Oc⊗I) U0 ψ0.\psi_T(c) = U_T (O_c\otimes I)\,U_{T-1}\cdots U_1 (O_c\otimes I)\,U_0\,\psi_0.ψT​(c)=UT​(Oc​⊗I)UT−1​⋯U1​(Oc​⊗I)U0​ψ0​.

Exact learning. "AAA is an exact learner of CCC with output map out\mathrm{out}out" means: for every c∈Cc \in Cc∈C,

∑z: out(z)=c∣ψT(c)z∣2  ≥  23.\sum_{z:\ \mathrm{out}(z) = c} |\psi_T(c)_z|^2 \;\ge\; \tfrac23.z: out(z)=c∑​∣ψT​(c)z​∣2≥32​.

That is, a computational-basis measurement of the final state yields a label zzz with out(z)=c\mathrm{out}(z) = cout(z)=c with probability at least 2/32/32/3.

Edge cases.

  • If N=0N = 0N=0, or if no k∈[1,N]k \in [1,N]k∈[1,N] satisfies the binomial condition (e.g. MMM small), the inner claim is vacuous.
  • If WWW is empty, no unit start vector exists, so there is no such AAA.
  • If CCC were empty, every algorithm, including one with T=0T = 0T=0, would count as an exact learner of CCC.
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