Suppose a, x, and y are positive IEEE floating point numbers with x < y. Prove that a×x < a×y where × denotes floating-point multiplication rounding to nearest.
Naively, you might suppose that for some a and for x close to y, you would get a×x = a×y. It turns out that this can't happen (as long as denormalized numbers, infinities, and NaNs are excluded).
I'm interested in an elegant proof and, if possible, a book or paper where this is given.
TAKE 2: As the reply by Pascal Cuoq shows, the statement above is false. How about the restricted version with y = 1? Here is the statement to be proved:
Suppose a and x are positive IEEE floating point numbers with x < 1. Prove that a×x < a where × denotes floating-point multiplication rounding to nearest.