Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] change in behavior from 8.2pl3 to 8.3rc1 -- bug?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] change in behavior from 8.2pl3 to 8.3rc1 -- bug?


chronological Thread 
  • From: Matthieu Sozeau <mattam AT mattam.org>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] change in behavior from 8.2pl3 to 8.3rc1 -- bug?
  • Date: Mon, 20 Sep 2010 14:46:41 -0400
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=E3DpXunFcjxIpmB7jeRWTgiSuZLrqn/sfpXTWrmD8eHSys2qidhWr0DZDOX8MqtiU5 IMF0Tnx8sAZ3ofXLj76mfeNYdh7PV1pJaTJSU/GJpp423WscIg5xRAb5nHMYE0FTQ4dE VSLTbo6MmZDJlK0p2CcSUu+DpS3s7kYlcl05c=

Hi Adam,

  yes, there is an incompatible change in 8.3: you have
to declare that [A] is generalizable using the
[Generalizable Variables A.] vernacular command (documented 
in the reference manual).

-- Matthieu

Le 20 sept. 2010 à 14:28, Adam Megacz a écrit :

> 
> (* The script below works with 8.2pl3 but reports "Error: Unbound and
> * ungeneralizable variable A" with 8.3rc1 *)
> 
> Inductive list (A:Type) : Type :=
>  | nil : list A
>  | cons : A -> list A -> list A.
> Implicit Arguments nil [A].
> Implicit Arguments cons [A].
> Infix "::" := cons (at level 60, right associativity).
> Lemma list_cannot_be_longer_than_itself : forall `(a:A)(b:list A), b = 
> (a::b) -> False.
>  intros.
>  induction b.
>  inversion H.
>  inversion H. apply IHb in H2.
>  auto.
>  Defined.
> 
> 
> 





Archive powered by MhonArc 2.6.16.

Top of Page