Equivalence Hypergraphs: DPO Rewriting for Monoidal E-Graphs

Research output: Chapter in Book/Report/Conference proceedingConference contribution

5 Downloads (Pure)

Abstract

The technique of equality saturation, which equips graphs with an equivalence relation, has proven effective for program optimisation. We give a categorical semantics to these structures, called e-graphs, in terms of Cartesian categories enriched over the category of semilattices. This approach generalises to monoidal categories, which opens the door to new applications of e-graph techniques, from algebraic to monoidal theories. Finally, we present a sound and complete combinatorial representation of morphisms in such a category, based on a generalisation of hypergraphs which we call e-hypergraphs. They have the usual advantage that many of their structural equations are absorbed into a general notion of isomorphism. This new principled approach to e-graphs enables double-pushout (DPO) rewriting for these structures, which constitutes the main contribution of this paper.
Original languageEnglish
Title of host publication2025 40th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS)
PublisherIEEE
Pages209-222
Number of pages14
ISBN (Electronic)9798331579012
ISBN (Print)9798331579005 (PoD)
DOIs
Publication statusPublished - 9 Oct 2025
Event2025 40th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS) - Singapore, Singapore
Duration: 23 Jun 202526 Jun 2025

Publication series

NameAnnual Symposium on Logic in Computer Science
PublisherIEEE
ISSN (Print)1043-6871
ISSN (Electronic)2575-5528

Conference

Conference2025 40th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS)
Period23/06/2526/06/25

Keywords

  • Computer science
  • Translation
  • Semantics
  • Mathematical models
  • Logic
  • Category Theory
  • String Diagrams
  • monoidal categories
  • Optimization
  • equality saturation

Fingerprint

Dive into the research topics of 'Equivalence Hypergraphs: DPO Rewriting for Monoidal E-Graphs'. Together they form a unique fingerprint.

Cite this