A Framework for Verified Depth-First Algorithms
Keyword(s):
We present a framework in Isabelle/HOL for formalizing variants ofdepth-first search. This framework allows to easily prove non-trivialproperties of these variants. Moreover, verified code in severalprogramming languages including Haskell, Scala and Standard ML can begenerated.In this paper, we present an abstract formalization of depth-first search anddemonstrate how it is refined to an efficiently executable version. Further we use the emptiness-problem of Büchi-automata known from model checking as the motivation to present three Nested DFS algorithms. They are formalized, verified and transformed into executable code using our framework.