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.CapGeometry.SelectedRadialFieldExtraction |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.RadialFieldLimit |
| 4 | |
| 5 | /-! |
| 6 | # The actual selected radial-field limit is unit and parallel |
| 7 | |
| 8 | The metric germs are the actual scalar-normalized pullbacks. The actual |
| 9 | outward field is unit, and its retained covariant derivative is arbitrarily |
| 10 | small. Metric and field jet convergence therefore preserve unit length and |
| 11 | force the native limit covariant derivative to vanish. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter VectorField |
| 18 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 19 | |
| 20 | namespace PoincareMT.M35.OrdinaryRealization |
| 21 | |
| 22 | noncomputable section |
| 23 | |
| 24 | open Uniqueness |
| 25 | |
| 26 | local notation "V" => EuclideanSpace ℝ (Fin 3) |
| 27 | local notation "B" => V →L[ℝ] V →L[ℝ] ℝ |
| 28 | |
| 29 | local instance selectedParallelDualNormedGroup : NormedAddCommGroup (V →L[ℝ] ℝ) := inferInstance |
| 30 | local instance selectedParallelDualNormedSpace : NormedSpace ℝ (V →L[ℝ] ℝ) := inferInstance |
| 31 | local instance selectedParallelMetricNormedGroup : NormedAddCommGroup B := inferInstance |
| 32 | local instance selectedParallelMetricNormedSpace : NormedSpace ℝ B := inferInstance |
| 33 | |
| 34 | /-- A smooth limit of the actual selected radial fields has actual unit |
| 35 | length and zero native covariant derivative at each retained point. -/ |
| 36 | theorem blowupSequence_coordinate_radial_limit_parallel |
| 37 | (P : M35StandardCapPredecessors) |
| 38 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 39 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 40 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 41 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 42 | (hd : Tendsto (fun k => ((E.flow.metric (t k)).edist 0 (x k)).toReal * |
| 43 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k))) atTop atTop) |
| 44 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 45 | (blowupBackwardInterval ⊤)) : |
| 46 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 47 | letI : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 48 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 49 | ∀ (coordinate : V → L.limit.sliceCarrier.carrier) |
| 50 | (_hc : ContMDiff (𝓡 3) (𝓡 3) ∞ coordinate) |
| 51 | (_hi : ∀ z, (mfderiv (𝓡 3) (𝓡 3) coordinate z).IsInvertible) |
| 52 | (g : RiemannianMetric 3 V) (D : LeviCivitaData g) |
| 53 | (_hg : g.euclideanCoefficients = (L.limit.flow.metric 0).pullbackCoefficients coordinate) |
| 54 | (sigma : ℕ → ℕ) (_hsigma : Tendsto sigma atTop atTop) |
| 55 | (p : V) (Z : V → V) (_hZ : ContDiffAt ℝ ∞ Z p), |
| 56 | (∀ m ≤ 1, Tendsto (fun k => iteratedFDeriv ℝ m |
| 57 | (selectedCoordinateRadialField P E t x ht hR L coordinate (sigma k)) p) atTop |
| 58 | (𝓝 (iteratedFDeriv ℝ m Z p))) → |
| 59 | g.inner p (Z p) (Z p) = 1 ∧ ∀ w : V, D.connection Z p w = 0 := by |
| 60 | classical |
| 61 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 62 | let : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 63 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 64 | have : T3Space L.limit.sliceCarrier.carrier := L.limit.carrier.t3Space |
| 65 | have : ConnectedSpace L.limit.sliceCarrier.carrier := L.limit.connectedSpace |
| 66 | intro coordinate hc hi g D hg sigma hsigma p Z hZ hjet |
| 67 | have hdomain := hsigma.eventually |
| 68 | (blowupSequence_coordinate_radial_domain P E t x ht hR hd L |
| 69 | coordinate hc hi {p} isCompact_singleton) |
| 70 | obtain ⟨N, hN⟩ := eventually_atTop.mp hdomain |
| 71 | let mu (k : ℕ) := k + N |
| 72 | have hmu : StrictMono mu := fun i j hij => Nat.add_lt_add_right hij N |
| 73 | let idx := sigma ∘ mu |
| 74 | have hidx : Tendsto idx atTop atTop := hsigma.comp hmu.tendsto_atTop |
| 75 | let Q k := (blowupSequence P E t x ht hR).scale (L.subsequence (idx k)) |
| 76 | have hQ k : 0 < Q k := (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence (idx k)) |
| 77 | let G (k : ℕ) : RiemannianMetric 3 V := |
| 78 | M13.scaleSmoothMetric (E.flow.metric (t (L.subsequence (idx k)))) (Q k) (hQ k) |
| 79 | let DG (k : ℕ) : LeviCivitaData (G k) := |
| 80 | M13.scaleLeviCivitaData (E.flow.connection (t (L.subsequence (idx k)))) (Q k) (hQ k) |
| 81 | let f (k : ℕ) (z : V) := ((L.embedding (idx k)).forward 0 |
| 82 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos (idx k)).le, le_rfl⟩ (coordinate z)).val |
| 83 | let Zseq k := pullback ℝ (f k) (radialUnitField (G k)) |
| 84 | have hgood (k : ℕ) : ∀ᶠ y in 𝓝 p, ContMDiffAt (𝓡 3) (𝓡 3) ∞ (f k) y ∧ |
| 85 | (mfderiv (𝓡 3) (𝓡 3) (f k) y).IsInvertible ∧ f k y ≠ 0 := |
| 86 | (hN (mu k) (Nat.le_add_left N k) p (mem_singleton _)).1 |
| 87 | have hreal (k : ℕ) : ∃ gd : Σ g' : RiemannianMetric 3 V, LeviCivitaData g', |
| 88 | gd.1.euclideanCoefficients =ᶠ[𝓝 p] (G k).pullbackCoefficients (f k) := by |
| 89 | obtain ⟨U, hUsub, hU, hpU⟩ := mem_nhds_iff.mp (hgood k) |
| 90 | obtain ⟨gk, Dk, hcoeff, _⟩ := exists_local_curvature_derivative_realization |
| 91 | (G k) (DG k) (f k) hU hpU |
| 92 | (fun y hy => (hUsub hy).1) (fun y hy => (hUsub hy).2.1) |
| 93 | exact ⟨⟨gk, Dk⟩, hcoeff⟩ |
| 94 | choose gd hgd using hreal |
| 95 | have hmetric (k : ℕ) : ∀ᶠ y in 𝓝 p, ∀ u v : V, |
| 96 | (gd k).1.inner y u v = (G k).inner (f k y) |
| 97 | (mfderiv (𝓡 3) (𝓡 3) (f k) y u) (mfderiv (𝓡 3) (𝓡 3) (f k) y v) := by |
| 98 | filter_upwards [hgd k] with y hy u v |
| 99 | exact congrArg (fun b : B => b u v) hy |
| 100 | have hmjets (r : ℕ) : Tendsto (fun k => iteratedFDeriv ℝ r (gd k).1.euclideanCoefficients p) |
| 101 | atTop (𝓝 (iteratedFDeriv ℝ r g.euclideanCoefficients p)) := |
| 102 | blowupSequence_fixed_coordinate_metric_jets P E t x ht hR L coordinate hc |
| 103 | (fun _ => p) p tendsto_const_nhds idx hidx (fun k => (gd k).1) g |
| 104 | (Eventually.of_forall hgd) (Eventually.of_forall fun y => congrFun hg y) r |
| 105 | have hrotation (k : ℕ) : ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 106 | ∀ x u v : V, (G k).inner (standardRotation A x) |
| 107 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 108 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = (G k).inner x u v := |
| 109 | scaleSmoothMetric_rotation_invariant (E.rotation_invariant (t (L.subsequence (idx k))) |
| 110 | (ht _)) _ _ |
| 111 | let glim : RiemannianMetric 3 L.limit.sliceCarrier.carrier := L.limit.flow.metric 0 |
| 112 | let R := (glim.edist L.limit.base (coordinate p)).toReal + 1 |
| 113 | have hpball : coordinate p ∈ glim.ball L.limit.base R := |
| 114 | (ENNReal.lt_ofReal_iff_toReal_lt (glim.edist_ne_top _ _)).mpr |
| 115 | (lt_add_of_pos_right _ zero_lt_one) |
| 116 | have hbound (ε : ℝ) (hε : 0 < ε) : ∀ᶠ k in atTop, ∀ w : V, |
| 117 | (G k).inner (f k p) ((DG k).connection (radialUnitField (G k)) (f k p) w) |
| 118 | ((DG k).connection (radialUnitField (G k)) (f k p) w) ≤ |
| 119 | ε ^ 2 * (G k).inner (f k p) w w := by |
| 120 | have hh := hidx.eventually |
| 121 | (blowupSequence_far_tip_radial_field_on_limit_ball P E t x ht hR hd L R ε hε) |
| 122 | filter_upwards [hh] with k hk |
| 123 | exact (hk (coordinate p) hpball).2.2 |
| 124 | have hs (k : ℕ) : ContDiffAt ℝ ∞ (Zseq k) p := by |
| 125 | have hf := contMDiffAt_iff_contDiffAt.mp (hgood k).self_of_nhds.1 |
| 126 | have hi' : (fderiv ℝ (f k) p).IsInvertible := by |
| 127 | simpa only [mfderiv_eq_fderiv] using (hgood k).self_of_nhds.2.1 |
| 128 | exact euclidean_radial_pullback_contDiffAt _ hf hi' (hgood k).self_of_nhds.2.2 |
| 129 | have hretain (k : ℕ) (ε : ℝ) |
| 130 | (hb : ∀ w : V, (G k).inner (f k p) |
| 131 | ((DG k).connection (radialUnitField (G k)) (f k p) w) |
| 132 | ((DG k).connection (radialUnitField (G k)) (f k p) w) ≤ |
| 133 | ε ^ 2 * (G k).inner (f k p) w w) : |
| 134 | (gd k).1.inner p (Zseq k p) (Zseq k p) = 1 ∧ ∀ w : V, |
| 135 | (gd k).1.inner p ((gd k).2.connection (Zseq k) p w) |
| 136 | ((gd k).2.connection (Zseq k) p w) ≤ ε ^ 2 * (gd k).1.inner p w w := by |
| 137 | have hh := radialUnitField_pullback (gd k).2 (DG k) (hrotation k) |
| 138 | (hgood k).self_of_nhds.1 ((hgood k).mono fun _ hy => hy.2.1) |
| 139 | (hmetric k) (hgood k).self_of_nhds.2.2 ε hb |
| 140 | simpa only [Zseq, mpullback_eq_pullback] using! hh.2 |
| 141 | exact parallel_unit_of_metric_and_field_jets (fun k => (gd k).2) D |
| 142 | (fun _ => p) p hZ hs (fun r _ => hmjets r) |
| 143 | (fun r hr => (hjet r hr).comp hmu.tendsto_atTop) |
| 144 | ((hbound 1 zero_lt_one).mono fun k hk => (hretain k 1 hk).1) |
| 145 | (fun ε hε => (hbound ε hε).mono fun k hk => (hretain k ε hk).2) |
| 146 | |
| 147 | end |
| 148 | |
| 149 | end PoincareMT.M35.OrdinaryRealization |