Software Testing and Debugging Techniques Peer reviewed

egg: Fast and Extensible Equality Saturation

Max Willsey, Chandrakana Nandi, Yisu Remy Wang, Oliver Flatt and 2 more

Communications of the ACM | Jul 29, 2026 | 133 citations

Abstract

Abstract

E-graphs, originally developed for use in automated theorem provers, are data structures that compactly represent a large number of expressions and the equalities between them. Recently, a technique called equality saturation adapted e-graphs for program optimization. Equality saturation can ameliorate issues with traditional, destructive term rewriting since e-graph rewriting only adds information to the e-graph. After rewriting, the e-graph represents a large space of equivalent terms (including the original term), and a final extraction procedure selects the best term according to a user-provided cost function. The egg library is a fast and flexible open-source implementation of e-graphs and equality saturation. Unlike solvers, egg is a white-box library for programmatic use. Users can easily define their own languages, rewrites, and analyses, and they can inspect and manipulate the e-graph directly. It incorporates novel techniques such as e-class analysis , a mechanism for integrating program analyses modulo equality; and rebuilding , a deferred invariant restoration algorithm. egg has been used in hundreds of academic and industrial projects for program optimization, synthesis, and verification in many domains; some are briefly highlighted in this article.

Direct answer

What can I do from this paper page?

Use this page to scan "egg: Fast and Extensible Equality Saturation" quickly: start with the summary and abstract, then check the authors, source, topics, and related papers. From here, open Scollr to follow Software Testing and Debugging Techniques research, save the paper, or map adjacent work.

Authors

Researchers on this paper

Max Willsey

first | University of Washington | ORCID 0000-0001-8066-4218

Chandrakana Nandi

middle | University of Washington | ORCID 0000-0001-8633-8413

Yisu Remy Wang

middle | University of California, Los Angeles | ORCID 0000-0002-6887-9395

Oliver Flatt

middle | University of Washington | ORCID 0000-0002-0656-235X

Zachary Tatlock

middle | University of Washington | ORCID 0000-0002-4731-0124

Pavel Panchekha

last | University of Utah | ORCID 0000-0003-2621-3592

Research areas

Follow related topics

Citation

BibTeX

@article{Willsey2026Fast,
  title = {egg: Fast and Extensible Equality Saturation},
  author = {Max Willsey and Chandrakana Nandi and Yisu Remy Wang and Oliver Flatt and Zachary Tatlock and Pavel Panchekha},
  journal = {Communications of the ACM},
  year = {2026},
  doi = {10.1145/3815481},
  url = {https://doi.org/10.1145/3815481}
}

FAQ

Using this paper in a discovery workflow

How do I find related work for this paper?

Use the related papers and topic links on this page as starting points. In Scollr, you can also open the paper and build a literature map around its references, citing papers, and related work.

How can I keep up with new Software Testing and Debugging Techniques research papers?

Follow Software Testing and Debugging Techniques research in Scollr. New papers from the topic flow into a personalized feed, and you can save useful studies to revisit later.

Can I cite this paper from this page?

This page includes a static BibTeX block for egg: Fast and Extensible Equality Saturation. Always verify the DOI, source, and publication details against the publisher record before submitting a manuscript.

Follow this research in Scollr

Follow the topics and authors behind this paper, save useful studies, and build a literature map when you are ready to go deeper.

Get the app