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
3c5086b2
Commit
3c5086b2
authored
6 years ago
by
Jacques-Henri Jourdan
Browse files
Options
Downloads
Patches
Plain Diff
Get rid of useless IntoVal uses.
parent
6356ef03
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/heap_lang/lib/spawn.v
+3
-4
3 additions, 4 deletions
theories/heap_lang/lib/spawn.v
theories/heap_lang/lifting.v
+5
-5
5 additions, 5 deletions
theories/heap_lang/lifting.v
with
8 additions
and
9 deletions
theories/heap_lang/lib/spawn.v
+
3
−
4
View file @
3c5086b2
...
@@ -44,11 +44,10 @@ Global Instance join_handle_ne n l :
...
@@ -44,11 +44,10 @@ Global Instance join_handle_ne n l :
Proof
.
solve_proper
.
Qed
.
Proof
.
solve_proper
.
Qed
.
(** The main proofs. *)
(** The main proofs. *)
Lemma
spawn_spec
(
Ψ
:
val
→
iProp
Σ
)
e
(
f
:
val
)
:
Lemma
spawn_spec
(
Ψ
:
val
→
iProp
Σ
)
(
f
:
val
)
:
IntoVal
e
f
→
{{{
WP
f
#
()
{{
Ψ
}}
}}}
spawn
f
{{{
l
,
RET
#
l
;
join_handle
l
Ψ
}}}
.
{{{
WP
f
#
()
{{
Ψ
}}
}}}
spawn
e
{{{
l
,
RET
#
l
;
join_handle
l
Ψ
}}}
.
Proof
.
Proof
.
iIntros
(
<-
Φ
)
"Hf HΦ"
.
rewrite
/
spawn
/=.
wp_lam
.
iIntros
(
Φ
)
"Hf HΦ"
.
rewrite
/
spawn
/=.
wp_lam
.
wp_alloc
l
as
"Hl"
.
wp_alloc
l
as
"Hl"
.
iMod
(
own_alloc
(
Excl
()))
as
(
γ
)
"Hγ"
;
first
done
.
iMod
(
own_alloc
(
Excl
()))
as
(
γ
)
"Hγ"
;
first
done
.
iMod
(
inv_alloc
N
_
(
spawn_inv
γ
l
Ψ
)
with
"[Hl]"
)
as
"#?"
.
iMod
(
inv_alloc
N
_
(
spawn_inv
γ
l
Ψ
)
with
"[Hl]"
)
as
"#?"
.
...
...
This diff is collapsed.
Click to expand it.
theories/heap_lang/lifting.v
+
5
−
5
View file @
3c5086b2
...
@@ -317,12 +317,12 @@ Proof.
...
@@ -317,12 +317,12 @@ Proof.
-
iApply
"HΦ"
.
done
.
-
iApply
"HΦ"
.
done
.
Qed
.
Qed
.
Lemma
wp_resolve_proph
e1
e2
p
v
w
:
Lemma
wp_resolve_proph
p
v
w
:
IntoVal
e1
(
LitV
(
LitProphecy
p
))
→
{{{
proph
p
v
}}}
IntoVal
e2
w
→
ResolveProph
(
Val
$
LitV
$
LitProphecy
p
)
(
Val
w
)
{{{
proph
p
v
}}}
ResolveProph
e1
e2
{{{
RET
(
LitV
LitUnit
);
⌜
v
=
Some
w
⌝
}}}
.
{{{
RET
(
LitV
LitUnit
);
⌜
v
=
Some
w
⌝
}}}
.
Proof
.
Proof
.
iIntros
(
<-
<-
Φ
)
"Hp HΦ"
.
iApply
wp_lift_atomic_head_step_no_fork
;
auto
.
iIntros
(
Φ
)
"Hp HΦ"
.
iApply
wp_lift_atomic_head_step_no_fork
;
auto
.
iIntros
(
σ1
κ
κs
)
"[Hσ HR] !>"
.
iDestruct
"HR"
as
(
R
[
Hfr
Hdom
])
"HR"
.
iIntros
(
σ1
κ
κs
)
"[Hσ HR] !>"
.
iDestruct
"HR"
as
(
R
[
Hfr
Hdom
])
"HR"
.
iDestruct
(
@
proph_map_valid
with
"HR Hp"
)
as
%
Hlookup
.
iDestruct
(
@
proph_map_valid
with
"HR Hp"
)
as
%
Hlookup
.
iSplit
;
first
by
eauto
.
iSplit
;
first
by
eauto
.
...
...
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