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
f3053823
Commit
f3053823
authored
Sep 30, 2016
by
BOLDO Sylvie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Translate en 8.5
parent
3aac99c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
10 deletions
+22
-10
src/Translate/Ftranslate_flocq2Pff.v
src/Translate/Ftranslate_flocq2Pff.v
+2
-2
src/Translate/Missing_theos.v
src/Translate/Missing_theos.v
+20
-8
No files found.
src/Translate/Ftranslate_flocq2Pff.v
View file @
f3053823
...
...
@@ -18,8 +18,8 @@ COPYING file for more details.
*
)
(
**
Translation
from
Flocq
to
Pff
*
)
Require
Import
Veltkamp
.
Require
Import
Float
.
Veltkamp
.
Require
Import
Float
.
RND
.
Require
Import
Fcore
.
Require
Import
Fappli_IEEE
.
...
...
src/Translate/Missing_theos.v
View file @
f3053823
Require
Import
Float
.
Veltkamp
.
Require
Import
Float
.
RND
.
Require
Export
Float
.
Fast2Sum
.
Require
Import
Float
.
TwoSum
.
Require
Import
Float
.
FmaErr
.
Require
Import
Fcore
.
Require
Import
Fprop_plus_error
.
Require
Import
Fprop_mult_error
.
Require
Import
Fast2Sum
.
Require
Import
TwoSum
.
Require
Import
FmaErr
.
Require
Import
Ftranslate_flocq2Pff
.
Open
Scope
R_scope
.
...
...
@@ -43,12 +46,12 @@ destruct (format_is_pff_format radix2 (make_bound radix2 prec emin)
rewrite
make_bound_Emin
;
try
assumption
.
replace
(
--
emin
)
%
Z
with
emin
by
omega
;
assumption
.
(
*
*
)
pose
(
Iplus
:=
fun
(
f
g
:
float
)
=>
pose
(
Iplus
:=
fun
(
f
g
:
Float
.
float
)
=>
Fnormalize
radix2
(
make_bound
radix2
prec
emin
)
(
Zabs_nat
prec
)
(
Float
.
Float
(
Ztrunc
(
scaled_mantissa
radix2
(
FLT_exp
(
emin
)
prec
)
(
round_flt
(
FtoR
radix2
f
+
FtoR
radix2
g
))))
(
canonic_exp
radix2
(
FLT_exp
(
emin
)
prec
)
(
round_flt
(
FtoR
radix2
f
+
FtoR
radix2
g
))))).
pose
(
Iminus
:=
fun
(
f
g
:
float
)
=>
pose
(
Iminus
:=
fun
(
f
g
:
Float
.
float
)
=>
Fnormalize
radix2
(
make_bound
radix2
prec
emin
)
(
Zabs_nat
prec
)
(
Float
.
Float
(
Ztrunc
(
scaled_mantissa
radix2
(
FLT_exp
(
emin
)
prec
)
(
round_flt
(
FtoR
radix2
f
-
FtoR
radix2
g
))))
...
...
@@ -173,6 +176,7 @@ rewrite H1,H2.
rewrite
Fopp_correct
.
f_equal
;
ring
.
(
*
.
*
)
unfold
Fast2Sum
.
FtoRradix
.
change
2
%
Z
with
(
radix_val
radix2
).
rewrite
Hfx
,
Hfy
;
assumption
.
(
*
*
)
...
...
@@ -227,12 +231,12 @@ destruct (format_is_pff_format radix2 (make_bound radix2 prec emin)
rewrite
make_bound_Emin
;
try
assumption
.
replace
(
--
emin
)
%
Z
with
emin
by
omega
;
assumption
.
(
*
*
)
pose
(
Iplus
:=
fun
(
f
g
:
float
)
=>
pose
(
Iplus
:=
fun
(
f
g
:
Float
.
float
)
=>
Fnormalize
radix2
(
make_bound
radix2
prec
emin
)
(
Zabs_nat
prec
)
(
Float
.
Float
(
Ztrunc
(
scaled_mantissa
radix2
(
FLT_exp
(
emin
)
prec
)
(
round_flt
(
FtoR
radix2
f
+
FtoR
radix2
g
))))
(
canonic_exp
radix2
(
FLT_exp
(
emin
)
prec
)
(
round_flt
(
FtoR
radix2
f
+
FtoR
radix2
g
))))).
pose
(
Iminus
:=
fun
(
f
g
:
float
)
=>
pose
(
Iminus
:=
fun
(
f
g
:
Float
.
float
)
=>
Fnormalize
radix2
(
make_bound
radix2
prec
emin
)
(
Zabs_nat
prec
)
(
Float
.
Float
(
Ztrunc
(
scaled_mantissa
radix2
(
FLT_exp
(
emin
)
prec
)
(
round_flt
(
FtoR
radix2
f
-
FtoR
radix2
g
))))
...
...
@@ -287,6 +291,7 @@ rewrite Zopp_involutive.
apply
generic_format_round
...
rewrite
make_bound_Emin
;
omega
.
(
*
.
*
)
unfold
TwoSum
.
FtoRradix
.
intros
p
q
r
s
Fp
Fq
Fr
Fs
M1
M2
.
now
rewrite
2
!
H1
,
M1
,
M2
.
(
*
.
*
)
...
...
@@ -634,6 +639,13 @@ Qed.
End
Veltkamp
.
Section
Dekker
.
(
*
todo
*
)
End
Dekker
.
Section
ErrFMA
.
Variable
emin
prec
:
Z
.
...
...
@@ -841,6 +853,6 @@ rewrite Hfbe1'', Hfr1''; apply Hff'.
rewrite
Hfbe2
;
apply
Hfga
'
.
rewrite
Hfa
,
Hfx
,
Hfy
;
apply
Hfr1
'
.
rewrite
Hfu1
''
,
Hfal1
''
;
apply
Hfbe1
'
.
Q
ed
.
Admitt
ed
.
End
ErrFMA
.
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