English

Semantic foundations of equality saturation

Programming Languages 2025-01-07 v1 Databases

Abstract

Equality saturation is an emerging technique for program and query optimization developed in the programming language community. It performs term rewriting over an E-graph, a data structure that compactly represents a program space. Despite its popularity, the theory of equality saturation lags behind the practice. In this paper, we define a fixpoint semantics of equality saturation based on tree automata and uncover deep connections between equality saturation and the chase. We characterize the class of chase sequences that correspond to equality saturation. We study the complexities of terminations of equality saturation in three cases: single-instance, all-term-instance, and all-E-graph-instance. Finally, we define a syntactic criterion based on acyclicity that implies equality saturation termination.

Keywords

Cite

@article{arxiv.2501.02413,
  title  = {Semantic foundations of equality saturation},
  author = {Dan Suciu and Yisu Remy Wang and Yihong Zhang},
  journal= {arXiv preprint arXiv:2501.02413},
  year   = {2025}
}

Comments

To appear at ICDT 2025

R2 v1 2026-06-28T20:56:31.742Z