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.Geometry.Manifold.BumpFunction |
| 2 | import Mathlib.Geometry.Manifold.VectorBundle.ContMDiffSection |
| 3 | import Mathlib.Geometry.Manifold.VectorBundle.MDifferentiable |
| 4 | |
| 5 | /-! |
| 6 | # A smooth section through a prescribed vector |
| 7 | |
| 8 | The endpoint testing argument for Morgan-Tian Lemma 6.8, pp. 108-109. |
| 9 | A smooth bump globalizes the standard local bundle extension. This |
| 10 | adapts the cutoff pattern in M07 connection regularity to general |
| 11 | smooth vector bundles over finite-dimensional manifolds with corners. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | namespace FiberBundle |
| 20 | |
| 21 | variable {E H M F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 22 | [FiniteDimensional ℝ E] [TopologicalSpace H] {I : ModelWithCorners ℝ E H} |
| 23 | [TopologicalSpace M] [ChartedSpace H M] [IsManifold I ∞ M] [T2Space M] |
| 24 | [NormedAddCommGroup F] [NormedSpace ℝ F] {V : M → Type*} |
| 25 | [∀ x, AddCommGroup (V x)] [∀ x, Module ℝ (V x)] [∀ x, TopologicalSpace (V x)] |
| 26 | [TopologicalSpace (Bundle.TotalSpace F V)] [FiberBundle F V] [VectorBundle ℝ F V] |
| 27 | [ContMDiffVectorBundle ∞ F V I] |
| 28 | |
| 29 | /-- Every vector in a smooth bundle lies on a globally smooth section, |
| 30 | using the cutoff argument for endpoint tests in Lemma 6.8, pp. 108-109. -/ |
| 31 | theorem exists_contMDiff_section_through {x : M} (v : V x) : |
| 32 | ∃ W : (q : M) → V q, |
| 33 | ContMDiff I (I.prod 𝓘(ℝ, F)) ∞ |
| 34 | (fun q => Bundle.TotalSpace.mk' F q (W q)) ∧ W x = v := by |
| 35 | obtain ⟨U, hU, hZ⟩ := exists_contMDiffOn_extend (I := I) (F := F) (k := ∞) v |
| 36 | obtain ⟨O, hOU, hO, hxO⟩ := mem_nhds_iff.mp hU |
| 37 | obtain ⟨f, _, hf⟩ := (SmoothBumpFunction.nhds_basis_tsupport (I := I) x).mem_iff.mp |
| 38 | (hO.mem_nhds hxO) |
| 39 | have hW := f.contMDiff.contMDiffOn.smul_section_of_tsupport hO hf (hZ.mono hOU) |
| 40 | refine ⟨fun q => f q • extend F v q, hW, ?_⟩ |
| 41 | change f x • extend F v x = v |
| 42 | rw [f.eventuallyEq_one.eq_of_nhds, Pi.one_apply, one_smul, extend_apply_self] |
| 43 | |
| 44 | end FiberBundle |