Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Janno
iris-coq
Commits
92a48e1b
Commit
92a48e1b
authored
Feb 10, 2016
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typeclass Opacity and Params for inv.
parent
ce61436f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
program_logic/invariants.v
program_logic/invariants.v
+6
-7
No files found.
program_logic/invariants.v
View file @
92a48e1b
...
...
@@ -44,7 +44,9 @@ Local Hint Resolve nclose_subseteq ndot_nclose.
(** Derived forms and lemmas about them. *)
Definition
inv
{
Λ
Σ
}
(
N
:
namespace
)
(
P
:
iProp
Λ
Σ
)
:
iProp
Λ
Σ
:
=
(
∃
i
:
positive
,
■
(
i
∈
nclose
N
)
∧
ownI
i
P
)%
I
.
(
∃
i
,
■
(
i
∈
nclose
N
)
∧
ownI
i
P
)%
I
.
Instance
:
Params
(@
inv
)
3
.
Typeclasses
Opaque
inv
.
Section
inv
.
Context
{
Λ
:
language
}
{
Σ
:
iFunctor
}.
...
...
@@ -53,13 +55,10 @@ Implicit Types N : namespace.
Implicit
Types
P
Q
R
:
iProp
Λ
Σ
.
Global
Instance
inv_contractive
N
:
Contractive
(@
inv
Λ
Σ
N
).
Proof
.
intros
n
?
?
EQ
.
apply
exists_ne
=>
i
.
apply
and_ne
;
first
done
.
by
apply
ownI_contractive
.
Qed
.
Proof
.
intros
n
???.
apply
exists_ne
=>
i
.
by
apply
and_ne
,
ownI_contractive
.
Qed
.
Global
Instance
inv_always_stable
N
P
:
AlwaysStable
(
inv
N
P
)
:
=
_
.
Global
Instance
inv_always_stable
N
P
:
AlwaysStable
(
inv
N
P
).
Proof
.
rewrite
/
inv
;
apply
_
.
Qed
.
Lemma
always_inv
N
P
:
(
□
inv
N
P
)%
I
≡
inv
N
P
.
Proof
.
by
rewrite
always_always
.
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