A relatively complete generic hoare logic for order-enriched effects

Sergey Goncharov, Lutz Schroder

Research output: Contribution to journalConference articlepeer-review

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 languageEnglish
Article number6571559
Pages (from-to)273-282
Number of pages10
JournalProceedings - Symposium on Logic in Computer Science
DOIs
Publication statusPublished - 2013
Event2013 28th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2013 - New Orleans, LA, United States
Duration: 25 Jun 201328 Jun 2013

Keywords

  • computational effects
  • Hoare logic
  • monads
  • strongest postconditions
  • weakest preconditions

ASJC Scopus subject areas

  • Software
  • General Mathematics

Fingerprint

Dive into the research topics of 'A relatively complete generic hoare logic for order-enriched effects'. Together they form a unique fingerprint.

Cite this