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.ThreeDimensional.Compact.QuotientMaximum |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Compact.QuotientHomothety |
| 3 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Compact.RicciSpectrum |
| 4 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Compact.Einstein |
| 5 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Compact.RicciPositive |
| 6 | |
| 7 | /-! |
| 8 | # Roundness of compact three-dimensional shrinking flows |
| 9 | |
| 10 | On the actual self-similar flow, the maximum of the normalized Ricci square |
| 11 | is independent of time. Its quotient PDE and the three-dimensional reaction |
| 12 | force this maximum to be `1 / 3`. The resulting Einstein identity implies |
| 13 | constant positive sectional curvature on every slice of the same flow. |
| 14 | |
| 15 | This is the compact branch of Morgan--Tian, Claim 9.43, p. 208. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | open scoped Manifold ContDiff Bundle Topology BigOperators |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.ShrinkingSolitonFlow |
| 26 | |
| 27 | variable {M : Type u} [TopologicalSpace M] |
| 28 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 29 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 30 | [SecondCountableTopology M] [ConnectedSpace M] [CompactSpace M] |
| 31 | {S : GradientShrinkingSolitonData 3 M} |
| 32 | |
| 33 | theorem ricciNormSq_eq_scalarSq_div_three_of_compact_ricci_pos |
| 34 | (hC : RicciFlowCurvatureTheory.{u}) (G : ShrinkingSolitonFlow S) |
| 35 | (hRic : ∀ x : M, ∀ v : TangentSpace (𝓡 3) x, v ≠ 0 → 0 < S.connection.ricci x v v) |
| 36 | {t : ℝ} (ht : t < 0) (y : M) : |
| 37 | (G.flow.connection t).ricciNormSq y = (G.flow.connection t).scalarCurvature y ^ 2 / 3 := by |
| 38 | let D := G.flow.connection t |
| 39 | have hD := hC.tensor_calculus 3 M (G.flow.metric t) D |
| 40 | have hRS (z : M) : 0 < S.connection.scalarCurvature z := |
| 41 | S.connection.scalarCurvature_pos_of_ricci_pos |
| 42 | (hC.tensor_calculus 3 M S.metric S.connection) z (hRic z) |
| 43 | have hR (z : M) : 0 < D.scalarCurvature z := G.scalarCurvature_pos_at_time hRS ht z |
| 44 | have hRicT (z : M) (v : TangentSpace (𝓡 3) z) (hv : v ≠ 0) : 0 < D.ricci z v v := by |
| 45 | obtain ⟨E⟩ := G.self_similar t ht |
| 46 | exact E.ricci_pos (abs_pos.mpr ht.ne) S.connection D hRic z v hv |
| 47 | obtain ⟨x, hmax, htime⟩ := G.exists_stationary_normalizedRicciNormSq_max hC hRS ht |
| 48 | have hlocal : IsLocalMax (fun z => D.ricciNormSq z / D.scalarCurvature z ^ 2) x := |
| 49 | Filter.Eventually.of_forall (hmax t ht) |
| 50 | have hineq := G.flow.normalizedRicciNormSq_deriv_le_at_localMax hC |
| 51 | (show t ∈ interior (Set.Iio 0) by simpa only [interior_Iio, Set.mem_Iio] using ht) hR hlocal |
| 52 | rw [htime] at hineq |
| 53 | let b := (G.flow.metric t).orthonormalBasis x |
| 54 | let Q := ∑ i, ∑ j, D.ricci x (b i) (b j) * |
| 55 | (∑ a, ∑ c, D.curvatureTensor x (b i) (b a) (b j) (b c) * D.ricci x (b a) (b c)) |
| 56 | have hreact : 0 ≤ D.scalarCurvature x * Q - D.ricciNormSq x ^ 2 := by |
| 57 | change 0 ≤ 4 * (Q - D.ricciNormSq x ^ 2 / D.scalarCurvature x) / |
| 58 | D.scalarCurvature x ^ 2 at hineq |
| 59 | have hnum := (le_div_iff₀ (sq_pos_of_pos (hR x))).mp hineq |
| 60 | rw [zero_mul] at hnum |
| 61 | have hQ := (mul_nonneg_iff_of_pos_left (by norm_num : (0 : ℝ) < 4)).mp hnum |
| 62 | have hmul := (div_le_iff₀ (hR x)).mp (sub_nonneg.mp hQ) |
| 63 | nlinarith only [hmul] |
| 64 | have hx := D.ricciNormSq_eq_scalarSq_div_three_of_reaction_nonneg hD x (hRicT x) hreact |
| 65 | have hqy := hmax t ht y |
| 66 | change D.ricciNormSq y / D.scalarCurvature y ^ 2 ≤ |
| 67 | D.ricciNormSq x / D.scalarCurvature x ^ 2 at hqy |
| 68 | rw [hx] at hqy |
| 69 | have hqx : (D.scalarCurvature x ^ 2 / 3) / D.scalarCurvature x ^ 2 = (1 / 3 : ℝ) := by |
| 70 | field_simp [(hR x).ne'] |
| 71 | rw [hqx] at hqy |
| 72 | apply le_antisymm |
| 73 | · have hu := (div_le_iff₀ (sq_pos_of_pos (hR y))).mp hqy |
| 74 | linarith only [hu] |
| 75 | · exact D.scalarSq_div_three_le_ricciNormSq_of_ricci_pos hD y (hRicT y) |
| 76 | |
| 77 | theorem einstein_at_time_of_compact_ricci_pos |
| 78 | (hC : RicciFlowCurvatureTheory.{u}) (G : ShrinkingSolitonFlow S) |
| 79 | (hRic : ∀ x : M, ∀ v : TangentSpace (𝓡 3) x, v ≠ 0 → 0 < S.connection.ricci x v v) |
| 80 | {t : ℝ} (ht : t < 0) (x : M) (u v : TangentSpace (𝓡 3) x) : |
| 81 | (G.flow.connection t).ricci x u v = ((G.flow.connection t).scalarCurvature x / 3) * |
| 82 | (G.flow.metric t).inner x u v := |
| 83 | (G.flow.connection t).ricci_eq_scalar_div_three_mul_inner_of_norm_eq x |
| 84 | (G.ricciNormSq_eq_scalarSq_div_three_of_compact_ricci_pos hC hRic ht x) u v |
| 85 | |
| 86 | /-- The compact positive-Ricci shrinking soliton is round on every slice |
| 87 | of the supplied self-similar flow. -/ |
| 88 | theorem compactRoundModel_of_ricci_pos |
| 89 | (hC : RicciFlowCurvatureTheory.{u}) (G : ShrinkingSolitonFlow S) |
| 90 | (hRic : ∀ x : M, ∀ v : TangentSpace (𝓡 3) x, v ≠ 0 → 0 < S.connection.ricci x v v) : |
| 91 | Nonempty (CompactRoundShrinkingModel G) := by |
| 92 | refine ⟨⟨inferInstance, fun t ht => ?_⟩⟩ |
| 93 | apply (G.flow.connection t).constantPositiveSectionalCurvature_of_three_dimensional_einstein |
| 94 | (hC.tensor_calculus 3 M (G.flow.metric t) (G.flow.connection t)) |
| 95 | (G.einstein_at_time_of_compact_ricci_pos hC hRic ht) |
| 96 | apply G.scalarCurvature_pos_at_time _ ht |
| 97 | intro x |
| 98 | exact S.connection.scalarCurvature_pos_of_ricci_pos |
| 99 | (hC.tensor_calculus 3 M S.metric S.connection) x (hRic x) |
| 100 | |
| 101 | /-- Every compact shrinking soliton datum has the compact-round model on |
| 102 | the exact supplied flow, under the original curvature predecessor service. -/ |
| 103 | theorem compactRoundModel |
| 104 | (hC : RicciFlowCurvatureTheory.{u}) (G : ShrinkingSolitonFlow S) : |
| 105 | Nonempty (CompactRoundShrinkingModel G) := |
| 106 | G.compactRoundModel_of_ricci_pos hC (G.ricci_pos_of_compact hC) |
| 107 | |
| 108 | end PoincareMT.ShrinkingSolitonFlow |