Higher-Order Probabilistic Adversarial Computations: Categorical Semantics and Program Logics

被引:6
|
作者
Aguirre, Alejandro [1 ,2 ,4 ]
Barthe, Gilles [3 ,4 ]
Gaboardi, Marco [5 ]
Garg, Deepak [6 ]
Katsumata, Shin-ya [7 ]
Sato, Tetsuya [8 ]
机构
[1] Univ Politecn Madrid, Madrid, Spain
[2] Aarhus Univ, Aarhus, Denmark
[3] MPI SP, Bochum, Spain
[4] IMDEA Software Inst, Madrid, Spain
[5] Boston Univ, Boston, MA 02215 USA
[6] Max Planck Inst Software Syst, Saarland Informat Campus, Saarbrucken, Germany
[7] Natl Inst Informat, Chiyoda Ku, 2-1-2 Hitotsubashi, Tokyo 1018430, Japan
[8] Tokyo Inst Technol, Tokyo, Japan
基金
日本科学技术振兴机构;
关键词
Probabilistic programming; semantic models; program logics;
D O I
10.1145/3473598
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Adversarial computations are a widely studied class of computations where resource-bounded probabilistic adversaries have access to oracles, i.e., probabilistic procedures with private state. These computations arise routinely in several domains, including security, privacy and machine learning. In this paper, we develop program logics for reasoning about adversarial computations in a higher-order setting. Our logics are built on top of a simply typed lambda-calculus extended with a graded monad for probabilities and state. The grading is used to model and restrict the memory footprint and the cost (in terms of oracle calls) of computations. Under this view, an adversary is a higher-order expression that expects as arguments the code of its oracles. We develop unary program logics for reasoning about error probabilities and expected values, and a relational logic for reasoning about coupling-based properties. All logics feature rules for adversarial computations, and yield guarantees that are valid for all adversaries that satisfy a fixed resource policy. We prove the soundness of the logics in the category of quasi-Borel spaces, using a general notion of graded predicate liftings, and we use logical relations over graded predicate liftings to establish the soundness of proof rules for adversaries. We illustrate the working of our logics with simple but illustrative examples.
引用
收藏
页数:30
相关论文
共 50 条