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
8a4b52b7
Commit
8a4b52b7
authored
2 years ago
by
Michael Sammler
Browse files
Options
Downloads
Patches
Plain Diff
Add some _1, _2 lemmas
parent
b99e79cf
No related branches found
No related tags found
No related merge requests found
Pipeline
#70378
canceled
2 years ago
Stage: build
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/fin_map_dom.v
+4
-0
4 additions, 0 deletions
theories/fin_map_dom.v
theories/fin_maps.v
+14
-0
14 additions, 0 deletions
theories/fin_maps.v
with
18 additions
and
0 deletions
theories/fin_map_dom.v
+
4
−
0
View file @
8a4b52b7
...
...
@@ -42,6 +42,10 @@ Lemma elem_of_dom_2 {A} (m : M A) i x : m !! i = Some x → i ∈ dom m.
Proof
.
rewrite
elem_of_dom
;
eauto
.
Qed
.
Lemma
not_elem_of_dom
{
A
}
(
m
:
M
A
)
i
:
i
∉
dom
m
↔
m
!!
i
=
None
.
Proof
.
by
rewrite
elem_of_dom
,
eq_None_not_Some
.
Qed
.
Lemma
not_elem_of_dom_1
{
A
}
(
m
:
M
A
)
i
:
i
∉
dom
m
→
m
!!
i
=
None
.
Proof
.
apply
not_elem_of_dom
.
Qed
.
Lemma
not_elem_of_dom_2
{
A
}
(
m
:
M
A
)
i
:
m
!!
i
=
None
→
i
∉
dom
m
.
Proof
.
apply
not_elem_of_dom
.
Qed
.
Lemma
subseteq_dom
{
A
}
(
m1
m2
:
M
A
)
:
m1
⊆
m2
→
dom
m1
⊆
dom
m2
.
Proof
.
rewrite
map_subseteq_spec
.
...
...
This diff is collapsed.
Click to expand it.
theories/fin_maps.v
+
14
−
0
View file @
8a4b52b7
...
...
@@ -1385,6 +1385,14 @@ Section map_filter.
-
intros
Hm
i
.
destruct
(
m
!!
i
)
as
[
x
|]
eqn
:?;
[|
by
auto
]
.
right
;
intros
?
[
=
<-
]
.
by
apply
Hm
.
Qed
.
Lemma
map_filter_empty_iff_1
m
:
filter
P
m
=
∅
→
map_Forall
(
λ
i
x
,
¬
P
(
i
,
x
))
m
.
Proof
.
apply
map_filter_empty_iff
.
Qed
.
Lemma
map_filter_empty_iff_2
m
:
map_Forall
(
λ
i
x
,
¬
P
(
i
,
x
))
m
→
filter
P
m
=
∅.
Proof
.
apply
map_filter_empty_iff
.
Qed
.
Lemma
map_filter_delete
m
i
:
filter
P
(
delete
i
m
)
=
delete
i
(
filter
P
m
)
.
Proof
.
...
...
@@ -2273,6 +2281,12 @@ Proof. rewrite lookup_union. destruct (m1 !! i), (m2 !! i); naive_solver. Qed.
Lemma
lookup_union_None
{
A
}
(
m1
m2
:
M
A
)
i
:
(
m1
∪
m2
)
!!
i
=
None
↔
m1
!!
i
=
None
∧
m2
!!
i
=
None
.
Proof
.
rewrite
lookup_union
.
destruct
(
m1
!!
i
),
(
m2
!!
i
);
naive_solver
.
Qed
.
Lemma
lookup_union_None_1
{
A
}
(
m1
m2
:
M
A
)
i
:
(
m1
∪
m2
)
!!
i
=
None
→
m1
!!
i
=
None
∧
m2
!!
i
=
None
.
Proof
.
apply
lookup_union_None
.
Qed
.
Lemma
lookup_union_None_2
{
A
}
(
m1
m2
:
M
A
)
i
:
m1
!!
i
=
None
→
m2
!!
i
=
None
→
(
m1
∪
m2
)
!!
i
=
None
.
Proof
.
intros
.
by
apply
lookup_union_None
.
Qed
.
Lemma
lookup_union_Some
{
A
}
(
m1
m2
:
M
A
)
i
x
:
m1
##
ₘ
m2
→
(
m1
∪
m2
)
!!
i
=
Some
x
↔
m1
!!
i
=
Some
x
∨
m2
!!
i
=
Some
x
.
Proof
.
...
...
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