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.Riemannian.Splitting.Busemann.Main |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.Splitting.SurfaceFlatness |
| 3 | |
| 4 | /-! |
| 5 | # The minimizing-line obstruction on a nonflat ancient surface |
| 6 | |
| 7 | A minimizing line on a complete connected surface of nonnegative Ricci |
| 8 | curvature constructs a smooth parallel unit Busemann gradient. Curvature |
| 9 | annihilates that gradient, and the surface curvature identity forces the |
| 10 | entire curvature tensor to vanish. Bounded ancient scalar positivity then |
| 11 | excludes a minimizing line from every slice of a nonflat ancient surface. |
| 12 | |
| 13 | This closes the geometric surface base case of Kleiner--Lott, |
| 14 | Proposition 41.13, p. 2678 (corrected 2013). The only tensor-calculus input |
| 15 | is the explicit reviewed connection calculus; the ancient consequence uses |
| 16 | the bounded exhaustion/block Harnack route through `AncientVolume.Positivity`. |
| 17 | No parallel field, product splitting, or flatness conclusion is assumed. |
| 18 | -/ |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | |
| 23 | open Set |
| 24 | open scoped Manifold ContDiff Bundle ENNReal |
| 25 | |
| 26 | universe u |
| 27 | |
| 28 | namespace PoincareMT.RiemannianMetric |
| 29 | |
| 30 | /-- A minimizing line forces a complete connected nonnegatively Ricci-curved |
| 31 | surface to be flat. The parallel unit direction is constructed by Busemann theory. -/ |
| 32 | theorem surface_curvature_eq_zero_of_minimizing_line |
| 33 | {S : Type u} [TopologicalSpace S] [T3Space S] [ConnectedSpace S] |
| 34 | [ChartedSpace (EuclideanSpace ℝ (Fin 2)) S] [IsManifold (𝓡 2) ∞ S] |
| 35 | (g : RiemannianMetric 2 S) (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) |
| 36 | (hcomplete : MetricComplete g) (hRic : D.NonnegativeRicciCurvature) |
| 37 | (γ : ℝ → S) |
| 38 | (hγ : ∀ s t : ℝ, g.edist (γ s) (γ t) = ENNReal.ofReal |s - t|) : |
| 39 | (∀ x, D.scalarCurvature x = 0) ∧ |
| 40 | (∀ x, ∀ a b c d : TangentSpace (𝓡 2) x, D.curvatureTensor x a b c d = 0) ∧ |
| 41 | ∀ x, D.curvatureTensorNorm x = 0 := by |
| 42 | obtain ⟨hsmooth, hunit, hparallel, _, _⟩ := |
| 43 | g.busemann_parallel_unit_gradient D hcomplete hRic hγ |
| 44 | let V := D.gradient (g.busemann γ) |
| 45 | have hnonzero (x : S) : V x ≠ 0 := by |
| 46 | intro hzero |
| 47 | have hu := hunit x |
| 48 | change g.inner x (V x) (V x) = 1 at hu |
| 49 | rw [hzero, map_zero] at hu |
| 50 | exact zero_ne_one hu |
| 51 | have hnull := D.curvature_eq_zero_of_constant_covariantDerivative hD V |
| 52 | (D.contMDiff_gradient hsmooth) 0 (by simpa only [zero_smul] using hparallel) |
| 53 | have htensor (x : S) (a b c d : TangentSpace (𝓡 2) x) : |
| 54 | D.curvatureTensor x a b c d = 0 := |
| 55 | D.curvatureTensor_eq_zero_of_curvature_null_vector x (V x) (hnonzero x) (hnull x) a b c d |
| 56 | refine ⟨fun x => D.scalarCurvature_eq_zero_of_curvature_null_vector |
| 57 | x (V x) (hnonzero x) (hnull x), htensor, ?_⟩ |
| 58 | intro x |
| 59 | simp only [LeviCivitaData.curvatureTensorNorm, htensor, zero_pow (by decide : 2 ≠ 0), |
| 60 | Finset.sum_const_zero, Real.sqrt_zero] |
| 61 | |
| 62 | end PoincareMT.RiemannianMetric |
| 63 | |
| 64 | namespace PoincareMT.RicciFlow |
| 65 | |
| 66 | /-- No time slice of a complete nonflat bounded ancient surface with |
| 67 | nonnegative curvature operator can contain an intrinsic minimizing line. -/ |
| 68 | theorem not_minimizing_line_of_bounded_ancient_surface |
| 69 | {S : Type u} [TopologicalSpace S] [T3Space S] |
| 70 | [SecondCountableTopology S] [ConnectedSpace S] [NoncompactSpace S] |
| 71 | [ChartedSpace (EuclideanSpace ℝ (Fin 2)) S] [IsManifold (𝓡 2) ∞ S] |
| 72 | (hC : RicciFlowCurvatureTheory.{u}) (F : RicciFlow 2 S (Iic 0)) |
| 73 | (hcomplete : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 74 | (hoperator : ∀ t ≤ 0, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 75 | {K : ℝ} (hK : 0 ≤ K) |
| 76 | (hbound : ∀ t ≤ 0, ∀ x, (F.connection t).curvatureTensorNorm x ≤ K) |
| 77 | (hnonflat : ∃ p : S, 0 < (F.connection 0).scalarCurvature p) |
| 78 | {t : ℝ} (ht : t ≤ 0) (γ : ℝ → S) : |
| 79 | ¬ ∀ s r : ℝ, (F.metric t).edist (γ s) (γ r) = ENNReal.ofReal |s - r| := by |
| 80 | intro hγ |
| 81 | have hD := hC.tensor_calculus 2 S (F.metric t) (F.connection t) |
| 82 | have hflat := (F.metric t).surface_curvature_eq_zero_of_minimizing_line |
| 83 | (F.connection t) hD (hcomplete t ht) |
| 84 | (fun x v => ((F.connection t).ricci_bounds_of_nonnegative_curvatureOperator |
| 85 | hD x (hoperator t ht x) v).1) γ hγ |
| 86 | have hpos := F.scalarCurvature_pos_of_bounded_ancient |
| 87 | hC hcomplete hoperator hK hbound hnonflat t ht (γ 0) |
| 88 | rw [hflat.1 (γ 0)] at hpos |
| 89 | exact lt_irrefl _ hpos |
| 90 | |
| 91 | end PoincareMT.RicciFlow |