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.Limit.Finite.LimitFiniteSliceJets |
| 2 | import PoincareLib.Geometry.Riemannian.Normalization.Scaling.Distance |
| 3 | |
| 4 | /-! |
| 5 | # A fixed original stage captures each physical terminal ball |
| 6 | |
| 7 | Complete terminal geometry and the original compact coefficient jets |
| 8 | give physical source-ball capture before the shifted search is chosen. |
| 9 | The center and every captured point retain their actual sigma identity. |
| 10 | MT Proposition 17.1; limit-finite-endpoint-search.md, W3. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Topology ENNReal |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M47 |
| 22 | |
| 23 | private theorem physical_ball_transport |
| 24 | (F : SurgeryFlowData.{u}) {p q : (t : ℝ) × (F.slice t).carrier} |
| 25 | (hpq : p = q) {r : ℝ} (y : (F.slice q.1).carrier) |
| 26 | (hy : y ∈ (F.metric q.1).ball q.2 r) : |
| 27 | ∃ z ∈ (F.metric p.1).ball p.2 r, |
| 28 | (⟨p.1, z⟩ : (t : ℝ) × (F.slice t).carrier) = ⟨q.1, y⟩ := by |
| 29 | cases hpq |
| 30 | exact ⟨y, hy, rfl⟩ |
| 31 | |
| 32 | variable (F : ℕ → SurgeryFlowData.{u}) (W : ∀ k, M33RegularHistoryWindow (F k)) |
| 33 | (history : ∀ k, M33RegularHistoryData (W k)) (baseTime : ℕ → ℝ) |
| 34 | (hbaseTime : ∀ k, baseTime k ∈ (history k).generalized.interval) |
| 35 | (basePoint : ∀ k, ((history k).generalized.slice (baseTime k)).carrier) |
| 36 | (hPositive : ∀ k, 0 < ((F k).connection (baseTime k)).scalarCurvature |
| 37 | ((history k).history.forward (baseTime k) (hbaseTime k) (basePoint k))) |
| 38 | (hDiverges : Tendsto (fun k => ((F k).connection (baseTime k)).scalarCurvature |
| 39 | ((history k).history.forward (baseTime k) (hbaseTime k) (basePoint k))) atTop atTop) |
| 40 | |
| 41 | local notation "V" => regularHistoryBlowupSequence F W history baseTime hbaseTime |
| 42 | basePoint hPositive hDiverges |
| 43 | |
| 44 | variable {J : Set ℝ} (G : GeneralizedBlowupConvergence |
| 45 | (regularHistoryBlowupSequence F W history baseTime hbaseTime basePoint hPositive hDiverges) J) |
| 46 | |
| 47 | private local instance endpointCaptureTopology : TopologicalSpace G.limit.carrier.carrier := |
| 48 | G.limit.carrier.topologicalSpace |
| 49 | private local instance endpointCaptureCharts : ChartedSpace |
| 50 | (EuclideanSpace ℝ (Fin 3)) G.limit.carrier.carrier := G.limit.carrier.chartedSpace |
| 51 | private local instance endpointCaptureManifold : IsManifold (𝓡 3) ∞ G.limit.carrier.carrier := |
| 52 | G.limit.carrier.isManifold |
| 53 | |
| 54 | /-- A fixed original exhaustion stage captures the whole physical ball |
| 55 | at the original bad point, with the exact original chart and clock. -/ |
| 56 | theorem limitFinite_terminal_physical_ball_capture |
| 57 | (P : M47Predecessors.{u}) {R : ℝ} (hR : 0 < R) : |
| 58 | ∃ j : ℕ, ∀ᶠ k : ℕ in atTop, |
| 59 | G.exhaustion.space j ⊆ G.exhaustion.space k ∧ |
| 60 | ∀ y ∈ ((F (G.subsequence k)).metric (baseTime (G.subsequence k))).ball |
| 61 | ((history (G.subsequence k)).history.forward (baseTime (G.subsequence k)) |
| 62 | (hbaseTime (G.subsequence k)) (basePoint (G.subsequence k))) |
| 63 | (R / Real.sqrt ((V).scale (G.subsequence k))), |
| 64 | ∃ x ∈ G.exhaustion.space j, |
| 65 | (⟨limitFinitePhysicalSliceTime G 0 k, |
| 66 | limitFinitePhysicalSliceChart G F (fun i => (history i).history) 0 k x⟩ : |
| 67 | (t : ℝ) × ((F (G.subsequence k)).slice t).carrier) = |
| 68 | ⟨baseTime (G.subsequence k), y⟩ := by |
| 69 | let : T3Space G.limit.carrier.carrier := G.limit.carrier.t3Space |
| 70 | let phi := fun k => limitFinitePhysicalSliceChart G F (fun i => (history i).history) 0 k |
| 71 | let g := fun k => rescaledMetric |
| 72 | ((F (G.subsequence k)).metric (limitFinitePhysicalSliceTime G 0 k)) |
| 73 | ((V).scale (G.subsequence k)) ((V).base_scalar_pos (G.subsequence k)) |
| 74 | obtain ⟨j, hj⟩ := terminalCurvature_source_balls_of_original_jets |
| 75 | g (G.limit.flow.metric 0) (G.limit.complete 0 G.limit.zero_mem) |
| 76 | G.exhaustion.space G.exhaustion.space_open G.exhaustion.space_increasing |
| 77 | G.exhaustion.space_covers phi |
| 78 | (limitFinite_physical_slice_chart_source G F (fun i => (history i).history) 0) |
| 79 | (fun q : G.limit.sliceCarrier.carrier => limitCanonicalNativeChart q) |
| 80 | (fun x => ⟨x, mem_extChartAt_source x⟩) |
| 81 | (fun q _ hK hKc => limitFinite_physical_slice_coefficient_jets G P F |
| 82 | (fun i => (history i).history) 0 G.limit.zero_mem q 0 hK hKc) |
| 83 | G.limit.base hR |
| 84 | refine ⟨j, ?_⟩ |
| 85 | filter_upwards [hj, eventually_ge_atTop j] with k hk hjk |
| 86 | refine ⟨G.exhaustion.space_increasing hjk, ?_⟩ |
| 87 | have hzero : limitFiniteSliceTime G 0 k = 0 := by simp [limitFiniteSliceTime] |
| 88 | have hpoint : (G.embedding k).pointMap (limitFiniteSliceTime G 0 k) |
| 89 | (limitFinite_slice_time_mem G 0 k) G.limit.base = (V).base (G.subsequence k) := by |
| 90 | simpa only [hzero] using G.base_preserving k |
| 91 | ⟨neg_nonpos.mpr (G.exhaustion.time_pos k).le, le_rfl⟩ |
| 92 | have hcenter := limitCanonicalPhysicalChart_point_identity (G.embedding k) |
| 93 | (G.exhaustion.space_open k) (history (G.subsequence k)).history |
| 94 | (limitFiniteSliceTime G 0 k) (limitFinite_slice_time_mem G 0 k) |
| 95 | (limitFinite_physical_slice_time_mem G 0 k) G.limit.base |
| 96 | ((V).base (G.subsequence k)) (hbaseTime (G.subsequence k)) hpoint |
| 97 | intro y hy |
| 98 | obtain ⟨z, hz, hzy⟩ := physical_ball_transport (F (G.subsequence k)) hcenter y hy |
| 99 | have hzscaled : z ∈ (g k).ball (phi k G.limit.base) R := by |
| 100 | have hsqrt : 0 < Real.sqrt ((V).scale (G.subsequence k)) := |
| 101 | Real.sqrt_pos.mpr ((V).base_scalar_pos (G.subsequence k)) |
| 102 | have hne := (ENNReal.ofReal_pos.mpr hsqrt).ne' |
| 103 | change (rescaledMetric _ _ _).edist _ z < ENNReal.ofReal R |
| 104 | rw [rescaledMetric_edist] |
| 105 | change _ < ENNReal.ofReal (R / Real.sqrt ((V).scale (G.subsequence k))) at hz |
| 106 | rw [ENNReal.ofReal_div_of_pos hsqrt] at hz |
| 107 | simpa only [phi, limitFinitePhysicalSliceChart, limitFinitePhysicalSliceTime, mul_comm] using |
| 108 | (ENNReal.lt_div_iff_mul_lt (Or.inl hne) (Or.inl ENNReal.ofReal_ne_top)).mp hz |
| 109 | obtain ⟨x, hx, hxz⟩ := hk hzscaled |
| 110 | refine ⟨x, hx, ?_⟩ |
| 111 | exact (congrArg (fun z => |
| 112 | (⟨limitFinitePhysicalSliceTime G 0 k, z⟩ : |
| 113 | (t : ℝ) × ((F (G.subsequence k)).slice t).carrier)) hxz).trans hzy |
| 114 | |
| 115 | end PoincareMT.M47 |