Martin Avanzini, Gilles Barthe, Davide Davoli, Benjamin Grégoire
{"title":"定量概率关系胡尔逻辑","authors":"Martin Avanzini, Gilles Barthe, Davide Davoli, Benjamin Grégoire","doi":"arxiv-2407.17127","DOIUrl":null,"url":null,"abstract":"We introduce eRHL, a program logic for reasoning about relational expectation\nproperties of pairs of probabilistic programs. eRHL is quantitative, i.e., its\npre- and post-conditions take values in the extended non-negative reals. Thanks\nto its quantitative assertions, eRHL overcomes randomness alignment\nrestrictions from prior logics, including PRHL, a popular relational program\nlogic used to reason about security of cryptographic constructions, and apRHL,\na variant of PRHL for differential privacy. As a result, eRHL is the first\nrelational probabilistic program logic to be supported by non-trivial soundness\nand completeness results for all almost surely terminating programs. We show\nthat eRHL is sound and complete with respect to program equivalence,\nstatistical distance, and differential privacy. We also show that every PRHL\njudgment is valid iff it is provable in eRHL. We showcase the practical\nbenefits of eRHL with examples that are beyond reach of PRHL and apRHL.","PeriodicalId":501208,"journal":{"name":"arXiv - CS - Logic in Computer Science","volume":"24 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-07-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"A quantitative probabilistic relational Hoare logic\",\"authors\":\"Martin Avanzini, Gilles Barthe, Davide Davoli, Benjamin Grégoire\",\"doi\":\"arxiv-2407.17127\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"We introduce eRHL, a program logic for reasoning about relational expectation\\nproperties of pairs of probabilistic programs. eRHL is quantitative, i.e., its\\npre- and post-conditions take values in the extended non-negative reals. Thanks\\nto its quantitative assertions, eRHL overcomes randomness alignment\\nrestrictions from prior logics, including PRHL, a popular relational program\\nlogic used to reason about security of cryptographic constructions, and apRHL,\\na variant of PRHL for differential privacy. As a result, eRHL is the first\\nrelational probabilistic program logic to be supported by non-trivial soundness\\nand completeness results for all almost surely terminating programs. We show\\nthat eRHL is sound and complete with respect to program equivalence,\\nstatistical distance, and differential privacy. We also show that every PRHL\\njudgment is valid iff it is provable in eRHL. We showcase the practical\\nbenefits of eRHL with examples that are beyond reach of PRHL and apRHL.\",\"PeriodicalId\":501208,\"journal\":{\"name\":\"arXiv - CS - Logic in Computer Science\",\"volume\":\"24 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-07-24\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Logic in Computer Science\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2407.17127\",\"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 - Logic in Computer Science","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2407.17127","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
A quantitative probabilistic relational Hoare logic
We introduce eRHL, a program logic for reasoning about relational expectation
properties of pairs of probabilistic programs. eRHL is quantitative, i.e., its
pre- and post-conditions take values in the extended non-negative reals. Thanks
to its quantitative assertions, eRHL overcomes randomness alignment
restrictions from prior logics, including PRHL, a popular relational program
logic used to reason about security of cryptographic constructions, and apRHL,
a variant of PRHL for differential privacy. As a result, eRHL is the first
relational probabilistic program logic to be supported by non-trivial soundness
and completeness results for all almost surely terminating programs. We show
that eRHL is sound and complete with respect to program equivalence,
statistical distance, and differential privacy. We also show that every PRHL
judgment is valid iff it is provable in eRHL. We showcase the practical
benefits of eRHL with examples that are beyond reach of PRHL and apRHL.