Commit 788027d2 authored by Guillaume Melquiond's avatar Guillaume Melquiond

Generalize negative_or_positive.

parent 56ac17d0
......@@ -1604,10 +1604,10 @@ destruct x, b; easy.
Qed.
(* Why3 goal *)
Lemma negative_or_positive : forall (x:t), (is_finite x) -> ((is_positive
Lemma negative_or_positive : forall (x:t), (is_not_nan x) -> ((is_positive
x) \/ (is_negative x)).
intros x h1.
destruct x, b; simpl; auto; easy.
destruct x, b; simpl; auto; now elim h1.
Qed.
(* Why3 goal *)
......
......@@ -340,8 +340,10 @@ theory GenericFloat
axiom to_real_negative: forall x [is_negative x].
is_finite x -> to_real x <. 0.0 -> is_negative x
axiom negative_xor_positive: forall x. not (is_positive x /\ is_negative x)
axiom negative_or_positive: forall x. is_finite x -> is_positive x \/ is_negative x
axiom negative_xor_positive: forall x.
not (is_positive x /\ is_negative x)
axiom negative_or_positive: forall x.
is_not_nan x -> is_positive x \/ is_negative x
lemma diff_sign_trans:
forall x y z:t. (diff_sign x y /\ diff_sign y z) -> same_sign x z
......
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