{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,2,7]],"date-time":"2025-02-07T05:14:12Z","timestamp":1738905252131,"version":"3.37.0"},"reference-count":48,"publisher":"Cambridge University Press (CUP)","issue":"8","license":[{"start":{"date-parts":[[2024,12,9]],"date-time":"2024-12-09T00:00:00Z","timestamp":1733702400000},"content-version":"unspecified","delay-in-days":99,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["cambridge.org"],"crossmark-restriction":true},"short-container-title":["Math. Struct. Comp. Sci."],"published-print":{"date-parts":[[2024,9]]},"abstract":"<jats:title>Abstract<\/jats:title><jats:p>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.<\/jats:p>","DOI":"10.1017\/s0960129524000367","type":"journal-article","created":{"date-parts":[[2024,12,9]],"date-time":"2024-12-09T06:53:18Z","timestamp":1733727198000},"page":"869-891","update-policy":"https:\/\/doi.org\/10.1017\/policypage","source":"Crossref","is-referenced-by-count":0,"title":["Universal algebra in UniMath"],"prefix":"10.1017","volume":"34","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-6214-5198","authenticated-orcid":false,"given":"Gianluca","family":"Amato","sequence":"first","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0009-0001-5237-7980","authenticated-orcid":false,"given":"Matteo","family":"Calosci","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-4380-7691","authenticated-orcid":false,"given":"Marco","family":"Maggesi","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-7883-5727","authenticated-orcid":false,"given":"Cosimo","family":"Perini Brogi","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"56","published-online":{"date-parts":[[2024,12,9]]},"reference":[{"key":"S0960129524000367_ref4","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9780511760754"},{"key":"S0960129524000367_ref45","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129514000516"},{"key":"S0960129524000367_ref39","doi-asserted-by":"publisher","DOI":"10.1007\/s11225-021-09952-3"},{"key":"S0960129524000367_ref16","doi-asserted-by":"publisher","DOI":"10.1145\/3018610.3018615"},{"key":"S0960129524000367_ref19","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-48256-3_10"},{"key":"S0960129524000367_ref37","doi-asserted-by":"crossref","unstructured":"Moggi, E. (1989). Computational lambda-calculus and monads. In: [1989] Proceedings. Fourth Annual Symposium on Logic in Computer Science, IEEE. 14\u201323.","DOI":"10.1109\/LICS.1989.39155"},{"key":"S0960129524000367_ref20","volume-title":"Model theory","volume":"73","author":"Chang","year":"1992"},{"key":"S0960129524000367_ref32","unstructured":"Lynge, A. (2017). Universal algebra in HoTT, Bachelor\u2019s thesis, Department of Mathematics, Aarhus University."},{"key":"S0960129524000367_ref18","doi-asserted-by":"publisher","DOI":"10.1016\/j.jpaa.2021.106687"},{"key":"S0960129524000367_ref28","first-page":"95","article-title":"An introduction to small scale reflection in Coq","volume":"3","author":"Gonthier","year":"2010","journal-title":"Journal of Formalized Reasoning"},{"key":"S0960129524000367_ref33","unstructured":"Lynge, A. and Spitters, B. (2019). Universal algebra in HoTT. In: TYPES. 2019, 25th International Conference on Types for Proofs and Programs. Available at https:\/\/www.ii.uib.no\/~bezem\/abstracts\/TYPES_2019_paper_7"},{"key":"S0960129524000367_ref31","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2007.02.019"},{"key":"S0960129524000367_ref11","doi-asserted-by":"publisher","DOI":"10.1145\/3497775.3503678"},{"key":"S0960129524000367_ref13","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.2012.21"},{"key":"S0960129524000367_ref36","doi-asserted-by":"publisher","DOI":"10.1016\/S0019-9958(82)80087-9"},{"year":"2011","author":"Aczel","key":"S0960129524000367_ref3"},{"key":"S0960129524000367_ref38","doi-asserted-by":"publisher","DOI":"10.1016\/0890-5401(91)90052-4"},{"key":"S0960129524000367_ref6","unstructured":"Ahrens, B. , Hirschowitz, A. , Lafont, A. and Maggesi, M. (2018). High-Level Signatures and Initial Semantics. In: Ghica, D. and Jung, A. , Leibniz International Proceedings in Informatics (LIPIcs), 27th EACSL Annual Conference on Computer Science Logic (CSL 2018), Dagstuhl, Germany, Schloss Dagstuhl\u2013Leibniz-Zentrum fuer Informatik, vol.119, 4:1\u20134:22."},{"key":"S0960129524000367_ref10","doi-asserted-by":"publisher","DOI":"10.1007\/s10817-018-9474-4"},{"key":"S0960129524000367_ref35","unstructured":"Martin-L\u00f6f, P. 1984. Intuitionistic type theory : notes by Giovanni Sambin of a series of lectures given in Padua, June 1980 \/ Per Martin-L\u00f6f. Studies in proof theory. Lecture notes 0001. Bibliopolis, Napoli."},{"key":"S0960129524000367_ref2","unstructured":"Abel, A. (2021). Birkhoff\u2019s completeness theorem for multi-sorted algebras formalized in Agda. arXiv preprint arXiv:2111.07936"},{"key":"S0960129524000367_ref27","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-24849-1_14"},{"key":"S0960129524000367_ref7","unstructured":"Ahrens, B. , Hirschowitz, A. , Lafont, A. and Maggesi, M. (2019b). Modular Specification of Monads Through Higher-Order Presentations. In: Geuvers, H. , Leibniz International Proceedings in Informatics (LIPIcs), 4th International Conference on Formal Structures for Computation and Deduction (FSCD 2019), Dagstuhl, Germany: Schloss Dagstuhl\u2013Leibniz-Zentrum fuer Informatik, vol. 131, 6:1\u20136:19."},{"key":"S0960129524000367_ref9","article-title":"Displayed categories","volume":"15","author":"Ahrens","year":"2019","journal-title":"Logical Methods in Computer Science"},{"key":"S0960129524000367_ref26","doi-asserted-by":"publisher","DOI":"10.1109\/TIT.1983.1056650"},{"key":"S0960129524000367_ref34","doi-asserted-by":"publisher","DOI":"10.1093\/logcom\/exn085"},{"key":"S0960129524000367_ref21","first-page":"2261","article-title":"Preface to intiutionistic modal logic 2017","volume":"8","author":"de Paiva","year":"2021","journal-title":"FLAP"},{"key":"S0960129524000367_ref40","unstructured":"Perini Brogi, C. (2022). Investigations of proof theory and automated reasoning for non-classical logics. PhD thesis. University of Genoa, Italy."},{"key":"S0960129524000367_ref46","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129516000025"},{"key":"S0960129524000367_ref5","unstructured":"Ahrens, B. , Frumin, D. , Maggesi, M. and van der Weide, N. (2019a). Bicategories in Univalent Foundations. In: Geuvers, H. , Schloss Dagstuhl\u2013Leibniz-Zentrum fuer Informatik, 4th International Conference on Formal Structures for Computation and Deduction (FSCD 2019), Dagstuhl, Germany, Schloss Dagstuhl\u2013Leibniz-Zentrum fuer Informatik, 131, 5:1\u20135:17."},{"key":"S0960129524000367_ref17","first-page":"71","article-title":"Mixing computations and proofs","volume":"9","author":"Beeson","year":"2016","journal-title":"J. Formaliz. Reason"},{"key":"S0960129524000367_ref30","unstructured":"Hugunin, J. (2021). Why Not W? In: de\u2019, Liguoro , Berardi, U. and Altenkirch, T. , Leibniz International Proceedings in Informatics (LIPIcs) , 26th International Conference on Types for Proofs and Programs (TYPES 2020), Dagstuhl, Germany, Schloss Dagstuhl \u2013 Leibniz-Zentrum f\u00fcr Informatik vol. 188, 8:1\u20138:9."},{"volume-title":"Algebraic Specifications in Software Engineering: an Introduction","year":"2012","author":"Van Horebeek","key":"S0960129524000367_ref47"},{"key":"S0960129524000367_ref41","doi-asserted-by":"publisher","DOI":"10.1016\/j.scico.2023.103054"},{"key":"S0960129524000367_ref15","volume-title":"The Lambda Calculus - Its Syntax and Semantics","volume":"103","author":"Barendregt","year":"1985"},{"key":"S0960129524000367_ref8","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-21284-5_14"},{"key":"S0960129524000367_ref23","unstructured":"DeMeo, W. (2021a). The Agda universal algebra library, part 1: foundation, arXiv preprint arXiv:2103.05581."},{"key":"S0960129524000367_ref42","doi-asserted-by":"publisher","DOI":"10.1093\/logcom\/exaa082"},{"key":"S0960129524000367_ref1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-27836-8_8"},{"volume-title":"TYPES. 2015, 21st International Conference on Types for Proofs and Programs","year":"2015","author":"Sattler","key":"S0960129524000367_ref43"},{"key":"S0960129524000367_ref29","doi-asserted-by":"publisher","DOI":"10.1016\/j.entcs.2018.10.010"},{"key":"S0960129524000367_ref24","unstructured":"DeMeo, W. (2021b). The Agda universal algebra library, part 2: structure, arXiv preprint arXiv:2103.09092."},{"key":"S0960129524000367_ref14","doi-asserted-by":"publisher","DOI":"10.1006\/jsco.2001.0455"},{"key":"S0960129524000367_ref48","unstructured":"Voevodsky, V. , Ahrens, B. , Grayson, D. and et al. (2024). UniMath \u2014 a computer-checked library of univalent mathematics. Available at http:\/\/unimath.org."},{"key":"S0960129524000367_ref25","unstructured":"DeMeo, W. and Carette, J. (2021). A machine-checked proof of Birkhoff\u2019s variety theorem in Martin-L\u00f6f type theory. In Basold, H., Cockx, J., and Ghilezan, S., editors, 27th International Conference on Types for Proofs and Programs,TYPES 2021, June 14\u201318, 2021, Leiden, The Netherlands (Virtual Conference), volume 239 of LIPIcs, pp. 4:1\u20134:21. Schloss Dagstuhl - Leibniz-Zentrum f\u00fcr Informatik."},{"key":"S0960129524000367_ref22","first-page":"411","volume-title":"Logic Without Frontiers-Festschrift for Walter Alexandre Carnielli on the Occasion of his 60th Birthday","author":"de Paiva","year":"2011"},{"key":"S0960129524000367_ref12","unstructured":"Amato, G. , Maggesi, M. , Parton, M. and Perini Brogi, C. (2020). Universal algebra in uniMath. In: Workshop on Homotopy Type Theory\/Univalent Foundations, HoTT\/UF2020. Available at https:\/\/hott-uf.github.io\/2020\/HoTTUF_2020_paper_13.pdf"},{"key":"S0960129524000367_ref44","doi-asserted-by":"publisher","DOI":"10.1093\/logcom\/exv042"}],"container-title":["Mathematical Structures in Computer Science"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.cambridge.org\/core\/services\/aop-cambridge-core\/content\/view\/S0960129524000367","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,2,6]],"date-time":"2025-02-06T09:02:51Z","timestamp":1738832571000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.cambridge.org\/core\/product\/identifier\/S0960129524000367\/type\/journal_article"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,9]]},"references-count":48,"journal-issue":{"issue":"8","published-print":{"date-parts":[[2024,9]]}},"alternative-id":["S0960129524000367"],"URL":"https:\/\/doi.org\/10.1017\/s0960129524000367","relation":{},"ISSN":["0960-1295","1469-8072"],"issn-type":[{"type":"print","value":"0960-1295"},{"type":"electronic","value":"1469-8072"}],"subject":[],"published":{"date-parts":[[2024,9]]},"assertion":[{"value":"\u00a9 The Author(s), 2024. Published by Cambridge University Press","name":"copyright","label":"Copyright","group":{"name":"copyright_and_licensing","label":"Copyright and Licensing"}},{"value":"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.","name":"license","label":"License","group":{"name":"copyright_and_licensing","label":"Copyright and Licensing"}},{"value":"This content has been made available to all.","name":"free","label":"Free to read"}]}}