• DocumentCode
    626319
  • Title

    A Categorical Treatment of Ornaments

  • Author

    Dagand, Pierre-Evariste ; McBride, Conor

  • Author_Institution
    Univ. of Strathclyde, Glasgow, UK
  • fYear
    2013
  • fDate
    25-28 June 2013
  • Firstpage
    530
  • Lastpage
    539
  • Abstract
    Ornaments aim at taming the multiplication of special-purpose datatypes in dependently typed programming languages. In type theory, purpose is logic. By presenting datatypes as the combination of a structure and a logic, ornaments relate these special-purpose datatypes through their common structure. In the original presentation, the concept of ornament was introduced concretely for an example universe of inductive families in type theory, but it was clear that the notion was more general. This paper digs out the abstract notion of ornaments in the form of a categorical model. As a necessary first step, we abstract the universe of datatypes using the theory of polynomial functors. We are then able to characterise ornaments as cartesian morphisms between polynomial functors. We thus gain access to powerful mathematical tools that shall help us understand and develop ornaments. We shall also illustrate the adequacy of our model. Firstly, we rephrase the standard ornamental constructions into our framework. Thanks to its conciseness, we gain a deeper understanding of the structures at play. Secondly, we develop new ornamental constructions, by translating categorical structures into type theoretic artefacts.
  • Keywords
    category theory; formal logic; polynomials; programming languages; type theory; categorical model; categorical structures; inductive families; logic; ornament categorical treatment; polynomial functor morphism; polynomial functor theory; special-purpose datatype multiplication; standard ornamental constructions; type theoretic artifact; typed programming languages; Containers; Indexes; Polynomials; Reactive power; Shape; Syntactics; Vectors; Type theory; category theory; inductive families;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Logic in Computer Science (LICS), 2013 28th Annual IEEE/ACM Symposium on
  • Conference_Location
    New Orleans, LA
  • ISSN
    1043-6871
  • Print_ISBN
    978-1-4799-0413-6
  • Type

    conf

  • DOI
    10.1109/LICS.2013.60
  • Filename
    6571586