Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Pattern variables in [change], but not in [change] in an Ltac?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Pattern variables in [change], but not in [change] in an Ltac?


Chronological Thread 
  • From: Jason Gross <jasongross9 AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Pattern variables in [change], but not in [change] in an Ltac?
  • Date: Thu, 5 Jul 2012 16:25:39 -0400

Hi,
The code

Set Implicit Arguments.
Parameter bar : nat -> Type.
Let foo := bar.
Goal forall n, bar n.
  change (@bar ?m) with (@foo m).

works fine and behaves as expected.  However, the code 

Set Implicit Arguments.
Parameter bar : nat -> Type.
Let foo := bar.
Goal forall n, bar n.
  Ltac barfoo := change (@bar ?m) with (@foo m).
  barfoo.

errors with
Toplevel input, characters 67-68:
Error: The reference m was not found in the current environment.

on the Ltac definition.  What's going on?  (I'm using Coq 8.4beta2.)

Thanks.

-Jason


  • [Coq-Club] Pattern variables in [change], but not in [change] in an Ltac?, Jason Gross, 07/05/2012

Archive powered by MHonArc 2.6.18.

Top of Page