Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Name-dependent rewriting failures with [let ... in ...]

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Name-dependent rewriting failures with [let ... in ...]


Chronological Thread 
  • 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



Archive powered by MHonArc 2.6.18.

Top of Page