arXiv:2610.40538cs.LOOct 2026

Manuscript Offprint

arXiv:2610.40538

crush: Extensible Proof Automation for Lean

Mike He, Dexin Zhang, Aarti Gupta

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Mike He, Dexin Zhang, and Aarti Gupta

Princeton University

Abstract. Lean's rich expressiveness supports higher-order functions, inductive datatypes, and user-defined abstractions, making it challenging to translate proof obligations into first-order Satisfiability Modulo Theory (SMT) queries and reconstruct kernel-checked proofs. We present crush, an extensible SMT-backed proof automation framework for Lean. To bridge the gap between Lean's higher-order constructs and the solver's first-order logic, crush uses defunctionalization to encode function values and their applications. We formalize this translation for a supported higher-order fragment and prove its soundness. Moreover, crush provides metaprogramming interfaces for extending both Lean-to-SMT translation and the reconstruction of Lean proofs from solver certificates without modifying the translation pipeline. We implement crush as both a tactic and a backend for other third-party automation systems. We show that across four such use cases that target verification and general proof automation, crush discharges more obligations than the competing backends and reconstructs more kernel-checked proofs than the baselines.

Keywords: Interactive Theorem Proving· SMT Solvers· Lean Hammer

1 Introduction

Theorem proving has been widely applied in verification of hardware designs [8, 16, 30], software codebases [1, 17, 19] and cloud services [7, 15, 33]. The success of theorem proving in these domains can be attributed to rigorous improvements along two lines: interactive theorem proving and automated theorem provers (ATP). Interactive theorem proving involves manual formalization and proofs, checked by a proof assistant (PA) such as Rocq [34], Lean [23], Isabelle/HOL [24] and Agda [25]. These tools provide rich type systems in which users can formalize properties with abstract and higher-order constructs. On the other hand, automated theorem provers such as Z3 [11], CVC5 [3], and E-Prover [31] support less expressive logics but offer significant automation in proof search.

Integrating ATPs with proof assistants, as in CoqHammer [10] and SMT-Coq [2], combines automated search with kernel-checked proofs. While offering merits from both PA and ATP, these integrations face two main challenges, shown in Table 1: (1) translating expressive proof obligations into the solver's first-order logic and (2) reconstructing kernel-checkable proofs from solvers' outputs. The translation has to accommodate features like polymorphism and higher-order constructs admitted by PAs and provide extensible encodings that

Mike He, Dexin Zhang, and Aarti Gupta

Table 1: Qualitative comparison of goal translation and proof reconstruction. Poly. shows support of polymorphic premises; HO shows support of higher-order functions; Ext. encoding denotes interfaces for custom encodings. Core-guided and Replay shows whether the tool supports reconstructing ITP-checked proofs from solver certificates (unsat cores and solver-produced proofs, respectively).

ITPToolITP →\rightarrow ATPATP →\rightarrow ITP
Poly.HOExt. encodingCore-guidedReplay
Isabelle/HOLsmt [6]✓✓✓✕✓
RocqSMTCoq [2]✕✕✓✕✓
CoqHammer [10]✓✓✕✓✕
Leanlean-auto [28]*✓✕✕✕✕
LeanHammer [36]**✓✓✕✓✕
lean-smt [21]✓✕✓✕✓
crush✓✓✓✓✓

*SMT backend of lean-auto.

**Duper backend of LeanHammer; its replay support is provided separately by lean-smt.

allow users to customize how new definitions are translated. Proof reconstruction has to produce kernel-checkable derivations from certificates generated by the solvers, which may provide only selected premises (i.e., unsat cores), or rely on solver inference rules that have to be mapped into the PA's proof system.

In Lean specifically, proof automation that leverages power of ATPs follows two broad approaches. The first consists of tactics implemented natively in Lean, represented by grind [22] and aesop [20]. These tactics operate directly on Lean expressions and construct proof terms that are checked by the Lean kernel. grind combines congruence closure, E-matching, constraint propagation, case analysis, and specialized solvers for domains such as linear arithmetic and commutative rings. aesop, in contrast, constructs a best-first proof-search tree from an extensible set of rules. Rules may be built from theorem applications, constructor introduction, term rewriting, or arbitrary tactics. These tactics are native to Lean, but their automation is limited to the search procedures, registered rules, and decision procedures implemented within Lean.

The second category consists of hammer-style tactics, such as lean-auto [28] and lean-smt [21]. These tactics collect local hypotheses and the negated proof goal, translate the supported fragment of Lean into a solver language such as SMT-LIB [4], and invoke an external SMT solver. This architecture allows Lean to benefit from mature decision procedures and proof-search heuristics developed for ATPs. When the SMT solver reports unsatisfiability (UNSAT), this fact could either be trusted directly, or be witnessed by a reconstructed proof, using solver's certificates, that is subsequently and independently checked by the Lean kernel. The translation boundary of existing approaches suffers from a limitation: Lean constructs, including higher-order functions and user-defined abstractions, must be represented in the solver's supported logic. The applicability and soundness guarantees of these tactics are therefore limited by the coverage and extensibility of both the translation and proof reconstruction procedures.

To address these gaps, we have developed crush, an SMT-backed proof automation framework that combines translation support for higher-order functions with user-extensible encodings, and supports both unsat core-guided proof reconstruction and proof replay from solver inference steps. Users can customize how their definitions are encoded and how the resulting solver proofs are reconstructed in Lean. Our design has three key capabilities. First, crush supports nondependent higher-order functions, including function-valued arguments, partial applications, and lambda abstractions. Through defunctionalization, it represents these functions as values of uninterpreted SMT sorts and introduces application symbols and equations describing their behavior. We formalize this translation and prove its soundness. Second, we provide an extensible translation interface that allows users to define customized encodings of Lean types, functions, and operators without modifying the core translator. Third, we provide an extensible proof replay interface that allows users to define proof reconstruction procedures in the form of typed rewrite rules for terms introduced by their custom translation and for solver's inference rules, yielding kernel-checkable proofs.

We evaluate crush on four benchmark suites: a Curated set of proof obligations developed by us, Cashmere [14, 18], Velvet [13], and PLean [26]. These include 754 verification conditions (VCs) that contain mixed theories. crush discharges 709 (94.0%) of the 754 VCs, with 693 (91.9%) successfully reconstructed kernel-checked proofs. In comparison, auto, the strongest non-proof-producing tactic, closes only 622 (82.5%), and grind, the strongest proof-producing tactic, closes 641 (85.0%). With kernel-checked proofs, crush also exceeds lean-smt [21] and Duper [9] by 34.7 and 37.1 percentage points in overall coverage, respectively. In summary, our contributions are:

Extensible translation. We design a pattern-based interface for extending SMT encodings of Lean types and terms. These extensions combine with translation of higher-order constructs with defunctionalization without modifying the core translator. We also formalized soundness of the defunctionalization pass.

Extensible proof replay. We design interfaces for interpreting terms in SMT solver proofs and reconstructing their inference steps in Lean. Users can extend the procedure to support custom encodings and additional solver inference rules.

The crush framework. We implement these ideas as a proof automation framework crush in Lean. crush is publicly available on GitHub 1^{1}.

References (35)