Skip to content

Commit 63a7b33

Browse files
authored
fix #1849 (closure_subset -> closureS) (#1857)
* rename closure_subset -> closureS; add interiorS
1 parent 2e35abf commit 63a7b33

File tree

10 files changed

+39
-21
lines changed

10 files changed

+39
-21
lines changed

CHANGELOG_UNRELEASED.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@
33
## [Unreleased]
44

55
### Added
6-
- in order_topology.v
6+
- in `topology_structure.v`
7+
+ lemma `interiorS`
8+
9+
- in `order_topology.v`
710
+ lemma `itv_closed_ends_closed`
11+
- in `classical_sets.v`
12+
+ lemma `in_set1_eq`
813

9-
- in set_interval.v
14+
- in `set_interval.v`
1015
+ definitions `itv_is_closed_unbounded`, `itv_is_cc`, `itv_closed_ends`
1116

1217
- in `Rstruct.v`:
@@ -46,10 +51,10 @@
4651
`emeasurable_fun_itv_cc`
4752

4853
### Changed
49-
- in set_interval.v
54+
- in `set_interval.v`
5055
+ `itv_is_closed_unbounded` (fix the definition)
5156

52-
- in set_interval.v
57+
- in `set_interval.v`
5358
+ `itv_is_open_unbounded`, `itv_is_oo`, `itv_open_ends` (Prop to bool)
5459

5560
- in `lebesgue_Rintegrable.v`:
@@ -168,6 +173,9 @@
168173

169174
### Renamed
170175

176+
- in `topology_structure.v`
177+
+ `closure_subset` -> `closureS`
178+
171179
- in `set_interval.v`:
172180
+ `itv_is_ray` -> `itv_is_open_unbounded`
173181
+ `itv_is_bd_open` -> `itv_is_oo`

theories/cantor.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ move=> _; split=> [|A [|]| | |].
420420
- move=> [z M'z] <-; exists z; split.
421421
+ apply: subset_closure; apply: nbhs_singleton; apply: nbhs_interior.
422422
by rewrite -nbhs_entourageE; exists (split_ent E) => // t /xsectionP.
423-
+ by apply: closure_subset; exact: interior_subset.
423+
+ by apply: closureS; exact: interior_subset.
424424
- by case => ->; [exists t0 | exists t1]; split => // t ->;
425425
apply/subset_closure/xsectionP; exact: entourage_refl.
426426
- exists [set t0], [set t1]; split;[|split].

theories/function_spaces.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ have : compact (proj x @` (closure W)).
12451245
exact: (@pointwise_cvg_compact_family _ _ (nbhs g)).
12461246
move=> /[dup]/(compact_closed hsdf)/closure_id -> /subclosed_compact.
12471247
apply; first exact: closed_closure.
1248-
by apply/closure_subset/image_subset; exact: (@subset_closure _ W).
1248+
by apply/closureS/image_subset; exact: (@subset_closure _ W).
12491249
Qed.
12501250

12511251
Lemma pointwise_cvg_entourage (x : X) (f : {ptws X -> Y}) E :

theories/normedtype_theory/pseudometric_normed_Zmodule.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@ Qed.
11991199

12001200
Lemma le_closed_ball (R : numFieldType) (M : pseudoMetricType R)
12011201
(x : M) (e1 e2 : R) : (e1 <= e2)%O -> closed_ball x e1 `<=` closed_ball x e2.
1202-
Proof. by rewrite /closed_ball => le; apply/closure_subset/le_ball. Qed.
1202+
Proof. by rewrite /closed_ball => le; apply/closureS/le_ball. Qed.
12031203

12041204
End Closed_Ball.
12051205
#[deprecated(since="mathcomp-analysis 1.14.0", note="renamed to `closure_ballE`")]

theories/normedtype_theory/urysohn.v

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ have [R' []] : exists R', [/\ open R', closure L `<=` R' & closure R' `<=` R].
472472
have := @normalT (closure L) (@closed_closure T L).
473473
case/(_ R); first by move=> x /cLR ?; apply: open_nbhs_nbhs.
474474
move=> V /set_nbhsP [U] [? ? ? cVR]; exists U; split => //.
475-
by apply: (subset_trans _ cVR); exact: closure_subset.
475+
by apply: (subset_trans _ cVR); exact: closureS.
476476
move=> oR' cLR' cR'R; exists (apxU (L, R')), (apxU (R', R)).
477477
split; first by exists (L, R').
478478
exists (R', R) => //; split => //; apply: (subset_trans AL).
@@ -556,7 +556,7 @@ move=> V /set_nbhsP [U [oU AU UV]] cVcb.
556556
exists (Uniform.class urysohnType), (apxU (U, ~` B)); split => //.
557557
- move=> ?; apply:sub_gen_smallest; exists (U, ~`B) => //; split => //=.
558558
exact/closed_openC.
559-
by move: UV => /closure_subset/subset_trans; apply.
559+
by move: UV => /closureS/subset_trans; apply.
560560
- rewrite eqEsubset; split; case=> // a b [/=[Aa Bb] [[//]|]].
561561
by have /subset_closure ? := AU _ Aa; case.
562562
move=> x ? [E gE] /(@filterS T); apply; move: gE.
@@ -634,10 +634,10 @@ case/(_ _ _ clA (open_closedC oC) AC0) => U [V] [oU oV AU nCV UV0].
634634
exists (~` closure V).
635635
apply/set_nbhsP; exists U; split => //.
636636
apply/subsetCr; have := open_closedC oU; rewrite closure_id => ->.
637-
by apply/closure_subset/disjoints_subset; rewrite setIC.
637+
by apply/closureS/disjoints_subset; rewrite setIC.
638638
apply/(subset_trans _ CB)/subsetCP; apply: (subset_trans nCV).
639639
apply/subsetCr; have := open_closedC oV; rewrite closure_id => ->.
640-
exact/closure_subset/subsetC/subset_closure.
640+
exact/closureS/subsetC/subset_closure.
641641
Qed.
642642

643643
Lemma normal_openP : normal_space T <->
@@ -820,7 +820,7 @@ move=> + A Ax => /(_ (~` A°)) []; [|exact|].
820820
exact/open_closedC/open_interior.
821821
move=> U [V] [oU oV Ux /subsetC cAV /disjoints_subset UV]; exists U.
822822
exact/open_nbhs_nbhs.
823-
apply: (subset_trans (closure_subset UV)).
823+
apply: (subset_trans (closureS UV)).
824824
move/open_closedC/closure_id : oV => <-.
825825
by apply: (subset_trans cAV); rewrite setCK; exact: interior_subset.
826826
Qed.

theories/topology_theory/compact.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ rewrite propeqE; split=> [[B CsubB [cptB cB]]|]; last first.
261261
move=> clC; exists (closure C) => //; first exact: subset_closure.
262262
by split => //; exact: closed_closure.
263263
apply: (subclosed_compact _ cptB); first exact: closed_closure.
264-
by move/closure_id: cB => ->; exact: closure_subset.
264+
by move/closure_id: cB => ->; exact: closureS.
265265
Qed.
266266

267267
Lemma precompact_subset (A B : set X) :

theories/topology_theory/connected.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Lemma connected_closure A : connected A -> connected (closure A).
146146
Proof.
147147
move=> ctdA U U0 [C1 oC1 C1E] [C2 cC2 C2E]; rewrite eqEsubset C2E; split => //.
148148
suff : A `<=` U.
149-
move/closure_subset; rewrite [_ `&` _](iffLR (closure_id _)) ?C2E//.
149+
move/closureS; rewrite [_ `&` _](iffLR (closure_id _)) ?C2E//.
150150
by apply: closedI => //; exact: closed_closure.
151151
rewrite -setIidPl; apply: ctdA.
152152
- move: U0; rewrite C1E => -[z [clAx C1z]]; have [] := clAx C1.
@@ -217,7 +217,7 @@ rewrite closure_id eqEsubset; split; first exact: subset_closure.
217217
move=> z Axz; exists (closure (connected_component A x)) => //.
218218
split; first exact/subset_closure/connected_component_refl.
219219
rewrite [X in _ `<=` X](closure_id A).1//.
220-
by apply: closure_subset; exact: connected_component_sub.
220+
by apply: closureS; exact: connected_component_sub.
221221
by apply: connected_closure; exact: component_connected.
222222
Qed.
223223

theories/topology_theory/separation_axioms.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ split; first by exists A => //; exact: open_nbhs_nbhs.
477477
apply/not_implyP; split; first exact: open_nbhs_nbhs.
478478
apply/set0P/negP; rewrite negbK; apply/eqP/disjoints_subset.
479479
have /closure_id -> : closed (~` B); first by exact: open_closedC.
480-
by apply/closure_subset/disjoints_subset; rewrite setIC.
480+
by apply/closureS/disjoints_subset; rewrite setIC.
481481
Qed.
482482

483483
Lemma compact_normal_local (K : set T) : hausdorff_space T -> compact K ->
@@ -516,7 +516,7 @@ case/(_ _ _ _ _ cvP) : cvA => R /= [RA Rmono [U RU] RBx].
516516
have [V /set_nbhsP [W [oW cBW WV] clVU]] := RA _ RU; exists (~` W).
517517
apply/set_nbhsP; exists (~` closure W); split.
518518
- exact/closed_openC/closed_closure.
519-
- by move=> y /(RBx _ RU) + Wy; apply; exact/clVU/(closure_subset WV).
519+
- by move=> y /(RBx _ RU) + Wy; apply; exact/clVU/(closureS WV).
520520
- by apply: subsetC; exact/subset_closure.
521521
have : closed (~` W) by exact: open_closedC.
522522
by rewrite closure_id => <-; exact: subsetCl.

theories/topology_theory/subspace_topology.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ Lemma closure_subspaceW (U : set T) :
257257
U `<=` A -> closure (U : set (subspace A)) = closure (U : set T) `&` A.
258258
Proof.
259259
have /closed_subspaceP := (@closed_closure _ (U : set (subspace A))).
260-
move=> [V] [clV VAclUA] /[dup] /(@closure_subset (subspace _)).
260+
move=> [V] [clV VAclUA] /[dup] /(@closureS (subspace _)).
261261
have /closure_id <- := closed_subspaceT => /setIidr <-; rewrite setIC.
262262
move=> UsubA; rewrite eqEsubset; split.
263263
apply: setSI; rewrite closureE; apply: smallest_sub (@subset_closure _ U).
@@ -628,7 +628,7 @@ have ? : f @` closure (AfE b) `<=` closure (E b).
628628
have /(@image_subset _ _ f) : closure (AfE b) `<=` f @^-1` closure (E b).
629629
have /closure_id -> : closed (f @^-1` closure (E b) : set (subspace A)).
630630
by apply: preimage_closed => //; exact: closed_closure.
631-
apply: closure_subset.
631+
apply: closureS.
632632
have /(@preimage_subset _ _ f) A0cA0 := @subset_closure _ (E b).
633633
by apply: subset_trans A0cA0; apply: subIset; right.
634634
by move/subset_trans; apply; exact: image_preimage_subset.

theories/topology_theory/topology_structure.v

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,12 +840,15 @@ Section closure_lemmas.
840840
Variable T : topologicalType.
841841
Implicit Types E A B U : set T.
842842

843-
Lemma closure_subset A B : A `<=` B -> closure A `<=` closure B.
843+
Lemma closureS A B : A `<=` B -> closure A `<=` closure B.
844844
Proof. by move=> ? ? CAx ?; move/CAx; exact/subsetI_neq0. Qed.
845845

846+
#[deprecated(since="mathcomp-analysis 1.16.0", note="Use `closureS` instead.")]
847+
Definition closure_subset := closureS.
848+
846849
Lemma closureE A : closure A = smallest closed A.
847850
Proof.
848-
rewrite eqEsubset; split=> [x ? B [cB AB]|]; first exact/cB/(closure_subset AB).
851+
rewrite eqEsubset; split=> [x ? B [cB AB]|]; first exact/cB/(closureS AB).
849852
exact: (smallest_sub (@closed_closure _ _) (@subset_closure _ _)).
850853
Qed.
851854

@@ -886,6 +889,13 @@ Qed.
886889
Lemma closure_setC A : closure (~` A) = ~` A°.
887890
Proof. by apply: setC_inj; rewrite -interiorC !setCK. Qed.
888891

892+
Lemma interiorS A B : A `<=` B -> A° `<=` B°.
893+
Proof.
894+
move=> AB x.
895+
rewrite /interior nbhsE => -[] U oxU UA.
896+
exists U => //; move: UA AB; exact: subset_trans.
897+
Qed.
898+
889899
Lemma interior_id A : open A <-> interior A = A.
890900
Proof.
891901
by rewrite -(setCK A) openC interiorC closure_id; split => [ <- | /setC_inj->].

0 commit comments

Comments
 (0)