paper-with-me

홈 › Papers

Proving Equivalence Between Complex Expressions Using Graph-to-Sequence Neural Models

2021-06-01 · Steve Kommrusch, Théo Barollet, Louis-Noël Pouchet

We target the problem of provably computing the equivalence between two complex expression trees. To this end, we formalize the problem of equivalence between two such programs as finding a set of semantics-preserving rewrite rules from one into the other, such that after the rewrite the two programs are structurally identical, and therefore trivially equivalent.We then develop a graph-to-sequence neural network system for program equivalence, trained to produce such rewrite sequences from a carefully crafted automatic example generation algorithm. We extensively evaluate our system on a rich multi-type linear algebra expression language, using arbitrary combinations of 100+ graph-rewriting axioms of equivalence. Our machine learning system guarantees correctness for all true negatives, and ensures 0 false positive by design. It outputs via inference a valid proof of equivalence for 93% of the 10,000 equivalent expression pairs isolated for testing, using up to 50-term expressions. In all cases, the validity of the sequence produced and therefore the provable assertion of program equivalence is always computable, in negligible time.

📄 PDF Abstract BibTeX arXiv:2106.02452

Code (0)

등록된 구현이 없습니다.

Tasks

Graph-to-Sequencevalid

Similar Papers 제목 키워드 기반

Learning Axioms to Compute Verifiable Symbolic Expression Equivalence Proofs Using Graph-to-Sequence Networks

2021-01-01 · Steven James Kommrusch, Louis-Noel Pouchet, Theo Barolett

We target the problem of proving the semantic equivalence between two complex expressions represented as typed trees, and demonstrate our system on expressions from a rich multi-type symbolic language for linear algebra.…

Graph-to-Sequence

Abstract Interpretation on E-Graphs

2022-03-17 · Samuel Coward, George A. Constantinides, Theo Drane

Recent e-graph applications have typically considered concrete semantics of expressions, where the notion of equivalence stems from concrete interpretation of expressions. However, equivalences that hold over one interpr…

SoftRegex: Generating Regex from Natural Language Descriptions using Softened Regex Equivalence

2019-11-01 · IJCNLP 2019 11 · Jun-U Park, Sang-Ki Ko, Marco Cognetta, Yo-Sub Han

We continue the study of generating se-mantically correct regular expressions from natural language descriptions (NL). The current state-of-the-art model SemRegex produces regular expressions from NLs by rewarding the re…

Neural-Network Guided Expression Transformation

2019-02-06 · Romain Edelmann, Viktor Kunčak

Optimizing compilers, as well as other translator systems, often work by rewriting expressions according to equivalence preserving rules. Given an input expression and its optimized form, finding the sequence of rules th…

Equivalence of Two Expressions of Principal Line

2023-01-08 · Cheng-Yen Hsu, Hsin-Yi Chen, Jen-Hui Chuang

Geometry-based camera calibration using principal line is more precise and robust than calibration using optimization approaches; therefore, several researches try to re-derive the principal line from different views of …

Camera CalibrationVocal Bursts Valence Prediction