Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] [Type Classes]: avoid duplication of instances

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] [Type Classes]: avoid duplication of instances


chronological Thread 
  • From: Aaron Bohannon <bohannon AT cis.upenn.edu>
  • To: St�phane Lescuyer <stephane.lescuyer AT polytechnique.org>
  • Cc: Alexandre Pilkiewicz <alexandre.pilkiewicz AT polytechnique.org>, Coq Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] [Type Classes]: avoid duplication of instances
  • Date: Wed, 13 Oct 2010 15:14:37 -0400
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=VIEvZBNTeXZb2Hs6i+57xrpYQbM4AbMuEw3Qx4zVcyzUaIlbo97AxXGqMTwNWrYDlR 8I61yoHED2eETc7QcT1DHRb3gs2Z1TCmwMpCpmjRfz1YgV2kfmL92uT+X/1tNdQmMZgg aGwdC2827HPztgzV9sr1r05RUOGeVAXtstous=

2010/10/12 Stéphane Lescuyer 
<stephane.lescuyer AT polytechnique.org>:
>  1 subgoal
>  A : Type
>  EqA : EqDec A
>  x : A
>  y : A
>  H : equal x y = true
> ======================
>  x = y
>> destruct (eq_dec x y).

Hi Stéphane,

I am rather disappointed to find out that this only works in this way
in Coq 8.2.  In Coq 8.3rc1, to achieve the same effect, you must write

destruct (@eq_dec A EqA x y).

While this doesn't entirely negate the usefulness of this technique, I
really wish it was as easy in 8.3 as 8.2.  What happened?  Is there
some new vernacular command I have to use to get 8.3 to cooperate?

 - Aaron




Archive powered by MhonArc 2.6.16.

Top of Page