Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
FloVer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
AVA
FloVer
Commits
c7fc112c
Commit
c7fc112c
authored
Dec 07, 2018
by
Nikita Zyuzin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the proofs compile at the costs of admits
parent
51a00b83
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
126 additions
and
98 deletions
+126
-98
coq/CertificateChecker.v
coq/CertificateChecker.v
+10
-5
coq/IEEE_connection.v
coq/IEEE_connection.v
+116
-93
No files found.
coq/CertificateChecker.v
View file @
c7fc112c
...
...
@@ -106,8 +106,10 @@ Definition CertificateCheckerCmd (f:cmd Q) (absenv:analysisResult) (P:precond)
end
.
Theorem
Certificate_checking_cmds_is_sound
(
f
:
cmd
Q
)
(
absenv
:
analysisResult
)
P
defVars:
defVars
DeltaMap
:
forall
(
E1
E2
:
env
),
(
forall
(
e
'
:
expr
R
)
(
m
'
:
mType
),
exists
d
:
R
,
DeltaMap
e
'
m
'
=
Some
d
/
\
(
Rabs
d
<=
mTypeToR
m
'
)
%
R
)
->
(
forall
v
,
NatSet
.
In
v
(
freeVars
f
)
->
exists
vR
,
E1
v
=
Some
vR
/
\
(
Q2R
(
fst
(
P
v
))
<=
vR
<=
Q2R
(
snd
(
P
v
)))
%
R
)
->
...
...
@@ -117,21 +119,24 @@ Theorem Certificate_checking_cmds_is_sound (f:cmd Q) (absenv:analysisResult) P
exists
iv
err
vR
vF
m
,
FloverMap
.
find
(
getRetExp
f
)
absenv
=
Some
(
iv
,
err
)
/
\
bstep
(
toREvalCmd
(
toRCmd
f
))
E1
(
toRTMap
(
toRExpMap
Gamma
))
DeltaMapR
vR
REAL
/
\
bstep
(
toRCmd
f
)
E2
(
toRExpMap
Gamma
)
vF
m
/
\
bstep
(
toRCmd
f
)
E2
(
toRExpMap
Gamma
)
DeltaMap
vF
m
/
\
(
forall
vF
m
,
bstep
(
toRCmd
f
)
E2
(
toRExpMap
Gamma
)
vF
m
->
bstep
(
toRCmd
f
)
E2
(
toRExpMap
Gamma
)
DeltaMap
vF
m
->
(
Rabs
(
vR
-
vF
)
<=
Q2R
(
err
))
%
R
).
(
**
The
proofs
is
a
simple
composition
of
the
soundness
proofs
for
the
range
validator
and
the
error
bound
validator
.
**
)
Proof
.
intros
*
P_valid
certificate_valid
.
intros
*
deltas_matched
P_valid
certificate_valid
.
unfold
CertificateCheckerCmd
in
certificate_valid
.
destruct
(
getValidMapCmd
defVars
f
(
FloverMap
.
empty
mType
))
eqn
:?
;
try
congruence
.
rename
t
into
Gamma
.
assert
(
validTypesCmd
f
Gamma
).
assert
(
validTypesCmd
f
Gamma
DeltaMap
).
{
eapply
getValidMapCmd_correct
;
try
eauto
.
intros
;
cbn
in
*
;
congruence
.
}
assert
(
validTypesCmd
f
Gamma
DeltaMapR
).
{
eapply
getValidMapCmd_correct
;
try
eauto
.
intros
;
cbn
in
*
;
congruence
.
}
exists
Gamma
;
intros
approxE1E2
.
...
...
coq/IEEE_connection.v
View file @
c7fc112c
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