Skip to content

Commit 51b709c

Browse files
authored
pretty-printing of {within _, continuous _} (#1784)
Co-author: @holgerthies
1 parent eb0d035 commit 51b709c

File tree

3 files changed

+28
-12
lines changed

3 files changed

+28
-12
lines changed

CHANGELOG_UNRELEASED.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969
- in `measurable_realfun.v`:
7070
+ lemmas `measurable_funN`
7171
+ lemmas `nondecreasing_measurable`, `nonincreasing_measurable`
72+
- in `subspace_topology.v`:
73+
+ definition `from_subspace`
7274

7375
### Changed
7476

@@ -83,6 +85,8 @@
8385

8486
- in `lebesgue_integral_monotone_convergence.v`:
8587
+ lemma `ge0_le_integral` (remove superfluous hypothesis)
88+
- in `subspace_topology.v`:
89+
+ notation `{within _, continuous _}` (now uses `from_subspace`)
8690

8791
### Renamed
8892

theories/lebesgue_integral_theory/measurable_fun_approximation.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ exists (\bigcup_(i in range f) dK i); split.
758758
+ move=> i _; split; first by apply: compact_closed; have [] := dkP i.
759759
apply: (continuous_subspaceW (dKsub i)).
760760
apply: (@subspace_eq_continuous _ _ _ (fun=> i)).
761-
by move=> ? /set_mem ->.
761+
by rewrite /from_subspace => ? /set_mem ->.
762762
by apply: continuous_subspaceT => ?; exact: cvg_cst.
763763
Qed.
764764

theories/topology_theory/subspace_topology.v

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,24 @@ From mathcomp Require Import product_topology.
99
(* # Subspaces of topological spaces *)
1010
(* *)
1111
(* ``` *)
12-
(* subspace A == for (A : set T), this is a copy of T with a *)
13-
(* topology that ignores points outside A *)
14-
(* incl_subspace x == with x of type subspace A with (A : set T), *)
15-
(* inclusion of subspace A into T *)
16-
(* nbhs_subspace x == filter associated with x : subspace A *)
17-
(* subspace_ent A == subspace entourages *)
18-
(* subspace_ball A == balls of the pseudometric subspace structure *)
19-
(* continuousFunType A B == type of continuous function from set A to set B *)
20-
(* with domain subspace A *)
21-
(* The HB structure is ContinuousFun. *)
12+
(* subspace A == for (A : set T), this is a copy of T with a *)
13+
(* topology that ignores points outside A *)
14+
(* incl_subspace x == with x of type subspace A with (A : set T), *)
15+
(* inclusion of subspace A into T *)
16+
(* nbhs_subspace x == filter associated with x : subspace A *)
17+
(* from_subspace A f == function of type `subspace A -> U` given a *)
18+
(* function f of type `A -> U` *)
19+
(* The purpose of this definition is to preserve *)
20+
(* the pretty-printing of the notation *)
21+
(* {within _, continuous _} below. Its use is *)
22+
(* however likely to be later superseded by a *)
23+
(* better (compositional) mechanism. *)
24+
(* {within A, continuous f} := continuous (from_subspace A f)) *)
25+
(* subspace_ent A == subspace entourages *)
26+
(* subspace_ball A == balls of the pseudometric subspace structure *)
27+
(* continuousFunType A B == type of continuous functions from set A to *)
28+
(* set B with domain subspace A *)
29+
(* The HB structure is ContinuousFun. *)
2230
(* ``` *)
2331
(******************************************************************************)
2432

@@ -303,8 +311,12 @@ Global Instance subspace_proper_filter {T : topologicalType}
303311
(A : set T) (x : subspace A) :
304312
ProperFilter (nbhs_subspace x) := nbhs_subspace_filter x.
305313

314+
Definition from_subspace {T U : Type} (A : set T) (f : T -> U) : subspace A -> U :=
315+
f.
316+
Arguments from_subspace {T U} A f.
317+
306318
Notation "{ 'within' A , 'continuous' f }" :=
307-
(continuous (f : subspace A -> _)) : classical_set_scope.
319+
(continuous (from_subspace A f)) : classical_set_scope.
308320

309321
Arguments nbhs_subspaceP {T} A x.
310322

0 commit comments

Comments
 (0)