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
5d722b20
You need to sign in or sign up before continuing.
Commit
5d722b20
authored
2 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Add `set_equiv_subseteq_size` and `set_eq_subseteq_size`.
parent
3476f4ae
No related branches found
No related tags found
1 merge request
!455
Various tweaks to lists, maps, sets
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stdpp/fin_sets.v
+10
-0
10 additions, 0 deletions
stdpp/fin_sets.v
with
10 additions
and
0 deletions
stdpp/fin_sets.v
+
10
−
0
View file @
5d722b20
...
...
@@ -213,6 +213,16 @@ Proof.
apply
set_size_proper
.
set_solver
.
Qed
.
Lemma
set_equiv_subseteq_size
X1
X2
:
X1
≡
X2
↔
X1
⊆
X2
∧
size
X2
≤
size
X1
.
Proof
.
split
;
[
by
intros
->
|]
.
intros
[??]
.
apply
(
anti_symm
_);
[
done
|]
.
apply
empty_difference_subseteq
,
size_empty_iff
.
rewrite
size_difference
by
done
.
lia
.
Qed
.
Lemma
set_eq_subseteq_size
`{
!
LeibnizEquiv
C
}
X1
X2
:
X1
=
X2
↔
X1
⊆
X2
∧
size
X2
≤
size
X1
.
Proof
.
unfold_leibniz
.
apply
set_equiv_subseteq_size
.
Qed
.
Lemma
subseteq_size
X
Y
:
X
⊆
Y
→
size
X
≤
size
Y
.
Proof
.
intros
.
rewrite
(
union_difference
X
Y
),
size_union_alt
by
done
.
lia
.
Qed
.
Lemma
subset_size
X
Y
:
X
⊂
Y
→
size
X
<
size
Y
.
...
...
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