Skip to Content.
Sympa Menu

coq-club - [Coq-Club] How to replace only one occurrence?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] How to replace only one occurrence?


chronological Thread 
  • 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





Archive powered by MhonArc 2.6.16.

Top of Page