English

E-Graphs With Bindings

Logic in Computer Science 2025-05-05 v1 Category Theory

Abstract

Equality saturation, a technique for program optimisation and reasoning, has gained attention due to the resurgence of equality graphs (e-graphs). E-graphs represent equivalence classes of terms under rewrite rules, enabling simultaneous rewriting across a family of terms. However, they struggle in domains like λ\lambda-calculus that involve variable binding, due to a lack of native support for bindings. Building on recent work interpreting e-graphs categorically as morphisms in semilattice-enriched symmetric monoidal categories, we extend this framework to closed symmetric monoidal categories to handle bindings. We provide a concrete combinatorial representation using hierarchical hypergraphs and introduce a corresponding double-pushout (DPO) rewriting mechanism. Finally, we establish the equivalence of term rewriting and DPO rewriting, with the key property that the combinatorial representation absorbs the equations of the symmetric monoidal category.

Keywords

Cite

@article{arxiv.2505.00807,
  title  = {E-Graphs With Bindings},
  author = {Aleksei Tiurin and Dan R. Ghica and Nick Hu},
  journal= {arXiv preprint arXiv:2505.00807},
  year   = {2025}
}

Comments

arXiv admin note: substantial text overlap with arXiv:2406.15882

R2 v1 2026-06-28T23:18:30.370Z