Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FloVer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AVA
FloVer
Commits
687917a3
Commit
687917a3
authored
8 years ago
by
Heiko Becker
Browse files
Options
Downloads
Patches
Plain Diff
Prove existential rewriting lemma for evaluations
parent
c2fce16b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
coq/Expressions.v
+23
-0
23 additions, 0 deletions
coq/Expressions.v
coq/Infra/ExpressionAbbrevs.v
+5
-0
5 additions, 0 deletions
coq/Infra/ExpressionAbbrevs.v
coq/Infra/RealSimps.v
+7
-1
7 additions, 1 deletion
coq/Infra/RealSimps.v
with
35 additions
and
1 deletion
coq/Expressions.v
+
23
−
0
View file @
687917a3
...
@@ -93,6 +93,29 @@ Proof.
...
@@ -93,6 +93,29 @@ Proof.
rewrite
(
IHe2
v3
v5
);
auto
.
rewrite
(
IHe2
v3
v5
);
auto
.
Qed
.
Qed
.
Lemma
existential_rewriting
(
b
:
binop
)
(
e1
:
exp
R
)
(
e2
:
exp
R
)
(
eps
:
R
)
(
cenv
:
env_ty
)
(
v
:
R
)
:
(
eval_exp
eps
cenv
(
Binop
b
e1
e2
)
v
<->
exists
v1
v2
,
eval_exp
eps
cenv
e1
v1
/
\
eval_exp
eps
cenv
e2
v2
/
\
eval_exp
eps
(
updEnv
1
v1
(
updEnv
2
v2
cenv
))
(
Binop
b
(
Var
R
1
)
(
Var
R
2
))
v
).
Proof
.
split
.
-
intros
eval_bin
.
inversion
eval_bin
;
subst
.
exists
v1
,
v2
.
repeat
split
;
try
auto
.
constructor
;
try
auto
.
constructor
;
auto
.
constructor
;
auto
.
-
intros
exists_val
.
destruct
exists_val
as
[
v1
[
v2
[
eval_e1
[
eval_e2
eval_e_env
]]]].
inversion
eval_e_env
;
subst
.
inversion
H4
;
inversion
H5
;
subst
.
unfold
updEnv
in
*
;
simpl
in
*
.
constructor
;
auto
.
Qed
.
(
**
(
**
Using
the
parametric
expressions
,
define
boolean
expressions
for
conditionals
Using
the
parametric
expressions
,
define
boolean
expressions
for
conditionals
**
)
**
)
...
...
This diff is collapsed.
Click to expand it.
coq/Infra/ExpressionAbbrevs.v
0 → 100644
+
5
−
0
View file @
687917a3
Require
Import
Coq
.
QArith
.
QArith
.
Require
Export
Daisy
.
Infra
.
Abbrevs
Daisy
.
Expressions
.
Definition
analysisResult
:
Type
:=
exp
Q
->
intv
*
error
.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
coq/Infra/RealSimps.v
+
7
−
1
View file @
687917a3
Require
Import
Coq
.
Reals
.
Reals
Coq
.
micromega
.
Psatz
Coq
.
Setoids
.
Setoid
.
Require
Import
Coq
.
Reals
.
Reals
Coq
.
micromega
.
Psatz
Coq
.
Setoids
.
Setoid
.
Require
Import
Daisy
.
Infra
.
RealConstruction
.
(
**
(
**
TODO
REORDER
AND
DOCUMENT
TODO
REORDER
AND
DOCUMENT
...
@@ -75,4 +76,9 @@ Proof.
...
@@ -75,4 +76,9 @@ Proof.
apply
Rsqr_eq_asb_1
in
Rabs_eq
.
apply
Rsqr_eq_asb_1
in
Rabs_eq
.
rewrite
Rsqr_0
in
Rabs_eq
.
rewrite
Rsqr_0
in
Rabs_eq
.
apply
Rsqr_0_uniq
in
Rabs_eq
;
assumption
.
apply
Rsqr_0_uniq
in
Rabs_eq
;
assumption
.
Qed
.
Qed
.
\ No newline at end of file
(
**
Define
the
machine
epsilon
for
floating
point
operations
.
Current
value
:
2
^
(
-
53
)
**
)
Definition
machineEpsilon
:
R
:=
realFromNum
1
1
53.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment