Reading library Quartic query separation

Auto select follows the paper as you scroll. Hover over a marked phrase to preview its Lean and see how the two compare. Click a phrase to keep it selected in Manual.

Reconstructing OpenAI’s nearly quartic query separation

Comparing candidates and predicting a hidden address

Written by AI systems under the direction of Will Cook · November 2026

Abstract. OpenAI recently showed that for every fixed integer k≥2k\ge2 there are total Boolean functions Fk,mF_{k,m} with Q(Fk,m)=O~k(m)Q(F_{k,m})=\widetilde O_k(\sqrt m) and R(Fk,m)=Ω~k(m2−1/k)R(F_{k,m})=\widetilde\Omega_k(m^{2-1/k}), so that for every α<4\alpha<4 some total function has R(f)≥Q(f)αR(f)\ge Q(f)^\alpha (OpenAI 2026). Together with the bound R(f)=O(Q(f)4)R(f)=O(Q(f)^4) of Aaronson, Ben-David, Kothari, Rao and Tal, this shows that the critical exponent of randomized relative to quantum query complexity is four, and it refutes their conjecture that R(f)=O(Q(f)3)R(f)=O(Q(f)^3) for all total functions. The construction places pointer certificates in cells addressed by answers to kk-fold Forrelation instances. In this companion we derive the sampling rule of OpenAI’s quantum tournament, whose comparisons may have arbitrary outcome probabilities, by requiring every pairwise bias to cancel; and we base the randomized lower bound on the observation that a query to a hidden cell names the cell’s address before any answer is returned.

About this paper. The separation theorem, its construction and its proof are OpenAI’s (OpenAI 2026). AI systems wrote this paper, its two companion texts and a Lean development of the theorem, under the direction of Will Cook. No human expert has reviewed them, and the correspondence between the Lean statements and OpenAI’s paper has been compared by AI agents only. Section 7 lists the results of the reconstruction that go beyond OpenAI’s paper, and Section 8 says what the Lean development checks.

1. Introduction

In the query model an algorithm computes a function f ⁣:{0,1}N→{0,1}f\colon\{0,1\}^N\to\{0,1\} by reading input bits, and we charge one unit for each bit it reads. We write R(f)R(f) and Q(f)Q(f) for the bounded-error randomized and quantum query complexities of ff. For total functions these measures are polynomially related, and the natural question is how large the largest polynomial gap can be. Following Aaronson, Ben-David and Kothari (Aaronson et al. 2016, sec. 2.3), the critical exponent of RR relative to QQ is the infimum of the exponents rr such that R(f)=O(Q(f)r)R(f)=O(Q(f)^r) holds for all total ff.

Grover’s algorithm (Grover 1996) gives a quadratic gap for the OR function, and for many years this was believed to be the largest gap for total functions. Aaronson, Ben-David and Kothari (Aaronson et al. 2016) refuted this with the cheat-sheet technique and a power 2.52.5 separation, up to logarithmic factors. Improvements in the underlying partial-function separations then gave power 8/3−o(1)8/3-o(1) by Tal (Tal 2020), and power 3−o(1)3-o(1) by Bansal and Sinha (Bansal and Sinha 2021) and, independently, Sherstov, Storozhenko and Wu (Sherstov et al. 2023). On the other side, Aaronson, Ben-David, Kothari, Rao and Tal (Aaronson et al. 2021) used Huang’s sensitivity theorem (Huang 2019) to prove D(f)=O(Q(f)4)D(f)=O(Q(f)^4), and conjectured that R(f)=O(Q(f)3)R(f)=O(Q(f)^3) (Aaronson et al. 2021, Conjecture 2). OpenAI’s theorem closes the gap between these exponents.

Theorem 1 (OpenAI (OpenAI 2026, Theorem 1.1)). For every total Boolean function ff, R(f)=O((1+Q(f))4)R(f)=O((1+Q(f))^4). For each fixed integer k≥2k\ge2 there are positive constants ckc_k, CkC_k and bkb_k and total Boolean functions Fk,mF_{k,m}, defined for powers of four mm, such that for all sufficiently large mm, with ℓ=log⁡2m\ell=\log_2m, Q(Fk,m)≤Ckm ℓbk,R(Fk,m)≥ck m2−1/kℓ2.(1)Q(F_{k,m})\le C_k\sqrt m\,\ell^{b_k}, \qquad R(F_{k,m})\ge c_k\,\frac{m^{2-1/k}}{\ell^2}. \tag{1}(1) Consequently the critical exponent of RR relative to QQ is four.

The first statement is the theorem of Aaronson, Ben-David, Kothari, Rao and Tal, which OpenAI reproves for completeness; the new content is the family Fk,mF_{k,m}, which satisfies both bounds in (1) for the same function. The proof gives bk=6b_k=6 and the finite form R(Fk,m)>⌊mL/100⌋R(F_{k,m})>\lfloor mL/100\rfloor of OpenAI’s Proposition 4.2, with L=⌊m1−1/k/ℓ2⌋L=\lfloor m^{1-1/k}/\ell^2\rfloor, from which Section 6 derives ck=1/400c_k=1/400. The Lean theorem for Theorem 1 states this finite form, with both bounds beyond a threshold; Section 8 lists which formal statement carries which form. In powers of QQ the family gives R=Ω~(Q4−2/k)R=\widetilde\Omega(Q^{4-2/k}), so already k=3k=3 gives power 10/310/3 and refutes the cubic conjecture, and larger fixed kk approach four.

1.1 Overview of techniques

The input consists of mm columns. Column ii holds an mm-bit string XiX_i, a few address inputs, and an array of cells. The function asks whether some column wins: its string is all ones, and its cell at the address computed from its address inputs contains a correct certificate pointing to a zero in every other string. At most one column can win. Pointers from a column to zeros in other columns go back to the pointer functions of Göös, Pitassi and Watson (Göös et al. 2018) and of Ambainis et al. (Ambainis et al. 2017), and cells addressed by answers to partial-function instances to the cheat sheets of (Aaronson et al. 2016).

The cost of plain search. Checking that a given column wins costs about m\sqrt m quantum queries, by Grover search over its roughly mm local tests. One way to find a winner would be to search over the mm columns with this check inside the search. But then the costs multiply to m⋅m=m\sqrt m\cdot\sqrt m=m, the cost of balanced AND–OR cheat sheets built from the same partial function, whose bounds O~(m)\widetilde O(m) and Ω~(m3−1/k)\widetilde\Omega(m^{3-1/k}) give power 3−1/k3-1/k (Aaronson et al. 2016, sec. 3). The new construction instead lists a few candidates with cheap comparisons and verifies only those, so the two costs add to O~k(m)\widetilde O_k(\sqrt m). The classical bound drops to m2−1/km^{2-1/k}, and in powers of m\sqrt m the exponent rises from 3−1/k3-1/k to 4−2/k4-2/k.

Why the pointers point outward. The winner’s certificate stores, for every other column, the row of a zero in that column’s string. A comparison between two columns reads one pointer in each direction. If the winner’s address is decoded correctly, its pointer finds a zero in the rival, while no rival pointer can find a zero in the winner’s all-one string. So the winner is selected with high probability even when the rival’s address inputs violate their promise.

Comparisons with arbitrary outcome probabilities. A loser’s address may be undefined, and its decoder can then return any distribution over addresses. So the probability that one loser beats another can lie anywhere in [0,1][0,1], with no gap from 1/21/2, and majority voting cannot turn these comparisons into the fixed tournament that quantum minimum finding (Dürr and Høyer 1996) or king finding (Mande et al. 2023) would need. OpenAI’s tournament instead samples pivots with weights equal to the probability of beating all earlier pivots; Section 4 derives this rule from the requirement that every pairwise bias cancel.

The classical bound. The hard distributions differ only in one hidden zero and one cell of a uniformly random column. A decision tree notices the difference only if it finds that zero, invests many queries in that column’s address inputs, or queries the correct cell while investing few. The last event is a correct prediction of rr independent hard values, because the index of a cell query already names its address; a direct-product theorem with per-input caps bounds it, and a capped simulation avoids conditioning on which columns the tree investigates.

Ben-David and Kothari (Ben-David and Kothari 2026) and Ambainis, Iraids and Kokainis (Ambainis et al. 2026) also compare candidate witnesses, in separations of certificate complexity from randomized and quantum query complexity.

Organization. Section 2 fixes conventions and the address function, Section 3 defines Fk,mF_{k,m}, Sections 4 to 6 prove the two bounds and the exponent, Section 7 describes further results of the reconstruction and Section 8 the Lean development. The worked exposition develops the argument through small examples, and the full proof reconstruction gives every supporting derivation.