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.Blowup.Controlled.Data |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.BackwardLimit.BackwardInterval |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.BackwardLimit.BackwardNonflatness |
| 4 | import PoincareLib.Geometry.RicciFlow.Harnack.Regularity |
| 5 | |
| 6 | /-! |
| 7 | # Ancient identification of the actual infinite-horizon limit |
| 8 | |
| 9 | Morgan--Tian Theorem 11.8, pp. 272-279, identifies the infinite-horizon |
| 10 | limit as an ancient kappa-solution (Definition 9.2, p. 180). Given the |
| 11 | all-scales noncollapse conclusion, this constructor retains the actual |
| 12 | limit metric and connection. Compact-time curvature bounds and terminal |
| 13 | scalar normalization provide nonflatness on every ancient slice. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set |
| 20 | open scoped Manifold ContDiff Bundle ENNReal |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.M30 |
| 25 | |
| 26 | /-- The infinite-horizon limit, with its actual metric and connection, is |
| 27 | an ancient kappa-solution once all-scales noncollapse has been proved |
| 28 | (Theorem 11.8, pp. 272-279; Definition 9.2, p. 180). -/ |
| 29 | noncomputable def ancientKappaIdentificationOfNoncollapsed |
| 30 | (hC : RicciFlowCurvatureTheory.{u}) |
| 31 | (L : BlowupLimitFlow.{u} (blowupBackwardInterval ⊤)) |
| 32 | {kappa : ℝ} (hkappa : 0 < kappa) |
| 33 | (hnc : BlowupLimitNoncollapsed L kappa) : |
| 34 | M30AncientKappaIdentification L kappa := by |
| 35 | let C := L.carrier |
| 36 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 37 | letI : MeasurableSpace C.carrier := C.measurableSpace |
| 38 | letI : BorelSpace C.carrier := C.borelSpace |
| 39 | letI : ChartedSpace (EuclideanSpace ℝ (Fin 3)) C.carrier := C.chartedSpace |
| 40 | letI : IsManifold (𝓡 3) ∞ C.carrier := C.isManifold |
| 41 | letI : T2Space C.carrier := C.t2Space |
| 42 | letI : T3Space C.carrier := C.t3Space |
| 43 | letI : SecondCountableTopology C.carrier := C.secondCountable |
| 44 | letI : ConnectedSpace C.carrier := L.connectedSpace |
| 45 | have hsubset : Iic (0 : ℝ) ⊆ blowupBackwardInterval ⊤ := by |
| 46 | rw [blowupBackwardInterval_top] |
| 47 | have hne : (Iic (0 : ℝ)).Nontrivial := |
| 48 | ⟨-1, by norm_num, 0, by norm_num, by norm_num⟩ |
| 49 | let F := Poincare.Geometry.RicciFlow.Harnack.restrictFlow |
| 50 | L.flow hsubset ordConnected_Iic hne |
| 51 | have hcomplete (t : ℝ) (ht : t ≤ 0) : MetricComplete (F.metric t) := |
| 52 | L.complete t (hsubset ht) |
| 53 | have hoperator (t : ℝ) (ht : t ≤ 0) (x : C.carrier) : |
| 54 | (F.connection t).NonnegativeCurvatureOperator x := |
| 55 | L.nonnegative_curvature_operator t (hsubset ht) x |
| 56 | have hbounded (a : ℝ) (_ha : a ≤ 0) : |
| 57 | ∃ K : ℝ, 0 ≤ K ∧ ∀ t ∈ Icc a 0, ∀ x : C.carrier, |
| 58 | (F.connection t).curvatureTensorNorm x ≤ K := by |
| 59 | obtain ⟨K, hK, hbound⟩ := L.curvature_locally_bounded_in_time |
| 60 | (Icc a 0) isCompact_Icc (fun _ hs => hsubset hs.2) |
| 61 | exact ⟨K, hK, fun t ht x => (le_abs_self _).trans (hbound t ht x)⟩ |
| 62 | have hterminal : ∃ p : C.carrier, 0 < (F.connection 0).scalarCurvature p := by |
| 63 | refine ⟨L.base, ?_⟩ |
| 64 | change 0 < (L.flow.connection 0).scalarCurvature L.base |
| 65 | rw [L.scalar_normalized] |
| 66 | norm_num |
| 67 | have hpositive := scalarCurvature_positive_somewhere_of_locally_bounded_ancient |
| 68 | hC F hcomplete hoperator hbounded hterminal |
| 69 | let A : AncientKappaSolution 3 C.carrier := { |
| 70 | flow := F |
| 71 | kappa := kappa |
| 72 | kappa_pos := hkappa |
| 73 | complete := hcomplete |
| 74 | nonnegative_curvature_operator := hoperator |
| 75 | bounded_curvature := by |
| 76 | intro t ht |
| 77 | obtain ⟨K, hK, hbound⟩ := L.curvature_locally_bounded_in_time |
| 78 | {t} isCompact_singleton (singleton_subset_iff.mpr (hsubset ht)) |
| 79 | exact ⟨K, hK, fun x => hbound t (mem_singleton t) x⟩ |
| 80 | nonflat := by |
| 81 | intro t ht |
| 82 | obtain ⟨x, hx⟩ := hpositive t ht |
| 83 | refine ⟨x, ?_⟩ |
| 84 | intro hzero |
| 85 | have hnorm := (F.connection t).abs_scalarCurvature_le_curvatureTensorNorm x |
| 86 | rw [hzero, mul_zero] at hnorm |
| 87 | exact hx.not_ge ((le_abs_self _).trans hnorm) |
| 88 | noncollapsed := by |
| 89 | intro _ _ t ht p r hr _ hcurvature |
| 90 | exact hnc t (hsubset ht) p r hr |
| 91 | (fun _ hs => hsubset (hs.2.trans ht)) hcurvature } |
| 92 | exact { |
| 93 | certificate := { |
| 94 | solution := A |
| 95 | kappa_eq := rfl |
| 96 | metric_eq := fun _ _ => rfl } |
| 97 | domain_eq := blowupBackwardInterval_top |
| 98 | connection_eq := fun _ _ => HEq.rfl } |
| 99 | |
| 100 | end PoincareMT.M30 |