Poincaré conjecture: the Lean proof, cleaned up together
The 2026 Lean proof of the Poincaré conjecture after Morgan and Tian, 3 million lines, cleaned up together: smaller, faster to build, more readable, the theorems unchanged

| 1 | import Mathlib.Analysis.Normed.Module.FiniteDimension |
| 2 | import Mathlib.Analysis.Normed.Module.Multilinear.Basic |
| 3 | import Mathlib.LinearAlgebra.Multilinear.Basis |
| 4 | |
| 5 | /-! |
| 6 | # Operator convergence from multilinear basis values |
| 7 | |
| 8 | The finite basis evaluation map is a linear embedding, so its pointwise |
| 9 | convergence detects operator-norm convergence. This includes empty slot |
| 10 | sets and zero-dimensional spaces. Used for the actual metric jets in |
| 11 | Morgan-Tian Theorem 12.28, pp. 323-324. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Filter |
| 17 | open scoped Topology |
| 18 | |
| 19 | /-- In finite dimension, convergence at every tuple of basis vectors |
| 20 | implies convergence in the multilinear operator norm (Theorem 12.28). -/ |
| 21 | theorem ContinuousMultilinearMap.tendsto_of_basis |
| 22 | {𝕜 ι : Type*} [NontriviallyNormedField 𝕜] [CompleteSpace 𝕜] [Finite ι] |
| 23 | {E : ι → Type*} [∀ i, SeminormedAddCommGroup (E i)] [∀ i, NormedSpace 𝕜 (E i)] |
| 24 | {F : Type*} [NormedAddCommGroup F] [NormedSpace 𝕜 F] [FiniteDimensional 𝕜 F] |
| 25 | {κ : ι → Type*} [∀ i, Finite (κ i)] (b : ∀ i, Module.Basis (κ i) 𝕜 (E i)) |
| 26 | {α : Type*} {l : Filter α} {f : α → ContinuousMultilinearMap 𝕜 E F} |
| 27 | {g : ContinuousMultilinearMap 𝕜 E F} |
| 28 | (h : ∀ v : (i : ι) → κ i, |
| 29 | Tendsto (fun a => f a (fun i => b i (v i))) l (𝓝 (g (fun i => b i (v i))))) : |
| 30 | Tendsto f l (𝓝 g) := by |
| 31 | let ev : ContinuousMultilinearMap 𝕜 E F →ₗ[𝕜] (((i : ι) → κ i) → F) := |
| 32 | { toFun := fun A v => A (fun i => b i (v i)) |
| 33 | map_add' := fun _ _ => rfl |
| 34 | map_smul' := fun _ _ => rfl } |
| 35 | have hinj : Function.Injective ev := by |
| 36 | intro A B hAB |
| 37 | apply ContinuousMultilinearMap.toMultilinearMap_injective |
| 38 | exact Module.Basis.ext_multilinear b (fun v => congrFun hAB v) |
| 39 | let : FiniteDimensional 𝕜 (ContinuousMultilinearMap 𝕜 E F) := |
| 40 | FiniteDimensional.of_injective ev hinj |
| 41 | have he := ev.isClosedEmbedding_of_injective (LinearMap.ker_eq_bot.mpr hinj) |
| 42 | apply he.isInducing.tendsto_nhds_iff.mpr |
| 43 | exact tendsto_pi_nhds.mpr h |