Skip to Content.
Sympa Menu

coq-club - [Coq-Club] scope of variables inside sections.

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] scope of variables inside sections.


chronological Thread 
  • From: AUGER Cedric <Cedric.Auger AT lri.fr>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] scope of variables inside sections.
  • Date: Mon, 18 Jul 2011 16:28:12 +0200

Hi all, I found something that I consider a bug:

Section X.
Variable n: nat.
Hypothesis H: n = 0.
Lemma foo: True.
(* induction H. *)
  (*Here I see no real technical reason to forbid it*)
 revert H; intros H.
(* induction H. *)
  (*We try a trick to make it work by making it something
    not a section variable, but it fails*)
 revert H; intros K.
 induction K.
  (*We try a trick to make it work by making it something
    not a section variable, and it succeeds*)
 split.
Qed.
End X.

As I don't see any practical reason of this, I post on the mailing list.
I used 8.3 on FreeBSD.
I didn't tried the trunk version.



Archive powered by MhonArc 2.6.16.

Top of Page