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.Families.ClosedODEJointFamily |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.Families.ClosedEulerExistence |
| 4 | |
| 5 | /-! |
| 6 | # Jointly smooth local families of actual closed Euler phases |
| 7 | |
| 8 | Morgan-Tian Lemma 6.18, pp. 113-114. M08's actual phase field satisfies |
| 9 | the closed ODE hypotheses. The resulting local family is jointly smooth |
| 10 | in the initial phase and closed time, and genuine spatial derivatives |
| 11 | identify the actual phase coefficients on the retained interval. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | -- The actual phase coefficients use the standard Euclidean tangent models. |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter Metric |
| 19 | open scoped Manifold ContDiff Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M14 |
| 24 | |
| 25 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 27 | |
| 28 | /-- The actual closed Euler phase has a jointly smooth local family |
| 29 | through every nearby initial phase. It remains in the chart and solves |
| 30 | the actual within equation on its own closed interval, including both |
| 31 | endpoints, Lemma 6.18, pp. 113-114. -/ |
| 32 | theorem exists_closedChartEulerPhase_joint_family {J : Set ℝ} (F : RicciFlow n M J) |
| 33 | (hM04 : RicciFlowCurvatureTheory.{u}) (T : ℝ) (x₀ : M) |
| 34 | {a b : ℝ} (hab : a < b) (htime : ∀ s ∈ Icc a b, T - s ^ 2 ∈ J) |
| 35 | (s₀ : Icc a b) |
| 36 | {z₀ : EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n)} |
| 37 | (hz₀ : z₀.1 ∈ (extChartAt (𝓡 n) x₀).target) : |
| 38 | ∃ c d : ℝ, ∃ s₁ : Icc c d, |
| 39 | c < d ∧ a ≤ c ∧ d ≤ b ∧ s₁.val = s₀.val ∧ Icc c d ∈ 𝓝[Icc a b] s₀.val ∧ |
| 40 | ∃ ρ > (0 : ℝ), |
| 41 | ∃ α : (EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n)) × ℝ → |
| 42 | EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n), |
| 43 | ContDiffOn ℝ ∞ α (ball z₀ ρ ×ˢ Icc c d) ∧ ∀ z ∈ ball z₀ ρ, |
| 44 | α (z, s₁.val) = z ∧ ∀ s ∈ Icc c d, |
| 45 | (α (z, s)).1 ∈ (extChartAt (𝓡 n) x₀).target ∧ |
| 46 | HasDerivWithinAt (fun r => α (z, r)) |
| 47 | (M08.closedChartEulerPhase F T x₀ (Icc c d) s (α (z, s))) (Icc c d) s := by |
| 48 | obtain ⟨c, d, s₁, hcd, hac, hdb, hi, hnear, ρ, hρ, α, hα, hdata⟩ := |
| 49 | closedODE_exists_joint_family hab s₀ |
| 50 | ((isOpen_extChartAt_target (I := 𝓡 n) x₀).prod isOpen_univ) |
| 51 | (Function.uncurry (M08.closedChartEulerPhase F T x₀ (Icc a b))) |
| 52 | (M08.closedChartEulerPhase_contDiffOn F hM04 T x₀ (uniqueDiffOn_Icc hab) htime) |
| 53 | ⟨hz₀, mem_univ _⟩ |
| 54 | refine ⟨c, d, s₁, hcd, hac, hdb, hi, hnear, ρ, hρ, α, hα, ?_⟩ |
| 55 | intro z hz |
| 56 | refine ⟨(hdata z hz).1, ?_⟩ |
| 57 | intro s hs |
| 58 | obtain ⟨hmap, hd⟩ := (hdata z hz).2 s hs |
| 59 | refine ⟨hmap.1, ?_⟩ |
| 60 | rw [closedChartEulerPhase_restrict F hM04 T x₀ htime (Icc_subset_Icc hac hdb) hs hmap.1] |
| 61 | exact hd |
| 62 | |
| 63 | end PoincareMT.M14 |