用于期望成本分析的Iris
An Iris for Expected Cost Analysis
AI总结:
本文提出ExpIris,一个基于Iris的参数化分离逻辑框架,通过期望势能方法支持概率程序的摊还期望成本分析,并兼顾正确性推理,成功验证了快速排序和概率二进制计数器的期望运行时。
摘要:
我们提出了ExpIris,一个用于概率程序(摊还)期望成本分析的分离逻辑框架。ExpIris基于Iris,在语言和成本模型上是参数化的,支持命令式和函数式语言、并发、高阶函数以及高阶状态。ExpIris还提供了对正确性推理的强力支持,这极大地简化了那些期望成本依赖于其高层行为的程序的分析。为了在Iris中实现期望成本推理,我们建立在期望势能方法之上。该方法提供了一种“货币”,可用于支付后续操作,并且每当存在概率选择时,可以分布在各个概率分支上,由于期望的线性性质而保持期望值不变。我们通过验证快速排序实现的期望运行时和概率二进制计数器的摊还期望运行时来演示ExpIris。
英文摘要:
We present ExpIris, a separation logic framework for the (amortized) expected cost analysis of probabilistic programs. ExpIris is based on Iris, parametric in the language and the cost model, and supports both imperative and functional languages, concurrency, higher-order functions and higher-order state. ExpIris also offers strong support for correctness reasoning, which greatly eases the analysis of programs whose expected cost depends on their high-level behavior. To enable expected cost reasoning in Iris, we build on the expected potential method. The method provides a kind of "currency" that can be used for paying for later operations, and can be distributed over the probabilistic cases whenever there is a probabilistic choice, preserving the expected value due to the linearity of expectations. We demonstrate ExpIris by verifying the expected runtime of a quicksort implementation and the amortized expected runtime of a probabilistic binary counter.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。