Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
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
Package Registry
Model registry
Operate
Terraform modules
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
William Mansky
Iris
Commits
cd83b336
Commit
cd83b336
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
comment to explain what happens in big_opM_singletons
parent
06bdd537
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/algebra/gmap.v
+5
-0
5 additions, 0 deletions
theories/algebra/gmap.v
with
5 additions
and
0 deletions
theories/algebra/gmap.v
+
5
−
0
View file @
cd83b336
...
...
@@ -598,6 +598,11 @@ Qed.
Lemma
big_opM_singletons
m
:
([
^
op
map
]
k
↦
x
∈
m
,
{[
k
:=
x
]})
=
m
.
Proof
.
(* We are breaking the big_opM abstraction here. The reason is that [map_ind]
is too weak: we need an induction principle that visits all the keys in the
right order, namely the order in which they appear in map_to_list. Here,
we achieve this by unfolding [big_opM] and doing induction over that list
instead. *)
rewrite
big_opM_eq
/
big_opM_def
-
{
2
}(
list_to_map_to_list
m
)
.
assert
(
NoDup
(
map_to_list
m
).
*
1
)
as
Hnodup
by
apply
NoDup_fst_map_to_list
.
revert
Hnodup
.
induction
(
map_to_list
m
)
as
[|[
k
x
]
l
IH
];
csimpl
;
first
done
.
...
...
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