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
75e50f13
Commit
75e50f13
authored
Feb 11, 2016
by
Robbert Krebbers
Browse files
CMRAs with identity element are inhabited.
parent
bee413b8
Changes
2
Show whitespace changes
Inline
Side-by-side
algebra/cmra.v
View file @
75e50f13
...
...
@@ -128,6 +128,7 @@ Class CMRAIdentity (A : cmraT) `{Empty A} : Prop := {
cmra_empty_left_id
:
>
LeftId
(
≡
)
∅
(
⋅
)
;
cmra_empty_timeless
:
>
Timeless
∅
}.
Instance
cmra_identity_inhabited
`
{
CMRAIdentity
A
}
:
Inhabited
A
:
=
populate
∅
.
(** * Morphisms *)
Class
CMRAMonotone
{
A
B
:
cmraT
}
(
f
:
A
→
B
)
:
=
{
...
...
program_logic/auth.v
View file @
75e50f13
...
...
@@ -16,10 +16,6 @@ Section auth.
Hypothesis
auth_valid
:
forall
a
b
,
(
✓
(
Auth
(
Excl
a
)
b
)
:
iProp
Λ
(
globalC
Σ
))
⊑
(
∃
b'
,
a
≡
b
⋅
b'
).
(* FIXME how much would break if we had a global instance from ∅ to Inhabited? *)
Local
Instance
auth_inhabited
:
Inhabited
A
.
Proof
.
split
.
exact
∅
.
Qed
.
Definition
auth_inv
(
γ
:
gname
)
:
iProp
Λ
(
globalC
Σ
)
:
=
(
∃
a
,
own
AuthI
γ
(
●
a
)
★
φ
a
)%
I
.
Definition
auth_own
(
γ
:
gname
)
(
a
:
A
)
:
iProp
Λ
(
globalC
Σ
)
:
=
own
AuthI
γ
(
◯
a
).
...
...
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