Well-definedness and observational equivalence for inductive-coinductive programs

Journal Article (2019)
Author(s)

Henning Basold (Radboud Universiteit Nijmegen)

HH Hansen (TU Delft - Energy and Industry)

Research Group
Energy and Industry
Copyright
© 2019 Henning Basold, H.H. Hansen
DOI related publication
https://doi.org/10.1093/logcom/exv091
More Info
expand_more
Publication Year
2019
Language
English
Copyright
© 2019 Henning Basold, H.H. Hansen
Research Group
Energy and Industry
Issue number
4
Volume number
29
Pages (from-to)
419-468
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

Abstract

We define notions of well-definedness and observational equivalence for programs of mixed inductive and coinductive types. These notions are defined by means of tests formulas which combine structural congruence for inductive types and modal logic for coinductive types. Tests also correspond to certain evaluation contexts. We define a program to be well-defined if it is strongly normalizing under all tests, and two programs are observationally equivalent if they satisfy the same tests. We show that observational equivalence is sufficiently coarse to ensure that least and greatest fixed point types are initial algebras and final coalgebras, respectively. This yields inductive and coinductive proof principles for reasoning about program behaviour. On the other hand, we argue that observational equivalence does not identify too many terms, by showing that tests induce a topology that, on streams, coincides with usual topology induced by the prefix metric. As one would expect, observational equivalence is, in general, undecidable, but in order to develop some practically useful heuristics we provide coinductive techniques for establishing observational normalization and observational equivalence, along with up-to techniques for enhancing these methods.

Files

28787.pdf
(pdf | 0.698 Mb)
- Embargo expired in 01-08-2020
License info not available