paperbot · PL 论文追踪

全部论文 待读 收藏

P1 Versioned E-Graphs

版本化 E-Graph
PLDI 10(PLDI)2026匹配度 5/10 · 该论文提出一种用于等价关系推理的版本化 E-Graph 数据结构,兼具形式化证明与工程实现,属于程序分析与形式验证的基础性 PL 技术,可能作为静态分析/形式化验证的底层基础设施与用户方向间接相关;但论文未涉及 LLM/Agent、浮点程序分析或贝叶斯程序分析,与用户核心问题(PL→AI、AI→PL)没有直接交集。引用 0 inbox
Jahrim Gabriele Cesario, George Zakhour, Pascal Weisenburger, Guido Salvaneschi
crossref: 2026-09-10

AI 速览

一句话:提出版本化 E-Graph,同时编码多个等价集合与共享信息,并证明其正确性,显著提升条件等价场景性能。

E-Graph 能高效表示并维护一组等式,但其一次只能编码单个等价集合,因此条件等式(如自动证明中不同分支下的等式)通常需要为每个分支维护多个 E-Graph,导致共享等式被大量复制。本文提出版本化 E-Graph,在单一结构中同时编码多个等价集合,并最大化版本间的信息共享;作者给出形式化定义并证明正确性。与维护多个 E-Graph 的常用方案相比,版本化 E-Graph 在多个案例中内存效率提升 5–30%,最高加速 4 倍,当被探索的程序项和分支数量很大时优势尤其明显。

问题
传统 E-Graph 一次只能编码一组等式,条件等式需为每个分支维护多个 E-Graph,造成共享等式重复存储和低效。
方法
提出版本化 E-Graph,在单一结构中同时表示多个等价集合,最大化版本间共享,并给出形式化定义与正确性证明。
评估
与维护多个 E-Graph 的常用方案对比,在多个案例中实现最高 5–30% 内存节省和最高 4× 加速,在程序项和分支数很大的搜索空间中收益尤为明显。
原文摘要(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.

链接与引用

DOI 原文 · PDF(开放获取) · DBLP

BibTeX
@article{CesarioZWS26,
  title = {Versioned E-Graphs},
  author = {Jahrim Gabriele Cesario and George Zakhour and Pascal Weisenburger and Guido Salvaneschi},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {10},
  number = {PLDI},
  year = {2026},
  doi = {10.1145/3808249}
}