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
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Gregory Malecha
stdpp
Commits
5061c3cb
Commit
5061c3cb
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Rename preserving -> mono.
To be consistent with Iris, see Iris commit 9ee62b3a.
parent
81d719c9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
theories/collections.v
+11
-11
11 additions, 11 deletions
theories/collections.v
theories/fin_maps.v
+3
-3
3 additions, 3 deletions
theories/fin_maps.v
theories/gmultiset.v
+5
-5
5 additions, 5 deletions
theories/gmultiset.v
with
19 additions
and
19 deletions
theories/collections.v
+
11
−
11
View file @
5061c3cb
...
...
@@ -346,11 +346,11 @@ Section simple_collection.
Proof
.
set_solver
.
Qed
.
Lemma
elem_of_union_r
x
X
Y
:
x
∈
Y
→
x
∈
X
∪
Y
.
Proof
.
set_solver
.
Qed
.
Lemma
union_
preserving
_l
X
Y1
Y2
:
Y1
⊆
Y2
→
X
∪
Y1
⊆
X
∪
Y2
.
Lemma
union_
mono
_l
X
Y1
Y2
:
Y1
⊆
Y2
→
X
∪
Y1
⊆
X
∪
Y2
.
Proof
.
set_solver
.
Qed
.
Lemma
union_
preserving
_r
X1
X2
Y
:
X1
⊆
X2
→
X1
∪
Y
⊆
X2
∪
Y
.
Lemma
union_
mono
_r
X1
X2
Y
:
X1
⊆
X2
→
X1
∪
Y
⊆
X2
∪
Y
.
Proof
.
set_solver
.
Qed
.
Lemma
union_
preserving
X1
X2
Y1
Y2
:
X1
⊆
X2
→
Y1
⊆
Y2
→
X1
∪
Y1
⊆
X2
∪
Y2
.
Lemma
union_
mono
X1
X2
Y1
Y2
:
X1
⊆
X2
→
Y1
⊆
Y2
→
X1
∪
Y1
⊆
X2
∪
Y2
.
Proof
.
set_solver
.
Qed
.
Global
Instance
union_idemp
:
IdemP
((
≡
)
:
relation
C
)
(
∪
)
.
...
...
@@ -444,8 +444,8 @@ Section simple_collection.
by
rewrite
reverse_cons
,
union_list_app
,
union_list_singleton
,
(
comm
_),
IH
.
Qed
.
Lemma
union_list_
preserving
Xs
Ys
:
Xs
⊆*
Ys
→
⋃
Xs
⊆
⋃
Ys
.
Proof
.
induction
1
;
simpl
;
auto
using
union_
preserving
.
Qed
.
Lemma
union_list_
mono
Xs
Ys
:
Xs
⊆*
Ys
→
⋃
Xs
⊆
⋃
Ys
.
Proof
.
induction
1
;
simpl
;
auto
using
union_
mono
.
Qed
.
Lemma
empty_union_list
Xs
:
⋃
Xs
≡
∅
↔
Forall
(
≡
∅
)
Xs
.
Proof
.
split
.
...
...
@@ -565,11 +565,11 @@ Section collection.
Lemma
intersection_greatest
X
Y
Z
:
Z
⊆
X
→
Z
⊆
Y
→
Z
⊆
X
∩
Y
.
Proof
.
set_solver
.
Qed
.
Lemma
intersection_
preserving
_l
X
Y1
Y2
:
Y1
⊆
Y2
→
X
∩
Y1
⊆
X
∩
Y2
.
Lemma
intersection_
mono
_l
X
Y1
Y2
:
Y1
⊆
Y2
→
X
∩
Y1
⊆
X
∩
Y2
.
Proof
.
set_solver
.
Qed
.
Lemma
intersection_
preserving
_r
X1
X2
Y
:
X1
⊆
X2
→
X1
∩
Y
⊆
X2
∩
Y
.
Lemma
intersection_
mono
_r
X1
X2
Y
:
X1
⊆
X2
→
X1
∩
Y
⊆
X2
∩
Y
.
Proof
.
set_solver
.
Qed
.
Lemma
intersection_
preserving
X1
X2
Y1
Y2
:
Lemma
intersection_
mono
X1
X2
Y1
Y2
:
X1
⊆
X2
→
Y1
⊆
Y2
→
X1
∩
Y1
⊆
X2
∩
Y2
.
Proof
.
set_solver
.
Qed
.
...
...
@@ -612,12 +612,12 @@ Section collection.
Lemma
difference_disjoint
X
Y
:
X
⊥
Y
→
X
∖
Y
≡
X
.
Proof
.
set_solver
.
Qed
.
Lemma
difference_
preserving
X1
X2
Y1
Y2
:
Lemma
difference_
mono
X1
X2
Y1
Y2
:
X1
⊆
X2
→
Y2
⊆
Y1
→
X1
∖
Y1
⊆
X2
∖
Y2
.
Proof
.
set_solver
.
Qed
.
Lemma
difference_
preserving
_l
X
Y1
Y2
:
Y2
⊆
Y1
→
X
∖
Y1
⊆
X
∖
Y2
.
Lemma
difference_
mono
_l
X
Y1
Y2
:
Y2
⊆
Y1
→
X
∖
Y1
⊆
X
∖
Y2
.
Proof
.
set_solver
.
Qed
.
Lemma
difference_
preserving
_r
X1
X2
Y
:
X1
⊆
X2
→
X1
∖
Y
⊆
X2
∖
Y
.
Lemma
difference_
mono
_r
X1
X2
Y
:
X1
⊆
X2
→
X1
∖
Y
⊆
X2
∖
Y
.
Proof
.
set_solver
.
Qed
.
(** Disjointness *)
...
...
This diff is collapsed.
Click to expand it.
theories/fin_maps.v
+
3
−
3
View file @
5061c3cb
...
...
@@ -1322,17 +1322,17 @@ Proof. intros. trans m2; auto using map_union_subseteq_l. Qed.
Lemma
map_union_subseteq_r_alt
{
A
}
(
m1
m2
m3
:
M
A
)
:
m2
⊥
ₘ
m3
→
m1
⊆
m3
→
m1
⊆
m2
∪
m3
.
Proof
.
intros
.
trans
m3
;
auto
using
map_union_subseteq_r
.
Qed
.
Lemma
map_union_
preserving
_l
{
A
}
(
m1
m2
m3
:
M
A
)
:
m1
⊆
m2
→
m3
∪
m1
⊆
m3
∪
m2
.
Lemma
map_union_
mono
_l
{
A
}
(
m1
m2
m3
:
M
A
)
:
m1
⊆
m2
→
m3
∪
m1
⊆
m3
∪
m2
.
Proof
.
rewrite
!
map_subseteq_spec
.
intros
???
.
rewrite
!
lookup_union_Some_raw
.
naive_solver
.
Qed
.
Lemma
map_union_
preserving
_r
{
A
}
(
m1
m2
m3
:
M
A
)
:
Lemma
map_union_
mono
_r
{
A
}
(
m1
m2
m3
:
M
A
)
:
m2
⊥
ₘ
m3
→
m1
⊆
m2
→
m1
∪
m3
⊆
m2
∪
m3
.
Proof
.
intros
.
rewrite
!
(
map_union_comm
_
m3
)
by
eauto
using
map_disjoint_weaken_l
.
by
apply
map_union_
preserving
_l
.
by
apply
map_union_
mono
_l
.
Qed
.
Lemma
map_union_reflecting_l
{
A
}
(
m1
m2
m3
:
M
A
)
:
m3
⊥
ₘ
m1
→
m3
⊥
ₘ
m2
→
m3
∪
m1
⊆
m3
∪
m2
→
m1
⊆
m2
.
...
...
This diff is collapsed.
Click to expand it.
theories/gmultiset.v
+
5
−
5
View file @
5061c3cb
...
...
@@ -288,12 +288,12 @@ Lemma gmultiset_union_subseteq_l X Y : X ⊆ X ∪ Y.
Proof
.
intros
x
.
rewrite
multiplicity_union
.
omega
.
Qed
.
Lemma
gmultiset_union_subseteq_r
X
Y
:
Y
⊆
X
∪
Y
.
Proof
.
intros
x
.
rewrite
multiplicity_union
.
omega
.
Qed
.
Lemma
gmultiset_union_
preserving
X1
X2
Y1
Y2
:
X1
⊆
X2
→
Y1
⊆
Y2
→
X1
∪
Y1
⊆
X2
∪
Y2
.
Lemma
gmultiset_union_
mono
X1
X2
Y1
Y2
:
X1
⊆
X2
→
Y1
⊆
Y2
→
X1
∪
Y1
⊆
X2
∪
Y2
.
Proof
.
intros
??
x
.
rewrite
!
multiplicity_union
.
by
apply
Nat
.
add_le_mono
.
Qed
.
Lemma
gmultiset_union_
preserving
_l
X
Y1
Y2
:
Y1
⊆
Y2
→
X
∪
Y1
⊆
X
∪
Y2
.
Proof
.
intros
.
by
apply
gmultiset_union_
preserving
.
Qed
.
Lemma
gmultiset_union_
preserving
_r
X1
X2
Y
:
X1
⊆
X2
→
X1
∪
Y
⊆
X2
∪
Y
.
Proof
.
intros
.
by
apply
gmultiset_union_
preserving
.
Qed
.
Lemma
gmultiset_union_
mono
_l
X
Y1
Y2
:
Y1
⊆
Y2
→
X
∪
Y1
⊆
X
∪
Y2
.
Proof
.
intros
.
by
apply
gmultiset_union_
mono
.
Qed
.
Lemma
gmultiset_union_
mono
_r
X1
X2
Y
:
X1
⊆
X2
→
X1
∪
Y
⊆
X2
∪
Y
.
Proof
.
intros
.
by
apply
gmultiset_union_
mono
.
Qed
.
Lemma
gmultiset_subset
X
Y
:
X
⊆
Y
→
size
X
<
size
Y
→
X
⊂
Y
.
Proof
.
intros
.
apply
strict_spec_alt
;
split
;
naive_solver
auto
with
omega
.
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