A Verified Compiler for Probability Density Functions

被引:19
作者
Eberl, Manuel [1 ]
Hoelzl, Johannes [1 ]
Nipkow, Tobias [1 ]
机构
[1] Tech Univ Munich, Fak Informat, D-80290 Munich, Germany
来源
PROGRAMMING LANGUAGES AND SYSTEMS | 2015年 / 9032卷
关键词
Theorem proving - Semantics - Program compilers;
D O I
10.1007/978-3-662-46669-8_4
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Bhat et al. developed an inductive compiler that computes density functions for probability spaces described by programs in a probabilistic functional language. We implement such a compiler for a modified version of this language within the theorem prover Isabelle and give a formal proof of its soundness w.r.t. the semantics of the source and target language. Together with Isabelle's code generation for inductive predicates, this yields a fully verified, executable density compiler. The proof is done in two steps: First, an abstract compiler working with abstract functions modelled directly in the theorem prover's logic is defined and proved sound. Then, this compiler is refined to a concrete version that returns a target-language expression.
引用
收藏
页码:80 / 104
页数:25
相关论文
共 21 条
[1]  
[Anonymous], 2019, LCP ISABELLE 2019
[2]  
[Anonymous], 1972, INDAGATIONES MATHEMA, DOI DOI 10.1016/1385-7258(72)90034-0
[3]  
Audebaud P, 2006, LECT NOTES COMPUT SC, V4014, P49, DOI 10.1007/11783596_6
[4]  
Avigad J., 2014, ABC14057012 CORR
[5]  
Bertot Y., 2004, TEXT THEORET COMP S
[6]  
Bhat S., DERIVING PROBA UNPUB
[7]  
Bhat S, 2013, LECT NOTES COMPUT SC, V7795, P508, DOI 10.1007/978-3-642-36742-7_35
[8]   A Type Theory for Probability Density Functions [J].
Bhat, Sooraj ;
Agarwal, Ashish ;
Vuduc, Richard ;
Gray, Alexander .
ACM SIGPLAN NOTICES, 2012, 47 (01) :545-556
[9]  
Cock D., 2014, PGCL ISABELLE
[10]  
Cock D, 2012, P 7 SYST SOFTW VER N, P1