Papers for

formal methods teams

Papers whose findings have a practical use for this group, as judged from the abstract. Open a paper to read what it means in practice.

Rain improves software proof success with smarter agent design

RAIN: Agentic Proof Generation for Rocq-based Software Verification

Abstract: Interactive theorem provers can provide strong correctness guarantees for software, but constructing the proofs remains a challenging and labor-intensive task. Inspired by the recent progress of modern coding agents, we present RAIN, a lightweight proof-specialized agent for Rocq proof generation. RAIN augments an LLM with proof engineering capabilities, including repository exploration, iterative refinement, and checker feedback. This design allows the agent to retrieve lemmas autonomously, revise complete proof scripts instead of isolated tactics, and iteratively refine its proof strategy using enriched proof-state information. Evaluated on a subset from CoqStoq, RAIN shows substantial improvements over the existing baselines, achieving over 90% prove success rate with at least 24.7% improvements. We also compare with general-purpose coding agents, the results show that RAIN maintains comparable prove success rate but with significant lower cost.

Thu 22 OctLogic in Computer Science
The gist
Checking that software works correctly can be done by writing proofs, but making these proofs is very hard and slow. The authors created Rain, a smart assistant that helps write these proofs more easily by searching for useful facts, improving whole scripts, and learning from errors. They tested Rain on a set of software proofs and it worked much better than earlier tools, solving over 90% of problems. Rain also does this more cheaply than other general coding assistants.
Open → 2610.30759v1

Generic coding agent solves Lean theorem problems efficiently

Do Theorem Provers Need Theorem-Proving Agents? mini-Lean-agent: A Coding-Agent Baseline for Lean

Abstract: General-purpose coding agents use standard shell and file interactions, yet formal theorem-proving agents often rely on specialized, ad-hoc tooling. This makes it difficult to determine which components of theorem-proving agents provide benchmark gains: an improved base model, a specialized harness, a specific tool, or a combination of any of them. We introduce mini-Lean-agent, a deliberately minimal agent for Lean tasks whose only model-visible tool is bash. The model must use bash to inspect and edit the repository, search local libraries, invoke Lean, and manage its own intermediate work, while a separate trusted evaluator verifies the final artifact. We compare mini-Lean-agent against AxProverBase and Numina-Lean-Agent on the Putnam 2025 benchmark. Experiments with Gemini 3.8 Flash as the base model show that mini-Lean-agent solves 7/12 problems at \$2 per problem limit, compared with AxProverBase's 4/12. With Astra as the base model, mini-Lean-agent solves 12/12 problems at an average cost of \$1.28 per problem. This suggests that a generic coding agent with a minimal harness can already achieve strong performance on Lean benchmarks. Our results motivate using mini-Lean-agent as a standard baseline when evaluating theorem-proving infrastructure.

Mon 12 OctArtificial IntelligenceLogic in Computer Science
The gist
Formal theorem proving is usually done with special tools, making it hard to know what really helps. To test this, the authors created mini-Lean-agent, a simple program that only uses basic shell commands to interact with Lean, a proof system. They showed that this simple approach can solve more problems and at lower cost than more complex agents. This means you might not need fancy tools to help computers do formal math proofs well. The authors suggest using this simple agent as a standard way to compare theorem-proving programs.
Open → 2610.17331v1

AI system completes complex quantum math proof in two months

Long-horizon autoformalization of a core theorem underlying MIP* = RE

Abstract: Landmark mathematical formalizations have taken specialist teams years to complete. We present FormalFlow, a system that coordinates AI proving agents under human supervision to address statement drift and proof composition in long-horizon formalization. Drawing on software engineering principles and practices, it uses a shared blueprint to guide nested planning, proving and review loops. Agents strengthen verification and review throughout formalization. We completed a machine-checked Lean 4 proof of the quantum soundness of the classical low individual-degree test, a core theorem underlying MIP* = RE. Developing the proof took 63 days; greater parallelism could further reduce this time. The final library contains 126,367 lines of Lean code, all generated by agents. The formalization corrects side conditions and intermediate errors while preserving the published final error bound under corrected assumptions. This work provides a verified foundation for quantum complexity and demonstrates a route to affordable verification of major research proofs by small teams.

Thu 17 SeptArtificial IntelligenceLogic in Computer Science
The gist
Long and complex math proofs often take years and many experts to finish. The authors created a system called FormalFlow that uses AI helpers working under human guidance to break down big proofs into smaller tasks. This system successfully completed a very important quantum math proof in 63 days, producing a large, verified code library. Their work corrects some previous errors while keeping the main result intact, showing that smaller teams can reliably check big math proofs with AI help.
Open → 2609.19814v1