Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
George Pirlea
Iris
Commits
2ea5d210
Commit
2ea5d210
authored
Oct 05, 2016
by
Robbert Krebbers
Browse files
IntoOp and FromOp instances for the authoritative fragment.
parent
afae72fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
algebra/auth.v
View file @
2ea5d210
From
iris
.
algebra
Require
Export
excl
local_updates
.
From
iris
.
algebra
Require
Import
upred
updates
.
From
iris
.
proofmode
Require
Import
class_instances
.
Local
Arguments
valid
_
_
!
_
/.
Local
Arguments
validN
_
_
_
!
_
/.
...
...
@@ -224,6 +225,14 @@ End cmra.
Arguments
authR
:
clear
implicits
.
Arguments
authUR
:
clear
implicits
.
(* Proof mode class instances *)
Instance
from_op_auth_frag
{
A
:
ucmraT
}
(
a
b1
b2
:
A
)
:
FromOp
a
b1
b2
→
FromOp
(
◯
a
)
(
◯
b1
)
(
◯
b2
).
Proof
.
done
.
Qed
.
Instance
into_op_auth_frag
{
A
:
ucmraT
}
(
a
b1
b2
:
A
)
:
IntoOp
a
b1
b2
→
IntoOp
(
◯
a
)
(
◯
b1
)
(
◯
b2
).
Proof
.
done
.
Qed
.
(* Functor *)
Definition
auth_map
{
A
B
}
(
f
:
A
→
B
)
(
x
:
auth
A
)
:
auth
B
:
=
Auth
(
excl_map
f
<$>
authoritative
x
)
(
f
(
auth_own
x
)).
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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