Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Iris
stdpp
Merge requests
!467
Add lemma `map_zip_fst_snd`.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add lemma `map_zip_fst_snd`.
robbert/map_zip_fst_snd
into
master
Overview
0
Commits
2
Pipelines
2
Changes
2
Merged
Robbert Krebbers
requested to merge
robbert/map_zip_fst_snd
into
master
2 years ago
Overview
0
Commits
2
Pipelines
2
Changes
2
Expand
This lemma is analogue to the one on lists.
0
0
Merge request reports
Compare
master
version 1
95623aee
2 years ago
master (base)
and
latest version
latest version
3f1dfd48
2 commits,
2 years ago
version 1
95623aee
1 commit,
2 years ago
2 files
+
8
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
stdpp/fin_maps.v
+
7
−
0
Options
@@ -2015,6 +2015,13 @@ Lemma snd_map_zip {A B} (m1 : M A) (m2 : M B) :
snd
<$>
map_zip
m1
m2
=
m2
.
Proof
.
intros
?
.
by
apply
map_fmap_zip_with_r
.
Qed
.
Lemma
map_zip_fst_snd
{
A
B
}
(
m
:
M
(
A
*
B
))
:
map_zip
(
fst
<$>
m
)
(
snd
<$>
m
)
=
m
.
Proof
.
apply
map_eq
;
intros
k
.
rewrite
map_lookup_zip_with
,
!
lookup_fmap
.
by
destruct
(
m
!!
k
)
as
[[]|]
.
Qed
.
(** ** Properties on the [map_relation] relation *)
Section
Forall2
.
Context
{
A
B
}
(
R
:
A
→
B
→
Prop
)
(
P
:
A
→
Prop
)
(
Q
:
B
→
Prop
)
.
Loading