Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
FloVer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Boards
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
AVA
FloVer
Commits
7bd27dc4
Commit
7bd27dc4
authored
Apr 02, 2019
by
Heiko Becker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix errors introduced by merge with subdivision checks
parent
36ce0269
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
199 additions
and
1244 deletions
+199
-1244
AffineValidation.v
coq/AffineValidation.v
+5
-1
CertificateChecker.v
coq/CertificateChecker.v
+2
-2
Checker_extraction.v
coq/Checker_extraction.v
+5
-2
ErrorValidationAA.v
coq/ErrorValidationAA.v
+50
-32
ErrorValidationAAutil.v
coq/ErrorValidationAAutil.v
+5
-5
IEEE_connection.v
coq/IEEE_connection.v
+132
-1202
No files found.
coq/AffineValidation.v
View file @
7bd27dc4
...
...
@@ -110,6 +110,7 @@ Fixpoint validAffineBounds (e: expr Q) (A: analysisResult) P (validVars: NatSet.
if
(
isSupersetIntv
intv
iv
)
&&
(
isSupersetIntv
iv
intv
)
then
Some
(
FloverMap
.
add
e
af
'
exprsAf
'
,
n
'
)
else
None
|
Let
_
_
_
_
=>
None
end
end
.
...
...
@@ -522,7 +523,8 @@ Qed.
Definition
checked_expressions
(
A
:
analysisResult
)
E
Gamma
fVars
dVars
e
iexpmap
inoise
map1
:=
exists
af
vR
aiv
aerr
,
NatSet
.
Subset
(
usedVars
e
)
(
NatSet
.
union
fVars
dVars
)
/
\
(
*
WAS
:
usedVars
e
*
)
NatSet
.
Subset
(
freeVars
e
)
(
NatSet
.
union
fVars
dVars
)
/
\
FloverMap
.
find
e
A
=
Some
(
aiv
,
aerr
)
/
\
isSupersetIntv
(
toIntv
af
)
aiv
=
true
/
\
FloverMap
.
find
e
iexpmap
=
Some
af
/
\
...
...
@@ -677,6 +679,7 @@ Proof.
lra
.
Qed
.
(
*
Lemma
validAffineBounds_sound_var
A
P
E
Gamma
fVars
dVars
n
:
forall
(
noise
:
nat
)
(
exprAfs
:
expressionsAffine
)
(
inoise
:
nat
)
(
iexpmap
:
FloverMap
.
t
(
affine_form
Q
))
(
map1
:
nat
->
option
noise_type
),
...
...
@@ -2597,3 +2600,4 @@ Proof.
split
;
eauto
using
Rle_trans
.
+
destruct
vtyped
;
auto
.
Qed
.
*
)
\ No newline at end of file
coq/CertificateChecker.v
View file @
7bd27dc4
...
...
@@ -30,7 +30,6 @@ Theorem Certificate_checking_is_sound_general (e:expr Q) (absenv:analysisResult)
forall
(
E1
E2
:
env
)
DeltaMap
,
(
forall
(
v
:
R
)
(
m
'
:
mType
),
exists
d
:
R
,
DeltaMap
v
m
'
=
Some
d
/
\
(
Rabs
d
<=
mTypeToR
m
'
)
%
R
)
->
eval_precond
E1
P
->
unsat_queries
Qmap
->
(
forall
Qmap
,
In
Qmap
(
queriesInSubdivs
subdivs
)
->
unsat_queries
Qmap
)
->
...
...
@@ -45,6 +44,7 @@ Theorem Certificate_checking_is_sound_general (e:expr Q) (absenv:analysisResult)
eval_expr
E2
(
toRExpMap
Gamma
)
DeltaMap
(
toRExp
e
)
vF
m
->
(
Rabs
(
vR
-
vF
)
<=
Q2R
err
))
%
R
/
\
validTypes
e
Gamma
/
\
getValidMap
defVars
e
(
FloverMap
.
empty
mType
)
=
Succes
Gamma
/
\
validRanges
e
absenv
E1
(
toRTMap
(
toRExpMap
Gamma
))
/
\
validErrorBounds
e
E1
E2
absenv
Gamma
/
\
validFPRanges
e
E2
Gamma
absenv
.
...
...
@@ -81,7 +81,7 @@ Theorem Certificate_checking_is_sound (e:expr Q) (absenv:analysisResult)
forall
(
E1
E2
:
env
)
DeltaMap
,
(
forall
(
v
:
R
)
(
m
'
:
mType
),
exists
d
:
R
,
DeltaMap
v
m
'
=
Some
d
/
\
(
Rabs
d
<=
mTypeToR
m
'
)
%
R
)
->
eval_precond
E1
P
->
unsat_queries
Qmap
->
(
forall
Qmap
,
In
Qmap
(
queriesInSubdivs
subdivs
)
->
unsat_queries
Qmap
)
->
...
...
coq/Checker_extraction.v
View file @
7bd27dc4
Require
Import
Flover
.
CertificateChecker
Flover
.
floverParser
.
Require
Import
Coq
.
extraction
.
ExtrOcamlString
Coq
.
extraction
.
ExtrOcamlBasic
Coq
.
extraction
.
ExtrOcamlNatBigInt
Coq
.
extraction
.
ExtrOcamlZBigInt
.
Require
Import
Coq
.
extraction
.
ExtrOcamlString
Coq
.
extraction
.
ExtrOcamlBasic
Coq
.
extraction
.
ExtrOcamlNatBigInt
Coq
.
extraction
.
ExtrOcamlZBigInt
.
Extraction
Language
O
c
aml
.
Extraction
Language
O
C
aml
.
(
*
Extraction
"./binary/CoqChecker.ml"
runChecker
.
*
)
coq/ErrorValidationAA.v
View file @
7bd27dc4
This diff is collapsed.
Click to expand it.
coq/ErrorValidationAAutil.v
View file @
7bd27dc4
...
...
@@ -4,14 +4,14 @@ From Coq
From
Flover
Require
Import
Infra
.
Abbrevs
Infra
.
RationalSimps
Infra
.
RealRationalProps
Infra
.
RealSimps
Infra
.
Ltacs
Commands
Environments
ErrorAnalysis
Infra
.
RealSimps
Infra
.
Ltacs
Environments
ErrorAnalysis
ExpressionSemantics
IntervalValidation
TypeValidator
RealRangeValidator
ErrorBounds
ErrorValidation
AffineForm
AffineArithQ
AffineArith
.
ErrorValidation
AffineForm
AffineArithQ
AffineArith
AffineValidation
.
Definition
mkErrorPolyQ
(
err
:
Q
)
noise
:=
if
Qeq_bool
err
0
then
Const
0
else
else
Noise
noise
err
(
Const
0
).
Definition
mkErrorPolyR
(
err
:
R
)
noise
:=
...
...
@@ -531,7 +531,7 @@ Proof.
reflexivity
.
Qed
.
Lemma
RmaxAbsFun_pos
iv
:
Lemma
RmaxAbsFun_pos
iv
:
(
0
<=
RmaxAbsFun
iv
)
%
R
.
Proof
.
unfold
RmaxAbsFun
.
...
...
@@ -985,7 +985,7 @@ Lemma multiplication_error_af_evals
(
mult_aff
(
afQ2R
af1
)
(
afQ2R
af2
)
(
noise
+
4
)))
(
mkErrorPolyR
(
computeErrorR
(
Q2R
(
maxAbs
(
multIntv
(
widenIntv
iv1
err1
)
(
widenIntv
iv2
err2
))))
m
)
(
noise
+
5
)))
(
noise
+
5
)))
(
v__R1
*
v__R2
-
perturb
(
v__FP1
*
v__FP2
)
m
delta
)
noise_map
'
.
Proof
.
intros
.
...
...
coq/IEEE_connection.v
View file @
7bd27dc4
This diff is collapsed.
Click to expand it.
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