Print Email Facebook Twitter Well-definedness and observational equivalence for inductive-coinductive programs Title Well-definedness and observational equivalence for inductive-coinductive programs Author Basold, Henning (Radboud Universiteit Nijmegen) Hansen, H.H. (TU Delft Energie and Industrie) Date 2019 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. Subject coinductive typesInductive typesobservational equivalenceproductivityterminationtesting logic To reference this document use: http://resolver.tudelft.nl/uuid:d03656f1-6eb9-4d33-b91a-67187f3559c1 DOI https://doi.org/10.1093/logcom/exv091 Embargo date 2020-08-01 ISSN 0955-792X Source Journal of Logic and Computation, 29 (4), 419-468 Part of collection Institutional Repository Document type journal article Rights © 2019 Henning Basold, H.H. Hansen Files PDF 28787.pdf 714.43 KB Close viewer /islandora/object/uuid:d03656f1-6eb9-4d33-b91a-67187f3559c1/datastream/OBJ/view