WorksComputer Science
Hashing Theorems Modulo Rewrites and Binder Permutation Enables Equivalence Search over 200k Mathlib Theorems
Abstract
Like all code, Lean libraries accumulate technical debt and structural deficiencies over the course of their development. A particular concern is duplicate theorems: different parts of a big library can unwittingly contain and prove the same theorem, duplicating maintenance efforts. Tools can help detect redundancy and clean up. For instance, Mathlib's duplicate-declarations linter compares theorem types syntactically after sorting top-level binders and erasing binder information and universe levels. If detecting an equivalence requires unfolding, reorientation, or logical transformations, it escapes this comparison. In this work, we present a method to detect theorems which are equivalent with regard to argument order and currying/uncurrying of dependent types. We implement our method for Lean. By applying it to Mathlib, a library of more than 200k theorems, we demonstrate that it is computationally cheap and scalable. We discuss how our work may enhance efforts to tackle the maintenance burden of Lean libraries.
Introduction
As Lean grows in popularity, the amount of Lean code significantly increases. Consider Mathlib, which has grown to over 2.2 million lines of Lean. At that size, deprecation and technical debt become central risks to continued library development [3, 12]. Tooling for code maintenance becomes critical. This issue is exacerbated with AI, which enables newer Lean projects to get even bigger even faster, e.g. Anthropic’s formalization of Fermat’s Last Theorem (13 million lines) [1, 2] or OpenAI’s Lean certificates for finite-time blow-up of the Navier–Stokes and Euler equations (641,000 lines) [16, 17].
Duplicate theorems are of particular concern. Two theorems in two different places that prove the same thing lead to confusion, bloat, and duplicated community efforts. However, given the expressivity of Lean’s type system, automatically finding duplicates is a difficult problem. In general, proving arbitrary types equivalent is the same as proving arbitrary theorems and therefore cannot be decided algorithmically.
We propose a way for finding duplicates over a subset of type equivalences which can be found by terminating syntactical rewriting. To achieve this, we reuse some theoretical work on type isomorphisms such as the complete axiomatizations of provable isomorphism in typed -calculi [8, 11, 13], their use in proof assistants [5], and their extension to dependent products [20]. Instead of using them for search, however, we index entire Lean libraries to find duplicates.
The relation we compute is deliberately narrower than logical equivalence. Two statements are identified only if a fixed set of isomorphism schemata and definitional unfoldings, applied at proposition positions, rewrites both to the same normal form up to renaming and reordering. Because of this narrowness, the relation is cheap to decide over a library of 200k Mathlib theorems while still finding relevant results.
Contributions. We make the following contributions:
We show that a terminating rewrite system with eight rules can find relevant duplicate theorems that a definitional equality check misses.
Based on this insight, we implement a tool that finds duplicate statements in any Lean project and certifies their equivalence with a kernel-checked proof (Sect. 3). It normalizes statements, buckets the normal forms by an isomorphism-invariant signature, decides isomorphism within each bucket, and builds the certificates from generic transfer lemmas. Properties of its metatheory are formalized and proved on exactly the definitions the tool uses.
We evaluate our tool on Lean core, Batteries and Mathlib libraries, on a total of 286,264 statements where we find 1,747 redundant proofs (Sect. 4).
Theoretical Foundations
With our goal of working in a well-defined fragment of Lean’s type theory, we look for two properties. First, we want to faithfully represent Lean propositions in the fragment and also be able to extract them back out. Second, we want to have terminating normalization up to reordering and renaming of binders/hypotheses and be able to use efficient graph isomorphism heuristics to match them. The connection between term equality with commutative structure and graph isomorphism has been studied by Basin [6].
Terms and Graphs
Our term language Tm defined in Fig. 1 is a syntactic fragment of Lean covering terms, types and propositions. We use Tm not as its own type theory but as a syntactic fragment of Lean propositions: it has no typing rules, no reduction, and every term is obtained by encoding a Lean statement. Hence, well-typedness is inherited from Lean and re-established by the kernel when the readback is checked. The design is similar to [8] and [21]. Since we only want to find duplicate theorems, only propositions are handled. A whose body is a proposition, which also covers implication and negation, is opened by the rules, and a whose codomain is not a proposition is kept as an inert former, because isomorphisms between types at arbitrary universes make the theory more complex than needed for our use.
fig:1. Terms, types and propositions of the syntactic fragment Tm of Lean, with de Bruijn indices for local binders and named pointers to graph nodes. Proof terms (, , , ) are kept for the readback to Lean. The side conditions on , , and pair annotations are guaranteed by the encoder, not by the grammar. For readability, the examples name a bound variable after the depth of its binder counted from the outside instead of its index, and write as .
fig:2. Graphs are products of nodes, where a product is a telescope with named members and pointers between them.
We define a graph for representing our terms in Fig. 2 as a finite product of nodes and a node as a named variable with a type, an arrow from a product of hypotheses to a product of conclusions, a connective node with a product on each side, or a nameless equation node. A product is a telescope in the sense of de Bruijn [9]: later members may refer to earlier ones by name, and the list order is a binder order. A graph is well-formed when names are unique, labels are locally closed, and every pointer targets a member that is in scope; the initial one-node graph of a statement without pointers is well-formed, and every rewrite step preserves well-formedness.
Two graphs are related by Iso iff a bijective renaming of names, applied to node names and pointers alike, followed by finitely many of the steps in Figure 3 turns one into the other. A step exchanges two adjacent members of a product (Swap), the two sides of a connective node (Flip), or the two sides of an equation node (FlipEq). Steps apply in every product, at the top level, in the domain or conclusion of an arrow, and on a side of a connective node, at any nesting depth, but never inside a label. Hence an equation or connective that stays inside a label is compared only up to renaming. Iso is the relation according to which normal forms are compared and decided. On well-formed graphs, the rewrite system R is proven to be confluent modulo this Iso in the single-source form stated in Sect. 2.3.

Figure 3. The relation Iso and the product contexts in which its steps and the rules of R apply, where ranges over nodes, , and over graphs, and over and . renames every node name and every pointer of along . None of the three steps has a side condition.
The Rewrite System R
The eight rules of R (Figure 4) can be used at any member of any product, at the top level, in the domain or conclusion of an arrow, or on a side of a connective node, but never inside a label. Pi and Sigma lift a binder out of a label into the surrounding product while choosing fresh names. The ArrowMerge rule flattens nested arrows, representing currying. Unit, ArrowUnit and ArrowErase remove , empty domains and arrows with an empty conclusion. Conn and Eq turn , and into nodes for commutativity. Pi, Conn and Eq apply only to a member that no pointer in the whole graph references, i.e. a hypothesis that is used somewhere else later is never split.

Figure 4. The rewrite system on graphs where is a product context (Figure 3), # denotes freshness and refs the set of referenced names.
Iso ignores the dependency order, so it does not preserve well-formedness by itself. However, what matters is that R acts on Iso-classes: if is Iso to and steps to , then steps in one step to some Iso to . The tool only compares well-formed normal forms, so the member orders on both sides of an identified pair respect the dependencies.
Consider the two statements and
with unfolded to . Starting from the one-node graph , the rules of R produce
and, from ,
Both and are -normal: the remaining variable nodes have atomic types on which no rule applies. They are related by permuting the members of the domain, and no renaming is needed because both traces choose the same names for corresponding nodes. The tool generates the names instead, so its normal forms of and in Figure 5 are also related by a renaming.

Figure 5. Duplicate detection over a library on the running example. Every theorem has its reducible definitions unfolded (here only ) and is put into weak head normal form by Lean, embedded into , normalized by (the individual rewrite steps are collapsed here), and inserted into an index keyed by the color-refinement signature of the DAG of its normal form. The fills of the nodes in and are the color classes after refinement; equal fills are equal color values, and the equation node carries no color. Only theorems in the same bucket are compared, by searching for a graph isomorphism modulo binder permutation. and share a bucket and are isomorphic. For the identified pair a Lean proof of is built from the two rewrite derivations and the isomorphism and is checked by the Lean kernel; only then is the pair reported as a duplicate.
Metatheory Proved in Lean
We formalize , , and and prove multiple important properties of them in Lean. All theorems are formalized in a way such that the implementation of the tool uses the same definitions we proved the properties about. Our own definitions of , and are connected with the canonical definitions from Mathlib and CSLib [4] for relations and rewrite systems. They are proved in a separate folder and accepted by comparator [14]. Termination of holds on all graphs, without a well-formedness hypothesis, by a measure on spine formers and weights that every rule decreases. is a simulation for in the sense of Sect. 2.2. Well-formedness holds for the initial graph of every label without pointers or loose bound variables and is preserved by every -step.
On well-formed graphs R is confluent modulo Iso in the single-source form. If a well-formed graph reduces to and to , then and reduce to graphs related by Iso. The abstract lemma is Newman’s argument with Iso threaded through under the simulation hypothesis, a special case of Huet’s confluence-modulo lemma. Hence normal forms reachable from one well-formed graph are unique up to Iso, and the normalizer, defined by well-founded recursion on the termination theorem and without fuel, returns an R-normal form reached by R-steps and, on well-formed graphs, one related by Iso to every reachable normal form. Iso is decidable with a reference decider proved total by structural recursion, sound and complete on all graphs. The key by which graphs are bucketed before comparison is invariant under Iso. All of these theorems depend on no axiom beyond the usual propext, Classical.choice and Quot.sound. A one-page Challenge.lean file restates G, R, Iso, well-formedness and the statements with only Mathlib and CSLib imported.
It is important to note that nothing proved in Lean relates R or Iso to the meaning of Lean propositions. There is no semantics of the graphs and no adequacy or completeness result for a theory of type isomorphisms. The link to Lean is made per identified pair by the equivalence certificates.
Implementation
Using our insights, we build a tool that scans Lean libraries for duplicates. Importantly we use the same definitions for implementing the tool as we use to prove the properties of Tm, R, G and Iso. Figure 5 shows our tool’s pipeline on the example from above.
The tool scans all Lean statements which are propositions and encodes them as a Tm term. To find more duplicates, like in our example with and , we need to unfold to . We need to apply just the right amount of unfolding which is notoriously hard. If we unfold too much, the term explodes in size. Hence we only unfold definitions that are annotated as reducible or instanceReducible (e.g. definitions like ).
After encoding a statement as a Tm term and building the initial graph in G with it, the rewrite system R is used to normalize it. We previously proved that this always terminates.
In the default whole-library mode, the driver uses the proved-Iso-invariant signature to form buckets and the proved Iso decision procedure to compare members with class representatives. The decision procedure first checks a witness proposed by the fast matcher and falls back to the complete reference decider when this attempt does not establish an isomorphism. Although there is no known polynomial-time algorithm for deciding graph isomorphism, we can nicely use heuristic color refinement from the one-dimensional Weisfeiler–Leman algorithm [22]. Every node of a normal form starts with a color computed from its label with all pointers blanked and from its position in the graph. A refinement round replaces the color of a node by a hash of its old color, the colors of the nodes it points to, and, for every incoming pointer, the color of the referrer together with the position of the occurrence. The rounds stop when no color class splits any more. The stable colors become node hashes, the two sides of an equation are combined commutatively, and the hashes of the members of a telescope are summed,
so the resulting signature does not depend on the order of the members. Inside each bucket, we compute the isomorphism with the node hashes as a guide. Equal signatures and pairwise distinct member hashes make the search for a witness a sequence of forced moves without backtracking. On our data, the heuristic works in every tested case.
For each member of a bucket with representative , the tool builds a term of type to certify that both statements are indeed equivalent. The certificate consists of a chain of generic equivalence lemmas over arbitrary propositions and sorts, Iff.refl, Iff.trans and Iff.symm, the logical constants, and readbacks of the intermediate graphs. It references neither of the two theorems. Since both statements are theorems, is trivially provable from their proofs. The certificate avoids this by using neither proof, so it would type-check even if and were unproved, and it witnesses their structural equivalence rather than the fact that both hold.
The relation is strictly finer than logical equivalence and is generated by the schemata above and by definitional unfolding, nothing else. Not identified are, for example, distributivity of and over , idempotence, De Morgan laws, as two implications, the one-point rule, unfolding of plain definitions such as Function.Injective, permutation of universe parameters, and symmetry of HEq. A negative verdict therefore means only that R and Iso do not identify the two encodings, not that the statements are inequivalent.
Evaluation
To evaluate our tool, we ran it on a corpus of 286,264 theorem statements from Lean core, Batteries, and Mathlib, including deprecated aliases and generated API variants1. On our hardware, the tool run took about half an hour, most of which was spent on certificate construction and kernel checking. The linter comparison and report generation took another 15 minutes.
Duplicate Classes and Certificates
Table 1 summarizes the run. Of the 286,264 extracted statements, 286,224 were encoded and normalized within the configured size budgets and 40 were never compared. This measures processing coverage of the selected corpus, independently of the equivalences omitted by the fixed schemata. The normalized statements fall into 7,525 duplicate classes with at least two members, 15,834 members in total. Pairing every non-representative member with its class representative gives 8,309 pairs, each with its own kernel-checked certificate. Of these 8,309 pairs, 6,293 are definitionally equal to their representative according to Meta.isDefEq, so 76% of the certificates are for pairs that Lean already accepts as definitionally equal; 2,016 members are not.
| theorem statements extracted (non-private) | 286,264 |
| encoded and normalized within the size budget | 286,224 |
| over budget, never compared | 40 |
| duplicate classes (at least two members) | 7,525 |
| members in these classes | 15,834 |
| pairs (representative, member), one kernel-checked certificate each | 8,309 |
| member definitionally equal to the representative | 6,293 (76 %) |
| member not definitionally equal to the representative | 2,016 |
| head pairs (representative, head of a definitional-equality group) | 1,912 |
| pairs where both sides carry a proof of their own | 7,612 |
| and neither side is generated from the other | 3,003 |
| and neither proof references the other | 2,051 |
| and the sides are not joined through other members | 1,896 |
| and neither side is deprecated (independent pairs) | 1,742 |
| redundant proofs (independent proofs − 1 per class) | 1,747 in 1,687 classes |
| for definitionally equal statements / equal only through Iso | 965 / 782 |
| not labeled as deliberate API twins | 873 in 844 classes |
| definitionally equal / equal only up to isomorphisms | 586 / 287 |
| additional findings with a deprecated side | 109 |
| relevant findings including deprecated ones | 1,856 |
| spanning packages | 192 in 162 classes |
| with no pair found by Mathlib’s duplicate-declarations linter | 1,226 in 1,184 classes |
| independent pairs found / excluded / missed by Mathlib’s linter | 481 / 241 / 1,020 |
Table 1. One run of the tool over Lean core, Batteries and a pinned Mathlib. Every number is computed by the analysis scripts of the run from its outputs and reproducible with the provided artifact. Definitional equality is by the verdict of Meta.isDefEq at default transparency on the representative and the member after positional renaming of universe parameters.
Not every pair is a redundant proof. We distinguish statement pairs certified by the kernel from the analysis scripts’ labels about proof independence and likely maintenance value. A relevant finding is a redundant independent proof, counted within a class of
statements equal modulo the isomorphisms. If the directed graph of references between class members has proof roots, the class contributes relevant findings, where a root has a proof of its own, reaches no other member, is not generated from another member, and is not deprecated. A proof generated from another member by alias or to_additive, or generated together with it by the same command, is excluded. A handwritten proof remains eligible when its statement is also generated by a macro or attribute from a third declaration.
Counted per class this gives 1,747 redundant proofs in 1,687 classes, 965 of them for definitionally equal statements and 782 for statements equal only through the isomorphisms.
The automated classification labels 874 of the 1,747 redundant proofs as deliberate API twins, leaving 873 candidates in 844 classes outside that category. These labels prioritize inspection and do not establish that the remaining declarations were introduced unintentionally or should be removed.
Example Findings
The pair below is an orientation twin of two theorems in the same file equal after flipping the two sides of =. Both are there on purpose but they get flagged because the second statement does not use the proof of the first. Its independent proof could be replaced by map_zipIdx.symm to remove duplication and signify the connection between both theorems.
-- Init/Data/List/Nat/Range.lean
theorem map_zipIdx {f : α → β} {l : List α} {k : Nat} :
map (Prod.map f id) (zipIdx l k) = zipIdx (l.map f) k := by
induction l generalizing k <;> simp_all
-- Init/Data/List/Nat/Range.lean, 31 lines further down
theorem zipIdx_map {l : List α} {k : Nat} {f : α → β} :
zipIdx (l.map f) k = (zipIdx l k).map (Prod.map f id) := by
induction l with
| nil => rfl
| cons hd tl IH =>
rw [map_cons, zipIdx_cons', zipIdx_cons', map_cons, map_map, IH,
map_map]
rfl
A pair spanning two files of Mathlib, identified after re-associating the existential and the conjunction and reordering the hypotheses, is the following:
-- Mathlib/Algebra/Colimit/TensorProduct.lean
theorem Submodule.FG.exists_rTensor_fg_inclusion_eq
{N : Submodule R P} (hN : N.FG) {x y : N ⊗[R] M}
(eq : N.subtype.rTensor M x = N.subtype.rTensor M y) :
∃ N', N'.FG ∧ ∃ h : N ≤ N',
(N.inclusion h).rTensor M x =
(N.inclusion h).rTensor M y := by ...
-- Mathlib/RingTheory/TensorProduct/DirectLimitFG.lean
theorem TensorProduct.eq_of_fg_of_subtype_eq {t' : P ⊗[R] N}
(h : rTensor N P.subtype t = rTensor N P.subtype t') :
∃ (Q : Submodule R M) (hPQ : P ≤ Q), Q.FG ∧
rTensor N (inclusion hPQ) t =
rTensor N (inclusion hPQ) t' := by ...
Both statements express that two tensors with equal images in the ambient tensor product already have equal images in some larger finitely generated submodule. Their proofs use different presentations of the same direct-limit argument, which makes the pair a candidate for proof reuse across files. This pair illustrates why comparison must account for dependencies as well as binder order, since the existential inclusion proof refers to the chosen submodule. The certificate supplies a structural connection between the statements, while deciding whether to share their proofs requires a separate review of the library’s API and import dependencies.
The classification labels are assigned automatically using rules based on the source text, proof terms, and Lean environment. These labels have not been checked by hand, so the maintenance value of the reported candidates remains to be assessed. Informal inspection of the findings suggests that a substantial number of the 873 candidates not labeled as deliberate API twins offer opportunities to improve code quality through proof reuse and clearer connections between declarations. Inspection also reveals variation in binder order, the use of auto-implicit binders (outside Mathlib, which does not use them) and separately declared variables. The findings also expose inconsistencies in theorem naming conventions.
Comparison with Mathlib’s Duplicate-Declarations Linter
Mathlib’s DuplicateDecls is a syntactic tool that groups theorem types by equal keys after erasing universe levels and binder information and sorting top-level binders. It compares the resulting terms up to binder names, without unfolding definitions, reorienting connectives, or applying logical transformations. We applied Mathlib’s DuplicateDecls comparison and filtering rules to the same environment. Of the 1,742 independent pairs reported by our analysis, the linter finds 481 (27.6 %), excludes 241 (13.8 %), and misses 1,020 (58.6 %). This comparison counts representative–member pairs, whereas the 1,747 redundant proofs above are counted from proof roots per class.
For an excluded pair, at least one declaration is filtered out, with 160 pairs excluded only by the metaprogramming-name filter, 78 only by the alias filter, and 3 by both. The metaprogramming filter skips namespaces such as Lean.Grind, Lean.Omega, and Mathlib.Tactic. The alias filter skips proofs consisting of a single constant applied to the theorem’s hypotheses, which also removes genuine one-line re-proofs. For 118 of these 241 pairs, the comparison keys would agree if the filters were disabled. This selection policy sensibly focuses reports on mathematical declarations and avoids routine aliases, so we distinguish deliberate exclusions from key misses and report overlap rather than overall recall.
Among the 1,020 pairs retained but missed by the linter, 527 are diagnosed as orientation changes and 316 are definitionally equal despite different keys. The remaining 177 involve binder order, unfolding, currying, annotations, or other rewrites. These diagnoses depend on the order of key relaxations rather than uniquely identifying each cause.
Conversely, our tool identifies 646 of the linter’s 782 theorem groups entirely within single duplicate classes. Of the 809 pairs of theorems within these groups, 142 are not identified by our tool, of which 119 fall outside our corpus and 23 differ in universe levels, which the linter erases and our tool preserves.
Related Work
Type isomorphisms and theorem search. Using types as library search keys modulo isomorphisms dates back to Rittri [19]. SearchIsos applies this approach to dependent types in Rocq [10], while Loogle supports pattern-based theorem search in Lean [7]. Takimoto et al. compare the search capabilities of these tools and those of Rocq, Idris and Lambdapi, and propose a semi-algorithm for unification modulo isomorphisms of dependent products and sums [21]. Their approach combines argument reordering and currying/uncurrying with metavariable instantiation, allowing queries to match more general statements or statements with additional premises. Our work addresses a different task: grouping existing theorem statements across an entire library under a fixed structural equivalence, without metavariable-based generalization. We adapt their rewrite schemata to an annotated graph representation, adding the arrow-to-unit law and explicit symmetry for propositional connectives and equality.
Duplicate detection in Lean. Mathlib’s DuplicateDecls is the closest existing tool in purpose. It compares declaration types syntactically after sorting top-level binders and erasing binder information and universe levels, and filters aliases to avoid reporting intentional duplicates. Our approach extends comparison to structural transformations within statements, including currying/uncurrying, decomposition of conjunctions and existentials, and connective symmetry. Dependency graphs retain references between binders while allowing normal forms to be compared modulo renaming and permutation. We also selectively unfold definitions at proposition positions. Each reported match is accompanied by a kernel-checked equivalence proof constructed from the rewrite and isomorphism witnesses, without referencing either theorem.
Foundations and scope. Our approach builds on work on provable type isomorphisms in typed -calculi [8] and their extension to dependent products [20]. The use of rewriting modulo an equivalence follows the classical rewriting-modulo setting [18]. Our mechanized results establish termination and confluence modulo Iso for the chosen graph rules, together with a decision procedure for Iso. These results concern the graph representation: they do not establish completeness for a general theory of type isomorphisms or logical equivalence. The connection to Lean propositions is checked separately for each reported pair through its equivalence certificate.
Conclusion
We presented our tool for detecting duplicate theorem statements through structural rewrites and dependency-preserving binder permutations. Its rewrite system and graph-isomorphism decision procedure have a machine-checked metatheory, and each reported pair comes with a kernel-checked equivalence certificate. The evaluation on 286,264 theorem statements demonstrates library-scale detection and exposes 873 maintenance candidates that our labels suggest are worth inspecting for opportunities to improve code quality. These findings offer concrete opportunities to review proof reuse and make connections between declarations explicit. The certificates establish statement equivalence, while deciding which proofs to share or declarations to retain requires careful human review.
As a next step one could integrate the certified duplicate reports into library maintenance workflows, like for example Mathlib’s technical debt tracking, and evaluate the resulting proof refactorings with maintainers in more detail. Another direction to extend the project would be to refine the supported schemata and certificate construction beyond propositions to general isomorphisms of types. Further, it would be interesting to find not just equivalences but also specializations or implications. For example when an equivalence is already proved, a proof of might also be redundant.
Data Availability Statement. The artifact for this paper, a Docker image of the tool with a full reproduction of the evaluation, is available on Zenodo [15].
Acknowledgments. This research was partially supported by a Coefficient Giving grant. Simon Henniger was supported by the Harvard John A. Paulson School of Engineering and Applied Sciences (SEAS) Prize Fellowship and the German Academic Fellowship Organization, funded by the German Federal Ministry for Economic Affairs and Energy.
References
- [1]Anthropic: Fermats-last-theorem: Fermat’s Last Theorem in Lean 4. https://github.com/anthropics/fermats-last-theorem (2026)
- [2]Anthropic: Formalizing Fermat’s Last Theorem in Lean: A timeline and selected excerpts from Claude’s reasoning. Technical report, Anthropic (Sep 2026)
- [3]Baanen, A., Ballard, M.R., Commelin, J., Chen, B.G., Rothgang, M., Testa, D.: Growing Mathlib: Maintenance of a large scale mathematical library (Aug 2025). https://doi.org/10.48550/arXiv.2508.21593
- [4]Barrett, C., Chaudhuri, S., Montes i, F., Grundy, J., Kohli, P., de Moura, L., Rademaker, A., Yingchareonthawornchai, S.: CSLib: The Lean Computer Science Library (Feb 2026). https://doi.org/10.48550/arXiv.2602.04846
- [5]Barthe, G., Pons, O.: Type Isomorphisms and Proof Reuse in Dependent Type Theory. In: Honsell, F., Miculan, M. (eds.) Foundations of Software Science and Computation Structures. pp. 57–71. Springer, Berlin, Heidelberg (2001). https://doi.org/10.1007/3-540-45315-6_4
- [6]Basin, D.A.: A term equality problem equivalent to graph isomorphism. Information Processing Letters 51(2), 61–66 (Jul 1994). https://doi.org/10.1016/0020-0190(94)00084-0
- [7]Breitner, J.: Loogle. https://loogle.lean-lang.org/ (2023)
- [8]Bruce, K.B., Di Cosmo, R., Longo, G.: Provable isomorphisms of types. Mathematical Structures in Computer Science 2(2), 231–247 (Jun 1992). https://doi.org/10.1017/S0960129500001444
- [9]de Bruijn, N.G.: Telescopic mappings in typed lambda calculus. Information and Computation 91(2), 189–204 (Apr 1991). https://doi.org/10.1016/0890-5401(91)90066-B
- [10]Delahaye, D.: Information Retrieval in a Coq Proof Library Using Type Isomorphisms. In: Coquand, T., Dybjer, P., Nordström, B., Smith, J. (eds.) Types for Proofs and Programs. pp. 131–147. Springer, Berlin, Heidelberg (2000). https://doi.org/10.1007/3-540-44557-9_8
- [11]Di Cosmo, R.: A short survey of isomorphisms of types. Mathematical Structures in Computer Science 15(5), 825–838 (Oct 2005). https://doi.org/10.1017/S0960129505004871
- [12]van Doorn, F., Ebner, G., Lewis, R.Y.: Maintaining a Library of Formal Mathematics. In: Benzmüller, C., Miller, B. (eds.) Intelligent Computer Mathematics (CICM 2020). Lecture Notes in Computer Science, vol. 12236, pp. 251–267. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-53518-6_16
- [13]Fiore, M., Di Cosmo, R., Balat, V.: Remarks on isomorphisms in typed lambda calculi with empty and sum types. In: Proceedings 17th Annual IEEE Symposium on Logic in Computer Science. pp. 147–156. IEEE Computer Soc, Copenhagen, Denmark (2002). https://doi.org/10.1109/LICS.2002.1029824
- [14]Lean FRO: Comparator. https://github.com/leanprover/comparator (2025)
- [15]Leßmann, S., Henniger, S., Poesia, G., Amin, N.: lean-piso-trip: Equivalence Search over Mathlib Theorems Modulo Rewrites and Binder Permutation (VMCAI 2027 Artifact) (2026). https://doi.org/10.5281/zenodo.23064352
- [16]OpenAI: Navier-StokesAndEuler: Lean certificates accompanying Navier–Stokes and Euler results. https://github.com/openai/NavierStokesAndEuler (Sep 2026)
- [17]OpenAI: On the Navier–Stokes Millennium Prize Problem. https://openai.com/index/navier-stokes-solution/ (Sep 2026)
- [18]Peterson, G.E., Stickel, M.E.: Complete Sets of Reductions for Some Equational Theories. Journal of the ACM (JACM) 28(2), 233–264 (Apr 1981). https://doi.org/10.1145/322248.322251
- [19]Rittri, M.: Using types as search keys in function libraries. In: Proceedings of the Fourth International Conference on Functional Programming Languages and Computer Architecture. pp. 174–183. FPCA ’89, Association for Computing Machinery, New York, NY, USA (Nov 1989). https://doi.org/10.1145/99370.99384
- [20]Soloviev, S.: On Isomorphism of Dependent Products in a Typed Logical Framework. In: Herbelin, H., Letouzey, P., Sozeau, M. (eds.) 20th International Conference on Types for Proofs and Programs (TYPES 2014). Leibniz International Proceedings in Informatics (LIPIcs), vol. 39, pp. 274–287. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl, Germany (2015). https://doi.org/10.4230/LIPIcs.TYPES.2014.274
- [21]Takimoto, S., Moriguchi, S., Watanabe, T.: Unification Modulo Isomorphisms between Dependent Types for Type-Based Library Search. In: Proceedings of the 10th ACM SIGPLAN International Workshop on Type-Driven Development. pp. 15–25. TyDe ’25, Association for Computing Machinery, New York, NY, USA (Oct 2025). https://doi.org/10.1145/3759538.3759651
- [22]Weisfeiler, B.Y., Leman, A.A.: The Reduction Of a Graph to Canonical Form and the Algebra which appears therein. Nauchnо-Tekhnicheskaya Informatia 2(9), 12–16 (1968)