Nothing Special   »   [go: up one dir, main page]

skip to main content
10.1109/LICS.2013.30acmconferencesArticle/Chapter ViewAbstractPublication PageslicsConference Proceedingsconference-collections
Article

Fibred Data Types

Published: 25 June 2013 Publication History

Abstract

Data types are undergoing a major leap forward in their sophistication driven by a conjunction of i) theoretical advances in the foundations of data types, and ii) requirements of programmers for ever more control of the data structures they work with. In this paper we develop a theory of indexed data types where, crucially, the indices are generated inductively at the same time as the data. In order to avoid commitment to any specific notion of indexing we take an axiomatic approach to such data types using fibrations - thus giving us a theory of what we call fibred data types. The genesis of these fibred data types can be traced within the literature, most notably to Dybjer and Setzer's introduction of the concept of induction-recursion. This paper, while drawing heavily on their seminal work for inspiration, gives a categorical reformulation of Dybjer and Setzer's original work which leads to a large number of extensions of induction-recursion. Concretely, the paper provides i) conceptual clarity as to what induction-recursion fundamentally is about, ii) greater expressiveness in allowing not just the inductive-recursive definition of families of sets, or even indexed families of sets, but rather the inductive-recursive definition of a whole host of other structures, iii) a semantics for induction-recursion based not on the specific model of families, but rather an axiomatic model based upon fibrations which therefore encompasses diverse structures (domain theoretic, realisability, games etc) arising in the semantics of programming languages, and iv) technical justification as to why these fibred data types exist using large cardinals from set theory.

References

[1]
M. Abbott, "Categories of containers," Ph.D. dissertation, University of Leicester, 2003.
[2]
M. Abbott, T. Altenkirch, and N. Ghani, "Containers: Constructing strictly positive types," TCS, vol. 342, no. 1, pp. 3 - 27, 2005.
[3]
J. Adámek, S. Milius, and L. Moss, "Initial algebras and terminal coalgebras: a survey," June 29 2010, draft.
[4]
J. Adámek and J. Rosicky, Locally Presentable and Accessible Categories. Prentice-Hall, 1994.
[5]
T. Altenkirch and P. Morris, "Indexed containers," in LICS, 2009, pp. 277-285.
[6]
G. Barthe, V. Capretta, and O. Pons, "Setoids in type theory," Journal of Functional Programming, vol. 13, no. 2, pp. 261-293, 2003.
[7]
R. Bird and O. de Moor, Algebra of programming. Prentice-Hall, 1997.
[8]
J. Chapman, "Type theory should eat itself," Electronic Notes in Theoretical Computer Science, vol. 228, pp. 21-36, 2009.
[9]
J. Chapman, P.-É. Dagand, C. McBride, and P. Morris, "The gentle art of levitation," in ICFP, vol. 45, no. 9. ACM, 2010, pp. 3-14.
[10]
J. Conway, On numbers and games. AK Peters, 2001.
[11]
N. A. Danielsson, "A formalisation of a dependently typed language as an inductive-recursive family," LNCS, vol. 4502, pp. 93-109, 2007.
[12]
P. Dybjer, "Inductive families," Formal aspects of computing, vol. 6, no. 4, pp. 440-465, 1994.
[13]
P. Dybjer and A. Setzer, "A finite axiomatization of inductive-recursive definitions," in TLCA. Springer Verlag, 1999, pp. 129-146.
[14]
P. Dybjer and A. Setzer, "Induction-recursion and initial algebras," Annals of Pure and Applied Logic, vol. 124, no. 1-3, pp. 1-47, 2003.
[15]
P. Dybjer and A. Setzer, "Indexed induction-recursion," Journal of logic and algebraic programming, vol. 66, no. 1, pp. 1-49, 2006.
[16]
N. Gambino and M. Hyland, "Wellfounded trees and dependent polynomial functors," in Types for Proofs and Programs, 2004, pp. 210-225.
[17]
M. Hofmann, "Syntax and semantics of dependent types," in Semantics and Logics of Computation, 1997, pp. 79 - 130.
[18]
B. Jacobs, Categorical Logic and Type Theory, ser. Studies in Logic and the Foundations of Mathematics. North Holland, 1999, vol. 141.
[19]
A. Joyal and I. Moerdijk, Algebraic Set Theory. Cambridge University Press, 1995.
[20]
L. Malatesta, T. Altenkirch, N. Ghani, P. Hancock, and C. McBride, "Small induction-recursion," in TLCA, 2013.
[21]
F. Nordvall Forsberg and A. Setzer, "A finite axiomatisation of inductive-inductive definitions," in Logic, Construction, Computation, 2012, pp. 259 - 287.
[22]
E. Palmgren, "Proof-relevance of families of setoids and identity in type theory," Archive for Mathematical Logic, vol. 51, pp. 35 - 47, 2012.

Cited By

View all
  • (2017)Handling fibred algebraic effectsProceedings of the ACM on Programming Languages10.1145/31580952:POPL(1-29)Online publication date: 27-Dec-2017

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
LICS '13: Proceedings of the 2013 28th Annual ACM/IEEE Symposium on Logic in Computer Science
June 2013
597 pages
ISBN:9780769550206

Sponsors

Publisher

IEEE Computer Society

United States

Publication History

Published: 25 June 2013

Check for updates

Author Tags

  1. data types
  2. fibrations
  3. initial algebras

Qualifiers

  • Article

Acceptance Rates

Overall Acceptance Rate 215 of 622 submissions, 35%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)2
  • Downloads (Last 6 weeks)0
Reflects downloads up to 18 Nov 2024

Other Metrics

Citations

Cited By

View all
  • (2017)Handling fibred algebraic effectsProceedings of the ACM on Programming Languages10.1145/31580952:POPL(1-29)Online publication date: 27-Dec-2017

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media