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, exis...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Veröffentlicht in:arXiv.org 2024-12
Hauptverfasser: Haselwarter, Philipp G, Li, Kwing Hei, Aguirre, Alejandro, Simon Oddershede Gregersen, Tassarotti, Joseph, Birkedal, Lars
Format: Artikel
Sprache:eng
Schlagworte:
Online-Zugang:Volltext
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
container_end_page
container_issue
container_start_page
container_title arXiv.org
container_volume
creator Haselwarter, Philipp G
Li, Kwing Hei
Aguirre, Alejandro
Simon Oddershede Gregersen
Tassarotti, Joseph
Birkedal, Lars
description 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.
doi_str_mv 10.48550/arxiv.2407.14107
format Article
fullrecord <record><control><sourceid>proquest_arxiv</sourceid><recordid>TN_cdi_arxiv_primary_2407_14107</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>3083264618</sourcerecordid><originalsourceid>FETCH-LOGICAL-a528-314e6d9a955b15f5acb92dd5db70eeb121b883e0dca6e0888ceced7302c2d6063</originalsourceid><addsrcrecordid>eNotz1FLwzAQB_AgCI65D-CTBZ9bL0mTpo9jqBMGE9l7SZprzeiamnQyv73d5tPdwZ8_9yPkgUKWKyHgWYeT-8lYDkVGcwrFDZkxzmmqcsbuyCLGPQAwWTAh-Iysl8MQ_Mkd9IjJJ3Z6dL7X3bTq6HvXt0njQ7J27ReGdBsshuQjeKON61wcXX2-2qAP8Z7cNrqLuPifc7J7fdmt1ulm-_a-Wm5SLZhKOc1R2lKXQhgqGqFrUzJrhTUFIBrKqFGKI9haSwSlVI012oIDq5mVIPmcPF5rL8xqCNPn4bc6c6sLd0o8XROT6_uIcaz2_hgmU6w4KM5kLqnif7e0WLM</addsrcrecordid><sourcetype>Open Access Repository</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype><pqid>3083264618</pqid></control><display><type>article</type><title>Approximate Relational Reasoning for Higher-Order Probabilistic Programs</title><source>arXiv.org</source><source>Free E- Journals</source><creator>Haselwarter, Philipp G ; Li, Kwing Hei ; Aguirre, Alejandro ; Simon Oddershede Gregersen ; Tassarotti, Joseph ; Birkedal, Lars</creator><creatorcontrib>Haselwarter, Philipp G ; Li, Kwing Hei ; Aguirre, Alejandro ; Simon Oddershede Gregersen ; Tassarotti, Joseph ; Birkedal, Lars</creatorcontrib><description>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.</description><identifier>EISSN: 2331-8422</identifier><identifier>DOI: 10.48550/arxiv.2407.14107</identifier><language>eng</language><publisher>Ithaca: Cornell University Library, arXiv.org</publisher><subject>Approximation ; Computer Science - Logic in Computer Science ; Computer Science - Programming Languages ; Equivalence ; Logic ; Modularity ; Probability theory ; Reasoning ; Samplers ; Security ; Separation</subject><ispartof>arXiv.org, 2024-12</ispartof><rights>2024. This work is published under http://creativecommons.org/licenses/by-nc-sa/4.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.</rights><rights>http://creativecommons.org/licenses/by-nc-sa/4.0</rights><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><link.rule.ids>228,230,780,784,885,27925</link.rule.ids><backlink>$$Uhttps://doi.org/10.48550/arXiv.2407.14107$$DView paper in arXiv$$Hfree_for_read</backlink><backlink>$$Uhttps://doi.org/10.1145/3704877$$DView published paper (Access to full text may be restricted)$$Hfree_for_read</backlink></links><search><creatorcontrib>Haselwarter, Philipp G</creatorcontrib><creatorcontrib>Li, Kwing Hei</creatorcontrib><creatorcontrib>Aguirre, Alejandro</creatorcontrib><creatorcontrib>Simon Oddershede Gregersen</creatorcontrib><creatorcontrib>Tassarotti, Joseph</creatorcontrib><creatorcontrib>Birkedal, Lars</creatorcontrib><title>Approximate Relational Reasoning for Higher-Order Probabilistic Programs</title><title>arXiv.org</title><description>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.</description><subject>Approximation</subject><subject>Computer Science - Logic in Computer Science</subject><subject>Computer Science - Programming Languages</subject><subject>Equivalence</subject><subject>Logic</subject><subject>Modularity</subject><subject>Probability theory</subject><subject>Reasoning</subject><subject>Samplers</subject><subject>Security</subject><subject>Separation</subject><issn>2331-8422</issn><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2024</creationdate><recordtype>article</recordtype><sourceid>ABUWG</sourceid><sourceid>AFKRA</sourceid><sourceid>AZQEC</sourceid><sourceid>BENPR</sourceid><sourceid>CCPQU</sourceid><sourceid>DWQXO</sourceid><sourceid>GOX</sourceid><recordid>eNotz1FLwzAQB_AgCI65D-CTBZ9bL0mTpo9jqBMGE9l7SZprzeiamnQyv73d5tPdwZ8_9yPkgUKWKyHgWYeT-8lYDkVGcwrFDZkxzmmqcsbuyCLGPQAwWTAh-Iysl8MQ_Mkd9IjJJ3Z6dL7X3bTq6HvXt0njQ7J27ReGdBsshuQjeKON61wcXX2-2qAP8Z7cNrqLuPifc7J7fdmt1ulm-_a-Wm5SLZhKOc1R2lKXQhgqGqFrUzJrhTUFIBrKqFGKI9haSwSlVI012oIDq5mVIPmcPF5rL8xqCNPn4bc6c6sLd0o8XROT6_uIcaz2_hgmU6w4KM5kLqnif7e0WLM</recordid><startdate>20241203</startdate><enddate>20241203</enddate><creator>Haselwarter, Philipp G</creator><creator>Li, Kwing Hei</creator><creator>Aguirre, Alejandro</creator><creator>Simon Oddershede Gregersen</creator><creator>Tassarotti, Joseph</creator><creator>Birkedal, Lars</creator><general>Cornell University Library, arXiv.org</general><scope>8FE</scope><scope>8FG</scope><scope>ABJCF</scope><scope>ABUWG</scope><scope>AFKRA</scope><scope>AZQEC</scope><scope>BENPR</scope><scope>BGLVJ</scope><scope>CCPQU</scope><scope>DWQXO</scope><scope>HCIFZ</scope><scope>L6V</scope><scope>M7S</scope><scope>PIMPY</scope><scope>PQEST</scope><scope>PQQKQ</scope><scope>PQUKI</scope><scope>PRINS</scope><scope>PTHSS</scope><scope>AKY</scope><scope>GOX</scope></search><sort><creationdate>20241203</creationdate><title>Approximate Relational Reasoning for Higher-Order Probabilistic Programs</title><author>Haselwarter, Philipp G ; Li, Kwing Hei ; Aguirre, Alejandro ; Simon Oddershede Gregersen ; Tassarotti, Joseph ; Birkedal, Lars</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-LOGICAL-a528-314e6d9a955b15f5acb92dd5db70eeb121b883e0dca6e0888ceced7302c2d6063</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2024</creationdate><topic>Approximation</topic><topic>Computer Science - Logic in Computer Science</topic><topic>Computer Science - Programming Languages</topic><topic>Equivalence</topic><topic>Logic</topic><topic>Modularity</topic><topic>Probability theory</topic><topic>Reasoning</topic><topic>Samplers</topic><topic>Security</topic><topic>Separation</topic><toplevel>online_resources</toplevel><creatorcontrib>Haselwarter, Philipp G</creatorcontrib><creatorcontrib>Li, Kwing Hei</creatorcontrib><creatorcontrib>Aguirre, Alejandro</creatorcontrib><creatorcontrib>Simon Oddershede Gregersen</creatorcontrib><creatorcontrib>Tassarotti, Joseph</creatorcontrib><creatorcontrib>Birkedal, Lars</creatorcontrib><collection>ProQuest SciTech Collection</collection><collection>ProQuest Technology Collection</collection><collection>Materials Science &amp; Engineering Collection</collection><collection>ProQuest Central (Alumni Edition)</collection><collection>ProQuest Central UK/Ireland</collection><collection>ProQuest Central Essentials</collection><collection>ProQuest Central</collection><collection>Technology Collection</collection><collection>ProQuest One Community College</collection><collection>ProQuest Central Korea</collection><collection>SciTech Premium Collection</collection><collection>ProQuest Engineering Collection</collection><collection>Engineering Database</collection><collection>Publicly Available Content Database</collection><collection>ProQuest One Academic Eastern Edition (DO NOT USE)</collection><collection>ProQuest One Academic</collection><collection>ProQuest One Academic UKI Edition</collection><collection>ProQuest Central China</collection><collection>Engineering Collection</collection><collection>arXiv Computer Science</collection><collection>arXiv.org</collection><jtitle>arXiv.org</jtitle></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext</fulltext></delivery><addata><au>Haselwarter, Philipp G</au><au>Li, Kwing Hei</au><au>Aguirre, Alejandro</au><au>Simon Oddershede Gregersen</au><au>Tassarotti, Joseph</au><au>Birkedal, Lars</au><format>journal</format><genre>article</genre><ristype>JOUR</ristype><atitle>Approximate Relational Reasoning for Higher-Order Probabilistic Programs</atitle><jtitle>arXiv.org</jtitle><date>2024-12-03</date><risdate>2024</risdate><eissn>2331-8422</eissn><abstract>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.</abstract><cop>Ithaca</cop><pub>Cornell University Library, arXiv.org</pub><doi>10.48550/arxiv.2407.14107</doi><oa>free_for_read</oa></addata></record>
fulltext fulltext
identifier EISSN: 2331-8422
ispartof arXiv.org, 2024-12
issn 2331-8422
language eng
recordid cdi_arxiv_primary_2407_14107
source arXiv.org; Free E- Journals
subjects Approximation
Computer Science - Logic in Computer Science
Computer Science - Programming Languages
Equivalence
Logic
Modularity
Probability theory
Reasoning
Samplers
Security
Separation
title Approximate Relational Reasoning for Higher-Order Probabilistic Programs
url https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2024-12-28T14%3A36%3A35IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-proquest_arxiv&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.genre=article&rft.atitle=Approximate%20Relational%20Reasoning%20for%20Higher-Order%20Probabilistic%20Programs&rft.jtitle=arXiv.org&rft.au=Haselwarter,%20Philipp%20G&rft.date=2024-12-03&rft.eissn=2331-8422&rft_id=info:doi/10.48550/arxiv.2407.14107&rft_dat=%3Cproquest_arxiv%3E3083264618%3C/proquest_arxiv%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_pqid=3083264618&rft_id=info:pmid/&rfr_iscdi=true