Hostname: page-component-6766d58669-zlvph Total loading time: 0 Render date: 2026-05-15T02:22:14.889Z Has data issue: false hasContentIssue false

Universal algebra in UniMath

Published online by Cambridge University Press:  09 December 2024

Gianluca Amato*
Affiliation:
University of Chieti-Pescara, Pescara, Italy
Matteo Calosci
Affiliation:
University of Florence, Florence, Italy
Marco Maggesi
Affiliation:
University of Florence, Florence, Italy
Cosimo Perini Brogi
Affiliation:
IMT School for Advanced Studies Lucca, Lucca, Italy
*
Corresponding author: Gianluca Amato; Email: gianluca.amato@unich.it
Rights & Permissions [Opens in a new window]

Abstract

We present our library for universal algebra in the UniMath framework dealing with multi-sorted signatures, their algebras and the basics for equation systems. We show how to implement term algebras over a signature without resorting to general inductive constructions (currently not allowed in UniMath) still retaining the computational nature of the definition. We prove that our single sorted ground term algebras are instances of homotopy W-types. From this perspective, the library enriches UniMath with a computationally well-behaved implementation of a class of W-types. Moreover, we give neat constructions of the univalent categories of algebras and equational algebras by using the formalism of displayed categories and show that the term algebra over a signature is the initial object of the category of algebras. Finally, we showcase the computational relevance of our work by sketching some basic examples from algebra and propositional logic.

Information

Type
Paper
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2024. Published by Cambridge University Press
Figure 0

Figure 1. Intermodule dependencies of the universal algebra formalisation in UniMath.