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
e18fe0f6
Commit
e18fe0f6
authored
6 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Alternative versions of finite/infinite predicates in terms of sets.
parent
883572e7
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/fin_sets.v
+17
-0
17 additions, 0 deletions
theories/fin_sets.v
with
17 additions
and
0 deletions
theories/fin_sets.v
+
17
−
0
View file @
e18fe0f6
...
...
@@ -325,4 +325,21 @@ Proof.
refine
(
cast_if
(
decide
(
Exists
P
(
elements
X
))));
by
rewrite
set_Exists_elements
.
Defined
.
(** Alternative versions of finite and infinite predicates *)
Lemma
pred_finite_set
(
P
:
A
→
Prop
)
:
pred_finite
P
↔
(
∃
X
:
C
,
∀
x
,
P
x
→
x
∈
X
)
.
Proof
.
split
.
-
intros
[
xs
Hfin
]
.
exists
(
list_to_set
xs
)
.
set_solver
.
-
intros
[
X
Hfin
]
.
exists
(
elements
X
)
.
set_solver
.
Qed
.
Lemma
pred_infinite_set
(
P
:
A
→
Prop
)
:
pred_infinite
P
↔
(
∀
X
:
C
,
∃
x
,
P
x
∧
x
∉
X
)
.
Proof
.
split
.
-
intros
Hinf
X
.
destruct
(
Hinf
(
elements
X
))
.
set_solver
.
-
intros
Hinf
xs
.
destruct
(
Hinf
(
list_to_set
xs
))
.
set_solver
.
Qed
.
End
fin_set
.
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