Abstract
Monads are the basis of a well-established method of encapsulating side-effects in semantics and programming. There have been a number of proposals for monadic program logics in the setting of plain monads, while much of the recent work on monadic semantics is concerned with monads on enriched categories, in particular in domain-theoretic settings, which allow for recursive monadic programs. Here, we lay out a definition of order-enriched monad which imposes cpo structure on the monad itself rather than on base category. Starting from the observation that order-enrichment of a monad induces a weak truth-value object, we develop a generic Hoare calculus for monadic side-effecting programs. For this calculus, we prove relative completeness via a calculus of weakest preconditions, which we also relate to strongest post conditions.
Original language | English |
---|---|
Article number | 6571559 |
Pages (from-to) | 273-282 |
Number of pages | 10 |
Journal | Proceedings - Symposium on Logic in Computer Science |
DOIs | |
Publication status | Published - 2013 |
Event | 2013 28th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2013 - New Orleans, LA, United States Duration: 25 Jun 2013 → 28 Jun 2013 |
Keywords
- computational effects
- Hoare logic
- monads
- strongest postconditions
- weakest preconditions
ASJC Scopus subject areas
- Software
- General Mathematics