A Transfer Tactic for Lean
Zhaoxi Chen, Daniel Raggi
Key points
From the paper's conclusion- We present one: a transfer tactic family over a tagged rule database, benchmarked using Mathlib's own test suites, of which 112 of 178 ported tests close through the transfer engine.
Abstract
Rewriting in proof assistants spans a strict hierarchy. Equational rewriting substitutes based on extensional equality; subequational rewriting substitutes based on homogeneous relations such as $\leq$ or $\subseteq$, justified by monotonicity lemmas; and generalized rewriting relates different operations across different types, justified by transfer rules. All three are specializations of one schema, the function relator $(R \Rightarrow S)\,f\,g$. Lean 4's rw and Mathlib's grw/gcongr implement the first two levels, but the third has had no Lean implementation. We present one: a transfer tactic family over a tagged rule database, benchmarked using Mathlib's own test suites, of which 112 of 178 ported tests close through the transfer engine. An evaluation of the design's three motivating hypotheses returns a mixed result: generality holds, authoring effort wins in its amortized form (averaged per use), but on dependency footprint, transfer only ties a mature library and loses on coercions. This shows that transfer's value is concentrated on transferring into domains where few theorems exist.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Lean Graph Search for Formal Theorem ProvingarXiv · 2026
- Hashing Theorems Modulo Rewrites and Binder Permutation Enables Equivalence Search over 200k Mathlib TheoremsarXiv · 2026
- Improving semantic equivalence in research-level math formalizationarXiv · 2026
- SemantEq: Faithful Bidirectional Equivalence of Formal StatementsarXiv · 2026
- Verified Proof Refactoring with Codex and QwenarXiv · 2026
- MechAlign: Evaluating Semantic Alignment at the Project Level in Mathematical FormalizationarXiv · 2026