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
457abb83
Commit
457abb83
authored
2 years ago
by
Robbert Krebbers
Committed by
Michael Sammler
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add `map_Exists_ind`.
parent
ff92006d
No related branches found
No related tags found
1 merge request
!390
Add map_Exists
Pipeline
#69690
canceled
2 years ago
Stage: build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/fin_maps.v
+16
-0
16 additions, 0 deletions
theories/fin_maps.v
with
16 additions
and
0 deletions
theories/fin_maps.v
+
16
−
0
View file @
457abb83
...
...
@@ -1595,6 +1595,22 @@ Section map_Exists.
map_Exists
P
(
foldr
delete
m
is
)
→
map_Exists
P
m
.
Proof
.
induction
is
;
eauto
using
map_Exists_delete
.
Qed
.
Lemma
map_Exists_ind
(
Q
:
M
A
→
Prop
)
:
(
∀
i
x
,
P
i
x
→
Q
{[
i
:=
x
]})
→
(
∀
m
i
x
,
m
!!
i
=
None
→
map_Exists
P
m
→
Q
m
→
Q
(
<
[
i
:=
x
]
>
m
))
→
∀
m
,
map_Exists
P
m
→
Q
m
.
Proof
.
intros
Hsingleton
Hinsert
m
Hm
.
induction
m
as
[|
i
x
m
Hi
IH
]
using
map_ind
.
{
by
destruct
map_Exists_empty
.
}
apply
map_Exists_insert
in
Hm
as
[?|?];
[|
by
eauto
..]
.
clear
IH
.
induction
m
as
[|
j
y
m
Hj
IH
]
using
map_ind
;
[
by
eauto
|]
.
apply
lookup_insert_None
in
Hi
as
[??]
.
rewrite
insert_commute
by
done
.
apply
Hinsert
.
-
by
apply
lookup_insert_None
.
-
apply
map_Exists_insert
;
by
eauto
.
-
eauto
.
Qed
.
Lemma
map_not_Exists
(
m
:
M
A
)
:
¬
map_Exists
P
m
↔
map_Forall
(
λ
i
x
,
¬
P
i
x
)
m
.
Proof
.
unfold
map_Exists
,
map_Forall
;
naive_solver
.
Qed
.
...
...
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