Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] more naive questions about rewriting

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] more naive questions about rewriting


Chronological Thread 
  • From: Laurent Thery <Laurent.Thery AT inria.fr>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] more naive questions about rewriting
  • Date: Wed, 17 Aug 2016 11:25:31 +0200



On 08/17/2016 12:11 AM, Vadim Zaliva wrote:

I wonder if somebody tried to automate something like this? If there is
a way in Ltac to find out nth-occurrence of the pattern, so it could be
then used in 'replace'?

Lemma Foo
{A:Type}
(f0 f1 f2 f3 f4: A->A)
:
compose f1 (compose f2 (compose f3 f4)) =
compose f1 (compose (compose f2 f3) f4).
Proof.
intros.
set (u := compose _ _) at 2.
change u with (compose (compose f2 f3) f4).



Archive powered by MHonArc 2.6.18.

Top of Page