分期期望运行时间的一个演算
A Calculus for Amortized Expected Runtimes
摘要:
我们开发了一个最弱的前提条件风格的演算à la Dijkstra的推理摊销的预期运行时间的随机算法访问动态内存-的$\textsf{aert}$演算。我们的演算是真正的定量的,也就是说,它不是布尔值谓词,而是操作实值函数。在研究$\textsf{aert}$演算的过程中,我们研究了用于推理Kaminski等人[2018]的预期运行时的$\textsf{ert}$演算。扩展了处理动态内存的能力,从而实现了关于随机数据结构的组合和局部推理。此扩展采用运行时分离逻辑,Matheja [2020]已经预示了这一点,然后Haslbeck [2021]在Isabelle/HOL中实现。除了Haslbeck的结果,我们进一步证明了稳健的扩展$\textsf{ert}$演算相对于具有可数分支非确定性的操作马尔可夫决策过程模型,提供直观的解释,并提供证明规则,使分离逻辑风格的验证上界预期运行时间。最后,我们将所谓的摊摊还分析的势方法构建到$\textsf{ert}$演算中,从而得到$\textsf{aert}$演算。由于需要能够处理可能为负的势的变化,因此$\textsf{aert}$演算需要能够处理有符号随机变量。我们的解决方案的一个特别令人愉快的特点是,与Kozen [1985]不同,我们为我们的有符号随机变量获得了一个循环规则,此外,与Kaminski和Katoen [2017]不同,$\textsf{aert}$演算不需要相关的技术机器来跟踪随机变量的可积性。最后,我们提出的案例研究,包括一个随机删除插入查找任何集数据结构的正式分析[Brodal等。1996]。
英文摘要:
We develop a weakest-precondition-style calculus à la Dijkstra for reasoning about amortized expected runtimes of randomized algorithms with access to dynamic memory - the $\textsf{aert}$ calculus. Our calculus is truly quantitative, i.e. instead of Boolean valued predicates, it manipulates real-valued functions. En route to the $\textsf{aert}$ calculus, we study the $\textsf{ert}$ calculus for reasoning about expected runtimes of Kaminski et al. [2018] extended by capabilities for handling dynamic memory, thus enabling compositional and local reasoning about randomized data structures. This extension employs runtime separation logic, which has been foreshadowed by Matheja [2020] and then implemented in Isabelle/HOL by Haslbeck [2021]. In addition to Haslbeck's results, we further prove soundness of the so-extended $\textsf{ert}$ calculus with respect to an operational Markov decision process model featuring countably-branching nondeterminism, provide intuitive explanations, and provide proof rules enabling separation logic-style verification for upper bounds on expected runtimes. Finally, we build the so-called potential method for amortized analysis into the $\textsf{ert}$ calculus, thus obtaining the $\textsf{aert}$ calculus. Since one needs to be able to handle changes in potential which can be negative, the $\textsf{aert}$ calculus needs to be capable of handling signed random variables. A particularly pleasing feature of our solution is that, unlike e.g. Kozen [1985], we obtain a loop rule for our signed random variables, and furthermore, unlike e.g. Kaminski and Katoen [2017], the $\textsf{aert}$ calculus makes do without the need for involved technical machinery keeping track of the integrability of the random variables. Finally, we present case studies, including a formal analysis of a randomized delete-insert-find-any set data structure [Brodal et al. 1996].
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。