Skip to content

Commit

Permalink
add in_nearW (math-comp#1332)
Browse files Browse the repository at this point in the history
* add in_nearW

---------

Co-authored-by: Reynald Affeldt <[email protected]>
  • Loading branch information
IshiguroYoshihiro and affeldt-aist authored Oct 1, 2024
1 parent c963835 commit 15bd3e9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG_UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
- in `realfun.v`:
+ lemmas `cvg_pinftyP`, `cvg_ninftyP`

- in `topology.v`:
+ lemmas `in_nearW`, `open_in_nearW`

### Changed

### Renamed
Expand Down
19 changes: 16 additions & 3 deletions theories/topology.v
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,13 @@ Arguments filter_not_empty {T} F {_}.

Notation ProperFilter := ProperFilter'.

Lemma in_nearW {T : Type} (F : set_system T) (P : T -> Prop) (S : set T) :
Filter F -> F S -> {in S, forall x, P x} -> \near F, P F.
Proof.
move=> FF FS SP; rewrite -nbhs_nearE.
by apply: (@filterS _ F _ S) => // x /mem_set /SP.
Qed.

Lemma filter_setT (T' : Type) : Filter [set: set T'].
Proof. by constructor. Qed.

Expand Down Expand Up @@ -980,7 +987,7 @@ Arguments near {T F P} FP x Px.

Lemma nearW {T : Type} {F : set_system T} (P : T -> Prop) :
Filter F -> (forall x, P x) -> (\forall x \near F, P x).
Proof. by move=> FF FP; apply: filterS filterT. Qed.
Proof. by move=> FF FP; exact: (in_nearW _ filterT). Qed.

Lemma filterE {T : Type} {F : set_system T} :
Filter F -> forall P : set T, (forall x, P x) -> F P.
Expand Down Expand Up @@ -1799,16 +1806,22 @@ Qed.

End Topological1.

Lemma open_in_nearW {T : topologicalType} (P : T -> Prop) (S : set T) :
open S -> {in S, forall x, P x} -> {in S, forall x, \near x, P x}.
Proof.
by move=> oS SP z /set_mem Sz; apply: in_nearW SP => //=; exact: open_nbhs_nbhs.
Qed.

#[global] Hint Extern 0 (Filter (nbhs _)) =>
solve [apply: nbhs_filter] : typeclass_instances.
#[global] Hint Extern 0 (ProperFilter (nbhs _)) =>
solve [apply: nbhs_pfilter] : typeclass_instances.

Global Instance alias_nbhs_filter {T : topologicalType} x :
Global Instance alias_nbhs_filter {T : topologicalType} x :
@Filter T^o (@nbhs T^o T x).
Proof. apply: @nbhs_filter T x. Qed.

Global Instance alias_nbhs_pfilter {T : topologicalType} x :
Global Instance alias_nbhs_pfilter {T : topologicalType} x :
@ProperFilter T^o (@nbhs T^o T x).
Proof. exact: @nbhs_pfilter T x. Qed.

Expand Down

0 comments on commit 15bd3e9

Please sign in to comment.