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
538fee6f
There was a problem fetching the pipeline mini graph.
Commit
538fee6f
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
rename mgmtE -> lftE
parent
0db3bed9
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
theories/typing/own.v
+1
-1
1 addition, 1 deletion
theories/typing/own.v
theories/typing/type.v
+3
-3
3 additions, 3 deletions
theories/typing/type.v
theories/typing/typing.v
+2
-2
2 additions, 2 deletions
theories/typing/typing.v
theories/typing/uniq_bor.v
+1
-1
1 addition, 1 deletion
theories/typing/uniq_bor.v
with
7 additions
and
7 deletions
theories/typing/own.v
+
1
−
1
View file @
538fee6f
...
...
@@ -52,7 +52,7 @@ Section own.
▷
freeable_sz
n
ty
.(
ty_size
)
l
)
%
I
;
ty_shr
κ
tid
E
l
:=
(
∃
l'
:
loc
,
&
frac
{
κ
}(
λ
q'
,
l
↦
{
q'
}
#
l'
)
∗
□
(
∀
F
q
,
⌜
E
∪
mgm
tE
⊆
F
⌝
-∗
q
.[
κ
]
=
{
F
,
F
∖
E
∖↑
lftN
}
▷=∗
ty
.(
ty_shr
)
κ
tid
E
l'
∗
q
.[
κ
]))
%
I
□
(
∀
F
q
,
⌜
E
∪
lf
tE
⊆
F
⌝
-∗
q
.[
κ
]
=
{
F
,
F
∖
E
∖↑
lftN
}
▷=∗
ty
.(
ty_shr
)
κ
tid
E
l'
∗
q
.[
κ
]))
%
I
|}
.
Next
Obligation
.
iIntros
(
q
ty
tid
vl
)
"H"
.
iDestruct
"H"
as
(
l
)
"[% _]"
.
by
subst
.
...
...
This diff is collapsed.
Click to expand it.
theories/typing/type.v
+
3
−
3
View file @
538fee6f
...
...
@@ -10,7 +10,7 @@ Class typeG Σ := TypeG {
type_frac_borrowG
Σ
:>
frac_borG
Σ
}
.
Definition
mgm
tE
:=
↑
lftN
.
Definition
lf
tE
:=
↑
lftN
.
Definition
lrustN
:=
nroot
.
@
"lrust"
.
Section
type
.
...
...
@@ -39,7 +39,7 @@ Section type.
nicer (they would otherwise require a "∨ □|=>[†κ]"), and (b) so that
we can have emp == sum [].
*)
ty_share
E
N
κ
l
tid
q
:
mgm
tE
⊥
↑
N
→
mgm
tE
⊆
E
→
ty_share
E
N
κ
l
tid
q
:
lf
tE
⊥
↑
N
→
lf
tE
⊆
E
→
lft_ctx
-∗
&
{
κ
}
(
l
↦∗:
ty_own
tid
)
-∗
q
.[
κ
]
=
{
E
}
=∗
ty_shr
κ
tid
(
↑
N
)
l
∗
q
.[
κ
];
ty_shr_mono
κ
κ'
tid
E
E'
l
:
E
⊆
E'
→
...
...
@@ -50,7 +50,7 @@ Section type.
Class
Copy
(
t
:
type
)
:=
{
copy_persistent
tid
vl
:
PersistentP
(
t
.(
ty_own
)
tid
vl
);
copy_shr_acc
κ
tid
E
F
l
q
:
mgm
tE
∪
F
⊆
E
→
lf
tE
∪
F
⊆
E
→
lft_ctx
-∗
t
.(
ty_shr
)
κ
tid
F
l
-∗
q
.[
κ
]
∗
na_own
tid
F
=
{
E
}
=∗
∃
q'
,
▷
l
↦∗
{
q'
}:
t
.(
ty_own
)
tid
∗
(
▷
l
↦∗
{
q'
}:
t
.(
ty_own
)
tid
=
{
E
}
=∗
q
.[
κ
]
∗
na_own
tid
F
)
...
...
This diff is collapsed.
Click to expand it.
theories/typing/typing.v
+
2
−
2
View file @
538fee6f
...
...
@@ -80,7 +80,7 @@ Section typing.
Qed
.
Definition
consumes
(
ty
:
type
)
(
ρ1
ρ2
:
expr
→
perm
)
:
Prop
:=
∀
ν
tid
Φ
E
,
mgm
tE
∪
↑
lrustN
⊆
E
→
∀
ν
tid
Φ
E
,
lf
tE
∪
↑
lrustN
⊆
E
→
lft_ctx
-∗
ρ1
ν
tid
-∗
na_own
tid
⊤
-∗
(
∀
(
l
:
loc
)
vl
q
,
(
⌜
length
vl
=
ty
.(
ty_size
)
⌝
∗
⌜
eval_expr
ν
=
Some
#
l
⌝
∗
l
↦∗
{
q
}
vl
∗
...
...
@@ -100,7 +100,7 @@ Section typing.
Qed
.
Definition
update
(
ty
:
type
)
(
ρ1
ρ2
:
expr
→
perm
)
:
Prop
:=
∀
ν
tid
Φ
E
,
mgm
tE
∪
(
↑
lrustN
)
⊆
E
→
∀
ν
tid
Φ
E
,
lf
tE
∪
(
↑
lrustN
)
⊆
E
→
lft_ctx
-∗
ρ1
ν
tid
-∗
(
∀
(
l
:
loc
)
vl
,
(
⌜
length
vl
=
ty
.(
ty_size
)
⌝
∗
⌜
eval_expr
ν
=
Some
#
l
⌝
∗
l
↦∗
vl
∗
...
...
This diff is collapsed.
Click to expand it.
theories/typing/uniq_bor.v
+
1
−
1
View file @
538fee6f
...
...
@@ -16,7 +16,7 @@ Section uniq_bor.
(
∃
(
l
:
loc
)
P
,
(
⌜
vl
=
[
#
l
]
⌝
∗
□
(
P
↔
l
↦∗:
ty
.(
ty_own
)
tid
))
∗
&
{
κ
}
P
)
%
I
;
ty_shr
κ'
tid
E
l
:=
(
∃
l'
:
loc
,
&
frac
{
κ'
}(
λ
q'
,
l
↦
{
q'
}
#
l'
)
∗
□
∀
F
q
,
⌜
E
∪
mgm
tE
⊆
F
⌝
-∗
q
.[
κ
∪
κ'
]
□
∀
F
q
,
⌜
E
∪
lf
tE
⊆
F
⌝
-∗
q
.[
κ
∪
κ'
]
=
{
F
,
F
∖
E
∖↑
lftN
}
▷=∗
ty
.(
ty_shr
)
(
κ
∪
κ'
)
tid
E
l'
∗
q
.[
κ
∪
κ'
])
%
I
|}
.
Next
Obligation
.
...
...
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