Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] another question (Prop as a subtype of Set)

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] another question (Prop as a subtype of Set)


chronological Thread 
  • From: Matthieu Sozeau <mattam AT mattam.org>
  • To: Vladimir Voevodsky <vladimir AT ias.edu>
  • Cc: Coq Club <coq-club AT pauillac.inria.fr>
  • Subject: Re: [Coq-Club] another question (Prop as a subtype of Set)
  • Date: Tue, 13 Oct 2009 14:00:09 -0400
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Le 13 oct. 09 à 13:49, Vladimir Voevodsky a écrit :

In the following sequence of instructions:

Axiom f5 : Set -> nat .

Axiom P0 : Prop .

Axiom S0 : Set .

Check f5 P0 .

Check eq P0 S0 .

The last two produce the following reactions:

f5 P0
    : nat

and

Error: The term "S0" has type "Set" while it is expected to have type "Prop".

respectively.

Why does f5 treat Prop as a subtype of Set but eq does not?

It's because eq's arguments type is fixed by the type of its first argument.
One could say it's somewhat premature, there exists some systems
using unification with subtyping that can handle this case.
In short, [Check @eq Set P0 S0.] works, as does [Check eq S0 P0] :).

-- Matthieu





Archive powered by MhonArc 2.6.16.

Top of Page