Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Rice Wine
Iris
Commits
2f4811b6
Commit
2f4811b6
authored
Apr 19, 2017
by
Ralf Jung
Browse files
style
parent
55294a27
Changes
1
Hide whitespace changes
Inline
Side-by-side
theories/heap_lang/lib/spin_lock.v
View file @
2f4811b6
...
...
@@ -29,7 +29,7 @@ Section proof.
Definition
is_lock
(
γ
:
gname
)
(
lk
:
val
)
(
R
:
iProp
Σ
)
:
iProp
Σ
:
=
(
∃
l
:
loc
,
⌜
lk
=
#
l
⌝
∧
inv
N
(
lock_inv
γ
l
R
))%
I
.
Definition
locked
(
γ
:
gname
)
:
iProp
Σ
:
=
own
γ
(
Excl
()).
Definition
locked
(
γ
:
gname
)
:
iProp
Σ
:
=
own
γ
(
Excl
()).
Lemma
locked_exclusive
(
γ
:
gname
)
:
locked
γ
-
∗
locked
γ
-
∗
False
.
Proof
.
iIntros
"H1 H2"
.
by
iDestruct
(
own_valid_2
with
"H1 H2"
)
as
%?.
Qed
.
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment