Mathematical Structures in Computer Science · 2011 · 86 citations · 18 references
Natural SciencesComputer ScienceMathematicsAlgebraSyntaxTheory Of ComputationCategory TheoryData TypesMathematical LogicProof TheoryType SystemsUniversal AlgebraAbstractionCategorical SemanticsCategory-theoretic FoundationsCoqSyntax-semantics Interface In MathematicsType ClassesType Theory
The introduction of first-class type classes in the Coq system calls for a re-examination of the basic interfaces used for mathematical formalisation in type theory. We present a new set of type classes for mathematics and take full advantage of their unique features to make practical a particularly flexible approach that was formerly thought to be unfeasible. Thus, we address traditional proof engineering challenges as well as new ones resulting from our ambition to build upon this development a library of constructive analysis in which any abstraction penalties inhibiting efficient computation are reduced to a minimum. The basis of our development consists of type classes representing a standard algebraic hierarchy, as well as portions of category theory and universal algebra. On this foundation, we build a set of mathematically sound abstract interfaces for different kinds of numbers, succinctly expressed using categorical language and universal algebra constructions. Strategic use of type classes lets us support these high-level theory-friendly definitions, while still enabling efficient implementations unhindered by gratuitous indirection, conversion or projection. Algebra thrives on the interplay between syntax and semantics. The Prolog-like abilities of type class instance resolution allow us to conveniently define a quote function, thus facilitating the use of reflective techniques.
18
Foundations of Constructive Analysis.
Abraham Robinson, Errett Bishop · American Mathematical Monthly · 1968 · 1.3K citations
CATEGORIES FOR THE WORKING MATHEMATICIAN
A. Bowtell · Bulletin of the London Mathematical Society · 1974 · 1.3K citations
Thierry Coquand, Gérard Huet · Information and Computation · 1988 · 1.1K citations · Full text