aboutsummaryrefslogtreecommitdiff
path: root/mathcomp/algebra/ssrnum.v
diff options
context:
space:
mode:
authorReynald Affeldt2020-05-21 23:32:46 +0900
committerReynald Affeldt2020-05-21 23:32:46 +0900
commit83e8892161c8ef3903e302c82a2a7a43f2708d67 (patch)
tree3b3fd91bb05e266291f6f9f8a4e7a47563743063 /mathcomp/algebra/ssrnum.v
parent3515b33b1245ea169fbaf61405dc60954509fee2 (diff)
three lemmas that we found useful in the context of the
mathcomp-analysis project
Diffstat (limited to 'mathcomp/algebra/ssrnum.v')
-rw-r--r--mathcomp/algebra/ssrnum.v6
1 files changed, 6 insertions, 0 deletions
diff --git a/mathcomp/algebra/ssrnum.v b/mathcomp/algebra/ssrnum.v
index e1e5992..41199eb 100644
--- a/mathcomp/algebra/ssrnum.v
+++ b/mathcomp/algebra/ssrnum.v
@@ -3754,6 +3754,12 @@ Proof. by rewrite lter_norml !lter_sub_addl. Qed.
Definition lter_distl := (ler_distl, ltr_distl).
+Lemma ltr_distW x y e : `|x - y| < e -> y - e < x.
+Proof. by rewrite ltr_distl => /andP[]. Qed.
+
+Lemma ler_distW x y e : `|x - y| <= e -> y - e <= x.
+Proof. by rewrite ler_distl => /andP[]. Qed.
+
Lemma exprn_even_ge0 n x : ~~ odd n -> 0 <= x ^+ n.
Proof. by move=> even_n; rewrite real_exprn_even_ge0 ?num_real. Qed.