1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
15 (* This file was automatically generated: do not edit *********************)
19 (*#***********************************************************************)
21 (* v * The Coq Proof Assistant / The Coq Development Team *)
23 (* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *)
25 (* \VV/ **************************************************************)
27 (* // * This file is distributed under the terms of the *)
29 (* * GNU Lesser General Public License Version 2.1 *)
31 (*#***********************************************************************)
33 (*i $Id: DiscrR.v,v 1.21.2.1 2004/07/16 19:31:10 herbelin Exp $ i*)
35 include "Reals/RIneq.ma".
38 Open Local Scope R_scope.
41 inline procedural "cic:/Coq/Reals/DiscrR/Rlt_R0_R2.con" as lemma.
43 inline procedural "cic:/Coq/Reals/DiscrR/Rplus_lt_pos.con" as lemma.
45 inline procedural "cic:/Coq/Reals/DiscrR/IZR_eq.con" as lemma.
47 inline procedural "cic:/Coq/Reals/DiscrR/IZR_neq.con" as lemma.
54 replace 2 with (IZR 2);
55 [ replace 1 with (IZR 1);
56 [ replace 0 with (IZR 0);
58 rewrite <- plus_IZR ||
59 rewrite <- mult_IZR ||
60 rewrite <- Ropp_Ropp_IZR || rewrite Z_R_minus;
61 apply IZR_neq; try discriminate
71 | |- (0 < 1) => apply Rlt_0_1
74 (apply Rmult_lt_0_compat || apply Rplus_lt_pos;
75 try apply Rlt_0_1 || apply Rlt_R0_R2)
76 | |- (?X1 > 0) => change (0 < X1) in |- *; prove_sup0
82 replace 2 with (IZR 2);
83 [ replace 1 with (IZR 1);
84 [ replace 0 with (IZR 0);
86 rewrite <- plus_IZR ||
87 rewrite <- mult_IZR ||
88 rewrite <- Ropp_Ropp_IZR || rewrite Z_R_minus;
98 | |- (?X1 > ?X2) => change (X2 < X1) in |- *; prove_sup
99 | |- (0 < ?X1) => prove_sup0
100 | |- (- ?X1 < 0) => rewrite <- Ropp_0; prove_sup
101 | |- (- ?X1 < - ?X2) => apply Ropp_lt_gt_contravar; prove_sup
102 | |- (- ?X1 < ?X2) => apply Rlt_trans with 0; prove_sup
103 | |- (?X1 < ?X2) => omega_sup
110 replace 2 with (IZR 2);
111 [ replace 1 with (IZR 1);
112 [ replace 0 with (IZR 0);
114 rewrite <- plus_IZR ||
115 rewrite <- mult_IZR ||
116 rewrite <- Ropp_Ropp_IZR || rewrite Z_R_minus;
117 apply IZR_eq; try reflexivity