Formal mathematics is currently undergoing a "Tower of Babel" moment. While the field is growing rapidly, progress is fragmented across different proof assistants like Lean, Isabelle/HOL, and Coq (Rocq). A theorem verified in Lean cannot be easily used by a researcher working in Isabelle because these systems use different logical foundations, libraries, and proof "idioms."
A new paper, "Lean2Isabelle: Factorized Cross-Assistant Proof Translation," proposes a novel framework to bridge this gap, moving beyond simple syntax mapping to true semantic translation.
TL;DR
Lean2Isabelle is a verifier-grounded framework that translates formal proofs from Lean to Isabelle/HOL by splitting the task into statement prediction and proof generation. By using reinforcement learning with verifier feedback and a "Minimal Valid Progress" reward, the system achieves a 54.3% success rate in reconstructing verified Isabelle proofs from Lean sources.
What Problem Does This Paper Address?
The core challenge in cross-assistant translation is that a proof isn't just a string of text; it’s a structured argument that relies on a massive ecosystem of existing definitions and lemmas.
Existing "autoformalization" tools usually translate natural language to code. However, translating between formal languages is harder because the target system must not only accept the code (type-checking) but also ensure the mathematical meaning remains identical to the source. A model might "cheat" by changing a difficult theorem into a trivial one that is easier to prove—a phenomenon the authors call semantic drift.
Methods
The authors introduce a factorized approach to translation:
- Target-Statement Prediction: A model translates the Lean theorem statement into an Isabelle equivalent.
- Statement-Conditioned Theory Generation: A second model takes the original Lean proof and the predicted Isabelle statement to generate a complete Isabelle theory file.
Key Technical Innovations:
- GRPO with Verifier Feedback: They use Group Relative Policy Optimization (a variant of reinforcement learning) to fine-tune the models. The "reward" comes directly from the Isabelle verifier (via the PISA interface).
- Minimal Valid Progress (MVP) Shaping: Since "pass/fail" rewards are sparse (most generated proofs fail initially), they developed MVP. This rewards the model for "closing" proof blocks (e.g., finishing a sub-goal), providing a gradient of partial success.
- Difficulty-Ordered Curriculum: The model starts learning on shorter, simpler proofs before tackling complex, multi-step theorems.
- Semantic Auditing: To catch "cheating" or drift, they use an LLM-based "Semantic Judge" to verify that the translated Isabelle theorem actually matches the source Lean theorem's intent.
Datasets
The researchers constructed several new resources to train and evaluate the system:
- Herald-ISA: 26,104 examples derived from the
FrenzyMath/Heralddataset, used for Supervised Fine-Tuning (SFT). - LeanWorkbook-ISA: 9,683 verified examples used for RL training and main evaluation.
- MiniF2F-DSP: A transfer-learning evaluation set derived from the popular MiniF2F benchmark, featuring 217 competition-style problems.
Key Insights and Ideas
- The Lean Proof is a "Signal," not just Noise: One of the most important findings was the result of an ablation study. When the model was given only the Isabelle statement (no Lean proof), performance dropped significantly. This proves that the model is actually "reading" the Lean proof to understand the logical path, rather than just guessing based on the theorem statement.
- Verification $\neq$ Correctness: The authors highlight that a proof can pass the Isabelle verifier but be semantically wrong (e.g., it proves $1+1=2$ instead of the intended complex calculus theorem). This necessitates the "SemPass" metric—a combination of machine verification and semantic auditing.
- Factorization Isolates Errors: By splitting statement translation from proof generation, the authors could pinpoint exactly where the system fails. They found that statement drift is a major bottleneck; if the "question" is translated slightly wrong, the "answer" (the proof) becomes impossible to find.
Key Results
The system was evaluated using SemPass@k, which counts a success only if the proof passes the Isabelle verifier and the semantic judge.
- Reference-Statement Success: When provided with a human-verified Isabelle statement, the RL-tuned model (GRPO-MVP) reached 54.3% SemPass@1 on LeanWorkbook-ISA, a significant jump from the 49.8% achieved by simple supervised learning.
- End-to-End Success: In the full "cascade" (predicting the statement and the proof), the system achieved 39.1% SemPass@1 on LeanWorkbook-ISA and 24.0% on the difficult MiniF2F-DSP set.
- Ablation Impact: Removing the Lean proof input dropped the success rate from 54.3% to 45.3%, confirming the value of cross-assistant context.
Limitations and Future Work
While a major step forward, Lean2Isabelle has clear boundaries:
- Retrieval-Free at Inference: The current student models do not search the Isabelle libraries during generation. This makes them struggle with niche lemmas or complex imports that weren't in the training set.
- Theorem-Level Only: The system translates individual theorems. "Project-scale" migration (translating entire libraries with inter-dependent files) remains an open challenge.
- The "Judge" is an LLM: While the proof is machine-checked, the semantic equivalence is still judged by a high-performing LLM (GPT-4 variant), which is not as infallible as a formal logical proof of equivalence.
Future Direction: The authors suggest that integrating retrieval-augmented generation (RAG) and developing formal "interoperability certificates" could eventually allow for seamless, verified migration of entire mathematical libraries.
Summary updated