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
I
Iris
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rice Wine
Iris
Commits
5e472be6
Commit
5e472be6
authored
Oct 04, 2017
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generalize `det_head_step_pureexec`.
parent
5ed394dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
theories/heap_lang/lifting.v
theories/heap_lang/lifting.v
+0
-1
theories/program_logic/ectx_language.v
theories/program_logic/ectx_language.v
+8
-8
No files found.
theories/heap_lang/lifting.v
View file @
5e472be6
...
...
@@ -87,7 +87,6 @@ Local Ltac solve_pureexec :=
|
H
:
IntoVal
?e
_
|-
_
=>
rewrite
-(
of_to_val
e
_
into_val
)
;
clear
H
|
H
:
AsRec
_
_
_
_
|-
_
=>
rewrite
H
;
clear
H
end
;
apply
hoist_pred_pureexec
;
intros
;
destruct_and
?
;
apply
det_head_step_pureexec
;
[
solve_exec_safe
|
solve_exec_puredet
].
Global
Instance
pure_rec
f
x
(
erec
e1
e2
:
expr
)
(
v2
:
val
)
...
...
theories/program_logic/ectx_language.v
View file @
5e472be6
...
...
@@ -151,16 +151,16 @@ Section ectx_language.
econstructor
;
eauto
.
Qed
.
Lemma
det_head_step_pureexec
e1
e2
:
(
∀
σ
,
head_reducible
e1
σ
)
→
(
∀
σ
1 e2
'
σ
2
efs
,
head_step
e1
σ
1 e2
'
σ
2
efs
→
σ
1
=
σ
2
∧
e2
=
e2'
∧
efs
=
[])
→
PureExec
True
e1
e2
.
Lemma
det_head_step_pureexec
(
P
:
Prop
)
e1
e2
:
(
∀
σ
,
P
→
head_reducible
e1
σ
)
→
(
∀
σ
1 e2
'
σ
2
efs
,
P
→
head_step
e1
σ
1 e2
'
σ
2
efs
→
σ
1
=
σ
2
∧
e2
=
e2'
∧
efs
=
[])
→
PureExec
P
e1
e2
.
Proof
.
intros
Hp1
Hp2
.
split
.
-
intros
σ
_
.
destruct
(
Hp1
σ
)
as
(
e2'
&
σ
2
&
efs
&
?).
eexists
e2'
,
σ
2
,
efs
.
eapply
(
Ectx_step
_
_
_
_
_
empty_ectx
)
;
eauto
using
fill_empty
.
-
intros
σ
1 e2
'
σ
2
efs
_
?%
head_reducible_prim_step
;
eauto
.
-
intros
σ
?.
destruct
(
Hp1
σ
)
as
(
e2'
&
σ
2
&
efs
&
?)
;
first
done
.
eexists
e2'
,
σ
2
,
efs
.
by
apply
head_prim_step
.
-
intros
σ
1 e2
'
σ
2
efs
?
?%
head_reducible_prim_step
;
eauto
.
Qed
.
End
ectx_language
.
...
...
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