Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lambda-rust
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
Model registry
Operate
Environments
Monitor
Service Desk
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
Iris
lambda-rust
Commits
3bf41e48
There was a problem fetching the pipeline summary.
Commit
3bf41e48
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
type the join function
parent
3b7a99c2
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/typing/unsafe/spawn.v
+24
-0
24 additions, 0 deletions
theories/typing/unsafe/spawn.v
with
24 additions
and
0 deletions
theories/typing/unsafe/spawn.v
+
24
−
0
View file @
3bf41e48
...
@@ -89,4 +89,28 @@ Section spawn.
...
@@ -89,4 +89,28 @@ Section spawn.
eapply
type_delete
;
[
solve_typing
..|]
.
eapply
type_delete
;
[
solve_typing
..|]
.
eapply
(
type_jump
[_]);
solve_typing
.
eapply
(
type_jump
[_]);
solve_typing
.
Qed
.
Qed
.
Definition
join
:
val
:=
funrec
:
<>
[
"c"
]
:=
let
:
"c'"
:=
!
"c"
in
let
:
"r"
:=
join
[
"c'"
]
in
delete
[
#
1
;
"c"
];;
"return"
[
"r"
]
.
Lemma
join_type
retty
:
typed_instruction_ty
[]
[]
[]
join
(
fn
([];
join_handle
retty
)
→
retty
)
.
Proof
.
eapply
type_fn
;
[
solve_typing
..|]=>
-
_
ret
/=
arg
.
inv_vec
arg
=>
c
.
simpl_subst
.
eapply
type_deref
;
[
solve_typing
..|
exact
:
read_own_move
|
done
|]
.
move
=>
c'
;
simpl_subst
.
eapply
type_let
with
(
T1
:=
[
c'
◁
_]
%
TC
)
(
T2
:=
λ
r
,
[
r
◁
box
retty
]
%
TC
);
try
solve_typing
;
[|]
.
{
iAlways
.
iIntros
(
tid
qE
)
"#LFT $ $ $"
.
rewrite
tctx_interp_singleton
tctx_hasty_val
.
iIntros
"Hc'"
.
destruct
c'
as
[[|
c'
|]|];
try
by
iDestruct
"Hc'"
as
"[]"
.
iApply
(
join_spec
with
"Hc'"
)
.
iIntros
"!> * Hret"
.
rewrite
tctx_interp_singleton
tctx_hasty_val
.
auto
.
}
move
=>
r
;
simpl_subst
.
eapply
type_delete
;
[
solve_typing
..|]
.
eapply
(
type_jump
[_]);
solve_typing
.
Qed
.
End
spawn
.
End
spawn
.
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