Skip to Content.
Sympa Menu

coq-club - [Coq-Club] rewriting on bound variables

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] rewriting on bound variables


chronological Thread 
  • From: Roland Zumkeller <Roland.Zumkeller AT polytechnique.fr>
  • To: coq-club AT pauillac.inria.fr
  • Subject: [Coq-Club] rewriting on bound variables
  • Date: Sun, 30 May 2004 19:39:18 +0200
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

...is apparently not possible in Coq:

Require Import Arith.

Goal (fun n => n+1) = (fun n => 1+n).
rewrite (plus_comm 1).

  Error: Found no subterm matching "1 + ?4675" in the current goal

I think the reason is that "1+n" can't be abstracted, so "rewrite" cannot apply eq_ind_r.
Is this just a technical problem or is there any other way to prove this goal?

More generally I'd like to prove
  (fun x => f x) = (fun x => g x)
under the hypthesis
  forall x, f x = g x





Archive powered by MhonArc 2.6.16.

Top of Page