Tachis: Higher-Order Separation Logic with Credits for Expected Costs

被引:0
|
作者
Haselwarter, Philipp G. [1 ]
Li, Kwing Hei [1 ]
de Medeiros, Markus [2 ]
Gregersen, Simon Oddershede [2 ]
Aguirre, Alejandro [1 ]
Tassarotti, Joseph [2 ]
Birkedal, Lars [1 ]
机构
[1] Aarhus Univ, Aarhus, Denmark
[2] NYU, New York, NY USA
来源
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL | 2024年 / 8卷 / OOPSLA期
基金
美国国家科学基金会;
关键词
probabilistic programs; expected time complexity; resource analysis; COMPLEXITY;
D O I
10.1145/3689753
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present Tachis, a higher-order separation logic to reason about the expected cost of probabilistic programs. Inspired by the uses of time credits for reasoning about the running time of deterministic programs, we introduce a novel notion of probabilistic cost credit. Probabilistic cost credits are a separation logic resource that can be used to pay for the cost of operations in programs, and that can be distributed across all possible branches of sampling instructions according to their weight, thus enabling us to reason about expected cost. The representation of cost credits as separation logic resources gives Tachis a great deal of flexibility and expressivity. In particular, it permits reasoning about amortized expected cost by storing excess credits as potential into data structures to pay for future operations. Tachis further supports a range of cost models, including running time and entropy usage. We showcase the versatility of this approach by applying our techniques to prove upper bounds on the expected cost of a variety of probabilistic algorithms and data structures, including randomized quicksort, hash tables, and meldable heaps. All of our results have been mechanized using Coq, Iris, and the Coquelicot real analysis library.
引用
收藏
页数:30
相关论文
共 34 条
  • [1] An encoding of abstract dialectical frameworks into higher-order logic
    Martina, Antoine
    Steen, Alexander
    JOURNAL OF LOGIC AND COMPUTATION, 2024, 35 (02)
  • [2] THE COMPLEXITY OF MODEL CHECKING HIGHER-ORDER FIXPOINT LOGIC
    Axelsson, Roland
    Lange, Martin
    Somla, Rafal
    Logical Methods in Computer Science, 2007, 3 (02)
  • [3] Positive Higher-Order Queries
    Benedikt, Michael
    Puppis, Gabriele
    Vu, Huy
    PODS 2010: PROCEEDINGS OF THE TWENTY-NINTH ACM SIGMOD-SIGACT-SIGART SYMPOSIUM ON PRINCIPLES OF DATABASE SYSTEMS, 2010, : 27 - 38
  • [4] The Expressive Power of Higher-Order Datalog
    Charalambidis, Angelos
    Nomikos, Christos
    Rondogiannis, Panos
    THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2019, 19 (5-6) : 925 - 940
  • [5] The Geometry of Linear Higher-Order Recursion
    Dal Lago, Ugo
    ACM TRANSACTIONS ON COMPUTATIONAL LOGIC, 2009, 10 (02)
  • [6] Higher-order Fourier Analysis and Applications
    Hatami, Hamed
    Hatami, Pooya
    Lovett, Shachar
    FOUNDATIONS AND TRENDS IN THEORETICAL COMPUTER SCIENCE, 2019, 13 (04): : 247 - 448
  • [7] Taxicab geometry in table of higher-order elements
    Zdeněk Biolek
    Dalibor Biolek
    Viera Biolková
    Zdeněk Kolka
    Nonlinear Dynamics, 2019, 98 : 623 - 636
  • [8] Taxicab geometry in table of higher-order elements
    Biolek, Zdenek
    Biolek, Dalibor
    Biolkova, Viera
    Kolka, Zdenek
    NONLINEAR DYNAMICS, 2019, 98 (01) : 623 - 636
  • [9] Game semantics approach to higher-order complexity
    Feree, Hugo
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2017, 87 : 1 - 15
  • [10] ON THE EXPRESSIVE POWER OF HIGHER-ORDER PUSHDOWN SYSTEMS
    Parys, Pawel
    LOGICAL METHODS IN COMPUTER SCIENCE, 2020, 16 (03) : 11:1 - 11:69