Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris-coq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Michael Sammler
iris-coq
Commits
fc9bb073
Commit
fc9bb073
authored
5 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
consistently annotate types for prophecy variables and lists
parent
c7b669ce
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/heap_lang/lifting.v
+8
-8
8 additions, 8 deletions
theories/heap_lang/lifting.v
with
8 additions
and
8 deletions
theories/heap_lang/lifting.v
+
8
−
8
View file @
fc9bb073
...
@@ -458,7 +458,7 @@ Qed.
...
@@ -458,7 +458,7 @@ Qed.
(* In the following, strong atomicity is required due to the fact that [e] must
(* In the following, strong atomicity is required due to the fact that [e] must
be able to make a head step for [Resolve e _ _] not to be (head) stuck. *)
be able to make a head step for [Resolve e _ _] not to be (head) stuck. *)
Lemma
resolve_reducible
e
σ
p
v
:
Lemma
resolve_reducible
e
σ
(
p
:
proph_id
)
v
:
Atomic
StronglyAtomic
e
→
reducible
e
σ
→
Atomic
StronglyAtomic
e
→
reducible
e
σ
→
reducible
(
Resolve
e
(
Val
(
LitV
(
LitProphecy
p
)))
(
Val
v
))
σ
.
reducible
(
Resolve
e
(
Val
(
LitV
(
LitProphecy
p
)))
(
Val
v
))
σ
.
Proof
.
Proof
.
...
@@ -471,10 +471,10 @@ Proof.
...
@@ -471,10 +471,10 @@ Proof.
simpl
.
constructor
.
by
apply
prim_step_to_val_is_head_step
.
simpl
.
constructor
.
by
apply
prim_step_to_val_is_head_step
.
Qed
.
Qed
.
Lemma
step_resolve
e
p
v
σ1
κ
e2
σ2
efs
:
Lemma
step_resolve
e
v
p
v
t
σ1
κ
e2
σ2
efs
:
Atomic
StronglyAtomic
e
→
Atomic
StronglyAtomic
e
→
prim_step
(
Resolve
e
(
Val
p
)
(
Val
v
))
σ1
κ
e2
σ2
efs
→
prim_step
(
Resolve
e
(
Val
v
p
)
(
Val
v
t
))
σ1
κ
e2
σ2
efs
→
head_step
(
Resolve
e
(
Val
p
)
(
Val
v
))
σ1
κ
e2
σ2
efs
.
head_step
(
Resolve
e
(
Val
v
p
)
(
Val
v
t
))
σ1
κ
e2
σ2
efs
.
Proof
.
Proof
.
intros
A
[
Ks
e1'
e2'
Hfill
->
step
]
.
simpl
in
*.
intros
A
[
Ks
e1'
e2'
Hfill
->
step
]
.
simpl
in
*.
induction
Ks
as
[|
K
Ks
_]
using
rev_ind
.
induction
Ks
as
[|
K
Ks
_]
using
rev_ind
.
...
@@ -488,13 +488,13 @@ Proof.
...
@@ -488,13 +488,13 @@ Proof.
assert
(
is_Some
(
to_val
(
fill
(
Ks
++
[
K
])
e2'
)))
as
H
.
assert
(
is_Some
(
to_val
(
fill
(
Ks
++
[
K
])
e2'
)))
as
H
.
{
apply
(
A
σ1
_
κ
σ2
efs
)
.
eapply
Ectx_step
with
(
K0
:=
Ks
++
[
K
]);
done
.
}
{
apply
(
A
σ1
_
κ
σ2
efs
)
.
eapply
Ectx_step
with
(
K0
:=
Ks
++
[
K
]);
done
.
}
destruct
H
as
[
v
H
]
.
apply
to_val_fill_some
in
H
.
by
destruct
H
,
Ks
.
destruct
H
as
[
v
H
]
.
apply
to_val_fill_some
in
H
.
by
destruct
H
,
Ks
.
-
assert
(
to_val
(
fill
Ks
e1'
)
=
Some
p
);
first
by
rewrite
-
H1
//.
-
assert
(
to_val
(
fill
Ks
e1'
)
=
Some
v
p
);
first
by
rewrite
-
H1
//.
apply
to_val_fill_some
in
H
.
destruct
H
as
[
->
->
]
.
inversion
step
.
apply
to_val_fill_some
in
H
.
destruct
H
as
[
->
->
]
.
inversion
step
.
-
assert
(
to_val
(
fill
Ks
e1'
)
=
Some
v
);
first
by
rewrite
-
H2
//.
-
assert
(
to_val
(
fill
Ks
e1'
)
=
Some
v
t
);
first
by
rewrite
-
H2
//.
apply
to_val_fill_some
in
H
.
destruct
H
as
[
->
->
]
.
inversion
step
.
apply
to_val_fill_some
in
H
.
destruct
H
as
[
->
->
]
.
inversion
step
.
Qed
.
Qed
.
Lemma
wp_resolve
s
E
e
Φ
p
v
pvs
:
Lemma
wp_resolve
s
E
e
Φ
(
p
:
proph_id
)
v
(
pvs
:
list
(
val
*
val
))
:
Atomic
StronglyAtomic
e
→
Atomic
StronglyAtomic
e
→
to_val
e
=
None
→
to_val
e
=
None
→
proph
p
pvs
-∗
proph
p
pvs
-∗
...
@@ -523,7 +523,7 @@ Proof.
...
@@ -523,7 +523,7 @@ Proof.
Qed
.
Qed
.
(** Lemmas for some particular expression inside the [Resolve]. *)
(** Lemmas for some particular expression inside the [Resolve]. *)
Lemma
wp_resolve_proph
s
E
p
pvs
v
:
Lemma
wp_resolve_proph
s
E
(
p
:
proph_id
)
(
pvs
:
list
(
val
*
val
))
v
:
{{{
proph
p
pvs
}}}
{{{
proph
p
pvs
}}}
ResolveProph
(
Val
$
LitV
$
LitProphecy
p
)
(
Val
v
)
@
s
;
E
ResolveProph
(
Val
$
LitV
$
LitProphecy
p
)
(
Val
v
)
@
s
;
E
{{{
pvs'
,
RET
(
LitV
LitUnit
);
⌜
pvs
=
(
LitV
LitUnit
,
v
)::
pvs'
⌝
∗
proph
p
pvs'
}}}
.
{{{
pvs'
,
RET
(
LitV
LitUnit
);
⌜
pvs
=
(
LitV
LitUnit
,
v
)::
pvs'
⌝
∗
proph
p
pvs'
}}}
.
...
...
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