Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
788027d2
Commit
788027d2
authored
Feb 28, 2017
by
Guillaume Melquiond
Browse files
Generalize negative_or_positive.
parent
56ac17d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/coq/ieee_float/GenericFloat.v
View file @
788027d2
...
...
@@ -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
*
)
...
...
theories/ieee_float.why
View file @
788027d2
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment