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.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Spacetime.StrongNecks.Geometry.StrongNeckCenterCharts |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.PartialLimits.Coordinates.NormalChartFlowLimit |
| 4 | |
| 5 | /-! |
| 6 | # A common backward limit of actual normalized strong-neck center charts |
| 7 | |
| 8 | Uniform actual source geometry constructs one fixed coordinate flow on |
| 9 | the closed eighth-window. Original necks and their chosen raw rescalings |
| 10 | are retained throughout; this is the final-chart route of derivation 137. |
| 11 | Source: Morgan--Tian Proposition 5.14 and Sections 10.5-10.6, pp. 90-91, |
| 12 | 263-265. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.M28 |
| 25 | |
| 26 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 27 | |
| 28 | /-- Restrict the supplied actual normalized half-flow to the closed |
| 29 | eighth-window. Its total metric and connection remain unchanged. -/ |
| 30 | def GeneralizedStrongNeck.rescaled_eighth_flow |
| 31 | {F : GeneralizedRicciFlowData.{u}} {t epsilon : ℝ} |
| 32 | (S : GeneralizedStrongNeck F t epsilon) |
| 33 | (H : RescaledRawCylinderData (C := F.slice t) |
| 34 | (U := strongNeckOpen S) (J := strongNeckBackwardInterval) |
| 35 | (strongNeckCylinder S) (GeneralizedStrongNeck.physical_interval_subset S)) : |
| 36 | RicciFlow 3 (strongNeckOpen S) (Icc (-(1 / 8 : ℝ)) 0) := |
| 37 | Poincare.Geometry.RicciFlow.Harnack.restrictFlow |
| 38 | (GeneralizedStrongNeck.rescaled_half_flow S H) |
| 39 | (fun _ hs => ⟨by linarith [hs.1], hs.2⟩) ordConnected_Icc |
| 40 | ⟨-(1 / 8 : ℝ), by norm_num, 0, by norm_num, by norm_num⟩ |
| 41 | |
| 42 | /-- Every actual source sequence at one admissible accuracy has a |
| 43 | common normal-coordinate backward flow limit. The universal radii |
| 44 | precede the accuracy and the source sequence. The literal original |
| 45 | charts, center, image-ball, ellipticity, and source scalar readouts are |
| 46 | retained for the later inverse-map and curvature comparisons. -/ |
| 47 | theorem exists_strongNeck_source_center_limit_accuracy |
| 48 | (hShi : LocalCurvatureDerivativeEstimates.{u}) : |
| 49 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ (1 / 200 : ℝ) ∧ |
| 50 | ∃ K R rho : ℝ, ∃ hrho : 0 < rho, |
| 51 | 0 < K ∧ 0 < R ∧ R < 1 / 8 ∧ 2 * rho < R ∧ |
| 52 | ∀ epsilon : ℝ, 0 < epsilon → epsilon ≤ epsilon₀ → |
| 53 | ∀ (F : ℕ → GeneralizedRicciFlowData.{u}) (t : ℕ → ℝ) |
| 54 | (S : ∀ i, GeneralizedStrongNeck (F i) (t i) epsilon) |
| 55 | (H : ∀ i, RescaledRawCylinderData (C := (F i).slice (t i)) |
| 56 | (U := strongNeckOpen (S i)) (J := strongNeckBackwardInterval) |
| 57 | (strongNeckCylinder (S i)) (GeneralizedStrongNeck.physical_interval_subset (S i))), |
| 58 | ∃ Phi : ∀ i, PartialDiffeomorph (𝓡 3) (𝓡 3) E (strongNeckOpen (S i)) ∞, |
| 59 | (∀ i, (Phi i).source = Metric.ball 0 R ∧ |
| 60 | (Phi i).target = |
| 61 | ((GeneralizedStrongNeck.rescaled_half_flow (S i) (H i)).metric 0).ball |
| 62 | (strongNeckSourceCenter (S i)) R ∧ |
| 63 | Phi i 0 = strongNeckSourceCenter (S i) ∧ |
| 64 | (∀ x ∈ Metric.ball 0 R, |
| 65 | ((GeneralizedStrongNeck.rescaled_half_flow (S i) (H i)).metric 0).edist |
| 66 | (strongNeckSourceCenter (S i)) (Phi i x) = ENNReal.ofReal ‖x‖) ∧ |
| 67 | (∀ v w, ((GeneralizedStrongNeck.rescaled_half_flow |
| 68 | (S i) (H i)).metric 0).pullbackCoefficients |
| 69 | (Phi i) 0 v w = inner ℝ v w) ∧ |
| 70 | (∀ x ∈ Metric.closedBall (0 : E) (2 * rho), ∀ v, |
| 71 | (1 / 4 : ℝ) * ‖v‖ ^ 2 ≤ |
| 72 | ((GeneralizedStrongNeck.rescaled_half_flow |
| 73 | (S i) (H i)).metric 0).pullbackCoefficients |
| 74 | (Phi i) x v v ∧ |
| 75 | ((GeneralizedStrongNeck.rescaled_half_flow |
| 76 | (S i) (H i)).metric 0).pullbackCoefficients |
| 77 | (Phi i) x v v ≤ (9 / 4 : ℝ) * ‖v‖ ^ 2) ∧ |
| 78 | ((GeneralizedStrongNeck.rescaled_half_flow |
| 79 | (S i) (H i)).connection 0).scalarCurvature |
| 80 | (Phi i 0) = 1) ∧ |
| 81 | (∀ i s, s ∈ Icc (-(1 / 8 : ℝ)) 0 → ∀ x : strongNeckOpen (S i), |
| 82 | ((GeneralizedStrongNeck.rescaled_eighth_flow |
| 83 | (S i) (H i)).connection s).curvatureTensorNorm |
| 84 | x ≤ K) ∧ |
| 85 | (letI : Nonempty (Metric.ball (0 : E) rho) := ⟨⟨0, Metric.mem_ball_self hrho⟩⟩; |
| 86 | Nonempty (FixedCoordinateFlowLimit |
| 87 | (fun i => GeneralizedStrongNeck.rescaled_eighth_flow (S i) (H i)) |
| 88 | (Metric.ball 0 rho) Metric.isOpen_ball (fun i x => Phi i x))) := by |
| 89 | classical |
| 90 | obtain ⟨epsilon₀, hepsilon₀, hthreshold, K, R, rho, hK, _hRdef, |
| 91 | hR, hRsmall, hrho, hrhoR, hfamily⟩ := |
| 92 | exists_strongNeck_source_center_charts_accuracy hShi |
| 93 | refine ⟨epsilon₀, hepsilon₀, hthreshold, K, R, rho, hrho, hK, hR, hRsmall, hrhoR, ?_⟩ |
| 94 | intro epsilon hepsilon hsmall F t S H |
| 95 | obtain ⟨B, hB, hsource⟩ := hfamily epsilon hepsilon hsmall |
| 96 | have hex (i : ℕ) := hsource (F i) (t i) (S i) (H i) |
| 97 | choose hcurv L Phi hdomain htarget hzero hL hderivative hnormal hgeo hspeed |
| 98 | hdist hell hjets hscalar using hex |
| 99 | refine ⟨Phi, ?_, ?_, ?_⟩ |
| 100 | · intro i |
| 101 | exact ⟨hdomain i, htarget i, hzero i, hdist i, hnormal i, hell i, hscalar i⟩ |
| 102 | · intro i s hs x |
| 103 | exact hcurv i s ⟨by linarith [hs.1], hs.2⟩ x |
| 104 | · exact exists_fixedCoordinateFlowLimit_of_normal_charts |
| 105 | (by norm_num : (0 : ℝ) < 1 / 8) hrho hrhoR hK.le |
| 106 | (fun i => GeneralizedStrongNeck.rescaled_eighth_flow (S i) (H i)) |
| 107 | (fun i => strongNeckSourceCenter (S i)) L Phi hdomain hzero hL hderivative hgeo hspeed |
| 108 | hell (fun i s hs x => hcurv i s ⟨by linarith [hs.1], hs.2⟩ x) |
| 109 | B (fun m => (hB m).le) |
| 110 | (fun m i s hs x hx => hjets i m s ⟨by linarith [hs.1], hs.2⟩ x hx) |
| 111 | |
| 112 | end PoincareMT.M28 |