A Gradual Probabilistic Lambda Calculus

Author:

Ye Wenjia1ORCID,Toro Matías2ORCID,Olmedo Federico2ORCID

Affiliation:

1. University of Hong Kong, China

2. University of Chile, Chile

Abstract

Probabilistic programming languages have recently gained a lot of attention, in particular due to their applications in domains such as machine learning and differential privacy. To establish invariants of interest, many such languages include some form of static checking in the form of type systems. However, adopting such a type discipline can be cumbersome or overly conservative. Gradual typing addresses this problem by supporting a smooth transition between static and dynamic checking, and has been successfully applied for languages with different constructs and type abstractions. Nevertheless, its benefits have never been explored in the context of probabilistic languages. In this work, we present and formalize GPLC, a gradual source probabilistic lambda calculus. GPLC includes a binary probabilistic choice operator and allows programmers to gradually introduce/remove static type–and probability–annotations. The static semantics of GPLC heavily relies on the notion of probabilistic couplings, as required for defining several relations, such as consistency, precision, and consistent transitivity. The dynamic semantics of GPLC is given via elaboration to the target language TPLC, which features a distribution-based semantics interpreting programs as probability distributions over final values. Regarding the language metatheory, we establish that TPLC–and therefore also GPLC–is type safe and satisfies two of the so-called refined criteria for gradual languages, namely, that it is a conservative extension of a fully static variant and that it satisfies the gradual guarantee, behaving smoothly with respect to type precision.

Funder

Agencia Nacional de Investigación y Desarrollo

Hong Kong Research Grants Council

Publisher

Association for Computing Machinery (ACM)

Subject

Safety, Risk, Reliability and Quality,Software

Reference58 articles.

1. Martin Avanzini , Ugo Dal Lago , and Alexis Ghyselen . 2021 . Type-Based Complexity Analysis of Probabilistic Functional Programs . In Proceedings of the 34th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS ’19) . IEEE Press, Article 41, 13 pages. Martin Avanzini, Ugo Dal Lago, and Alexis Ghyselen. 2021. Type-Based Complexity Analysis of Probabilistic Functional Programs. In Proceedings of the 34th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS ’19). IEEE Press, Article 41, 13 pages.

2. Arthur Azevedo de Amorim , Matt Fredrikson , and Limin Jia . 2020 . Reconciling Noninterference and Gradual Typing . In Proceedings of the 2020 Symposium on Logic in Computer Science (LICS 2020). Arthur Azevedo de Amorim, Matt Fredrikson, and Limin Jia. 2020. Reconciling Noninterference and Gradual Typing. In Proceedings of the 2020 Symposium on Logic in Computer Science (LICS 2020).

3. Gradual Type-and-Effect Systems;Schwerter Felipe Bañados;Journal of Functional Programming,2016

4. Gilles Barthe , Benjamin Grégoire , and Santiago Zanella-Béguelin . 2009 . Formal Certification of Code-Based Cryptographic Proofs. In 36th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL’09) . ACM, New York. 90–101. Gilles Barthe, Benjamin Grégoire, and Santiago Zanella-Béguelin. 2009. Formal Certification of Code-Based Cryptographic Proofs. In 36th ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL’09). ACM, New York. 90–101.

5. Giuseppe Castagna and Victor Lanvin . 2017 . Gradual Typing with Union and Intersection Types . Proceedings of the ACM on Programming Languages, 1, ICFP (2017), Sept., 41:1–41:28. Giuseppe Castagna and Victor Lanvin. 2017. Gradual Typing with Union and Intersection Types. Proceedings of the ACM on Programming Languages, 1, ICFP (2017), Sept., 41:1–41:28.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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