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.CanonicalInduction.Blowup.Controls.BlowupControlsFirstFailureCylinder |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Terminal.Source.TerminalSourceCharts |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Terminal.Source.TerminalSourceRealizationHistory |
| 4 | |
| 5 | /-! |
| 6 | # Included terminal curvature on the selected source chart |
| 7 | |
| 8 | The first-failure cylinder estimate is applied on the same generalized |
| 9 | cylinder source as the normalized ordinary flow. The accepted G2 norm |
| 10 | readout divides by the one positive scale `Q`; both included endpoints and |
| 11 | the source clock remain in the statement. No survival, chart, or volume |
| 12 | constructor is introduced here. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff Bundle Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M47 |
| 24 | |
| 25 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 26 | |
| 27 | /- The pointwise adapter is deliberately explicit about every guard consumed |
| 28 | by `first_failure_cylinder_curvature_bounds`. -/ |
| 29 | theorem terminalSourceJetsG4_on_chart |
| 30 | (S : RepairedControlledSchedulesData.{u}) |
| 31 | (B : M47ComponentAnalyticBounds.{u} S.setup.C) |
| 32 | (p : SurgeryParameterPrefix S.constants) |
| 33 | {F₀ : SurgeryFlowData.{u}} (O : SurgeryObservation F₀) |
| 34 | (hInitial : F₀.standard_initial = S.setup.standard_initial) |
| 35 | (hConstants : F₀.local_constants = S.constants) |
| 36 | (hC : F₀.parameters.C = S.setup.C) |
| 37 | {base τ r Q₀ : ℝ} |
| 38 | (hBase : base ∈ Ico (surgeryEpochStart p.i) O.H) |
| 39 | (hτ₀ : 0 ≤ τ) |
| 40 | (hScale : 64 * (τ + 1) ≤ Q₀) |
| 41 | (hLarge : B.curvature_threshold ≤ Q₀) |
| 42 | (hThreshold : r⁻¹ ^ 2 ≤ Q₀) |
| 43 | (hPinched : SurgeryFlowPinched F₀) |
| 44 | (hEarlier : SurgeryCanonicalOn |
| 45 | F₀ (surgeryObservationInterval O ∩ Iio base) r) |
| 46 | (hOverlap : ∀ u ∈ surgeryObservationInterval O ∩ |
| 47 | Ico (surgeryEpochStart (p.i - 1)) O.H, |
| 48 | F₀.parameters.delta u ≤ B.delta S.setup.standard_initial S.constants) |
| 49 | (P : M46Predecessors.{u}) |
| 50 | {W : M33RegularHistoryWindow F₀} |
| 51 | (H : M33RegularHistoryData W) |
| 52 | {C₀ : GeneralizedSliceCarrier.{u}} |
| 53 | (hτ : 0 < τ) |
| 54 | (U : TopologicalSpace.Opens C₀.carrier) |
| 55 | (e : GeneralizedFlowCylinder H.generalized C₀ base Q₀ |
| 56 | (Icc (-τ) 0) (U : Set C₀.carrier)) |
| 57 | (F : RicciFlow 3 U (Icc (-τ) 0)) |
| 58 | (htime : ∀ s ∈ Icc (-τ) 0, |
| 59 | base + s / Q₀ ∈ H.generalized.interval) |
| 60 | (hnorm : ∀ (s : ℝ) (hs : s ∈ Icc (-τ) 0) (x : U), |
| 61 | (F.connection s).curvatureTensorNorm x = |
| 62 | (H.generalized.connection (base + s / Q₀)).curvatureTensorNorm |
| 63 | (e.forward s hs x.val) / Q₀) |
| 64 | {R L eta : ℝ} (hL : 1 ≤ L) |
| 65 | (hTerminal : ∀ x : C₀.carrier, x ∈ (U : Set C₀.carrier) → |
| 66 | normalizedCylinderScalar e x 0 ≤ L) |
| 67 | (hShort : blowupAnalyticConstant S B * L * τ ≤ 1 / 4) |
| 68 | (heta : 0 < eta) |
| 69 | (hPinchingScale : blowupPinchingThreshold (4 * L / 3) eta ≤ Q₀) |
| 70 | (C : TerminalSourceChart (F.metric 0) R) : |
| 71 | (∀ s ∈ Icc (-τ) 0, base + s / Q₀ ∈ H.generalized.interval) ∧ |
| 72 | ∀ s ∈ Icc (-τ) 0, ∀ y ∈ C.chart '' Metric.ball 0 R, |
| 73 | (F.connection s).curvatureTensorNorm y ≤ |
| 74 | 13 * max (4 * L / 3) 1 := by |
| 75 | have hτpos : 0 < τ := lt_of_le_of_ne hτ₀ (Ne.symm (ne_of_gt hτ)) |
| 76 | refine ⟨htime, ?_⟩ |
| 77 | intro s hs y hy |
| 78 | obtain ⟨z, hz, rfl⟩ := hy |
| 79 | have hx : (C.chart z).val ∈ (U : Set C₀.carrier) := (C.chart z).property |
| 80 | have hraw := first_failure_cylinder_curvature_bounds S B p O |
| 81 | hInitial hConstants hC hBase hτpos.le hScale hLarge hThreshold hPinched |
| 82 | hEarlier hOverlap P H e hx hL (hTerminal (C.chart z).val hx) hShort |
| 83 | heta hPinchingScale s hs |
| 84 | have hcurv : |
| 85 | |(H.generalized.connection (base + s / Q₀)).curvatureTensorNorm |
| 86 | (e.forward s hs (C.chart z).val)| ≤ |
| 87 | (13 * max (4 * L / 3) 1) * Q₀ := by |
| 88 | simpa only [GeneralizedRicciFlowData.curvatureNorm, |
| 89 | GeneralizedFlowCylinder.pointMap] using hraw.1 |
| 90 | rw [hnorm s hs (C.chart z)] |
| 91 | apply (div_le_iff₀ e.scale_pos).2 |
| 92 | exact (le_abs_self _).trans hcurv |
| 93 | |
| 94 | /- The actual G2 constructor is kept as the producer of the ordinary flow and |
| 95 | its full readout. The chart-bound result above only consumes its norm slot. -/ |
| 96 | theorem terminalSourceJetsG4_realized |
| 97 | (P₄₇ : M47Predecessors.{u}) |
| 98 | (S : RepairedControlledSchedulesData.{u}) |
| 99 | (B : M47ComponentAnalyticBounds.{u} S.setup.C) |
| 100 | (p : SurgeryParameterPrefix S.constants) |
| 101 | {F₀ : SurgeryFlowData.{u}} (O : SurgeryObservation F₀) |
| 102 | (hInitial : F₀.standard_initial = S.setup.standard_initial) |
| 103 | (hConstants : F₀.local_constants = S.constants) |
| 104 | (hC : F₀.parameters.C = S.setup.C) |
| 105 | {base τ r Q₀ : ℝ} |
| 106 | (hBase : base ∈ Ico (surgeryEpochStart p.i) O.H) |
| 107 | (hτ₀ : 0 ≤ τ) |
| 108 | (hScale : 64 * (τ + 1) ≤ Q₀) |
| 109 | (hLarge : B.curvature_threshold ≤ Q₀) |
| 110 | (hThreshold : r⁻¹ ^ 2 ≤ Q₀) |
| 111 | (hPinched : SurgeryFlowPinched F₀) |
| 112 | (hEarlier : SurgeryCanonicalOn |
| 113 | F₀ (surgeryObservationInterval O ∩ Iio base) r) |
| 114 | (hOverlap : ∀ u ∈ surgeryObservationInterval O ∩ |
| 115 | Ico (surgeryEpochStart (p.i - 1)) O.H, |
| 116 | F₀.parameters.delta u ≤ B.delta S.setup.standard_initial S.constants) |
| 117 | (P : M46Predecessors.{u}) |
| 118 | {W : M33RegularHistoryWindow F₀} |
| 119 | (H : M33RegularHistoryData W) |
| 120 | {C₀ : GeneralizedSliceCarrier.{u}} |
| 121 | (hτ : 0 < τ) |
| 122 | (U : TopologicalSpace.Opens C₀.carrier) |
| 123 | (hne : (U : Set C₀.carrier).Nonempty) |
| 124 | (e : GeneralizedFlowCylinder H.generalized C₀ base Q₀ |
| 125 | (Icc (-τ) 0) (U : Set C₀.carrier)) |
| 126 | {R L eta : ℝ} (hL : 1 ≤ L) |
| 127 | (hTerminal : ∀ x : C₀.carrier, x ∈ (U : Set C₀.carrier) → |
| 128 | normalizedCylinderScalar e x 0 ≤ L) |
| 129 | (hShort : blowupAnalyticConstant S B * L * τ ≤ 1 / 4) |
| 130 | (heta : 0 < eta) |
| 131 | (hPinchingScale : blowupPinchingThreshold (4 * L / 3) eta ≤ Q₀) : |
| 132 | ∃ F : RicciFlow 3 U (Icc (-τ) 0), |
| 133 | (∀ s ∈ Icc (-τ) 0, |
| 134 | base + s / Q₀ ∈ H.generalized.interval) ∧ |
| 135 | ∀ C : TerminalSourceChart (F.metric 0) R, |
| 136 | ∀ s ∈ Icc (-τ) 0, ∀ y ∈ C.chart '' Metric.ball 0 R, |
| 137 | (F.connection s).curvatureTensorNorm y ≤ |
| 138 | 13 * max (4 * L / 3) 1 := by |
| 139 | obtain ⟨F, htime, hread⟩ := terminalSourceRealization_regular_history |
| 140 | P₄₇ H hτ U hne e |
| 141 | refine ⟨F, htime, ?_⟩ |
| 142 | intro C s hs y hy |
| 143 | have h := terminalSourceJetsG4_on_chart S B p O hInitial hConstants hC |
| 144 | hBase hτ₀ hScale hLarge hThreshold hPinched hEarlier hOverlap P H hτ U e F |
| 145 | htime (fun s hs x => (hread s hs x).1.2.2) hL hTerminal hShort heta |
| 146 | hPinchingScale C |
| 147 | exact h.2 s hs y hy |
| 148 | |
| 149 | end PoincareMT.M47 |