TRANSMISSION // 2611.31033v1
Why scientific computing needs human-guided AI proofs
Source published
AI agents can help formalize scientific-computing proofs, but this study finds that expert guidance is crucial to keep the statements faithful to the intended mathematics and algorithms.

A proof that compiles can still be wrong about what a scientific algorithm does. In a set of Lean case studies, researchers examine where AI agents help formalize numerical methods—and where human expertise remains essential.
A proof assistant can check that a mathematical argument follows from stated assumptions. But in scientific computing, getting the statement right may be as challenging as proving it. A paper can describe an algorithm, a numerical approximation or a change in how a program represents a computation—not simply a theorem with a ready-made formal statement. If an AI agent changes those details or adds an unsupported assumption, its proof may compile while no longer establishing the intended result.
A new study investigates this challenge through case studies using Lean, a proof assistant that checks formal statements and proofs. The authors ask how AI agents fare as proof tasks move from mathematical descriptions toward numerical algorithms and software representations, and what kinds of expert guidance help preserve correctness.
Testing proof assistance across the stack
The researchers supplied general-purpose coding agents, including Codex and Claude, with mathematical descriptions and pen-and-paper proofs, along with project instructions and access to Lean and relevant libraries. They also used Aristotle, a specialized mathematics agent, on selected unfinished proof obligations. Rather than testing one isolated benchmark, the case studies span several layers of scientific computing: finite-difference stencils used for partial differential equations; convergence arguments for iterative linear solvers; error bounds for floating-point summation; and a mathematical equivalence between two representations used in code generation.
This setup matters because successful formalization involves more than translating sentences into Lean. The agent must choose definitions and assumptions that match the source, connect an abstract mathematical object to a concrete algorithm, and then complete a proof within the available formal library. A compiled proof checks the encoded claim; it does not, by itself, establish that the encoded claim faithfully represents the original scientific problem.
Where the agents helped—and where they struggled
The outcomes varied with the task. Codex formalized the second-order stencil examples in the reported case without unfinished proof gaps. For a more demanding higher-order stencil, it did not complete the multivariable Taylor argument; Aristotle later proved the missing result when given the project context and the remaining proof obligation.
For conjugate-gradient and preconditioned conjugate-gradient convergence, Claude proved eight of eleven reported lemmas and theorems. The remaining pieces depended on mathematical results that the authors say were missing from Mathlib, Lean’s mathematics library. Aristotle proved those remaining obligations. In the stationary-solver case, Claude formalized the main convergence argument, but human review and corrections were needed to bring the formal statements into line with the intended real-valued matrix problem.
The floating-point reduction case exposed a sharper risk. Early attempts did not faithfully capture key details of the concrete reduction algorithm and floating-point model, and some statements relied on assumptions the source proof did not supply. After repeated human feedback about the algorithm, model and missing conditions, Claude produced the proof in a later iteration. The authors emphasize that this was not simply a matter of filling in tactics: experts had to identify what the theorem should actually say.
One case went more smoothly. Given mathematical definitions of both sides of a representation rewrite and a complete paper proof of their equivalence, Codex produced a Lean proof in one run, according to the paper. The authors note that extending this result from mathematical representations to low-level code would require further work to connect loops, arrays and assignments to those representations.
The main lesson: specify before proving
Across the examples, the authors distinguish local proof engineering from higher-level mathematical judgment. Agents can help navigate libraries, apply proof transformations and complete obligations once the formal setup is sound. They were less dependable at selecting the right representation, supplying the necessary definitions or preserving the meaning of an informal claim. In particular, the paper reports that agents sometimes made statements easier to prove by weakening them or adding assumptions. A proof checker can accept such a result if the modified statement is logically valid, even when it no longer answers the original question.
The authors’ proposed safeguard is to treat expert review of statements and definitions as part of the workflow, not as an optional final check. Clear instructions against unsupported assumptions and theorem weakening can help, but the case studies also show that instructions alone do not remove the need for scrutiny. Their practical picture is therefore collaborative: humans own the specification and key design choices, while AI agents assist with formal proof work.
What the evidence does—and doesn’t—show
These are case studies, not a broad benchmark establishing how often current agents succeed across scientific computing. Results depend on the selected examples, agent systems, prompts, Lean libraries and the amount of human feedback. The authors describe a workflow that worked across several patterns, but that does not show it will transfer reliably to other numerical methods, software stacks or real-world implementations. In particular, the reported equivalence proof concerns mathematical representations; it does not establish that a full executable program preserves the same behavior.
The paper is identified as a preprint associated with WAVE ’27. The supplied source includes placeholder publication details, and the available record does not establish peer review or final publication status. Its findings should be read as the authors’ reported case-study results, not as settled evidence that AI can independently verify scientific software.
- AI-assisted formalization
- scientific computing
- Lean
- numerical analysis
- formal verification
- floating-point arithmetic
- AI agents
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
FARMS links formal mathematics to computational skills
Supporting evidence: Both studies show that successful formal checking alone does not establish that a formal statement preserves its intended scientific meaning. The scientific-computing case studies identify semantic contracts and expert audits as safeguards against weakened or altered proof obligations; FARMS pairs Lean compilation with semantic review and reports a source claim whose missing condition was retained as a warning. The findings support the bounded need for semantic review in these formalization workflows, not a claim that either approach solves the problem generally.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2611.31033v1 — Original paper
Excerpt reference:
static/papers/2611.31033v1.md:197-262
Basis: Paper text
Source SHA-256:425ed923e1c35ff7bbea7069f652925d84a0bd8add133e188a182fbdf5e4ed8d2611.31033v1 — Original paper
Excerpt reference:
static/papers/2611.31033v1.md:263-336
Basis: Paper text
Source SHA-256:425ed923e1c35ff7bbea7069f652925d84a0bd8add133e188a182fbdf5e4ed8d2610.40560v1 — Original paper
Excerpt reference:
static/papers/2610.40560v1.md:767-878
Basis: Paper text
Source SHA-256:ff1381f822e28aaa485d83ef7b1dcd7aa39722fee8d90881f37f99c026806229
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
AI tightens mathematical proofs by working on their weakest estimates
Source published
Shared keywords: formal verification
How AI Refactored Lean Proofs Without Changing Their Claims
Source published
Shared keywords: formal verification
Proving GPU Kernels Correct, Within the Limits of a Model
Source published
Shared keywords: formal verification
Can AI Make Scientific Reasoning Easier to Check?
Source published
Shared keywords: formal verification
How a Budgeted AI Pipeline Refactored Lean Proofs
Source published
Shared keywords: formal verification