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.Soliton.Models.Spherical.FlowScale |
| 2 | import PoincareLib.Geometry.Riemannian.SpaceForm.Sectional |
| 3 | import PoincareLib.Geometry.Riemannian.ScalarOperators.Extrema.FiniteRegularity |
| 4 | import PoincareLib.Geometry.Riemannian.Connection.Uniqueness |
| 5 | |
| 6 | /-! |
| 7 | # Curvature normalization of compact round shrinking solitons |
| 8 | |
| 9 | The soliton equation at the maximum and minimum of its C2 potential forces |
| 10 | sectional curvature one quarter at time minus one. Ricci naturality and the |
| 11 | flow equation then fix the metric scale on the original manifold. |
| 12 | |
| 13 | Morgan--Tian, Theorem 9.42, pp. 206-208. |
| 14 | -/ |
| 15 | |
| 16 | noncomputable section |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 21 | |
| 22 | namespace PoincareMT.CompactRoundShrinkingModel |
| 23 | |
| 24 | variable {M : Type*} [TopologicalSpace M] |
| 25 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 26 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 27 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 28 | {S : GradientShrinkingSolitonData 3 M} {G : ShrinkingSolitonFlow S} |
| 29 | |
| 30 | omit [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 31 | [SecondCountableTopology M] [ConnectedSpace M] in |
| 32 | private theorem round_of_metric_eq {g h : RiemannianMetric 3 M} |
| 33 | (D : LeviCivitaData g) (D' : LeviCivitaData h) (heq : g = h) |
| 34 | (hc : ConstantPositiveSectionalCurvature g D) : |
| 35 | ConstantPositiveSectionalCurvature h D' := by |
| 36 | subst h |
| 37 | obtain ⟨c, hc, hsec⟩ := hc |
| 38 | refine ⟨c, hc, fun x u v hu hv huv => ?_⟩ |
| 39 | have heq : D'.sectionalCurvature x u v = D.sectionalCurvature x u v := by |
| 40 | simp only [LeviCivitaData.sectionalCurvature, D'.curvatureTensor_eq D] |
| 41 | rw [heq] |
| 42 | exact hsec x u v hu hv huv |
| 43 | |
| 44 | /-- The retained soliton metric inherits the model's roundness at time minus one. -/ |
| 45 | theorem soliton_round (C : CompactRoundShrinkingModel G) : |
| 46 | ConstantPositiveSectionalCurvature S.metric S.connection := |
| 47 | round_of_metric_eq (G.flow.connection (-1)) S.connection G.at_minus_one |
| 48 | (C.round_at_time (-1) (by norm_num)) |
| 49 | |
| 50 | /-- Compactness and the soliton equation force the sectional scale one quarter. -/ |
| 51 | theorem soliton_sectionalCurvature (C : CompactRoundShrinkingModel G) |
| 52 | (x : M) (u v : TangentSpace (𝓡 3) x) |
| 53 | (hgram : S.metric.inner x u u * S.metric.inner x v v - |
| 54 | (S.metric.inner x u v) ^ 2 ≠ 0) : |
| 55 | S.connection.sectionalCurvature x u v = (1 / 4 : ℝ) := by |
| 56 | let : CompactSpace M := C.compact |
| 57 | obtain ⟨c, _, hsec⟩ := C.soliton_round |
| 58 | have hall (y : M) (a b : TangentSpace (𝓡 3) y) |
| 59 | (hab : S.metric.inner y a a * S.metric.inner y b b - |
| 60 | (S.metric.inner y a b) ^ 2 ≠ 0) : |
| 61 | S.connection.sectionalCurvature y a b = c := |
| 62 | S.connection.sectionalCurvature_eq_of_orthonormal y c (hsec y) a b hab |
| 63 | have hRic (y : M) (a b : TangentSpace (𝓡 3) y) : |
| 64 | S.connection.ricci y a b = 2 * c * S.metric.inner y a b := by |
| 65 | have h := S.connection.ricci_of_constant_sectional y c (hall y) a b |
| 66 | norm_num at h |
| 67 | exact h |
| 68 | have hunit (y : M) : ∃ a : TangentSpace (𝓡 3) y, S.metric.inner y a a = 1 := by |
| 69 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 70 | ⟨S.metric.toRiemannianMetric⟩ |
| 71 | let i : Fin (Module.finrank ℝ (TangentSpace (𝓡 3) y)) := ⟨0, by simp [TangentSpace]⟩ |
| 72 | refine ⟨S.metric.orthonormalBasis y i, ?_⟩ |
| 73 | change inner ℝ (S.metric.orthonormalBasis y i) (S.metric.orthonormalBasis y i) = 1 |
| 74 | simp |
| 75 | obtain ⟨p, _, hp⟩ := isCompact_univ.exists_isMaxOn Set.univ_nonempty |
| 76 | S.potential_C2.continuous.continuousOn |
| 77 | obtain ⟨q, _, hq⟩ := isCompact_univ.exists_isMinOn Set.univ_nonempty |
| 78 | S.potential_C2.continuous.continuousOn |
| 79 | obtain ⟨a, ha⟩ := hunit p |
| 80 | obtain ⟨b, hb⟩ := hunit q |
| 81 | have hmax := S.connection.hessian_nonpos_of_isLocalMax_C2 S.potential_C2 |
| 82 | (hp.isLocalMax (by simp)) a |
| 83 | have hmin := S.connection.hessian_nonneg_of_isLocalMin_C2 S.potential_C2 |
| 84 | (hq.isLocalMin (by simp)) b |
| 85 | have hsolmax := S.soliton_equation p a a |
| 86 | have hsolmin := S.soliton_equation q b b |
| 87 | rw [hRic, ha] at hsolmax |
| 88 | rw [hRic, hb] at hsolmin |
| 89 | have hc : c = (1 / 4 : ℝ) := by linarith |
| 90 | rw [hall x u v hgram, hc] |
| 91 | |
| 92 | /-- The compact round soliton metric is Einstein with constant one half. -/ |
| 93 | theorem soliton_ricci (C : CompactRoundShrinkingModel G) |
| 94 | (x : M) (u v : TangentSpace (𝓡 3) x) : |
| 95 | S.connection.ricci x u v = (1 / 2 : ℝ) * S.metric.inner x u v := by |
| 96 | have h := S.connection.ricci_of_constant_sectional x (1 / 4) |
| 97 | (C.soliton_sectionalCurvature x) u v |
| 98 | norm_num at h |
| 99 | exact h |
| 100 | |
| 101 | /-- The supplied flow has a single fixed metric representative up to scale. -/ |
| 102 | theorem inner_eq_neg_time_mul (C : CompactRoundShrinkingModel G) |
| 103 | (t : ℝ) (ht : t < 0) (x : M) (u v : TangentSpace (𝓡 3) x) : |
| 104 | (G.flow.metric t).inner x u v = (-t) * S.metric.inner x u v := |
| 105 | G.inner_eq_neg_time_mul_of_einstein C.soliton_ricci t ht x u v |
| 106 | |
| 107 | end PoincareMT.CompactRoundShrinkingModel |