paperbot · PL 论文追踪

全部论文 待读 收藏

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

Tachis:面向期望代价的带信用额度的高阶分离逻辑
OOPSLA 8(OOPSLA2)2024匹配度 3/10 · 该论文属于概率程序的形式化验证与分离逻辑,核心是期望代价上界证明,并未涉及 LLM/Agent、静态分析在机器学习系统中的应用、浮点程序分析或贝叶斯程序分析,因此与当前研究画像的核心方向匹配度较低;仅在“形式化验证/概率程序分析”层面有较弱的相邻性。引用 15 inbox
Philipp G. Haselwarter, Kwing Hei Li, Markus de Medeiros, Simon Oddershede Gregersen, Alejandro Aguirre, Joseph Tassarotti, Lars Birkedal
dblp: 2026-09-10crossref: 2026-09-10arxiv: 2026-09-10

AI 速览

一句话:提出 Tachis,一种带概率代价信用(cost credits)的高阶分离逻辑,用于证明概率程序的期望代价上界。

本文提出 Tachis,一种用于推理概率程序期望代价的高阶分离逻辑。受确定性程序时间信用(time credits)的启发,作者引入概率代价信用:一种分离逻辑资源,可支付操作代价,并可按采样分支的权重分配到所有可能分支,从而支持期望代价推理。将代价信用表示为分离逻辑资源赋予 Tachis 极大灵活性与表达力,例如可将多余信用作为势(potential)存入数据结构以支持摊还期望代价分析。该逻辑支持多种代价模型,包括运行时间与熵消耗。作者将 Tachis 应用于证明随机快速排序、哈希表与可合并堆等多种概率算法和数据结构的期望代价上界,所有结果均在 Coq、Iris 与 Coquelicot 实数分析库中机器化验证。

问题
如何推理概率程序的期望代价(如运行时间、熵消耗),并支持摊还分析,是概率程序验证中的难题。
方法
提出 Tachis,一种高阶分离逻辑,其核心是概率代价信用:可支付操作代价并按采样分支权重分配,且能作为势存入数据结构以支持摊还期望代价推理。
评估
在 Coq/Iris/Coquelicot 中机器化验证,并应用于随机快速排序、哈希表、可合并堆等算法与数据结构,证明其期望代价上界。
原文摘要(Abstract)

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.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@article{HaselwarterLMG024,
  title = {Tachis: Higher-Order Separation Logic with Credits for Expected Costs},
  author = {Philipp G. Haselwarter and Kwing Hei Li and Markus de Medeiros and Simon Oddershede Gregersen and Alejandro Aguirre and Joseph Tassarotti and Lars Birkedal},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {8},
  number = {OOPSLA2},
  year = {2024},
  doi = {10.1145/3689753}
}