Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Are Prop and Set interchangable?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Are Prop and Set interchangable?


Chronological Thread 
  • From: Gabriel Scherer <gabriel.scherer AT gmail.com>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Are Prop and Set interchangable?
  • Date: Sat, 1 Aug 2015 15:40:48 +0200

Prop and Set are two universes of types, and Prop is included in Set.
The different can be felt in various ways, including:
- a value in Prop can be seen as a value in Set (but the converse is not true)
- the rules to build terms whose type is in Prop are stricter than
those to build terms whose type is in Set (constructions by
case-distinction are restricted if you want to create a Prop)
- quantifying on all types in Prop is a "small quantification" (the
resulting polymorphic type is itself in Prop), while quantifying on
all types in Set (it quantifies on more things) is a "large
quantification" (the resulting polymorphic type lives in a strictly
larger universe)


I think this should be explained in most documents teaching Coq -- in
a section on the universe hierarchy.

On Sat, Aug 1, 2015 at 2:56 PM,
<yasu AT yasuaki.com>
wrote:
> Hi,
>
> I am currently learning COQ. Why is the sequence below valid? Are Prop and
> Set terms interchangable?
>
> Variable n : Prop.
> Variable f : Set -> nat.
> Check (f n).
>
> f n : nat
>
>
> Regards,
> Yasuaki



Archive powered by MHonArc 2.6.18.

Top of Page