Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Why does rewrite fail here?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Why does rewrite fail here?


Chronological Thread 
  • From: Gert Smolka <smolka AT ps.uni-saarland.de>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: [Coq-Club] Why does rewrite fail here?
  • Date: Tue, 10 Jun 2014 19:10:20 +0200

Why does rewrite fail in the following script? Is this a feature or a bug?
Thanks for a hint, Gert

Require Import Setoid.

Lemma rewrite_fails X Y (f : X -> X -> Y) (g : Y -> Y) x' :
f x' = (fun x : X => g (f x x)) -> g (f x' x') = f x' x'.
Proof.
intros E. rewrite E at 2.
(* Error: Tactic failure:Nothing to rewrite. *)




Archive powered by MHonArc 2.6.18.

Top of Page