Totality for Mixed Inductive and Coinductive Types

This paper introduces an ML / Haskell like programming language with nested inductive and coinductive algebraic datatypes called \chariot. Functions are defined by arbitrary recursive definitions and can thus lead to non-termination and other ``bad'' behavior. \chariot comes with a totality checker that tags possibly ill-behaved definitions. Such a totality checker is mandatory in the context of proof assistants based on type theory like Agda. Proving correctness of this checker is far from trivial and relies on - an interpretation of types as parity games, - an interpretation of correct values as winning strategies for those games, - the Lee, Jones and Ben Amram's size-change principle, used to check that the strategies induced by recursive definitions are winning. This paper develops the first two points, the last step being the subject of an upcoming paper. A prototype has been implemented and can be used to experiment with the resulting totality checker, giving a practical argument in favor of this principle.

Authors

Institutions

Publication Details

Journal
Logical Methods in Computer Science
Published
2025-09-03
DOI
https://doi.org/10.46298/lmcs-21(3:19)2025
Primary Topic
Advanced Algebra and Logic
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Totality for Mixed Inductive and Coinductive Types

Pierre Hyvernat
Logical Methods in Computer Science
Advanced Algebra and Logic
article

Totality for Mixed Inductive and Coinductive Types

Pierre Hyvernat
article en

Abstract

This paper introduces an ML / Haskell like programming language with nested inductive and coinductive algebraic datatypes called \chariot. Functions are defined by arbitrary recursive definitions and can thus lead to non-termination and other ``bad'' behavior. \chariot comes with a totality checker that tags possibly ill-behaved definitions. Such a totality checker is mandatory in the context of proof assistants based on type theory like Agda. Proving correctness of this checker is far from trivial and relies on - an interpretation of types as parity games, - an interpretation of correct values as winning strategies for those games, - the Lee, Jones and Ben Amram's size-change principle, used to check that the strategies induced by recursive definitions are winning. This paper develops the first two points, the last step being the subject of an upcoming paper. A prototype has been implemented and can be used to experiment with the resulting totality checker, giving a practical argument in favor of this principle.

Logical Methods in Computer ScienceVol. Volume 21, Issue 3
Centre National de la Recherche Scientifique (FR), Laboratoire d’Analyse et de Mathématiques Appliquées (FR), Université Savoie Mont Blanc (FR)
Agence Nationale de la Recherche
Openalex Percentile: Top 75%
Advanced Algebra and Logic
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Totality for Mixed Inductive and Coinductive Types — Pierre Hyvernat · Logical Methods in Computer Science (2025) | TGRS Research Map | TGRS