English
If 𝒜 is countable, then generateSetAlgebra 𝒜 is countable.
Русский
Если 𝒜 счётна, то generateSetAlgebra 𝒜 счётна.
LaTeX
$$$\\mathcal{A}.Countable \\Rightarrow (\\operatorname{generateSetAlgebra} \\mathcal{A}).Countable$$$
Lean4
/-- If a family of sets is countable then so is the algebra of sets generated by it. -/
theorem countable_generateSetAlgebra (h : 𝒜.Countable) : (generateSetAlgebra 𝒜).Countable :=
by
let ℬ := {s | s ∈ 𝒜} ∪ {s | sᶜ ∈ 𝒜}
have count_ℬ : ℬ.Countable := by
apply h.union
have : compl '' 𝒜 = {s | sᶜ ∈ 𝒜} := by
ext s
simpa using ⟨fun ⟨x, x_mem, hx⟩ ↦ by simp [← hx, x_mem], fun hs ↦ ⟨sᶜ, hs, by simp⟩⟩
exact this ▸ h.image compl
let f : Set (Set (Set α)) → Set α := fun A ↦ ⋃ a ∈ A, ⋂ t ∈ a, t
let 𝒞 := {a | a.Finite ∧ a ⊆ ℬ}
have count_𝒞 : 𝒞.Countable := countable_setOf_finite_subset (countable_coe_iff.1 count_ℬ)
let 𝒟 := {A | A.Finite ∧ A ⊆ 𝒞}
have count_𝒟 : 𝒟.Countable := countable_setOf_finite_subset (countable_coe_iff.1 count_𝒞)
have : generateSetAlgebra 𝒜 ⊆ f '' 𝒟 := by
intro s s_mem
rcases mem_generateSetAlgebra_elim s_mem with ⟨A, A_fin, mem_A, hA, rfl⟩
exact ⟨A, ⟨A_fin, fun a ha ↦ ⟨mem_A a ha, hA a ha⟩⟩, rfl⟩
exact (count_𝒟.image f).mono this