Verifying Asymptotic Time Complexity of Imperative Programs in Isabelle

Bohua Zhan, Maximilian P. L. Haslbeck
2/5/2018
cs.LO

Official code: bzhan/Imperative_HOL_Time (5 stars, Isabelle, last commit 2021-04-14).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

Verifying asymptotic time complexity of imperative programs in Isabelle.

50Isabelle, Standard MLFeb 4, 20185 years ago

Similar Papers

Cite this paper

@article{zhan2018verifying,
  title  = {Verifying Asymptotic Time Complexity of Imperative Programs in Isabelle},
  author = {Bohua Zhan and Maximilian P. L. Haslbeck},
  year   = {2018},
  eprint = {1802.01336},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1802.01336}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1802.01336.svg)](https://codeofpaper.com/paper/1802.01336)

Discussion