Multi-clocked Guarded Recursion Beyond ω
Rasmus Ejlers Møgelberg
TL;DR
The paper addresses the challenge of relating guarded, multi-clocked recursive constructions to conventional set-theoretic semantics. It extends extensional presheaf models to higher ordinals, enabling encodings of coinductive types beyond W-types and allowing existential predicates to be interpreted in Set. It provides semantic and syntactic conditions for when functors (notably those arising from algebraic theories like finite powersets and finite distributions) commute with clock quantification and for when existential quantification can interchange with clock quantification. The results yield conservativity over Set and demonstrate that Clocked Type Theory results can be interpreted semantically in a set-theoretic framework, with implications for formalizing probabilistic and nondeterministic languages in proof assistants beyond cubical type theory.
Abstract
Type theories with multi-clocked guarded recursion provide a flexible framework for programming with coinductive types encoding productivity in types. Combining this with solutions to general guarded domain equations one can also construct relatively simple denotational models of programming languages with advanced features. These constructions have previously been explored in the setting of extensional type theory through a presheaf model, which proves correctness of encodings of W-types. That model has been adapted to presheaves of cubical sets (functors into the category of cubical sets), where the model verifies correctness of encodings also of coinductive types whose definitions involve quotient inductive types such as finite powersets or finite distributions. Likewise the cubical model also verifies correctness of coinductive predicates defined using existential quantification and allows the results to be related to the global world of cubical sets. This paper looks at how to extend the extensional presheaf model of multi-clocked guarded recursion to higher ordinals, so that correctness of encodings of coinductive types can be extended from W-types to those involving finite powersets and finite distributions, as well as coinductive predicates involving existential quantification. This extension will allow results previously proved in Clocked Cubical Type Theory to be interpreted in a model based on set-theory, proving the correctness of these results as understood in their usual set theoretic interpretation.
