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.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.TerminalBlowup.RadialWarping |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.TerminalBlowup.Mathlib.WeightedRadius |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.TerminalBlowup.EndScalarFloor |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.TerminalBlowup.MetricNondegeneration |
| 6 | |
| 7 | /-! |
| 8 | # Actual angular collapse and terminal blowup away from the tip |
| 9 | |
| 10 | Morgan-Tian Proposition 12.31, pp. 325-326, direct rotational argument. |
| 11 | The actual complete radial metric has a concave orbit radius. Its genuine |
| 12 | end scalar floor therefore bounds every orbit radius by 4(1-t). Every |
| 13 | fixed nonzero angular tangent direction collapses, which contradicts the |
| 14 | metric lower bound supplied by a finite terminal scalar at that point. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set Filter |
| 21 | open scoped Manifold ContDiff Bundle Topology |
| 22 | |
| 23 | namespace PoincareMT.M35.Uniqueness |
| 24 | |
| 25 | private noncomputable abbrev e (i : Fin 3) : StandardCapSpace := EuclideanSpace.single i 1 |
| 26 | |
| 27 | /-- Section 12.6: actual complete radial arclength tends to infinity |
| 28 | in the original Euclidean radial parameter. -/ |
| 29 | theorem radialArclength_tendsto_atTop |
| 30 | (g : RiemannianMetric 3 StandardCapSpace) (hcomplete : MetricComplete g) : |
| 31 | Tendsto (radialArclength g) atTop atTop := by |
| 32 | apply tendsto_atTop.2 |
| 33 | intro R |
| 34 | obtain ⟨r, _, hR⟩ := radialArclength_unbounded g hcomplete R |
| 35 | exact (eventually_ge_atTop r).mono |
| 36 | (fun u hu => hR.le.trans ((radialArclength_strictMono g).monotone hu)) |
| 37 | |
| 38 | /-- Proposition 12.31: completeness, actual nonnegative sectional |
| 39 | curvature and a compact-complement scalar floor bound every orbit radius. -/ |
| 40 | theorem axisWarpingRadius_sq_le_of_exterior_scalar_floor |
| 41 | {g : RiemannianMetric 3 StandardCapSpace} (D : LeviCivitaData g) |
| 42 | (hrotation : ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 43 | ∀ x u v : StandardCapSpace, |
| 44 | g.inner (standardRotation A x) |
| 45 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 46 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = g.inner x u v) |
| 47 | (hcomplete : MetricComplete g) (hsec : D.NonnegativeSectionalCurvature) |
| 48 | {c : ℝ} (hc : 0 < c) {K : Set StandardCapSpace} (hK : IsCompact K) |
| 49 | (hfloor : ∀ x, x ∉ K → c ≤ D.scalarCurvature x) |
| 50 | {r : ℝ} (hr : 0 < r) : axisWarpingRadius g r ^ 2 ≤ 2 / c := by |
| 51 | have hconcave (u : ℝ) (hu : 0 < u) : axisWarpingSecond g u ≤ 0 := by |
| 52 | apply div_nonpos_of_nonpos_of_nonneg |
| 53 | · exact mul_nonpos_of_nonpos_of_nonneg (neg_nonpos.mpr (axisWarpingRadius_pos g hu).le) |
| 54 | (radialMixedCurvatureFactor_nonneg D hrotation hsec hu) |
| 55 | · exact (axisRadialCoefficient_pos g u).le |
| 56 | have hscalar (u : ℝ) (hu : 0 < u) : D.scalarCurvature (u • e 2) = |
| 57 | 2 * (1 - axisWarpingSlope g u ^ 2) / axisWarpingRadius g u ^ 2 - |
| 58 | 4 * axisWarpingSecond g u / axisWarpingRadius g u := by |
| 59 | rw [rotational_scalar_axis D hrotation hu] |
| 60 | calc |
| 61 | _ = 2 * (radialTangentialCurvatureFactor g u / axisAngularCoefficient g u) + |
| 62 | 4 * (radialMixedCurvatureFactor g u / axisRadialCoefficient g u) := by ring |
| 63 | _ = _ := by |
| 64 | rw [radialTangentialCurvatureFactor_eq_warping g hu, |
| 65 | radialMixedCurvatureFactor_eq_warping g hu] |
| 66 | ring |
| 67 | have hend : ∀ᶠ u in atTop, |
| 68 | c ≤ 2 * (1 - axisWarpingSlope g u ^ 2) / axisWarpingRadius g u ^ 2 - |
| 69 | 4 * axisWarpingSecond g u / axisWarpingRadius g u := by |
| 70 | obtain ⟨B, hB, hbound⟩ := hK.isBounded.exists_pos_norm_le |
| 71 | filter_upwards [eventually_gt_atTop B] with u hu |
| 72 | have hu0 : 0 < u := hB.trans hu |
| 73 | rw [← hscalar u hu0] |
| 74 | apply hfloor |
| 75 | intro hmem |
| 76 | have hh := hbound (u • e 2) hmem |
| 77 | have heq : ‖u • e 2‖ = u := by |
| 78 | simp [e, norm_smul, Real.norm_eq_abs, abs_of_pos hu0] |
| 79 | rw [heq] at hh |
| 80 | exact not_le_of_gt hu hh |
| 81 | exact weighted_radial_radius_sq_le_of_eventual_scalar_floor |
| 82 | (fun u hu => axisWarpingRadius_pos g hu) |
| 83 | (fun u hu => axisWarpingRadius_hasDerivAt g hu) |
| 84 | (fun u hu => axisWarpingSlope_hasDerivAt g hu) |
| 85 | (fun u _ => radialArclength_hasDerivAt g u) |
| 86 | (fun u _ => axisRadialSpeed_pos g u) |
| 87 | (radialArclength_tendsto_atTop g hcomplete) hconcave hc hend hr |
| 88 | |
| 89 | end PoincareMT.M35.Uniqueness |
| 90 | |
| 91 | namespace PoincareMT.RepairedStandardCapExistenceData |
| 92 | |
| 93 | open M35.Uniqueness |
| 94 | |
| 95 | /-- Proposition 12.31: every actual orbit has squared radius at most |
| 96 | four times the remaining standard lifetime. -/ |
| 97 | theorem axisWarpingRadius_sq_le_remaining_time |
| 98 | (P : RicciFlowCurvatureTheory.{0}) {g₀ : StandardInitialMetric} |
| 99 | (E : RepairedStandardCapExistenceData g₀) {t r : ℝ} |
| 100 | (ht : t ∈ Ico 0 E.flow.base.lifetime) (hr : 0 < r) : |
| 101 | axisWarpingRadius (E.flow.metric t) r ^ 2 ≤ 4 * (1 - t) := by |
| 102 | obtain ⟨K, hK, hfloor⟩ := E.exists_compact_exterior_terminal_scalar_floor P ht |
| 103 | have htone : t < 1 := E.lifetime_one ▸ ht.2 |
| 104 | have hc : 0 < 1 / (2 * (1 - t)) := by positivity |
| 105 | have h := axisWarpingRadius_sq_le_of_exterior_scalar_floor (E.flow.connection t) |
| 106 | (E.rotation_invariant t ht) (E.complete t ht) (E.nonnegative_sectional t ht) |
| 107 | hc hK (fun x hx => (hfloor x hx).le) hr |
| 108 | convert h using 1 |
| 109 | field_simp |
| 110 | ring |
| 111 | |
| 112 | /-- Proposition 12.31: a fixed Euclidean angular tangent vector has |
| 113 | actual squared metric norm bounded by a constant times the remaining time. -/ |
| 114 | theorem angular_tangent_inner_le_remaining_time |
| 115 | (P : RicciFlowCurvatureTheory.{0}) {g₀ : StandardInitialMetric} |
| 116 | (E : RepairedStandardCapExistenceData g₀) {t : ℝ} |
| 117 | (ht : t ∈ Ico 0 E.flow.base.lifetime) {x : StandardCapSpace} (hx : x ≠ 0) |
| 118 | (v : StandardCapSpace) (hv : inner ℝ x v = 0) : |
| 119 | (E.flow.metric t).inner x v v ≤ 4 * (1 - t) * (‖v‖ ^ 2 / ‖x‖ ^ 2) := by |
| 120 | have hr : 0 < ‖x‖ := norm_pos_iff.mpr hx |
| 121 | have hrad := E.axisWarpingRadius_sq_le_remaining_time P ht hr |
| 122 | have hrad' : ‖x‖ ^ 2 * axisAngularCoefficient (E.flow.metric t) ‖x‖ ≤ |
| 123 | 4 * (1 - t) := by |
| 124 | simpa only [axisWarpingRadius, mul_pow, |
| 125 | Real.sq_sqrt (axisAngularCoefficient_pos (E.flow.metric t) ‖x‖).le] using hrad |
| 126 | rw [rotational_metric_form_correction (E.flow.metric t) (E.rotation_invariant t ht) hx, |
| 127 | hv, mul_zero, add_zero, real_inner_self_eq_norm_sq] |
| 128 | calc |
| 129 | _ = (‖x‖ ^ 2 * axisAngularCoefficient (E.flow.metric t) ‖x‖) * |
| 130 | (‖v‖ ^ 2 / ‖x‖ ^ 2) := by field_simp [hr.ne'] |
| 131 | _ ≤ _ := mul_le_mul_of_nonneg_right hrad' (div_nonneg (sq_nonneg _) (sq_nonneg _)) |
| 132 | |
| 133 | /-- Proposition 12.31: every fixed nonzero angular tangent direction |
| 134 | collapses in the actual selected metric as the time tends to one. -/ |
| 135 | theorem angular_tangent_metric_tendsto_zero |
| 136 | (P : RicciFlowCurvatureTheory.{0}) {g₀ : StandardInitialMetric} |
| 137 | (E : RepairedStandardCapExistenceData g₀) {x : StandardCapSpace} (hx : x ≠ 0) |
| 138 | (v : StandardCapSpace) (hv : v ≠ 0) (horth : inner ℝ x v = 0) : |
| 139 | Tendsto (fun t => (E.flow.metric t).inner x v v) (𝓝[<] 1) (𝓝 0) := by |
| 140 | apply squeeze_zero' |
| 141 | (Eventually.of_forall (fun t => ((E.flow.metric t).pos x v hv).le)) |
| 142 | · filter_upwards [self_mem_nhdsWithin, |
| 143 | (eventually_gt_nhds (show (0 : ℝ) < 1 by norm_num)).filter_mono |
| 144 | nhdsWithin_le_nhds] with t ht htpos |
| 145 | exact E.angular_tangent_inner_le_remaining_time P |
| 146 | ⟨htpos.le, E.lifetime_one.symm ▸ ht⟩ hx v horth |
| 147 | · have hcont : Continuous (fun t : ℝ => 4 * (1 - t) * (‖v‖ ^ 2 / ‖x‖ ^ 2)) := by |
| 148 | fun_prop |
| 149 | simpa only [sub_self, mul_zero, zero_mul] using |
| 150 | (hcont.continuousAt (x := 1)).tendsto.mono_left nhdsWithin_le_nhds |
| 151 | |
| 152 | private theorem exists_nonzero_angular_vector (x : StandardCapSpace) : |
| 153 | ∃ v : StandardCapSpace, v ≠ 0 ∧ inner ℝ x v = 0 := by |
| 154 | let e (i : Fin 3) : StandardCapSpace := EuclideanSpace.single i 1 |
| 155 | by_cases hx : x 0 = 0 |
| 156 | · refine ⟨e 0, ?_, ?_⟩ |
| 157 | · intro heq |
| 158 | have h := congrArg (fun v : StandardCapSpace => v 0) heq |
| 159 | simp [e] at h |
| 160 | · simp [e, EuclideanSpace.inner_single_right, hx] |
| 161 | · refine ⟨(-x 1) • e 0 + x 0 • e 1, ?_, ?_⟩ |
| 162 | · intro heq |
| 163 | have h := congrArg (fun v : StandardCapSpace => v 1) heq |
| 164 | apply hx |
| 165 | simpa [e] using h |
| 166 | · simp [e, inner_add_right, inner_smul_right, EuclideanSpace.inner_single_right] |
| 167 | ring |
| 168 | |
| 169 | /-- Proposition 12.31: the actual scalar diverges at every fixed |
| 170 | nonzero spatial point, from the actual angular metric collapse. -/ |
| 171 | theorem scalar_tendsto_off_origin |
| 172 | (P : RicciFlowCurvatureTheory.{0}) {g₀ : StandardInitialMetric} |
| 173 | (E : RepairedStandardCapExistenceData g₀) {x : StandardCapSpace} (hx : x ≠ 0) : |
| 174 | Tendsto (fun t => (E.flow.connection t).scalarCurvature x) (𝓝[<] 1) atTop := by |
| 175 | obtain ⟨v, hv, horth⟩ := exists_nonzero_angular_vector x |
| 176 | exact E.scalar_tendsto_of_tangent_metric_tendsto_zero P x v hv |
| 177 | (E.angular_tangent_metric_tendsto_zero P hx v hv horth) |
| 178 | |
| 179 | end PoincareMT.RepairedStandardCapExistenceData |