Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Automatic eta reduction in 8.4beta2?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Automatic eta reduction in 8.4beta2?


Chronological Thread 
  • From: Jason Gross <jasongross9 AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Automatic eta reduction in 8.4beta2?
  • Date: Mon, 23 Jul 2012 13:32:16 -0400

Hi,
Is there a variant of [cbv] or of [simpl] (or something) that performs eta reduction?  I'm looking for a built-in version of something like
Ltac eta_red :=
  repeat match goal with
           | [ H : appcontext[fun x => ?f x] |- _ ] => change (fun x => f x) with f in H
           | [ |- appcontext[fun x => ?f x] ] => change (fun x => f x) with f
         end.

(except it would be nice to allow [f] to reference things that are not free in [H]/the goal)

Thanks.

-Jason


  • [Coq-Club] Automatic eta reduction in 8.4beta2?, Jason Gross, 07/23/2012

Archive powered by MHonArc 2.6.18.

Top of Page