This repository is a Lean 4 / mathlib formalization of spherical completeness in ultrametric spaces and its consequences in non-Archimedean normed vector spaces.
At a high level, the library provides:
- The core typeclass
SphericallyCompleteSpaceand foundational consequences (including completeness). - Multiple equivalent formulations of spherical completeness in ultrametric settings.
- Structural results for normed spaces: orthogonality, orthogonal complements, quotient stability.
- A non-Archimedean Hahn-Banach theorem with norm-preserving extension.
- A construction and characterization of
SphericalCompletionvia maximal immediate extensions.
The main umbrella import is:
SphericalCompleteness.lean
The central conclusions formalized in this project include:
- Equivalent characterizations of spherical completeness (
SphericalCompleteness/Basic.lean):- Nested closed balls with nonempty intersection (definition form).
- Equivalent formulations with antitone or strictly antitone radii.
- Equivalence with the pairwise-intersection criterion for closed balls (TFAE in ultrametric spaces).
- Spherical completeness implies completeness (
SphericalCompleteness/Defs.lean). - A non-spherical-completeness mechanism (
SphericalCompleteness/Dense.lean):- Separable + ultrametric + spherically dense implies not spherically complete.
- Applied to show that
ℂ_[p]is not spherically complete.
- Non-Archimedean Hahn-Banach (
SphericalCompleteness/NormedVectorSpace/ContinuousLinearMap/HahnBanach.lean):- Continuous linear maps extend from subspaces while preserving operator norm.
- Orthogonal complements and projections (
SphericalCompleteness/NormedVectorSpace/Orthogonal/OrthComp.lean):- Construction of orthogonal projection and complement with
IsCompldecomposition.
- Construction of orthogonal projection and complement with
- Closure properties:
- Finite-dimensional spaces over a spherically complete base are spherically complete (
.../NormedVectorSpace/Basic.lean). - Quotients preserve spherical completeness (
.../NormedVectorSpace/Quotient.lean).
- Finite-dimensional spaces over a spherically complete base are spherically complete (
- Spherical completion theory (
.../NormedVectorSpace/SphericalCompletion/*):- Construction of
SphericalCompletionand its embedding. - Minimality, uniqueness, and universal property.
- Characterizations:
SphericallyCompleteSpace E ↔ MaximallyComplete 𝕜 ESphericallyCompleteSpace E ↔surjectivity ofSphericalCompletionEmbedding.
- Construction of
Spherical completeness is a key notion in non-Archimedean analysis (for example, in
- Reuse a coherent
SphericallyCompleteSpaceAPI across downstream developments. - Access standard nested-ball and pairwise-intersection formulations in one place.
- Use typeclass-friendly closure results and functional-analytic consequences.
- Build and reason about spherical completions with universal properties.
The library is organized in layers.
SphericalCompleteness.lean- Umbrella import of the main library modules.
DependencyExtractor.lean- Utility script to extract dependency graphs of declarations to JSON.
SphericalCompleteness/Defs.lean- Definition of
SphericallyCompleteSpaceand fundamental transfer/instance lemmas.
- Definition of
SphericalCompleteness/Basic.lean- Equivalent formulations (TFAE) and basic constructions (products, finite
Pi, standard instances).
- Equivalent formulations (TFAE) and basic constructions (products, finite
SphericalCompleteness/Dense.lean- Definition of spherical density and non-spherical-completeness criteria.
Complete.lean: completeness vs nested balls with radii tending to zero.DenselyNormedField.lean: persistence of densely normed field structure under completion.PadicAlgCl.lean: separability and density results forPadicAlgCl.PadicComplex.lean: transfer of these structures toℂ_[p].Sequence.lean: sequence/subsequence selection lemmas used in core arguments.Submodule.lean: algebraic submodule lemmas used in decomposition arguments.Ultrametric.lean: ultrametric lemmas and lifted ultrametric instances.
Basic.lean- Spherical completeness for finite-dimensional spaces over spherically complete fields.
Immediate.leanIsImmediate,MaximallyComplete, and immediate-extension machinery.
Quotient.lean- Spherical completeness for quotient spaces.
ContinuousLinearMap/Basic.lean- Spherical completeness of
E →L[𝕜] Fwhen codomain hypotheses hold.
- Spherical completeness of
ContinuousLinearMap/Extension.lean- Technical extension machinery (van Rooij-style supporting lemmas).
ContinuousLinearMap/HahnBanach.lean- Main non-Archimedean Hahn-Banach theorems.
Orthogonal/Defs.lean- Definitions of
IsMOrtho,IsVOrtho,IsOrtho.
- Definitions of
Orthogonal/Basic.lean- Fundamental properties and equivalent formulations of orthogonality.
Orthogonal/IsMOrtho.lean- Existence and decomposition statements involving
IsMOrtho.
- Existence and decomposition statements involving
Orthogonal/OrthComp.lean- Construction of
OrthCompandOrthProj; complement decomposition results.
- Construction of
SphericalCompletion/LpQuotient.lean- Construction of a large spherically complete ambient extension (via an
lp/c₀quotient).
- Construction of a large spherically complete ambient extension (via an
SphericalCompletion/Defs.lean- Definition of
SphericalCompletionvia maximal immediate subspaces (Zorn-style existence).
- Definition of
SphericalCompletion/Basic.lean- Minimality, uniqueness, universal property, and completion criteria.
- Lean toolchain:
leanprover/lean4:v4.36.0(seelean-toolchain). - mathlib version:
v4.36.0(seelakefile.toml), pinned tofc4f59e577feb1a4956671bc04ac18aaaf8cd842inlake-manifest.json. - Recommended editor: VS Code + the Lean 4 extension.
lake update
# Optional but recommended: download precompiled `.olean` caches (mathlib + deps)
lake exe cache get
lake buildIf lake exe cache get fails in your environment (e.g. network restrictions), you can still build from source using just lake build.
To import everything:
import SphericalCompletenessTo import only the core definition of spherical completeness:
import SphericalCompleteness.DefsExample (sketch): once you have [SphericallyCompleteSpace α], you can use the defining intersection principle.
import SphericalCompleteness.Defs
open Metric
variable {α : Type} [PseudoMetricSpace α] [SphericallyCompleteSpace α]
-- Given a nested sequence of closed balls, the intersection is nonempty.
example (ci : ℕ → α) (ri : ℕ → NNReal)
(hanti : Antitone (fun i => closedBall (ci i) (ri i))) :
(⋂ i, closedBall (ci i) (ri i)).Nonempty :=
SphericallyCompleteSpace.isSphericallyComplete (ci := ci) (ri := ri) hanti- If something in this repo fails to compile: open a GitHub issue in this repository.
- For Lean / mathlib questions:
- Lean community Zulip: https://leanprover.zulipchat.com/
- mathlib documentation: https://leanprover-community.github.io/mathlib4_docs/
- Lean 4 manual: https://lean-lang.org/lean4/doc/
Maintainers: Yijun Yuan
Licensed under the Apache License, Version 2.0. See LICENSE.