1 Is Impredicativity Implicitly Implicit? 2 Stefan Monnier 3 Université de Montréal - DIRO, Montréal, Canada 4
[email protected] 5 Nathaniel Bos 6 McGill University - SOCS, Montréal, Canada 7
[email protected] 8 Abstract 9 Of all the threats to the consistency of a type system, such as side effects and recursion, impredicativity 10 is arguably the least understood. In this paper, we try to investigate it using a kind of blackbox 11 reverse-engineering approach to map the landscape. We look at it with a particular focus on its 12 interaction with the notion of implicit arguments, also known as erasable arguments. 13 More specifically, we revisit several famous type systems believed to be consistent and which do 14 include some form of impredicativity, and show that they can be refined to equivalent systems where 15 impredicative quantification can be marked as erasable, in a stricter sense than the kind of proof 16 irrelevance notion used for example for Prop terms in systems like Coq. 17 We hope these observations will lead to a better understanding of why and when impredicativity can 18 be sound. As a first step in this direction, we discuss how these results suggest some extensions of 19 existing systems where constraining impredicativity to erasable quantifications might help preserve 20 consistency. 21 2012 ACM Subject Classification Theory of computation → Type theory; Software and its engi- 22 neering → Functional languages; Theory of computation → Higher order logic 23 Keywords and phrases Impredicativity, Pure type systems, Inductive types, Erasable arguments, 24 Proof irrelevance, Implicit arguments, Universe polymorphism 25 Digital Object Identifier 10.4230/LIPIcs..