coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Yevgeniy Makarov <emakarov AT cs.indiana.edu>
- To: coq-club AT pauillac.inria.fr
- Subject: [Coq-Club] How to replace only one occurrence?
- Date: Mon, 21 Feb 2005 01:34:48 -0500
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
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
- [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.