Constructing Strictly Positive Families

In order to represent, compute and reason with advanced data types one must go beyond the traditional treatment of data types as being inductive types and, instead, consider them as inductive families. Strictly positive types (SPTs) form a grammar for defining inductive types and, consequently, a fundamental question in the the theory of inductive families is what constitutes a corresponding grammar for inductive families. This paper answers this question in the form of strictly positive families or SPFs. We show that these SPFs can be used to represent and compute with a variety of advanced data types, that generic programs can naturally be written over the universe of SPFs and that SPFs have a normal form in terms of indexed containers which are based upon the shapes and positions metaphor. Finally, we validate ou computational perspective by implementing SPFs in the programming language Epigram and, further, comment on how SPFs provide a meta-language for Epigram's data types.

[1]  Peter Morris,et al.  Indexed Containers , 2009, 2009 24th Annual IEEE Symposium on Logic In Computer Science.

[2]  Thorsten Altenkirch,et al.  Containers: Constructing strictly positive types , 2005, Theor. Comput. Sci..

[3]  Eugenio Moggi Applied semantics: Selected topics , 2005, Theor. Comput. Sci..

[4]  E. Van Gestel,et al.  Programming in Martin-Löf's Type Theory: an Introduction : Bengt Nordström, Kent Petersson and Jan M. Smith Intl. Series of Monographs on Computer Science, Vol. 7, Oxford Science Publications, Oxford, 1990, 231 pages , 1991 .

[5]  Peter Morris,et al.  Exploring the Regular Tree Types , 2004, TYPES.

[6]  Conor McBride,et al.  The view from the left , 2004, Journal of Functional Programming.

[7]  Peter Dybjer,et al.  Universes for Generic Programs and Proofs in Dependent Type Theory , 2003, Nord. J. Comput..

[8]  James McKinna,et al.  Why dependent types matter , 2006, POPL '06.

[9]  Thorsten Altenkirch,et al.  for Data: Differentiating Data Structures , 2005, Fundam. Informaticae.

[10]  Peter Dybjer,et al.  Indexed induction-recursion , 2001, J. Log. Algebraic Methods Program..

[11]  Thorsten Altenkirch,et al.  Towards Observational Type Theory , 2006 .

[12]  Martin Hyland,et al.  Wellfounded Trees and Dependent Polynomial Functors , 2003, TYPES.

[13]  C. Barry Jay,et al.  A Semantics for Shape , 1995, Sci. Comput. Program..

[14]  Per Martin-Löf,et al.  Intuitionistic type theory , 1984, Studies in proof theory.