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.GlobalSchedule.Global.GlobalRepresentatives |
| 2 | import PoincareLib.Geometry.RicciFlow.Rescaling.Theory |
| 3 | |
| 4 | /-! |
| 5 | # Geometry and maximality of the global representatives |
| 6 | |
| 7 | The literal representative at each nonnegative time retains its finite |
| 8 | stage's compactness, topology, normalization and pinching. Maximality and |
| 9 | extinction use one stage covering both tested endpoints and the actual |
| 10 | representative isometries. See Section 7 of the common-stage derivation. |
| 11 | Source: Morgan--Tian Section 17.2, printed pp. 409-411. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff ENNReal |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M51.CompletedStageChain |
| 22 | |
| 23 | variable {S : RepairedControlledSchedulesData.{u}} |
| 24 | {N : RepairedNoncollapseInductionData S} |
| 25 | {C : RepairedCanonicalInductionData S N} |
| 26 | {F₀ : SurgeryFlowData.{u}} {k : ℕ} |
| 27 | (Q : CompletedStageChain S N C F₀ k) |
| 28 | |
| 29 | /-- Each nonnegative global slice is the compact slice of its selected finite stage. -/ |
| 30 | theorem global_slices_compact (t : ℝ) (ht : 0 ≤ t) : |
| 31 | IsCompact (univ : Set (Q.globalSlice t).carrier) := by |
| 32 | have hflow : Q.representativeFlow t = Q.flow (Q.representativeIndex t) := if_pos ht |
| 33 | exact Eq.mpr (congrArg |
| 34 | (fun F : SurgeryFlowData.{u} => IsCompact (univ : Set (F.slice t).carrier)) hflow) |
| 35 | ((Q.flow (Q.representativeIndex t)).slices_compact t (Q.representative_time t ht)) |
| 36 | |
| 37 | /-- The literal representatives retain the exclusion of two-sided projective planes. -/ |
| 38 | theorem global_no_two_sided_projective_plane (t : ℝ) (ht : 0 ≤ t) : |
| 39 | SurgeryNoTwoSidedProjectivePlane (Q.globalSlice t) := by |
| 40 | simpa only [globalSlice, representativeFlow, if_pos ht] using |
| 41 | (Q.flow (Q.representativeIndex t)).no_two_sided_projective_plane t |
| 42 | (Q.representative_time t ht) |
| 43 | |
| 44 | /-- The selected initial slice is nonempty. -/ |
| 45 | theorem global_initial_nonempty : Nonempty (Q.globalSlice 0).carrier := |
| 46 | (Q.representativeFlow 0).initial_nonempty |
| 47 | |
| 48 | /-- The selected initial metric retains the raw flow's normalization bounds. -/ |
| 49 | theorem global_initial_normalized (x : (Q.globalSlice 0).carrier) : |
| 50 | (Q.globalConnection 0).curvatureTensorNorm x ≤ 1 ∧ |
| 51 | ∀ r : ℝ, 0 < r → r ≤ 1 → |
| 52 | ENNReal.ofReal (euclideanUnitBallLebesgueVolume.toReal * r ^ 3 / 2) ≤ |
| 53 | calibratedMetricVolume (Q.globalMetric 0) ((Q.globalMetric 0).ball x r) := |
| 54 | (Q.representativeFlow 0).initial_normalized x |
| 55 | |
| 56 | /-- Pinching at each nonnegative time holds in its literal selected connection. -/ |
| 57 | theorem global_pinched (t : ℝ) (ht : 0 ≤ t) : |
| 58 | SurgeryPinchedAt (Q.globalConnection t) t := by |
| 59 | have hflow : Q.representativeFlow t = Q.flow (Q.representativeIndex t) := if_pos ht |
| 60 | exact Eq.mpr (congrArg |
| 61 | (fun F : SurgeryFlowData.{u} => SurgeryPinchedAt (F.connection t) t) hflow) |
| 62 | (Q.pinched (Q.representativeIndex t) t (Q.representative_time t ht)) |
| 63 | |
| 64 | /-- A maximal global ordinary interval has full curvature-norm blowup at its terminal surgery. -/ |
| 65 | theorem global_maximal_intervals |
| 66 | (H13 : GeneralizedParabolicRescalingTheory.{u} 3) |
| 67 | (a b : ℝ) (ha : a ∈ Ici (0 : ℝ)) |
| 68 | (hstart : a = 0 ∨ a ∈ Q.globalSurgeryTimes) (hab : a < b) |
| 69 | (_hI : Ico a b ⊆ Ici 0) (hfree : Disjoint Q.globalSurgeryTimes (Ioo a b)) |
| 70 | [Nonempty (Q.globalSlice a).carrier] |
| 71 | (hb : b ∈ Q.globalSurgeryTimes ∨ b ∉ Ici (0 : ℝ)) |
| 72 | (L s : ℝ) (hs : s < b) : |
| 73 | ∃ t ∈ Ioo (max a s) b, ∃ x : (Q.globalSlice t).carrier, |
| 74 | L < (Q.globalConnection t).curvatureTensorNorm x := by |
| 75 | have ha0 : 0 ≤ a := ha |
| 76 | have hb0 : 0 ≤ b := ha0.trans hab.le |
| 77 | have hbS : b ∈ Q.globalSurgeryTimes := |
| 78 | hb.resolve_right (fun h => h hb0) |
| 79 | obtain ⟨n, hH⟩ := Q.exists_lt_horizon b |
| 80 | have hJ : Icc a b ⊆ (Q.flow n).time_domain := by |
| 81 | intro t ht |
| 82 | exact Q.mem_time_domain_of_lt_horizon n (ha0.trans ht.1) (ht.2.trans_lt hH) |
| 83 | have haF : a ∈ (Q.flow n).time_domain := hJ ⟨le_rfl, hab.le⟩ |
| 84 | have hbF : b ∈ (Q.flow n).time_domain := hJ ⟨hab.le, le_rfl⟩ |
| 85 | have hstartF : a = 0 ∨ a ∈ (Q.flow n).surgery_times := |
| 86 | hstart.imp_right (Q.global_surgery_iff n a haF).mp |
| 87 | have hIF : Ico a b ⊆ (Q.flow n).time_domain := fun t ht => hJ ⟨ht.1, ht.2.le⟩ |
| 88 | have hfreeF : Disjoint (Q.flow n).surgery_times (Ioo a b) := by |
| 89 | apply Set.disjoint_left.mpr |
| 90 | intro t htS htI |
| 91 | exact Set.disjoint_left.mp hfree (Q.surgery_mem_global n htS) htI |
| 92 | let : Nonempty ((Q.flow n).slice a).carrier := |
| 93 | Nonempty.map (Q.globalIdentify n a haF).symm inferInstance |
| 94 | obtain ⟨t, ht, x, hx⟩ := (Q.flow n).maximal_intervals a b haF hstartF hab hIF hfreeF |
| 95 | (Or.inl ((Q.global_surgery_iff n b hbF).mp hbS)) L s hs |
| 96 | have htF : t ∈ (Q.flow n).time_domain := |
| 97 | hJ ⟨(le_max_left a s).trans ht.1.le, ht.2.le⟩ |
| 98 | have H := H13.metric_homothety _ _ ((Q.flow n).metric t) (Q.globalMetric t) |
| 99 | (Q.globalIdentify n t htF) 1 (by norm_num) (Q.globalIdentify_homothety n t htF) |
| 100 | refine ⟨t, ht, Q.globalIdentify n t htF x, ?_⟩ |
| 101 | rw [H.curvature_norm_eq ((Q.flow n).connection t) (Q.globalConnection t), div_one] |
| 102 | exact hx |
| 103 | |
| 104 | /-- Emptiness persists between global slices by passage to a common covering stage. -/ |
| 105 | theorem global_extinction_permanent (s t : ℝ) |
| 106 | (hs : s ∈ Ici (0 : ℝ)) (ht : t ∈ Ici (0 : ℝ)) (hst : s ≤ t) |
| 107 | (hempty : IsEmpty (Q.globalSlice s).carrier) : IsEmpty (Q.globalSlice t).carrier := by |
| 108 | obtain ⟨n, hH⟩ := Q.exists_lt_horizon t |
| 109 | have hsF := Q.mem_time_domain_of_lt_horizon n hs (hst.trans_lt hH) |
| 110 | have htF := Q.mem_time_domain_of_lt_horizon n ht hH |
| 111 | have hsEmpty : IsEmpty ((Q.flow n).slice s).carrier := |
| 112 | ⟨fun x => hempty.false (Q.globalIdentify n s hsF x)⟩ |
| 113 | have htEmpty := (Q.flow n).extinction_permanent s t hsF htF hst hsEmpty |
| 114 | exact ⟨fun x => htEmpty.false ((Q.globalIdentify n t htF).symm x)⟩ |
| 115 | |
| 116 | end PoincareMT.M51.CompletedStageChain |