coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Frederic Blanqui <frederic.blanqui AT inria.fr>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Does Coq actively convert things to Prop?
- Date: Wed, 18 Apr 2012 16:32:26 +0800
Hello.
Le 18/04/2012 16:07, Andrej Bauer a écrit :
Consider the following example:The "problem" seems to be here already since, for Coq, Q has type A->A->Prop instead of A->A->Type as written explicitly.
Parameter A : Type.
Definition cow (P : forall (x : A), A -> Type) := forall x y : A, P x y.
Inductive Q (x : A) : A -> Type := horn : Q x x.
And, if you have two constructors, then you get Set which is at the bottom of the Type hierarchy:
Inductive Q'(x:A):A->Type:=h1:Q' x x|h2:Q' x x.
Coq < Check Q'.
Q'
: A -> A -> Set
Therefore, I guess that this is related to the fact that there is only one constructor. I believe that there is a special treatment in this case. It allows for instance elimination on well-foundedness proofs.
Frederic.
Definition q := cow Q.
Definition r := forall x y : A, Q x y.
r is just q expanded out by hand, but q is in Type and r is in Prop.
This seems awfully wrong. Can someone convince me that it is not a
bug? It destroys homotopy type theory in Coq, where we want to keep
things in Type.
With kind regards,
Andrej
- [Coq-Club] Does Coq actively convert things to Prop?, Andrej Bauer
- Re: [Coq-Club] Does Coq actively convert things to Prop?, Frederic Blanqui
- Re: [Coq-Club] Does Coq actively convert things to Prop?,
Arnaud Spiwack
- Re: [Coq-Club] Does Coq actively convert things to Prop?,
Andrej Bauer
- Re: [Coq-Club] Does Coq actively convert things to Prop?, Andrej Bauer
- Re: [Coq-Club] Does Coq actively convert things to Prop?,
Arnaud Spiwack
- Re: [Coq-Club] Does Coq actively convert things to Prop?,
Andrej Bauer
- Re: [Coq-Club] Does Coq actively convert things to Prop?,
Bernard Hurley
- Re: [Coq-Club] Does Coq actively convert things to Prop?, Andrej Bauer
- Re: [Coq-Club] Does Coq actively convert things to Prop?, AUGER Cédric
- Re: [Coq-Club] Does Coq actively convert things to Prop?, Frederic Blanqui
- Re: [Coq-Club] Does Coq actively convert things to Prop?, Andrej Bauer
- Re: [Coq-Club] Does Coq actively convert things to Prop?,
Bernard Hurley
- Re: [Coq-Club] Does Coq actively convert things to Prop?,
Andrej Bauer
- Re: [Coq-Club] Does Coq actively convert things to Prop?,
Andrej Bauer
- Re: [Coq-Club] Does Coq actively convert things to Prop?,
Arnaud Spiwack
- Re: [Coq-Club] Does Coq actively convert things to Prop?, Frederic Blanqui
Archive powered by MhonArc 2.6.16.