TY - GEN
T1 - Functors are type refinement systems
AU - Melliès, Paul André
AU - Zeilberger, Noam
N1 - Publisher Copyright:
Copyright © 2015 by the Association for Computing Machinery, Inc. (ACM).
PY - 2015/1/14
Y1 - 2015/1/14
N2 - The standard reading of type theory through the lens of category theory is based on the idea of viewing a type system as a category of well-typed terms.We propose a basic revision of this reading: Rather than interpreting type systems as categories, we describe them as functors from a category of typing derivations to a category of underlying terms. Then, turning this around, we explain how in fact any functor gives rise to a generalized type system, with an abstract notion of typing judgment, typing derivations and typing rules. This leads to a purely categorical reformulation of various natural classes of type systems as natural classes of functors. The main purpose of this paper is to describe the general framework (which can also be seen as providing a categorical analysis of refinement types), and to present a few applications. As a larger case study, we revisit Reynolds' paper on "The Meaning of Types" (2000), showing how the paper's main results may be reconstructed along these lines.
AB - The standard reading of type theory through the lens of category theory is based on the idea of viewing a type system as a category of well-typed terms.We propose a basic revision of this reading: Rather than interpreting type systems as categories, we describe them as functors from a category of typing derivations to a category of underlying terms. Then, turning this around, we explain how in fact any functor gives rise to a generalized type system, with an abstract notion of typing judgment, typing derivations and typing rules. This leads to a purely categorical reformulation of various natural classes of type systems as natural classes of functors. The main purpose of this paper is to describe the general framework (which can also be seen as providing a categorical analysis of refinement types), and to present a few applications. As a larger case study, we revisit Reynolds' paper on "The Meaning of Types" (2000), showing how the paper's main results may be reconstructed along these lines.
KW - Category theory
KW - Refinement types
KW - Type theory
U2 - 10.1145/2676726.2676970
DO - 10.1145/2676726.2676970
M3 - Conference contribution
AN - SCOPUS:84939489177
T3 - Conference Record of the Annual ACM Symposium on Principles of Programming Languages
SP - 3
EP - 16
BT - POPL 2015 - Proceedings of the 42nd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages
PB - Association for Computing Machinery
T2 - 42nd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL 2015
Y2 - 12 January 2015 through 18 January 2015
ER -