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.StandardCap.Persistence.SourceNames.Homothety |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.SourceNames.Normalization |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Schedules.Models.FiniteGradient |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Schedules.Models.NormalizedChart |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Schedules.Models.MetricRealization |
| 6 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Schedules.Models.NeckBounds |
| 7 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Scalar.Round.RoundFourJets |
| 8 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Scalar.Round.RoundActualScalar |
| 9 | |
| 10 | /-! |
| 11 | # The analytic estimate on an almost-round component |
| 12 | |
| 13 | M44's comparison chart gives uniform four-jets and normalized scalar at |
| 14 | least three. Scaling the Euclidean realization and transporting its actual |
| 15 | operators yields the scalar-power bounds. Morgan--Tian Definition 9.76, |
| 16 | p. 231; see the 2026-09-15 model-analytic margin review. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | |
| 22 | open Set Filter |
| 23 | open scoped Manifold ContDiff Topology |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | namespace PoincareMT.M45 |
| 28 | |
| 29 | open PoincareMT.M44 |
| 30 | |
| 31 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 32 | |
| 33 | /-- One positive constant gives both required analytic estimates on |
| 34 | every actual small round certificate in the prescribed universe. |
| 35 | Source: Definition 9.76, p. 231, and equation (2.1), p. 30. -/ |
| 36 | theorem exists_model_round_analytic_bound : |
| 37 | ∃ C : ℝ, 0 < C ∧ ∀ {M : Type u} [TopologicalSpace M] |
| 38 | [ChartedSpace E M] [IsManifold (𝓡 3) ∞ M], |
| 39 | ∀ (g : RiemannianMetric 3 M) (D : LeviCivitaData g) (epsilon : ℝ) |
| 40 | (R : SingularRoundComponent g epsilon), epsilon ≤ 1 / 200 → |
| 41 | ∀ x ∈ R.carrier, M45PointwiseAnalyticEstimate g D x C := by |
| 42 | obtain ⟨B, _, hB⟩ := exists_round_comparison_coordinate_bounds |
| 43 | obtain ⟨Cg, hCg, hgradient⟩ := |
| 44 | exists_model_scalar_differential_bound_of_coordinate_jets B |
| 45 | obtain ⟨Ce, hCe, hevolution⟩ := exists_scalar_evolution_bound_of_coordinate_jets 3 |
| 46 | (show (0 : ℝ) < 1 / 2 by norm_num) B |
| 47 | refine ⟨max Cg Ce, lt_of_lt_of_le hCg (le_max_left _ _), ?_⟩ |
| 48 | intro M _ _ _ g D epsilon R hsmall x hx |
| 49 | obtain ⟨_, horder⟩ := model_four_jet_order R.epsilon_pos hsmall |
| 50 | obtain ⟨f, V, gB, DB, hfzero, hV, hzeroV, hf, hinv, hcurv, hgram, hactual⟩ := |
| 51 | hB R (by linarith) horder (R.inverse x) |
| 52 | have hfzero' : f 0 = x := hfzero.trans (R.right_inverse hx) |
| 53 | obtain ⟨gE, DE, W, hW, hzeroW, hWV, hmetric⟩ := |
| 54 | model_metric_realization g hV hzeroV hf hinv |
| 55 | let gQ := m01RescaledMetric gE R.scale R.scale_pos |
| 56 | let DQ := m01RescaledMetric_connection gE DE R.scale R.scale_pos |
| 57 | have hcoeff : gQ.euclideanCoefficients =ᶠ[𝓝 0] |
| 58 | (fun y => R.scale • g.pullbackCoefficients f y) := by |
| 59 | filter_upwards [hW.mem_nhds hzeroW] with y hy |
| 60 | exact congrArg (fun B => R.scale • B) (hmetric y hy) |
| 61 | obtain ⟨hfour, hell, herror⟩ := hactual gQ hcoeff |
| 62 | have hpositive := scalarCurvature_three_le_of_round_metric_error DB DQ 0 |
| 63 | R.epsilon_pos.le hsmall hcurv hgram (fun j hj => herror j (by omega)) |
| 64 | have hgeom (y : E) (hy : y ∈ W) (v w : E) : |
| 65 | gE.inner y v w = g.inner (f y) (mfderiv (𝓡 3) (𝓡 3) f y v) |
| 66 | (mfderiv (𝓡 3) (𝓡 3) f y w) := |
| 67 | congrArg (fun B => B v w) (hmetric y hy) |
| 68 | have hscale : DQ.scalarCurvature 0 = DE.scalarCurvature 0 / R.scale := |
| 69 | M13.homothety_scalarCurvature_eq gE gQ (Diffeomorph.refl (𝓡 3) E ∞) |
| 70 | R.scale R.scale_pos (rescaledMetric_identity_homothety R.scale_pos) DE DQ 0 |
| 71 | rw [hscale, DE.scalarCurvature_eq_of_local_isometry D hW (hf.mono hWV) hgeom hzeroW] |
| 72 | at hpositive |
| 73 | have hscalar : R.scale ≤ D.scalarCurvature (f 0) := by |
| 74 | have h := (le_div_iff₀ R.scale_pos).mp hpositive |
| 75 | linarith [R.scale_pos] |
| 76 | have h := model_analytic_of_normalized_chart D gE DE R.scale_pos hCg hCe hW hzeroW |
| 77 | (hf.mono hWV) (fun y hy => hinv y (hWV hy)) hgeom hscalar |
| 78 | (hgradient gQ DQ 0 hfour hell) (hevolution gQ DQ 0 hfour hell) |
| 79 | simpa only [hfzero'] using h |
| 80 | |
| 81 | end PoincareMT.M45 |