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
712ea61c
Commit
712ea61c
authored
Sep 30, 2017
by
Heiko Becker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prove full IEEE connection in HOL4
parent
4ef8e1a3
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
530 additions
and
40 deletions
+530
-40
hol4/CertificateCheckerScript.sml
hol4/CertificateCheckerScript.sml
+1
-1
hol4/CommandsScript.sml
hol4/CommandsScript.sml
+14
-1
hol4/ExpressionsScript.sml
hol4/ExpressionsScript.sml
+20
-0
hol4/IEEE_connectionScript.sml
hol4/IEEE_connectionScript.sml
+495
-38
No files found.
hol4/CertificateCheckerScript.sml
View file @
712ea61c
...
...
@@ -82,7 +82,7 @@ val Certificate_checking_is_sound = store_thm ("Certificate_checking_is_sound",
val
CertificateCmd_checking_is_sound
=
store_thm
(
"CertificateCmd_checking_is_sound"
,
``!
(
f
:
real
cmd
)
(
absenv
:
analysisResult
)
(
P
:
precond
)
defVars
(
E1
E2
:
env
)
(
outVars
:
num_set
)
fVars
.
(
E1
E2
:
env
)
(
fVars
:
num_set
)
.
approxEnv
E1
defVars
absenv
(
freeVars
f
)
LN
E2
/\
(
!
v
.
v
IN
(
domain
(
freeVars
f
))
==>
...
...
hol4/CommandsScript.sml
View file @
712ea61c
...
...
@@ -3,7 +3,7 @@
**)
open
preamble
open
simpLib
realTheory
realLib
RealArith
open
AbbrevsTheory
ExpressionAbbrevsTheory
MachineTypeTheory
open
AbbrevsTheory
Expression
sTheory
Expression
AbbrevsTheory
MachineTypeTheory
val
_
=
new_theory
"Commands"
;
...
...
@@ -68,4 +68,17 @@ val definedVars_def = Define `
|
Let
m
(
x
:
num
)
e
g
=>
insert
x
()
(
definedVars
g
)
|
Ret
e
=>
LN`
;
val
bstep_eq_env
=
store_thm
(
"bstep_eq_env"
,
``!f
E1
E2
Gamma
v
m
.
(
!
x
.
E1
x
=
E2
x
)
/\
bstep
f
E1
Gamma
v
m
==>
bstep
f
E2
Gamma
v
m``
,
Induct
\\
rpt
strip_tac
\\
fs
[
bstep_cases
]
>-
(
qexists_tac
`v'`
\\
conj_tac
\\
TRY
(
drule
eval_eq_env
\\
disch_then
drule
\\
fs
[]
\\
FAIL_TAC
""
)
\\
first_x_assum
irule
\\
qexists_tac
`updEnv
n
v'
E1`
\\
fs
[]
\\
rpt
strip_tac
\\
fs
[
updEnv_def
])
\\
irule
eval_eq_env
\\
asm_exists_tac
\\
fs
[]);
val
_
=
export_theory
();
hol4/ExpressionsScript.sml
View file @
712ea61c
...
...
@@ -290,6 +290,26 @@ val binary_unfolding = store_thm("binary_unfolding",
fs
[
updEnv_def
,
updDefVars_def
,
join_def
,
eval_exp_cases
,
APPLY_UPDATE_THM
,
PULL_EXISTS
]
\\
metis_tac
[]);
val
eval_eq_env
=
store_thm
(
"eval_eq_env"
,
``!e
E1
E2
Gamma
v
m
.
(
!
x
.
E1
x
=
E2
x
)
/\
eval_exp
E1
Gamma
e
v
m
==>
eval_exp
E2
Gamma
e
v
m``
,
Induct
\\
rpt
strip_tac
\\
fs
[
eval_exp_cases
]
>-
(
`E1
n
=
E2
n`
by
(
first_x_assum
irule
)
\\
fs
[])
>-
(
qexists_tac
`delta'`
\\
fs
[])
>-
(
rveq
\\
qexists_tac
`v1`
\\
fs
[]
\\
first_x_assum
drule
\\
disch_then
irule
\\
fs
[])
>-
(
rveq
\\
qexists_tac
`v1`
\\
fs
[]
\\
qexists_tac
`delta'`
\\
fs
[]
\\
first_x_assum
drule
\\
disch_then
irule
\\
fs
[])
>-
(
rveq
\\
qexistsl_tac
[
`m1`
,
`m2`
,
`v1`
,
`v2`
,
`delta'`
]
\\
fs
[]
\\
conj_tac
\\
first_x_assum
irule
\\
asm_exists_tac
\\
fs
[])
>-
(
rveq
\\
qexistsl_tac
[
`m1'`
,
`v1`
,
`delta'`
]
\\
fs
[]
\\
first_x_assum
drule
\\
disch_then
irule
\\
fs
[]));
(*
(** *)
(* Analogous lemma for unary expressions *)
(* **) *)
...
...
hol4/IEEE_connectionScript.sml
View file @
712ea61c
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