by Max Willsey on Oct 1, 2026

Equality saturation is a program optimization technique built around storing and rewriting large equivalence classes of programs in a data structure called an e-graph. It was invented by Tate et al. in POPL 2009. Our paper at POPL 2021, “egg: Fast and Extensible Equality Saturation”, generated a lot of interest in the technique and its applications. That same year, I wrote a post on this topic for this very blog!

Since then, a lot has happened! egg itself has been used directly in a variety of industrial and academic applications. More importantly, it has been superseded by other works that have developed more useful or efficient approaches to equality saturation, some of which I will highlight in this post. At venues like PLDI, POPL, and OOPSLA we have seen a growing number of works either working on or using equality saturation in some form.