Affiliation:
1. University of Bologna 8 INRIA Sophia Antipolis, Bologna, Italy
2. INRIA Sophia Antipolis
Abstract
We introduce a system of monadic affine sized types, which substantially generalizes usual sized types and allows in this way to capture probabilistic higher-order programs that terminate almost surely. Going beyond plain, strong normalization 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.
Publisher
Association for Computing Machinery (ACM)
Cited by
14 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. On the Almost-Sure Termination of Binary Sessions;Proceedings of the 26th International Symposium on Principles and Practice of Declarative Programming;2024-09-09
2. Monadic Intersection Types, Relationally;Lecture Notes in Computer Science;2024
3. Towards logical foundations for probabilistic computation;Annals of Pure and Applied Logic;2023-07
4. On Lexicographic Proof Rules for Probabilistic Termination;Formal Aspects of Computing;2023-06-23
5. A Gradual Probabilistic Lambda Calculus;Proceedings of the ACM on Programming Languages;2023-04-06