A Lean formalisation of the nearly quartic separation between randomized and quantum query complexity in OpenAI's preprint. The preprint and its mathematics are OpenAI's. AI systems wrote the Lean development, the three accounts of the proof and the reader website under Will Cook's direction. No human expert has reviewed them.
Lean accepts theorem_1_1_unconditional,
which has no hypotheses: the optimal exponent, the universal quartic bound, and for
each fixed k ≥ 2 a family of total functions with the two bounds of equation (2).
AI agents compared its statement with Theorem 1.1 of the preprint; no person has. Its first
conclusion is also stated alone:
theorem alphaTot_eq_four_unconditional : alphaTot = 4alphaTot is the optimal exponent in equation (1). The checked development
includes the construction of the total functions, the randomized lower bound,
the quantum upper bound in an adaptive bit-query model, the exact Forrelation
circuit with its size bound, the universal quartic upper bound, and the
Forrelation randomized lower bound that the preprint imports from Bansal and
Sinha. Recorded Comparator runs accept these statements against separately
compiled challenges that import Mathlib only. The challenges share the maintained
statement vocabulary and theorem specifications; agreement does not replace
review of their mathematical meaning.
The Forrelation lower bound has an alternative proof here, using one-block bias
interpolation, in the weaker form the separation needs: fixed k, error 1/3, and
an unspecified threshold in m. §8 of the full proof reconstruction
gives the maintained account. Three dated records from 2 November are kept
unchanged: the blueprint, an AI reading
report and an AI prior-art
search. No person has reviewed the proof.
-
Introduction to the projects explains the wider project.
-
Watch the Quartic Reader short or the full comparison of the three maths readers.
-
Watch the short explanation of the quantum query bound.
-
Watch the video explanation (34:02), from light-wave interference to the fourth-power query bound.
-
Follow the Lean source map from the shared definitions to the unconditional result.
-
Use the statement corpus to distinguish statement alignment, compilation and comparison evidence.
-
Read the document guide for the contract, reviews and their revision scope, or the research guide for source research, review decisions and writing requests.
-
Read the maintained long reasoning record for the complete argument and its source correspondence. Its review sidecar identifies the assessed edition; the original returned drafts remain immutable evidence.
The round-nine revision incorporates the three advisory returns with individual dispositions. It revises the mathematical explanations and reading routes; these editorial checks are separate from the recorded formal proof checks.
| Layer | State |
|---|---|
| Proofs | The QuarticQuery target builds at the recorded commit with no sorry, no custom axioms and no native_decide. |
| Statements | Statement.lean fixes every definition a theorem means. It imports Mathlib only. |
| Comparison | Comparator accepts each bundle in lean/QuarticCorpus/ against an independently compiled challenge, and rejects five deliberately wrong solutions for the intended reason. The unconditional bundle also passes every external kernel bundled with Lean (--paranoid). The receipts of the release come from sandboxed runs on GitHub Actions; earlier local runs were unsandboxed and corpus/receipts/ records them as such. |
| Fidelity | The review compares Lean statements with the preprint. It was done by an AI agent that did not write the proofs. No human has reviewed it. |
| Literature | Claims about cited sources were checked against those sources by AI agents; see the adjudication. |
The round-three integration record tracks the ten latest returns and their validation, following the round-two checkpoint. New proof candidates do not inherit the earlier build results. Current corpus evidence distinguishes source-bound passes from stale or historically unbound receipts, and tracks statement-review freshness independently of build and comparison freshness.
A compiled proof shows that a statement follows. Whether it says what the preprint says is a separate question, which is why corpus/ keeps these facts apart for every statement and computes no overall score.
Some steps are proved along a different route from the preprint's, and each such
tie records this. The search for the erased zero gives 2G/m² in place of
4G/m². Theorem A.1 goes through
complexitylib instead of
Appendix A. Lemma 4.1 uses an induction on sub-distributions in place of the
supermartingale. The contract explains how
statements and proofs stay aligned as derivations improve.
For website work, run make reading-web to export the four-paper reader with source-linked HTML, including OpenAI's preserved source edition, then start with the frontend design brief. The expert companion is the main entrance; the worked exposition, full reconstruction and original are available through matched passages with an exact return. Lean opens beside the paper, with the dependency graph one tab away.
The statement comparison reader opens a result in the original paper beside the exact Lean source, Lean’s printed type and axioms, and the reviewer’s reasons for its match. The statement presentations give each ledger entry a readable title and typeset wording. For the headline result it distinguishes the theorem proving the whole family from the shorter theorem proving the exponent alone.
The Lean proof map follows the headline theorem through paper-linked declarations and can show the helpers behind each arrow. Cards, helper steps and declaration links use one index of mathematical titles. An arrow opens its dependencies in the compiled Lean declarations, with links to original source lines wherever the edition has located the use. The selection resolver opens a paper passage beside its Lean dependencies and readers can follow those declarations back to the papers. The theorem application reader follows the actual arguments used to assemble both bounds for one total function. The website reading API connects our three papers and OpenAI’s original PDF to Lean statements, source code and evidence about how each statement matches.
The proof index gives readable mathematical descriptions and links to the formal statements and their proofs. The verification reference keeps the detailed checking history outside the papers.
| Path | Purpose |
|---|---|
| lean/ | The Lake project: QuarticQuery holds the proofs, QuarticCorpus the Comparator bundles. |
| corpus/ | Statement records, reviewed ties, receipts and the evidence graph. |
| docs/ | The evidence contract, the fidelity review, and the lower-bound blueprint, review and prior-art search. |
| research/ | The statement ledger, research records and review requests. |
| tools/ | Generators and checks. |
| tests/ | Tests for the tools. |
make checkUse Python 3.10 or newer, Git and Make for this command. It checks layout, generated files and the Python tests. Lean needs a Mathlib checkout at the pinned revision; the toolchain and dependencies are fixed by lean-toolchain and lake-manifest.json.
cd lean && lake build QuarticQuerypython3 tools/run_comparator.pyThe three papers, the proof index and the verification details link to Lean
sources and record passages at the release tag v1.0.2. The recorded checks of
that release ran on GitHub Actions
(workflow, receipts in
corpus/receipts/ dated 20 November 2026): lake build QuarticQuery with the dependency closure read from the compiled environment, and
Comparator with its sandbox on every bundle and negative fixture, with --paranoid
for the headline bundle
(its receipt).
The receipts name the commit GitHub built for pull request #27; each binds the
exact Lean source bytes, which are those of v1.0.2.
The toolchain is leanprover/lean4:v4.36.0-rc2 and Mathlib is pinned at
69552756cd8a2d2d48763cf7279fd814d6a1224d.
From lean/:
lake build QuarticQuery
lake comparator --config QuarticCorpus/Unconditional/comparator.json --paranoid
lake env lean --run scripts/Reach.lean QuarticQuery.Checked.theorem_one_oneAdd --inadvisably-no-sandbox to the Comparator command to reproduce the
recorded unsandboxed run. The last command prints the QuarticQuery
declarations in the dependency closure of the headline theorem: it traverses the
types and bodies of all constants the theorem reaches, in every namespace, and
displays the project projection, keeping one witness path for each edge that
passes through hidden constants.
Two amplitude amplification files adapt code from Troy Lee's
quantum query complexity library
(Apache-2.0), which this project does not import.
Amplification/Geometry.lean
follows its Quantum/Amplitude/Geometry.lean, keeping the successful and
unsuccessful components of the state unnormalised through the recurrence, and
Amplification/Average.lean
follows the telescoping sum in its Quantum/Amplitude/TrigSum.lean.
Theorem A.1 uses complexitylib
(Apache-2.0, copyright Samuel Schlesinger), pinned in lean/lakefile.toml.
Paper/AppendixAHuang.lean and
Paper/AppendixAHuangMatrix.lean
adapt arguments from it.
Licensed under Apache-2.0.
The round-ten expert revision acts on the first R10 return. Its evidence and dispositions are separate from the two supporting-paper reviews recorded in the complete R10 assimilation.