Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flocq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Flocq
flocq
Commits
e37bc5ec
Commit
e37bc5ec
authored
May 17, 2010
by
Guillaume Melquiond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added instances of generic_NE_pt for FLX and FLT formats.
parent
0abbd211
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
16 deletions
+48
-16
src/Core/Fcore_FLT.v
src/Core/Fcore_FLT.v
+25
-10
src/Core/Fcore_FLX.v
src/Core/Fcore_FLX.v
+23
-6
No files found.
src/Core/Fcore_FLT.v
View file @
e37bc5ec
...
...
@@ -215,27 +215,42 @@ apply iff_sym.
now
apply
FIX_format_generic
.
Qed
.
Theorem
Rnd_NE_pt_FLT
:
Zeven
(
radix_val
beta
)
=
false
\
/
(
1
<
prec
)
%
Z
->
rounding_pred
(
Rnd_NE_pt
beta
FLT_exp
).
Hypothesis
NE_prop
:
Zeven
(
radix_val
beta
)
=
false
\
/
(
1
<
prec
)
%
Z
.
Theorem
NE_ex_prop_FLT
:
NE_ex_prop
beta
FLT_exp
.
Proof
.
intros
H
.
apply
Rnd_NE_pt_rounding
.
apply
FLT_exp_correct
.
destruct
H
.
destruct
NE_prop
as
[
H
|
H
].
now
left
.
right
.
intros
e
.
unfold
FLT_exp
.
destruct
(
Zmax_spec
(
e
-
prec
)
emin
)
as
[(
H1
,
H2
)
|
(
H1
,
H2
)]
.
rewrite
H2
.
destruct
(
Zmax_spec
(
e
-
prec
)
emin
)
as
[(
H1
,
H2
)
|
(
H1
,
H2
)]
;
rewrite
H2
;
clear
H2
.
generalize
(
Zmax_spec
(
e
+
1
-
prec
)
emin
).
generalize
(
Zmax_spec
(
e
-
prec
+
1
-
prec
)
emin
).
omega
.
rewrite
H2
.
generalize
(
Zmax_spec
(
e
+
1
-
prec
)
emin
).
generalize
(
Zmax_spec
(
emin
+
1
-
prec
)
emin
).
omega
.
Qed
.
Theorem
generic_NE_pt_FLT
:
forall
x
,
Rnd_NE_pt
beta
FLT_exp
x
(
rounding
beta
FLT_exp
ZrndNE
x
).
Proof
.
intros
x
.
apply
generic_NE_pt
.
apply
FLT_exp_correct
.
apply
NE_ex_prop_FLT
.
Qed
.
Theorem
Rnd_NE_pt_FLT
:
rounding_pred
(
Rnd_NE_pt
beta
FLT_exp
).
Proof
.
apply
Rnd_NE_pt_rounding
.
apply
FLT_exp_correct
.
apply
NE_ex_prop_FLT
.
Qed
.
End
RND_FLT
.
src/Core/Fcore_FLX.v
View file @
e37bc5ec
...
...
@@ -222,17 +222,34 @@ now apply <- FLX_format_FLXN.
exact
FLX_exp_correct
.
Qed
.
Hypothesis
NE_prop
:
Zeven
(
radix_val
beta
)
=
false
\
/
(
1
<
prec
)
%
Z
.
Theorem
NE_ex_prop_FLX
:
NE_ex_prop
beta
FLX_exp
.
Proof
.
destruct
NE_prop
as
[
H
|
H
].
now
left
.
right
.
unfold
FLX_exp
.
split
;
omega
.
Qed
.
Theorem
generic_NE_pt_FLX
:
forall
x
,
Rnd_NE_pt
beta
FLX_exp
x
(
rounding
beta
FLX_exp
ZrndNE
x
).
Proof
.
intros
x
.
apply
generic_NE_pt
.
apply
FLX_exp_correct
.
apply
NE_ex_prop_FLX
.
Qed
.
Theorem
Rnd_NE_pt_FLX
:
Zeven
(
radix_val
beta
)
=
false
\
/
(
1
<
prec
)
%
Z
->
rounding_pred
(
Rnd_NE_pt
beta
FLX_exp
).
Proof
.
intros
H
.
apply
Rnd_NE_pt_rounding
.
apply
FLX_exp_correct
.
destruct
H
.
now
left
.
right
.
unfold
FLX_exp
;
split
;
omega
.
apply
NE_ex_prop_FLX
.
Qed
.
End
RND_FLX
.
Write
Preview
Markdown
is supported
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