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
Rodolphe Lepigre
Iris
Commits
5b2fdd53
Commit
5b2fdd53
authored
May 31, 2016
by
Robbert Krebbers
Browse files
Some forgotten type class instances for boxes.
parent
5ac24c8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
program_logic/boxes.v
View file @
5b2fdd53
...
...
@@ -32,11 +32,30 @@ Section box_defs.
inv
N
(
box_inv
γ
(
Φ
γ
)))%
I
.
End
box_defs
.
Instance
:
Params
(@
box_own_auth
)
4
.
Instance
:
Params
(@
box_own_prop
)
4
.
Instance
:
Params
(@
box_inv
)
4
.
Instance
:
Params
(@
box_slice
)
5
.
Instance
:
Params
(@
box
)
5
.
Section
box
.
Context
`
{
boxG
Λ
Σ
}
(
N
:
namespace
).
Notation
iProp
:
=
(
iPropG
Λ
Σ
).
Implicit
Types
P
Q
:
iProp
.
(* FIXME: solve_proper picks the eq ==> instance for Next. *)
Global
Instance
box_own_prop_ne
n
γ
:
Proper
(
dist
n
==>
dist
n
)
(
box_own_prop
γ
).
Proof
.
intros
P
P'
HP
.
by
rewrite
/
box_own_prop
HP
.
Qed
.
Global
Instance
box_inv_ne
n
γ
:
Proper
(
dist
n
==>
dist
n
)
(
box_inv
γ
).
Proof
.
solve_proper
.
Qed
.
Global
Instance
box_slice_ne
n
γ
:
Proper
(
dist
n
==>
dist
n
)
(
box_slice
N
γ
).
Proof
.
solve_proper
.
Qed
.
Global
Instance
box_ne
n
f
:
Proper
(
dist
n
==>
dist
n
)
(
box
N
f
).
Proof
.
solve_proper
.
Qed
.
Global
Instance
box_slice_persistent
γ
P
:
PersistentP
(
box_slice
N
γ
P
).
Proof
.
apply
_
.
Qed
.
(* This should go automatic *)
Instance
box_own_auth_timeless
γ
(
a
:
auth
(
option
(
excl
bool
)))
:
TimelessP
(
box_own_auth
γ
a
).
Proof
.
apply
own_timeless
,
pair_timeless
;
apply
_
.
Qed
.
...
...
@@ -188,3 +207,5 @@ Proof.
-
iExists
Φ
;
iSplit
;
by
rewrite
big_sepM_fmap
.
Qed
.
End
box
.
Typeclasses
Opaque
box_slice
box
.
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