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
Iris
Iris
Commits
75e50f13
Commit
75e50f13
authored
Feb 11, 2016
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMRAs with identity element are inhabited.
parent
bee413b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
algebra/cmra.v
algebra/cmra.v
+1
-0
program_logic/auth.v
program_logic/auth.v
+0
-4
No files found.
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
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