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.Curvature.Calculus |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.Splitting.SurfaceLine |
| 3 | import PoincareLib.Geometry.RicciFlow.Lift |
| 4 | |
| 5 | /-! |
| 6 | # The surface line obstruction for small limits |
| 7 | |
| 8 | Apply the actual Busemann surface rigidity theorem after lifting the small |
| 9 | flow. The original source-universe curvature theory suffices to construct |
| 10 | the tensor calculus on that lift. Scalar and full curvature descend by |
| 11 | their naturality identities. This supplies the dimension-two obstruction |
| 12 | for the same small ancient limit used in splitting at infinity. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set |
| 20 | open scoped Manifold ContDiff |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.RicciFlow |
| 25 | |
| 26 | /-- A line makes the actual small complete nonnegative surface slice flat, |
| 27 | using the curvature theory supplied in the original source universe. -/ |
| 28 | theorem small_surface_curvature_eq_zero_of_minimizing_line |
| 29 | {M : Type} [TopologicalSpace M] [T3Space M] [ConnectedSpace M] |
| 30 | [ChartedSpace (EuclideanSpace ℝ (Fin 2)) M] [IsManifold (𝓡 2) ∞ M] |
| 31 | {J : Set ℝ} (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow 2 M J) |
| 32 | (t : ℝ) (hcomplete : MetricComplete (F.metric t)) |
| 33 | (hoperator : ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 34 | (γ : ℝ → M) |
| 35 | (hγ : ∀ s r : ℝ, (F.metric t).edist (γ s) (γ r) = ENNReal.ofReal |s - r|) : |
| 36 | (∀ x, (F.connection t).scalarCurvature x = 0) ∧ |
| 37 | ∀ x, (F.connection t).curvatureTensorNorm x = 0 := by |
| 38 | let : ChartedSpace (EuclideanSpace ℝ (Fin 2)) (ULift.{u} M) := |
| 39 | Poincare.Manifold.uliftChartedSpace _ M |
| 40 | let : IsManifold (𝓡 2) ∞ (ULift.{u} M) := |
| 41 | Poincare.Manifold.uliftIsManifold (𝓡 2) M |
| 42 | let : ConnectedSpace (ULift.{u} M) := |
| 43 | (Homeomorph.ulift.connectedSpace_iff).mpr inferInstance |
| 44 | let H : RicciFlow 2 (ULift.{u} M) J := F.ulift |
| 45 | have hD := hC.tensor_calculus 2 (ULift.{u} M) (H.metric t) (H.connection t) |
| 46 | have hRic : (H.connection t).NonnegativeRicciCurvature := by |
| 47 | intro x v |
| 48 | exact ((H.connection t).ricci_bounds_of_nonnegative_curvatureOperator hD x |
| 49 | ((F.ulift_nonnegativeCurvatureOperator_iff t x).mpr (hoperator x.down)) v).1 |
| 50 | have hflat := (H.metric t).surface_curvature_eq_zero_of_minimizing_line |
| 51 | (H.connection t) hD ((F.ulift_metricComplete_iff t).mpr hcomplete) hRic |
| 52 | (fun s => ULift.up.{u} (γ s)) (fun s r => by |
| 53 | simpa only [H, F.ulift_edist] using hγ s r) |
| 54 | constructor |
| 55 | · intro x |
| 56 | simpa only [H, F.ulift_scalarCurvature] using hflat.1 (ULift.up.{u} x) |
| 57 | · intro x |
| 58 | simpa only [H, F.ulift_curvatureTensorNorm] using hflat.2.2 (ULift.up.{u} x) |
| 59 | |
| 60 | /-- The nonflat small surface produced by ancient compactness cannot contain |
| 61 | a minimizing line. No curvature theory in the small universe is required. -/ |
| 62 | theorem not_minimizing_line_of_nonflat_small_surface |
| 63 | {M : Type} [TopologicalSpace M] [T3Space M] [ConnectedSpace M] |
| 64 | [ChartedSpace (EuclideanSpace ℝ (Fin 2)) M] [IsManifold (𝓡 2) ∞ M] |
| 65 | {J : Set ℝ} (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow 2 M J) |
| 66 | (t : ℝ) (hcomplete : MetricComplete (F.metric t)) |
| 67 | (hoperator : ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 68 | (hnonflat : ∃ p, 0 < (F.connection t).scalarCurvature p) (γ : ℝ → M) : |
| 69 | ¬ ∀ s r : ℝ, (F.metric t).edist (γ s) (γ r) = ENNReal.ofReal |s - r| := by |
| 70 | intro hγ |
| 71 | obtain ⟨p, hp⟩ := hnonflat |
| 72 | have hz := (F.small_surface_curvature_eq_zero_of_minimizing_line |
| 73 | hC t hcomplete hoperator γ hγ).1 p |
| 74 | exact (ne_of_gt hp) hz |
| 75 | |
| 76 | end PoincareMT.RicciFlow |