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.Continuation.Construction.RegularHistory |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Construction.TerminalPolicy |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Construction.OldEventPolicy |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Construction.ContinuationPolicy |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Construction.MaximalRestart |
| 6 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Construction.RestartPinching |
| 7 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Construction.History |
| 8 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Construction.Predecessors |
| 9 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Construction.Terminal |
| 10 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Construction.Splice |
| 11 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Construction.EventRebuild.Preservation |
| 12 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Service |
| 13 | import PoincareLib.Geometry.RicciFlow.Local.Theory |
| 14 | import PoincareLib.Geometry.RicciFlow.Pinching.Conclusion |
| 15 | |
| 16 | /-! |
| 17 | # M33 branch-correct continuation construction |
| 18 | |
| 19 | This is the construction boundary for Morgan--Tian Chapter 15. The |
| 20 | predecessor package contains only the compact restart and absolute-time |
| 21 | pinching services from the source M03/M05 interface. The result exposes both |
| 22 | clauses of the repaired M33 service: the regular history on every admissible |
| 23 | finite window and the branch-correct one-step continuation. |
| 24 | |
| 25 | The sibling `Construction` modules construct a maximal ordinary restart from |
| 26 | the local-flow service, prove finite-terminal curvature blow-up, and propagate |
| 27 | absolute-time pinching. They also prove finite-window bookkeeping and policy |
| 28 | transport, construct the exact regular slice family and its geometric |
| 29 | identifications, glue ordinary flows across the continuing interior, construct |
| 30 | ordinary boxes and the spacetime topology of a compatible countable atlas, |
| 31 | and rebuild old events while preserving their geometry. |
| 32 | The full finite regular history is constructed. The actual local surgeries |
| 33 | also give a compact pinched quotient once the finite terminal cuts are selected, |
| 34 | and an empty controlled core gives the full permanently extinct continuation, |
| 35 | including its actual vanishing event and preservation of the old events. |
| 36 | The exact nonempty continuation is constructed from calibrated horns carrying |
| 37 | the original relevant ends, including finite disjoint cut selection. Those |
| 38 | horns are constructed in the small-constant range and in the actual tube or |
| 39 | capped-tube alternative with a low point in its tube. In the low-cap case, |
| 40 | fixed-accuracy cap overlap excludes high canonical caps and supplies the |
| 41 | strong-neck centers for the calibrated original-end horn |
| 42 | (Morgan--Tian, Lemma 14.11 and Proposition 14.12, pp. 349-350, and Lemma 15.11, |
| 43 | pp. 364-365). |
| 44 | -/ |
| 45 | |
| 46 | set_option autoImplicit false |
| 47 | |
| 48 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 49 | |
| 50 | universe u |
| 51 | |
| 52 | namespace PoincareMT |
| 53 | |
| 54 | /-- The source M33 service, with both the regular-history and continuation |
| 55 | clauses visible in its result. -/ |
| 56 | theorem repairedBranchContinuation |
| 57 | (P : M33Predecessors.{u}) : RepairedBranchContinuationTheory.{u} := by |
| 58 | classical |
| 59 | refine ⟨P.regular_history, ?_⟩ |
| 60 | intro M _ _ _ _ _ _ _ _ F T I G H L N bridge |
| 61 | by_cases hempty : I.controlled_core = ∅ |
| 62 | · exact bridge.continuation_of_core_empty hempty |
| 63 | · have hcore : I.controlled_core.Nonempty := Set.nonempty_iff_ne_empty.mpr hempty |
| 64 | by_cases hsmall : H.constant ≤ 99 |
| 65 | · exact bridge.continuation_of_constant_le_ninetyNine P hcore hsmall |
| 66 | · apply bridge.continuation_of_calibrated_horns P hcore |
| 67 | intro K hK e |
| 68 | have hrho : I.rho < H.r₀ := bridge.parameter_r₀_eq.symm ▸ I.rho_lt_r₀ |
| 69 | have hconstant : 8 ≤ H.constant := by linarith |
| 70 | have hlow : ∃ x ∈ K.component, N.limit.terminal_scalar x ≤ I.rho⁻¹ ^ 2 := hK |
| 71 | rcases N.limit.exists_calibrated_strongHorn_or_capped_region |
| 72 | bridge.appendixA bridge.appendixA_accuracy K e I.rho I.rho_pos hrho |
| 73 | (by linarith) hlow with hhorn | hcapped |
| 74 | · obtain ⟨horn, hcomponent, htail, hdisjoint, hlinear, hboundary⟩ := hhorn |
| 75 | refine ⟨horn, hboundary, ?_, hcomponent, ?_, htail⟩ |
| 76 | · intro x hx |
| 77 | rw [← N.limit.terminal_scalar_eq] |
| 78 | have hpos : 0 < H.constant * I.rho⁻¹ ^ 2 := |
| 79 | mul_pos H.constant_pos (sq_pos_of_pos (inv_pos.mpr I.rho_pos)) |
| 80 | nlinarith [hlinear x hx] |
| 81 | · simpa only [N.limit.terminal_scalar_eq] using hdisjoint |
| 82 | · obtain ⟨n, X, Y, hX, hconnected, hcomponent, htail, hnoncompact, |
| 83 | hbound, hattain, hfront, hfrontlevel, hXY, hcapε, htubeε, hcapC, hmeet⟩ := hcapped |
| 84 | have hproper : ∀ D : Set ℝ, IsCompact D → |
| 85 | IsCompact ((N.limit.extension.extended.connection T).scalarCurvature ⁻¹' D) := by |
| 86 | simpa only [N.limit.terminal_scalar_eq] using N.limit.scalar_proper |
| 87 | have hY := e.cappedTube_carrier_eq_component hproper Y hX hfront hXY n htail |
| 88 | by_cases htubelow : ∃ p ∈ Y.tube.carrier, |
| 89 | N.limit.terminal_scalar p ≤ I.rho⁻¹ ^ 2 |
| 90 | · obtain ⟨p, hp, hplow⟩ := htubelow |
| 91 | have hpK : p ∈ K.component := hY ▸ Y.tube_subset hp |
| 92 | obtain ⟨horn, hhornK, hhornTail, hhornLow, hlinear, hboundary⟩ := |
| 93 | N.limit.exists_calibrated_strongHorn_of_cappedTube_low_tube_point |
| 94 | bridge.appendixA bridge.appendixA_accuracy K e Y hX hfront hXY n htail |
| 95 | I.rho I.rho_pos hrho hconstant hp hpK hplow |
| 96 | refine ⟨horn, hboundary, ?_, hhornK, ?_, hhornTail⟩ |
| 97 | · simpa only [N.limit.terminal_scalar_eq] using hlinear |
| 98 | · simpa only [N.limit.terminal_scalar_eq] using hhornLow |
| 99 | · have htubehigh : ∀ x ∈ Y.tube.carrier, |
| 100 | I.rho⁻¹ ^ 2 < N.limit.terminal_scalar x := by |
| 101 | intro x hx |
| 102 | exact lt_of_not_ge (fun h => htubelow ⟨x, hx, h⟩) |
| 103 | obtain ⟨p, hpK, hplow⟩ := hlow |
| 104 | have hpcap : p ∈ Y.cap.carrier := by |
| 105 | have hpY : p ∈ Y.carrier := hY.symm ▸ hpK |
| 106 | rw [Y.carrier_eq_union] at hpY |
| 107 | exact hpY.resolve_right (fun hp => (htubehigh p hp).not_ge hplow) |
| 108 | have hq : H.r₀⁻¹ ^ 2 < I.rho⁻¹ ^ 2 := by |
| 109 | have hi := (inv_lt_inv₀ H.r₀_pos I.rho_pos).mpr hrho |
| 110 | nlinarith [inv_pos.mpr H.r₀_pos, inv_pos.mpr I.rho_pos] |
| 111 | have hstrong : ∀ x ∈ K.component, |
| 112 | 2 * H.constant * I.rho⁻¹ ^ 2 ≤ N.limit.terminal_scalar x → |
| 113 | ∃ S : TerminalStrongNeck N.limit.extension (terminalAccuracyFactor * H.epsilon), S.center = x := by |
| 114 | intro x hx hxhigh |
| 115 | apply N.limit.strong_neck_center_of_cappedTube_high_point K e Y hY |
| 116 | hcapε hcapC (I.rho⁻¹ ^ 2) hpcap hplow hx ?_ hxhigh |
| 117 | have hqpos : 0 < I.rho⁻¹ ^ 2 := sq_pos_of_pos (inv_pos.mpr I.rho_pos) |
| 118 | nlinarith [mul_le_mul_of_nonneg_right hconstant hqpos.le] |
| 119 | obtain ⟨horn, hhornK, hhornTail, hhornLow, hlinear, hboundary⟩ := |
| 120 | N.limit.exists_calibrated_strongHorn_of_high_strong_centers |
| 121 | bridge.appendixA bridge.appendixA_accuracy K e I.rho I.rho_pos |
| 122 | (by linarith) hK hstrong |
| 123 | refine ⟨horn, hboundary, ?_, hhornK, ?_, hhornTail⟩ |
| 124 | · intro x hx |
| 125 | rw [← N.limit.terminal_scalar_eq] |
| 126 | have hpos : 0 < H.constant * I.rho⁻¹ ^ 2 := |
| 127 | mul_pos H.constant_pos (sq_pos_of_pos (inv_pos.mpr I.rho_pos)) |
| 128 | nlinarith [hlinear x hx] |
| 129 | · simpa only [N.limit.terminal_scalar_eq] using hhornLow |
| 130 | |
| 131 | end PoincareMT |