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
5e305543
Commit
5e305543
authored
8 years ago
by
Heiko Becker
Browse files
Options
Downloads
Patches
Plain Diff
Show error bound of parameters sound
parent
21c9fdf9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hol4/ErrorValidationScript.sml
+32
-3
32 additions, 3 deletions
hol4/ErrorValidationScript.sml
with
32 additions
and
3 deletions
hol4/ErrorValidationScript.sml
+
32
−
3
View file @
5e305543
...
@@ -62,11 +62,11 @@ val validErrorboundCorrectConstant = store_thm ("validErrorboundCorrectConstant"
...
@@ -62,11 +62,11 @@ val validErrorboundCorrectConstant = store_thm ("validErrorboundCorrectConstant"
validErrorbound
(
Const
n
)
absenv
/\
validErrorbound
(
Const
n
)
absenv
/\
validIntervalbounds
(
Const
n
)
absenv
P
/\
validIntervalbounds
(
Const
n
)
absenv
P
/\
(
absenv
(
Const
n
)
=
((
nlo
,
nhi
),
e
))
==>
(
absenv
(
Const
n
)
=
((
nlo
,
nhi
),
e
))
==>
(
abs
(
nR
-
nF
))
<=
e`
,
(
abs
(
nR
-
nF
))
<=
e`
`
,
once_rewrite_tac
[
validErrorbound_def
]
\\
rpt
strip_tac
\\
once_rewrite_tac
[
validErrorbound_def
]
\\
rpt
strip_tac
\\
fs
[]
\\
fs
[]
\\
`FST
(
FST
(
absenv
(
Const
n
)))
<=
nR
/\
nR
<=
SND
(
FST
(
absenv
(
Const
n
)))
`
`FST
(
FST
(
absenv
(
Const
n
)))
<=
nR
/\
nR
<=
SND
(
FST
(
absenv
(
Const
n
)))
`
by
(
match_mp_tac
validIntervalbounds_sound
\\
exists_tac
`
`P
:
precond`
`
\\
exists_tac
`
`cenv
:
env`
`
\\
simp
[])
\\
by
(
match_mp_tac
validIntervalbounds_sound
\\
q
exists_tac
`
P
`
\\
q
exists_tac
`cenv`
\\
simp
[])
\\
inversion
`eval_exp
0
cenv
P
(
Const
n
)
nR`
eval_exp_cases
\\
rveq
\\
inversion
`eval_exp
0
cenv
P
(
Const
n
)
nR`
eval_exp_cases
\\
rveq
\\
simp
[
delta_0_deterministic
]
\\
simp
[
delta_0_deterministic
]
\\
inversion
`eval_exp
machineEpsilon
_
_
_
_
`
eval_exp_cases
\\
rveq
\\
inversion
`eval_exp
machineEpsilon
_
_
_
_
`
eval_exp_cases
\\
rveq
\\
...
@@ -74,7 +74,7 @@ val validErrorboundCorrectConstant = store_thm ("validErrorboundCorrectConstant"
...
@@ -74,7 +74,7 @@ val validErrorboundCorrectConstant = store_thm ("validErrorboundCorrectConstant"
rename1
`abs
deltaF
<=
machineEpsilon`
\\
rename1
`abs
deltaF
<=
machineEpsilon`
\\
simp
[
Rabs_err_simpl
,
ABS_MUL
]
\\
simp
[
Rabs_err_simpl
,
ABS_MUL
]
\\
match_mp_tac
REAL_LE_TRANS
\\
match_mp_tac
REAL_LE_TRANS
\\
exists_tac
`
`maxAbsFun
(
nlo
,
nhi
)
*
machineEpsilon`
`
\\
conj_tac
\\
TRY
(
simp
[])
\\
q
exists_tac
`maxAbsFun
(
nlo
,
nhi
)
*
machineEpsilon`
\\
conj_tac
\\
TRY
(
simp
[])
\\
match_mp_tac
REAL_LE_MUL2
\\
rpt
(
conj_tac
)
\\
TRY
(
simp
[
ABS_POS
])
\\
match_mp_tac
REAL_LE_MUL2
\\
rpt
(
conj_tac
)
\\
TRY
(
simp
[
ABS_POS
])
\\
simp
[
maxAbsFun_def
]
\\
simp
[
maxAbsFun_def
]
\\
match_mp_tac
maxAbs
\\
match_mp_tac
maxAbs
\\
...
@@ -82,4 +82,33 @@ val validErrorboundCorrectConstant = store_thm ("validErrorboundCorrectConstant"
...
@@ -82,4 +82,33 @@ val validErrorboundCorrectConstant = store_thm ("validErrorboundCorrectConstant"
qpat_x_assum
`absenv
_
=
_
`
(
fn
thm
=>
rule_assum_tac
(
fn
thm2
=>
REWRITE_RULE
[
thm
]
thm2
))
\\
qpat_x_assum
`absenv
_
=
_
`
(
fn
thm
=>
rule_assum_tac
(
fn
thm2
=>
REWRITE_RULE
[
thm
]
thm2
))
\\
simp
[]);
simp
[]);
val
validErrorboundCorrectParam
=
store_thm
(
"validErrorboundCorrectParam"
,
``!
(
cenv
:
env
)
(
absenv
:
analysisResult
)
(
v
:
num
)
(
nR
:
real
)
(
nF
:
real
)
(
e
:
real
)
(
nlo
:
real
)
(
nhi
:
real
)
(
P
:
precond
)
.
eval_exp
0
cenv
P
(
Param
v
)
nR
/\
eval_exp
machineEpsilon
cenv
P
(
Param
v
)
nF
/\
validErrorbound
(
Param
v
)
absenv
/\
validIntervalbounds
(
Param
v
)
absenv
P
/\
(
absenv
(
Param
v
)
=
((
nlo
,
nhi
),
e
))
==>
(
abs
(
nR
-
nF
))
<=
e``
,
once_rewrite_tac
[
validErrorbound_def
]
\\
rpt
strip_tac
\\
fs
[]
\\
`!
(
v1
:
num
)
.
MEM
v1
(
freeVars
((
Param
v
):
real
exp
))
==>
isSupersetInterval
(
P
v1
)
(
FST
(
absenv
(
Param
v1
)))
`
by
(
drule
ivbounds_approximatesPrecond_sound
\\
rpt
strip_tac
\\
first_x_assum
(
match_mp_tac
)
\\
simp
[])
\\
`FST
(
FST
(
absenv
(
Param
v
)))
<=
nR
/\
nR
<=
SND
(
FST
(
absenv
(
Param
v
)))
`
by
(
match_mp_tac
validIntervalbounds_sound
\\
qexists_tac
`P`
\\
qexists_tac
`cenv`
\\
simp
[])
\\
qpat_x_assum
`absenv
_
=
_
`
(
fn
thm
=>
rule_assum_tac
(
fn
thm2
=>
REWRITE_RULE
[
thm
]
thm2
))
\\
inversion
`eval_exp
0
_
_
_
_
`
eval_exp_cases
\\
rveq
\\
simp
[
delta_0_deterministic
]
\\
inversion
`eval_exp
_
_
_
_
_
`
eval_exp_cases
\\
rveq
\\
simp
[
perturb_def
]
\\
rename1
`abs
deltaF
<=
machineEpsilon`
\\
simp
[
Rabs_err_simpl
,
ABS_MUL
]
\\
match_mp_tac
REAL_LE_TRANS
\\
qexists_tac
`maxAbsFun
(
nlo
,
nhi
)
*
machineEpsilon`
\\
conj_tac
\\
TRY
(
simp
[])
\\
match_mp_tac
REAL_LE_MUL2
\\
rpt
(
conj_tac
)
\\
TRY
(
simp
[
ABS_POS
])
\\
simp
[
maxAbsFun_def
]
\\
match_mp_tac
maxAbs
\\
qspecl_then
[
`delta`
,
`n`
]
(
fn
thm
=>
fs
[
thm
])
delta_0_deterministic
);
val
_
=
export_theory
();
val
_
=
export_theory
();
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