2010
DOI: 10.4204/eptcs.43.1
|View full text |Cite
|
Sign up to set email alerts
|

Recursive Definitions of Monadic Functions

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. Th… Show more

Help me understand this report
View preprint versions

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1
1
1

Citation Types

0
22
0

Year Published

2012
2012
2021
2021

Publication Types

Select...
7
1
1

Relationship

0
9

Authors

Journals

citations
Cited by 29 publications
(22 citation statements)
references
References 17 publications
(17 reference statements)
0
22
0
Order By: Relevance
“…One can hide the lfp in denotational semantics too and allow direct 18 11 Denotational Semantics 2 recursive definitions. This is what Isabelle's partial _ function command does [50,92].…”
Section: Discussionmentioning
confidence: 88%
“…One can hide the lfp in denotational semantics too and allow direct 18 11 Denotational Semantics 2 recursive definitions. This is what Isabelle's partial _ function command does [50,92].…”
Section: Discussionmentioning
confidence: 88%
“…We do not provide explicit rules for recursion combinators, but rely on the standard Isabelle infrastructure, in particular on the partial function package [16]. However, in Section 4, we will provide rules to refine the recursion combinators of the IRF to corresponding recursion combinators of the heap monad.…”
Section: Recursionmentioning
confidence: 99%
“…The prime number generator lazily generates all primes and aborts as soon as the first suitable prime is detected. This is easy to model in Isabelle by defining the generator (suitable prime bz) via partial function [11].…”
Section: Square-free Polynomials In Gf(p)mentioning
confidence: 99%