Compact Hausdorff totally disconnected spaces have a clopen basis
ProvedFamousTheorems.profinite_clopen_basis_7aCompact Hausdorff totally disconnected spaces have a clopen basis. In a compact Hausdorff space in which every connected subset has at most one point, the sets that are both open and closed form a basis of the topology.
A space with a basis of clopen sets is called zero-dimensional, and the compact Hausdorff zero-dimensional spaces are the Stone spaces. So the theorem identifies totally disconnected compact Hausdorff spaces with Stone spaces, the objects dual to Boolean algebras under Stone duality. The same spaces are the profinite spaces, the inverse limits of finite discrete spaces, such as Galois groups and the -adic integers.
Formalization note. Mathlib's isTopologicalBasis_isClopen. TotallyDisconnectedSpace X means that every preconnected subset of is a subsingleton.
import Mathlib
namespace FamousTheorems
theorem profinite_clopen_basis_7a (X : Type*) [TopologicalSpace X] [T2Space X] [CompactSpace X] [TotallyDisconnectedSpace X] :
TopologicalSpace.IsTopologicalBasis {s : Set X | IsClopen s} := by sorry
end FamousTheorems