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.Homothety |
| 2 | |
| 3 | /-! |
| 4 | # Roundness of three-dimensional homothetic slices |
| 5 | |
| 6 | An actual homothety of metrics transports constant positive sectional |
| 7 | curvature, including the scale factor. This transfers the compact |
| 8 | classification from the original slice to the same ancient flow. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open scoped Manifold ContDiff Bundle |
| 14 | |
| 15 | namespace PoincareMT |
| 16 | |
| 17 | variable {M : Type*} [TopologicalSpace M] |
| 18 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 19 | {g h : RiemannianMetric 3 M} |
| 20 | |
| 21 | theorem HomotheticMetricSlice.constantPositiveSectionalCurvature_three |
| 22 | {c : ℝ} (E : HomotheticMetricSlice g h c) (hc : 0 < c) |
| 23 | (D : LeviCivitaData g) (D' : LeviCivitaData h) |
| 24 | (hg : ConstantPositiveSectionalCurvature g D) : |
| 25 | ConstantPositiveSectionalCurvature h D' := by |
| 26 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 27 | ⟨g.toRiemannianMetric⟩ |
| 28 | obtain ⟨k, hk, hround⟩ := hg |
| 29 | refine ⟨k / c, div_pos hk hc, fun x u v hu hv huv => ?_⟩ |
| 30 | let U := mfderiv (𝓡 3) (𝓡 3) E.map x u |
| 31 | let V := mfderiv (𝓡 3) (𝓡 3) E.map x v |
| 32 | have hu' : c * g.inner (E.map x) U U = 1 := (E.inner_eq x u u).symm.trans hu |
| 33 | have hv' : c * g.inner (E.map x) V V = 1 := (E.inner_eq x v v).symm.trans hv |
| 34 | have huv' : c * g.inner (E.map x) U V = 0 := (E.inner_eq x u v).symm.trans huv |
| 35 | have hs : Real.sqrt c * Real.sqrt c = c := Real.mul_self_sqrt hc.le |
| 36 | have hi (a b : TangentSpace (𝓡 3) (E.map x)) : |
| 37 | g.inner (E.map x) (Real.sqrt c • a) (Real.sqrt c • b) = |
| 38 | c * g.inner (E.map x) a b := by |
| 39 | change inner ℝ (Real.sqrt c • a) (Real.sqrt c • b) = c * inner ℝ a b |
| 40 | rw [real_inner_smul_left, real_inner_smul_right] |
| 41 | rw [← mul_assoc, hs] |
| 42 | have hsec := hround (E.map x) (Real.sqrt c • U) (Real.sqrt c • V) |
| 43 | ((hi U U).trans hu') ((hi V V).trans hv') ((hi U V).trans huv') |
| 44 | have hcurv := D'.curvatureTensor_eq_of_local_isometry |
| 45 | (rescaledMetric_connection g D c hc) isOpen_univ E.map.contMDiff.contMDiffOn |
| 46 | (fun y _ a b => E.inner_eq y a b) (Set.mem_univ x) u v u v |
| 47 | rw [rescaledMetric_curvatureTensor] at hcurv |
| 48 | have hscale : D.curvatureTensor (E.map x) |
| 49 | (Real.sqrt c • U) (Real.sqrt c • V) (Real.sqrt c • U) (Real.sqrt c • V) = |
| 50 | c ^ 2 * D.curvatureTensor (E.map x) U V U V := by |
| 51 | simp only [LeviCivitaData.curvatureTensor_smul_first, |
| 52 | LeviCivitaData.curvatureTensor_smul_second, LeviCivitaData.curvatureTensor_smul_third, |
| 53 | LeviCivitaData.curvatureTensor_smul_last] |
| 54 | calc |
| 55 | _ = (Real.sqrt c * Real.sqrt c) ^ 2 * D.curvatureTensor (E.map x) U V U V := by ring |
| 56 | _ = _ := by rw [hs] |
| 57 | have hk' : c ^ 2 * D.curvatureTensor (E.map x) U V U V = k := by |
| 58 | simpa only [LeviCivitaData.sectionalCurvature, hi, hu', hv', huv', |
| 59 | one_mul, zero_pow (by decide : 2 ≠ 0), sub_zero, div_one, hscale] using hsec |
| 60 | rw [LeviCivitaData.sectionalCurvature, hu, hv, huv] |
| 61 | simp only [one_mul, zero_pow (by decide : 2 ≠ 0), sub_zero, div_one] |
| 62 | apply (eq_div_iff hc.ne').mpr |
| 63 | change D'.curvatureTensor x u v u v * c = k |
| 64 | change D'.curvatureTensor x u v u v = c * D.curvatureTensor (E.map x) U V U V at hcurv |
| 65 | rw [hcurv] |
| 66 | nlinarith only [hk'] |
| 67 | |
| 68 | variable [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 69 | [SecondCountableTopology M] [ConnectedSpace M] |
| 70 | |
| 71 | theorem ShrinkingSolitonFlow.round_at_time_three {S : GradientShrinkingSolitonData 3 M} |
| 72 | (G : ShrinkingSolitonFlow S) |
| 73 | (hround : ConstantPositiveSectionalCurvature S.metric S.connection) |
| 74 | (t : ℝ) (ht : t < 0) : |
| 75 | ConstantPositiveSectionalCurvature (G.flow.metric t) (G.flow.connection t) := by |
| 76 | obtain ⟨E⟩ := G.self_similar t ht |
| 77 | exact E.constantPositiveSectionalCurvature_three (abs_pos.mpr (ne_of_lt ht)) |
| 78 | S.connection (G.flow.connection t) hround |
| 79 | |
| 80 | end PoincareMT |