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.EpochExtension.Extension.ExtensionPrefix |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Extension.CanonicalControls |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochData |
| 4 | |
| 5 | /-! |
| 6 | # Selected controls on the actual restarted flow |
| 7 | |
| 8 | Morgan--Tian Section 17.2, pp. 409-410. Transport the already prescribed |
| 9 | parameter profiles, then apply Proposition 17.1 followed by Proposition |
| 10 | 16.1 on the literal M33 branch and its observation. No analytic configuration |
| 11 | or control on the newly added times is an input of this adapter. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | private theorem epochStart_mono : Monotone surgeryEpochStart := by |
| 23 | intro i j hij |
| 24 | exact div_le_div_of_nonneg_right |
| 25 | (pow_le_pow_right₀ (by norm_num : (1 : ℝ) ≤ 2) hij) (by norm_num) |
| 26 | |
| 27 | /-- The selected canonical and noncollapse services control the same actual |
| 28 | restart, including an observation at the next epoch boundary or in an empty |
| 29 | continuation. Earlier-prefix controls are transported through its own maps. -/ |
| 30 | theorem RepairedBranchContinuationData.observedControls |
| 31 | {K : MetricSurgeryConstants} {p : SurgeryParameterPrefix K} |
| 32 | {F : SurgeryFlowData.{u}} {O : SurgeryObservation F} {T : ℝ} |
| 33 | {I : RepairedContinuationInput F T} (branch : RepairedBranchContinuationData I) |
| 34 | {Q : SurgeryNoncollapseExtension.{u} p} {R : SurgeryCanonicalExtension p Q} |
| 35 | (old : SurgeryPrefixControls p F O) |
| 36 | (controls : SurgeryEpochContinuationControls p F O Q R) |
| 37 | (O' : SurgeryObservation branch.conclusion.extension.extended) |
| 38 | (hstart : surgeryEpochStart p.i ≤ O.H) |
| 39 | (hnext : SurgeryObservationIsNextEpoch p O') |
| 40 | (terminal_policy : SurgeryFlowTerminalPolicyOn |
| 41 | branch.conclusion.extension.extended (surgeryObservationInterval O')) |
| 42 | (m13 : GeneralizedParabolicRescalingTheory.{u} 3) : |
| 43 | SurgeryPrefixControls p branch.conclusion.extension.extended O' ∧ |
| 44 | SurgeryCanonicalOn branch.conclusion.extension.extended |
| 45 | (surgeryObservationInterval O') R.rNext ∧ |
| 46 | SurgeryNoncollapsedOn branch.conclusion.extension.extended |
| 47 | (surgeryObservationInterval O') Q.kappaNew := by |
| 48 | have hprefix := branch.prefixControls old O' hstart m13 |
| 49 | have hepoch {t : ℝ} |
| 50 | (ht : t ∈ surgeryObservationInterval O' ∩ Ici (surgeryEpochStart p.i)) : |
| 51 | t ∈ surgeryEpoch p.i := |
| 52 | ⟨ht.2, ht.1.2.trans_le hnext.2⟩ |
| 53 | have hoverlap {t : ℝ} (ht : t ∈ surgeryEpoch p.i) : |
| 54 | t ∈ overlapInterval p := |
| 55 | ⟨(epochStart_mono (Nat.sub_le p.i 1)).trans ht.1, ht.2⟩ |
| 56 | have scales : SurgeryPostPrefixScales p branch.conclusion.extension.extended |
| 57 | O' R.rNext R.deltaNext := { |
| 58 | r_eq := by |
| 59 | intro t ht |
| 60 | simpa only [branch.conclusion.extension.parameters_eq] using |
| 61 | controls.next_r t (hepoch ht) |
| 62 | delta_le := by |
| 63 | intro t ht |
| 64 | simpa only [branch.conclusion.extension.parameters_eq] using |
| 65 | controls.overlap_delta t (hoverlap (hepoch ht)) |
| 66 | h_eq := by |
| 67 | intro t ht |
| 68 | simpa only [branch.conclusion.extension.parameters_eq] using |
| 69 | controls.next_h t (hepoch ht) |
| 70 | } |
| 71 | have overlap : ∀ t ∈ surgeryObservationInterval O' ∩ |
| 72 | Ico (surgeryEpochStart (p.i - 1)) O'.H, |
| 73 | branch.conclusion.extension.extended.parameters.delta t ≤ R.deltaNext := by |
| 74 | intro t ht |
| 75 | have ht' : t ∈ overlapInterval p := ⟨ht.2.1, ht.1.2.trans_le hnext.2⟩ |
| 76 | simpa only [branch.conclusion.extension.parameters_eq] using |
| 77 | controls.overlap_delta t ht' |
| 78 | exact ⟨hprefix, R.observedControls _ O' hnext hprefix |
| 79 | branch.conclusion.admissible branch.conclusion.pinched terminal_policy scales overlap⟩ |
| 80 | |
| 81 | end PoincareMT |