"Type" is not a type
Albert R. Meyer, Mark B. Reinhold · ACM SIGACT-SIGPLAN Symposium on Principles of Programming Languages (POPL) · 1986
A function has a dependent type when the type of its result depends upon the value of its argument. Dependent types originated in the type theory of intuitionistic mathematics and have reappeared independently in programming languages such as CLU, Pebble, and Russell. Some of these languages make the assumption that there exists a type-of-all-types which is its own type as well as the type of all other types. Girard proved that this approach is inconsistent from the perspective of intuitionistic logic. We apply Girard's techniques to establish that the type-of-all-types assumption creates serious pathologies from a programming perspective: a system using this assumption is inherently not normalizing, term equality is undecidable, and the resulting theory fails to be a conservative extension of the theory of the underlying base types. The failure of conservative extension means that classical reasoning about programs in such a system is not sound.
Cited by 68 works. doi:10.1145/512644.512671 Open-access PDF
Authors
References
- The Lambda Calculus - Its Syntax and Semantics
- Reference Manual for the ADA Programming Language
- Towards a theory of type structure
- CLU Reference Manual
- Natural Deduction: A Proof-Theoretical Study
- An Intuitionistic Theory of Types: Predicative Part
- Types, Abstraction and Parametric Polymorphism.
- Investigations into Logical Deduction
- Abstract types have existential types
- An investigation of a programming language with a polymorphic type structure.