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.Induction.Noncollapse.Compat.ParabolicRescaling |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.SourceNames.ParabolicRescaling |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.SourceNames.Homothety |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.StableSet.Seed.LowScalarPoint |
| 5 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Paths.Action.LLength |
| 6 | |
| 7 | /-! |
| 8 | # The minimizing region supplies the path in Claim 16.27 |
| 9 | |
| 10 | Morgan--Tian Proposition 16.4, p. 369, and Claim 16.27, pp. 391-392. |
| 11 | Extract the actual path at the earliest old slice, identify its action |
| 12 | with the minimum, and use the actual surgery pinching bound to control |
| 13 | the scalar curvature on that path. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | -- The scalar transport retains the selected realization and history instances. |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set |
| 21 | open scoped Manifold ContDiff Topology |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.M13 |
| 26 | export PoincareMT.EpochExtension.SliceGeometry (originalSlice_scalar) |
| 27 | end PoincareMT.M13 |
| 28 | |
| 29 | namespace PoincareMT.Proofs.M46 |
| 30 | |
| 31 | /-- Every minimizing path to the actual action sublevel lies in the same |
| 32 | compact cage, Proposition 16.21 and the use of Corollary 6.67, p. 394. -/ |
| 33 | theorem MinimizingRegion.all_minimizers_in_cage |
| 34 | {X : Type u} [TopologicalSpace X] {time : X → ℝ} {I : SpacetimeInterval} |
| 35 | {G : GeneralizedLGeometryTransport 3 X time I} {T start : ℝ} {x y : G.Point} |
| 36 | {confinement : ActionConfinement G T start x} |
| 37 | (M : MinimizingRegion G T start x confinement) (hy : y ∈ M.region) |
| 38 | (path : M14BackwardPath G T 0 (T - G.spacetime.timeFunction y) x y) |
| 39 | (hmin : M14IsMinimizing path) : |
| 40 | MapsTo path.curve (Icc 0 (T - G.spacetime.timeFunction y)) confinement.cage := by |
| 41 | obtain ⟨htime, competitor, hcompetitor⟩ := (M.region_exact y).mp hy |
| 42 | exact confinement.paths_mem _ (sub_pos.mpr htime.2) |
| 43 | (sub_le_sub_left htime.1 T) y path ((hmin competitor).trans_lt hcompetitor) |
| 44 | |
| 45 | /-- The slice minimum at the beginning of the minimizing region is |
| 46 | attained by an actual short minimizing path, Proposition 16.4, p. 369. -/ |
| 47 | theorem MinimizingRegion.short_path |
| 48 | {X : Type u} [TopologicalSpace X] {time : X → ℝ} {I : SpacetimeInterval} |
| 49 | {G : GeneralizedLGeometryTransport 3 X time I} {T start : ℝ} {x : G.Point} |
| 50 | {confinement : ActionConfinement G T start x} |
| 51 | (M : MinimizingRegion G T start x confinement) (hstart : start < T) : |
| 52 | ∃ y : G.Point, ∃ path : M14BackwardPath G T 0 (T - start) x y, |
| 53 | M14IsMinimizing path ∧ |
| 54 | M14BackwardLAction G path ≤ 3 * Real.sqrt (T - start) ∧ |
| 55 | MapsTo path.curve (Icc 0 (T - start)) confinement.cage := by |
| 56 | obtain ⟨y, hy, hytime, haction, _⟩ := M.slice_minimum start ⟨le_rfl, hstart⟩ |
| 57 | have hpath : ∃ path : M14BackwardPath G T 0 (T - start) x y, |
| 58 | M14IsMinimizing path := by |
| 59 | rw [← hytime] |
| 60 | exact M.minimizing y hy |
| 61 | obtain ⟨path, hmin⟩ := hpath |
| 62 | have hshort : M14BackwardLAction G path ≤ 3 * Real.sqrt (T - start) := by |
| 63 | rw [M14.action_eq_actionValue_of_minimizing path hmin] |
| 64 | exact haction |
| 65 | exact ⟨y, path, hmin, hshort, confinement.paths_mem _ (sub_pos.mpr hstart) |
| 66 | le_rfl y path (hshort.trans_lt confinement.barrier_large)⟩ |
| 67 | |
| 68 | /-- The actual pinching inequality transports to the realized history |
| 69 | with the uniform scalar floor used in Claim 16.27, p. 392. -/ |
| 70 | theorem regular_history_scalar_lower (P : M46Predecessors.{u}) |
| 71 | {K : MetricSurgeryConstants} {p : SurgeryParameterPrefix K} |
| 72 | {F : SurgeryFlowData.{u}} {O : SurgeryObservation F} |
| 73 | (old : SurgeryPrefixControls p F O) |
| 74 | {window : M33RegularHistoryWindow F} (R : M46RegularSpacetimeData window) |
| 75 | {t : ℝ} (htobs : t ∈ surgeryObservationInterval O) |
| 76 | (ht : t ∈ R.history.generalized.interval) |
| 77 | (y : (R.history.generalized.slice t).carrier) : |
| 78 | -6 ≤ horizontalScalarCurvature R.geometry.toLGeometry.leafwise |
| 79 | (⟨t, y⟩ : R.history.generalized.point) := by |
| 80 | have hp := old.pinched t htobs (O.interval_subset htobs) |
| 81 | have htzero : 0 ≤ t := hp.1 |
| 82 | have hden : 0 < 1 + 4 * t := by positivity |
| 83 | have hfloor : -6 ≤ -6 / (1 + 4 * t) := (le_div_iff₀ hden).mpr (by nlinarith) |
| 84 | change -6 ≤ horizontalScalarCurvature R.geometry.leafwise |
| 85 | (⟨t, y⟩ : R.history.generalized.point) |
| 86 | rw [M13.originalSlice_scalar R.geometry P.m13 t y, |
| 87 | ← R.history.scalar_pullback t ht y] |
| 88 | exact hfloor.trans (hp.2.1 _ (mem_univ _)) |
| 89 | |
| 90 | /-- Every point of an actual backward path in the selected observed |
| 91 | history has the scalar lower bound used in Claim 16.27, p. 392. -/ |
| 92 | theorem regular_history_path_scalar_lower (P : M46Predecessors.{u}) |
| 93 | {K : MetricSurgeryConstants} {p : SurgeryParameterPrefix K} |
| 94 | {F : SurgeryFlowData.{u}} {O : SurgeryObservation F} |
| 95 | (old : SurgeryPrefixControls p F O) |
| 96 | {window : M33RegularHistoryWindow F} (R : M46RegularSpacetimeData window) |
| 97 | {T S : ℝ} {x y : R.geometry.toLGeometry.Point} |
| 98 | (path : M14BackwardPath R.geometry.toLGeometry T 0 S x y) |
| 99 | (hT : T ∈ surgeryObservationInterval O) (hS : S ≤ T) |
| 100 | (hwindow : Icc (T - S) T ⊆ R.history.generalized.interval) : |
| 101 | ∀ s ∈ Icc 0 S, |
| 102 | -6 ≤ horizontalScalarCurvature R.geometry.toLGeometry.leafwise (path.curve s) := by |
| 103 | intro s hs |
| 104 | have hclock : (path.curve s).1 = T - s := path.curve_time s hs |
| 105 | have htobs : (path.curve s).1 ∈ surgeryObservationInterval O := by |
| 106 | change 0 ≤ (path.curve s).1 ∧ (path.curve s).1 < O.H |
| 107 | change 0 ≤ T ∧ T < O.H at hT |
| 108 | rw [hclock] |
| 109 | constructor <;> linarith [hs.1, hs.2] |
| 110 | have ht : (path.curve s).1 ∈ R.history.generalized.interval := by |
| 111 | apply hwindow |
| 112 | rw [hclock] |
| 113 | constructor <;> linarith [hs.1, hs.2] |
| 114 | exact regular_history_scalar_lower P old R htobs ht (path.curve s).2 |
| 115 | |
| 116 | end PoincareMT.Proofs.M46 |