Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Jonas Kastberg
iris
Commits
7c9f06f7
Commit
7c9f06f7
authored
Jan 24, 2018
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show that non-atomic invariants are closed under logical equivalence.
parent
8f5438b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
theories/base_logic/lib/na_invariants.v
theories/base_logic/lib/na_invariants.v
+8
-0
No files found.
theories/base_logic/lib/na_invariants.v
View file @
7c9f06f7
...
...
@@ -43,6 +43,14 @@ Section proofs.
Global
Instance
na_inv_persistent
p
N
P
:
Persistent
(
na_inv
p
N
P
).
Proof
.
rewrite
/
na_inv
;
apply
_
.
Qed
.
Lemma
na_inv_iff
p
N
P
Q
:
▷
□
(
P
↔
Q
)
-
∗
na_inv
p
N
P
-
∗
na_inv
p
N
Q
.
Proof
.
iIntros
"#HPQ"
.
rewrite
/
na_inv
.
iDestruct
1
as
(
i
?)
"#Hinv"
.
iExists
i
.
iSplit
;
first
done
.
iApply
(
inv_iff
with
"[] Hinv"
).
iNext
.
iAlways
.
iSplit
;
(
iIntros
"[[? Ho]|?]"
;
[
iLeft
;
iFrame
"Ho"
;
by
iApply
"HPQ"
|
by
iRight
]).
Qed
.
Lemma
na_alloc
:
(|==>
∃
p
,
na_own
p
⊤
)%
I
.
Proof
.
by
apply
own_alloc
.
Qed
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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