Reference. A Machine-Checked Proof of Birkhoff’s Variety Theorem in Martin-Löf Type Theory
The Agda Universal Algebra Library is a project aimed at formalizing the foundations of universal algebra, equational logic and model theory in dependent type theory using Agda. In this paper we draw from many components of the library to present a self-contained, formal, constructive proof of Birkhoff’s HSP theorem in Martin-Löf dependent type theory. This achieves one of the project’s initial goals: to demonstrate the expressive power of inductive and dependent types for representing and reasoning about general algebraic and relational structures by using them to formalize a significant theorem in the field.
Cite
Cited by (1)
Algebraic Effects Meet Hoare Logic in Cubical Agda kidney-2024-algebraic
This paper presents a novel formalisation of algebraic effects with equations in Cubical Agda. Unlike previous work in the literature that employed setoids to deal with equations, the library presented here uses quotient types to faithfully encode the type of terms quotiented by laws. Apart from tools for equational reasoning, the library also provides an effect-generic Hoare logic for algebraic effects, which enables reasoning about effectful programs in terms of their pre- and post-conditions. A particularly novel aspect is that equational reasoning and Hoare-style reasoning are related by an elimination principle of Hoare logic.
Cites 26 works (2 here)
External (24)
- Birkhoff's Completeness Theorem for Multi-Sorted Algebras Formalized in Agda (2021)
- Universal Algebra in UniMath (2021)
- Agda Tools Documentation section on Pattern matching and equality (2021)
- The Agda Universal Algebra Library (agda-algebras), ver. 2.0.1 (2021)
- The Agda Standard Library (2021)
- Agda Language Reference section on Safe Agda (2021)
- Martin-Löf dependent type theory (nLab) (2021)
- A Machine-checked Proof of Birkhoff's Variety Theorem in Martin-Löf Type Theory (CoRR) (2021)
- Agda Language Reference (2021)
- Agda Language Reference section on Axiom K (2021)
- Constructive Mathematics (nLab) (2021)
- The Agda Universal Algebra Library, ver. 1.0.0 (2020)
- Introduction to Univalent Foundations of Mathematics with Agda (2019)
- Introduction to Univalent Foundations of mathematics with Agda (lecture notes, web) (2019)
- Universal Algebra in HoTT (2019)
- Formalization of Universal Algebra in Agda (2018)
- Universal Algebra: Fundamentals and Selected Topics (2012)
- Type classes for mathematics in type theory† (2011)
- Towards a practical programming language based on dependent type theory (PhD thesis) (2007)
- The Coq proof assistant reference manual (version 8.0) (2004)
- Universal Algebra in Type Theory (1999)
- Birkhoff theorem for many sorted algebras (1999)
- Foundations for Programming Languages (1996)
- On the Structure of Abstract Algebras (1935)