Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Simcha van Collem
Iris
Commits
5e472be6
Commit
5e472be6
authored
7 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Generalize `det_head_step_pureexec`.
parent
5ed394dd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/heap_lang/lifting.v
+0
-1
0 additions, 1 deletion
theories/heap_lang/lifting.v
theories/program_logic/ectx_language.v
+8
-8
8 additions, 8 deletions
theories/program_logic/ectx_language.v
with
8 additions
and
9 deletions
theories/heap_lang/lifting.v
+
0
−
1
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
)
...
...
This diff is collapsed.
Click to expand it.
theories/program_logic/ectx_language.v
+
8
−
8
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
.
...
...
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