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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Arthur Azevedo de Amorim
stdpp
Commits
bee1e422
Commit
bee1e422
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Move the defs of set_Forall and set_Exists out of the section.
parent
2d56770b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/collections.v
+14
-13
14 additions, 13 deletions
theories/collections.v
with
14 additions
and
13 deletions
theories/collections.v
+
14
−
13
View file @
bee1e422
...
...
@@ -756,33 +756,34 @@ End collection_monad_base.
(** * Quantifiers *)
Definition
set_Forall
`{
ElemOf
A
C
}
(
P
:
A
→
Prop
)
(
X
:
C
)
:=
∀
x
,
x
∈
X
→
P
x
.
Definition
set_Exists
`{
ElemOf
A
C
}
(
P
:
A
→
Prop
)
(
X
:
C
)
:=
∃
x
,
x
∈
X
∧
P
x
.
Section
quantifiers
.
Context
`{
SimpleCollection
A
B
}
(
P
:
A
→
Prop
)
.
Definition
set_Forall
X
:=
∀
x
,
x
∈
X
→
P
x
.
Definition
set_Exists
X
:=
∃
x
,
x
∈
X
∧
P
x
.
Lemma
set_Forall_empty
:
set_Forall
∅.
Lemma
set_Forall_empty
:
set_Forall
P
∅.
Proof
.
unfold
set_Forall
.
set_solver
.
Qed
.
Lemma
set_Forall_singleton
x
:
set_Forall
{[
x
]}
↔
P
x
.
Lemma
set_Forall_singleton
x
:
set_Forall
P
{[
x
]}
↔
P
x
.
Proof
.
unfold
set_Forall
.
set_solver
.
Qed
.
Lemma
set_Forall_union
X
Y
:
set_Forall
X
→
set_Forall
Y
→
set_Forall
(
X
∪
Y
)
.
Lemma
set_Forall_union
X
Y
:
set_Forall
P
X
→
set_Forall
P
Y
→
set_Forall
P
(
X
∪
Y
)
.
Proof
.
unfold
set_Forall
.
set_solver
.
Qed
.
Lemma
set_Forall_union_inv_1
X
Y
:
set_Forall
(
X
∪
Y
)
→
set_Forall
X
.
Lemma
set_Forall_union_inv_1
X
Y
:
set_Forall
P
(
X
∪
Y
)
→
set_Forall
P
X
.
Proof
.
unfold
set_Forall
.
set_solver
.
Qed
.
Lemma
set_Forall_union_inv_2
X
Y
:
set_Forall
(
X
∪
Y
)
→
set_Forall
Y
.
Lemma
set_Forall_union_inv_2
X
Y
:
set_Forall
P
(
X
∪
Y
)
→
set_Forall
P
Y
.
Proof
.
unfold
set_Forall
.
set_solver
.
Qed
.
Lemma
set_Exists_empty
:
¬
set_Exists
∅.
Lemma
set_Exists_empty
:
¬
set_Exists
P
∅.
Proof
.
unfold
set_Exists
.
set_solver
.
Qed
.
Lemma
set_Exists_singleton
x
:
set_Exists
{[
x
]}
↔
P
x
.
Lemma
set_Exists_singleton
x
:
set_Exists
P
{[
x
]}
↔
P
x
.
Proof
.
unfold
set_Exists
.
set_solver
.
Qed
.
Lemma
set_Exists_union_1
X
Y
:
set_Exists
X
→
set_Exists
(
X
∪
Y
)
.
Lemma
set_Exists_union_1
X
Y
:
set_Exists
P
X
→
set_Exists
P
(
X
∪
Y
)
.
Proof
.
unfold
set_Exists
.
set_solver
.
Qed
.
Lemma
set_Exists_union_2
X
Y
:
set_Exists
Y
→
set_Exists
(
X
∪
Y
)
.
Lemma
set_Exists_union_2
X
Y
:
set_Exists
P
Y
→
set_Exists
P
(
X
∪
Y
)
.
Proof
.
unfold
set_Exists
.
set_solver
.
Qed
.
Lemma
set_Exists_union_inv
X
Y
:
set_Exists
(
X
∪
Y
)
→
set_Exists
X
∨
set_Exists
Y
.
set_Exists
P
(
X
∪
Y
)
→
set_Exists
P
X
∨
set_Exists
P
Y
.
Proof
.
unfold
set_Exists
.
set_solver
.
Qed
.
End
quantifiers
.
...
...
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