Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
AVA
FloVer
Commits
0a383995
Commit
0a383995
authored
Mar 06, 2017
by
Heiko Becker
Browse files
Port environment simulation relation and abstract bounds
parent
d47a36de
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
hol4/EnvironmentsScript.sml
View file @
0a383995
open
preamble
open
simpLib
realTheory
realLib
RealArith
open
AbbrevsTheory
ExpressionAbbrevsTheory
CommandsTheory
open
simpLib
realTheory
realLib
RealArith
sptreeTheory
open
AbbrevsTheory
ExpressionAbbrevsTheory
RealSimpsTheory
CommandsTheory
val
_
=
new_theory
"Environments"
;
val
(
approxEnv_rules
,
approxEnv_ind
,
approxEnv_cases
)
=
Hol_reln
`
(
!
(
E
:
env
)
(
A
:
analysisResult
)
.
approxEnv
E
A
E
)
/\
(
!
(
E1
:
env
)
(
E2
:
env
)
(
A
:
analysisResult
)
v1
v2
x
.
approxEnv
E1
A
E2
/\
(
abs
(
v1
-
v2
)
<=
SND
(
A
(
Var
x
)))
==>
approxEnv
(
updEnv
x
v1
E1
)
A
(
updEnv
x
v2
E2
))
`
;
(
!
(
A
:
analysisResult
)
.
approxEnv
emptyEnv
A
LN
LN
emptyEnv
)
/\
(
!
(
E1
:
env
)
(
E2
:
env
)
(
A
:
analysisResult
)
(
fVars
:
num_set
)
(
dVars
:
num_set
)
v1
v2
x
.
approxEnv
E1
A
fVars
dVars
E2
/\
(
abs
(
v1
-
v2
)
<=
abs
v1
*
machineEpsilon
)
/\
(
lookup
x
(
union
fVars
dVars
)
=
NONE
)
==>
approxEnv
(
updEnv
x
v1
E1
)
A
(
Insert
x
fVars
)
dVars
(
updEnv
x
v2
E2
))
/\
(
!
(
E1
:
env
)
(
E2
:
env
)
(
A
:
analysisResult
)
(
fVars
:
num_set
)
(
dVars
:
num_set
)
v1
v2
x
.
approxEnv
E1
A
fVars
dVars
E2
/\
(
abs
(
v1
-
v2
)
<=
SND
(
A
(
Var
x
)))
/\
(
lookup
x
(
union
fVars
dVars
)
=
NONE
)
==>
approxEnv
(
updEnv
x
v1
E1
)
A
fVars
(
Insert
x
dVars
)
(
updEnv
x
v2
E2
))
`
;
val
_
=
export_theory
();;
hol4/ErrorBoundsScript.sml
View file @
0a383995
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