Reference. Just do it: simple monadic equational reasoning

Jeremy Gibbons, Ralf Hinze · · effects · PDF · DOI · pldb

Cite

Cite as @gibbons-2011-just (helia, typst) · \cite{gibbons-2011-just} (LaTeX)
BibTeX
bibtex · 1 line
@inproceedings{gibbons-2011-just, series={ICFP ’11}, title={Just do it: simple monadic equational reasoning}, url={http://dx.doi.org/10.1145/2034773.2034777}, DOI={10.1145/2034773.2034777}, booktitle={Proceedings of the 16th ACM SIGPLAN international conference on Functional programming}, publisher={ACM}, author={Gibbons, Jeremy and Hinze, Ralf}, year={2011}, month=Sept, pages={2–14}, collection={ICFP ’11} }
hayagriva YAML (typst)
yaml · 14 lines
gibbons-2011-just:
  type: article
  title: 'Just do it: simple monadic equational reasoning'
  author:
  - Gibbons, Jeremy
  - Hinze, Ralf
  date: 2011-09
  page-range: 2-14
  serial-number:
    doi: 10.1145/2034773.2034777
  parent:
    type: proceedings
    title: Proceedings of the 16th ACM SIGPLAN international conference on Functional programming
    publisher: ACM
Cited by (6)

Handling Higher-Order Effectful Operations with Judgemental Monadic Laws yang-2026-handling

This paper studies the design of programming languages with handlers of higher-order effectful operations - effectful operations that may take in computations as arguments or return computations as output. We present and analyse a core calculus with higher-kinded impredicative polymorphism, handlers of higher-order effectful operations, and optionally general recursion. The distinctive design choice of this calculus is that handlers are carried by lawless raw monads, while the computation judgements still satisfy the monadic laws judgementally. We present the calculus with a logical framework and give denotational models of the calculus using realizability semantics. We prove closed-term canonicity and parametricity for the recursion-free fragment of the language using synthetic Tait computability and a novel form of the ⊤⊤-lifting technique.
PDF · DOI · arXiv · pldb

Algebraic Effects Meet Hoare Logic in Cubical Agda kidney-2024-algebraic

This paper presents a novel formalisation of algebraic effects with equations in Cubical Agda. Unlike previous work in the literature that employed setoids to deal with equations, the library presented here uses quotient types to faithfully encode the type of terms quotiented by laws. Apart from tools for equational reasoning, the library also provides an effect-generic Hoare logic for algebraic effects, which enables reasoning about effectful programs in terms of their pre- and post-conditions. A particularly novel aspect is that equational reasoning and Hoare-style reasoning are related by an elimination principle of Hoare logic.
PDF · DOI · pldb

Formalized High Level Synthesis with Applications to Cryptographic Hardware harrison-2023-formalized

DOI

An Algebraic Theory for Shared-State Concurrency dvir-2022-an

DOI · pldb

Reasoning about effect interaction by fusion yang-2021-reasoning

Effect handlers can be composed by applying them sequentially, each handling some operations and leaving other operations uninterpreted in the syntax tree. However, the semantics of composed handlers can be subtle—it is well known that different orders of composing handlers can lead to drastically different semantics. Determining the correct order of composition is a non-trivial task. To alleviate this problem, this paper presents a systematic way of deriving sufficient conditions on handlers for their composite to correctly handle combinations, such as the sum and the tensor, of the effect theories separately handled. These conditions are solely characterised by the clauses for relevant operations of the handlers, and are derived by fusing two handlers into one using a form of fold/build fusion and continuation-passing style transformation. As case studies, the technique is applied to commutative and distributive interaction of handlers to obtain a series of results about the interaction of common handlers: (a) equations respected by each handler are preserved after handler composition; (b) handling mutable state before any handler gives rise to a semantics in which state operations are commutative with any operations from the latter handler; (c) handling the writer effect and mutable state in either order gives rise to a correct handler of the commutative combination of these two theories.
PDF · DOI · pldb

Algorithmics bird-2021-algorithmics

DOI
Cites 40 works (1 here)
With notes (1)

Categories for the Working Mathematician maclane_1971

Web
External (39)
gibbons-2011-just reference entries/refs/gibbons-2011-just/gibbons-2011-just.hel