coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jason Gross <jasongross9 AT gmail.com>
- To: coq-club <coq-club AT inria.fr>
- Subject: [Coq-Club] Name-dependent rewriting failures with [let ... in ...]
- Date: Wed, 19 Dec 2012 12:36:09 -0500
Hi,
Can someone explain to me why it matters whether I name a tactic [rew] or [rew'] in the following code (in Coq 8.4):
Goal forall x y z : Type, x = y -> y = z -> x = z.
intros.
let rew' := ( fun H => rewrite H in * ) in
rew' H0.
assumption.
Qed.
(* success *)
Goal forall x y z : Type, x = y -> y = z -> x = z.
intros.
let rew := ( fun H => rewrite H in * ) in
rew H0. (* Error: Library Coq.Setoids.Setoid has to be required first. *)
Abort.
Require Import Setoid.
Goal forall x y z : Type, x = y -> y = z -> x = z.
intros.
let rew := ( fun H => rewrite H in * ) in
rew H0. (* Error: Tactic failure:Nothing to rewrite. *)
Thanks.
-Jason
- [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.