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
b3738592
Commit
b3738592
authored
Sep 20, 2010
by
BOLDO Sylvie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
canonic_exp_ge made more generic
parent
68a4fd29
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
18 deletions
+21
-18
src/Core/Fcore_generic_fmt.v
src/Core/Fcore_generic_fmt.v
+21
-0
src/Prop/Fprop_mult_error.v
src/Prop/Fprop_mult_error.v
+0
-18
No files found.
src/Core/Fcore_generic_fmt.v
View file @
b3738592
...
...
@@ -300,6 +300,27 @@ rewrite Rmult_assoc, <- bpow_add, Zplus_opp_r, Rmult_1_r.
now
rewrite
Ztrunc_Z2R
.
Qed
.
Theorem
canonic_exp_ge
:
forall
prec
,
(
forall
e
,
(
e
-
prec
<=
fexp
e
)
%
Z
)
->
(
*
OK
with
FLX
,
FLT
and
FTZ
*
)
forall
x
,
generic_format
x
->
(
Rabs
x
<
bpow
(
prec
+
canonic_exponent
x
))
%
R
.
intros
prec
Hp
x
Hx
.
case
(
Req_dec
x
0
);
intros
Hxz
.
rewrite
Hxz
,
Rabs_R0
.
apply
bpow_gt_0
.
unfold
canonic_exponent
.
destruct
(
ln_beta
beta
x
);
simpl
.
specialize
(
a
Hxz
).
apply
Rlt_le_trans
with
(
1
:=
proj2
a
).
apply
->
bpow_le
.
specialize
(
Hp
x0
).
omega
.
Qed
.
Section
Fcore_generic_rounding_pos
.
Record
Zrounding
:=
mkZrounding
{
...
...
src/Prop/Fprop_mult_error.v
View file @
b3738592
...
...
@@ -145,24 +145,6 @@ Notation format := (generic_format beta (FLT_exp emin prec)).
Notation
cexp
:=
(
canonic_exponent
beta
(
FLT_exp
emin
prec
)).
Theorem
canonic_exp_ge_FLT
:
forall
x
,
format
x
->
(
Rabs
x
<
bpow
(
prec
+
cexp
x
))
%
R
.
intros
x
Hx
.
case
(
Req_dec
x
0
);
intros
Hxz
.
rewrite
Hxz
,
Rabs_R0
.
apply
bpow_gt_0
.
unfold
canonic_exponent
,
FLT_exp
.
destruct
(
ln_beta
beta
x
);
simpl
.
specialize
(
a
Hxz
).
apply
Rlt_le_trans
with
(
1
:=
proj2
a
).
apply
->
bpow_le
.
case
(
Zmax_spec
(
x0
-
prec
)
emin
);
intros
(
H1
,
H2
).
rewrite
H2
;
omega
.
rewrite
H2
;
omega
.
Qed
.
Theorem
mult_error_FLT
:
forall
rnd
,
forall
x
y
,
...
...
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