Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Iris
stdpp
Commits
9008bf44
Commit
9008bf44
authored
Jan 16, 2020
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `map_zip_with_proper`.
parent
f3982420
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
theories/fin_maps.v
theories/fin_maps.v
+7
-0
No files found.
theories/fin_maps.v
View file @
9008bf44
...
...
@@ -214,6 +214,13 @@ Section setoid.
Proof
.
intros
?
m
m'
?
k
;
rewrite
!
lookup_fmap
.
by
apply
option_fmap_proper
.
Qed
.
Global
Instance
map_zip_with_proper
`
{
Equiv
B
,
Equiv
C
}
(
f
:
A
→
B
→
C
)
:
Proper
((
≡
)
==>
(
≡
)
==>
(
≡
))
f
→
Proper
((
≡
)
==>
(
≡
)
==>
(
≡
))
(
map_zip_with
(
M
:
=
M
)
f
).
Proof
.
intros
Hf
m1
m1'
Hm1
m2
m2'
Hm2
.
apply
merge_ext
;
try
done
.
destruct
1
;
destruct
1
;
repeat
f_equiv
;
constructor
||
done
.
Qed
.
End
setoid
.
(** ** General properties *)
...
...
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