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
d128a66e
There was a problem fetching the pipeline summary.
Commit
d128a66e
authored
7 years ago
by
Hai Dang
Browse files
Options
Downloads
Patches
Plain Diff
complete lock
parent
e11679e3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
opam
+1
-1
1 addition, 1 deletion
opam
theories/lang/lock.v
+12
-5
12 additions, 5 deletions
theories/lang/lock.v
with
13 additions
and
6 deletions
opam
+
1
−
1
View file @
d128a66e
...
...
@@ -10,5 +10,5 @@ build: [make "-j%{jobs}%"]
install: [make "install"]
remove: [ "sh" "-c" "rm -rf '%{lib}%/coq/user-contrib/lrust'" ]
depends: [
"coq-gpfsl" { (= "dev.2018-05-23.
3.3e9b81e3
") | (= "dev") }
"coq-gpfsl" { (= "dev.2018-05-23.
5.2f8996b5
") | (= "dev") }
]
This diff is collapsed.
Click to expand it.
theories/lang/lock.v
+
12
−
5
View file @
d128a66e
...
...
@@ -129,20 +129,27 @@ Section proof.
Proof
.
iIntros
(??)
"#Hproto !# * HP HΦ"
.
wp_rec
.
iMod
(
"Hproto"
with
"HP"
)
as
(
γ
Vb
)
"(#[Eq lc] & inv & Hclose)"
.
iMod
(
rel_True_intro
True
%
I
tid
with
"[//]"
)
as
"rTrue"
.
iApply
(
GPS_PPRaw_CAS_simple
(
lock_interp
R0
)
_
_
_
(
Z_of_bool
false
)
#
true
()
(
λ
_,
R0
)
%
I
(
λ
_
_,
True
)
%
I
with
"[$lc $inv]"
);
[
done
|
by
right
|
by
left
|..]
.
{
iSplitL
""
;
[|
iSplitL
""
];
iNext
;
iModIntro
.
with
"[$lc $inv
rTrue
]"
);
[
done
|
by
right
|
by
left
|..]
.
{
iSplitL
""
;
[|
iSplitL
""
];
[
iNext
;
iModIntro
.
.|]
.
-
iIntros
(??
_)
.
by
iApply
lock_interp_comparable
.
-
by
iIntros
(??)
"_ #$"
.
-
simpl
.
admit
.
}
-
iNext
.
rewrite
/=
-
(
bi
.
True_sep'
(
∀
_,
_)
%
I
)
.
iApply
(
rel_sep_objectively
with
"[$rTrue]"
)
.
iModIntro
.
iIntros
([]
_)
.
iSplit
;
[|
by
iIntros
(?)
"??"
]
.
iIntros
"F _"
.
iModIntro
.
rewrite
/
lock_interp
/=.
iExists
()
.
iSplitL
""
;
[
done
|]
.
iDestruct
"F"
as
(
b
)
"[Eq R0]"
.
iDestruct
"Eq"
as
%
Eq
.
destruct
b
;
[
by
inversion
Eq
|]
.
iFrame
"R0"
.
iSplit
;
by
iExists
true
.
}
iNext
.
iIntros
(
b
v'
s'
)
"(_ & inv & _ & CASE)"
;
simpl
.
iMod
(
"Hclose"
with
"inv"
)
as
"P"
.
iModIntro
.
iApply
"HΦ"
.
iFrame
"P"
.
iDestruct
"CASE"
as
"[[[% _] ?]|[[% _]_]]"
;
by
subst
b
.
Admitt
ed
.
Q
ed
.
Lemma
acquire_spec
l
l
(
R0
R
P
:
vProp
)
tid
E1
E2
:
Lemma
acquire_spec
l
(
R0
R
P
:
vProp
)
tid
E1
E2
:
↑
histN
⊆
E1
→
E1
⊆
E2
→
□
(
P
=
{
E2
,
E1
}
=∗
∃
γ
Vb
,
lock_proto_lc
l
γ
R0
R
∗
(
monPred_in
Vb
→
▷
lock_proto_inv
l
γ
R0
)
...
...
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