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.Topology.Manifold.Poincare.Final.Compatibility.SourceNames |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Positive.PositiveHistoryFlow |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Minimum.Compactness.ScalarBound |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Flow.Basic |
| 5 | |
| 6 | /-! |
| 7 | # A surviving positive component is entirely regular |
| 8 | |
| 9 | The actual regular-limit criterion supplies one bounded scalar subsequence. |
| 10 | On a positive compact component it excludes terminal curvature blow-up by |
| 11 | the proved Hamilton output. A uniform curvature tail then puts every point |
| 12 | in the regular region; Morgan--Tian, pp. 393-394. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M47Positive |
| 23 | |
| 24 | variable {g₀ : StandardInitialMetric} {K : MetricSurgeryConstants} |
| 25 | {P : SurgeryParameters} {slice : ℝ → GeneralizedSliceCarrier.{u}} |
| 26 | {metric : ∀ t, RiemannianMetric 3 (slice t).carrier} {T : ℝ} |
| 27 | |
| 28 | /-- A regular point in an actual positive pre-component forces a uniform |
| 29 | full-curvature bound on a terminal tail of that whole component. The fresh |
| 30 | positivity reference is an included pre-flow time; MT pp. 393-394. -/ |
| 31 | theorem positive_component_curvature_bounded_near |
| 32 | (hC : RicciFlowCurvatureTheory.{u}) |
| 33 | (E : SurgeryEventData g₀ K P slice metric T) |
| 34 | [CompactSpace (slice E.tMinus).carrier] |
| 35 | (v : Ico E.tMinus T) (x : (slice E.tMinus).carrier) |
| 36 | (hpos : ∀ y ∈ connectedComponent x, ∀ u w : TangentSpace (𝓡 3) y, |
| 37 | LeviCivitaData.IsOrthonormalPair (E.pre_flow.metric v.1) y u w → |
| 38 | 0 < (E.pre_flow.connection v.1).sectionalCurvature y u w) |
| 39 | {q : (slice E.tMinus).carrier} (hq : q ∈ connectedComponent x) |
| 40 | (hregular : q ∈ E.regular_limit) : |
| 41 | ∃ B s : ℝ, s < T ∧ ∀ t ∈ Ioo (max v.1 s) T, ∀ y ∈ connectedComponent x, |
| 42 | (E.pre_flow.connection t).curvatureTensorNorm y ≤ B := by |
| 43 | by_contra hbound |
| 44 | push Not at hbound |
| 45 | have hfloor := positive_blowup_on_component hC E.pre_flow x v.2.2 |
| 46 | (fun t ht => ⟨v.2.1.trans ht.1, ht.2⟩) hpos hbound |
| 47 | rw [E.regular_limit_eq] at hregular |
| 48 | obtain ⟨Bq, hsubsequence⟩ := hregular |
| 49 | obtain ⟨s, hs, htail⟩ := hfloor (Bq + 1) |
| 50 | obtain ⟨t, ht, hst, htq⟩ := hsubsequence s hs.2 |
| 51 | have h := htail t ⟨hst, ht.2⟩ q hq |
| 52 | linarith only [h, htq] |
| 53 | |
| 54 | /-- A full-curvature bound on a terminal component tail places every |
| 55 | component point in the literal scalar-subsequence regular region; |
| 56 | Morgan--Tian, pp. 393-394. -/ |
| 57 | theorem component_subset_regular_of_curvature_tail |
| 58 | (E : SurgeryEventData g₀ K P slice metric T) |
| 59 | (v : Ico E.tMinus T) (x : (slice E.tMinus).carrier) |
| 60 | {B s : ℝ} (hs : s < T) |
| 61 | (hbound : ∀ t ∈ Ioo (max v.1 s) T, ∀ y ∈ connectedComponent x, |
| 62 | (E.pre_flow.connection t).curvatureTensorNorm y ≤ B) : |
| 63 | connectedComponent x ⊆ E.regular_limit := by |
| 64 | intro y hy |
| 65 | rw [E.regular_limit_eq] |
| 66 | refine ⟨9 * B, ?_⟩ |
| 67 | intro t0 ht0 |
| 68 | obtain ⟨t, ht, htT⟩ := exists_between (max_lt (max_lt v.2.2 hs) ht0) |
| 69 | have hvs : max v.1 s < t := (le_max_left _ _).trans_lt ht |
| 70 | have hvt : v.1 < t := (le_max_left _ _).trans_lt hvs |
| 71 | refine ⟨t, ⟨v.2.1.trans hvt.le, htT⟩, (le_max_right _ _).trans_lt ht, ?_⟩ |
| 72 | have hscalar := (le_abs_self ((E.pre_flow.connection t).scalarCurvature y)).trans |
| 73 | (M10.abs_scalarCurvature_le (E.pre_flow.metric t) (E.pre_flow.connection t) y) |
| 74 | have hnorm := hbound t ⟨hvs, htT⟩ y hy |
| 75 | norm_num only [Nat.cast_ofNat, Nat.reducePow] at hscalar |
| 76 | nlinarith only [hscalar, hnorm] |
| 77 | |
| 78 | /-- One regular point makes an actual initially positive pre-component |
| 79 | entirely regular at the event. This is the no-partial-regular-limit step |
| 80 | of Morgan--Tian's positive-history argument, pp. 393-394. -/ |
| 81 | theorem positive_component_subset_regular |
| 82 | (hC : RicciFlowCurvatureTheory.{u}) |
| 83 | (E : SurgeryEventData g₀ K P slice metric T) |
| 84 | [CompactSpace (slice E.tMinus).carrier] |
| 85 | (v : Ico E.tMinus T) (x : (slice E.tMinus).carrier) |
| 86 | (hpos : ∀ y ∈ connectedComponent x, ∀ u w : TangentSpace (𝓡 3) y, |
| 87 | LeviCivitaData.IsOrthonormalPair (E.pre_flow.metric v.1) y u w → |
| 88 | 0 < (E.pre_flow.connection v.1).sectionalCurvature y u w) |
| 89 | {q : (slice E.tMinus).carrier} (hq : q ∈ connectedComponent x) |
| 90 | (hregular : q ∈ E.regular_limit) : |
| 91 | connectedComponent x ⊆ E.regular_limit := by |
| 92 | obtain ⟨B, s, hs, hbound⟩ := |
| 93 | positive_component_curvature_bounded_near hC E v x hpos hq hregular |
| 94 | exact component_subset_regular_of_curvature_tail E v x hs hbound |
| 95 | |
| 96 | end PoincareMT.M47Positive |