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.CanonicalInduction.Terminal.Germs.TerminalGermsUniverseMetric |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Terminal.Germs.TerminalGermsOpenReadout |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Terminal.Germs.TerminalGermsExhaustionOperator |
| 4 | import PoincareLib.Geometry.RicciFlow.Pullback |
| 5 | import PoincareLib.Geometry.Riemannian.Connection.Construction |
| 6 | |
| 7 | /-! |
| 8 | # The actual finite terminal germs in the required universe |
| 9 | |
| 10 | The literal down map pulls back the existing open-domain flows. Their |
| 11 | individual included lifetimes, terminal metric, and curvature signs are |
| 12 | retained. MT Proposition 5.14; terminal-regular-universe-application.md, J1. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set TopologicalSpace |
| 19 | open scoped Manifold ContDiff |
| 20 | |
| 21 | universe u v |
| 22 | |
| 23 | namespace PoincareMT.M47 |
| 24 | |
| 25 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 26 | |
| 27 | /-- Lift the actual finite germs through down, with the same lifetime |
| 28 | at every original exhaustion index and constructed connections. -/ |
| 29 | theorem terminalSource_regular_lifted_germs |
| 30 | {X : Type v} [TopologicalSpace X] [ChartedSpace E X] |
| 31 | [IsManifold (𝓡 3) ∞ X] [T3Space X] |
| 32 | (g : RiemannianMetric 3 X) (hg : MetricComplete g) |
| 33 | {ι : Type*} (U : ι → Opens X) [∀ i, ConnectedSpace (U i)] |
| 34 | (tau : ι → ℝ) (htau : ∀ i, 0 < tau i) |
| 35 | (F : ∀ i, RicciFlow 3 (U i) (Icc (-tau i) 0)) |
| 36 | (hmetric : ∀ i (x : U i) (v w : TangentSpace (𝓡 3) x), |
| 37 | ((F i).metric 0).inner x v w = g.inner x.val v w) |
| 38 | (hoperator : ∀ i t, t ∈ Icc (-tau i) 0 → ∀ x, |
| 39 | ((F i).connection t).NonnegativeCurvatureOperator x) |
| 40 | (htriple : ∀ x y z : X, ∃ i, x ∈ U i ∧ y ∈ U i ∧ z ∈ U i) : |
| 41 | letI : ChartedSpace E (ULift.{u} X) := Poincare.Manifold.uliftChartedSpace E X |
| 42 | letI : IsManifold (𝓡 3) ∞ (ULift.{u} X) := Poincare.Manifold.uliftIsManifold (𝓡 3) X |
| 43 | let d := Poincare.Manifold.uliftDiffeomorph (𝓡 3) X |
| 44 | let gL := g.pullbackOfLocalDiffeomorph d d.isLocalDiffeomorph |
| 45 | let UL := fun i => terminalGermsOpenChartSource d d.isLocalDiffeomorph (U i) |
| 46 | MetricComplete gL ∧ (∀ i, ConnectedSpace (UL i)) ∧ |
| 47 | ∃ FL : ∀ i, RicciFlow 3 (UL i) (Icc (-tau i) 0), |
| 48 | (∀ i (x : UL i) (v w : TangentSpace (𝓡 3) x), |
| 49 | ((FL i).metric 0).inner x v w = gL.inner x.val v w) ∧ |
| 50 | (∀ i t, t ∈ Icc (-tau i) 0 → ∀ x, |
| 51 | ((FL i).connection t).NonnegativeCurvatureOperator x) ∧ |
| 52 | (∀ x y z : ULift.{u} X, ∃ i, x ∈ UL i ∧ y ∈ UL i ∧ z ∈ UL i) ∧ |
| 53 | ∀ DL : LeviCivitaData gL, ∀ x, DL.NonnegativeCurvatureOperator x := by |
| 54 | let : ChartedSpace E (ULift.{u} X) := Poincare.Manifold.uliftChartedSpace E X |
| 55 | let : IsManifold (𝓡 3) ∞ (ULift.{u} X) := Poincare.Manifold.uliftIsManifold (𝓡 3) X |
| 56 | let d := Poincare.Manifold.uliftDiffeomorph (𝓡 3) X |
| 57 | let gL := g.pullbackOfLocalDiffeomorph d d.isLocalDiffeomorph |
| 58 | let UL := fun i => terminalGermsOpenChartSource d d.isLocalDiffeomorph (U i) |
| 59 | let q := fun i => terminalGermsOpenChartMap d d.isLocalDiffeomorph (U i) |
| 60 | have hq (i : ι) : IsLocalDiffeomorph (𝓡 3) (𝓡 3) ∞ (q i) := |
| 61 | terminalGerms_openChartMap_localDiffeomorph d d.isLocalDiffeomorph (U i) |
| 62 | let FL := fun i => (F i).pullbackWithConnection (q i) (hq i) |
| 63 | (fun t => ((F i).metric t).pullbackOfLocalDiffeomorph (q i) (hq i) |>.leviCivitaData) |
| 64 | have hconnected (i : ι) : ConnectedSpace (UL i) := by |
| 65 | apply isConnected_iff_connectedSpace.mp |
| 66 | exact d.toHomeomorph.isConnected_preimage.mpr |
| 67 | (isConnected_iff_connectedSpace.mpr inferInstance) |
| 68 | have hm (i : ι) (x : UL i) (v w : TangentSpace (𝓡 3) x) : |
| 69 | ((FL i).metric 0).inner x v w = gL.inner x.val v w := by |
| 70 | change ((F i).metric 0).inner (q i x) |
| 71 | (mfderiv (𝓡 3) (𝓡 3) (q i) x v) |
| 72 | (mfderiv (𝓡 3) (𝓡 3) (q i) x w) = _ |
| 73 | rw [hmetric, terminalGerms_openChartMap_mfderiv] |
| 74 | rfl |
| 75 | have hop (i : ι) (t : ℝ) (ht : t ∈ Icc (-tau i) 0) (x : UL i) : |
| 76 | ((FL i).connection t).NonnegativeCurvatureOperator x := by |
| 77 | apply (((FL i).connection t).nonnegativeCurvatureOperator_iff_of_local_isometry |
| 78 | ((F i).connection t) (f := q i) isOpen_univ (hq i).contMDiff.contMDiffOn |
| 79 | (fun _ _ _ _ => rfl) (mem_univ x)).mpr |
| 80 | exact hoperator i t ht (q i x) |
| 81 | have htr (x y z : ULift.{u} X) : ∃ i, x ∈ UL i ∧ y ∈ UL i ∧ z ∈ UL i := |
| 82 | htriple x.down y.down z.down |
| 83 | refine ⟨(terminalGerms_lifted_complete_metric g hg).1, hconnected, FL, hm, hop, htr, ?_⟩ |
| 84 | intro DL |
| 85 | apply terminalGerms_ambient_operator_of_exhaustion DL UL tau htau FL hm hop |
| 86 | intro x |
| 87 | obtain ⟨i, hi, _, _⟩ := htr x x x |
| 88 | exact ⟨i, hi⟩ |
| 89 | |
| 90 | /-- The actual global down isometry preserves the scalar anchor and |
| 91 | curvature norm for any chosen Levi-Civita data of the lifted metric. -/ |
| 92 | theorem terminalSource_regular_lifted_curvature |
| 93 | {X : Type v} [TopologicalSpace X] [ChartedSpace E X] |
| 94 | [IsManifold (𝓡 3) ∞ X] {g : RiemannianMetric 3 X} (D : LeviCivitaData g) : |
| 95 | letI : ChartedSpace E (ULift.{u} X) := Poincare.Manifold.uliftChartedSpace E X |
| 96 | letI : IsManifold (𝓡 3) ∞ (ULift.{u} X) := Poincare.Manifold.uliftIsManifold (𝓡 3) X |
| 97 | let d := Poincare.Manifold.uliftDiffeomorph (𝓡 3) X |
| 98 | let gL := g.pullbackOfLocalDiffeomorph d d.isLocalDiffeomorph |
| 99 | ∀ DL : LeviCivitaData gL, ∀ x : ULift.{u} X, |
| 100 | DL.scalarCurvature x = D.scalarCurvature x.down ∧ |
| 101 | DL.curvatureTensorNorm x = D.curvatureTensorNorm x.down := by |
| 102 | let : ChartedSpace E (ULift.{u} X) := Poincare.Manifold.uliftChartedSpace E X |
| 103 | let : IsManifold (𝓡 3) ∞ (ULift.{u} X) := Poincare.Manifold.uliftIsManifold (𝓡 3) X |
| 104 | let d := Poincare.Manifold.uliftDiffeomorph (𝓡 3) X |
| 105 | dsimp only |
| 106 | intro DL x |
| 107 | exact ⟨DL.scalarCurvature_eq_of_local_isometry D (f := d) isOpen_univ |
| 108 | d.contMDiff.contMDiffOn (fun _ _ _ _ => rfl) (mem_univ x), |
| 109 | DL.curvatureTensorNorm_eq_of_local_isometry D (f := d) isOpen_univ |
| 110 | d.contMDiff.contMDiffOn (fun _ _ _ _ => rfl) (mem_univ x)⟩ |
| 111 | |
| 112 | end PoincareMT.M47 |