Repository logo
Research Outputs
Projects
People
Statistics
  1. Home
  2. HSG CRIS
  3. HSG Publications
  4. Dis/Equality Graphs
Details

Dis/Equality Graphs

Journal
Proceedings of the ACM on Programming Languages
ISSN
2475-1421
Type
journal article
Date Issued
2025-01-07
Author(s)
George Zakhour  
;
Pascal Weisenburger  
;
Jahrim Gabriele Cesario  
;
Guido Salvaneschi  
DOI
10.1145/3704913
Abstract
E-graphs are a data structure to compactly represent a program space and reason about equality of program terms. E-graphs have been successfully applied to a number of domains, including program optimization and automated theorem proving. In many applications, however, it is necessary to reason about disequality of terms as well as equality. While disequality reasoning can be encoded, direct support for disequalities increases performance and simplifies the metatheory.

In this paper, we develop a framework independent of a specific implementation to formally reason about e-graphs. For the first time, we prove the equivalence of e-graphs to the reflexive, symmetric, transitive, and congruent closure of the equivalence relation they are expected to encode. We use these results to present the first formalization of an extension of e-graphs that directly supports disequalities and prove an analytical result about their superior efficiency compared to embedding techniques that are commonly used in SMT solvers and automated verifiers. We further profile an SMT solver and find that it spends a measurable amount of time handling disequalities.

We implement our approach in an extension to egg, a popular e-graph Rust library. We evaluate our solution in an SMT solver and an automated theorem prover using standard benchmarks. The results indicate that direct support for disequalities outperforms other encodings based on equality embedding, confirming the results obtained analytically.
Keywords
CCS Concepts: • Theory of computation → Equational logic and rewriting
Program verification
• Computing methodologies → Theorem proving algorithms Automated Theorem Proving, E-Graphs, Disequalities
Refereed
Yes
Publisher
Association for Computing Machinery (ACM)
Volume
9
Number
POPL
URL
https://www.alexandria.unisg.ch/handle/20.500.14171/124549
File(s)
Thumbnail Image

open.access

Name

2025_Dis-Equality-Graphs.pdf

Size

675.08 KB

Format

Adobe PDF

Checksum (MD5)

a5b57a2aab983eb44e22ff8418dba68e

Support
HSG researchers can find instructions here for adding or importing publications (DOI, ORCID). Please send questions to alexandria@unisg.ch

Built with DSpace-CRIS software - Extension maintained and optimized by 4Science

  • Accessibility settings
  • Privacy policy
  • End User Agreement
  • Send Feedback
Repository logo COAR Notify