Formalization of non-Archimedean functional analysis 1: spherically complete spaces
Spherical completeness, where every decreasing sequence of closed balls has nonempty intersection, is central to non-Archimedean functional analysis. Mathlib did not cover it. Key results such as the ultrametric Hahn–Banach theorem depend on it.
Defines a SphericallyCompleteSpace class in Lean 4.31.0 over Mathlib and proves equivalent characterizations, basic properties and examples (R, C, Q_p). It also proves non-examples, including the non-spherical completeness of C_p, via separable ultrametric spaces with dense metric. On this basis it formalizes Birkhoff–James orthogonality, a Hahn–Banach pair class with instances for spherically complete D or F, and spherical completions in van Rooij's sense.
The formalization proves the equivalence theorems, the ultrametric Hahn–Banach extension theorem, and Fleischer's existence and uniqueness of spherical completions. It also found that a stated result of Schikhof is false as stated: the single-point space is a counterexample.
