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
ec5b6bd8
Commit
ec5b6bd8
authored
4 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Remove old FIXME.
parent
2973e41b
No related branches found
No related tags found
No related merge requests found
Pipeline
#42093
failed
4 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/gmap.v
+2
-4
2 additions, 4 deletions
theories/gmap.v
with
2 additions
and
4 deletions
theories/gmap.v
+
2
−
4
View file @
ec5b6bd8
...
@@ -157,10 +157,8 @@ Definition gmap_uncurry `{Countable K1, Countable K2} {A} :
...
@@ -157,10 +157,8 @@ Definition gmap_uncurry `{Countable K1, Countable K2} {A} :
Section
curry_uncurry
.
Section
curry_uncurry
.
Context
`{
Countable
K1
,
Countable
K2
}
{
A
:
Type
}
.
Context
`{
Countable
K1
,
Countable
K2
}
{
A
:
Type
}
.
(* FIXME: the type annotations `option (gmap K2 A)` are silly. Maybe these are
a consequence of Coq bug #5735 *)
Lemma
lookup_gmap_curry
(
m
:
gmap
K1
(
gmap
K2
A
))
i
j
:
Lemma
lookup_gmap_curry
(
m
:
gmap
K1
(
gmap
K2
A
))
i
j
:
gmap_curry
m
!!
(
i
,
j
)
=
(
m
!!
i
:
option
(
gmap
K2
A
))
≫=
(.
!!
j
)
.
gmap_curry
m
!!
(
i
,
j
)
=
m
!!
i
≫=
(.
!!
j
)
.
Proof
.
Proof
.
apply
(
map_fold_ind
(
λ
mr
m
,
mr
!!
(
i
,
j
)
=
m
!!
i
≫=
(.
!!
j
)))
.
apply
(
map_fold_ind
(
λ
mr
m
,
mr
!!
(
i
,
j
)
=
m
!!
i
≫=
(.
!!
j
)))
.
{
by
rewrite
!
lookup_empty
.
}
{
by
rewrite
!
lookup_empty
.
}
...
@@ -177,7 +175,7 @@ Section curry_uncurry.
...
@@ -177,7 +175,7 @@ Section curry_uncurry.
Qed
.
Qed
.
Lemma
lookup_gmap_uncurry
(
m
:
gmap
(
K1
*
K2
)
A
)
i
j
:
Lemma
lookup_gmap_uncurry
(
m
:
gmap
(
K1
*
K2
)
A
)
i
j
:
(
gmap_uncurry
m
!!
i
:
option
(
gmap
K2
A
))
≫=
(.
!!
j
)
=
m
!!
(
i
,
j
)
.
gmap_uncurry
m
!!
i
≫=
(.
!!
j
)
=
m
!!
(
i
,
j
)
.
Proof
.
Proof
.
apply
(
map_fold_ind
(
λ
mr
m
,
mr
!!
i
≫=
(.
!!
j
)
=
m
!!
(
i
,
j
)))
.
apply
(
map_fold_ind
(
λ
mr
m
,
mr
!!
i
≫=
(.
!!
j
)
=
m
!!
(
i
,
j
)))
.
{
by
rewrite
!
lookup_empty
.
}
{
by
rewrite
!
lookup_empty
.
}
...
...
This diff is collapsed.
Click to expand it.
Robbert Krebbers
@robbertkrebbers
mentioned in commit
7e6a682e
·
4 years ago
mentioned in commit
7e6a682e
mentioned in commit 7e6a682ed9ccf90ea760f57e7e6022ffbb13f8e5
Toggle commit list
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