2
Require Import ZArith ROmega.
4
(* Submitted by Xavier Urbain 18 Jan 2002 *)
7
forall x y : Z, (-5 < x < 5)%Z -> (-5 < y)%Z -> (-5 < x + y + 5)%Z.
13
(* Proposed by Pierre Crégut *)
15
Lemma lem2 : forall x : Z, (x < 4)%Z -> (x > 2)%Z -> x = 3%Z.
20
(* Proposed by Jean-Christophe Filliâtre *)
22
Lemma lem3 : forall x y : Z, x = y -> (x + x)%Z = (y + y)%Z.
28
(* Proposed by Jean-Christophe Filliâtre: confusion between an Omega *)
29
(* internal variable and a section variable (June 2001) *)
33
Hypothesis H : (x > y)%Z.
34
Lemma lem4 : (x > y)%Z.
39
(* Proposed by Yves Bertot: because a section var, L was wrongly renamed L0 *)
43
Variable R1 R2 S1 S2 H S : Z.
44
Hypothesis I : (R1 < 0)%Z -> R2 = (R1 + (2 * S1 - 1))%Z.
45
Hypothesis J : (R1 < 0)%Z -> S2 = (S1 - 1)%Z.
46
Hypothesis K : (R1 >= 0)%Z -> R2 = R1.
47
Hypothesis L : (R1 >= 0)%Z -> S2 = S1.
48
Hypothesis M : (H <= 2 * S)%Z.
49
Hypothesis N : (S < H)%Z.
50
Lemma lem5 : (H > 0)%Z.
55
(* From Nicolas Oury (bug #180): handling -> on Set (fixed Oct 2002) *)
57
forall (A : Set) (i : Z), (i <= 0)%Z -> ((i <= 0)%Z -> A) -> (i <= 0)%Z.
62
(* Adapted from an example in Nijmegen/FTA/ftc/RefSeparating (Oct 2002) *)
65
Parameter g : forall m : nat, m <> 0 -> Prop.
66
Parameter f : forall (m : nat) (H : m <> 0), g m H.
68
Variable ap_n : n <> 0.
69
Let delta := f n ap_n.
75
(* Problem of dependencies *)
77
Lemma lem8 : forall H : 0 = 0 -> 0 = 0, H = H -> 0 = 0.
82
(* Bug that what caused by the use of intro_using in Omega *)
85
forall p q : nat, ~ (p <= q /\ p < q \/ q <= p /\ p < q) -> p < p \/ p <= p.
90
(* Check that the interpretation of mult on nat enforces its positivity *)
91
(* Submitted by Hubert Thierry (bug #743) *)
92
(* Postponed... problem with goals of the form "(n*m=0)%nat -> (n*m=0)%Z" *)
93
Lemma lem10 : forall n m : nat, le n (plus n (mult n m)).
95
intros; romega with nat.