coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Benjamin Werner <benjamin.werner AT polytechnique.fr>
- To: Yevgeniy Makarov <emakarov AT cs.indiana.edu>
- Cc: coq-club AT pauillac.inria.fr
- Subject: Re: [Coq-Club] How to replace only one occurrence?
- Date: Mon, 21 Feb 2005 08:00:24 +0100
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
Hi,
Do a "pattern x+y at 2" just before the replace tactic.
Cheers,
B
Le 21 févr. 05, à 07:34, Yevgeniy Makarov a écrit :
Hello,
I want to prove a simple statement that for any two numbers one of them is <= their average. I prove it by contradiction, assuming that both numbers x and y are greater than their average, and by adding the inequalities I get x + y > x + y. When I am entering this in Coq (moving bottom up), I'd like to replace the second x + y by
(avg x y) + (avg x y). How can I do this since the tactics rewrite and replace apply to both occurrences?
Thank you,
Yevgeniy
--------------------------------------------------------
Bug reports: http://coq.inria.fr/bin/coq-bugs
Archives: http://pauillac.inria.fr/pipermail/coq-club
http://pauillac.inria.fr/bin/wilma/coq-club
Info: http://pauillac.inria.fr/mailman/listinfo/coq-club
- [Coq-Club] How to replace only one occurrence?, Yevgeniy Makarov
- Re: [Coq-Club] How to replace only one occurrence?, Benjamin Werner
Archive powered by MhonArc 2.6.16.