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.ReducedGeometry.ReducedLength.ODE.RegularizedIntervalSolution |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Coordinates.TangentChartPhase |
| 3 | |
| 4 | /-! |
| 5 | # Uniform restart radii on compact phase sets |
| 6 | |
| 7 | Smooth parameter families provide one radius on each open phase neighborhood. |
| 8 | A finite compact cover gives a positive lower bound for the selected radii. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | set_option maxSynthPendingDepth 3 |
| 13 | |
| 14 | open scoped Manifold ContDiff Bundle Topology |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT.ReducedLength |
| 19 | |
| 20 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 21 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 22 | [IsManifold (𝓡 n) ∞ M] |
| 23 | |
| 24 | local notation "V" => EuclideanSpace ℝ (Fin n) |
| 25 | local notation "Z" => ℝ × (V × V) |
| 26 | local notation "Q" => ℝ × TangentBundle (𝓡 n) M |
| 27 | |
| 28 | theorem exists_regularizedRestartNeighborhood {J : Set ℝ} |
| 29 | (F : RicciFlow n M J) (hM04 : RicciFlowCurvatureTheory.{u}) |
| 30 | (T b : ℝ) (hb : 0 < b) (hwindow : Set.Icc (T - b) T ⊆ J) |
| 31 | (z0 : Q) (htime : z0.1 ∈ Set.Ioo (-Real.sqrt b) (Real.sqrt b)) : |
| 32 | ∃ (O : Set Q) (r : ℝ), IsOpen O ∧ z0 ∈ O ∧ 0 < r ∧ |
| 33 | ∀ z ∈ O, ∃ A : RegularizedIntervalSolution F T b z.1 z.2, |
| 34 | A.domain = Set.Ioo (z.1 - r) (z.1 + r) := by |
| 35 | let p := z0.2.proj |
| 36 | let B : Set Q := Set.univ ×ˢ {q : TangentBundle (𝓡 n) M | q.proj ∈ (chartAt V p).source} |
| 37 | let c : Q → Z := fun z ↦ (z.1, tangentChartPhase p z.2) |
| 38 | have hB : IsOpen B := isOpen_univ.prod ((chartAt V p).open_source.preimage |
| 39 | (FiberBundle.continuous_proj V (TangentSpace (𝓡 n)))) |
| 40 | have hc : ContinuousOn c B := continuous_fst.continuousOn.prodMk |
| 41 | ((tangentChartPhase_continuousOn p).comp continuous_snd.continuousOn (fun _ hz ↦ hz.2)) |
| 42 | obtain ⟨A⟩ := nonempty_localRegularizedRestartFamily F hM04 T b hb hwindow p (c z0) |
| 43 | ⟨htime, (chartAt V p).map_source (mem_chart_source V p)⟩ |
| 44 | let O := B ∩ c ⁻¹' A.neighborhood |
| 45 | have hO : IsOpen O := hc.isOpen_inter_preimage hB A.neighborhood_open |
| 46 | refine ⟨O, A.radius, hO, ⟨⟨Set.mem_univ _, mem_chart_source V p⟩, A.center_mem⟩, |
| 47 | A.radius_pos, ?_⟩ |
| 48 | intro z hz |
| 49 | let S : RegularizedIntervalSolution F T b z.1 z.2 := { |
| 50 | domain := Set.Ioo (z.1 - A.radius) (z.1 + A.radius) |
| 51 | open_domain := isOpen_Ioo |
| 52 | preconnected_domain := isPreconnected_Ioo |
| 53 | initial_mem := ⟨by linarith [A.radius_pos], by linarith [A.radius_pos]⟩ |
| 54 | time_mem := fun s hs ↦ A.time_mem (c z) hz.2 s hs |
| 55 | curve := A.curve (c z) |
| 56 | isLocal := A.isLocalRegularizedCurveOn hM04 hb hwindow (c z) hz.2 |
| 57 | initial_phase := (A.initial_phase (c z) hz.2).trans (tangentChartPhase_inverse p z.2 hz.1.2) |
| 58 | } |
| 59 | exact ⟨S, rfl⟩ |
| 60 | |
| 61 | theorem exists_uniform_regularizedRestartRadius {J : Set ℝ} |
| 62 | (F : RicciFlow n M J) (hM04 : RicciFlowCurvatureTheory.{u}) |
| 63 | (T b : ℝ) (hb : 0 < b) (hwindow : Set.Icc (T - b) T ⊆ J) |
| 64 | (K : Set Q) (hK : IsCompact K) |
| 65 | (htime : ∀ z ∈ K, z.1 ∈ Set.Ioo (-Real.sqrt b) (Real.sqrt b)) : |
| 66 | ∃ r : ℝ, 0 < r ∧ ∀ z ∈ K, |
| 67 | ∃ A : RegularizedIntervalSolution F T b z.1 z.2, |
| 68 | Set.Ioo (z.1 - r) (z.1 + r) ⊆ A.domain := by |
| 69 | classical |
| 70 | choose O r hO hmem hr hsol using fun z : K ↦ |
| 71 | exists_regularizedRestartNeighborhood F hM04 T b hb hwindow z (htime z z.property) |
| 72 | obtain ⟨S, hS⟩ := hK.elim_finite_subcover O hO (fun z hz ↦ |
| 73 | Set.mem_iUnion.mpr ⟨⟨z, hz⟩, hmem ⟨z, hz⟩⟩) |
| 74 | have hbound (S : Finset K) : ∃ d : ℝ, 0 < d ∧ ∀ i ∈ S, d ≤ r i := by |
| 75 | induction S using Finset.induction_on with |
| 76 | | empty => exact ⟨1, zero_lt_one, by simp⟩ |
| 77 | | @insert i S hi ih => |
| 78 | obtain ⟨d, hd, hdi⟩ := ih |
| 79 | refine ⟨min d (r i), lt_min hd (hr i), ?_⟩ |
| 80 | intro j hj |
| 81 | rcases Finset.mem_insert.mp hj with rfl | hj |
| 82 | · exact min_le_right _ _ |
| 83 | · exact (min_le_left _ _).trans (hdi j hj) |
| 84 | obtain ⟨d, hd, hdi⟩ := hbound S |
| 85 | refine ⟨d, hd, ?_⟩ |
| 86 | intro z hz |
| 87 | obtain ⟨i, hi, hzi⟩ := Set.mem_iUnion₂.mp (hS hz) |
| 88 | obtain ⟨A, hA⟩ := hsol i z hzi |
| 89 | refine ⟨A, ?_⟩ |
| 90 | rw [hA] |
| 91 | intro s hs |
| 92 | have hle := hdi i hi |
| 93 | constructor <;> linarith [hs.1, hs.2] |
| 94 | |
| 95 | end PoincareMT.ReducedLength |