FORTissimo: Automating the First-Order Theory of Rewriting
FORTissimo: Automating the First-Order Theory of Rewriting
Disciplines
Computer Sciences (80%); Mathematics (20%)
Keywords
-
Term Rewriting,
First-Order Theory,
Automata Theory,
Automation,
Formalization,
Certification
Term rewriting is an abstract model of computation in which one can formally reason about computer programs written in a declarative programming language, for instance to infer that a program always computes a result (termination) or that different executions of the program yield the same result (confluence). To achieve this, a program is translated into a rewrite system that basically consists of rules for replacing expressions by equivalent but often simpler expressions. In this project we consider a syntactically restricted class of rewrite systems in which every property that can be expressed in the first-order theory of rewriting (first-order logic with rewrite relations as predicate symbols) is decidable. This includes properties like termination and confluence. The decision procedure was developed in the late 1980s and uses tree automata that operate on terms. A first implementation of the decision procedure was recently conducted by Franziska Rapp during her master thesis. The resulting tool FORT (First-Order Rewriting Tool) is equipped with a convenient synthesis mode to generate rewrite systems that satisfy a given property. Like any complex piece of software, FORT is likely to contain bugs. Formally proving its correctness is not an option because such a proof, if at all possible, is of limited value as FORT will further develop. Instead, to improve trust in FORT, one aim of this project is the certification of the output of FORT. This involves reproving the correctness of the tree automata constructions used in the decision procedure in an interactive proof assistant, resulting in a formalized tree automata library. Furthermore, suitable certificates have to be developed that can be produced by FORT and checked by the certifier that is obtained from the library via code generation. A second aim of the project is to improve the performance of FORT by adopting and developing state-of-the-art tree automata techniques. Parallel programming techniques will result in a further efficiency gain. Moreover, there are many different ways to transform a given formula into tree automata operation, all producing the same result but with a great variation in computation time and space. Techniques to find an efficient transformation will also be investigated. A final aim of the project is to improve the expressiveness of FORT by adding new features like support for properties that refer to two or more rewrite systems or the generation of witnesses. A better understanding of the limitations of FORT is also on the agenda. The expected outcome of the project is a highly efficient and trustworthy tool for the first-order theory of rewriting, ideally suited for educational purposes. Moreover, a comprehensive formalized tree automata library will be available for other developments.
FORTissimo: Automating the First-Order Theory of Rewriting Term rewriting is an abstract model of computation in which one can formally reason about computer programs written in a declarative programming language, for instance to infer that a program always computes a result (termination) or that different executions of the program yield the same result (confluence). To achieve this, a program is translated into a rewrite system that basically consists of rules for replacing expressions by equivalent but often simpler expressions. In this project we considered a syntactically restricted class of rewrite systems in which every property that can be expressed in the first-order theory of rewriting (first-order logic with rewrite relations as predicate symbols) is decidable. This includes properties like termination and confluence. The decision procedure was developed in the late 1980s and uses tree automata that operate on terms. An implementation of the decision procedure in the software tool FORT was the starting point of the project. Three new tools (FORT-h, FORT-s, FORTify) have been developed in the course of this project. These can be downloaded from the project website, where also a convenient web interface can be found. Like any complex piece of software, FORT is likely to contain bugs. To improve trust in FORT, we formalised a new variant of the underlying decision procedure in the proof assistant Isabelle. Compared to the original decision procedure, the new variant supports a richer language (e.g. properties involving multiple rewrite systems can be formulated) and handles a larger class of rewrite systems. We developed a formal language in which the key steps performed by the decision procedure can be expressed naturally. A new incarnation of FORT in Haskell, FORT-h, outputs certificates in this language. These certificates are checked for correctness by FORTify, a new and trustworthy program that is obtained from the Isabelle formalisation.
- Universität Innsbruck - 100%
- Irene Durand, Université Bordeaux I - France
- Mizuhito Ogawa, Japan Advanced Institute of Science and Technology - Japan
- Richard Mayr, University of Edinburgh - United Kingdom
Research Output
- 27 Citations
- 14 Publications
- 1 Datasets & models
- 1 Scientific Awards
- 1 Fundings
-
2021
Title A verified decision procedure for the first-order theory of rewriting for linear variable-separated rewrite systems DOI 10.1145/3437992.3439918 Type Conference Proceeding Abstract Author Lochmann A Pages 250-263 Link Publication -
2021
Title Certifying Proofs in the First-Order Theory of Rewriting DOI 10.1007/978-3-030-72013-1_7 Type Book Chapter Author Mitterwallner F Publisher Springer Nature Pages 127-144 -
2021
Title Formalized Signature Extension Results for Confluence, Commutation and Unique Normal Forms Type Conference Proceeding Abstract Author Lochmann A Conference 10th International Workshop on Confluence (IWC 2021) Pages 127 - 144 Link Publication -
2022
Title Formalized Signature Extension Results for Equivalence Type Conference Proceeding Abstract Author Lochmann A Conference 11th International Workshop on Confluence (IWC 2022) Pages 42 - 47 Link Publication -
2022
Title First-Order Theory of Rewriting Type Journal Article Author Felgenhauer B Journal Archive of Formal Proofs Link Publication -
2022
Title Reducing Rewrite Properties to Properties on Ground Terms Type Journal Article Author Lochmann A Journal Archive of Formal Proofs Link Publication -
2023
Title First-Order Theory of Rewriting for Linear Variable-Separated Rewrite Systems: Automation, Formalization, Certification DOI 10.1007/s10817-023-09661-7 Type Journal Article Author Middeldorp A Journal Journal of Automated Reasoning Pages 14 Link Publication -
2020
Title Formalized Proofs of the Infinity and Normal Form Predicates in the First-Order Theory of Rewriting DOI 10.1007/978-3-030-45237-7_11 Type Book Chapter Author Lochmann A Publisher Springer Nature Pages 178-194 -
2019
Title On optimal and near-optimal shapes of external shading of windows in apartment buildings DOI 10.1371/journal.pone.0212710 Type Journal Article Author Stevanovic S Journal PLOS ONE Link Publication -
2019
Title A verified ground confluence tool for linear variable-separated rewrite systems in Isabelle/HOL DOI 10.1145/3293880.3294098 Type Conference Proceeding Abstract Author Felgenhauer B Pages 132-143 Link Publication -
2018
Title Minsky Machines Type Journal Article Author Felgenhauer B Journal Archive of Formal Proofs Link Publication -
2018
Title Towards a Verified Decision Procedure for Confluence of Ground Term Rewrite Systems in Isabelle/HOL Type Conference Proceeding Abstract Author Felgenhauer B Conference 7th International Workshop on Confluence (IWC 2018) Pages 46 - 50 Link Publication -
2018
Title FORT 2.0 DOI 10.1007/978-3-319-94205-6_6 Type Book Chapter Author Rapp F Publisher Springer Nature Pages 81-88 -
2018
Title Unknot Recognition Through Quantifier Elimination DOI 10.48550/arxiv.1803.00413 Type Preprint Author Meesum S
-
2019
Title 1st place at International Confluence Competition Type Medal Level of Recognition Continental/International
-
2022
Title International Joint Project Type Research grant (including intramural programme) Start of Funding 2022 Funder Austrian Science Fund (FWF)