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
Janno
iris-coq
Commits
7227cf28
Commit
7227cf28
authored
Sep 30, 2016
by
Robbert Krebbers
Browse files
Looking up into a gmap is a homomorphism.
parent
b2ba69ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
algebra/gmap.v
View file @
7227cf28
...
...
@@ -195,6 +195,10 @@ Implicit Types m : gmap K A.
Implicit
Types
i
:
K
.
Implicit
Types
x
y
:
A
.
Global
Instance
lookup_cmra_homomorphism
:
UCMRAHomomorphism
(
lookup
i
:
gmap
K
A
→
option
A
).
Proof
.
split
.
split
.
apply
_
.
intros
m1
m2
;
by
rewrite
lookup_op
.
done
.
Qed
.
Lemma
lookup_opM
m1
mm2
i
:
(
m1
⋅
?
mm2
)
!!
i
=
m1
!!
i
⋅
(
mm2
≫
=
(!!
i
)).
Proof
.
destruct
mm2
;
by
rewrite
/=
?lookup_op
?right_id_L
.
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