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 PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Lifetime.CanonicalGeometry.StrongNeckRestriction |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.InitialMetric.PolarCoordinates |
| 3 | |
| 4 | /-! |
| 5 | # Ambient extensions of actual neck coordinates |
| 6 | |
| 7 | Radial normalization retracts a neighborhood of the unit sphere onto |
| 8 | the sphere. Composing an actual neck coordinate with this retraction |
| 9 | gives a smooth ambient map and preserves the literal chosen-chart |
| 10 | composition. This supplies fixed target charts for the finite-atlas |
| 11 | step of Morgan-Tian Theorem 12.28, pp. 323-324. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.EpsilonNeck |
| 22 | |
| 23 | open M34 |
| 24 | |
| 25 | variable {M : Type u} [TopologicalSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 27 | {g : RiemannianMetric 3 M} (N : EpsilonNeck g) |
| 28 | |
| 29 | local notation "E₂" => EuclideanSpace ℝ (Fin 2) |
| 30 | local notation "E₃" => EuclideanSpace ℝ (Fin 3) |
| 31 | |
| 32 | /-- The actual neck map extended off the sphere by the existing radial |
| 33 | retraction. The arbitrary value at the origin is not used geometrically. -/ |
| 34 | noncomputable def ambientCoordinate (z : E₃ × ℝ) : M := |
| 35 | N.coordinate_map (capDirection z.1, z.2) |
| 36 | |
| 37 | /-- The ambient extension recovers the original map exactly on the |
| 38 | unit sphere at every total axial value. -/ |
| 39 | theorem ambientCoordinate_coe (q : UnitTwoSphere) (s : ℝ) : |
| 40 | N.ambientCoordinate ((q : E₃), s) = N.coordinate_map (q, s) := by |
| 41 | have hq : capDirection (q : E₃) = q := by |
| 42 | simpa only [one_smul] using capDirection_smul zero_lt_one q |
| 43 | exact congrArg (fun p => N.coordinate_map (p, s)) hq |
| 44 | |
| 45 | /-- The radial extension is smooth at every nonzero ambient point |
| 46 | whose axial coordinate belongs to the old actual neck domain. -/ |
| 47 | theorem ambientCoordinate_contMDiffAt {z : E₃ × ℝ} (hz : z.1 ≠ 0) |
| 48 | (hs : z.2 ∈ Ioo (-N.epsilon⁻¹) N.epsilon⁻¹) : |
| 49 | ContMDiffAt 𝓘(ℝ, E₃ × ℝ) (𝓡 3) ∞ N.ambientCoordinate z := by |
| 50 | have hn : ContMDiffAt ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ N.coordinate_map |
| 51 | (capDirection z.1, z.2) := N.coordinate_map_smooth.contMDiffAt |
| 52 | ((isOpen_univ.prod isOpen_Ioo).mem_nhds ⟨mem_univ _, hs⟩) |
| 53 | have hf : ContMDiffAt 𝓘(ℝ, E₃ × ℝ) (𝓡 3) ∞ Prod.fst z := |
| 54 | (contDiffAt_fst (𝕜 := ℝ) (n := ∞)).contMDiffAt |
| 55 | have ht : ContMDiffAt 𝓘(ℝ, E₃ × ℝ) 𝓘(ℝ, ℝ) ∞ Prod.snd z := |
| 56 | (contDiffAt_snd (𝕜 := ℝ) (n := ∞)).contMDiffAt |
| 57 | exact hn.comp z |
| 58 | (((capDirection_contMDiffAt hz).comp z hf).prodMk ht) |
| 59 | |
| 60 | /-- Its expression in any fixed target chart is an ordinary smooth germ |
| 61 | where the literal image is contained in that chart's source. -/ |
| 62 | theorem chart_ambientCoordinate_contDiffAt (q : M) {z : E₃ × ℝ} (hz : z.1 ≠ 0) |
| 63 | (hs : z.2 ∈ Ioo (-N.epsilon⁻¹) N.epsilon⁻¹) |
| 64 | (hq : N.ambientCoordinate z ∈ (extChartAt (𝓡 3) q).source) : |
| 65 | ContDiffAt ℝ ∞ ((extChartAt (𝓡 3) q) ∘ N.ambientCoordinate) z := by |
| 66 | apply contMDiffAt_iff_contDiffAt.mp |
| 67 | exact ((contMDiffOn_extChartAt (I := 𝓡 3) (x := q)).contMDiffAt |
| 68 | (by simpa only [extChartAt_source] using |
| 69 | (isOpen_extChartAt_source q).mem_nhds hq)).comp z |
| 70 | (N.ambientCoordinate_contMDiffAt hz hs) |
| 71 | |
| 72 | /-- The chosen sphere-chart composition equals the ambient extension |
| 73 | after the included chosen chart, with equality on the entire parameter |
| 74 | space and hence equality of every ordinary derivative germ. -/ |
| 75 | theorem ambientCoordinate_sphereChart (q : UnitTwoSphere) : |
| 76 | (fun p : E₂ × ℝ => N.ambientCoordinate |
| 77 | (((chartAt E₂ q).symm p.1 : E₃), p.2)) = |
| 78 | (fun p : E₂ × ℝ => N.coordinate_map ((chartAt E₂ q).symm p.1, p.2)) := by |
| 79 | funext p |
| 80 | exact N.ambientCoordinate_coe _ _ |
| 81 | |
| 82 | end PoincareMT.EpsilonNeck |