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
Commits
13c7d213
Commit
13c7d213
authored
7 years ago
by
Jacques-Henri Jourdan
Browse files
Options
Downloads
Patches
Plain Diff
Add lemma lookup_gmap_uncurry_empty
parent
8ff30e0f
No related branches found
No related tags found
1 merge request
!8
Add lemma lookup_gmap_uncurry_empty
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/gmap.v
+13
-0
13 additions, 0 deletions
theories/gmap.v
with
13 additions
and
0 deletions
theories/gmap.v
+
13
−
0
View file @
13c7d213
...
@@ -168,6 +168,19 @@ Section curry_uncurry.
...
@@ -168,6 +168,19 @@ Section curry_uncurry.
-
by
rewrite
lookup_partial_alter_ne
,
lookup_insert_ne
by
congruence
.
-
by
rewrite
lookup_partial_alter_ne
,
lookup_insert_ne
by
congruence
.
Qed
.
Qed
.
Lemma
lookup_gmap_uncurry_None
(
m
:
gmap
(
K1
*
K2
)
A
)
i
:
gmap_uncurry
m
!!
i
=
None
↔
(
∀
j
,
m
!!
(
i
,
j
)
=
None
)
.
Proof
.
apply
(
map_fold_ind
(
λ
mr
m
,
mr
!!
i
=
None
↔
(
∀
j
,
m
!!
(
i
,
j
)
=
None
)));
[
done
|]
.
clear
m
;
intros
[
i'
j'
]
x
m12
mr
Hij'
IH
.
destruct
(
decide
(
i
=
i'
))
as
[
->
|]
.
-
split
;
[
by
rewrite
lookup_partial_alter
|]
.
intros
Hi
.
specialize
(
Hi
j'
)
.
by
rewrite
lookup_insert
in
Hi
.
-
rewrite
lookup_partial_alter_ne
,
IH
;
[|
done
]
.
apply
forall_proper
.
intros
j
.
rewrite
lookup_insert_ne
;
[
done
|
congruence
]
.
Qed
.
Lemma
gmap_curry_uncurry
(
m
:
gmap
(
K1
*
K2
)
A
)
:
Lemma
gmap_curry_uncurry
(
m
:
gmap
(
K1
*
K2
)
A
)
:
gmap_curry
(
gmap_uncurry
m
)
=
m
.
gmap_curry
(
gmap_uncurry
m
)
=
m
.
Proof
.
Proof
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment