arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1802.01336cs.LO
收藏

Isabelle中命令程序的渐近时间复杂度

Verifying Asymptotic Time Complexity of Imperative Programs in Isabelle

Bohua Zhan, Maximilian P. L. Haslbeck

摘要:

我们提出了一个框架,在Isabelle验证渐近时间复杂度的命令式程序。我们建立在命令HOL及其分离逻辑的扩展之上,以包括运行时间。除了基本的参数,我们的框架能够处理先进的技术,时间复杂度分析,如使用Akra-Bazzi定理和摊还分析。各种自动化的建立和纳入自动2证明的原因与时间信用的分离逻辑,并得出渐近行为的功能。作为案例研究,我们验证了渐进的时间复杂度(除了功能的正确性)的命令式算法和数据结构,如中位数的中位数选择,Karatsuba的算法,和splay树。

英文摘要:

We present a framework in Isabelle for verifying asymptotic time complexity of imperative programs. We build upon an extension of Imperative HOL and its separation logic to include running time. In addition to the basic arguments, our framework is able to handle advanced techniques for time complexity analysis, such as the use of the Akra-Bazzi theorem and amortized analysis. Various automation is built and incorporated into the auto2 prover to reason about separation logic with time credits, and to derive asymptotic behavior of functions. As case studies, we verify the asymptotic time complexity (in addition to functional correctness) of imperative algorithms and data structures such as median of medians selection, Karatsuba's algorithm, and splay trees.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑