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 | /- Adapted from Mapher `PoincareMT/Proofs/M03/ShortTime.lean` at |
| 2 | f927d9e1f0810042766d3b5f64d3f4da02ee93cc. See |
| 3 | `references/ricci-flow/mapher/local-theory/port.json`. -/ |
| 4 | |
| 5 | import PoincareLib.Geometry.RicciFlow.Local.Theory |
| 6 | import PoincareLib.Geometry.RicciFlow.Local.Connection.Existence |
| 7 | import PoincareLib.Geometry.RicciFlow.Local.Connection.CurvatureIndependence |
| 8 | import PoincareLib.Geometry.RicciFlow.Local.Energy.Comparison.GlobalDifferenceEnergy |
| 9 | import PoincareLib.Geometry.RicciFlow.Local.Energy.Comparison.UniquenessClosure |
| 10 | import PoincareLib.Geometry.RicciFlow.Local.Existence.FamilyEquation |
| 11 | import PoincareLib.Geometry.RicciFlow.Local.DeTurck.Construction.DeTurckResponseMetric |
| 12 | |
| 13 | /-! |
| 14 | # Short-time Ricci-flow existence and uniqueness |
| 15 | |
| 16 | Morgan-Tian, Theorem 3.11, printed pp. 39-40, supplies the analytic existence |
| 17 | and uniqueness obligations. The native DeTurck construction supplies the |
| 18 | metric family. The middle theorem assembles it with compatible-connection |
| 19 | existence into a Ricci flow. Uniqueness is the compact difference-energy |
| 20 | closure. For the DeTurck pullback sign, see MT-DETURCK-PULLBACK-SIGN in |
| 21 | `reviews/errata/2026-09-12-deturck-pullback.md`. |
| 22 | -/ |
| 23 | |
| 24 | set_option autoImplicit false |
| 25 | |
| 26 | open scoped Manifold ContDiff |
| 27 | |
| 28 | universe u |
| 29 | |
| 30 | namespace PoincareMT |
| 31 | |
| 32 | variable {n : ℕ} {M : Type u} |
| 33 | [TopologicalSpace M] [T2Space M] [SecondCountableTopology M] |
| 34 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 35 | [CompactSpace M] |
| 36 | |
| 37 | /-- Analytic existence of a smooth metric family satisfying the intrinsic Ricci equation. -/ |
| 38 | theorem exists_ricciFlow_metricFamily (g0 : RiemannianMetric n M) : |
| 39 | ∃ T : ℝ, 0 < T ∧ ∃ g : ℝ → RiemannianMetric n M, |
| 40 | g 0 = g0 ∧ RiemannianMetric.IsSmoothFamilyOn g (Set.Ico 0 T) ∧ |
| 41 | ∀ (t : ℝ), t ∈ Set.Ico 0 T → ∀ (D : LeviCivitaData (g t)) |
| 42 | (x : M) (u v : TangentSpace (𝓡 n) x), |
| 43 | HasDerivWithinAt (fun s ↦ (g s).inner x u v) |
| 44 | (-2 * D.ricci x u v) (Set.Ico 0 T) t := by |
| 45 | exact DeTurckResponseMetricNative.exists_metricFamily g0 |
| 46 | |
| 47 | /-- Assemble a short-time flow from the analytic family and connection-existence obligations. -/ |
| 48 | theorem shortTimeRicciFlowExistence : ShortTimeRicciFlowExistence n M := by |
| 49 | intro g0 |
| 50 | obtain ⟨T, hT, g, hg0, hsm, heq⟩ := exists_ricciFlow_metricFamily g0 |
| 51 | obtain ⟨D⟩ : Nonempty ((t : ℝ) → LeviCivitaData (g t)) := |
| 52 | ⟨fun t ↦ Classical.choice (exists_leviCivitaData (g t))⟩ |
| 53 | obtain ⟨s, hs0, hsT⟩ := exists_between hT |
| 54 | exact ⟨T, hT, { |
| 55 | metric := g |
| 56 | connection := D |
| 57 | interval := Set.ordConnected_Ico |
| 58 | nontrivial := ⟨0, ⟨le_rfl, hT⟩, s, ⟨hs0.le, hsT⟩, ne_of_lt hs0⟩ |
| 59 | smooth := hsm |
| 60 | equation := fun t ht x u v ↦ heq t ht (D t) x u v |
| 61 | }, hg0⟩ |
| 62 | |
| 63 | /-- Geometric uniqueness on compact manifolds with an included initial time. -/ |
| 64 | theorem ricciFlowUniqueness : RicciFlowUniqueness n M := by |
| 65 | exact RicciFlow.Local.ricciFlowUniqueness_of_difference_energy |
| 66 | |
| 67 | end PoincareMT |