Agentic Algorithm Design: LLMs that Propose, Formalise, and Prove Runtime Bounds for Evolutionary Algorithms in Lean
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
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(n2) on a CycleUncover problem, where the classical (1+1) EA needs runtime eOmega(n). The pipeline also designs and analyses a black-box optimisation algorithm for integer-valued submodular minimisation with expected runtime O(n2+2c), and it matches the classical runtime O(n2) 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.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 20 of its 44 references that are in the map. Submitted 26 Oct 2026.
Builds on
20 of 44 references.
Closest ancestors · 1
Same direction, newest first
Other references · 19
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
- 2024Evolution of Heuristics: Towards Efficient Automatic Algorithm Design Using Large Language Modelcited by 299
- 2025ShinkaEvolve: Towards Open-Ended And Sample-Efficient Program Evolutioncited by 222
- 2025Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-Correctioncited by 182
- 2024LLaMEA: A Large Language Model Evolutionary Algorithm for Automatically Generating Metaheuristicscited by 111
- 2015On the Expressive Power of Deep Learning: A Tensor Analysiscited by 98
- 2024A Systematic Survey on Large Language Models for Algorithm Designcited by 79
- 2025Hilbert: Recursively Building Formal Proofs with Informal Reasoningcited by 70
- 2025APOLLO: Automated LLM and Lean Collaboration for Advanced Formal Reasoningcited by 41
- 2025A benchmark for vericoding: formally verified program synthesiscited by 28
- 2025Kimina Lean Server: A High-Performance Lean Server for Large-Scale Verificationcited by 21
- 2026Goedel-Code-Prover: Hierarchical Proof Search for Open State-of-the-Art Code Verificationcited by 15
7 more
- 2020CertRL: Formalizing Convergence Proofs for Value and Policy Iteration in Coqcited by 10
- 2014Level-based Analysis of Genetic Algorithms and other Search Processescited by 9
- 2025Mathematical reasoning and the computercited by 5
- 2026FLARE: Verifying MILP Reformulations with LLM-Based Theorem Provingcited by 5
- 2016Weakest Precondition Reasoning for Expected Run-Times of Probabilistic Programscited by 3
- 2020Minimizing Convex Functions with Rational Minimizerscited by 3
- 2024Formally Verified Approximate Policy Iterationcited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026ProofLoom: Proof-Obligation-Driven Theory Construction for Autoformalizing Research-Level Stochastic Optimization
- 2026Optimizing the Cost-Quality Tradeoff of Agentic Theorem Provers in Lean
- 2026LeanPlan: Optimal Planning with LLM-Generated Heuristics and Admissibility Proofs
- 2026Self-Modifying Lean Proof Agents with Verifier-Grounded Benchmark Coevolution
- 2026Compute Allocation for Self-Evolving LLMs: From Depth-Breadth to Multi-Armed Bandits
- 2026Lean Refactor: Multi-Objective Controllable Proof Optimization via Agentic Strategy Search
- 2026Agentic Verified Optimization of Real-World Software
- 2026TRACE: Tackling Real-World Resource Assignment Problems via Agentic Heuristic Design