Reconstructing OpenAI’s nearly quartic query separation, by AI systems under the direction of Will Cook. The theorem and construction are OpenAI’s, published with no Lean formalization. The three accounts and the Lean development were written by AI systems under Will Cook’s direction. No human expert has reviewed them. Lean reports each declaration’s statement, dependencies and axioms. The links between paper passages and Lean, and the judgments that a statement matches exactly, more strongly or only in part, were written and reviewed by AI agents; no person has checked them. The links from the text to the Lean, the titles, the reading notes and the comparisons were made with AI. No mathematician has reviewed them.
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 there are total Boolean functions with and , so that for every some total function has (OpenAI 2026). Together with the bound 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 for all total functions. The construction places pointer certificates in cells addressed by answers to -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 by reading input bits, and we charge one unit for each bit it reads. We write and for the bounded-error randomized and quantum query complexities of . 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 relative to is the infimum of the exponents such that holds for all total .
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 separation, up to logarithmic factors. Improvements in the underlying partial-function separations then gave power by Tal (Tal 2020), and power 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 , and conjectured that (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 , . For each fixed integer there are positive constants , and and total Boolean functions , defined for powers of four , such that for all sufficiently large , with , (1) Consequently the critical exponent of relative to 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 , which satisfies both bounds in (1) for the same function. The proof gives and the finite form of OpenAI’s Proposition 4.2, with , from which Section 6 derives . 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 the family gives , so already gives power and refutes the cubic conjecture, and larger fixed approach four.
1.1 Overview of techniques
The input consists of columns. Column holds an -bit string , 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 quantum queries, by Grover search over its roughly local tests. One way to find a winner would be to search over the columns with this check inside the search. But then the costs multiply to , the cost of balanced AND–OR cheat sheets built from the same partial function, whose bounds and give power (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 . The classical bound drops to , and in powers of the exponent rises from to .
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 , with no gap from , 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 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 , 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.
Loading the paper…