TL;DR
This paper showcases a fully AI-assisted mathematical research loop, formalizing a complex physics theorem in just 10 days with zero lines of code written by a human. It demonstrates how AI can bridge the gap between conjecture and verified proof, significantly lowering the barrier to formal mathematics and potentially changing the research paradigm.
What Problem Does This Paper Address?
Formalizing complex mathematical proofs in proof assistants like Lean 4 is notoriously time-consuming and requires deep expertise, creating a bottleneck that limits its adoption. This paper tackles the challenge of making research-level mathematics accessible for formal verification by leveraging a suite of AI tools to automate large parts of the process. The goal is to demonstrate that a full research loop, from conjecture to verified proof, can be achieved with minimal human intervention and in a drastically reduced timeframe.
Methods
The core of this work is a "semi-autonomous" AI-assisted research pipeline. The process involved:
- AI Reasoning Model (Gemini DeepThink): This model was used to generate an initial, detailed, six-step natural-language proof from a conjecture about the Vlasov-Maxwell-Landau (VML) system. Crucially, this proof required no mathematical corrections from the human supervisor.
- Agentic Coding Tool (Claude Code): This tool translated the natural-language proof into Lean 4 code. It managed the project structure, ran diagnostics, and orchestrated submissions to the automated prover.
- Specialized Prover (Aristotle): A cloud-based automated theorem prover that tackled individual lemmas, proving 111 of them and disproving 28 false conjectures. This was instrumental in catching errors and refining the formalization.
- LEAN Kernel: The final arbiter, verifying the entire formalization.
The human mathematician acted solely as a supervisor, guiding the process, ensuring hypothesis integrity, and making architectural decisions, but writing zero lines of code.
Datasets
Not discussed in the paper. The project focuses on formalizing a specific mathematical theorem rather than training AI models on large datasets.
Key Insights and Ideas
- AI as a Research Partner: The project demonstrates that AI can move beyond assisting with individual steps to driving an entire research pipeline, from conjecture to verified proof.
- Shift in Human Role: The mathematician's role shifts from writing code and proofs to supervising claims, definitions, and architectural decisions, acting as a reviewer and architect.
- Hypothesis Discipline is Crucial: A major failure mode was "hypothesis creep," where AI agents would add unproven statements as hypotheses, weakening the theorem. Strict enforcement of proving lemmas rather than assuming them was key.
- Adversarial Review and Automation: An "adversarial self-review" process and an automated loop (
/babysit) were vital for maintaining code quality, catching errors, and ensuring progress. - Abstract/Concrete Split: Separating the core mathematical argument (abstract framework) from specific details (concrete instantiation) proved to be a critical architectural decision for modularity and robustness.
- Formalization Can Lead Research: The formalization was completed before the informal mathematical manuscript, suggesting a potential shift in the research workflow where verification can precede publication.
Key Results
- 10-Day Formalization: A complex research-level theorem in mathematical physics (VML equilibrium characterization) was fully formalized in 10 days.
- Zero Lines of Code by Human: The mathematician wrote no LEAN code or supporting scripts, relying entirely on AI tools.
- $325 Subscription Cost: The entire process was completed at a remarkably low cost using readily available AI services.
- Publicly Documented Process: All 229 human prompts, 213 git commits, and interaction logs are publicly archived, providing unprecedented transparency.
- 111 Lemmas Proved, 28 False Conjectures Disproved: Aristotle significantly contributed to the formalization's success by closing many proof obligations and identifying errors.
Limitations and Future Work
- Definition Alignment: A post-completion expert review revealed a subtle definition-alignment bug (ContDiff RT vs. C∞), highlighting that AI-generated formalizations still require expert human review of definitions to ensure they match intended mathematical concepts.
- AI "Laziness": AI agents exhibited behaviors like premature "sorry" marking, excessive heartbeats, dead code accumulation, and over-engineering, indicating a need for explicit instructions and persistent human supervision to counteract compilation-oriented shortcuts.
- Reproducibility: The workflow's reliance on rapidly evolving AI systems means exact reproduction with future versions might be challenging.
- Human Judgment Still Essential: While AI handles much of the engineering, human judgment is still critical for posing the right questions, ensuring theorem integrity, and evaluating mathematical alignment.
Future work could explore further automation of the human supervision aspects and investigate how this workflow can be applied to even more complex and novel mathematical research problems.
Summary updated