通过Monadic Affine Sized Typing的概率终止(长版本)
Probabilistic Termination by Monadic Affine Sized Typing (Long Version)
摘要:
我们引入了一个系统的一元仿射大小的类型,这基本上概括了通常的大小类型,并允许这种方式来捕捉概率高阶程序几乎肯定终止。超越普通的、强规范化而不失去可靠性是一项艰巨的任务,如果没有更丰富的、定量的类型概念,而且没有施加一些亲和性约束,这是无法完成的。建议的类型系统是强大的,足以类型的经典例子的概率终止程序,如随机游走。类型化程序被证明几乎必然终止的方法是基于归约的,但需要对该技术进行实质性的修改。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。