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

被引:1
作者
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
相关论文
共 35 条
[21]   Models of Higher-Order Computation: Recursion Schemes and Collapsible Pushdown Automata [J].
Ong, C. -H. L. .
LOGICS AND LANGUAGES FOR RELIABILITY AND SECURITY, 2010, 25 :263-299
[22]   On the dynamical behaviour of linear higher-order cellular automata and its decidability [J].
Dennunzio, Alberto ;
Formenti, Enrico ;
Manzoni, Luca ;
Margara, Luciano ;
Porreca, Antonio E. .
INFORMATION SCIENCES, 2019, 486 :73-87
[23]   Density Evolution for Deterministic Generalized Product Codes with Higher-Order Modulation [J].
Hager, Christian ;
Graell i Amat, Alexandre ;
Pfister, Henry D. ;
Brannstrom, Fredrik .
2016 9TH INTERNATIONAL SYMPOSIUM ON TURBO CODES AND ITERATIVE INFORMATION PROCESSING (ISTC), 2016, :236-240
[24]   Contract-Based Resource Verification for Higher-Order Functions with Memoization [J].
Madhavan, Ravichandhran ;
Kulal, Sumith ;
Kuncak, Viktor .
ACM SIGPLAN NOTICES, 2017, 52 (01) :330-343
[25]   Orthogonal splitting in degenerate higher-order scalar-tensor theories [J].
Yousaf, Z. ;
Bhatti, M. Z. ;
Asad, H. ;
Hashimoto, Yuki ;
Bamba, Kazuharu .
INTERNATIONAL JOURNAL OF GEOMETRIC METHODS IN MODERN PHYSICS, 2025,
[26]   Space-Efficient Model-Checking of Higher-Order Recursion Schemes [J].
Bruse, Florian .
VERIFICATION, MODEL CHECKING, AND ABSTRACT INTERPRETATION, VMCAI 2025, PT I, 2025, 15529 :29-51
[27]   TENSOR METHODS FOR MINIMIZING CONVEX FUNCTIONS WITH HOLDER CONTINUOUS HIGHER-ORDER DERIVATIVES [J].
Grapiglia, G. N. ;
Nesterov, Yu. .
SIAM JOURNAL ON OPTIMIZATION, 2020, 30 (04) :2750-2779
[28]   Partial entropy decomposition reveals higher-order information structures in human brain activity [J].
Varley, Thomas F. ;
Pope, Maria ;
Puxeddu, Maria Grazia ;
Faskowitz, Joshua ;
Sporns, Olaf .
PROCEEDINGS OF THE NATIONAL ACADEMY OF SCIENCES OF THE UNITED STATES OF AMERICA, 2023, 120 (33)
[29]   Higher-order statistical correlations in three-particle quantum systems with harmonic interactions [J].
Salazar, Saul J. C. ;
Laguna, Humberto G. ;
Sagar, Robin P. .
PHYSICAL REVIEW A, 2020, 101 (04)
[30]   Improved complexity using higher-order correctors for primal-dual Dikin affine scaling [J].
Jansen, B ;
Roos, C ;
Terlaky, T ;
Ye, Y .
MATHEMATICAL PROGRAMMING, 1997, 76 (01) :117-130