Journal of Formalized Reasoning (Jul 2014)

Relative Monads Formalised

  • Thorsten Altenkirch,
  • James Chapman,
  • Tarmo Uustalu

DOI
https://doi.org/10.6092/issn.1972-5787/4389
Journal volume & issue
Vol. 7, no. 1
pp. 1 – 43

Abstract

Read online

Relative monads are a generalisation of ordinary monads where the underlying functor need not be an endofunctor. In this paper, we describe a formalisation of the basic theory of relative monads in the interactive theorem prover and dependently typed programming language Agda. The formalisation comprises the requisite basic category theory, the central concepts of the theory of relative monads and adjunctions, which are compared to their ordinary counterparts, and two running examples from programming theory.