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.Component.ComponentEstimateFullHistory |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Component.ComponentEstimateEndpoint |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Component.ComponentEstimateNormalization |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.Curvature.ScalarGradientHomothety |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.Curvature.ScalarEvolutionHomothety |
| 6 | |
| 7 | /-! |
| 8 | # Component analytic bounds from the actual backward history |
| 9 | |
| 10 | The model cutoff constructs a compact actual history. Local Shi estimates |
| 11 | on its normalized interior interval and literal terminal homothety yield |
| 12 | the unchanged analytic output. Source: the component induction, |
| 13 | Morgan--Tian pp. 402-405, with Theorem 3.29 and Definition 3.40. |
| 14 | See `proof-work/tasks/M47/derivations/component-frontier.md`, Stage G2. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set |
| 21 | open scoped Manifold ContDiff Bundle Topology |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.M47 |
| 26 | |
| 27 | /-- The actual terminal weak-2C component has the fixed gradient and |
| 28 | absolute scalar-evolution bounds, using the original hypothesis window |
| 29 | and raw surgery events; Morgan--Tian pp. 402-405. -/ |
| 30 | theorem componentAnalyticBounds |
| 31 | (P : M47Predecessors.{u}) (PA : M47ComponentAnalyticPredecessors.{u}) |
| 32 | (C : ℝ) (hC : 1 ≤ C) : Nonempty (M47ComponentAnalyticBounds.{u} C) := by |
| 33 | obtain ⟨d, hd, hd1, delta, hdelta, hhistory⟩ := exists_component_backward_duration P PA C hC |
| 34 | let L := 4 * (C + 1) |
| 35 | have hL : 1 ≤ L := by dsimp only [L]; linarith |
| 36 | have hK : 0 < 13 * L := by positivity |
| 37 | obtain ⟨A, hA, hendpoint⟩ := exists_component_normalized_endpoint_constant P.m04 PA |
| 38 | (d / 2) (13 * L) (half_pos hd) (by linarith) hK |
| 39 | refine ⟨{ |
| 40 | duration := d |
| 41 | duration_pos := hd |
| 42 | duration_le_one := hd1 |
| 43 | curvature_threshold := max 6 (Real.exp 4) |
| 44 | one_le_curvature_threshold := (by norm_num : (1 : ℝ) ≤ 6).trans (le_max_left _ _) |
| 45 | constant := A |
| 46 | constant_pos := hA |
| 47 | delta := delta |
| 48 | delta_pos := hdelta |
| 49 | estimate := ?_ |
| 50 | }⟩ |
| 51 | intro g₀ K F hmodel hconstants _hparameter _hepsilon t Q x hxQ hthreshold |
| 52 | htime hpinch hcanonical hcutoff N hx |
| 53 | have hQ6 : 6 ≤ Q := (le_max_left _ _).trans hthreshold |
| 54 | have hQexp : Real.exp 4 ≤ Q := (le_max_right _ _).trans hthreshold |
| 55 | have hQ : 0 < Q := by linarith |
| 56 | let : LocallyConnectedSpace (F.slice t).carrier := |
| 57 | ChartedSpace.locallyConnectedSpace (EuclideanSpace ℝ (Fin 3)) (F.slice t).carrier |
| 58 | have hopen : IsOpen N.carrier := by rw [N.component_eq]; exact isOpen_connectedComponent |
| 59 | let U : TopologicalSpace.Opens (F.slice t).carrier := ⟨N.carrier, hopen⟩ |
| 60 | let : CompactSpace U := isCompact_iff_compactSpace.mp N.compact |
| 61 | have hcutoff' : ∀ T ∈ Icc (t - d / Q) t, T ∈ F.surgery_times → |
| 62 | F.parameters.delta T ≤ delta F.standard_initial F.local_constants := by |
| 63 | intro T hT hS |
| 64 | rw [hmodel, hconstants] |
| 65 | exact hcutoff T hT hS |
| 66 | obtain ⟨e, he, hscalar⟩ := hhistory F t Q x hxQ hQ6 hQexp htime hpinch hcanonical |
| 67 | hcutoff' N hx U rfl |
| 68 | obtain ⟨G, hcurvature, hmetric⟩ := exists_component_normalized_history P hd hQ hQexp hL |
| 69 | U ⟨x, hx⟩ e he (fun s hs y => (hscalar s hs y).le) hpinch |
| 70 | let z : U := ⟨x, hx⟩ |
| 71 | have hbounds := hendpoint U G hcurvature z |
| 72 | have hsmooth : ContMDiffOn (𝓡 3) (𝓡 3) ∞ |
| 73 | (Subtype.val : U → (F.slice t).carrier) univ := contMDiff_subtype_val.contMDiffOn |
| 74 | have hgrad := scalarGradientNorm_eq_of_local_homothety |
| 75 | (G.connection (d / 2)) (F.connection t) hQ isOpen_univ hsmooth |
| 76 | (fun y _hy => hmetric y) (x := z) (mem_univ z) |
| 77 | have hevolution := (G.connection (d / 2)).scalarEvolutionNumerator_eq_of_local_homothety |
| 78 | (F.connection t) hQ isOpen_univ hsmooth |
| 79 | (fun y _hy => hmetric y) (x := z) (mem_univ z) |
| 80 | have hgradBound : scalarGradientNorm (F.metric t) (F.connection t) x / |
| 81 | Q ^ (3 / 2 : ℝ) ≤ A := hgrad.symm.trans_le hbounds.1 |
| 82 | have hevolutionBound : |((F.connection t).laplacian (F.connection t).scalarCurvature x + |
| 83 | 2 * (F.connection t).ricciNormSq x) / Q ^ 2| ≤ A := by |
| 84 | rw [← hevolution] |
| 85 | exact hbounds.2 |
| 86 | rw [abs_div, abs_of_pos (pow_pos hQ 2)] at hevolutionBound |
| 87 | refine ⟨?_, ?_, ?_⟩ |
| 88 | · simpa only [hxQ] using hQ |
| 89 | · rw [hxQ] |
| 90 | exact (div_le_iff₀ (Real.rpow_pos_of_pos hQ _)).1 hgradBound |
| 91 | · rw [hxQ] |
| 92 | exact (div_le_iff₀ (pow_pos hQ 2)).1 hevolutionBound |
| 93 | |
| 94 | end PoincareMT.M47 |