English

Probabilistic Termination by Monadic Affine Sized Typing (Long Version)

Programming Languages 2017-01-17 v1 Logic in Computer Science

Abstract

We introduce a system of monadic affine sized types, which substantially generalise usual sized types, and allows this way to capture probabilistic higher-order programs which terminate almost surely. Going beyond plain, strong normalisation without losing soundness turns out to be a hard task, which cannot be accomplished without a richer, quantitative notion of types, but also without imposing some affinity constraints. The proposed type system is powerful enough to type classic examples of probabilistically terminating programs such as random walks. The way typable programs are proved to be almost surely terminating is based on reducibility, but requires a substantial adaptation of the technique.

Keywords

Cite

@article{arxiv.1701.04089,
  title  = {Probabilistic Termination by Monadic Affine Sized Typing (Long Version)},
  author = {Ugo Dal Lago and Charles Grellois},
  journal= {arXiv preprint arXiv:1701.04089},
  year   = {2017}
}

Comments

63 pages. To appear in ESOP 2017

R2 v1 2026-06-22T17:50:39.512Z