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
a00e9041
Commit
a00e9041
authored
2 years ago
by
Ralf Jung
Browse files
Options
Downloads
Plain Diff
Merge branch 'gset_to_gmap_to_list' into 'master'
add gset_to_gmap_to_list See merge request
!422
parents
d06ae4b9
0c776fcd
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!422
add gset_to_gmap_to_list
Pipeline
#74569
passed
2 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stdpp/gmap.v
+11
-0
11 additions, 0 deletions
stdpp/gmap.v
with
11 additions
and
0 deletions
stdpp/gmap.v
+
11
−
0
View file @
a00e9041
...
@@ -354,6 +354,17 @@ Section gset.
...
@@ -354,6 +354,17 @@ Section gset.
apply
map_eq
;
intros
k
.
apply
option_eq
;
intros
y
.
apply
map_eq
;
intros
k
.
apply
option_eq
;
intros
y
.
rewrite
lookup_gset_to_gmap_Some
,
lookup_set_to_map
;
naive_solver
.
rewrite
lookup_gset_to_gmap_Some
,
lookup_set_to_map
;
naive_solver
.
Qed
.
Qed
.
Lemma
map_to_list_gset_to_gmap
{
A
}
(
X
:
gset
K
)
(
x
:
A
)
:
map_to_list
(
gset_to_gmap
x
X
)
≡
ₚ
(.,
x
)
<$>
elements
X
.
Proof
.
induction
X
as
[|
y
X
not_in
IH
]
using
set_ind_L
.
-
rewrite
gset_to_gmap_empty
,
elements_empty
,
map_to_list_empty
.
done
.
-
rewrite
gset_to_gmap_union_singleton
,
elements_union_singleton
by
done
.
rewrite
map_to_list_insert
.
2
:{
rewrite
lookup_gset_to_gmap_None
.
done
.
}
rewrite
IH
.
done
.
Qed
.
End
gset
.
End
gset
.
Typeclasses
Opaque
gset
.
Typeclasses
Opaque
gset
.
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