Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Numerical Analysis in Coq
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Micaela Mayero
Numerical Analysis in Coq
Commits
2637a6eb
Commit
2637a6eb
authored
2 years ago
by
François Clément
Browse files
Options
Downloads
Patches
Plain Diff
Add {open_or,closed_and}_any
WIP: alternative def of is_topo_basis.
parent
fb158d06
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
Lebesgue/UniformSpace_compl.v
+53
-7
53 additions, 7 deletions
Lebesgue/UniformSpace_compl.v
with
53 additions
and
7 deletions
Lebesgue/UniformSpace_compl.v
+
53
−
7
View file @
2637a6eb
...
...
@@ -25,6 +25,7 @@ Section UniformSpace_compl.
(
**
Complements
on
UniformSpace
.
**
)
(
*
Unused
!
Lemma
filter_le_within_compat
:
forall
{
T
:
Type
}
{
F
G
}
(
D
:
T
->
Type
),
filter_le
F
G
->
filter_le
(
within
D
F
)
(
within
D
G
).
...
...
@@ -32,7 +33,9 @@ Proof.
intros
T
F
G
D
HFG
P
H
.
now
apply
HFG
.
Qed
.
*
)
(
*
Unused
!
Lemma
filterlim_locally_bis
:
forall
{
T
:
Type
}
{
U
:
UniformSpace
}
{
F
}
{
FF
:
Filter
F
}
(
f
:
T
->
U
)
y
,
filterlim
f
F
(
locally
y
)
<->
...
...
@@ -50,6 +53,7 @@ apply filter_imp with (fun x => ball y eps (f x)).
2
:
apply
(
H
eps
).
intros
x
;
apply
Heps
.
Qed
.
*
)
Definition
at_left_alt
(
x
:
R
)
:
(
R
->
Prop
)
->
Prop
:=
within
(
fun
x
'
=>
x
'
<=
x
)
(
locally
x
).
...
...
@@ -95,13 +99,20 @@ apply HN; intros; auto.
auto
.
Qed
.
Lemma
open_or_any
:
forall
{
T
:
UniformSpace
}
{
Idx
:
Type
}
(
A
:
Idx
->
T
->
Prop
),
(
forall
i
,
open
(
A
i
))
->
open
(
fun
x
=>
exists
i
,
A
i
x
).
Proof
.
intros
T
Idx
A
HA
x
[
i
Hx
].
destruct
(
HA
i
x
Hx
)
as
[
e
He
].
exists
e
;
intros
;
exists
i
;
auto
.
Qed
.
Lemma
open_or_count
:
forall
{
T
:
UniformSpace
}
(
A
:
nat
->
T
->
Prop
),
(
forall
n
,
open
(
A
n
))
->
open
(
fun
x
=>
exists
n
,
A
n
x
).
Proof
.
intros
T
A
HA
x
[
n
Hx
].
destruct
(
HA
n
x
Hx
)
as
[
e
He
].
exists
e
;
intros
;
exists
n
;
auto
.
intro
;
apply
open_or_any
.
Qed
.
Lemma
open_or_finite
:
...
...
@@ -144,14 +155,21 @@ intros Hx2; contradict Hx1; apply all_not_not_ex; intros n Hx3; apply (Hx2 n); e
apply
closed_not
,
open_and_finite
;
intros
;
apply
open_not
;
auto
.
Qed
.
Lemma
closed_and_any
:
forall
{
T
:
UniformSpace
}
{
Idx
:
Type
}
(
A
:
Idx
->
T
->
Prop
),
(
forall
i
,
closed
(
A
i
))
->
closed
(
fun
x
=>
forall
i
,
A
i
x
).
Proof
.
intros
T
Idx
A
HA
.
apply
closed_ext
with
(
fun
x
=>
~
exists
i
,
~
A
i
x
).
intros
x
;
split
;
[
apply
not_ex_not_all
|
intros
Hx1
[
n
Hx2
];
auto
].
apply
closed_not
,
open_or_any
;
intros
;
apply
open_not
;
auto
.
Qed
.
Lemma
closed_and_count
:
forall
{
T
:
UniformSpace
}
(
A
:
nat
->
T
->
Prop
),
(
forall
n
,
closed
(
A
n
))
->
closed
(
fun
x
=>
forall
n
,
A
n
x
).
Proof
.
intros
T
A
HA
.
apply
closed_ext
with
(
fun
x
=>
~
exists
n
,
~
A
n
x
).
intros
x
;
split
;
[
apply
not_ex_not_all
|
intros
Hx1
[
n
Hx2
];
auto
].
apply
closed_not
,
open_or_count
;
intros
;
apply
open_not
;
auto
.
intro
;
apply
closed_and_any
.
Qed
.
Lemma
closed_and_finite
:
...
...
@@ -227,6 +245,12 @@ End UniformSpace_compl.
Section
topo_basis_Def
.
Definition
is_topo_basis_alt
:
forall
{
T
:
UniformSpace
}
,
((
T
->
Prop
)
->
Prop
)
->
Prop
:=
fun
T
PB
=>
(
forall
B
,
PB
B
->
open
B
)
/
\
(
forall
A
,
open
A
->
forall
x
,
A
x
<->
exists
B
,
PB
B
/
\
B
x
).
Definition
is_topo_basis
:
forall
{
T
:
UniformSpace
}
{
Idx
:
Type
}
,
(
Idx
->
T
->
Prop
)
->
Prop
:=
fun
T
Idx
B
=>
...
...
@@ -251,6 +275,28 @@ End topo_basis_Def.
Section
topo_basis_Facts
.
Lemma
is_topo_basis_correct
:
forall
{
T
:
UniformSpace
}
{
Idx
:
Type
}
,
(
exists
(
B
:
Idx
->
T
->
Prop
),
is_topo_basis
B
)
<->
(
exists
(
B
:
(
T
->
Prop
)
->
Prop
),
is_topo_basis_alt
B
).
Proof
.
intros
T
Idx
;
split
.
(
*
*
)
intros
[
B
[
HB1
HB2
]].
exists
(
fun
A
=>
exists
i
,
A
=
B
i
);
split
.
intros
A
[
i
HA
];
rewrite
HA
;
auto
.
intros
A
HA
x
;
destruct
(
HB2
A
HA
)
as
[
P
HP
].
rewrite
HP
;
split
.
intros
[
i
[
Hi
Hx
]].
Admitted
.
Lemma
is_topo_basis_equiv
:
forall
{
T
:
UniformSpace
}
{
Idx
:
Type
}
(
B
:
Idx
->
T
->
Prop
),
(
forall
i
,
open
(
B
i
))
->
...
...
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