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 | |
| 3 | /-! # Convergence of operators from their basis values -/ |
| 4 | |
| 5 | set_option autoImplicit false |
| 6 | open Filter |
| 7 | open scoped Topology |
| 8 | |
| 9 | namespace Poincare.Analysis |
| 10 | |
| 11 | /-- For finite-dimensional domain and codomain, convergence on a basis gives |
| 12 | operator-norm convergence. -/ |
| 13 | theorem tendsto_continuousLinearMap_of_basis |
| 14 | {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 15 | [NormedAddCommGroup F] [NormedSpace ℝ F] [FiniteDimensional ℝ F] |
| 16 | {ι : Type*} [Fintype ι] (b : Module.Basis ι ℝ E) |
| 17 | {α : Type*} {l : Filter α} {f : α → E →L[ℝ] F} {g : E →L[ℝ] F} |
| 18 | (h : ∀ i, Tendsto (fun a => f a (b i)) l (𝓝 (g (b i)))) : |
| 19 | Tendsto f l (𝓝 g) := by |
| 20 | let : FiniteDimensional ℝ E := b.finiteDimensional_of_finite |
| 21 | let ev : (E →L[ℝ] F) →ₗ[ℝ] (ι → F) := |
| 22 | { toFun := fun A i => A (b i) |
| 23 | map_add' := fun _ _ => rfl |
| 24 | map_smul' := fun _ _ => rfl } |
| 25 | have hinj : Function.Injective ev := by |
| 26 | intro A B hAB |
| 27 | apply ContinuousLinearMap.coe_injective |
| 28 | exact b.ext (fun i => congrFun hAB i) |
| 29 | have he := ev.isClosedEmbedding_of_injective (LinearMap.ker_eq_bot.mpr hinj) |
| 30 | apply he.isInducing.tendsto_nhds_iff.mpr |
| 31 | exact tendsto_pi_nhds.mpr h |
| 32 | |
| 33 | end Poincare.Analysis |