Relative monads formalised

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 comp...

Full description

Bibliographic Details
Main Authors: Altenkirch, Thorsten, Chapman, James, Uustalu, Tarmo
Format: Article
Published: Università di Bologna 2014
Online Access:https://eprints.nottingham.ac.uk/28455/
Description
Summary: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.