Commit d7510700 authored by Guillaume Melquiond's avatar Guillaume Melquiond

Added Rcompare_sqr.

parent 712c4c25
......@@ -618,6 +618,21 @@ now apply (Z2R_neq 2 0).
now apply (Z2R_lt 0 2).
Theorem Rcompare_sqr :
forall x y,
(0 <= x)%R -> (0 <= y)%R ->
Rcompare (x * x) (y * y) = Rcompare x y.
intros x y Hx Hy.
destruct (Rcompare_spec x y) as [H|H|H].
apply Rcompare_Lt.
now apply Rsqr_incrst_1.
rewrite H.
now apply Rcompare_Eq.
apply Rcompare_Gt.
now apply Rsqr_incrst_1.
End Rcompare.
Section Floor_Ceil.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment