{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,23]],"date-time":"2026-10-23T20:31:07Z","timestamp":1792787467267,"version":"4.5.0"},"reference-count":32,"publisher":"Association for Computing Machinery (ACM)","issue":"PLDI","license":[{"start":{"date-parts":[[2026,6,8]],"date-time":"2026-06-08T00:00:00Z","timestamp":1780876800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"}],"funder":[{"name":"Swiss National Science Foundation","award":["10001777"],"award-info":[{"award-number":["10001777"]}],"id":[{"id":"https:\/\/ror.org\/00yjd3n13","id-type":"ROR","asserted-by":"crossref"}]},{"name":"European Union\u2019s Horizon Research and Innovation","award":["101189899"],"award-info":[{"award-number":["101189899"]}],"id":[{"id":"https:\/\/ror.org\/001aqnf71","id-type":"ROR","asserted-by":"crossref"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2026,6,8]]},"abstract":"<jats:p>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.<\/jats:p>\n                  <jats:p>\n                    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\n                    <jats:inline-formula>\n                      <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\" display=\"inline\">\n                        <mml:mrow>\n                          <mml:mn>5<\/mml:mn>\n                          <mml:mo>\u2212<\/mml:mo>\n                          <mml:mn>30<\/mml:mn>\n                          <mml:mi>%<\/mml:mi>\n                        <\/mml:mrow>\n                      <\/mml:math>\n                    <\/jats:inline-formula>\n                    more memory efficient and up to\n                    <jats:inline-formula>\n                      <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\" display=\"inline\">\n                        <mml:mrow>\n                          <mml:mn>4<\/mml:mn>\n                          <mml:mo>\u00d7<\/mml:mo>\n                        <\/mml:mrow>\n                      <\/mml:math>\n                    <\/jats:inline-formula>\n                    faster depending on the case study, especially when solution spaces are large both in explored program terms and number of branches.\n                  <\/jats:p>","DOI":"10.1145\/3808249","type":"journal-article","created":{"date-parts":[[2026,6,8]],"date-time":"2026-06-08T18:04:09Z","timestamp":1780941849000},"page":"53-75","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":1,"title":["Versioned E-Graphs"],"prefix":"10.1145","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0009-0000-1448-5676","authenticated-orcid":false,"given":"Jahrim Gabriele","family":"Cesario","sequence":"first","affiliation":[{"name":"University of St. Gallen, St. Gallen, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0000-5042-1207","authenticated-orcid":false,"given":"George","family":"Zakhour","sequence":"additional","affiliation":[{"name":"University of St. Gallen, St. Gallen, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-1288-1485","authenticated-orcid":false,"given":"Pascal","family":"Weisenburger","sequence":"additional","affiliation":[{"name":"University of St. Gallen, St. Gallen, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9324-8894","authenticated-orcid":false,"given":"Guido","family":"Salvaneschi","sequence":"additional","affiliation":[{"name":"University of St. Gallen, St. Gallen, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,6,8]]},"reference":[{"key":"e_1_3_1_2_2","unstructured":"Phil Bagwell. 2001. Ideal Hash Trees. https:\/\/infoscience.epfl.ch\/handle\/20.500.14299\/221731"},{"key":"e_1_3_1_3_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-99524-9_24"},{"key":"e_1_3_1_4_2","unstructured":"Clark Barrett Pascal Fontaine and Cesare Tinelli. 2025. The SMT-LIB Standard:Version 2.7. Technical Report. Department of Computer Science The University of Iowa. Available at https:\/\/www.SMT-LIB.org."},{"key":"e_1_3_1_5_2","doi-asserted-by":"publisher","DOI":"10.1145\/3520308.3534506"},{"key":"e_1_3_1_6_2","doi-asserted-by":"publisher","DOI":"10.1145\/3571207"},{"key":"e_1_3_1_7_2","doi-asserted-by":"publisher","unstructured":"Jahrim Gabriele Cesario George Zakhour Pascal Weisenburger and Guido Salvaneschi. 2026. Artifact for Versioned E-Graphs. doi:10.5281\/zenodo.18769553","DOI":"10.5281\/zenodo.18769553"},{"key":"e_1_3_1_8_2","doi-asserted-by":"publisher","DOI":"10.1145\/1292535.1292541"},{"key":"e_1_3_1_9_2","doi-asserted-by":"publisher","unstructured":"Samuel Coward Theo Drane and George A. Constantinides. 2024. Constraint-Aware E-Graph Rewriting for Hardware Performance Optimization. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems (2024) 14 pages. doi:10.1109\/TCAD.2024.3483096","DOI":"10.1109\/TCAD.2024.3483096"},{"key":"e_1_3_1_10_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-78800-3_24"},{"key":"e_1_3_1_11_2","doi-asserted-by":"publisher","DOI":"10.1145\/364099.364331"},{"key":"e_1_3_1_12_2","doi-asserted-by":"publisher","DOI":"10.1137\/0202024"},{"key":"e_1_3_1_13_2","doi-asserted-by":"publisher","DOI":"10.1145\/512529.512566"},{"key":"e_1_3_1_14_2","doi-asserted-by":"publisher","DOI":"10.5555\/3086916"},{"key":"e_1_3_1_15_2","doi-asserted-by":"publisher","DOI":"10.1145\/3674653"},{"key":"e_1_3_1_16_2","doi-asserted-by":"publisher","DOI":"10.1145\/3385412.3386012"},{"key":"e_1_3_1_17_2","doi-asserted-by":"publisher","DOI":"10.5555\/909447"},{"key":"e_1_3_1_18_2","doi-asserted-by":"publisher","DOI":"10.1145\/3622834"},{"key":"e_1_3_1_19_2","doi-asserted-by":"publisher","DOI":"10.1145\/2813885.2737959"},{"key":"e_1_3_1_20_2","doi-asserted-by":"publisher","unstructured":"Mathias Preiner Hans-J\u00f6rg Schurr Clark Barrett Pascal Fontaine Aina Niemetz and Cesare Tinelli. 2024. SMT-LIB release 2024 (non-incremental benchmarks). doi:10.5281\/ZENODO.11061097","DOI":"10.5281\/ZENODO.11061097"},{"key":"e_1_3_1_21_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-81688-9_6"},{"key":"e_1_3_1_22_2","doi-asserted-by":"publisher","DOI":"10.34727\/2024\/isbn.978-3-85448-065-5_13"},{"key":"e_1_3_1_23_2","doi-asserted-by":"publisher","DOI":"10.1145\/2858949.2784739"},{"key":"e_1_3_1_24_2","doi-asserted-by":"publisher","DOI":"10.1145\/321879.321884"},{"key":"e_1_3_1_25_2","doi-asserted-by":"publisher","DOI":"10.1145\/1480881.1480915"},{"key":"e_1_3_1_26_2","doi-asserted-by":"publisher","DOI":"10.1145\/3445814.3446707"},{"key":"e_1_3_1_27_2","doi-asserted-by":"publisher","DOI":"10.14778\/3407790.3407799"},{"key":"e_1_3_1_28_2","doi-asserted-by":"publisher","DOI":"10.1145\/3434304"},{"key":"e_1_3_1_29_2","unstructured":"Yichen Yang Phitchaya Mangpo Phothilimthana Yisu Remy Wang Max Willsey Sudip Roy and Jacques Pienaar. 2021. Equality Saturation for Tensor Graph Superoptimization. In Proceedings of the Fourth Conference on Machine Learning and Systems MLSys 2021 virtual April 5-9 2021 Alex Smola Alex Dimakis and Ion Stoica (Eds.). mlsys.org. https:\/\/proceedings.mlsys.org\/paper_files\/paper\/2021\/hash\/cc427d934a7f6c0663e5923f49eba531-Abstract.html"},{"key":"e_1_3_1_30_2","first-page":"7","volume-title":"(VeriLang \u201926)","author":"Zakhour George","year":"2026","unstructured":"George Zakhour, Jahrim Gabriele Cesario, Pascal Weisenburger, and Guido Salvaneschi. 2026. Proof Primitives for Equality Saturation-based Automated Provers (VeriLang \u201926). ACM, New York, NY, USA, 7 pages."},{"key":"e_1_3_1_31_2","doi-asserted-by":"publisher","DOI":"10.1145\/3704913"},{"key":"e_1_3_1_32_2","doi-asserted-by":"publisher","DOI":"10.1145\/3591276"},{"key":"e_1_3_1_33_2","doi-asserted-by":"publisher","DOI":"10.1145\/3656408"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3808249","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,22]],"date-time":"2026-09-22T10:42:03Z","timestamp":1790073723000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3808249"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,6,8]]},"references-count":32,"journal-issue":{"issue":"PLDI","published-print":{"date-parts":[[2026,6,8]]}},"alternative-id":["10.1145\/3808249"],"URL":"https:\/\/doi.org\/10.1145\/3808249","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,6,8]]},"assertion":[{"value":"2025-11-14","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-04-03","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-06-08","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}