Lean library · module TopologyByExample.Theorems.CountableShrinkingRefinement
A countable refinement on a clopen piece
A countable open cover whose closures refine prescribed open sets gives a locally finite refinement on a clopen subset. Removing the preceding closures provides local finiteness.
This file was written by Codex (OpenAI's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.
theorem clopen_countable_shrinking_refinement
TopologyByExample.clopen_countable_shrinking_refinement
A countable shrinking cover gives a locally finite refinement on a clopen set.
theorem clopen_countable_shrinking_refinement {X : Type*} [TopologicalSpace X]
{C : Set X} (hC : IsClopen C) (A B : ℕ → Set X)
(hA : ∀ n, IsOpen (A n)) (hB : ∀ n, IsOpen (B n))
(hAB : ∀ n, closure (A n) ⊆ B n) (hcover : C ⊆ ⋃ n, A n) :
∃ V : ℕ → Set X, (∀ n, IsOpen (V n)) ∧ (⋃ n, V n = C) ∧
LocallyFinite V ∧ ∀ n, V n ⊆ C ∩ B n
Proof
:= by
classical
let V : ℕ → Set X := fun n ↦ C ∩ (B n \ ⋃ k : Fin n, closure (A k))
have hV : ∀ n, IsOpen (V n) := fun n ↦ hC.isOpen.inter
((hB n).sdiff (isClosed_iUnion_of_finite fun _ ↦ isClosed_closure))
have hVC : ∀ n, V n ⊆ C ∩ B n := fun _ _ hx ↦ ⟨hx.1, hx.2.1⟩
have hcov : ⋃ n, V n = C := by
apply Subset.antisymm
· exact iUnion_subset fun n ↦ (hVC n).trans inter_subset_left
· intro x hx
obtain ⟨m, hm⟩ := mem_iUnion.mp (hcover hx)
have hex : ∃ n, x ∈ closure (A n) := ⟨m, subset_closure hm⟩
let n := Nat.find hex
refine mem_iUnion.mpr ⟨n, hx, hAB n (Nat.find_spec hex), ?_⟩
rintro hprev
obtain ⟨k, hk⟩ := mem_iUnion.mp hprev
exact Nat.find_min hex k.isLt hk
refine ⟨V, hV, hcov, ?_, hVC⟩
intro x
by_cases hx : x ∈ C
· obtain ⟨m, hm⟩ := mem_iUnion.mp (hcover hx)
refine ⟨A m, (hA m).mem_nhds hm, (finite_Iic m).subset ?_⟩
rintro n ⟨y, hyV, hyA⟩
change n ≤ m
by_contra hn
exact hyV.2.2 (mem_iUnion.mpr ⟨⟨m, Nat.lt_of_not_ge hn⟩, subset_closure hyA⟩)
· refine ⟨Cᶜ, hC.isClosed.isOpen_compl.mem_nhds hx, (finite_empty).subset ?_⟩
rintro n ⟨y, hyV, hyC⟩
exact (hyC hyV.1).elim
On this site: Theorem: A countable shrinking cover on a clopen subset
theorem locallyFinite_of_disjoint_pieces
TopologyByExample.locallyFinite_of_disjoint_pieces
Refinements on pairwise disjoint clopen pieces combine into a locally finite family.
theorem locallyFinite_of_disjoint_pieces {X ι : Type*} [TopologicalSpace X]
(C : ι → Set X) (hC : ∀ a, IsOpen (C a)) (hcover : ⋃ a, C a = univ)
(hd : Pairwise fun a b ↦ Disjoint (C a) (C b)) (V : ι → ℕ → Set X)
(hV : ∀ a, LocallyFinite (V a)) (hVC : ∀ a n, V a n ⊆ C a) :
LocallyFinite (fun p : ι × ℕ ↦ V p.1 p.2)
Proof
:= by
intro x
obtain ⟨a, ha⟩ := mem_iUnion.mp (hcover.symm ▸ mem_univ x)
obtain ⟨T, hT, hf⟩ := hV a x
refine ⟨C a ∩ T, Filter.inter_mem ((hC a).mem_nhds ha) hT,
(hf.image (fun n ↦ (a, n))).subset ?_⟩
rintro ⟨b, n⟩ ⟨y, hyV, hyC, hyT⟩
have hba : b = a := by
by_contra hne
exact disjoint_left.mp (hd hne) (hVC b n hyV) hyC
subst b
exact ⟨n, ⟨y, hyV, hyT⟩, rfl⟩