aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--theories/Reals/DiscrR.v15
1 files changed, 14 insertions, 1 deletions
diff --git a/theories/Reals/DiscrR.v b/theories/Reals/DiscrR.v
index b3982dab11..f7e3e0b1f4 100644
--- a/theories/Reals/DiscrR.v
+++ b/theories/Reals/DiscrR.v
@@ -9,6 +9,7 @@
(*i $Id$ i*)
Require RIneq.
+Require Omega.
Recursive Tactic Definition Isrealint trm:=
Match trm With
@@ -56,4 +57,16 @@ Recursive Tactic Definition Sup0 :=
Match Context With
| [ |- ``0<1`` ] -> Apply Rlt_R0_R1
| [ |- ``0<?1`` ] -> Repeat (Apply Rmult_lt_pos Orelse Apply Rplus_lt_pos; Try Apply Rlt_R0_R1 Orelse Apply Rlt_R0_R2)
- | [ |- ``?1>0`` ] -> Change ``0<?1``; Sup0. \ No newline at end of file
+ | [ |- ``?1>0`` ] -> Change ``0<?1``; Sup0.
+
+Tactic Definition SupOmega := Replace R1 with (IZR `1`); [Repeat Rewrite <- plus_IZR Orelse Rewrite <- mult_IZR; Apply IZR_lt; Omega | Reflexivity].
+
+Recursive Tactic Definition Sup :=
+ Match Context With
+ | [ |- (Rgt ?1 ?2) ] -> Change ``?2<?1``; Sup
+ | [ |- ``0<?1`` ] -> Sup0
+ | [ |- (Rlt (Ropp ?1) R0) ] -> Rewrite <- Ropp_O; Sup
+ | [ |- (Rlt (Ropp ?1) (Ropp ?2)) ] -> Apply Rlt_Ropp; Sup
+ | [ |- (Rlt (Ropp ?1) ?2) ] -> Apply Rlt_trans with ``0``; Sup
+ | [ |- (Rlt ?1 ?2) ] -> SupOmega
+ | _ -> Idtac. \ No newline at end of file