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
7a3374e8
There was a problem fetching the pipeline summary.
Commit
7a3374e8
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
rename TCtx_guarded to TCtx_blocked
parent
acddfae5
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
theories/typing/shr_bor.v
+1
-1
1 addition, 1 deletion
theories/typing/shr_bor.v
theories/typing/type_context.v
+3
-3
3 additions, 3 deletions
theories/typing/type_context.v
theories/typing/uniq_bor.v
+2
-2
2 additions, 2 deletions
theories/typing/uniq_bor.v
with
6 additions
and
6 deletions
theories/typing/shr_bor.v
+
1
−
1
View file @
7a3374e8
...
...
@@ -55,7 +55,7 @@ Section typing.
Lemma
tctx_reborrow_shr
E
L
p
ty
κ
κ'
:
lctx_lft_incl
E
L
κ'
κ
→
tctx_incl
E
L
[
TCtx_hasty
p
(
&
shr
{
κ
}
ty
)]
[
TCtx_hasty
p
(
&
shr
{
κ'
}
ty
);
TCtx_
guard
ed
p
κ
(
&
shr
{
κ
}
ty
)]
.
[
TCtx_hasty
p
(
&
shr
{
κ'
}
ty
);
TCtx_
block
ed
p
κ
(
&
shr
{
κ
}
ty
)]
.
Proof
.
iIntros
(
Hκκ'
tid
??)
"#LFT HE HL H"
.
iDestruct
(
elctx_interp_persist
with
"HE"
)
as
"#HE'"
.
...
...
This diff is collapsed.
Click to expand it.
theories/typing/type_context.v
+
3
−
3
View file @
7a3374e8
...
...
@@ -21,13 +21,13 @@ Section type_context.
Inductive
tctx_elt
:
Type
:=
|
TCtx_hasty
(
p
:
path
)
(
ty
:
type
)
|
TCtx_
guard
ed
(
p
:
path
)
(
κ
:
lft
)
(
ty
:
type
)
.
|
TCtx_
block
ed
(
p
:
path
)
(
κ
:
lft
)
(
ty
:
type
)
.
Definition
tctx
:=
list
tctx_elt
.
Definition
tctx_elt_interp
(
tid
:
thread_id
)
(
x
:
tctx_elt
)
:
iProp
Σ
:=
match
x
with
|
TCtx_hasty
p
ty
=>
∃
v
,
⌜
eval_path
p
=
Some
v
⌝
∗
ty
.(
ty_own
)
tid
[
v
]
|
TCtx_
guard
ed
p
κ
ty
=>
∃
v
,
⌜
eval_path
p
=
Some
v
⌝
∗
|
TCtx_
block
ed
p
κ
ty
=>
∃
v
,
⌜
eval_path
p
=
Some
v
⌝
∗
([
†
κ
]
=
{
⊤
}
=∗
▷
ty
.(
ty_own
)
tid
[
v
])
end
%
I
.
Definition
tctx_interp
(
tid
:
thread_id
)
(
T
:
tctx
)
:
iProp
Σ
:=
...
...
@@ -83,7 +83,7 @@ Section type_context.
Definition
deguard_tctx_elt
κ
x
:=
match
x
with
|
TCtx_
guard
ed
p
κ'
ty
=>
|
TCtx_
block
ed
p
κ'
ty
=>
if
decide
(
κ
=
κ'
)
then
TCtx_hasty
p
ty
else
x
|
_
=>
x
end
.
...
...
This diff is collapsed.
Click to expand it.
theories/typing/uniq_bor.v
+
2
−
2
View file @
7a3374e8
...
...
@@ -105,7 +105,7 @@ Section typing.
Lemma
tctx_borrow
E
L
p
n
ty
κ
:
tctx_incl
E
L
[
TCtx_hasty
p
(
own
n
ty
)]
[
TCtx_hasty
p
(
&
uniq
{
κ
}
ty
);
TCtx_
guard
ed
p
κ
(
own
n
ty
)]
.
[
TCtx_hasty
p
(
&
uniq
{
κ
}
ty
);
TCtx_
block
ed
p
κ
(
own
n
ty
)]
.
Proof
.
iIntros
(
tid
??)
"#LFT $ $ H"
.
rewrite
/
tctx_interp
big_sepL_singleton
big_sepL_cons
big_sepL_singleton
.
...
...
@@ -120,7 +120,7 @@ Section typing.
Lemma
tctx_reborrow_uniq
E
L
p
ty
κ
κ'
:
lctx_lft_incl
E
L
κ'
κ
→
tctx_incl
E
L
[
TCtx_hasty
p
(
&
uniq
{
κ
}
ty
)]
[
TCtx_hasty
p
(
&
uniq
{
κ'
}
ty
);
TCtx_
guard
ed
p
κ
(
&
uniq
{
κ
}
ty
)]
.
[
TCtx_hasty
p
(
&
uniq
{
κ'
}
ty
);
TCtx_
block
ed
p
κ
(
&
uniq
{
κ
}
ty
)]
.
Proof
.
iIntros
(
Hκκ'
tid
??)
"#LFT HE HL H"
.
iDestruct
(
elctx_interp_persist
with
"HE"
)
as
"#HE'"
.
...
...
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