TRANSMISSION // 2611.40218v1
Why AI proof translation needs more than a compiler
Source published
A dependency-aware pipeline helped translate a large floating-point library from Coq to Lean, while tests showed why compiling code is not enough to establish that it preserves meaning.

Formal proof libraries are networks of connected definitions and theorems, not piles of independent snippets. FormalWeaver aims to help AI agents translate those networks between proof systems without losing their meaning along the way.
The challenge of translating a proof library
A formal proof assistant checks whether a proof follows from its stated assumptions. But building a library in one proof system and translating it into another is not simply a matter of making each theorem compile. Definitions, assumptions and interfaces connect across files. A change to a foundational definition can affect many results that depend on it. And code that compiles in the target system may still behave differently from its source.
Hantao Lou and Alok Singh study whether AI agents can help translate a whole formal repository while maintaining that web of dependencies and preserving the source’s meaning. Their preprint introduces FormalWeaver, a pipeline for translating formal code from Coq into Lean, and reports a port of Flocq, a library for reasoning about floating-point arithmetic.
Work in dependency order
FormalWeaver first indexes declarations in the source library and records which declarations depend on which others. It then schedules items for translation only when their prerequisites are ready. Target-side representations and interfaces are established before dependent items use them, and accepted upstream interfaces are kept fixed during local repair. If an item fails to compile, the agent receives compiler feedback and can revise that item without silently changing its accepted dependencies.
That separation matters because proof assistants can organize assumptions differently. The paper describes a case in which a restriction used to prove a theorem was mistakenly reflected in the behavior of a translated definition. Both versions compiled, but they returned different results for a particular input. Fixing the mismatch also required restoring an assumption to related theorems and addressing the resulting proof obligation downstream. The example illustrates why a compiler can check that code is valid Lean without establishing that it says the same thing as the Coq source.
The authors therefore evaluate translations in two stages: first, does the item compile in the growing Lean repository? Second, if it compiles, is it semantically aligned with its source? They count a translation as accurate only when it passes both checks. A successful build alone is not treated as proof of faithful translation.
A large port, and controlled comparisons
The resulting Lean repository, FloatSpec, covers the in-scope Flocq inventory. The paper reports 58 core files, 5,075 indexed items and 194,704 lines of Lean code. It says the port builds in a clean Lean environment without admitted proof obligations. These figures describe the artifact’s scale; they do not, on their own, establish that every translated item preserves its source meaning.
To compare methods, the authors ran matched experiments on 22 dependency-connected submodules. They compared FormalWeaver with strategies that translate a whole submodule at once, translate items individually, or add compiler-guided repair. Across five evaluated models, FormalWeaver achieved higher translation accuracy than the simpler strategies in the reported comparisons. For example, with Claude Opus 5, its accuracy was 31.36%, compared with 12.71% for the compiler-loop strategy under the same model. In an ablation, removing dependency scheduling or interface stabilization reduced compilation success and resulted in no completed tasks under the paper’s task-completion measure. These results support the value of the combined repository controls in this setting; they do not show that the system translates every item successfully.
What the evidence can—and cannot—show
The study focuses on one source–target pair, Coq to Lean, and one subject area, floating-point formalization. Its authors note that other proof systems, libraries and domains may have different interfaces and translation challenges. The work also starts from an existing formal source; it does not address recovering precise specifications from informal descriptions. Establishing semantic correspondence can require additional evidence beyond compilation, particularly when source and target systems use different representations. The authors also describe the process as computationally expensive, with some architectural choices still requiring careful design.
FormalWeaver is presented in a NeurIPS 2026 workshop preprint, not as a peer-reviewed journal article. Its findings should be read as evidence from the described artifact and experiments, rather than as proof that the approach will generalize to other repositories. The central lesson is narrower but useful: when translating formal software, dependency management and source-grounded semantic checks address problems that a compiler alone cannot.
- formal methods
- AI agents
- Lean
- Coq
- proof assistants
- software translation
- floating-point arithmetic
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.
The Hidden Work Behind AI Proofs
Supporting evidence: Both papers indicate that success on isolated proof obligations does not capture the work of building formal infrastructure: FormalWeaver targets coherence across repository dependencies, while AutoformBench requires agents to construct missing definitions and lemmas but keeps tasks in separate workspaces. This supports the bounded point that infrastructure-building merits evaluation; the systems, task designs, and measured outcomes differ.
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.40218v1 — Original paper
Excerpt reference:
static/papers/2611.40218v1.md:71-122
Basis: Paper text
Source file SHA-256:c510b82f735323f2b7ba5307f7c33e11917ea5959f9e54acf0db45586aff74f92611.33165v1 — Original paper
Excerpt reference:
static/papers/2611.33165v1.md:121-176
Basis: Paper text
Source file SHA-256:f75c12433bb9cdb281511adb3747ec2d561e1f9b806e86d823c763ee81aa3d0d2611.33165v1 — Original paper
Excerpt reference:
static/papers/2611.33165v1.md:868-888
Basis: Paper text
Source file SHA-256:f75c12433bb9cdb281511adb3747ec2d561e1f9b806e86d823c763ee81aa3d0d
Why scientific computing needs human-guided AI proofs
Supporting evidence: Both studies distinguish code that compiles from a trustworthy formalization: FormalWeaver counts a translation as accurate only when it compiles and is semantically aligned with its source; the scientific-computing case study reports that compiler feedback mainly helps with syntactic and elaboration errors, while explicit semantic contracts produced the largest improvement in end-to-end correctness. The tasks and evaluation methods differ, so this supports only the limited point that compilation alone does not establish semantic fidelity.
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.40218v1 — Original paper
Excerpt reference:
static/papers/2611.40218v1.md:180-234
Basis: Paper text
Source file SHA-256:c510b82f735323f2b7ba5307f7c33e11917ea5959f9e54acf0db45586aff74f92611.31033v1 — Original paper
Excerpt reference:
static/papers/2611.31033v1.md:197-262
Basis: Paper text
Source file SHA-256:425ed923e1c35ff7bbea7069f652925d84a0bd8add133e188a182fbdf5e4ed8d
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
Keeping scientific proof trails intact
Source published
Shared keywords: proof assistants
The Hidden Work Behind AI Proofs
Source published
Shared keywords: ai agents, proof assistants
Why scientific computing needs human-guided AI proofs
Source published
Shared keywords: ai agents, floating point arithmetic
What AI-Written Lean Libraries Look Like
Source published
Shared keywords: proof assistants
An AI Agent Rewrites Lean Proofs Under a 48-Hour Clock
Source published
Shared keywords: ai agents