Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonas Kastberg
iris
Commits
741641e3
Commit
741641e3
authored
Mar 01, 2018
by
Jacques-Henri Jourdan
Browse files
Replace elim_inv_embed_inv by the more generic instance elim_inv_embed.
parent
38c22598
Changes
2
Hide whitespace changes
Inline
Side-by-side
theories/base_logic/lib/invariants.v
View file @
741641e3
...
...
@@ -104,15 +104,6 @@ Proof.
iApply
(
Helim
with
"[$H2]"
)
;
first
done
.
iMod
(
inv_open
_
N
with
"[#]"
)
as
"(HP&Hclose)"
;
auto
with
iFrame
.
Qed
.
Global
Instance
elim_inv_embed_inv
{
PROP'
:
sbi
}
`
{
SbiEmbedding
_
PROP'
}
E
N
(
P
:
iProp
Σ
)
(
Q
Q'
:
PROP'
)
:
(
∀
R
,
ElimModal
True
⎡
|={
E
,
E
∖↑
N
}=>
R
⎤
⎡
R
⎤
Q
Q'
)
→
ElimInv
(
↑
N
⊆
E
)
⎡
inv
N
P
⎤
True
(
⎡▷
P
⎤
)
(
⎡▷
P
={
E
∖↑
N
,
E
}=
∗
True
⎤
)
Q
Q'
.
Proof
.
rewrite
/
ElimInv
/
ElimModal
.
iIntros
(
Helim
?)
"(#H1&TRUE&H2)"
.
rewrite
-
bi_embed_sep
.
iApply
(
Helim
with
"[$H2 $TRUE]"
)
;
first
done
.
iModIntro
.
iMod
(
inv_open
_
N
with
"[#]"
)
as
"(HP&Hclose)"
;
auto
with
iFrame
.
Qed
.
Lemma
inv_open_timeless
E
N
P
`
{!
Timeless
P
}
:
↑
N
⊆
E
→
inv
N
P
={
E
,
E
∖↑
N
}=
∗
P
∗
(
P
={
E
∖↑
N
,
E
}=
∗
True
).
...
...
theories/proofmode/monpred.v
View file @
741641e3
...
...
@@ -490,4 +490,13 @@ Proof. by rewrite /ElimModal monPred_at_fupd. Qed.
Global
Instance
add_modal_at_fupd_goal
`
{
FUpdFacts
PROP
}
E1
E2
𝓟
𝓟
'
Q
i
:
AddModal
𝓟
𝓟
'
(|={
E1
,
E2
}=>
Q
i
)
→
AddModal
𝓟
𝓟
'
((|={
E1
,
E2
}=>
Q
)
i
).
Proof
.
by
rewrite
/
AddModal
!
monPred_at_fupd
.
Qed
.
Global
Instance
elim_inv_embed
φ
𝓟
inv
𝓟
in
𝓟
out
𝓟
close
Pin
Pout
Pclose
Q
Q'
:
(
∀
i
,
ElimInv
φ
𝓟
inv
𝓟
in
𝓟
out
𝓟
close
(
Q
i
)
(
Q'
i
))
→
MakeEmbed
𝓟
in
Pin
→
MakeEmbed
𝓟
out
Pout
→
MakeEmbed
𝓟
close
Pclose
→
ElimInv
φ
⎡𝓟
inv
⎤
Pin
Pout
Pclose
Q
Q'
.
Proof
.
rewrite
/
MakeEmbed
/
ElimInv
=>
H
<-
<-
<-
?.
iStartProof
PROP
.
iIntros
(?)
"(?&?&HQ')"
.
iApply
H
;
[
done
|].
iFrame
.
iIntros
"?"
.
by
iApply
"HQ'"
.
Qed
.
End
sbi
.
Write
Preview
Supports
Markdown
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