Back to Search
Start Over
A relational logic for higher-order programs.
- Source :
-
Journal of Functional Programming . 2019, Vol. 29, p1-83. 83p. - Publication Year :
- 2019
-
Abstract
- Relational program verification is a variant of program verification where one can reason about two programs and as a special case about two executions of a single program on different inputs. Relational program verification can be used for reasoning about a broad range of properties, including equivalence and refinement, and specialized notions such as continuity, information flow security, or relative cost. In a higher-order setting, relational program verification can be achieved using relational refinement type systems, a form of refinement types where assertions have a relational interpretation. Relational refinement type systems excel at relating structurally equivalent terms but provide limited support for relating terms with very different structures. We present a logic, called relational higher-order logic (RHOL), for proving relational properties of a simply typed λ-calculus with inductive types and recursive definitions. RHOL retains the type-directed flavor of relational refinement type systems but achieves greater expressivity through rules which simultaneously reason about the two terms as well as rules which only contemplate one of the two terms. We show that RHOL has strong foundations, by proving an equivalence with higher-order logic, and leverage this equivalence to derive key meta-theoretical properties: subject reduction, admissibility of a transitivity rule, and set-theoretical soundness. Moreover, we define sound embeddings for several existing relational type systems such as relational refinement types and type systems for dependency analysis and relative cost, and we verify examples that were out of reach of prior work. [ABSTRACT FROM AUTHOR]
Details
- Language :
- English
- ISSN :
- 09567968
- Volume :
- 29
- Database :
- Academic Search Index
- Journal :
- Journal of Functional Programming
- Publication Type :
- Academic Journal
- Accession number :
- 144805750
- Full Text :
- https://doi.org/10.1017/S0956796819000145