Non-Derivability Results in Polymorphic Dependent Type Theory Herman Geuvers Abstract In the pure Calculus of Constructions (CC) one can define data types and function over these, and there is a powerful higher order logic to reason over these functions and data types [ 11 , 6 ] . This is due to the combination of impredicativity and dependent types, and most of these features can already be observed in polymorphic (second order) dependent type theory λ ​ P ​ 2 \lambda P2 . The impredicative encoding of data types (in λ ​ P ​ 2 \lambda P2 or CC) is powerful but not fully satisfactory: for example, the induction principle is not provable. As a matter of fact, it can be shown that induction is not provable for whatever possible representation of data types [ 13 ] . In [ 2 ] , Awodey, Frey and Speight show that in an extension of λ ​ P ​ 2 \lambda P2 with a Σ \Sigma -types, identity types with uniqueness of identity proofs and function extensionality, it is possible to define data types for which the induction principle is provable. In [ 9 ] it has been shown that in this extension of λ ​ P ​ 2 \lambda P2 , also quotient types can be defined with the proper induction principle, and, using quotient types, coinductive types can be defined with the proper coinduction principle. This leaves various questions open: Are quotient types with induction principle not definable in the original λ ​ P ​ 2 \lambda P2 ? And how about coinduction types, is it impossible to get a strong coinduction principle in λ ​ P ​ 2 \lambda P2 ? Looking at it from the other side: which of the extensions used in [ 2 ] are really needed to make induction and coinduction work? In this paper, we contribute partial answers to these questions: parametric quotient types are not definable in λ ​ P ​ 2 \lambda P2 and the well-known definable stream type does not have a coinduction principle. For the latter question we show that, if we just extend λ ​ P ​ 2 \lambda P2 with Σ \Sigma -types and identity types with uniqueness of identity proofs, we still cannot prove an induction principle for the natural numbers. So function extensionality is crucial in making induction provable. We show these results by studying models of λ ​ P ​ 2 \lambda P2 where the types representing these principles are empty, so these models act as counter models to the derivability of the principles. Most of the well-studied models for polymorphic type theory are parametric or in any case quite extensional [ 3 , 22 , 15 ] , so in these models, induction and coinduction just hold. An interesting exception is work by Berardi and co-authors [ 7 , 4 , 8 ] , who describe non-parametric models of (non-dependent) polymorphic type theory. The models we study here are of a more syntactic nature and have been described and studied in [ 13 , 12 ] . They can be seen as a collection of term models where specific choices can be made to construct counter models. 1 1 1 Acknowledgments: Thanks to the referees for their useful and constructive comments. 1 Introduction This paper is dedicated to Stefano Berardi, to celebrate his 40th 2 2 2 in the appropriate numeral system birthday, and maybe even more to celebrate the numerous scientific contributions he has made to logic and type theory. I met Stefano for the first time in the fall of 1988, in Pisa where he came to visit from Torino. I was spending the fall semester in Pisa, and Stefano stayed with us in Tirrenia a number of nights. I was immediately impressed by his broad knowledge, his deep insights and his original ideas and I have been ever since. On top of that, Stefano is a very nice person who generously shares his knowledge, a true scientist. Thank you very much and congratulations Stefano! The content of the present paper goes back to research that Stefano was doing for his PhD. thesis and soon after that (e.g. see [ 6 ] ), looking into representing data types, functions and reasoning principles over them in the Calculus of Constructions. It was noticed, and it was kind of folklore at the time, that one needs to add induction principles because they are not derivable. Later I formally proved that indeed, induction is not derivable, for whatever smart encoding of the data types you use [ 13 ] . The present paper continues this thread by showing that various other reasoning principles are not derivable. To simplify the work we limit ourselves to second order dependent type theory as opposed to the full Calculus of Constructions, but we are confident the results can be extended straightforwardly. In second order dependent type theory, \lambda P2 , we can encode all kinds of inductive data types, like the types of natural numbers, lists, trees etcetera (see [ 14 ] for a general exposition), which yields e.g. the well-known polymorphic Church numerals as interpretation of the natural numbers. This encoding already works for non-dependent second order type theory (the well-known polymorphic \lambda -calculus \lambda 2 ), but dependent types give the extra advantage that we can also state the induction principle for the inductive data types. For example, if {\rm Nature} is the well-known type of polymorphic Church numerals with zero {\sf O} and successor function {\sf succ} 3 3 3 As a reminder: {\rm Nature}:=\Pi\alpha:\star.\ \alpha\to(\alpha\to\alpha)\to\alpha , {\sf succ}:=\lambda y:{\rm Nature}.\ \lambda\alpha:\star.\ \lambda x:\alpha.\ \lambda f:\alpha\to\alpha.\ f\ (y\ \alpha\ \ x\ f) and {\sf O}:=\lambda\alpha:\star.\ \lambda x:\alpha.\ \lambda f:\alpha\to\alpha.\ x , then the induction principle is represented by the type {\sf ind} defined as {\sf ind}:=\Pi P:{\rm Nature}\rightarrow\star.\ P\ {\sf O}\rightarrow(\Pi y:{\rm Nature}.\ P\ y\rightarrow P\ ({\sf succ}\ y))\rightarrow\Pi x:{\rm Nature}.\ P\ x. Here, \star denotes the ‘kind’ (universe) of all types, which captures both the sets ( {\rm Nature}:\star ) and the propositions ( {\sf ind}:\star ). The induction principle for {\rm Nature} is said to be derivable in \lambda P2 if there is a closed term of type {\sf ind} . It is well-known that the induction principle for {\rm Nature} is not derivable in \lambda P2 . A proof specifically for {\rm Nature} , is given in [ 25 ] , using realizability semantics, and also in [ 23 ] using PER models. But the situation is more general, as we have shown in [ 13 ] : If N is a type with 0:N and s:N\rightarrow N , then there cannot be a (closed) term of type \Pi P:N\rightarrow\star.\ P\ {\sf O}\rightarrow(\Pi y:N.\ P\ y\rightarrow P\ ({\sf succ}\ y))\rightarrow\Pi x:N.\ P\ x . So there are no smart ways to encode the natural numbers in \lambda P2 as an initial algebra. An obvious smart encoding would be by relativizing to the “inductive natural numbers”, internalizing the induction principle into the notion of a natural number. Then one would define N as follows. \displaystyle{\sf Ind}\ x \displaystyle:= \displaystyle\Pi P:{\rm Nature}\rightarrow\star.\ P\ {\sf O}\rightarrow(\Pi y:{\rm Nature}.\ P\ y\rightarrow P\ ({\sf succ}\ y))\rightarrow P\ x, \displaystyle N \displaystyle:= \displaystyle\exists x:{\rm Nature}.\ {\sf Ind}\ x. Here, \exists is defined in the well-known second order way: \exists x:\sigma.\tau:=\Pi\alpha:\star.\ (\Pi x:\sigma.\ \tau\rightarrow\alpha)\rightarrow\alpha . By using the definable \exists -elim and \exists -intro rules, it is now easy to define \underline{{\sf O}} , \underline{{\sf succ}} for this encoding: \displaystyle\underline{{\sf O}} \displaystyle:= \displaystyle\lambda\alpha:\star.\ \lambda h:\Pi x:{\rm Nature}.\ {\sf Ind}\ x\rightarrow\alpha.\ h\ {\sf O}\ q_{{\sf O}}, \displaystyle\underline{{\sf succ}} \displaystyle:= \displaystyle\lambda n:N.\ n\ N\ \big(\lambda x:{\rm Nature}.\ \lambda p:{\sf Ind}\ x. \displaystyle\lambda\alpha:\star.\ \lambda h:\Pi y:{\rm Nature}.\ {\sf Ind}\ y\rightarrow\alpha).\ h\ ({\sf succ}\ x)\ (q_{{\sf succ}}\ x\ p)\big), where q_{{\sf O}} and q_{{\sf succ}} are terms such that q_{{\sf O}}:{\sf Ind}\ {\sf O} and q_{{\sf succ}}:\Pi x:{\rm Nature}.\ {\sf Ind}\ x\rightarrow{\sf Ind}\ ({\sf succ}\ x) . But again, also for these natural numbers, induction is not provable in \lambda P2 , as [ 13 ] proves. In [ 2 ] , Awodey, Frey and Speight have shown that in a moderate extension of \lambda P2 , with concepts inspired from Homotopy Type Theory, induction is provable for natural numbers, taking the “relativized” definition above, with strong \Sigma -types instead of the definable (weaker) \exists -types. In fact, [ 2 ] relativizes with a different predicate called {\sf Lim} which is a direct translation of the concept of initial algebra: {\sf Lim} singles out the terms of type N that turn N into a type satisfying the initial algebra property. In [ 9 ] we have shown that one can relativize in various ways, by translating the categorical initiality property. The type theory of [ 2 ] that induction can be proven in is the extension of \lambda P2 with 1. Identity types, 2. Uniqueness of Identity Proofs ( UIP ), 3. Function extensionality ( FunExt ), 4. \Sigma -types. In [ 9 ] we have shown that in this extension of \lambda P2 , also quotient types (as initial algebras) can be defined with the proper induction principle, and using those, coinductive types can be defined with the proper coinduction principle. This also raises some questions: can quotient types not already be defined in \lambda P2 itself? And what about coinductive types, are the definable coinductive type (e.g. streams) not already terminal co-algebras? And if not, isn’t there a ‘smart’ encoding of terminal co-algebras in \lambda P2 ? From the other side, one may wonder which of the extensions of \lambda P2 are really needed to obtain induction: is function extensionality really needed? Are \Sigma -types really needed? 1.1 Overview of main results In the present paper we give some partial answers to the questions, and we do so mainly by syntactic analysis and by constructing counter-models : we construct a model of \lambda P2 where there are no parametric quotient types, that is, quotient where the quotient operations are polymorphic. We also show a model in which the well-known (polymorphically definable) stream data type is not a terminal co-algebra. Finally, we study the extension of \lambda P2 with \Sigma -types and identity types (as in [ 2 ] ) and we give a model of these where UIP holds, but there is no induction for natural numbers. The models we construct are of a syntactical nature, variations on the models that we considered in [ 13 ] to show that induction is not provable in “vanilla \lambda P2 ”. In that respect, this work can be seen in the style of Stefano Berardi, who has also studied more syntactical models, e.g. models of polymorphic \lambda calculus that are not parametric [ 7 , 4 , 8 ] , that are based on models of untyped \lambda calculus. Our models are similar in spirit, but based on arbitrary weakly extensional combinatory algebras , WECA. The prime example of a WECA is the set of (open) untyped \lambda -terms modulo \beta or \beta\eta , so we will use that a lot. 2 Second order dependent type theory Second order dependent type theory, \lambda P2 , extends polymorphic \lambda -calculus ( \lambda 2 or system F ) with dependent types and it was first introduced as such in [ 18 ] . It is a subsystem of the Calculus of Constructions ( [ 11 ] , [ 10 ] ), where the operations of forming type constructors are restricted to second order ones. (So, there are type constructors of kind \sigma\rightarrow\star , but not of kind (\sigma\rightarrow\star)\rightarrow\star .) It can also be seen as an extension of the first order system \lambda P , where quantification over type constructors has been added. For an extensive discussion on these systems and their relations, we refer to [ 5 ] or [ 20 ] . Here we just define the system \lambda P2 and give some initial motivation for it. Definition 2.1 . The set of pseudo-terms , {\sf T} , of the type system \lambda P2 is given by {\sf T}::=\star\ |\ {\sf Kind}\ |\ {\rm Var}\ |\ (\Pi{\rm Var}:{\sf T}.\ {\sf T})\ |\ (\lambda{\rm Var}:{\sf T}.\ {\sf T})\ |\ {\sf T}\ {\sf T}, where {\rm Var} is a countable set of variables. On {\sf T} we have the usual notions of \beta -reduction, \longrightarrow_{\beta} . The transitive reflexive symmetric closure of \longrightarrow_{\beta} is denoted by =_{\beta} . The deduction rules for \lambda P2 derive judgments of the forms \Gamma\vdash M:T , with M and T pseudo-terms and \Gamma a context , a finite sequence of declarations v_{1}:T_{1},\ldots,v_{n}:T_{n} . Here, v ranges over {\rm Var} , s , s_{1} and s_{2} range over \{\star,{\sf Kind}\} and M,N,T and U range over {\sf T} . \displaystyle\begin{aligned} \star:{\sf Kind}\qquad&\Gamma,v:T\vdash M:U\lx@proof@logical@and\Gamma\vdash T:\star/{\sf Kind}\Gamma\vdash M:U\\ \\ \Gamma,v:T\vdash M:U\lx@proof@logical@and\Gamma,v:T\vdash M:U\Gamma\vdash T:\star/{\sf Kind}\qquad&\Gamma\vdash M:U\lx@proof@logical@and\Gamma\vdash M:T\Gamma\vdash U:\star/{\sf Kind}\\ \\ &\Gamma\vdash\Pi x:U.T:s_{2}\lx@proof@logical@and\Gamma\vdash U:s_{1}\Gamma,x:U\vdash T:s_{2}\\ \\ \Gamma\vdash\lambda x:U.b:\Pi x:U.T\lx@proof@logical@and\Gamma\vdash\Pi x:U.T:s\Gamma,x:U\vdash b:T\qquad&\Gamma\vdash f\ a:T[x:=a]\lx@proof@logical@and\Gamma\vdash f:\Pi x:U.T\Gamma\vdash a:U\end{aligned} In the rules (var) and (weak) it is always assumed that the newly declared variable is fresh, that is, it has not yet been declared in \Gamma . For notational convenience, we split up the set {\rm Var} into a set {\rm Var}^{\star} , the term variables , and {\rm Var}^{{\sf Kind}} , the constructor variables . Term variables are denoted by x,y,z,\ldots and constructor variables by \alpha,\beta,\ldots . In the rules (var) and (weak), we take the variable v out of {\rm Var}^{\star} if s=\star and out of {\rm Var}^{{\sf Kind}} if s={\sf Kind} . The well-typed terms can be split into the following disjoint subsets: • \{{\sf Kind}\} , • the set of kinds : expressions A such that \Gamma\vdash A:{\sf Kind} for some \Gamma ; this includes \star . In \lambda P2 all kinds are of the form \Pi x_{1}:\sigma_{1}\ldots\Pi x_{n}:\sigma_{n}.\star , with \sigma_{1},\ldots,\sigma_{n} types and x_{1},\ldots,x_{n}\in{\rm Var}^{\star} . • the set of constructors : expressions of type a ‘kind’, i.e. expressions P such that \Gamma\vdash P:A for some kind A ; this includes the types , expressions of type \star . In \lambda P2 all constructors are of one of the following forms – \alpha\in{\rm Var}^{{\sf Kind}} , – P\ t , with P a constructor and t an term , – \lambda x:\sigma.\ P , with \sigma a type, P a constructor, x\in{\rm Var}^{\star} , – \Pi x:\sigma.\ \tau , with \sigma and \tau types, x\in{\rm Var}^{\star} , – \Pi\alpha:A.\ \tau , with A a kind, \tau a type, \alpha\in{\rm Var}^{{\sf Kind}} . • the terms : expressions of type a ‘type’, i.e. expressions M such that \Gamma\vdash M:\sigma for some type \sigma . In \lambda P2 all terms are of one of the following forms – x\in{\rm Var}^{\star} , – q\ t , with q and t an terms, – q\ P , with P a constructor and q an term, – \lambda x:\sigma.\ t , with \sigma a type, t an term, x\in{\rm Var}^{\star} , – \lambda\alpha:A.\ t , with A a kind, t an term, \alpha\in{\rm Var}^{{\sf Kind}} . As a convention, we denote kinds by A,B,C,\ldots , types by \sigma,\tau,\ldots , constructors by P,Q,\ldots and terms by t,q,\ldots . 2.1 Extensions In [ 2 ] and in [ 9 ] , the system \lambda P2 is extended with various features to define a data type for natural numbers that has induction and to define quotient types and co-inductive types with a co-induction principle. We list these extensions here, and we will consider some of these in the models of \lambda P2 to see which extensions are needed to accomplish the data types of [ 2 , 9 ] . Definition 2.2 . We consider the following rules as possible extensions of \lambda P2 . Identity Type \begin{array}[]{c}\Gamma\vdash a=^{\sigma}b:\star\lx@proof@logical@and\Gamma\vdash\sigma:\star\Gamma\vdash a:\sigma\Gamma\vdash b:\sigma\qquad\Gamma\vdash{\sf refl}:a=^{\sigma}a\lx@proof@logical@and\Gamma\vdash\sigma:\star\Gamma\vdash a:\sigma\\ \\ \Gamma\vdash{\sf J}(c,a,b,q):\tau[x:=a,y:=b,p:=q]\begin{gathered}\Gamma\vdash a:\sigma\qquad\Gamma\vdash b:\sigma\qquad\Gamma\vdash q:a=^{\sigma}b\\ \Gamma,x:\sigma,y:\sigma,p:x=^{\sigma}y\vdash\tau:\star\qquad\Gamma\vdash c:\Pi z:\sigma.\tau[x,y:=z,p:={\sf refl}]\end{gathered}\end{array} The rules for (identity) comes with an equality rule: {\sf J}(c,a,a,{\sf refl})\longrightarrow_{{\sf refl}}c\ a For identity types, the following two principles may be considered, functional extensionality , FunExt , and uniqueness of identity proofs , UIP . (We omit the uppercase labels in the identity types, so we write x=y for x=^{\alpha}y etc.) \displaystyle{\sf FunExt}\quad \displaystyle:\quad\Pi f,g:(\Pi x:\sigma.\ \tau).\ (\Pi x:\sigma.\ f\ x=g\ x)\implies f=g \displaystyle{\sf UIP}\quad \displaystyle:\quad\Pi\alpha:\star.\ \Pi x,y:\alpha.\ \Pi p,q:x=y.\ p=q \Sigma -Type \displaystyle\begin{aligned} \Gamma\vdash\Sigma x:\sigma.\tau:\star\lx@proof@logical@and\Gamma\vdash\sigma:\star\Gamma,x:\sigma\vdash\tau:\star\qquad&\Gamma\vdash\langle a,b\rangle:\Sigma x:\sigma.\tau\Gamma\vdash a:\sigma\quad\Gamma\vdash b:\tau[x:=a]\\ \\ \Gamma\vdash\pi_{1}\ p:\sigma\Gamma\vdash p:\Sigma x:\sigma.\tau\qquad&\Gamma\vdash\pi_{2}\ p:\tau[x:=\pi_{1}\ p]\Gamma\vdash p:\Sigma x:\sigma.\tau\end{aligned} The rules for \Sigma also comes with equality rules: \displaystyle\pi_{1}\ \langle a,b\rangle \displaystyle=_{\beta} \displaystyle a \displaystyle\pi_{2}\ \langle a,b\rangle \displaystyle=_{\beta} \displaystyle b The well-known encoding of inductive data types in polymorphic \lambda -calculus extends immediately to \lambda P2 . Example 2.3 . 1. The natural numbers can be encoded by {\rm Nature}:=\Pi\alpha:\star.\alpha\rightarrow(\alpha\rightarrow\alpha)\rightarrow\alpha , with zero and successor: \displaystyle{\sf O} \displaystyle:= \displaystyle\lambda\alpha:\star.\ \lambda x:\alpha.\ \lambda f:\alpha\rightarrow\alpha.\ x, \displaystyle{\sf succ} \displaystyle:= \displaystyle\lambda n:{\rm Nature}.\ \lambda\alpha:\star.\ \lambda x:\alpha.\ \lambda f:\alpha\rightarrow\alpha.\ f\ (n\ \alpha\ x\ f). The induction principle reads {\sf ind}_{{\rm Nature}}:=\Pi P:{\rm Nature}\rightarrow\star.\ P\ {\sf O}\rightarrow(\Pi y:{\rm Nature}.\ P\ y\rightarrow P\ ({\sf succ}\ y))\rightarrow\Pi x:{\rm Nature}.\ P\ x. 2. The type of booleans can be encoded by {\sf bool}:=\Pi\alpha:\star.\ \alpha\rightarrow\alpha\rightarrow\alpha , with true and false: \displaystyle{\sf true} \displaystyle:= \displaystyle\lambda\alpha:\star.\ \lambda x,y:\alpha.\ x \displaystyle{\sf false} \displaystyle:= \displaystyle\lambda\alpha:\star.\ \lambda x,y:\alpha.\ y. The induction principle reads {\sf ind}_{{\sf bool}}:=\Pi P:{\sf bool}\rightarrow\star.\ P\ {\sf true}\rightarrow P\ {\sf false}\rightarrow\Pi x:{\sf bool}.\ P\ x. 3. Equality is defined in \lambda P2 using Leibniz equality: for \sigma:\star , t,q:\sigma t=_{\sigma}q\>\>:=\>\>\Pi P:\sigma\rightarrow\star.\ P\ t\rightarrow P\ q. One would like the induction principle to be provable in \lambda P2 , but this is not the case, not for {\rm Nature} and not for {\sf bool} , and as a matter of fact also not for other definitions of the natural numbers or the booleans [ 13 ] . There are also co-inductive data types that are definable in \lambda P2 , for which one could hope for a co-induction principle. We show the example of streams, but before that, we recall the definable existential types, and we introduce some notation for them. Example 2.4 . For \sigma a type, possibly containing the type variable \alpha , the existential type \exists\alpha:\star.\ \sigma is defined as \Pi\beta:\star.\ (\Pi\alpha:\star.\ \sigma\to\beta)\to\beta . • For \tau:\star and f:\sigma[\alpha:=\tau] , we have a term {\sf pack}\ \tau\ f:=\lambda\beta:\star.\ \lambda k:\Pi\alpha:\star.\ \sigma\to\beta.\ k\ \tau\ f , so {\sf pack}:\Pi\beta:\star.\ \sigma[\alpha:=\beta]\to\exists\alpha:\star.\ \sigma is the term encoding \exists -introduction. • For elimination, we have, for \tau a type with \alpha\notin{\rm FV}(\tau) , g:\Pi\alpha:\star.\ \sigma\to\tau , and t:\exists\alpha:\star.\ \sigma , the term {\sf rec}_{\exists}\ \tau\ g\ t:=t\ \tau\ g:\tau . So {\sf rec}_{\exists}:\Pi\beta:\star.\ (\Pi\alpha:\star.\ \sigma\to\beta)\to(\exists\alpha:\star.\ \sigma)\to\beta is the \exists -elimination term, defined by {\sf rec}_{\exists}:=\lambda\beta:\star.\ \lambda g:\Pi\alpha:\star.\ \sigma\to\beta.\ \lambda t:\exists\alpha:\star.\ \sigma.\ t\ \beta\ g . In \lambda P2 we also have the well-known product data type \sigma\times\tau that we will not spell out here. Pairing and projection are definable: for a:\sigma and b:\tau we have \langle a,b\rangle:\sigma\times\tau and we have \pi_{1}:\sigma\times\tau\to\sigma and \pi_{2}:\sigma\times\tau\to\tau with \pi_{1}\ \langle a,b\rangle\longrightarrow_{\beta}a and \pi_{2}\ \langle a,b\rangle\longrightarrow_{\beta}b . For functions on product types, we allow ourselves some syntactic sugar via “pattern abstractions”, writing \lambda\langle x,y\rangle:\sigma\times\tau.\ldots for \lambda z:\sigma\times\tau.\ldots where in the second case we have to refer to \pi_{1}\ z and \pi_{2}\ z and in the first we can just refer to x and y . Example 2.5 . The stream type over type \sigma , denoted by {\sf Stream} , is defined as \exists\alpha:\star.\alpha\times(\alpha\to\sigma)\times(\alpha\to\alpha) 4 4 4 If we spell it out fully, unfolding the definition of existential types as given in Example 2.4 , we have {\sf Stream}=\Pi\beta:\star.\ (\Pi\alpha:\star.\alpha\to(\alpha\to\sigma)\to(\alpha\to\alpha)\to\beta)\to\beta . The destructor {\sf hd}(s:{\sf Stream}) is defined as {\sf rec}_{\exists}\ \sigma\ (\lambda\alpha.\lambda\langle x,h,t\rangle.\ h\ x)\ s , and the destructor {\sf tl}(s:{\sf Stream}) is {\sf rec}_{\exists}\ {\sf Stream}\ (\lambda\alpha.\lambda\langle x,h,t\rangle.\ {\sf pack}\ \alpha\ \langle t\ x,h,t\rangle)\ s\ :\ {\sf Stream}. Finally, we define the corecursor {\sf corec}_{{\sf s}} as follows. {\sf corec}_{{\sf s}}:=\lambda\alpha:\star.\ \lambda h:\alpha\to\sigma.\ \lambda t:\alpha\to\alpha.\ \lambda x:\alpha.\ {\sf pack}\ \alpha\ \langle x,h,t\rangle. The corecursor and the destructors (the head and tail functions) compute as expected: for h:\tau\to\sigma , t:\tau\to\tau and x:\tau we have \displaystyle{\sf hd}\ ({\sf corec}_{{\sf s}}\ \tau\ h\ t\ x)=_{\beta}h\ x \displaystyle{\sf tl}\ ({\sf corec}_{{\sf s}}\ \tau\ h\ t\ x)=_{\beta}{\sf corec}_{{\sf s}}\ \tau\ h\ t\ (t\ x) There are various (equivalent) ways to make this stream type a final co-algebra, as discussed in [ 9 ] . Here are two. 1. The stream data type satisfies the co-induction principle if bisimilarity of streams implies their equality, more precisely, we have a term of type \Pi s,t:{\sf Stream}.\ s\sim t\rightarrow s=t, where s\sim t is defined as \exists R:{\sf Stream}\rightarrow{\sf Stream}\rightarrow\star.\ (R\mbox{ is a bisimulation relation and }R\ s\ t) , where R is a bisimilation if it is symmetric and for all x,y:{\sf Stream} , if R\ x\ y then {\sf hd}\ x={\sf hd}\ y and R\ ({\sf tl}\ x)\ ({\sf tl}\ y) . 2. The corecursor is unique: if, for h:\tau\to\sigma and t:\tau\to\tau , we have a term g:\tau\to{\sf Stream} with \displaystyle{\sf hd}\ (g\ x)=h\ x \displaystyle{\sf tl}\ (g\ x)=g\ (t\ x), then g={\sf corec}_{{\sf s}}\ \tau\ h\ t In Theorem 4.3 we will show that these definable streams are not a final co-algebra, so these two principles do not hold. 2.2 Quotients To turn the stream type of Example 2.5 into a final co-algebra of streams, as we have done in [ 9 ] , we need to quotient it by the bisimulation relation. So we now introduce quotients. Definition 2.6 . Given \sigma,\tau:\star and R:\sigma\to\sigma\to\star , we say that a function f:\sigma\to\tau respects R if for all x,y:\sigma such that R\ x\ y , we have f\ x=f\ y , and we write {\sf Resp}\ f\ R for the type \Pi x,y:\sigma.\ R\ x\ y\to f\ x=f\ y . We define the quotient type {\sf quot}\ \sigma\ R to be {\sf quot}\ \sigma\ R:=\Pi C:\star.\ \Pi f:\sigma\to C.\ {\sf Resp}\ f\ R\to C. The class function {\sf cls}:\sigma\to{\sf quot}\ \sigma\ R is defined to be {\sf cls}:=\lambda d:\sigma.\ \lambda C:\star.\ \lambda f:\sigma\to C.\ \lambda H:{\sf Resp}\ f\ R.\ f\ d. Note that the hypothesis H doesn’t occur in the body f\ d ; it is not needed to define {\sf cls} . We write \sigma/R:={\sf quot}\ \sigma\ R . We can lift a function f:\sigma\to E that respects R to a function \widehat{f}:\sigma/R\to E . This lifting is done by the recursor for quotient types , {\sf rec}_{{\sf q}} , which is defined as follows. {\sf rec}_{{\sf q}}:=\lambda C:\star.\ \lambda f:\sigma\to C.\ \lambda H:{\sf Resp}\ f\ R.\ \lambda q:\sigma/R.\ q\ C\ f\ H We write \widehat{f}:=\lambda q.\ \ {\sf rec}_{{\sf q}}\ C\ f\ H\ q if C and H are clear from the context. The lifted function satisfies \widehat{f}\circ{\sf cls}=f . In [ 9 ] , it is shown that, if R\ x\ y , then {\sf cls}\ x={\sf cls}\ y . The proof uses function extensionality. Then it is also shown how to obtain a strong form of quotients, by using \Sigma -types to define the sub-type of \sigma/R of terms q that satisfy a {\sf LimQuot} predicate: basically we want to define the subset of \sigma/R for which \widehat{f} is the unique function for which \widehat{f}\circ{\sf cls}=f . This also raises the question whether the definable quotient type \sigma/R is not already a strong quotient type itself in \lambda P2 ? Or if there isn’t a different, “smarter” representation of quotient types in \lambda P2 that is strong? We will prove these questions in the negative by first specifying what we would expect from a quotient type. Definition 2.7 . A parametric quotient type is given by 1. for \sigma:\star and R:\sigma\to\sigma\to\star , a type \sigma/R , that we call the quotient type of \sigma modulo R , 2. a term {\sf cls}:\Pi\alpha:\star.\ \Pi R:\alpha\to\alpha\to\star.\ \alpha\to\alpha/R , 3. such that the following type is inhabited (for every \sigma:\star ): \Pi x,y:\sigma.\ R\ x\ y\to{\sf cls}\ \sigma\ R\ x=_{\sigma/R}{\sf cls}\ \sigma\ R\ y ; 4. a term construction {\sf rec}_{{\sf q}} satisfying \displaystyle\penalty\tau:\star\quad f:\sigma\to\tau\quad p:\Pi x,y:\sigma.\ R\ x\ y\to f\ x=_{\tau}f\ y \displaystyle{\sf rec}_{{\sf q}}\ p\ f:\sigma/R\to\tau where we abbreviate {\sf rec}_{{\sf q}}\ p\ f to \widehat{f} 5. such that \widehat{f}({\sf cls}\ x)=_{\beta}f\ x for every x:\sigma . We call \sigma/R a strong parametric quotient type if we have, in addition to the above 6. a term construction {\sf IndQuot} satisfying \displaystyle\penalty P:\sigma/R\to\star\quad t:\Pi x:\sigma.\ P\ ({\sf cls}\ x) \displaystyle{\sf IndQuot}\ t:\Pi y:\sigma.\ R.P\ y In the definition of the notion of quotient type, we do not require that R is an equivalence relation. To define \widehat{f} we require {\sf Resp}\ f\ R , i.e. f should respect R , but of course =_{\sigma/R} is an equivalence relation, so in fact, the type \sigma/R in Definition 2.7 is the quotient of \sigma by the smallest equivalence relation containing R 5 5 5 A similar idea was used by Hofmann [ 16 ] to define quotients. . We could expect more from a strong quotient then what we required in Definition 2.7 , and some of these properties are derivable, sometimes under weak additional assumptions. For example, \widehat{{\sf cls}}\ y=_{\sigma/R}y (for y:\sigma/R ) is derivable from {\sf IndQuot} and the uniqueness of \widehat{f} (the \eta -rule for quotients) is derivable if we also have functional extensionality. Finally, one could desire the quotient to be effective by requiring \Pi x,y:\sigma.\ {\sf cls}\ \sigma\ R\ x=_{\sigma/R}{\sf cls}\ \sigma\ R\ y\to R\ x\ y . In [ 9 ] , we show how to construct parametric quotients in an extension of \lambda P2+{\sf FunExt} . We do not exploit this further here, as we can already show that the parametric quotients of Definition 2.7 don’t exist in \lambda P2 , in Proposition 4.4 . It should be noted that we do not prove a general statement like quotients are not definable in \lambda P2 simply because it is false in general: for specific \sigma and R , the quotient \sigma/R does exist. We give the example of the trivial quotient where we take R to be Leibniz equality. Example 2.8 . Taking \sigma:{\rm Nature} and R\ x\ y:=x=_{{\rm Nature}}y , we define {\rm Nature}/R:={\rm Nature} and we see that it is a non-parametric quotient in the sense of Definition 2.7 , where we omit the requirement that {\sf cls} is a polymorphic function. To be precise, we have {\sf cls}:{\rm Nature}\to{\rm Nature}/R defined by {\sf cls}:=\lambda x:{\rm Nature}.\ x , which obviously satisfies • \Pi x,y:{\rm Nature}.\ R\ x\ y\to{\sf cls}\ x=_{{\rm Nature}}{\sf cls}\ y ; • for f:\sigma\to\tau with {\sf Resp}\ f\ R , taking \widehat{f}:=f , we have \widehat{f}\circ{\sf cls}=f ; • if \Pi x:{\rm Nature}.\ P\ ({\sf cls}\ x) , then \Pi y:{\rm Nature}/R.\ P\ y ; • \Pi x,y:{\rm Nature}.\ {\sf cls}\ x=_{{\rm Nature}}{\sf cls}\ y\to R\ x\ y , so this example of a trivial quotient is also an effective quotient. 3 Model construction for \lambda P2 The model notion for \lambda P2 we use is the same as in [ 13 , 12 ] . It can be extended to a class of models for the Calculus of Constructions, which is done in [ 24 ] . Our models are a kind of realizability semantics in the sense that types will be interpreted as sets of realizers, where the realizers are taken from a combinatory algebra. The terms will be interpreted as the realizers. To cater for dependent types, our models are built from weakly extensional combinatory algebras (WECA). A combinatory algebra (CA for short) is a tuple {\cal A}=\langle{\bf A},\cdot,{\bf k},{\bf s}\rangle , with {\bf A} a set, \cdot a binary function from {\bf A}\times{\bf A} to {\bf A} (as usual denoted by infix notation), {\bf k},{\bf s}\in{\bf A} such that ({\bf k}\cdot a)\cdot b=a and (({\bf s}\cdot a)\cdot b)\cdot c=(a\cdot c)\cdot(b\cdot c) . For {\cal A} a combinatory algebra, the set of terms over {\cal A} , {\cal T}({\cal A}) , is defined by letting {\cal T}({\cal A}) contain infinitely many variables v_{1},v_{2},\ldots and distinct elements c_{a} for every a\in{\bf A} , and letting {\cal T}({\cal A}) be closed under application (the operation \cdot ). Given a term t and a valuation \rho , mapping variables to elements of {\bf A} , the interpretation of t in {\bf A} under \rho , notation \llbracket{t}\rrbracket^{{\cal A}}_{\rho} , is defined in the usual way ( \llbracket{c_{a}}\rrbracket^{{\cal A}}_{\rho}=a , \llbracket{MN}\rrbracket^{{\cal A}}_{\rho}=\llbracket{M}\rrbracket^{{\cal A}}_{\rho}\cdot\llbracket{N}\rrbracket^{{\cal A}}_{\rho} , etcetera). A crucial property of CAs is that they are combinatory complete : if t[v]\in{\cal T}({\cal A}) is a term with free variable v , then there is an element in {\bf A} , usually denoted by \lambda^{*}v.\ t[v] , such that \llbracket{(\lambda^{*}v.\ t[v])}\rrbracket^{{\cal A}}_{\rho}\cdot a=\llbracket{t[x]}\rrbracket^{{\cal A}}_{\rho(x:=a)} for all \rho and a\in{\bf A} . A CA is weakly extensional if \llbracket{t_{1}}\rrbracket^{{\cal A}}_{\rho(x:=a)}=\llbracket{t_{2}}\rrbracket^{{\cal A}}_{\rho(x:=a)} for all a\in{\bf A} implies \llbracket{\lambda^{*}x.t_{1}}\rrbracket^{{\cal A}}_{\rho}=\llbracket{\lambda^{*}x.t_{2}}\rrbracket^{{\cal A}}_{\rho} . The need for weakly extensional CAs comes from the fact that to make sure that the conversion rule is sound, we want the following to hold in our \lambda P2 -model. M=_{\beta}N\implies\llparenthesis{M}\rrparenthesis_{\rho}=\llparenthesis{N}\rrparenthesis_{\rho}\mbox{ for all }\rho, where \llparenthesis{-}\rrparenthesis_{\rho} interprets pseudo-terms as elements of {\bf A} , using a valuation \rho for the free variables. The interpretation \llparenthesis{-}\rrparenthesis_{\rho} is close to \llbracket{-}\rrbracket^{{\cal A}}_{\rho} , where we now also interpret abstraction: under \llparenthesis{-}\rrparenthesis_{\rho} , \lambda is interpreted as \lambda^{*} . Example 3.1 . 1. A standard example of a WECA is {\Lambda} , consisting of the classes of open \lambda -terms modulo \beta -equality. So, {\bf A} is just \Lambda/\beta and [M]=[N] iff M=_{\beta}N . It is easily verified that this yields a WECA. 2. Given a set of constants C , we define the WECA {\Lambda}(C) as the equivalence classes of open \lambda_{C} -terms (i.e. lambda-terms over the constant set C ) modulo \beta c -equality, where the c -equality rules says cN=_{c}c. for all c\in C and N\in\Lambda_{C} . 3. Another example of a WECA is {\bf 1} , the degenerate WECA where {\bf A}=1 , the one-element set. In this case {\bf k}={\bf s} , which is usually not allowed in combinatory algebras, but note that we do allow it here. The types of \lambda P2 will be interpreted as subsets of {\bf A} . Definition 3.2 . A polyset structure over the weakly extensional combinatory algebra {\cal A} is a collection {\cal P}\subseteq\wp({\bf A}) such that 1. {\bf A}\in{\cal P} , 2. \emptyset\in{\cal P} 6 6 6 In [ 13 , 12 , 24 ] we don’t require this, and we call models where \emptyset\in{\cal P} “consistent”, but here we only want to talk about consistent models anyway. , 3. {\cal P} is closed under arbitrary intersection \bigcap , 4. {\cal P} is closed under dependent products , i.e. if X\in{\cal P} and F:X\rightarrow{\cal P} , then \Pi_{t\in X}F(t)\in{\cal P} , where \Pi_{t\in X}F(t) is defined as \{a\in{\bf A}\ |\ \forall t\in X(a\cdot t\in F(t))\}. The elements of a polyset structure are called polysets . If F is the constant function with value Y , we write X\rightarrow Y instead of \Pi_{t\in X}Y . Example 3.3 . 1. We obtain the full polyset structure over the WECA {\cal A} if we take {\cal P}=\wp({\bf A}) . 2. The simple polyset structure over the WECA {\cal A} is obtained by taking {\cal P}=\{\emptyset,{\bf A}\} . It is easily verified that this is a polyset structure. 3. Given the WECA {\Lambda}(C) as defined in Example 3.1 (so C is a set of constants), we define the polyset structure generated from C , {\cal P}^{{\Lambda}}(C) by {\cal P}^{{\Lambda}}(C):=\{X\subseteq{\Lambda}(C)\mid X=\emptyset\vee C\subseteq X\}. To show that {\cal P}^{{\Lambda}}(C) is a polyset structure, we need to verify that it is closed under dependent product, which is easy: if X\neq\emptyset and F(t)\neq\emptyset for all t\in X , then C\subseteq\Pi_{t\in X}F(t) , because for c\in C and t\in X , ct=_{c}c\in C\subseteq F(t) . 4. Given the WECA {\cal A} and a set C\subseteq{\bf A} such that \forall a,b\in{\bf A}(a\cdot b\in C\implies a\in C , we define the power polyset structure of C by {\cal P}:=\{X\subseteq{\bf A}\ |\ X\subseteq C\vee X={\bf A}\}. To check that this is a polyset structure, one only has to verify that, for X\in{\cal P} and F:X\rightarrow{\cal P} , \Pi_{t\in X}F(t)\in{\cal P} . This follows from an easy case distinction: \forall t\in X(F(t)={\bf A}) or \exists t\in X(F(t)\subseteq C) . An interesting instance of a power polyset structure is the one arising from C=\mbox{HNF} , the set of \lambda -terms with a head-normal-form, in the WECA \Lambda/\beta . To interpret kinds we need a predicative structure . Definition 3.4 . For {\cal P} a polyset structure, the predicative structure over {\cal P} is the collection of sets {\cal N} defined inductively by 1. {\cal P}\in{\cal N} , 2. If X\in{\cal P} and \forall t\in X(F(t)\in{\cal N} , then \prod_{t\in X}F(t)\in{\cal N} . If F is a constant function with value {\cal P} , we write X\rightarrow{\cal P} in stead of \prod_{t\in X}{\cal P} . Definition 3.5 . If {\cal A} is a combinatory algebra, {\cal P} a polyset structure over {\cal A} , then we call \langle{\cal A},{\cal P}\rangle a polyset model . The predicative structure {\cal N} over a polyset structure {\cal P} could also be given as an additional parameter of a polyset model, if we take Definition 3.4 as a closure condition for {\cal N} . However, we don’t need that generality here. It is intended to give a domain of interpretation for the kinds. For example, if the type \sigma is interpreted as the polyset X , then the kind \sigma\rightarrow\sigma\rightarrow\star is interpreted as \prod_{t\in X}\prod_{q\in X}{\cal P} , for which we usually write X\rightarrow X\rightarrow{\cal P} . We now define three interpretation functions, one for kinds, {\cal V}({-}) , that maps kinds to elements of {\cal N} , one for constructors (and types), \llbracket{-}\rrbracket , that maps constructors to elements of \bigcup{\cal N} (and types to elements of {\cal P} , which is a subset of \bigcup{\cal N} ) and one for terms, \llparenthesis{-}\rrparenthesis , that maps terms to elements of the combinatory algebra {\cal A} . All these interpretations are parameterized by valuations , assigning values to the free variables (declared in the context). Let in the following {\cal M}=\langle{\cal A},{\cal P}\rangle be a polyset model: {\cal A}=\langle{\bf A},\cdot,{\bf k},{\bf s}\rangle is a combinatory algebra, {\cal P} is a polyset structure over {\cal A} and {\cal N} is the predicative structure over the polyset structure {\cal P} . Definition 3.6 . A constructor variable valuation is a map \xi from {\rm Var}^{{\sf Kind}} to \bigcup{\cal N} . An term variable valuation is a map \rho from {\rm Var}^{\star} to {\bf A} . Definition 3.7 . For \rho an term variable valuation, we define the map \llparenthesis{-}\rrparenthesis_{\rho}^{{\cal M}} from the set of terms to {\bf A} as follows. (We leave the model {\cal M} implicit.) \displaystyle\llparenthesis{x}\rrparenthesis_{\rho} \displaystyle:= \displaystyle\rho(x), \displaystyle\llparenthesis{tq}\rrparenthesis_{\rho} \displaystyle:= \displaystyle\llparenthesis{t}\rrparenthesis_{\rho}\cdot\llparenthesis{q}\rrparenthesis_{\rho},\mbox{ if }q\mbox{ is an term}, \displaystyle\llparenthesis{tQ}\rrparenthesis_{\rho} \displaystyle:= \displaystyle\llparenthesis{t}\rrparenthesis_{\rho},\mbox{ if }Q\mbox{ is a constructor}, \displaystyle\llparenthesis{\lambda x:\sigma.t}\rrparenthesis_{\rho} \displaystyle:= \displaystyle\lambda^{*}v.\llparenthesis{t}\rrparenthesis_{\rho(x:=v)},\mbox{ if }\sigma\mbox{ is a type}, \displaystyle\llparenthesis{\lambda\alpha:A.t}\rrparenthesis_{\rho} \displaystyle:= \displaystyle\llparenthesis{t}\rrparenthesis_{\rho},\mbox{ if }A\mbox{ is a kind}. Definition 3.8 . For \rho an term variable valuation and \xi a constructor variable valuation, we define the maps {\cal V}({-})_{\xi\rho}^{{\cal M}} and \llbracket{-}\rrbracket_{\xi\rho}^{{\cal M}} respectively from kinds to {\cal N} and from constructors to \bigcup{\cal N} as follows. (We leave the model {\cal M} implicit.) \displaystyle{\cal V}({\star})_{\xi\rho} \displaystyle:= \displaystyle{\cal P}, \displaystyle{\cal V}({\Pi x:\sigma.B})_{\xi\rho} \displaystyle:= \displaystyle\prod_{t\in\llbracket{\sigma}\rrbracket_{\xi\rho}}{\cal V}({B})_{\xi\rho(x:=t)}, \displaystyle\llbracket{\alpha}\rrbracket_{\xi\rho} \displaystyle:= \displaystyle\xi(\alpha), \displaystyle\llbracket{\Pi\alpha:A.\tau}\rrbracket_{\xi\rho} \displaystyle:= \displaystyle\bigcap_{a\in{\cal V}({A})_{\xi\rho}}\llbracket{\tau}\rrbracket_{\xi(\alpha:=a)\rho},\mbox{ if }A\mbox{ is a kind}, \displaystyle\llbracket{\Pi x:\sigma.\tau}\rrbracket_{\xi\rho} \displaystyle:= \displaystyle\Pi_{t\in\llbracket{\sigma}\rrbracket_{\xi\rho}}\llbracket{\tau}\rrbracket_{\xi\rho(x:=t)},\mbox{ if }\sigma\mbox{ is a type}, \displaystyle\llbracket{Pt}\rrbracket_{\xi\rho} \displaystyle:= \displaystyle\llbracket{P}\rrbracket_{\xi\rho}(\llparenthesis{t}\rrparenthesis_{\rho}), \displaystyle\llbracket{\lambda x:\sigma.P}\rrbracket_{\xi\rho} \displaystyle:= \displaystyle{\boldmath\lambda}t\in\llbracket{\sigma}\rrbracket_{\xi\rho}.\llbracket{P}\rrbracket_{\xi\rho(x:=t)}. Definition 3.9 . For \Gamma a \lambda P2 -context, \rho an term variable valuation and \xi a constructor variable valuation, we say that \xi,\rho models \Gamma , notation \xi,\rho\models\Gamma , if for all x\in{\rm Var}^{\star} and \alpha\in{\rm Var}^{{\sf Kind}} , x:\sigma\in\Gamma\Rightarrow\rho(x)\in\llbracket{\sigma}\rrbracket_{\xi\rho} and \alpha:A\in\Gamma\Rightarrow\xi(\alpha)\in{\cal V}({A})_{\xi\rho} . It is (implicit) in the definition that \xi\rho\models\Gamma only if for all declarations x:\sigma\in\Gamma , \llbracket{\sigma}\rrbracket_{\xi\rho} is defined (and similarly for \alpha:A\in\Gamma ). Definition 3.10 . The notion of truth in a polyset model , notation \models^{{\cal M}} and of truth , notation \models are defined as follows. For \Gamma a context, t an term, \sigma a type, P a constructor and A a kind of \lambda P2 , \displaystyle\Gamma\models^{{\cal M}}t:\sigma if \displaystyle\forall\xi,\rho[\xi,\rho\models\Gamma\Rightarrow\llparenthesis{t}\rrparenthesis_{\rho}\in\llbracket{\sigma}\rrbracket_{\xi\rho}], \displaystyle\Gamma\models^{{\cal M}}P:A if \displaystyle\forall\xi,\rho[\xi,\rho\models\Gamma\Rightarrow\llbracket{P}\rrbracket_{\xi\rho}\in{\cal V}({A})_{\xi\rho}]. Quantifying over the class of all polyset models, we define, for M an term or a constructor of \lambda P2 , \Gamma\models M:T\;\mbox{ if }\;\Gamma\models^{{\cal M}}M:T\mbox{ for all }\lambda P2\mbox{-models }{\cal M}. Soundness states that if a judgment \Gamma\vdash M:T is derivable, then it is true in all models. It is proved, by induction on the derivation in \lambda P2 . As a matter of fact, Soundness also implies that {\cal V}({A})_{\xi\rho} and \llbracket{P}\rrbracket_{\xi\rho} are well-defined. Theorem 3.11 (Soundness) . For \Gamma a context, M an term or a constructor and T a type or a kind of \lambda P2 , \Gamma\vdash M:T\Rightarrow\Gamma\models M:T. Example 3.12 . Let {\cal A} be a WECA. 1. The full polyset model over {\cal A} is {\cal M}=\langle{\cal A},{\cal P}\rangle , where {\cal P} is the full polyset structure over {\cal A} (as defined in Example 3.3 (1)). 2. The simple polyset model over {\cal A} is {\cal M}=\langle{\cal A},{\cal P}\rangle , where {\cal P} is the simple polyset structure over {\cal A} . (As defined in Example 3.3 (2), so {\cal P}=\{\emptyset,{\bf A}\} .) 3. The simple polyset model over the degenerate {\cal A} is also called the proof-irrelevance model or PI-model for \lambda P2 . 4. For C a set of constants, the polyset model generated from C is defined by {\cal M}=\langle{\Lambda}(C),{\cal P}^{{\Lambda}}(C)\rangle , where {\cal P}^{{\Lambda}}(C) is the polyset structure generated from C . See Example 3.3 (3) and Example 3.1 (2). 4 Non-derivability results in \lambda P2 We will not discuss generalities of our polyset models (see [ 13 ] for that), but instead we will show that certain type constructions are not definable in \lambda P2 by constructing a concrete counter-model. In logic, validity of a formula \varphi means that the interpretation of \varphi is true in the model. In type theory, we call a type valid if its interpretation is nonempty, i.e. the type is inhabited. Definition 4.1 . For {\cal M} a polyset model, \Gamma a context, \sigma a type in \Gamma and \xi,\rho valuations such that \xi,\rho\models\Gamma , we say that \sigma is valid in {\cal M} under \xi,\rho , notation {\cal M},\xi,\rho\mathrel{{|}\!{\models}}^{\lambda P2}\sigma , if \llbracket{\sigma}\rrbracket_{\xi\rho}^{{\cal M}}\neq\emptyset. We will often just write \mathrel{{|}\!{\models}}^{\lambda P2}\sigma , in particular if the model {\cal M} is clear from the context and the type \sigma is closed. So we will sometimes just say that “ \sigma holds” when we mean that the type \sigma is inhabited in the type theory, and similarly we will say that “ \sigma holds in the model” when we mean that the interpretation of \sigma is non-empty in the model. We recap one important Lemma about polyset models that we will use further on. Lemma 4.2 . (Basically Lemma 4 of [ 13 ] .) Let \sigma be a type with terms t,q:\sigma , possibly in some context. • For every polyset model {\cal M} we have {\cal M},\xi,\rho\mathrel{{|}\!{\models}}t=_{\sigma}q\quad\Longleftrightarrow\quad\llparenthesis{t}\rrparenthesis_{\rho}=\llparenthesis{q}\rrparenthesis_{\rho}, where the equality on the right is the equality in the WECA of the model. • \Gamma\vdash M:t=_{\sigma}q implies that for every polyset model {\cal M} and every \xi,\rho , if \xi,\rho\models\Gamma , then \llparenthesis{t}\rrparenthesis_{\rho}=\llparenthesis{q}\rrparenthesis_{\rho} . Proof. The first is Lemma 4 of [ 13 ] . The second follows immediately from that. \sqcap \sqcup Theorem 4.3 . The definable streams in \lambda P2 (as given in Example 2.5 ) do not have a coinduction principle. Proof. We consider streams over {\sf bool} and we define two streams s_{1},s_{2}:{\sf Stream}_{{\sf bool}} such that s_{1}\sim s_{2} but not s_{1}=_{{\sf Stream}_{{\sf bool}}}s_{2} . Define \displaystyle s_{1} \displaystyle:= \displaystyle{\sf pack}\ {\sf bool}\ \langle{\sf true},\neg,\neg\rangle \displaystyle s_{2} \displaystyle:= \displaystyle{\sf pack}\ {\sf bool}\ \langle{\sf false},{\sf I},\neg\rangle, where {\sf I} is the identity on {\sf bool} and {\sf true} and {\sf false} are as in Example 2.3 and \neg:=\lambda b:{\sf bool}.\ b\ {\sf bool}\ {\sf false}\ {\sf true} . Note that {\sf hd}\ s_{1}=\neg\ {\sf true}={\sf false}={\sf hd}\ s_{2} and similarly {\sf hd}({\sf tl}\ s_{1})=\neg\ (\neg\ {\sf true})={\sf true} and {\sf hd}({\sf tl}\ s_{2})={\sf I}\ (\neg\ {\sf false})={\sf true} : all finite observations from s_{1} and s_{2} are the same. We show that (1) s_{1}\sim s_{2} but (2) not s_{1}=_{{\sf Stream}_{{\sf bool}}}s_{2} . For (1): Define, for x,y:{\sf Stream}_{{\sf bool}} , R\ x\ y:=(x=s_{1}\wedge y=s_{2})\vee(y=s_{1}\wedge x=s_{2})\vee(x={\sf tl}\ s_{1}\wedge y={\sf tl}\ s_{2})\vee(y={\sf tl}\ s_{1}\wedge x={\sf tl}\ s_{2}) . Then R is symmetric and if R\ x\ y , then {\sf hd}\ x={\sf hd}\ y , as we have already observed. Moreover, if R\ x\ y , then R\ ({\sf tl}\ x)\ ({\sf tl}\ y) because {\sf tl}\ ({\sf tl},s_{1})=s_{1} and {\sf tl}\ ({\sf tl},s_{2})=s_{2} . For (2): Suppose s_{1}=_{{\sf Stream}_{{\sf bool}}}s_{2} . Then \llparenthesis{s_{1}}\rrparenthesis=\llparenthesis{s_{1}}\rrparenthesis in any model (Lemma 4.2 ), so if we consider the WECA of untyped \lambda -terms modulo \beta\eta , we see that \llparenthesis{s_{1}}\rrparenthesis=_{\beta\eta}\llparenthesis{s_{1}}\rrparenthesis . Now, if we fully spell out {\sf pack} , we have {\sf pack}\ \sigma\ \langle a,h,t\rangle=\lambda Y:\star.\lambda k:\Pi X:\star.X\to(X\to{\sf bool})\to(X\to X)\to Y.k\ \sigma\ a\ h\ t , so we find that, in \lambda -calculus, \llparenthesis{s_{1}}\rrparenthesis=\lambda k.\ k\ {\bf K}\ N\ N=\lambda k.\ k\ {\bf K}_{*}\ {\bf I}\ N=\llparenthesis{s_{2}}\rrparenthesis 7 7 7 \llparenthesis{{\sf true}}\rrparenthesis=\lambda x\ y.\ x={\bf K} and \llparenthesis{{\sf false}}\rrparenthesis=\lambda x\ y.\ y={\bf K}_{*} , where N=\llparenthesis{\neg}\rrparenthesis=\lambda b.\ b\ {\bf K}_{*}\ {\bf K} . But \lambda k.k\ {\bf K}\ N\ N and \lambda k.k\ {\bf K}_{*}\ {\bf I}\ N are two distinct normal forms, so they are not \beta\eta -equal. Contradiction, so we conclude that not s_{1}=_{{\sf Stream}_{{\sf bool}}}s_{2} 8 8 8 For (2), we do not really need the model, because we know that in \lambda P2 , if \vdash M:s_{1}=_{{\sf Stream}_{{\sf bool}}}s_{2} (for some M ), then s_{1}=_{\beta}s_{2} , which is not the case because s_{1} and s_{2} are different normal forms. . \sqcap \sqcup Theorem 4.4 . Parametric quotients (of Definition 2.7 ) are not definable in \lambda P2 . Proof. We can show that the combination of the first five items in Definition 2.7 cannot be realized in \lambda P2 . Suppose we have a term {\sf cls}:\Pi\alpha:\star.\Pi R:\alpha\to\alpha\to\star.\alpha\to\alpha/R , such that, for all \sigma:\star , the type \Pi x,y:\sigma.\ R\ x\ y\to{\sf cls}\ \sigma\ R\ x=_{\sigma/R}{\sf cls}\ \sigma\ R\ y is inhabited. For \alpha a type variable and taking \lambda x,y:\alpha.\ \top for R (where \top:=\Pi\beta:\star.\beta\to\beta , the type ’True’), we see that there is a term t with \alpha:\star,x,y:\alpha\vdash t:{\sf cls}\ \alpha\ R\ x=_{\alpha/R}{\sf cls}\ \alpha\ R\ y. In a model built from the WECA {\Lambda} , taking \llbracket{\alpha}\rrbracket_{\xi\rho}={\Lambda} , we see that for every M,N\in{\Lambda} , \llparenthesis{{\sf cls}}\rrparenthesis\ M=_{\beta}\llparenthesis{{\sf cls}}\rrparenthesis\ N . (This uses Lemma 4.2 .) So \llparenthesis{{\sf cls}}\rrparenthesis is a constant function in {\Lambda} . But this is not the case: if we take, e.g., \sigma:={\sf bool} , R\ x\ y:=x=_{{\sf bool}}y and f:={\sf I}_{{\sf bool}} , then \widehat{f}:{\sf bool}\to{\sf bool} with \widehat{f}\ ({\sf cls}\ x)=x yields {\bf K}={\bf K}_{*} in the model {\Lambda} , which is false. (If \llparenthesis{{\sf cls}}\rrparenthesis is constant in the model {\Lambda} , then we have, in the model: {\sf true}={\sf I}\ {\sf true}=\widehat{{\sf I}}\ ({\sf cls}\ {\sf true})=\widehat{{\sf I}}\ ({\sf cls}\ {\sf false})={\sf I}\ {\sf false}={\sf false} . \sqcap \sqcup 5 Models of extensions of \lambda P2 We now extend the polyset model of Definition 3.5 to incorporate identity types and \Sigma -types. We will show that the rules for identity types and \Sigma -types of Definition 2.2 are sound in the model, and that {\sf UIP} holds. We will also show a model in which {\sf FunExt} does not hold and neither does induction for natural numbers, indicating that {\sf FunExt} is crucial for the construction in [ 2 ] . Definition 5.1 . We define {\Lambda}{{\sf id}} by extending the untyped \lambda -calculus with two constants {\sf J} and {\sf refl} with the following reduction rules. \begin{array}[]{rclccrcl}{\sf J}\ c\ a\ b\ {\sf refl}&\longrightarrow_{J}&c\ a&&{\sf refl}\ q&\longrightarrow_{{\sf refl}}&{\sf refl},\\ \pi_{1}\ \langle a,b\rangle&\longrightarrow_{\Sigma}&a&&\pi_{1}\ {\sf refl}&\longrightarrow_{{\sf refl}}&{\sf refl},\\ \pi_{2}\ \langle a,b\rangle&\longrightarrow_{\Sigma}&b&&\pi_{2}\ {\sf refl}&\longrightarrow_{{\sf refl}}&{\sf refl}.\end{array} The rule for \longrightarrow_{J} represents the reduction rule for identity types that combines the {\sf J} eliminator and the {\sf refl} constructor, the rules for \longrightarrow_{\Sigma} represent the \beta -rules for \Sigma -types. The rules for \longrightarrow_{{\sf refl}} does not occur in a typed setting, as {\sf refl}\ M and \pi_{1}\ {\sf refl} are never well-typed, but it is harmless, in the sense that it doesn’t spoil the Church-Rosser property (see [ 19 , 17 ] ) and it allows us to define an interesting model. The extension of the interpretation to \Sigma -types can be done by extending the notion of polyset-structure (Definition 3.2 ) to incorporate dependent sums in a straightforward way. However, we are particularly interested in constructing a counter-model, and this will be based on {\Lambda}{{\sf id}} and the the concrete polyset structure {\cal P}^{{\Lambda}{{\sf id}}}(\{{\sf refl}\}) . So we will define the concrete interpretation of \Sigma -types into {\cal P}^{{\Lambda}{{\sf id}}}(\{{\sf refl}\}) . Definition 5.2 . We take {\cal P} to be {\cal P}^{{\Lambda}{{\sf id}}}(\{{\sf refl}\}) . For X\in{\cal P} , we say that F:X\rightarrow{\cal P} is proper if F({\sf refl})=\emptyset\rightarrow\forall t\in X(F(t)=\emptyset) . For X\in{\cal P} and F:X\rightarrow{\cal P} proper, we define the dependent sum \Sigma_{t\in X}.F(t) as follows. \Sigma_{t\in X}.F(t):=\{q\mid\pi_{1}\ q\in X\wedge\pi_{2}\ q\in F(\pi_{1}\ q)\}. Due to our choice of reduction rules for {\Lambda}{{\sf id}} and the fact that we limit to proper F:X\rightarrow{\cal P} , we can see that {\cal P}^{{\Lambda}{{\sf id}}}(\{{\sf refl}\}) is closed under dependent sums. Lemma 5.3 . We take {\cal P} to be {\cal P}^{{\Lambda}{{\sf id}}}(\{{\sf refl}\}) . For X\in{\cal P} and F:X\rightarrow{\cal P} proper, the dependent sum \Sigma_{t\in X}.F(t) is also in {\cal P} . Proof. Let X\in{\cal P} and F:X\rightarrow{\cal P} proper. We need to show that \Sigma_{t\in X}.F(t)=\emptyset or {\sf refl}\in\Sigma_{t\in X}.F(t) . Case X=\emptyset . Then \Sigma_{t\in X}.F(t)=\emptyset . Case X\neq\emptyset . Subcase F({\sf refl})\neq\emptyset . Then {\sf refl}\in X and {\sf refl}\in F({\sf refl}) , so {\sf refl}\in\Sigma_{t\in X}.F(t) . Subcase F({\sf refl})=\emptyset , then \forall t\in X(F(t)=\emptyset) , so \Sigma_{t\in X}.F(t)=\emptyset . \sqcap \sqcup The interpretation of \Sigma -types in a polyset structure is as follows. \llbracket{\Sigma x:\sigma.\tau}\rrbracket_{\xi\rho}:=\Sigma_{t\in\llbracket{\sigma}\rrbracket_{\xi\rho}}\llbracket{\tau}\rrbracket_{\xi\rho(x:=t)}. The interpretation of terms involving pairing and projection is straightforward and so is the soundness of the derivation rules for \Sigma -types, which we state without proof. Lemma 5.4 . The polyset model {\cal P}^{{\Lambda}{{\sf id}}}(\{{\sf refl}\}) is sound for \lambda P2^{\Sigma} , that is, \lambda P2 extended with the rules for \Sigma -types. We now extend the interpretation to identity types. Note that identity types are logically equivalent to Leibniz equality (we have terms of type \forall x,y:\sigma.\ x=_{\sigma}y\to x=^{\sigma}y and of type \forall x,y:\sigma.\ x=^{\sigma}y\to x=_{\sigma}y ), but there is no isomorphism between them, so we cannot just use the interpretation of Leibniz equality in a polyset-model as the interpretation for identity types. Definition 5.5 . Let {\cal P} be a polyset-model. Let \sigma be a type and a,b:\sigma . Given valuations \xi,\rho , we interpret the type a=^{\sigma}b as follows. We write a^{\prime} for \llparenthesis{a}\rrparenthesis_{\rho} , b^{\prime} for \llparenthesis{b}\rrparenthesis_{\rho} and \sigma^{\prime} for \llbracket{\sigma}\rrbracket_{\xi\rho} to keep the notation readable. \llbracket{a=^{\sigma}b}\rrbracket_{\xi\rho}:=\bigcap_{C\in\sigma^{\prime}\to\sigma^{\prime}\to{\bf A}\to{\cal P}}\{q\mid\forall t\in\Pi_{x\in\sigma^{\prime}}.C(x,x,{\sf refl})\ [J\ t\ a^{\prime}\ b^{\prime}\ q\in C(a^{\prime},b^{\prime},q)]\}. Note that \llbracket{a=^{\sigma}b}\rrbracket_{\xi\rho} need not exist. We know that {\cal P} is closed under arbitrary intersections, but the sets \{q\mid\forall t\in\Pi_{x\in\sigma^{\prime}}.C(x,x,{\sf refl})\ [J\ t\ a^{\prime}\ b^{\prime}\ q\in C(a^{\prime},b^{\prime},q)]\} need not be in {\cal P} . Lemma 5.6 . The interpretation of a=^{\sigma}b in Definition 5.5 is well-defined for 1. the full-polyset model {\cal P}:=\wp({\Lambda}{{\sf id}}) ; 2. the polyset model generated from C:=\{{\sf refl}\} , {\cal P}^{{\Lambda}{{\sf id}}}(\{{\sf refl}\}) . Proof. For the first, this is immediate, for the second, we distinguish cases: (1) If a^{\prime}=b^{\prime} , then {\sf refl}\in\llbracket{a=^{\sigma}b}\rrbracket_{\xi\rho} . (2) If a^{\prime}\neq b^{\prime} , we can choose a C such that C(a^{\prime},b^{\prime},q)=\emptyset for all q\in{\bf A} , while C(t,t,q)={\bf A} for all t\in\sigma^{\prime} and all q\in{\bf A} . Then \llbracket{a=^{\sigma}b}\rrbracket_{\xi\rho}=\emptyset . \sqcap \sqcup Lemma 5.7 . The rules for the identity type are sound in a polyset-model where the interpretation of a=^{\sigma}b is well-defined. Proof. We need to check the rule for {\sf refl} and the rule for {\sf J} . {\sf refl} We have to check that {\sf refl}\in\llbracket{a=^{\sigma}a}\rrbracket_{\xi\rho} for any type \sigma and a:\sigma . This is the case, because, writing again a^{\prime} for \llparenthesis{a}\rrparenthesis_{\rho} , we have t\ a^{\prime}\in C(a^{\prime},a^{\prime},{\sf refl}) and J\ t\ a^{\prime}\ a^{\prime}\ {\sf refl}=t\ a^{\prime} , so J\ t\ a^{\prime}\ a^{\prime}\ {\sf refl}\in C(a^{\prime},a^{\prime},{\sf refl}) . {\sf J} We look at the hypotheses of the {\sf J} -rule: Let \Gamma be a context and within \Gamma we have \sigma:\star , a,b:\sigma , q:a=^{\sigma}b and c:\Pi z:\sigma.\ \tau[x,y:=z,p:={\sf refl}] . Furthermore we have \tau with \Gamma,x:\sigma,y:\sigma,p:x=^{\sigma}y\vdash\tau:\star . Let \xi,\rho\models\Gamma . We have to show that \llparenthesis{{\sf J}(c,a,b,q)}\rrparenthesis_{\rho}\in\llbracket{\tau[x:=a,y:=b,p:=q]}\rrbracket_{\xi\rho} . As before we abbreviate \llparenthesis{a}\rrparenthesis_{\rho} to a^{\prime} , \llbracket{\sigma}\rrbracket_{\xi\rho} to \sigma^{\prime} etc. Interpreting \lambda x,y:\sigma.\ \lambda p:x=^{\sigma}y.\ \tau in the model we get an element C\in\Pi_{x,y\in\sigma^{\prime}}.\llbracket{x=^{\sigma}y}\rrbracket_{\xi\rho}\to{\cal P} , and we need to show that \llparenthesis{{\sf J}(c,a,b,q)}\rrparenthesis_{\rho}\in C(a^{\prime},b^{\prime},q^{\prime}) . We extend C to C_{0}\in\sigma^{\prime}\to\sigma^{\prime}\to{\bf A}\to{\cal P} by defining C_{0}(x,y,r):=\emptyset for r\notin\llbracket{x=^{\sigma}y}\rrbracket_{\xi\rho} . From c^{\prime}\in\Pi_{z\in\sigma^{\prime}}.\ C(z,z,{\sf refl}) we get c^{\prime}\in\Pi_{z\in\sigma^{\prime}}.\ C_{0}(z,z,{\sf refl}) and from q^{\prime}\in\llbracket{a=^{\sigma}b}\rrbracket_{\xi\rho} we conclude that {\sf J}\ c^{\prime}\ a^{\prime}\ b^{\prime}\ q^{\prime}\in C_{0}(a^{\prime},b^{\prime},q^{\prime})=C(a^{\prime},b^{\prime},q^{\prime}) and we are done. \sqcap \sqcup Lemma 5.8 . {\sf UIP} holds in a polyset-model where the interpretation of a=^{\sigma}b is well-defined. Proof. Let p\in\llbracket{a=^{\sigma}b}\rrbracket_{\xi\rho} for a,b:\sigma . Take C\in\sigma^{\prime}\to\sigma^{\prime}\to{\bf A}\to{\cal P} with C(-,-,{\sf refl})={\bf A} and C(-,-,r)=\emptyset if r\neq{\sf refl} . Then there is a t\in\Pi_{x\in\sigma^{\prime}}.C(x,x,{\sf refl}) and for such a t we have {\sf J}\ t\ a^{\prime}\ b^{\prime}\ p\in C(a^{\prime},b^{\prime},p) . This means that C(a^{\prime},b^{\prime},p)\neq\emptyset , so p={\sf refl} in {\bf A} . \sqcap \sqcup In the following we restrict ourselves to the WECA {\bf A}:={\Lambda}{{\sf id}} . Lemma 5.9 . {\sf FunExt} does not hold in the polyset model generated from C:=\{{\sf refl}\} , {\cal P}^{{\Lambda}{{\sf id}}}(\{{\sf refl}\}) . Proof. Consider f,g:{\sf bool}\to{\sf bool} defined by \displaystyle f \displaystyle:= \displaystyle\lambda b:{\sf bool}.\ b\ {\sf bool}\ {\sf true}\ {\sf false} \displaystyle g \displaystyle:= \displaystyle\lambda b:{\sf bool}.\ b\ {\sf bool}\ {\sf true}\ {\sf false}\ {\sf bool}\ {\sf true}\ {\sf false}. We show that (1) \llbracket{\Pi b:{\sf bool}.f\ x=^{{\sf bool}}g\ x}\rrbracket_{\xi\rho}\neq\emptyset and (2) \llbracket{f=^{{\sf bool}\to{\sf bool}}g}\rrbracket_{\xi\rho}=\emptyset . (1) The interpretation of {\sf bool} is {\sf bool}^{\prime}:=\cap_{x\in{\cal P}}X\to X\to X , which is \{{\bf K},{\bf K}_{*},{\sf refl},\lambda x.\ {\sf refl},\lambda x,y.\ {\sf refl}\} , where {\bf K}=\lambda x\ y.\ x=\llparenthesis{{\sf true}}\rrparenthesis and {\bf K}_{*}=\lambda x\ y.\ y=\llparenthesis{{\sf false}}\rrparenthesis . The interpretations of f and g in the model are f^{\prime}:=\lambda b.b\ {\bf K}\ {\bf K}_{*} and g^{\prime}:=\lambda b.b\ {\bf K}\ {\bf K}_{*}\ {\bf K}\ {\bf K}_{*} We claim that we have for all b\in{\sf bool}^{\prime} : {\sf refl}\in\bigcap_{C\in{\sf bool}^{\prime}\to{\sf bool}^{\prime}\to{\bf A}\to{\cal P}}\{q\mid\forall t\in\Pi_{x\in{\sf bool}^{\prime}}.C(x,x,{\sf refl})\ [J\ t\ (f^{\prime}\ b)\ (g^{\prime}\ b)\ q\in C((f^{\prime}\ b),(g^{\prime}\ b),q)]\}. This is because for b={\bf K} , b={\bf K}_{*} , b={\sf refl} , b=\lambda x.\ {\sf refl} and b=\lambda x,y.\ {\sf refl} , we have f^{\prime}b=g^{\prime}b in {\Lambda}{{\sf id}} , so for any C , J\ t\ (f^{\prime}\ b)\ (g^{\prime}\ b)\ {\sf refl}=t\ (f^{\prime}\ b)\in C((f^{\prime}\ b),(g^{\prime}\ b),{\sf refl}) . So, we have a term in \Pi_{b\in{\sf bool}^{\prime}}.\llbracket{f\ x=^{{\sf bool}}g\ x}\rrbracket . (2) If q\in\llbracket{f=^{{\sf bool}\to{\sf bool}}g}\rrbracket_{\xi\rho} , then take a D\in({\sf bool}^{\prime}\to{\sf bool}^{\prime})\to({\sf bool}^{\prime}\to{\sf bool}^{\prime})\to{\bf A}\to{\cal P} such that D(h,h,{\sf refl})={\bf A} for any h\in{\sf bool}^{\prime}\to{\sf bool}^{\prime} and D(f^{\prime},g^{\prime},-)=\emptyset . Then we have a term t\in\Pi_{h\in{\sf bool}^{\prime}\to{\sf bool}^{\prime}}.D(h,h,{\sf refl}) and so {\sf J}\ t\ f^{\prime}\ g^{\prime}\ q\in D(f^{\prime},g^{\prime},q) . Contradiction, because D(f^{\prime},g^{\prime},q)=\emptyset . So \llbracket{f=^{{\sf bool}\to{\sf bool}}g}\rrbracket_{\xi\rho}=\emptyset . (NB. That f^{\prime}\neq g^{\prime} in {\Lambda}{{\sf id}} follows from the Church-Rosser property. From f^{\prime}=g^{\prime} it follows that all terms in {\Lambda}{{\sf id}} are equal: just consider f^{\prime}\ {\bf I}\ {\bf K} and g^{\prime}\ {\bf I}\ {\bf K} .) \sqcap \sqcup Lemma 5.10 . Induction for the natural numbers does not hold in the polyset model generated from C:=\{{\sf refl}\} , {\cal P}^{{\Lambda}{{\sf id}}}(\{{\sf refl}\}) . Proof. The proof is basically the same as in [ 13 ] , where it is shown that for polyset-model {\cal M} , we have: if {\cal M}\mathrel{{|}\!{\models}}{\sf ind}_{N,0,S} , then \llbracket{N}\rrbracket=\{S^{n}0\mid n\in{\rm I\kern-2.29996ptN}\} . But in the present model \llbracket{N}\rrbracket also contains {\sf refl} . \sqcap \sqcup We conclude with the following theorem, that collects together the results of Lemmas 5.7 , 5.8 and 5.10 . Theorem 5.11 . In \lambda P2 extended with identity types and UIP , we cannot define a data type for natural numbers for which we can prove the induction principle. 6 Conclusion and Discussion We have shown a number of non-derivability results in polymorphic dependent type theory \lambda P2 . We believe that the proofs go through without change if we replace \lambda P2 with the pure Calculus of Constructions CC. In Section 4 we have looked at quotient types and coinductive types, in particular the data type of streams. It would be interesting to generalize these results in the following directions. • To prove that there exists no stream type in \lambda P2 with a coinduction principle. Our Lemma 4.3 just shows that the well-known definable streams don’t have coinduction principle, but maybe one can give a smarter encoding of streams. • Theorem 4.4 proves that parametric quotients don’t exists. On the other hand, Example 2.8 gives a concrete example of a non-parametric quotient, but there the relation is really trivial: just the identity itself. Are there other non-parametric quotients (besides the trivial one)? Taking R\ x\ y:=\top we can define a {\sf cls} function and \widehat{f} , but {\sf IndQuot} is already unclear. In [ 21 ] it has been studied which quotient types are definable and which ones are not. But this is in predicative type theory with inductive types, which has more expressive power. • With functional extensionality, the definable quotient is parametric, as shown in [ 9 ] . But to construct a strong quotient type, we add \Sigma -types, identity types and UIP . Can one prove that there are no strong quotients in \lambda P2+{\sf FunExt} ? In Section 5 we have looked at extensions of \lambda P2 where inductive types (including quotient types) and coinductive types can be define with their proper induction and coinduction principles, as studied in [ 2 , 9 ] . We have seen that if we add \Sigma -types and an identity type with UIP , we still cannot have an encoding of natural numbers with an induction principle. We need to also add FunExt . This theorem is not limited to natural numbers, but holds for any algebraic data type, like booleans, lists, trees, … Combined with the results from [ 2 ] , this means that FunExt is crucial for defining induction.