Machine-Checked Categorical Diagrammatic Reasoning

Authors Benoît Guillemet, Assia Mahboubi , Matthieu Piquerez

Thumbnail PDF


  • Filesize: 0.78 MB
  • 19 pages

Document Identifiers

Author Details

Benoît Guillemet
  • École normale supérieure Paris-Saclay, France
Assia Mahboubi
  • Nantes Université, École Centrale Nantes, CNRS, INRIA, LS2N, UMR 6004, France
  • Vrije Universiteit Amsterdam, The Netherlands
Matthieu Piquerez
  • Nantes Université, École Centrale Nantes, CNRS, INRIA, LS2N, UMR 6004, France


The authors would like to thank the anonymous reviewers for their valuable comments and suggestions.

Cite AsGet BibTex

Benoît Guillemet, Assia Mahboubi, and Matthieu Piquerez. Machine-Checked Categorical Diagrammatic Reasoning. In 9th International Conference on Formal Structures for Computation and Deduction (FSCD 2024). Leibniz International Proceedings in Informatics (LIPIcs), Volume 299, pp. 7:1-7:19, Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2024)


This paper describes a formal proof library, developed using the Coq proof assistant, designed to assist users in writing correct diagrammatic proofs, for 1-categories. This library proposes a deep-embedded, domain-specific formal language, which features dedicated proof commands to automate the synthesis, and the verification, of the technical parts often eluded in the literature.

Subject Classification

ACM Subject Classification
  • Theory of computation → Logic and verification
  • Interactive theorem proving
  • categories
  • diagrams
  • formal proof automation


  • Access Statistics
  • Total Accesses (updated on a weekly basis)
    PDF Downloads


  1. Andrea Asperti, Wilmer Ricciotti, Claudio Sacerdoti Coen, and Enrico Tassi. Hints in unification. In TPHOLs, volume 5674 of Lecture Notes in Computer Science, pages 84-98. Springer, 2009. URL:
  2. Krzysztof Bar, Aleks Kissinger, and Jamie Vicary. Globular: an online proof assistant for higher-dimensional rewriting. Log. Methods Comput. Sci., 14(1), 2018. URL:
  3. Andrej Bauer, Jason Gross, Peter LeFanu Lumsdaine, Michael Shulman, Matthieu Sozeau, and Bas Spitters. The HoTT library: a formalization of homotopy type theory in coq. In CPP, pages 164-172. ACM, 2017. URL:
  4. Richard J. Boulton, Andrew D. Gordon, Michael J. C. Gordon, John Harrison, John Herbert, and John Van Tassel. Experience with embedding hardware description languages in HOL. In TPCD, volume A-10 of IFIP Transactions, pages 129-156. North-Holland, 1992. Google Scholar
  5. Luc Chabassier and Bruno Barras. A graphical interface for diagrammatic proofs in proof assistants. Contributed talks in the 29th International Conference on Types for Proofs and Programs (TYPES 2023), 2023. URL:
  6. The Mathlib Community. The lean mathematical library. In CPP, pages 367-381. ACM, 2020. URL:
  7. Nathan Corbyn, Lukas Heidemann, Nick Hu, Chiara Sarti, Calin Tataru, and Jamie Vicary. a proof assistant for finitely-presented globular n-categories. CoRR, abs/2402.13179, 2024. URL:
  8. Burak Ekici and Cezary Kaliszyk. Mac Lane’s Comparison Theorem for the Kleisli Construction Formalized in Coq. Math. Comput. Sci., 14(3):533-549, 2020. URL:
  9. Jason Gross, Adam Chlipala, and David I. Spivak. Experience implementing a performant category-theory library in coq. In ITP, volume 8558 of Lecture Notes in Computer Science, pages 275-291. Springer, 2014. URL:
  10. Benoît Guillemet, Assia Mahboubi, and Matthieu Piquerez. coq-diagram-chasing., 2024.
  11. Markus Himmel. Diagram chasing in interactive theorem proving. Bachelorarbeit. Karlsruher Institut für Technologie, 2020. URL:
  12. Jason Z. S. Hu and Jacques Carette. Formalizing category theory in agda. In CPP, pages 327-342. ACM, 2021. URL:
  13. Ambroise Lafont. A categorical diagram editor to help formalising commutation proofs., 2024. Short paper presented in the Journées Francophones des Langages Applicatifs.
  14. F. William Lawvere and Stephen H. Schanuel. Conceptual mathematics. A first introduction to categories. Cambridge: Cambridge University Press, 2nd ed. edition, 2009. Google Scholar
  15. leanprover-community/mathlib. Condensed mathematics/snake lemma. URL:, 2021.
  16. Saunders Mac Lane. Homology. Class. Math. Berlin: Springer-Verlag, reprint of the 3rd corr. print. 1975 edition, 1995. Google Scholar
  17. Saunders Mac Lane. Categories for the working mathematician, volume 5 of Grad. Texts Math. New York, NY: Springer, 2nd ed edition, 1998. Google Scholar
  18. Assia Mahboubi and Matthieu Piquerez. A first order theory of diagram chasing. In CSL, volume 288 of LIPIcs, pages 38:1-38:19. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2024. URL:
  19. Assia Mahboubi and Enrico Tassi. Mathematical Components. Zenodo, January 2021. URL:
  20. J. Peter May. A concise course in algebraic topology. Chicago, IL: University of Chicago Press, 1999. Google Scholar
  21. Yannis Monbru. Towards automatic diagram chasing. M1 report. École Normale Supérieure Paris-Saclay, 2022. URL:
  22. Matthieu Piquerez. Tropical Hodge theory and applications. PhD thesis, Institut Polytechnique de Paris, November 2021. URL:
  23. Emily Riehl. Category Theory in Context. Dover Publications, 2017. URL:
  24. The Coq Development Team. The coq proof assistant, June 2023. URL:
  25. Amin Timany and Bart Jacobs. Category theory in coq 8.5. In FSCD, volume 52 of LIPIcs, pages 30:1-30:18. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2016. URL:
  26. Vladimir Voevodsky, Benedikt Ahrens, Daniel Grayson, et al. Unimath - A computer-checked library of univalent mathematics. available at URL:
  27. John Wiegley. Category theory 1.0.0., 2022.