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.Assembly.LowScalarCylinder |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.Assembly.Volume.CanonicalVolume |
| 3 | |
| 4 | /-! |
| 5 | # Completing the three radius cases in Proposition 16.1 |
| 6 | |
| 7 | Morgan--Tian pp. 367-368 and 391-394. The canonical and smaller-ball |
| 8 | losses are included before rNext is chosen. All tests use the same |
| 9 | observed flow, cutoff and regular-source producer. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff ENNReal |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.Proofs.M46 |
| 21 | |
| 22 | /-- The regular case's literal source target, after the cap, minimizing |
| 23 | region, history and stable-set producers have been substituted. -/ |
| 24 | def RegularSourceProducer {K : MetricSurgeryConstants} |
| 25 | (p : SurgeryParameterPrefix K) (rNext cutoff rho taubar l0 V : ℝ) : Prop := |
| 26 | ∀ (F : SurgeryFlowData.{u}) (O : SurgeryObservation F), |
| 27 | ObservedInputs p rNext cutoff F O → |
| 28 | ∀ D : NoncollapseTest F O, surgeryEpochStart p.i ≤ D.time → |
| 29 | (F.connection D.time).scalarCurvature D.center < rNext⁻¹ ^ 2 → |
| 30 | rho ≤ D.radius → |
| 31 | ∃ H : HalfRadiusHistory D, Nonempty (StableSource H taubar l0 V) |
| 32 | |
| 33 | /-- The geometric cylinder target used only below the auxiliary radius. |
| 34 | It is a local producer interface, not a public theorem premise. -/ |
| 35 | def LowScalarCylinderProducer {K : MetricSurgeryConstants} |
| 36 | (p : SurgeryParameterPrefix K) (rNext cutoff rho : ℝ) : Prop := |
| 37 | ∀ (F : SurgeryFlowData.{u}) (O : SurgeryObservation F), |
| 38 | ObservedInputs p rNext cutoff F O → |
| 39 | ∀ D : NoncollapseTest F O, surgeryEpochStart p.i ≤ D.time → |
| 40 | (F.connection D.time).scalarCurvature D.center < rNext⁻¹ ^ 2 → |
| 41 | Nonempty (LowScalarCylinder D rho) |
| 42 | |
| 43 | /-- The three actual geometric cases close the pinned test conclusion. |
| 44 | The radius-rho application reuses the very same producer and cutoff. -/ |
| 45 | theorem testConclusion_of_regularSource_and_cylinder (P : M46Predecessors.{u}) |
| 46 | {K : MetricSurgeryConstants} (p : SurgeryParameterPrefix K) |
| 47 | {taubar l0 V : ℝ} (U : M15GeneralizedUniformData.{u} 3 taubar l0 V) |
| 48 | {rNext cutoff rho : ℝ} (hrNext : 0 < rNext) |
| 49 | (hrLast : rNext ≤ p.r (Fin.last p.i)) (hrho : 0 < rho) (hrho_le : rho ≤ rNext) |
| 50 | (regular : RegularSourceProducer.{u} p rNext cutoff rho taubar l0 V) |
| 51 | (cylinders : LowScalarCylinderProducer.{u} p rNext cutoff rho) |
| 52 | {F : SurgeryFlowData.{u}} {O : SurgeryObservation F} |
| 53 | (inputs : ObservedInputs p rNext cutoff F O) (D : NoncollapseTest F O) |
| 54 | (hnew : surgeryEpochStart p.i ≤ D.time) : |
| 55 | TestConclusion p |
| 56 | (smallRadiusUniformData p U (canonicalVolumeConstant p) (canonicalVolumeConstant_pos p)) |
| 57 | rNext rho D := by |
| 58 | by_cases hhigh : rNext⁻¹ ^ 2 ≤ (F.connection D.time).scalarCurvature D.center |
| 59 | · refine Or.inl ⟨hhigh, ?_⟩ |
| 60 | exact (ENNReal.ofReal_le_ofReal (mul_le_mul_of_nonneg_right |
| 61 | (smallRadiusUniformData_le_canonical p U _ _) (pow_nonneg D.radius_pos.le 3))).trans |
| 62 | (canonical_test_volume P p hrNext hrLast inputs D hhigh) |
| 63 | have hlow := lt_of_not_ge hhigh |
| 64 | by_cases hlarge : rho ≤ D.radius |
| 65 | · exact Or.inr (Or.inr (regular F O inputs D hnew hlow hlarge)) |
| 66 | obtain ⟨C⟩ := cylinders F O inputs D hnew hlow |
| 67 | have hepsilon : rho ≤ F.parameters.epsilon := by |
| 68 | rw [inputs.old.epsilon_eq] |
| 69 | exact hrho_le.trans (hrLast.trans (p.r_le_epsilon _)) |
| 70 | obtain ⟨H, source⟩ := regular F O inputs (C.test hrho hepsilon) hnew hlow le_rfl |
| 71 | obtain ⟨source⟩ := source |
| 72 | refine Or.inr (Or.inl ⟨hlow, lt_of_not_ge hlarge, ?_⟩) |
| 73 | exact (ENNReal.ofReal_le_ofReal (mul_le_mul_of_nonneg_right |
| 74 | (smallRadiusUniformData_le_small_ball p U _ _) (pow_nonneg D.radius_pos.le 3))).trans |
| 75 | (C.small_volume P p U hrho hepsilon (le_of_not_ge hlarge) source) |
| 76 | |
| 77 | /-- The complete outer order is fixed before the flow: source constants, |
| 78 | the M15 package, rNext, rho, and finally the cutoff. The two geometric |
| 79 | producers remain obligations of the owned proof, not extra predecessors. -/ |
| 80 | theorem induction_of_regular_sources_and_cylinders (P : M46Predecessors.{u}) |
| 81 | (S : RepairedControlledSchedulesData.{u}) |
| 82 | (produce : ∀ (p : SurgeryParameterPrefix S.constants), S.SeedCompatible p → |
| 83 | ∃ taubar l0 V : ℝ, ∃ _U : M15GeneralizedUniformData.{u} 3 taubar l0 V, |
| 84 | ∀ rNext : ℝ, 0 < rNext → rNext ≤ p.r (Fin.last p.i) → |
| 85 | ∃ rho : ℝ, 0 < rho ∧ rho ≤ rNext ∧ |
| 86 | ∃ delta : ℝ, 0 < delta ∧ delta ≤ p.Delta (Fin.last p.i) ∧ |
| 87 | RegularSourceProducer.{u} p rNext delta rho taubar l0 V ∧ |
| 88 | LowScalarCylinderProducer.{u} p rNext delta rho) : |
| 89 | Nonempty (RepairedNoncollapseInductionData.{u} S) := by |
| 90 | apply induction_of_uniform_sources P S |
| 91 | intro p hp |
| 92 | obtain ⟨taubar, l0, V, U, hU⟩ := produce p hp |
| 93 | refine ⟨taubar, l0, V, |
| 94 | smallRadiusUniformData p U (canonicalVolumeConstant p) (canonicalVolumeConstant_pos p), ?_⟩ |
| 95 | intro rNext hrNext hrLast |
| 96 | obtain ⟨rho, hrho, hrho_le, delta, hdelta, hdelta_le, regular, cylinders⟩ := |
| 97 | hU rNext hrNext hrLast |
| 98 | refine ⟨rho, hrho, hrho_le, delta, hdelta, hdelta_le, ?_⟩ |
| 99 | intro F O inputs D hnew |
| 100 | exact testConclusion_of_regularSource_and_cylinder P p U hrNext hrLast hrho hrho_le |
| 101 | regular cylinders inputs D hnew |
| 102 | |
| 103 | end PoincareMT.Proofs.M46 |