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
25c44d0c
Commit
25c44d0c
authored
8 years ago
by
Jacques-Henri Jourdan
Browse files
Options
Downloads
Patches
Plain Diff
Simplifications
parent
7745dcad
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
perm_incl.v
+3
-2
3 additions, 2 deletions
perm_incl.v
type.v
+1
-10
1 addition, 10 deletions
type.v
with
4 additions
and
12 deletions
perm_incl.v
+
3
−
2
View file @
25c44d0c
...
...
@@ -107,7 +107,8 @@ Section props.
iAssert
(
∃
q
,
[
κ
]{
q
})
%
I
as
"Htok"
.
admit
.
iDestruct
"Htok"
as
(
q
)
"Htok"
.
iVs
(
ty
.(
ty_share
)
_
lrustN
with
"Hown Htok"
)
as
"[Hown _]"
.
admit
.
set_solver
.
iVsIntro
.
iExists
_
.
iSplit
.
done
.
done
.
apply
disjoint_union_l
;
solve_ndisj
.
set_solver
.
iVsIntro
.
iExists
_
.
iSplit
.
done
.
done
.
Admitted
.
Lemma
perm_split_own_prod
tyl
(
q
:
Qp
)
(
ql
:
list
Qp
)
v
:
...
...
@@ -144,7 +145,7 @@ Section props.
pose
(
q'
:=
mk_Qp
_
Hq'
)
.
assert
(
q
=
q0
+
q'
)
%
Qp
as
->
by
rewrite
Qp_eq
-
Hq
//.
clear
Hq
.
injection
Hlen
.
clear
Hlen
.
intro
Hlen
.
simpl
in
IH
|
-*.
rewrite
-
(
IH
q'
)
//.
split
;
iIntros
(
tid
)
"H"
.
simpl
in
IH
|
-*.
rewrite
-
(
IH
q'
)
//.
clear
IH
.
split
;
iIntros
(
tid
)
"H"
.
+
iDestruct
"H"
as
(
l'
)
"(Hl'&Hf&H)"
.
iDestruct
"Hl'"
as
%
[
=
Hl'
]
.
subst
.
iDestruct
"H"
as
(
vl
)
"[Hvl H]"
.
iDestruct
"H"
as
([|
vl0
[|
vl1
vll
]])
"(>%&>%&Hown)"
;
try
done
.
subst
.
...
...
This diff is collapsed.
Click to expand it.
type.v
+
1
−
10
View file @
25c44d0c
...
...
@@ -101,17 +101,8 @@ Section types.
Context
`{
heapG
Σ
,
lifetimeG
Σ
,
thread_localG
Σ
}
.
Program
Definition
bot
:=
{|
ty_size
:=
0
;
ty_dup
:=
true
;
ty_own
tid
vl
:=
False
%
I
;
ty_shr
κ
tid
N
l
:=
False
%
I
|}
.
ty_of_st
{|
st_size
:=
0
;
st_own
tid
vl
:=
False
%
I
|}
.
Next
Obligation
.
iIntros
(
tid
vl
)
"[]"
.
Qed
.
Next
Obligation
.
iIntros
(????????)
"Hb Htok"
.
iVs
(
lft_borrow_exists
with
"Hb Htok"
)
as
(
vl
)
"[Hb Htok]"
.
set_solver
.
iVs
(
lft_borrow_split
with
"Hb"
)
as
"[_ Hb]"
.
set_solver
.
iVs
(
lft_borrow_persistent
with
"Hb Htok"
)
as
"[>[] _]"
.
set_solver
.
Qed
.
Next
Obligation
.
iIntros
(?????)
"_ []"
.
Qed
.
Next
Obligation
.
intros
.
iIntros
"[]"
.
Qed
.
Program
Definition
unit
:=
ty_of_st
{|
st_size
:=
0
;
st_own
tid
vl
:=
(
vl
=
[])
%
I
|}
.
...
...
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