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
Pierre Roux
Iris
Commits
06bdd537
Commit
06bdd537
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
shorter proof by Robbert
parent
154b5120
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
-18
5 additions, 18 deletions
theories/algebra/gmap.v
with
5 additions
and
18 deletions
theories/algebra/gmap.v
+
5
−
18
View file @
06bdd537
...
@@ -598,24 +598,11 @@ Qed.
...
@@ -598,24 +598,11 @@ Qed.
Lemma
big_opM_singletons
m
:
Lemma
big_opM_singletons
m
:
([
^
op
map
]
k
↦
x
∈
m
,
{[
k
:=
x
]})
=
m
.
([
^
op
map
]
k
↦
x
∈
m
,
{[
k
:=
x
]})
=
m
.
Proof
.
Proof
.
rewrite
big_opM_eq
/
big_opM_def
.
rewrite
big_opM_eq
/
big_opM_def
-
{
2
}(
list_to_map_to_list
m
)
.
remember
(
map_to_list
m
)
as
l
eqn
:
Heql
.
assert
(
NoDup
(
map_to_list
m
).
*
1
)
as
Hnodup
by
apply
NoDup_fst_map_to_list
.
assert
(
map_to_list
m
≡
ₚ
l
)
as
Hl
by
by
rewrite
Heql
.
revert
Hnodup
.
induction
(
map_to_list
m
)
as
[|[
k
x
]
l
IH
];
csimpl
;
first
done
.
clear
Heql
.
revert
m
Hl
.
induction
l
as
[|
kx
l
IH
]
.
intros
[??]
%
NoDup_cons
.
rewrite
IH
//.
-
intros
m
->%
map_to_list_empty_inv_alt
.
rewrite
insert_singleton_op
?not_elem_of_list_to_map_1
//.
rewrite
big_opL_nil
.
done
.
-
destruct
kx
as
[
k
x
]
.
intros
m
Hl
.
rewrite
big_opL_cons
.
assert
(
NoDup
((
k
,
x
)
::
l
).
*
1
)
as
Hnodup
.
{
rewrite
-
Hl
.
apply
NoDup_fst_map_to_list
.
}
rewrite
(
IH
(
list_to_map
l
))
.
+
rewrite
(
map_to_list_insert_inv
_
_
_
_
Hl
)
.
rewrite
insert_singleton_op
//.
apply
not_elem_of_list_to_map_1
.
apply
NoDup_cons_11
in
Hnodup
.
done
.
+
apply
map_to_list_to_map
.
eapply
NoDup_cons_12
.
done
.
Qed
.
Qed
.
End
properties
.
End
properties
.
...
...
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