Lune

PLDI2025顶会

Slotted E-Graphs: First-Class Support for (Bound) Variables in E-Graphs

Rudi Schneider, Marcus Rossel, Amir Shaikhha, Andrés Goens, Thomas Koehler, Michel Steuwer

摘要

Equality saturation has gained significant interest as a powerful optimization and reasoning technique. At its heart is the e-graph data structure, that space-efficiently represents equal sub-terms uniquely. An important open problem in this context is extending this efficient representation to languages featuring (bound) variables. Independent of how we represent variables in e-graphs, either as names or nameless (using de Bruijn indices), sharing is broken as sub-terms that differ only in the names of their variables are represented separately. This results in aggressive e-graph growth, bad performance, as well as reduced expressiveness. In this paper, we present a novel approach to representing bound variables in e-graphs by making them a first-class built-in feature of the data structure. Our slotted e-graph represents terms that differ only by (bound or free) variable names uniquely. To do so, e-classes that represent equivalent terms via e-nodes are parameterized by slots , abstracting over free variables of the represented terms. Referring to an e-class from an e-node now requires relating the variables from its context to the slots of the e-class. Our evaluation of slotted e-graph uses two case studies from compiler optimization and theorem proving to show that performing equality saturation for languages with bound variables is greatly simplified and that we can solve practically relevant problems that cannot be solved with e-graphs using de Bruijn indices.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Optimizing Tensor Programs on Flexible Storage 引用了 Functional collection programming with semi-ring dictionaries
  • Optimizing Tensor Programs on Flexible Storage 引用了 egg: Fast and extensible equality saturation
  • babble: Learning Better Abstractions with E-Graphs and Anti-unification 引用了 Synthesizing structured CAD models with equality saturation and inverse transformations
  • babble: Learning Better Abstractions with E-Graphs and Anti-unification 引用了 egg: Fast and extensible equality saturation
  • Improving Equality Saturation for EDA via Semantic E-Graphs 引用了 Synthesizing structured CAD models with equality saturation and inverse transformations
  • Improving Equality Saturation for EDA via Semantic E-Graphs 引用了 egg: Fast and extensible equality saturation
  • Towards Pen-and-Paper-Style Equational Reasoning in Interactive Theorem Provers by Equality Saturation 引用了 egg: Fast and extensible equality saturation
  • Metamorphic Testing for Infrastructure-as-Code Engines 引用了 babble: Learning Better Abstractions with E-Graphs and Anti-unification
  • Metamorphic Testing for Infrastructure-as-Code Engines 引用了 Synthesizing structured CAD models with equality saturation and inverse transformations
  • Metamorphic Testing for Infrastructure-as-Code Engines 引用了 egg: Fast and extensible equality saturation
  • First-Class Refinement Types for Scala 引用了 egg: Fast and extensible equality saturation
  • egg: Fast and extensible equality saturation 引用了 Synthesizing structured CAD models with equality saturation and inverse transformations
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  1. Towards Pen-and-Paper-Style Equational Reasoning in Interactive Theorem Provers by Equality SaturationMarcus Rossel, Rudi Schneider, Thomas Koehler, Michel Steuwer 等POPL 2026 · 2 次引用
  2. Improving Equality Saturation for EDA via Semantic E-GraphsSijie Kong, Jingtao Xia, Daniel Ruelas-Petrisko, Zachary D. Sisco 等PLDI 2026
  3. Metamorphic Testing for Infrastructure-as-Code EnginesDavid Spielmann, George Zakhour, Dominik Arnold, Matteo Biagiola 等OOPSLA 2026
  4. First-Class Refinement Types for ScalaMatt Bovel, Viktor Kunčak, Martin OderskyOOPSLA 2026

它引用的 Paper10

  1. egg: Fast and extensible equality saturationMax Willsey, Chandrakana Nandi, Yisu Remy Wang, Oliver Flatt 等POPL 2021 · 170 次引用
  2. Synthesizing structured CAD models with equality saturation and inverse transformationsChandrakana Nandi, Max Willsey, Adam Anderson, James R. Wilcox 等PLDI 2020 · 65 次引用
  3. babble: Learning Better Abstractions with E-Graphs and Anti-unificationDavid Cao, Rose Kunkel, Chandrakana Nandi, Max Willsey 等POPL 2023 · 38 次引用
  4. Functional collection programming with semi-ring dictionariesAmir Shaikhha, Mathieu Huot, Jaclyn Smith, Dan OlteanuOOPSLA 2022 · 31 次引用
  5. Optimizing Tensor Programs on Flexible StorageMaximilian Schleich, Amir Shaikhha, Dan SuciuSIGMOD 2023 · 21 次引用

相关 Paper

  1. Fast and Optimal Extraction for Sparse Equality GraphsAmir Kafshdar Goharshady, Chun Kit Lam, Lionel ParreauxOOPSLA 2024 · 11 次引用
  2. Dis/Equality GraphsGeorge Zakhour, Pascal Weisenburger, Jahrim Gabriele Cesario, Guido SalvaneschiPOPL 2025 · 3 次引用
  3. Equivalence Hypergraphs: DPO Rewriting for Monoidal E-GraphsAleksei Tiurin, Chris Barrett, Dan R. Ghica, Nick HuLICS 2025
  4. Versioned E-GraphsJahrim Gabriele Cesario, George Zakhour, Pascal Weisenburger, Guido SalvaneschiPLDI 2026
  5. Optimism in Equality SaturationRussel Arbore, Alvin Cheung, Max WillseyPLDI 2026
黄昏的海面,两侧是细线勾勒的悬崖