Lune

摘要

Rewriting is a principled term transformation technique with uses across theorem proving and compilation. In theorem proving, each rewrite is a proof step; in compilation, rewrites optimize a program term. While developing rewrite sequences manually is possible, this process does not scale to larger rewrite sequences. Automated rewriting techniques, like greedy simplification or equality saturation, work well without requiring human input. Yet, they do not scale to large search spaces, limiting the complexity of tasks where automated rewriting is effective, and meaning that just a small increase in term size or rewrite length may result in failure.

This paper proposes a semi-automatic rewriting technique as a means to scale rewriting by allowing human insight at key decision points. Specifically, we propose guided equality saturation that embraces human guidance when fully automated equality saturation does not scale. The rewriting is split into two simpler automatic equality saturation steps: from the original term to a human-provided intermediate guide, and from the guide to the target. Complex rewriting tasks may require multiple guides, resulting in a sequence of equality saturation steps. A guide can be a complete term, or a sketch containing undefined elements that are instantiated by the equality saturation search. Such sketches may be far more concise than complete terms.

We demonstrate the generality and effectiveness of guided equality saturation using two case studies. First, we integrate guided equality saturation in the Lean 4 proof assistant. Proofs are written in the style of textbook proof sketches, as a series of calculations omitting details and skipping steps. These proofs conclude in less than a second instead of minutes when compared to unguided equality saturation, and can find complex proofs that previously had to be done manually. Second, in the compiler of the RISE array language, where unguided equality saturation fails to perform optimizations within an hour and using 60 GB of memory, guided equality saturation performs the same optimizations with at most 3 guides, within seconds using less than 1 GB memory.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • PolyJuice: Detecting Mis-compilation Bugs in Tensor Compilers with Equality Saturation Based Rewriting 引用了 Ansor: Generating High-Performance Tensor Programs for Deep Learning
  • PolyJuice: Detecting Mis-compilation Bugs in Tensor Compilers with Equality Saturation Based Rewriting 引用了 Vectorization for digital signal processors via 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
  • Improving Equality Saturation for EDA via Semantic E-Graphs 引用了 Slotted E-Graphs: First-Class Support for (Bound) Variables in E-Graphs
  • Improving Equality Saturation for EDA via Semantic E-Graphs 引用了 Vectorization for digital signal processors via equality saturation
  • Towards Pen-and-Paper-Style Equational Reasoning in Interactive Theorem Provers by Equality Saturation 引用了 egg: Fast and extensible equality saturation
  • Towards Pen-and-Paper-Style Equational Reasoning in Interactive Theorem Provers by Equality Saturation 引用了 Slotted E-Graphs: First-Class Support for (Bound) Variables in E-Graphs
  • Exo 2: Growing a Scheduling Language 引用了 Ansor: Generating High-Performance Tensor Programs for Deep Learning
  • Exo 2: Growing a Scheduling Language 引用了 egg: Fast and extensible equality saturation
  • egg: Fast and extensible equality saturation 引用了 Synthesizing structured CAD models with equality saturation and inverse transformations
  • egg: Fast and extensible equality saturation 引用了 Semantic code search via equational reasoning
  • Slotted E-Graphs: First-Class Support for (Bound) Variables in E-Graphs 引用了 Synthesizing structured CAD models with equality saturation and inverse transformations
  • Slotted E-Graphs: First-Class Support for (Bound) Variables in E-Graphs 引用了 egg: Fast and extensible equality saturation
  • Vectorization for digital signal processors via equality saturation 引用了 Synthesizing structured CAD models with equality saturation and inverse transformations
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper5

  1. PolyJuice: Detecting Mis-compilation Bugs in Tensor Compilers with Equality Saturation Based RewritingChijin Zhou, Bingzhou Qian, Gwihwan Go, Quan Zhang 等OOPSLA 2024 · 7 次引用
  2. Exo 2: Growing a Scheduling LanguageYuka Ikarashi, Kevin Qian, Samir Droubi, Alex Reinking 等ASPLOS 2025 · 7 次引用
  3. Towards Pen-and-Paper-Style Equational Reasoning in Interactive Theorem Provers by Equality SaturationMarcus Rossel, Rudi Schneider, Thomas Koehler, Michel Steuwer 等POPL 2026 · 2 次引用
  4. Slotted E-Graphs: First-Class Support for (Bound) Variables in E-GraphsRudi Schneider, Marcus Rossel, Amir Shaikhha, Andrés Goens 等PLDI 2025 · 1 次引用
  5. Improving Equality Saturation for EDA via Semantic E-GraphsSijie Kong, Jingtao Xia, Daniel Ruelas-Petrisko, Zachary D. Sisco 等PLDI 2026

它引用的 Paper9

  1. Ansor: Generating High-Performance Tensor Programs for Deep LearningLianmin Zheng, Chengfan Jia, Minmin Sun, Zhao Wu 等OSDI 2020 · 551 次引用
  2. egg: Fast and extensible equality saturationMax Willsey, Chandrakana Nandi, Yisu Remy Wang, Oliver Flatt 等POPL 2021 · 170 次引用
  3. Synthesizing structured CAD models with equality saturation and inverse transformationsChandrakana Nandi, Max Willsey, Adam Anderson, James R. Wilcox 等PLDI 2020 · 65 次引用
  4. Vectorization for digital signal processors via equality saturationAlexa VanHattum, Rachit Nigam, Vincent T. Lee, James Bornholt 等ASPLOS 2021 · 57 次引用
  5. Semantic code search via equational reasoningVarot Premtoon, James Koppel, Armando Solar-LezamaPLDI 2020 · 49 次引用

相关 Paper

  1. Rewrite rule inference using equality saturationChandrakana Nandi, Max Willsey, Amy Zhu, Yisu Remy Wang 等OOPSLA 2021 · 35 次引用
  2. Equality Saturation Theory Exploration à la CarteAnjali Pal, Brett Saiki, Ryan Tjoa, Cynthia Richey 等OOPSLA 2023 · 11 次引用
  3. A Multi-width Parametric Bitvector Equivalence SolverLuigi Rinaldi, John Wickerson, Samuel CowardCAV 2026
  4. Optimism in Equality SaturationRussel Arbore, Alvin Cheung, Max WillseyPLDI 2026
  5. The taming of the rew: a type theory with computational assumptionsJesper Cockx, Nicolas Tabareau, Théo WinterhalterPOPL 2021 · 24 次引用
黄昏的海面,两侧是细线勾勒的悬崖