Nöbeling's theorem
ProvedFamousTheorems.nobeling_theoremNöbeling's theorem. For every compact, Hausdorff, totally disconnected space , the group of locally constant integer-valued functions on is a free abelian group.
Nöbeling proved this in 1968, answering a question of Specker. In particular, the group of bounded functions is free abelian, although the group of all such functions is not. The theorem is also used in condensed mathematics (Clausen–Scholze).
Formalization note. Mathlib's LocallyConstant.freeOfProfinite, stated for objects of the category Profinite and applied here to Profinite.of X. Compact Hausdorff totally disconnected spaces are exactly the profinite spaces. LocallyConstant X ℤ is the group of locally constant functions, and Module.Free ℤ says that it has a basis as a -module.
import Mathlib
namespace FamousTheorems
theorem nobeling_theorem {X : Type*} [TopologicalSpace X] [CompactSpace X] [T2Space X] [TotallyDisconnectedSpace X] :
Module.Free ℤ (LocallyConstant X ℤ) := by sorry
end FamousTheorems