Mac Lane's Comparison Theorem for the Kleisli Construction Formalized in Coq


Creative Commons License

Ekici B., Kaliszyk C.

MATHEMATICS IN COMPUTER SCIENCE, cilt.14, sa.3, ss.533-549, 2020 (ESCI) identifier identifier

  • Yayın Türü: Makale / Tam Makale
  • Cilt numarası: 14 Sayı: 3
  • Basım Tarihi: 2020
  • Doi Numarası: 10.1007/s11786-020-00450-8
  • Dergi Adı: MATHEMATICS IN COMPUTER SCIENCE
  • Derginin Tarandığı İndeksler: Emerging Sources Citation Index (ESCI), Scopus, INSPEC, zbMATH
  • Sayfa Sayıları: ss.533-549
  • İstanbul Kültür Üniversitesi Adresli: Evet

Özet

(co)Monads are used to encapsulate impure operations of a computation. A (co)monad is determined by an adjunction and further determines a specific type of adjunction called the (co)Kleisli adjunction. Mac Lane introduced the comparison theorem which allows comparing these adjunctions bridged by a (co)monad through a unique comparison functor. In this paper we specify the foundations of category theory in Coq and show that the chosen representations are useful by certifying Mac Lane's comparison theorem and its basic consequences. We also show that the foundations we use are equivalent to the foundations by Timany. The formalization makes use of Coq classes to implement categorical objects and the axiom uniqueness of identity proofs to close the gap between the contextual equality of objects in a categorical setting and the judgmental Leibniz equality of Coq. The theorem is used by Duval and Jacobs in their categorical settings to interpret the state effect in impure programming languages.