Semantic foundations of equality saturation

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Suciu, Dan, Wang, Yisu Remy, Zhang, Yihong
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910773516697600
author Suciu, Dan
Wang, Yisu Remy
Zhang, Yihong
author_facet Suciu, Dan
Wang, Yisu Remy
Zhang, Yihong
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2501_02413
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Semantic foundations of equality saturation
Suciu, Dan
Wang, Yisu Remy
Zhang, Yihong
Programming Languages
Databases
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.
title Semantic foundations of equality saturation
topic Programming Languages
Databases
url https://arxiv.org/abs/2501.02413