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
0f111789
There was a problem fetching the pipeline mini graph.
Commit
0f111789
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
prove jump to a continuation
parent
4ef23f59
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/typing/cont.v
+5
-7
5 additions, 7 deletions
theories/typing/cont.v
with
5 additions
and
7 deletions
theories/typing/cont.v
+
5
−
7
View file @
0f111789
...
...
@@ -8,17 +8,15 @@ Section cont_typing.
Context
`{
typeG
Σ
}
.
(** Jumping to and defining a continuation. *)
(* TODO: On paper, we allow passing paths as arguments to continuations.
That however would require the continuation precondition to be parameterized over paths
instead of values -- effectively showing that the sort "val" on paper is
really for paths, not just for values. *)
Lemma
typed_jump
{
n
}
E
L
k
T'
T
(
args
:
vec
val
n
)
:
tctx_incl
E
L
T
(
T'
args
)
→
typed_body
E
L
[
CCtx_iscont
k
L
n
T'
]
T
(
k
(
of_val
<$>
(
args
:
list
_)))
.
Proof
.
(* This proofs waits for the problem in typed_call to be figured out:
How to best do the induction for reducing the multi-application. *)
Abort
.
iIntros
(
Hincl
)
.
iIntros
(
tid
qE
)
"#LFT HE HL HC HT"
.
iMod
(
Hincl
with
"LFT HE HL HT"
)
as
"(HE & HL & HT)"
.
iSpecialize
(
"HC"
with
"HE * []"
);
first
by
(
iPureIntro
;
apply
elem_of_list_singleton
)
.
simpl
.
iApply
(
"HC"
with
"* HL HT"
)
.
Qed
.
Lemma
typed_cont
{
n
}
E
L1
L2
C
T
T'
kb
(
argsb
:
vec
binder
n
)
e1
econt
e2
:
e1
=
Rec
kb
argsb
econt
→
Closed
(
kb
:
b
:
argsb
+
b
+
[])
econt
→
Closed
(
kb
:
b
:
[])
e2
→
...
...
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