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
051644fb
Commit
051644fb
authored
Feb 13, 2016
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extensionality of omap.
parent
e23aa096
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
prelude/fin_maps.v
prelude/fin_maps.v
+6
-0
No files found.
prelude/fin_maps.v
View file @
051644fb
...
...
@@ -558,6 +558,12 @@ Proof.
intros
Hi
;
apply
map_eq
;
intros
i
;
rewrite
!
lookup_fmap
.
by
destruct
(
m
!!
i
)
eqn
:
?
;
simpl
;
erewrite
?Hi
by
eauto
.
Qed
.
Lemma
omap_ext
{
A
B
}
(
f1
f2
:
A
→
option
B
)
m
:
(
∀
i
x
,
m
!!
i
=
Some
x
→
f1
x
=
f2
x
)
→
omap
f1
m
=
omap
f2
m
.
Proof
.
intros
Hi
;
apply
map_eq
;
intros
i
;
rewrite
!
lookup_omap
.
by
destruct
(
m
!!
i
)
eqn
:
?
;
simpl
;
erewrite
?Hi
by
eauto
.
Qed
.
(** ** Properties of conversion to lists *)
Lemma
map_to_list_unique
{
A
}
(
m
:
M
A
)
i
x
y
:
...
...
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