The Size-Change Principle for Mixed Inductive and Coinductive types - Archive ouverte HAL Accéder directement au contenu
Pré-Publication, Document De Travail Année : 2022

The Size-Change Principle for Mixed Inductive and Coinductive types

Pierre Hyvernat

Résumé

This paper shows how to use Lee, Jones and Ben Amram's size-change principle to check correctness of arbitrary recursive definitions in an ML / Haskell like programming language with inductive and coinductive types. The size-change principle is used to check both termination and productivity, and the resulting principle is sound even if inductive and coinductive types are arbitrarily nested. A prototype has been implemented and gives a practical argument in favor of this principle. This work relies on a characterization of least and greatest fixed points as sets of winning strategies for parity games that was developed by L. Santocanale in his early work on circular proofs. The proof of correctness of the criterion relies on an extension of the language's denotational semantics to a domain of untyped values with non-deterministic sums.
Fichier principal
Vignette du fichier
chariot.pdf (554.36 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-01989688 , version 1 (22-01-2019)
hal-01989688 , version 2 (21-07-2022)
hal-01989688 , version 3 (13-07-2023)

Identifiants

Citer

Pierre Hyvernat. The Size-Change Principle for Mixed Inductive and Coinductive types. 2022. ⟨hal-01989688v2⟩
68 Consultations
179 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More