# Rules about Prop and Set in UTT

In Luo's UTT (type theory which is used in Agda, Idris, and other dependently typed programming languages), there're are two rules for $\Pi$ types. One for $\mathsf{Prop}$ and one for $\mathsf{Set}$. In the one for $\mathsf{Prop}$ we have no constraints on the universe of a parameter. In the one for $\mathsf{Set}(i)$, we have.

Why it was done in this way? Will anything bad happen in such a case?

P.S. Basically I want to understand why $\mathsf{Prop}$ has special treatment in the theory. I.e. why we can't choose $\mathsf{Type}(0)$ for propositions, then removed the $\mathsf{Type}(i)$ condition in the $\Pi$ types' argument, and as a consequence have more uniform set of axioms.

P.P.S. In Luo's thesis I read that Calculus of inductive constructions (CIC) where this universe was introduce was created as a mix between Martin-Löf type theory (MLTT) and System F. Does $\mathsf{Prop}$ correspond to the union of all the existing universes?

P.P.P.S. UTT is described in Luo's PhD thesis and book here: http://www.cs.rhul.ac.uk/home/zhaohui/books.html

• Question would be more readable if you expanded some of the acronyms. Also, a well-formulated question should not require several PSs. – Dave Clarke May 11 '14 at 7:17
• I'll let Konstantin expand "UTT". – Andrej Bauer May 11 '14 at 8:24
• @DaveClarke What is PS? – Konstantin Solomatov May 11 '14 at 15:57
• PS is P.S. without the does. – Dave Clarke May 11 '14 at 16:01
• @DaveClarke Ok. I will try to formulate question better the next time. – Konstantin Solomatov May 11 '14 at 20:44

Say that a universe $U$ is impredicative if the product $\prod_{x : A} B(x)$ is in $U$ whenever $B(x)$ is in $U$ for all $x$, and $A$ is arbitrary, i.e., not necessarily in $U$.

Are there any impredicative universes? Let us think about what an impredicative universe would be for sets: a set $U$ such that for every family of sets $B : A \to U$, no matter how large $A$ is, $\prod_{x : A} B(x)$ is in $U$. That's only possible in two cases: when $U$ contains the singleton (or many copies of it) and when it contains the empty set and the singleton (or many copies of it). This is so because a product of sets which are all singletons or empty is again such a set. If $U$ contains a set $S$ with at least two elements then $S^U$ (which is a special case of a product) will fail to be contained in $U$ for cardinality reasons.

Of course, we recognize that the case $U = \{\emptyset, \{\emptyset\}\}$ is just the case when $U$ is the set of truth values, i.e., $\mathsf{Prop}$. This is one reason why $\mathsf{Prop}$ is treated differently: it is impredicative – not only in classical set theory but also more generally, because truth values are closed under $\forall$. Note that $\forall$ and $\prod$ coincide on families of sets that all contain at most one element.

In system $F$ we have impredicativity because types there are closed under $\forall$ ranging over the whole universe of types, and $\forall$ behaves like $\prod$.

One could hope that there are other models, where for instance $\mathsf{Type}_i$ is impredicative. Indeed, there are realizability models of (extensional) type theory that contain an impredicative universe of sets (as opposed to truth values). However, one cannot have two impredicative universes such that one is a member of the other, because one can then cook up a Burali-Forti paradox.

• Thank you very much! I can't imagine how I would find this out without your answer (and learn dep types without your other answers here). – Konstantin Solomatov May 11 '14 at 15:48
• May I ask why you're learning this stuff? – Andrej Bauer May 11 '14 at 16:18
• Basically, I want to understand tradeoffs which we have when we design dependently typed language, to implement one myself (I already implemented a language which is similar to what you implemented in your blog but with inductive types). I am doing this, since I want to apply projectional editors, the thing which I am working at JetBrains, to dependent types and I feel that it's the area where they are currently most useful. Since the length of the comment is limited I will write you email, where I explain this in more detail. – Konstantin Solomatov May 11 '14 at 19:13
{"ft_lang_label":"__label__en","ft_lang_prob":0.89499575,"math_prob":0.9729307,"size":1053,"snap":"2021-31-2021-39","text_gpt3_token_len":282,"char_repetition_ratio":0.13441373,"word_repetition_ratio":0.0,"special_character_ratio":0.25356126,"punctuation_ratio":0.15111111,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9946347,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-07-28T04:01:17Z\",\"WARC-Record-ID\":\"<urn:uuid:16d858f2-cc0c-4fa8-8c38-61f3dc2acc8c>\",\"Content-Length\":\"176873\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:a6f7dadd-2ff8-41f6-8a2e-2a024838e0a4>\",\"WARC-Concurrent-To\":\"<urn:uuid:61efa7aa-373a-4c65-9e74-d906bdea3ba7>\",\"WARC-IP-Address\":\"151.101.1.69\",\"WARC-Target-URI\":\"https://cstheory.stackexchange.com/questions/22498/rules-about-prop-and-set-in-utt\",\"WARC-Payload-Digest\":\"sha1:JMOARFX7WZLRZFDP4DROPNIQAENRZQXW\",\"WARC-Block-Digest\":\"sha1:CEW272AS4AW7RESFO63SPFRMIDBWPJWJ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-31/CC-MAIN-2021-31_segments_1627046153521.1_warc_CC-MAIN-20210728025548-20210728055548-00138.warc.gz\"}"}