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.SourceNames |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.CriticalBall.SourceCriticalBallForwardGeometry |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.CriticalBall.SourceCriticalBallForwardMetricError |
| 5 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.CriticalBall.SourceCriticalBallInitialCoefficients |
| 6 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Persistence.NeckGeometry.ForwardCoreCoefficientReadout |
| 7 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Persistence.NeckAnalysis.RawError |
| 8 | |
| 9 | /-! |
| 10 | # Actual forward necks from the fixed initial limiting neck |
| 11 | |
| 12 | The forward geometry and actual normalized metric error yield the strict |
| 13 | cylinder comparison after a fixed accuracy enlargement. Every output |
| 14 | retains the original raw zero-node center, scale and connection, and the |
| 15 | same fixed central sphere under the literal retained embedding. Source: |
| 16 | Morgan--Tian Proposition 10.7, pp. 253-254; M28 derivation 109. |
| 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.M28.CounterexampleNeckFamily |
| 28 | |
| 29 | open tube PoincareMT.Proofs.M28.NeckTransfer PoincareMT.Proofs.M28.NeckAnalysis |
| 30 | |
| 31 | variable {epsilon C A : ℝ} |
| 32 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 33 | ((n : ℝ) + 1) ((n : ℝ) + 1)} |
| 34 | |
| 35 | set_option maxHeartbeats 2400000 in |
| 36 | -- The fixed reference neck and actual dependent source fields remain in the final statement. |
| 37 | /-- A fixed initial neck persists forward as actual raw-source necks with |
| 38 | the exact source center and scale and the image of its fixed central sphere. |
| 39 | The error estimate and target comparison are proved, not assumed. Source: |
| 40 | Proposition 10.7, pp. 253-254; M28 derivation 109. -/ |
| 41 | theorem eventually_exists_regularRawStage_forward_neck (H : CounterexampleNeckFamily E) |
| 42 | (T : ∀ k, SourceTubeData (H.segment k)) (A1 : ℝ) (hA1 : 0 < A1) |
| 43 | (phi : ℕ → ℕ) |
| 44 | (G : RegularPointedMetricConvergence |
| 45 | (fun k => H.tubeCriticalMetric T A1 (phi k)) |
| 46 | (fun k => H.tubeCriticalBase T A1 hA1 (phi k))) : |
| 47 | letI := G.limitCarrier.topologicalSpace |
| 48 | letI := G.limitCarrier.chartedSpace |
| 49 | letI := G.limitCarrier.isManifold |
| 50 | ∀ (L : EpsilonNeck G.limitMetric) (j : ℕ), L.carrier ⊆ G.exhaustion j → |
| 51 | L.center = G.base → L.scale = (4 * max C 2)⁻¹ → |
| 52 | ∀ theta : ℝ, L.epsilon < theta → theta < 1 / 2 → |
| 53 | ∀ᶠ k in atTop, ∃ N : EpsilonNeck |
| 54 | ((E (phi (G.subsequence k) + H.shift)).flow.metric |
| 55 | (E (phi (G.subsequence k) + H.shift)).time), |
| 56 | N.epsilon = theta ∧ |
| 57 | N.center = ((T (phi (G.subsequence k))).list.node 0).2.center ∧ |
| 58 | N.scale = ((T (phi (G.subsequence k))).list.node 0).2.scale ∧ |
| 59 | N.connection = ((T (phi (G.subsequence k))).list.node 0).2.connection ∧ |
| 60 | N.carrier = (H.regularRawStageDiffeomorph T A1 hA1 phi G k) '' |
| 61 | L.region (-theta⁻¹) theta⁻¹ ∧ |
| 62 | N.central_sphere = (H.regularRawStageDiffeomorph T A1 hA1 phi G k) '' |
| 63 | L.central_sphere ∧ |
| 64 | ∀ z : RoundCylinderSpace, N.coordinate_map z = |
| 65 | H.regularRawStageDiffeomorph T A1 hA1 phi G k (L.coordinate_map z) := by |
| 66 | let := G.limitCarrier.topologicalSpace |
| 67 | let := G.limitCarrier.chartedSpace |
| 68 | let := G.limitCarrier.isManifold |
| 69 | intro L j hLstage hLcenter hLscale theta htheta hhalf |
| 70 | let m := ⌊theta⁻¹⌋₊ |
| 71 | have htheta_pos : 0 < theta := L.epsilon_pos.trans htheta |
| 72 | have hmpos : 1 ≤ m := (Nat.one_le_floor_iff _).mpr |
| 73 | ((one_le_inv₀ htheta_pos).mpr (by linarith)) |
| 74 | obtain ⟨n, hnm⟩ := Nat.exists_eq_succ_of_ne_zero (by omega : m ≠ 0) |
| 75 | have hn : n + 1 ≤ ⌊L.epsilon⁻¹⌋₊ := by |
| 76 | have horder : m ≤ ⌊L.epsilon⁻¹⌋₊ := cylinderOrder_mono L.epsilon_pos htheta.le |
| 77 | omega |
| 78 | obtain ⟨delta, hdelta, hperturb⟩ := |
| 79 | exists_roundCylinderClose_perturbation_tolerance L.epsilon_pos htheta |
| 80 | obtain ⟨rho, hrho, hraw⟩ := exists_cylinder_raw_error_tolerance m hdelta |
| 81 | let J := cylinderScalarCoordinateEquiv.symm.toContinuousLinearMap |
| 82 | let F := L.scale⁻¹ ^ 2 * (max 1 ‖J‖) ^ m |
| 83 | have hF : 0 < F := mul_pos (pow_pos (inv_pos.mpr L.scale_pos) 2) |
| 84 | (pow_pos (lt_of_lt_of_le zero_lt_one (le_max_left _ _)) m) |
| 85 | obtain ⟨K, hK⟩ := H.exists_regularRawStage_forward_metric_error T A1 hA1 phi G |
| 86 | L j hLstage n hn (rho / F) (div_pos hrho hF) |
| 87 | filter_upwards [eventually_ge_atTop j, eventually_ge_atTop K] with k hjk hkK |
| 88 | obtain ⟨V, hcenter, hscale, hconnection, hcarrier, hsphere, hmap⟩ := |
| 89 | H.exists_regularRawStage_forward_neck_geometry T A1 hA1 phi G L j hLstage |
| 90 | hLcenter theta htheta.le hhalf k hjk |
| 91 | let i := phi (G.subsequence k) |
| 92 | let Q := (E (i + H.shift)).flow.scalar |
| 93 | ⟨(E (i + H.shift)).time, (E (i + H.shift)).basepoint⟩ |
| 94 | have hQ : 0 < Q := H.base_scalar_pos i |
| 95 | have hscaleQ : Q * V.scale ^ 2 = L.scale ^ 2 := by |
| 96 | rw [hscale, hLscale] |
| 97 | exact H.normalizedSlice_initial_scale_sq T i |
| 98 | let S : RoundCylinderTwoTensor := fun z v w => |
| 99 | L.scale⁻¹ ^ 2 * roundCylinderPullback G.limitMetric L.coordinate_map z v w |
| 100 | have hsource : RoundCylinderClose L.epsilon 0 S := L.metric_comparison.close |
| 101 | have hclose : RoundCylinderClose theta 0 V.tensor := by |
| 102 | apply hperturb 0 (by norm_num) V.tensor S hsource V.tensor_smooth |
| 103 | intro z hz |
| 104 | apply hraw theta V.tensor S V.tensor_smooth |
| 105 | (hsource.1.mono_epsilon_m28 L.epsilon_pos htheta.le) z hz |
| 106 | intro r hr a b |
| 107 | have hsL := cylinderStrip_mono L.epsilon_pos htheta.le hz |
| 108 | have h := V.norm_frozen_forward_difference_jet_le L Q hQ hscaleQ z.1 hz hsL a b r |
| 109 | have hlocal : V.coordinate_map ∘ |
| 110 | (cylinderSphereParametrization z.1 ∘ cylinderScalarCoordinates z.2) = |
| 111 | H.regularRawStageDiffeomorph T A1 hA1 phi G k ∘ cylinderNeckChart L z.1 z.2 := by |
| 112 | funext x |
| 113 | exact hmap _ |
| 114 | rw [hlocal] at h |
| 115 | have hmetric : ‖iteratedFDeriv ℝ r (fun x => |
| 116 | RiemannianMetric.pullbackCoefficients |
| 117 | (M13.scaleSmoothMetric ((E (i + H.shift)).flow.metric |
| 118 | (E (i + H.shift)).time) Q hQ) |
| 119 | (H.regularRawStageDiffeomorph T A1 hA1 phi G k ∘ cylinderNeckChart L z.1 z.2) x - |
| 120 | G.limitMetric.pullbackCoefficients (cylinderNeckChart L z.1 z.2) x) 0‖ ≤ rho / F := |
| 121 | hK k hkK z hsL r (by omega) |
| 122 | have hpower : ‖J‖ ^ r ≤ (max 1 ‖J‖) ^ m := |
| 123 | (pow_le_pow_left₀ (norm_nonneg J) (le_max_right _ _) r).trans |
| 124 | (pow_le_pow_right₀ (le_max_left _ _) hr) |
| 125 | have hfactor : L.scale⁻¹ ^ 2 * ‖J‖ ^ r ≤ F := |
| 126 | mul_le_mul_of_nonneg_left hpower (sq_nonneg _) |
| 127 | exact h.trans ((mul_le_mul_of_nonneg_left hmetric |
| 128 | (mul_nonneg (sq_nonneg _) (pow_nonneg (norm_nonneg _) _))).trans |
| 129 | ((mul_le_mul_of_nonneg_right hfactor (div_pos hrho hF).le).trans_eq |
| 130 | (mul_div_cancel₀ rho hF.ne'))) |
| 131 | exact ⟨V.toEpsilonNeck hclose, rfl, hcenter, hscale, hconnection, hcarrier, hsphere, hmap⟩ |
| 132 | |
| 133 | end PoincareMT.M28.CounterexampleNeckFamily |