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
9d80e031
Commit
9d80e031
authored
Oct 04, 2018
by
Ralf Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
curry wp_fork
parent
5e608261
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
theories/heap_lang/lib/spawn.v
theories/heap_lang/lib/spawn.v
+3
-3
theories/heap_lang/lifting.v
theories/heap_lang/lifting.v
+5
-5
No files found.
theories/heap_lang/lib/spawn.v
View file @
9d80e031
...
...
@@ -53,11 +53,11 @@ Proof.
iMod
(
own_alloc
(
Excl
()))
as
(
γ
)
"Hγ"
;
first
done
.
iMod
(
inv_alloc
N
_
(
spawn_inv
γ
l
Ψ
)
with
"[Hl]"
)
as
"#?"
.
{
iNext
.
iExists
NONEV
.
iFrame
;
eauto
.
}
wp_apply
wp_fork
;
simpl
.
iSplitR
"Hf"
.
-
wp_seq
.
iApply
"HΦ"
.
rewrite
/
join_handle
.
eauto
.
-
wp_bind
(
f
_
).
iApply
(
wp_wand
with
"Hf"
)
;
iIntros
(
v
)
"Hv"
.
wp_apply
(
wp_fork
with
"[Hf]"
).
-
iNext
.
wp_bind
(
f
_
).
iApply
(
wp_wand
with
"Hf"
)
;
iIntros
(
v
)
"Hv"
.
iInv
N
as
(
v'
)
"[Hl _]"
.
wp_store
.
iSplitL
;
last
done
.
iIntros
"!> !>"
.
iExists
(
SOMEV
v
).
iFrame
.
eauto
.
-
wp_seq
.
iApply
"HΦ"
.
rewrite
/
join_handle
.
eauto
.
Qed
.
Lemma
join_spec
(
Ψ
:
val
→
iProp
Σ
)
l
:
...
...
theories/heap_lang/lifting.v
View file @
9d80e031
...
...
@@ -104,18 +104,18 @@ Implicit Types Φ : val → iProp Σ.
Implicit
Types
efs
:
list
expr
.
Implicit
Types
σ
:
state
.
(**
Base axioms for core primitives of the language: Stateless reductions
*)
(**
Fork: Not using Texan triples to avoid some unnecessary [True]
*)
Lemma
wp_fork
s
E
e
Φ
:
▷
(
Φ
(
LitV
LitUnit
)
∗
WP
e
@
s
;
⊤
{{
_
,
True
}})
⊢
WP
Fork
e
@
s
;
E
{{
Φ
}}.
▷
WP
e
@
s
;
⊤
{{
_
,
True
}}
-
∗
▷
Φ
(
LitV
LitUnit
)
-
∗
WP
Fork
e
@
s
;
E
{{
Φ
}}.
Proof
.
iIntros
"
[HΦ He]
"
.
iIntros
"
He HΦ
"
.
iApply
wp_lift_pure_det_head_step
;
[
auto
|
intros
;
inv_head_step
;
eauto
|].
iModIntro
;
iNext
;
iIntros
"!> /= {$He}"
.
by
iApply
wp_value
.
Qed
.
Lemma
twp_fork
s
E
e
Φ
:
Φ
(
LitV
LitUnit
)
∗
WP
e
@
s
;
⊤
[{
_
,
True
}]
⊢
WP
Fork
e
@
s
;
E
[{
Φ
}].
WP
e
@
s
;
⊤
[{
_
,
True
}]
-
∗
Φ
(
LitV
LitUnit
)
-
∗
WP
Fork
e
@
s
;
E
[{
Φ
}].
Proof
.
iIntros
"
[HΦ He]
"
.
iIntros
"
He HΦ
"
.
iApply
twp_lift_pure_det_head_step
;
[
auto
|
intros
;
inv_head_step
;
eauto
|].
iIntros
"!> /= {$He}"
.
by
iApply
twp_value
.
Qed
.
...
...
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