Formally Verified Asymptotic Optimality of Parallel Find-Any Search and Machine-Checked Benchmark Improvements in Lean 4
Version 3 / Nov 26, 2026 / CC BY 4.0
Abstract
We prove machine-checked finite- query lower bounds and an exact asymptotic optimality theorem for parallel GroverFindAny ( parallel oracle slots, marked items) under DeepMind's frozen quantum-benchmark specifications. While the constant and restricted-family infimum are due to Fang and Heunen (2026), adaptive stopping with intermediate measurements requires tracking variable-length execution trees rather than a fixed iteration count. We establish for every positive integer pair across all adaptive quantum programs with arbitrary finite workspace, intermediate measurements, and nested loops. A formal specification bridge links Feasible directly to the frozen submission contract (proving strict separation for every rational certificate), and sharpened finite- bounds--including the pointwise one-round floor ()--are verified across independent Lean kernels.
Two supplementary verified constructions lower ArcsinK25ConstCost by (analyzed for fault-tolerant spacetime trade-offs) and the single-cell GroverFindAll upper bound by via 14 Kraus filters (for ); audited partial THC Factorization helpers appear in Appendix B. All work was AI-executed under human supervision.
Provenance statement
AI provenance filesAI_DISCLOSURE_AND_PROVENANCE.md · 10 KB
Tools used
- GeminiVersion Antigravity/Gemini
- Lean
- LeanVersion 4.35.0
- OpenAI
- CodexVersion gpt-6.2-astra
- OpenAI
- ChatGPTVersion 6 Pro
- Anthropic
- Claude CodeVersion sonnet
- Anthropic
- Claude FableVersion claude-fable-5-2 xhigh
References
- S. Shirobokov, B. Jaderberg, K. Hristova, G. Tsoukalas, J. Bausch, E. Wieser, F. J. H. Heras, N. C. Rubin, G. H. Low, S. Racanière, N. Tomašev, L. M. Zhang, J. D. Watson, T. Khattar, A. Albarghouthi, S. Jain, H. Khan, L. Sarra, A. W. Senior, M. Broughton, H. Masoom, S. Boixo, R. Babbush, S. Chaudhuri, and P. Kohli, Discovering formally verified quantum programs with AI , arXiv:2611.09822v3 [quant-ph] (2026); repository https://github.com/google-deepmind/formal-quantum-computation.arXiv
- W. Fang and C. Heunen, Weakly measured loops for quantum amplitude amplification: oracle savings and adaptive search with unknown target probability , arXiv:2609.39621 [quant-ph] (2026).arXiv
- L. K. Grover, A fast quantum mechanical algorithm for database search , in Proceedings of the Twenty-Eighth Annual ACM Symposium on Theory of Computing (STOC), pp. 212--219, 1996.
- M. Boyer, G. Brassard, P. Høyer, and A. Tapp, Tight bounds on quantum searching , Fortschritte der Physik 46 (1998), 493--505.
- C. Zalka, Grover's quantum searching algorithm is optimal , Physical Review A 60 (1999), 2746--2751.
- L. K. Grover and J. Radhakrishnan, Quantum search for multiple items using parallel queries , arXiv:quant-ph/0407217 (2004).arXiv
- A. Belovs and D. Yolcu, One-way ticket to Las Vegas and the quantum adversary , arXiv:2301.02003 [quant-ph] (2023).arXiv
- A. Mizel, Critically damped quantum search , Physical Review Letters 102 (2009), 150501.
- P. Andrés-Martínez and C. Heunen, Weakly measured while loops: peeking at quantum states , Quantum Science and Technology 7 (2022), 025007.
- C. P. Schnorr, The multiplicative complexity of Boolean functions , in Applied Algebra, Algebraic Algorithms and Error-Correcting Codes (AAECC-6, 1988), LNCS 357, pp. 45--58, Springer, 1989.
Show all 25 referencesShow fewer references
- R. Mirwald and C. P. Schnorr, The multiplicative complexity of quadratic Boolean forms , Theoretical Computer Science 102 (1992), 307--328.
- Ç. Çal k, M. Sönmez Turan, and R. Peralta, Boolean functions with multiplicative complexity 3 and 4 , Cryptography and Communications 12 (2020), 935--946.
- T. Häner, M. Roetteler, and K. M. Svore, Optimizing quantum circuits for arithmetic , arXiv:1805.12445 [quant-ph] (2018).arXiv
- C. Jones, Low-overhead constructions for the fault-tolerant Toffoli gate , Physical Review A 87 (2013), 022328.
- D. Litinski, Magic State Distillation: Not as Costly as You Think , Quantum 3 (2019), 205 ( arXiv:1905.06903 ; DOI 10.22331/q-2019-12-02-205 ).arXivDOI
- C. Gidney, Halving the cost of quantum addition , Quantum 2 (2018), 74.
- J. Lee, D. W. Berry, C. Gidney, W. J. Huggins, J. R. McClean, N. Wiebe, and R. Babbush, Even more efficient quantum computations of chemistry through tensor hypercontraction , PRX Quantum 2 (2021), 030305.
- Y. Feng and M. Ying, Quantum Hoare logic with classical variables , ACM Transactions on Quantum Computing 2 (2021), 1--43.
- L. de Moura and S. Ullrich, The Lean 4 theorem prover and programming language , in Automated Deduction --- CADE 28, LNCS 12699, pp. 625--635, Springer, 2021.
- The mathlib Community, The Lean mathematical library , in Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs (CPP), pp. 367--381, 2020.
- The Physlib Community, Physlib: The Lean Physics Library , https://github.com/leanprover-community/physlib, 2024; incorporating A. Meiburg, Quantum Information in Lean , https://github.com/Timeroot/Lean-QuantumInfo, 2024.link
- Lean FRO, comparator: Lean 4 formal challenge verification tool , https://github.com/leanprover/comparator, 2026.link
- C. Bailey, nanoda_lib / nanoda_bin (v0.4.19): independent Rust type checker for Lean 4 , https://github.com/ammkrn/nanoda_lib, bundled with Lean 4.35.0 ( eb6cafb7 ), 2026.link
- Lean 4.35.0 Toolchain, con-ron ( --verified ): formally verified Rust arena type checker for lean4export 3.1.0 streams , https://github.com/leanprover/con-ron, bundled with Lean 4.35.0 ( eb6cafb7 , binary SHA-256 4e351dd1 332d40 ), 2026.link
- F. Johansson, Arb: efficient arbitrary-precision midpoint-radius interval arithmetic , IEEE Transactions on Computers 66 (2017), 1281--1292.
Version history
- v1 · 26 pagesSubmitted by Robert KadlecInitial depositSupersededNov 26, 2026
- v2 · 29 pagesSubmitted by Robert Kadlec29 pages. v2 (corresponding to companion artifact release v1.0.1, Zenodo DOI 10.5281/zenodo.24584791, Concept DOI 10.5281/zenodo.24545552, GitHub https://github.com/Ikaro2023/quantum-lean-deepmind-benchmarks): adds official 64-bit Linux lake comparator (bwrap 0.11.1 sandbox) PASS receipts across all four challenge constructions plus upstream lake test PASS, incorporates the one-keyword FindAllWeak.lean line 30 abbrev fix (restoring ReducibilityHints.regular(37)) with post-fix leanchecker replays, corrects nanoda citation authorship (C. Bailey), and tightens exposition.SupersededNov 27, 2026
- v3 · 31 pagesSubmitted by Robert Kadlecv1.1.3 (31 pp.): Upgrades general adaptive parallel GroverFindAny infimum 1/2+1/pi to all (m,k) in N_{>0}^2 (AllPositiveInfimum.lean, FindAnyAllPos.lean), adds formal SubmissionBridge.lean and sharpened FiniteSharpLower.lean (5-checker verified), adds fault-tolerant spacetime estimates, and links Zenodo v1.1.3 (10.5281/zenodo.24638041, Concept 10.5281/zenodo.24545552) and GitHub v1.1.3 (https://github.com/Ikaro2023/quantum-lean-deepmind-benchmarks).CurrentNov 29, 2026