English

Modelling Recursion and Probabilistic Choice in Guarded Type Theory

Programming Languages 2024-10-25 v2 Logic in Computer Science

Abstract

Constructive type theory combines logic and programming in one language. This is useful both for reasoning about programs written in type theory, as well as for reasoning about other programming languages inside type theory. It is well-known that it is challenging to extend these applications to languages with recursion and computational effects such as probabilistic choice, because these features are not easily represented in constructive type theory. We show how to define and reason about a programming language with probabilistic choice and recursive types, in guarded type theory. We use higher inductive types to represent finite distributions and guarded recursion to model recursion. We define both operational and denotational semantics, as well as a relation between the two. The relation can be used to prove adequacy, but we also show how to use it to reason about programs up to contextual equivalence.

Keywords

Cite

@article{arxiv.2408.04455,
  title  = {Modelling Recursion and Probabilistic Choice in Guarded Type Theory},
  author = {Philipp Jan Andries Stassen and Rasmus Ejlers Møgelberg and Maaike Zwart and Alejandro Aguirre and Lars Birkedal},
  journal= {arXiv preprint arXiv:2408.04455},
  year   = {2024}
}

Comments

61 pages

R2 v1 2026-06-28T18:07:42.233Z