• DocumentCode
    626295
  • Title

    A Relatively Complete Generic Hoare Logic for Order-Enriched Effects

  • Author

    Goncharov, Sergey ; Schroder, Lutz

  • Author_Institution
    Dept. of Comput. Sci., Friedrich-Alexander-Univ. Erlangen-Nurnberg, Erlangen, Germany
  • fYear
    2013
  • fDate
    25-28 June 2013
  • Firstpage
    273
  • Lastpage
    282
  • 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 postconditions.
  • Keywords
    category theory; programming language semantics; recursive functions; base category; complete generic Hoare logic; cpo structure; domain-theoretic setting; enriched categories; monadic program logics; monadic semantics; monadic side-effecting program; order-enriched effect; order-enriched monad; programming; recursive monadic program; truth-value object; weakest precondition; Algebra; Calculus; Context; Equations; Semantics; Standards; Topology; Hoare logic; computational effects; monads; strongest postconditions; weakest preconditions;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Logic in Computer Science (LICS), 2013 28th Annual IEEE/ACM Symposium on
  • Conference_Location
    New Orleans, LA
  • ISSN
    1043-6871
  • Print_ISBN
    978-1-4799-0413-6
  • Type

    conf

  • DOI
    10.1109/LICS.2013.33
  • Filename
    6571559