Semantics of Higher-Order Probabilistic Programs with Conditioning

被引:10
|
作者
Dahlqvist, Fredrik [1 ,2 ]
Kozen, Dexter [3 ]
机构
[1] UCL, Comp Sci, London, England
[2] Imperial Coll London, Elect & Elect Engn, London, England
[3] Cornell Univ, Comp Sci, Ithaca, NY USA
基金
英国工程与自然科学研究理事会; 美国国家科学基金会;
关键词
Probabilistic programming; semantics; type system; TENSOR-PRODUCTS;
D O I
10.1145/3371125
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present a denotational semantics for higher-order probabilistic programs in terms of linear operators between Banach spaces. Our semantics is rooted in the classical theory of Banach spaces and their tensor products, but bears similarities with the well-known semantics of higher-order programs a la Scott through the use of ordered Banach spaces which allow definitions in terms of fixed points. Our semantics is a model of intuitionistic linear logic: it is based on a symmetric monoidal closed category of ordered Banach spaces which treats randomness as a linear resource, but by constructing an exponential comonad we can also accommodate non-linear reasoning. We apply our semantics to the verification of the classical Gibbs sampling algorithm.
引用
收藏
页数:29
相关论文
共 50 条
  • [1] Relational semantics for higher-order programs
    Aboul-Hosn, Kamal
    Kozen, Dexter
    [J]. MATHEMATICS OF PROGRAM CONSTRUCTION, 2006, 4014 : 29 - 48
  • [2] Formal Verification of Higher-Order Probabilistic Programs
    Sato, Tetsuya
    Aguirre, Alejandro
    Barthe, Gilles
    Gaboardi, Marco
    Garg, Deepak
    Hsu, Justin
    [J]. PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2019, 3 (POPL):
  • [3] Extensional Semantics for Higher-Order Logic Programs with Negation
    Rondogiannis, Panos
    Symeonidou, Ioanna
    [J]. LOGICS IN ARTIFICIAL INTELLIGENCE, (JELIA 2016), 2016, 10021 : 447 - 462
  • [4] λPSI: Exact Inference for Higher-Order Probabilistic Programs
    Gehr, Timon
    Steffen, Samuel
    Vechev, Martin
    [J]. PROCEEDINGS OF THE 41ST ACM SIGPLAN CONFERENCE ON PROGRAMMING LANGUAGE DESIGN AND IMPLEMENTATION (PLDI '20), 2020, : 883 - 897
  • [5] On the Termination Problem for Probabilistic Higher-Order Recursive Programs
    Kobayashi, Naoki
    Dal Lago, Ugo
    Grellois, Charles
    [J]. 2019 34TH ANNUAL ACM/IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE (LICS), 2019,
  • [6] ON THE TERMINATION PROBLEM FOR PROBABILISTIC HIGHER-ORDER RECURSIVE PROGRAMS
    Kobayashi, Naoki
    Dal Lago, Ugo
    Grellois, Charles
    [J]. LOGICAL METHODS IN COMPUTER SCIENCE, 2020, 16 (04) : 1 - 57
  • [7] On Coinductive Equivalences for Higher-Order Probabilistic Functional Programs
    Dal Lago, Ugo
    Sangiorgi, Davide
    Alberti, Michele
    [J]. ACM SIGPLAN NOTICES, 2014, 49 (01) : 297 - 308
  • [8] EXTENSION AL SEMANTICS FOR HIGHER-ORDER LOGIC PROGRAMS WITH NEGATION
    Rondogiannis, Panos
    Symeonidou, Ioanna
    [J]. LOGICAL METHODS IN COMPUTER SCIENCE, 2018, 14 (02)
  • [9] Higher-Order Probabilistic Adversarial Computations: Categorical Semantics and Program Logics
    Aguirre, Alejandro
    Barthe, Gilles
    Gaboardi, Marco
    Garg, Deepak
    Katsumata, Shin-ya
    Sato, Tetsuya
    [J]. PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2021, 5
  • [10] Program logic for higher-order probabilistic programs in Isabelle/HOL
    Hirata, Michikazu
    Minamide, Yasuhiko
    Sato, Tetsuya
    [J]. SCIENCE OF COMPUTER PROGRAMMING, 2023, 230