Formally Verified Samplers from Probabilistic Programs with Loops and Conditioning

Author:

Bagnall Alexander1ORCID,Stewart Gordon2ORCID,Banerjee Anindya3ORCID

Affiliation:

1. Ohio University, USA

2. Bedrock Systems, USA

3. IMDEA Software Institute, Spain

Abstract

We present Zar: a formally verified compiler pipeline from discrete probabilistic programs with unbounded loops in the conditional probabilistic guarded command language (cpGCL) to proved-correct executable samplers in the random bit model. We exploit the key idea that all discrete probability distributions can be reduced to unbiased coin-flipping schemes. The compiler pipeline first translates cpGCL programs into choice-fix trees, an intermediate representation suitable for reduction of biased probabilistic choices. Choice-fix trees are then translated to coinductive interaction trees for execution within the random bit model. The correctness of the composed translations establishes the sampling equidistribution theorem: compiled samplers are correct wrt. the conditional weakest pre-expectation semantics of cpGCL source programs. Zar is implemented and fully verified in the Coq proof assistant. We extract verified samplers to OCaml and Python and empirically validate them on a number of illustrative examples.

Publisher

Association for Computing Machinery (ACM)

Subject

Safety, Risk, Reliability and Quality,Software

Reference63 articles.

1. Samson Abramsky and Achim Jung . 1994. Domain Theory . In Handbook of Logic in Computer Science , S. Abramsky, D. M. Gabbay, and T. S. E. Maibaum (Eds.). 3, Clarendon Press , 1–168. isbn:0 1985 3762X https://global.oup.com/academic/product/handbook-of-logic-in-computer-science-9780198537625 Samson Abramsky and Achim Jung. 1994. Domain Theory. In Handbook of Logic in Computer Science, S. Abramsky, D. M. Gabbay, and T. S. E. Maibaum (Eds.). 3, Clarendon Press, 1–168. isbn:019853762X https://global.oup.com/academic/product/handbook-of-logic-in-computer-science-9780198537625

2. Binary Decision Diagrams

3. Automatic translation of FORTRAN programs to vector form

4. LadderLeak: Breaking ECDSA with Less than One Bit of Nonce Leakage

5. J. Scott Armstrong . 1985. Long-Range Forecasting: From Crystal Ball to Computer . John Wiley & Sons , New York . J. Scott Armstrong. 1985. Long-Range Forecasting: From Crystal Ball to Computer. John Wiley & Sons, New York.

Cited by 2 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3