coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Pierre-Marie Pédrot <pierre-marie.pedrot AT inria.fr>
- To: Jason Gross <jasongross9 AT gmail.com>
- Cc: coq-club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] Name-dependent rewriting failures with [let ... in ...]
- Date: Wed, 19 Dec 2012 18:59:52 +0100
On 19/12/2012 18:36, Jason Gross wrote:
> Can someone explain to me why it matters whether I name a tactic [rew] or
> [rew'] in the following code (in Coq 8.4):
The tactic 'rew' is hardwired in the 'rewrite.ml4' file by the following
code:
TACTIC EXTEND GenRew
| [ "rew" orient(o) glob_constr_with_bindings(c) "in" hyp(id) "at"
occurrences(occ) ] ->
[ cl_rewrite_clause_newtac_tac c o (occurrences_of occ) (Some id) ]
| [ "rew" orient(o) glob_constr_with_bindings(c) "at" occurrences(occ)
"in" hyp(id) ] ->
[ cl_rewrite_clause_newtac_tac c o (occurrences_of occ) (Some id) ]
| [ "rew" orient(o) glob_constr_with_bindings(c) "in" hyp(id) ] ->
[ cl_rewrite_clause_newtac_tac c o all_occurrences (Some id) ]
| [ "rew" orient(o) glob_constr_with_bindings(c) "at" occurrences(occ) ] ->
[ cl_rewrite_clause_newtac_tac c o (occurrences_of occ) None ]
| [ "rew" orient(o) glob_constr_with_bindings(c) ] ->
[ cl_rewrite_clause_newtac_tac c o all_occurrences None ]
END
This means that your problem lies in the parsing stratum, which is quite
annoying indeed (and can't be solved).
PMP
Attachment:
signature.asc
Description: OpenPGP digital signature
- [Coq-Club] Name-dependent rewriting failures with [let ... in ...], Jason Gross, 12/19/2012
- Re: [Coq-Club] Name-dependent rewriting failures with [let ... in ...], Pierre-Marie Pédrot, 12/19/2012
- Re: [Coq-Club] Name-dependent rewriting failures with [let ... in ...], AUGER Cédric, 12/19/2012
Archive powered by MHonArc 2.6.18.