Skip to content

Commit 26417e2

Browse files
committed
Generalise continuous_withinNx
1 parent 7daf09c commit 26417e2

3 files changed

Lines changed: 15 additions & 14 deletions

File tree

CHANGELOG_UNRELEASED.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
+ `completeType` inherits from `uniformType` and not from `pseudoMetricType`
6161
+ lemmas `close_trans`, `close_cvgxx`, `cvg_closeP` and `close_cluster` are
6262
valid for a `uniformType`
63+
+ moved `continuous_withinNx` from `normedType.v` to `topology.v` and
64+
generalised it to `uniformType`
6365

6466
### Renamed
6567

theories/normedtype.v

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4196,20 +4196,6 @@ Lemma continuity_ptE (f : Rdefinitions.R -> Rdefinitions.R) (x : Rdefinitions.R)
41964196
Ranalysis1.continuity_pt f x <-> {for x, continuous f}.
41974197
Proof. exact: continuity_pt_cvg. Qed.
41984198

4199-
Lemma continuous_withinNx (R : numFieldType) {U V : pseudoMetricType R}
4200-
(f : U -> V) x :
4201-
{for x, continuous f} <-> f @ nbhs' x --> f x.
4202-
Proof.
4203-
split=> - cfx P /= fxP.
4204-
rewrite /nbhs' !near_simpl near_withinE.
4205-
by rewrite /nbhs'; apply: cvg_within; apply/cfx.
4206-
(* :BUG: ssr apply: does not work,
4207-
because the type of the filter is not inferred *)
4208-
rewrite !nbhs_nearE !near_map !near_nbhs in fxP *; have /= := cfx P fxP.
4209-
rewrite !near_simpl near_withinE near_simpl => Pf; near=> y.
4210-
by have [->|] := eqVneq y x; [by apply: nbhs_singleton|near: y].
4211-
Grab Existential Variables. all: end_near. Qed.
4212-
42134199
Lemma continuity_pt_cvg' f x :
42144200
Ranalysis1.continuity_pt f x <-> f @ nbhs' x --> f x.
42154201
Proof. by rewrite continuity_ptE continuous_withinNx. Qed.

theories/topology.v

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2855,6 +2855,19 @@ Hint Extern 0 (entourage (get _)) => exact: entourage_split_ent : core.
28552855
Arguments entourage_split {M} z {x y A}.
28562856
Hint Extern 0 (nbhs _ (to_set _ _)) => exact: nbhs_entourage : core.
28572857

2858+
Lemma continuous_withinNx {U V : uniformType} (f : U -> V) x :
2859+
{for x, continuous f} <-> f @ nbhs' x --> f x.
2860+
Proof.
2861+
split=> - cfx P /= fxP.
2862+
rewrite /nbhs' !near_simpl near_withinE.
2863+
by rewrite /nbhs'; apply: cvg_within; apply/cfx.
2864+
(* :BUG: ssr apply: does not work,
2865+
because the type of the filter is not inferred *)
2866+
rewrite !nbhs_nearE !near_map !near_nbhs in fxP *; have /= := cfx P fxP.
2867+
rewrite !near_simpl near_withinE near_simpl => Pf; near=> y.
2868+
by have [->|] := eqVneq y x; [by apply: nbhs_singleton|near: y].
2869+
Grab Existential Variables. all: end_near. Qed.
2870+
28582871
Section uniform_closeness.
28592872

28602873
Variable (U : uniformType).

0 commit comments

Comments
 (0)