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
7bb734bc
Commit
7bb734bc
authored
4 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Rename instance `finmap_lookup_total` → `map_lookup_total`.
parent
96cb4bc9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!220
Rename instance `finmap_lookup_total` → `map_lookup_total`.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/fin_maps.v
+3
-3
3 additions, 3 deletions
theories/fin_maps.v
with
3 additions
and
3 deletions
theories/fin_maps.v
+
3
−
3
View file @
7bb734bc
...
...
@@ -145,9 +145,9 @@ Fixpoint map_seq `{Insert nat A M, Empty M} (start : nat) (xs : list A) : M :=
|
x
::
xs
=>
<
[
start
:=
x
]
>
(
map_seq
(
S
start
)
xs
)
end
.
Global
Instance
fin
map_lookup_total
`{
!
Lookup
K
A
(
M
A
),
!
Inhabited
A
}
:
Global
Instance
map_lookup_total
`{
!
Lookup
K
A
(
M
A
),
!
Inhabited
A
}
:
LookupTotal
K
A
(
M
A
)
|
20
:=
λ
i
m
,
default
inhabitant
(
m
!!
i
)
.
Typeclasses
Opaque
fin
map_lookup_total
.
Typeclasses
Opaque
map_lookup_total
.
(** * Theorems *)
Section
theorems
.
...
...
@@ -174,7 +174,7 @@ Section setoid.
Proper
(
≡@
{
A
})
inhabitant
→
Proper
((
≡@
{
M
A
})
==>
(
≡
))
(
lookup_total
i
)
.
Proof
.
intros
?
m1
m2
Hm
.
unfold
lookup_total
,
fin
map_lookup_total
.
intros
?
m1
m2
Hm
.
unfold
lookup_total
,
map_lookup_total
.
apply
from_option_proper
;
auto
.
by
intros
??
.
Qed
.
Global
Instance
partial_alter_proper
:
...
...
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