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
Adam
Iris
Commits
26be4a4b
Commit
26be4a4b
authored
Nov 16, 2021
by
Vincent
Committed by
Robbert Krebbers
Nov 16, 2021
Browse files
Adding gmap_fmap_ext_ne
parent
ff3cf284
Changes
1
Hide whitespace changes
Inline
Side-by-side
iris/algebra/gmap.v
View file @
26be4a4b
...
...
@@ -656,6 +656,15 @@ End unital_properties.
Global
Instance
gmap_fmap_ne
`
{
Countable
K
}
{
A
B
:
ofe
}
(
f
:
A
→
B
)
n
:
Proper
(
dist
n
==>
dist
n
)
f
→
Proper
(
dist
n
==>
dist
n
)
(
fmap
(
M
:
=
gmap
K
)
f
).
Proof
.
by
intros
?
m
m'
Hm
k
;
rewrite
!
lookup_fmap
;
apply
option_fmap_ne
.
Qed
.
Lemma
gmap_fmap_ne_ext
`
{
Countable
K
}
{
A
:
Type
}
{
B
:
ofe
}
(
f1
f2
:
A
→
B
)
(
m
:
gmap
K
A
)
n
:
(
∀
i
x
,
m
!!
i
=
Some
x
→
f1
x
≡
{
n
}
≡
f2
x
)
→
f1
<$>
m
≡
{
n
}
≡
f2
<$>
m
.
Proof
.
move
=>
Hf
i
.
rewrite
!
lookup_fmap
.
destruct
(
m
!!
i
)
eqn
:
?
;
constructor
;
by
eauto
.
Qed
.
Global
Instance
gmap_fmap_cmra_morphism
`
{
Countable
K
}
{
A
B
:
cmra
}
(
f
:
A
→
B
)
`
{!
CmraMorphism
f
}
:
CmraMorphism
(
fmap
f
:
gmap
K
A
→
gmap
K
B
).
Proof
.
...
...
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