Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Identity Coercions and Uniform Inheritance Condition

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Identity Coercions and Uniform Inheritance Condition


chronological Thread 
  • From: Paolo Herms <paolo.herms AT cea.fr>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Identity Coercions and Uniform Inheritance Condition
  • Date: Thu, 21 Jul 2011 15:15:20 +0200

On Thursday 21 July 2011 14:25:59 AUGER Cedric wrote:
> I guess the problem is that you define a coercion from C' to C;
> and you would like to have one from C to C';
> so that you can branch it to follow this diagram: C>->C'>->D.
> 
> But I guess, that such a coercion is not possible.
> 
Identity Coercions are supposed to work in both directions, that's why
Check c : C' X Y.
works.

> I don't know if you are interested in this:
> 
> Parameter C : Type -> Type.
> Parameter D : Type -> Type -> Type.
> Parameter f : forall A, C A -> forall B, D A B.
> 
> Coercion f: C>-> Funclass.
> 
> Variable X: C nat.
> Check (X nat: D nat nat).
> Check (X: forall B, D nat B). 

No, at the points, where I want the coercion to work, the expected type is 
D ? ?.
-- 
Paolo Herms
PhD Student - CEA Software Safety Lab. / INRIA ProVal Project
Paris, France



Archive powered by MhonArc 2.6.16.

Top of Page