23
views
0
recommends
+1 Recommend
0 collections
    0
    shares
      • Record: found
      • Abstract: found
      • Article: not found

      Type classes for mathematics in type theory

      ,
      Mathematical Structures in Computer Science
      Cambridge University Press (CUP)

      Read this article at

      ScienceOpenPublisher
      Bookmark
          There is no author summary for this article yet. Authors can add summaries to their articles on ScienceOpen to make them more accessible to a non-specialist audience.

          Abstract

          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.

          Related collections

          Most cited references20

          • Record: found
          • Abstract: not found
          • Book: not found

          Interactive Theorem Proving and Program Development

            Bookmark
            • Record: found
            • Abstract: not found
            • Article: not found

            The calculus of constructions

              Bookmark
              • Record: found
              • Abstract: not found
              • Book Chapter: not found

              First-Class Type Classes

                Bookmark

                Author and article information

                Journal
                Mathematical Structures in Computer Science
                Math. Struct. Comp. Sci.
                Cambridge University Press (CUP)
                0960-1295
                1469-8072
                August 2011
                July 01 2011
                August 2011
                : 21
                : 4
                : 795-825
                Article
                10.1017/S0960129511000119
                eae6c724-ebe1-402d-ba66-a0e3bd0731e9
                © 2011

                https://www.cambridge.org/core/terms

                History

                Comments

                Comment on this article