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
034bdcad
Commit
034bdcad
authored
7 years ago
by
Johannes Kloos
Browse files
Options
Downloads
Patches
Plain Diff
Renamed subset_difference_in and moved to collection
parent
01f94618
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/collections.v
+3
-0
3 additions, 0 deletions
theories/collections.v
theories/infinite.v
+2
-5
2 additions, 5 deletions
theories/infinite.v
with
5 additions
and
5 deletions
theories/collections.v
+
3
−
0
View file @
034bdcad
...
...
@@ -620,6 +620,9 @@ Section collection.
Proof
.
set_solver
.
Qed
.
Lemma
difference_disjoint
X
Y
:
X
##
Y
→
X
∖
Y
≡
X
.
Proof
.
set_solver
.
Qed
.
Lemma
subset_difference_elem_of
{
x
:
A
}
{
s
:
C
}
(
inx
:
x
∈
s
):
s
∖
{[
x
]}
⊂
s
.
Proof
.
set_solver
.
Qed
.
Lemma
difference_mono
X1
X2
Y1
Y2
:
X1
⊆
X2
→
Y2
⊆
Y1
→
X1
∖
Y1
⊆
X2
∖
Y2
.
...
...
This diff is collapsed.
Click to expand it.
theories/infinite.v
+
2
−
5
View file @
034bdcad
...
...
@@ -27,13 +27,10 @@ Qed.
Section
Fresh
.
Context
`{
FinCollection
A
C
}
`{
Infinite
A
,
!
RelDecision
(
@
elem_of
A
C
_)}
.
Lemma
subset_difference_in
{
x
:
A
}
{
s
:
C
}
(
inx
:
x
∈
s
):
s
∖
{[
x
]}
⊂
s
.
Proof
.
set_solver
.
Qed
.
Definition
fresh_generic_body
(
s
:
C
)
(
rec
:
∀
s'
,
s'
⊂
s
→
nat
→
A
)
(
n
:
nat
)
:=
let
cand
:=
inject
n
in
match
decide
(
cand
∈
s
)
with
|
left
H
=>
rec
_
(
subset_difference_
in
H
)
(
S
n
)
|
left
H
=>
rec
_
(
subset_difference_
elem_of
H
)
(
S
n
)
|
right
_
=>
cand
end
.
Lemma
fresh_generic_body_proper
s
(
f
g
:
∀
y
,
y
⊂
s
→
nat
→
A
):
...
...
@@ -64,7 +61,7 @@ Section Fresh.
induction
s
as
[
s
IH
]
using
(
well_founded_ind
collection_wf
);
intro
.
setoid_rewrite
fresh_generic_fixpoint_unfold
;
unfold
fresh_generic_body
.
destruct
decide
as
[
case
|
case
];
eauto
with
omega
.
destruct
(
IH
_
(
subset_difference_
in
case
)
(
S
n
))
as
[
m
[
mbound
[
eqfix
[
notin
inbelow
]]]]
.
destruct
(
IH
_
(
subset_difference_
elem_of
case
)
(
S
n
))
as
[
m
[
mbound
[
eqfix
[
notin
inbelow
]]]]
.
exists
m
;
repeat
split
;
auto
with
omega
.
-
rewrite
not_elem_of_difference
,
elem_of_singleton
in
notin
.
destruct
notin
as
[?|?
%
inject_injective
];
auto
with
omega
.
...
...
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