paper

Recursive Definitions of Monadic Functions

arXiv:1012.4895 · doi:10.4204/EPTCS.43.1

Abstract

Using standard domain-theoretic fixed-points, we present an approach for defining recursive functions that are formulated in monadic style. The method works both in the simple option monad and the state-exception monad of Isabelle/HOL's imperative programming extension, which results in a convenient definition principle for imperative programs, which were previously hard to define. For such monadic functions, the recursion equation can always be derived without preconditions, even if the function is partial. The construction is easy to automate, and convenient induction principles can be derived automatically.

In Proceedings PAR 2010, arXiv:1012.4555

Recursive Definitions of Monadic Functions · wovepaper