From signatures to monads in UniMath
Authors:
- Benedikt AhrensBABenedikt Ahrens
- Ralph MatthesRMRalph Matthes
- Anders MörtbergAMAnders Mörtberg
Preprint
Abstract
The term UniMath refers both to a formal system for mathematics, as well as a computer-checked library of mathematics formalized in that system. The UniMath system is a core dependent type theory, augmented by the univalence axiom. The system is kept as small as possible in order to ease verification of it—in particular, general inductive types are not part of the system. In this work, we partially remedy the lack of inductive types by constructing some datatypes and their associated induction principles from other type constructors. This involves a formaliza-tion of a category-theoretic result on the construction of initial algebras, as well as a mechanism to conveniently use the datatypes obtained. We also connect this construction to a previous formalization of substitution for languages with variable binding. Altogether, we construct a framework that allows us to concisely specify, via a simple notion of binding signature, a language with variable binding. From such a specification we obtain the datatype of terms of that language, equipped with a certified monadic substitution operation and a suitable recursion scheme. Using this we formalize the untyped lambda calculus and the raw syntax of Martin-Löf type theory.Keywords
All Related Versions
This publication has 10 references indexed in Scilit:
- An experimental library of formalized Mathematics based on the univalent foundationsMathematical Structures in Computer Science, 2015
- Univalent categories and the Rezk completionMathematical Structures in Computer Science, 2015
- A C-system defined by a universe categoryTheory and Applications of Categories, 2015
- Modules over monads and initial semanticsInformation and Computation, 2010
- Substitution in non-wellfounded syntax with variable bindingTheoretical Computer Science, 2004
- Generalised folds for nested datatypesFormal Aspects of Computing, 1999
- de Bruijn notation as a nested datatypeJournal of Functional Programming, 1999
- Substitution: A formal methods case study using monads and transformationsScience of Computer Programming, 1994
- Generalised algebraic theories and contextual categoriesAnnals of Pure and Applied Logic, 1986
- C-system of a module over a monad on sets 1