Skip to content

Commit c07d14a

Browse files
drouhlingCohenCyril
authored andcommitted
Generalise continuous_withinNx
1 parent d3e4c78 commit c07d14a

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

CHANGELOG_UNRELEASED.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@
6565
`continuity_pt_cvg'`, `continuity_pt_nbhs'`, `nbhs_pt_comp`
6666
+ lemmas `close_trans`, `close_cvgxx`, `cvg_closeP` and `close_cluster` are
6767
valid for a `uniformType`
68+
+ moved `continuous_withinNx` from `normedType.v` to `topology.v` and
69+
generalised it to `uniformType`
6870

6971
### Renamed
7072

theories/topology.v

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

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

28592872
Variable (U : uniformType).

0 commit comments

Comments
 (0)