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.Generalized.ReducedGeometry.SourceNames.LGeometry |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Calculus.ODE.Local.ClosedODEUniqueness |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Variation.Coordinates.ClosedChartCoefficients |
| 4 | |
| 5 | /-! |
| 6 | # Uniqueness for the actual closed Euler phase equation |
| 7 | |
| 8 | Morgan-Tian Lemma 6.18, pp. 113-114. M08 supplies the actual |
| 9 | closed chart coefficients. Closed-time ODE uniqueness applies on |
| 10 | the spatial chart target times the unrestricted momentum space. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M14 |
| 21 | |
| 22 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 24 | |
| 25 | /-- Two solutions of the actual closed Euler phase equation with |
| 26 | the same initial phase agree on their closed interval, |
| 27 | the uniqueness assertion in Lemma 6.18, pp. 113-114. -/ |
| 28 | theorem closedChartEulerPhase_unique {J : Set ℝ} (F : RicciFlow n M J) |
| 29 | (hM04 : RicciFlowCurvatureTheory.{u}) (T : ℝ) (x₀ : M) |
| 30 | {a b s₀ : ℝ} (hab : a < b) (htime : ∀ s ∈ Icc a b, T - s ^ 2 ∈ J) |
| 31 | {f g : ℝ → EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n)} |
| 32 | (hsrc : ∀ s ∈ Icc a b, (f s).1 ∈ (extChartAt (𝓡 n) x₀).target) |
| 33 | (hf : ∀ s ∈ Icc a b, |
| 34 | HasDerivWithinAt f (M08.closedChartEulerPhase F T x₀ (Icc a b) s (f s)) (Icc a b) s) |
| 35 | (hg : ∀ s ∈ Icc a b, |
| 36 | HasDerivWithinAt g (M08.closedChartEulerPhase F T x₀ (Icc a b) s (g s)) (Icc a b) s) |
| 37 | (hs₀ : s₀ ∈ Icc a b) (heq : f s₀ = g s₀) : EqOn f g (Icc a b) := by |
| 38 | exact closedODE_interval_solution_unique hab |
| 39 | ((isOpen_extChartAt_target (I := 𝓡 n) x₀).prod isOpen_univ) |
| 40 | (Function.uncurry (M08.closedChartEulerPhase F T x₀ (Icc a b))) |
| 41 | (M08.closedChartEulerPhase_contDiffOn F hM04 T x₀ (uniqueDiffOn_Icc hab) htime) |
| 42 | (fun s hs => ⟨hsrc s hs, mem_univ _⟩) hf hg hs₀ heq |
| 43 | |
| 44 | end PoincareMT.M14 |