A Transfer Tactic for Lean
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 or , 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 . 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.
Create a lesson
Metadata
- Comments
- 10 pages, 3 tables. Submitted for publication
Related papers
Formal Semantics and Machine-Checked Metatheory for General Fault Trees in Lean 4
Shared title terminologycs.LOAdnan Rashid
From Proof Construction to Independent Checking: Reproducing the Lean Verification of RH and Dirichlet GRH on AArch64
Shared title terminologycs.LOZoltán Gábor Molnár
ProofVMM: A Maturity Model for Auditing Lean Proofs
Shared title terminologycs.LOGustas Mickus, Linas Petkevicius
Does a Trivially True Predicate Invalidate a Kernel-Checked Proof? An Independent Build and Dependency Audit of the Alpöge Lean Archive for the Riemann Hypothesis
Shared title terminologycs.LOEryk Schiller
Composing SAT and Algebraic Certificates in Lean for End-to-End Circuit Verification
Shared title terminologycs.LODaniela Kaufmann, Pedro Saccomani
Complexity transfer from classical fragments to modal predicate logics of finite Kripke frames
Shared title terminologycs.LODmitry Shkatov