Type-Based Complexity Analysis of Probabilistic Functional Programs

被引:16
|
作者
Avanzini, Martin [1 ]
Dal Lago, Ugo [1 ]
Ghyselen, Alexis [2 ,3 ]
机构
[1] INRIA Sophia Antipolis, Valbonne, France
[2] Univ Bologna, Bologna, Italy
[3] Univ Lyon, EnsL, UCBL, CNRS,LIP, Lyon, France
来源
2019 34TH ANNUAL ACM/IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE (LICS) | 2019年
关键词
PROOFS;
D O I
10.1109/lics.2019.8785725
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We show that complexity analysis of probabilistic higher-order functional programs can be carried out compositionally by way of a type system. The introduced type system is a significant extension of refinement types. On the one hand, the presence of probabilistic effects requires adopting a form of dynamic distribution type, subject to a coupling-based subtyping discipline. On the other hand, recursive definitions are proved terminating by way of Lyapunov ranking functions. We prove not only that the obtained type system, called lRPCF, provides a sound methodology for average case complexity analysis, but also that it is extensionally complete, in the sense that any average case polytime Turing machines can be encoded as a term typable in lRPCF.
引用
收藏
页数:13
相关论文
empty
未找到相关数据