Lune

PLDI2026Top-tier venue

Versioned E-Graphs

Jahrim Gabriele Cesario, George Zakhour, Pascal Weisenburger, Guido Salvaneschi

2026Year

Abstract

E-Graphs are an efficient encoding for discovering and maintaining sets of equalities, commonly adopted in the context of formal proofs, program analysis, and optimization. In several scenarios, equalities may hold only conditionally, i.e., under certain assumptions. For example, in automated provers the proof is often split into multiple branches, such that each branch considers a different set of equalities. A limitation of traditional e-graphs is that they can only encode a single set of equalities at a time. Conditional equalities are then handled by maintaining multiple e-graphs, e.g., one for each branch in the proof, which is inefficient as equalities shared among branches are simply replicated many times. In this paper, we introduce versioned e-graphs, which efficiently encode multiple equivalence sets at the same time, maximizing shared information among them. We formalize for versioned e-graphs and prove their correctness. We evaluate our solution against widely-adopted solutions which maintain multiple e-graphs and show that versioned e-graphs are up to 5 − 30 % more memory efficient and up to 4 × faster depending on the case study, especially when solution spaces are large both in explored program terms and number of branches.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext f92b0ca6-9337-4bda-a3e4-3dd9f6a52477

Builds on10

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines