高阶概率程序的近似关系推理

Philipp G. Haselwarter, Kwing Hei Li, Alejandro Aguirre, Simon Oddershede Gregersen, Joseph Tassarotti, Lars Birkedal
{"title":"高阶概率程序的近似关系推理","authors":"Philipp G. Haselwarter, Kwing Hei Li, Alejandro Aguirre, Simon Oddershede Gregersen, Joseph Tassarotti, Lars Birkedal","doi":"arxiv-2407.14107","DOIUrl":null,"url":null,"abstract":"Properties such as provable security and correctness for randomized programs\nare naturally expressed relationally as approximate equivalences. As a result,\na number of relational program logics have been developed to reason about such\napproximate equivalences of probabilistic programs. However, existing\napproximate relational logics are mostly restricted to first-order programs\nwithout general state. In this paper we develop Approxis, a higher-order approximate relational\nseparation logic for reasoning about approximate equivalence of programs\nwritten in an expressive ML-like language with discrete probabilistic sampling,\nhigher-order functions, and higher-order state. The Approxis logic recasts the\nconcept of error credits in the relational setting to reason about relational\napproximation, which allows for expressive notions of modularity and\ncomposition, a range of new approximate relational rules, and an\ninternalization of a standard limiting argument for showing exact probabilistic\nequivalences by approximation. We also use Approxis to develop a logical\nrelation model that quantifies over error credits, which can be used to prove\nexact contextual equivalence. We demonstrate the flexibility of our approach on\na range of examples, including the PRP/PRF switching lemma, IND\\$-CPA security\nof an encryption scheme, and a collection of rejection samplers. All of the\nresults have been mechanized in the Coq proof assistant and the Iris separation\nlogic framework.","PeriodicalId":501197,"journal":{"name":"arXiv - CS - Programming Languages","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2024-07-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Approximate Relational Reasoning for Higher-Order Probabilistic Programs\",\"authors\":\"Philipp G. Haselwarter, Kwing Hei Li, Alejandro Aguirre, Simon Oddershede Gregersen, Joseph Tassarotti, Lars Birkedal\",\"doi\":\"arxiv-2407.14107\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Properties such as provable security and correctness for randomized programs\\nare naturally expressed relationally as approximate equivalences. As a result,\\na number of relational program logics have been developed to reason about such\\napproximate equivalences of probabilistic programs. However, existing\\napproximate relational logics are mostly restricted to first-order programs\\nwithout general state. In this paper we develop Approxis, a higher-order approximate relational\\nseparation logic for reasoning about approximate equivalence of programs\\nwritten in an expressive ML-like language with discrete probabilistic sampling,\\nhigher-order functions, and higher-order state. The Approxis logic recasts the\\nconcept of error credits in the relational setting to reason about relational\\napproximation, which allows for expressive notions of modularity and\\ncomposition, a range of new approximate relational rules, and an\\ninternalization of a standard limiting argument for showing exact probabilistic\\nequivalences by approximation. We also use Approxis to develop a logical\\nrelation model that quantifies over error credits, which can be used to prove\\nexact contextual equivalence. We demonstrate the flexibility of our approach on\\na range of examples, including the PRP/PRF switching lemma, IND\\\\$-CPA security\\nof an encryption scheme, and a collection of rejection samplers. All of the\\nresults have been mechanized in the Coq proof assistant and the Iris separation\\nlogic framework.\",\"PeriodicalId\":501197,\"journal\":{\"name\":\"arXiv - CS - Programming Languages\",\"volume\":null,\"pages\":null},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-07-19\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Programming Languages\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2407.14107\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Programming Languages","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2407.14107","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

随机化程序的可证明安全性和正确性等属性,可以自然地通过关系表达为近似等价。因此,人们开发了许多关系程序逻辑来推理概率程序的近似等价性。然而,现有的近似关系逻辑大多局限于没有一般状态的一阶程序。在本文中,我们开发了一种高阶近似关系分离逻辑 Approxis,用于推理用具有离散概率采样、高阶函数和高阶状态的表达式 ML 样语言编写的程序的近似等价性。Approxis 逻辑重构了关系设置中的误差信用概念,以推理关系近似,它允许模块化和组合的表达式概念、一系列新的近似关系规则,以及标准限制论证的内部化,从而通过近似来显示精确的概率等价性。我们还利用 Approxis 开发了一个逻辑关联模型,该模型可量化错误信用,并可用于证明精确的上下文等价性。我们在一系列示例中展示了我们方法的灵活性,包括 PRP/PRF 切换两难、加密方案的 IND\$-CPA 安全性以及一系列拒绝采样器。所有结果都已在 Coq 证明助手和 Iris 分离逻辑框架中实现了机械化。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
Approximate Relational Reasoning for Higher-Order Probabilistic Programs
Properties such as provable security and correctness for randomized programs are naturally expressed relationally as approximate equivalences. As a result, a number of relational program logics have been developed to reason about such approximate equivalences of probabilistic programs. However, existing approximate relational logics are mostly restricted to first-order programs without general state. In this paper we develop Approxis, a higher-order approximate relational separation logic for reasoning about approximate equivalence of programs written in an expressive ML-like language with discrete probabilistic sampling, higher-order functions, and higher-order state. The Approxis logic recasts the concept of error credits in the relational setting to reason about relational approximation, which allows for expressive notions of modularity and composition, a range of new approximate relational rules, and an internalization of a standard limiting argument for showing exact probabilistic equivalences by approximation. We also use Approxis to develop a logical relation model that quantifies over error credits, which can be used to prove exact contextual equivalence. We demonstrate the flexibility of our approach on a range of examples, including the PRP/PRF switching lemma, IND\$-CPA security of an encryption scheme, and a collection of rejection samplers. All of the results have been mechanized in the Coq proof assistant and the Iris separation logic framework.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Repr Types: One Abstraction to Rule Them All $μλεδ$-Calculus: A Self Optimizing Language that Seems to Exhibit Paradoxical Transfinite Cognitive Capabilities Expressing and Analyzing Quantum Algorithms with Qualtran Conversational Concurrency The MLIR Transform Dialect. Your compiler is more powerful than you think
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1