The Gist of It Logo
🧠 LLMs & ML ★ Impact 9.4/10 arXiv:2610.35595v1 • October 27, 2026 • 1 min read
📄 arXiv Preprint • Not Peer-Reviewed ⚡ Abstract-Synthesized

AI Designs New Algorithms and Mathematically Proves Their Speed

Original paper: Agentic Algorithm Design: LLMs that Propose, Formalise, and Prove Runtime Bounds for Evolutionary Algorithms in Lean

Authors: Per Kristian Lehre

AI agents can now invent brand-new computing algorithms and mathematically prove they are fast without running a single benchmark test.

"Imagine an AI architect designing a novel suspension bridge. Instead of building physical prototypes and driving heavy trucks over them to test their strength, the AI feeds its design into a strict physics simulator that mathematically proves the structure can handle extreme loads. The system guarantees performance before a single brick is laid, completely replacing empirical trial and error with ironclad proof."

Traditionally, discovering faster algorithms requires tedious trial-and-error testing on actual computers. Replacing empirical benchmarks with machine-checked mathematical proofs allows scientists to discover provably efficient software for complex logistical problems with total confidence and zero risk of hidden bugs.

  • AI invented new algorithms and mathematically proved their execution speed.
  • Formal proofs in Lean replace the need for empirical benchmark testing.
  • Staged AI pipelines dramatically outperform single-prompt algorithm generation.
📑 Original arXiv Technical Abstract

LLMs now prove hard theorems in Lean. Can they also design algorithms and prove their correctness and efficiency? LLM-guided design of optimisation heuristics (such as AlphaEvolve) is purely empirical. Automated theorem provers with LLMs prove given statements. So far, there has been little evidence that LLMs can do both: design an algorithm and guarantee its efficiency by a mathematical proof. We present a staged pipeline modelled after research methodology in design and analysis of evolutionary algorithms. The agent proposes black-box optimisation algorithms, and Lean guards filter out flawed designs. The agent then defines a potential function and proves drift bounds that guarantee an expected runtime improvement over the baseline algorithm. At no point in the pipeline are the algorithms compared empirically. The agent generates a black-box optimisation algorithm with expected runtime O(n^2) on a CycleUncover problem, where the classical (1+1) EA needs runtime e (Ω(n)) . The pipeline also designs and analyses a black-box optimisation algorithm for integer-valued submodular minimisation with expected runtime O(n (2+2c) ), and it matches the optimal order O(n^2) on LeadingOnes. Across 8 problem classes, 12 of 15 runs with frontier models complete the pipeline with a machine-checked expected-runtime bound. An ablation study shows that removing the staging and asking the agent to zero-shot an algorithmic design with a runtime guarantee leads to a copy of the seeded baseline algorithm (random search) or to incomplete proofs. Our study suggests that machine-checked specifications in Lean can replace empirical evaluation in open-ended algorithm discovery. To the best of our knowledge, this is the first example of an automated pipeline that designs efficient black-box optimisation algorithms with machine-checked runtime bounds in Lean.

✍️ Are you an author of this paper? Add code/demo links or a note

Help readers explore your work — share your official GitHub repo, Hugging Face weights, affiliation, or a clarification note for our editorial review queue.

𝕏 Share Your Paper's Gist on X

📬 Get daily LLMs & ML breakthroughs in your inbox

We scan hundreds of daily arXiv preprints across 6 frontier fields and send the top breakthroughs in plain English—with everyday analogies and 1-click PhD briefs. Free forever.

More Curated Breakthroughs

Hand-picked from the October 27, 2026 edition.