Lune

PLDI2024Top-tier venue

Hashing Modulo Context-Sensitive ๐›ผ-Equivalence

Lasse Blaauwbroek, Miroslav Olsรกk, Herman Geuvers

2024Year
1Citations
1Top-tier citations

Abstract

The notion of ๐›ผ-equivalence between ๐œ†-terms is commonly used to identify terms that are considered equal. However, due to the primitive treatment of free variables, this notion falls short when comparing subterms occurring within a larger context. Depending on the usage of the Barendregt convention (choosing different variable names for all involved binders), it will equate either too few or too many subterms. We introduce a formal notion of context-sensitive ๐›ผ-equivalence, where two open terms can be compared within a context that resolves their free variables. We show that this equivalence coincides exactly with the notion of bisimulation equivalence. Furthermore, we present an efficient ๐‘‚ (๐‘› log ๐‘›) runtime hashing scheme that identifies ๐œ†-terms modulo context-sensitive ๐›ผ-equivalence, generalizing over traditional bisimulation partitioning algorithms and improving upon a previously established ๐‘‚ (๐‘› log 2 ๐‘›) bound for a hashing modulo ordinary ๐›ผ-equivalence by Maziarz et al [20]. Hashing ๐œ†-terms is useful in many applications that require common subterm elimination and structure sharing. We have employed the algorithm to obtain a large-scale, densely packed, interconnected graph of mathematical knowledge from the Coq proof assistant for machine learning purposes.

CCS Concepts: โ€ข Software and its engineering โ†’ Compilers; โ€ข Theory of computation โ†’ Lambda calculus; Design and analysis of algorithms.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 10fcbe3e-dbba-4274-af3b-03c8de57a3da

Cited by top-tier papers1

Ask how each one uses it

Builds on2

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines