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.Compactness.Coordinates.Ellipticity |
| 2 | import PoincareLib.Geometry.RicciFlow.Compactness.DerivativeControl |
| 3 | import PoincareLib.Geometry.Riemannian.Coordinates.Exponential.JetBounds.FiniteOrder.Pullback |
| 4 | import PoincareLib.Geometry.Riemannian.Coordinates.Exponential.JetBounds.PrecompactGauss |
| 5 | |
| 6 | /-! |
| 7 | # Eventual metric-jet bounds for the source normal charts |
| 8 | |
| 9 | M04 supplies an eventual bound for each covariant curvature derivative. A finite |
| 10 | intersection of these tails suffices for each metric jet. The estimate applies |
| 11 | to every normalized source normal chart of the prescribed radius, so it retains |
| 12 | the maps already chosen for the finite compact covers. |
| 13 | |
| 14 | Reference: Morgan--Tian, Theorem 5.6, pp. 86--87, and Proposition 5.14, |
| 15 | pp. 90--91. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | set_option synthInstance.maxHeartbeats 100000 |
| 21 | |
| 22 | open Set Filter |
| 23 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 24 | |
| 25 | namespace PoincareMT.PointedRicciFlowCompactnessHypotheses |
| 26 | |
| 27 | /-- Each zero-time normal-coordinate jet is bounded uniformly over controlled |
| 28 | centres and normalized charts, on a tail allowed to depend on the jet order. -/ |
| 29 | theorem eventually_uniform_zero_time_exponential_metric_jet_bound_of_local_derivative_estimates |
| 30 | {n : ℕ} {T' T : ℝ} |
| 31 | (H : PointedRicciFlowCompactnessHypotheses n T' T) |
| 32 | (hShi : LocalCurvatureDerivativeEstimates.{0}) |
| 33 | {A ρ R : ℝ} (hA : 0 < A) (hρ : 0 < ρ) (hρR : ρ < R) (m : ℕ) : |
| 34 | ∃ B : ℝ, 0 ≤ B ∧ ∀ᶠ k in atTop, |
| 35 | let C := H.sequence.carrier k |
| 36 | let F := H.sequence.flow k |
| 37 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 38 | letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace |
| 39 | letI : IsManifold (𝓡 n) ∞ C.carrier := C.isManifold |
| 40 | ∀ p ∈ F.zeroBall A, |
| 41 | ∀ L : EuclideanSpace ℝ (Fin n) ≃L[ℝ] EuclideanSpace ℝ (Fin n), |
| 42 | ∀ Φ : PartialDiffeomorph (𝓡 n) (𝓡 n) |
| 43 | (EuclideanSpace ℝ (Fin n)) C.carrier ∞, |
| 44 | Φ.source = Metric.ball 0 R → Φ.target = (F.metricAt 0).ball p R → |
| 45 | Φ 0 = p → |
| 46 | (∀ u v, (F.metricAt 0).pullbackCoefficients |
| 47 | (extChartAt (𝓡 n) p).symm (extChartAt (𝓡 n) p p) |
| 48 | (L u) (L v) = inner ℝ u v) → |
| 49 | HasFDerivAt (fun w => extChartAt (𝓡 n) p (Φ w)) |
| 50 | L.toContinuousLinearMap 0 → |
| 51 | (∀ w ∈ Metric.ball 0 R, |
| 52 | (F.metricAt 0).IsGeodesicOn (fun t => Φ (t • w)) |
| 53 | {t : ℝ | t • w ∈ Metric.ball 0 R}) → |
| 54 | ∀ x ∈ Metric.closedBall 0 ρ, |
| 55 | ‖iteratedFDeriv ℝ m ((F.metricAt 0).pullbackCoefficients Φ) x‖ ≤ B := by |
| 56 | have hR : 0 < R := hρ.trans hρR |
| 57 | choose D hD hcurv using fun l => |
| 58 | H.eventually_zero_time_curvatureDerivativeNorm_le_of_local_derivative_estimates |
| 59 | hShi (A + R) (by positivity) l |
| 60 | obtain ⟨B, hB, hbound⟩ := CoordinateExponential.exists_uniform_pullback_metric_jet_bound |
| 61 | n m hρ hρR D (fun l => (hD l).le) |
| 62 | refine ⟨B, hB, ?_⟩ |
| 63 | filter_upwards [(eventually_all_finite (Set.finite_Iic m)).mpr |
| 64 | (fun l _ => hcurv l)] with k hk |
| 65 | let C := H.sequence.carrier k |
| 66 | let F := H.sequence.flow k |
| 67 | let : TopologicalSpace C.carrier := C.topologicalSpace |
| 68 | let : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace |
| 69 | let : IsManifold (𝓡 n) ∞ C.carrier := C.isManifold |
| 70 | let g := F.metricAt 0 |
| 71 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : C.carrier → Type _) := |
| 72 | ⟨g.toRiemannianMetric⟩ |
| 73 | dsimp only |
| 74 | intro p hp L Φ hsource htarget hzero hL hderiv hgeo |
| 75 | have he : ContMDiffOn (𝓡 n) (𝓡 n) ∞ Φ (Metric.ball 0 R) := by |
| 76 | simpa only [hsource] using Φ.contMDiffOn |
| 77 | have hnorm := g.pullbackCoefficients_zero_of_orthonormal p |
| 78 | (he.contMDiffAt (Metric.isOpen_ball.mem_nhds (Metric.mem_ball_self hR))) |
| 79 | hzero hderiv hL |
| 80 | apply hbound g (F.flow.connection 0) Φ he |
| 81 | · intro x hx |
| 82 | exact ⟨(Φ.isLocalDiffeomorphAt (𝓡 n) (𝓡 n) ∞ |
| 83 | (hsource.symm ▸ hx)).mfderivToContinuousLinearEquiv (by simp), rfl⟩ |
| 84 | · exact hnorm |
| 85 | · exact CoordinateExponential.gauss_identity_of_radial_family g he hgeo |
| 86 | (fun v hv t ht => |
| 87 | g.tangentNorm_radial_of_normalized_exponential p L hzero hL hderiv hgeo hv ht) |
| 88 | · intro l hl x hx |
| 89 | apply hk l hl (Φ x) |
| 90 | have hxp : Φ x ∈ g.ball p R := by |
| 91 | rw [← htarget] |
| 92 | exact Φ.map_source (hsource.symm ▸ hx) |
| 93 | change g.edist F.base (Φ x) < ENNReal.ofReal (A + R) |
| 94 | rw [ENNReal.ofReal_add hA.le hR.le] |
| 95 | exact Manifold.riemannianEDist_triangle.trans_lt (ENNReal.add_lt_add hp hxp) |
| 96 | |
| 97 | /-- The supplied curvature theory bounds the zero-time normal-coordinate jets. -/ |
| 98 | theorem eventually_uniform_zero_time_exponential_metric_jet_bound |
| 99 | {n : ℕ} {T' T : ℝ} |
| 100 | (H : PointedRicciFlowCompactnessHypotheses n T' T) |
| 101 | (hM04 : RicciFlowCurvatureTheory.{0}) |
| 102 | {A ρ R : ℝ} (hA : 0 < A) (hρ : 0 < ρ) (hρR : ρ < R) (m : ℕ) : |
| 103 | ∃ B : ℝ, 0 ≤ B ∧ ∀ᶠ k in atTop, |
| 104 | let C := H.sequence.carrier k |
| 105 | let F := H.sequence.flow k |
| 106 | letI : TopologicalSpace C.carrier := C.topologicalSpace |
| 107 | letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace |
| 108 | letI : IsManifold (𝓡 n) ∞ C.carrier := C.isManifold |
| 109 | ∀ p ∈ F.zeroBall A, |
| 110 | ∀ L : EuclideanSpace ℝ (Fin n) ≃L[ℝ] EuclideanSpace ℝ (Fin n), |
| 111 | ∀ Φ : PartialDiffeomorph (𝓡 n) (𝓡 n) |
| 112 | (EuclideanSpace ℝ (Fin n)) C.carrier ∞, |
| 113 | Φ.source = Metric.ball 0 R → Φ.target = (F.metricAt 0).ball p R → |
| 114 | Φ 0 = p → |
| 115 | (∀ u v, (F.metricAt 0).pullbackCoefficients |
| 116 | (extChartAt (𝓡 n) p).symm (extChartAt (𝓡 n) p p) |
| 117 | (L u) (L v) = inner ℝ u v) → |
| 118 | HasFDerivAt (fun w => extChartAt (𝓡 n) p (Φ w)) |
| 119 | L.toContinuousLinearMap 0 → |
| 120 | (∀ w ∈ Metric.ball 0 R, |
| 121 | (F.metricAt 0).IsGeodesicOn (fun t => Φ (t • w)) |
| 122 | {t : ℝ | t • w ∈ Metric.ball 0 R}) → |
| 123 | ∀ x ∈ Metric.closedBall 0 ρ, |
| 124 | ‖iteratedFDeriv ℝ m ((F.metricAt 0).pullbackCoefficients Φ) x‖ ≤ B := |
| 125 | H.eventually_uniform_zero_time_exponential_metric_jet_bound_of_local_derivative_estimates |
| 126 | hM04.local_derivative_estimates hA hρ hρR m |
| 127 | |
| 128 | end PoincareMT.PointedRicciFlowCompactnessHypotheses |