English

Natural Transformations as Rewrite Rules and Monad Composition

Logic in Computer Science 2023-06-22 v3

Abstract

Eklund et al. (2002) present a graphical technique aimed at simplifying the verification of various category-theoretic constructions, notably the composition of monads. In this note we take a different approach involving string rewriting. We show that a given tuple (T,μ,η)(T,\mu,\eta) is a monad if and only if TT is a terminal object in a certain category of strings and rewrite rules, and that this fact can be established by proving confluence of the rewrite system. We illustrate the technique on the monad composition problem. We also give a characterization of adjunctions in terms of rewrite categories.

Keywords

Cite

@article{arxiv.1612.07273,
  title  = {Natural Transformations as Rewrite Rules and Monad Composition},
  author = {Dexter Kozen},
  journal= {arXiv preprint arXiv:1612.07273},
  year   = {2023}
}
R2 v1 2026-06-22T17:31:22.433Z