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.LGeometry.Jacobi.JacobiAlongCoefficients |
| 2 | |
| 3 | /-! Adapted from Mapher `PoincareMT/Proofs/M08/JacobiLocalExistence.lean` at |
| 4 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. -/ |
| 5 | |
| 6 | |
| 7 | set_option autoImplicit false |
| 8 | set_option backward.isDefEq.respectTransparency false |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | open Set Filter Topology |
| 13 | open scoped Manifold ContDiff Bundle |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT.LGeometry |
| 18 | |
| 19 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 20 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 21 | |
| 22 | local instance jacobiLocalDualGroup : NormedAddCommGroup (EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ) := |
| 23 | ContinuousLinearMap.toNormedAddCommGroup |
| 24 | local instance jacobiLocalDualSpace : NormedSpace ℝ (EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ) := |
| 25 | ContinuousLinearMap.toNormedSpace |
| 26 | local instance jacobiLocalBilinGroup : |
| 27 | NormedAddCommGroup (EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ) := |
| 28 | ContinuousLinearMap.toNormedAddCommGroup |
| 29 | local instance jacobiLocalBilinSpace : |
| 30 | NormedSpace ℝ (EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ) := |
| 31 | ContinuousLinearMap.toNormedSpace |
| 32 | |
| 33 | set_option maxHeartbeats 2000000 in |
| 34 | theorem exists_chartJacobiPairOn {J U : Set ℝ} (F : RicciFlow n M J) |
| 35 | (hM04 : RicciFlowCurvatureTheory.{u}) (T : ℝ) {A B a b t₀ : ℝ} |
| 36 | (hAB : A < B) (hab : a < b) (hCS : Icc a b ⊆ Icc A B) |
| 37 | (htime : ∀ s ∈ Icc A B, T - s ^ 2 ∈ J) |
| 38 | (x : M) (α : ℝ → M) (hU : IsOpen U) (hCU : Icc a b ⊆ U) |
| 39 | (hα : ContMDiffOn (𝓘(ℝ, ℝ)) (𝓡 n) ∞ α U) |
| 40 | (hsrc : MapsTo α (Icc a b) (chartAt (EuclideanSpace ℝ (Fin n)) x).source) |
| 41 | (ht₀ : t₀ ∈ Icc a b) (z₀ : EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n)) : |
| 42 | ∃ z : ℝ → EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n), |
| 43 | IsJacobiPairOn F T α (Icc A B) a b z ∧ z t₀ = z₀ := by |
| 44 | let e := trivializationAt (EuclideanSpace ℝ (Fin n)) (TangentSpace (𝓡 n)) x |
| 45 | let B₀ := jacobiAlongSharp F T x α |
| 46 | let C₀ := jacobiAlongConnection F T x (Icc A B) α |
| 47 | let V₀ := jacobiAlongPotential F T x (Icc A B) α |
| 48 | let H₀ := jacobiAlongMetricTime F T x (Icc A B) α |
| 49 | obtain ⟨hB, hC, hV, hH⟩ := jacobiAlongCoefficients_contDiffOn F hM04 T x α |
| 50 | (uniqueDiffOn_Icc hAB) htime hCS hU hCU hα hsrc |
| 51 | obtain ⟨v, hv₀, hv, hvd⟩ := exists_covariant_linear_phase_solution B₀ C₀ V₀ H₀ hB hC hV hH ht₀ |
| 52 | (e.continuousLinearMapAt ℝ (α t₀) z₀.1, e.continuousLinearMapAt ℝ (α t₀) z₀.2) |
| 53 | let z : ℝ → EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n) := |
| 54 | fun s ↦ (chartFrame x (v s).1 (α s), chartFrame x (v s).2 (α s)) |
| 55 | have hzsmooth₁ := closedChartField_contMDiffOn x α (fun s ↦ (v s).1) |
| 56 | (hα.mono hCU) hv.fst hsrc |
| 57 | have hzsmooth₂ := closedChartField_contMDiffOn x α (fun s ↦ (v s).2) |
| 58 | (hα.mono hCU) hv.snd hsrc |
| 59 | obtain ⟨EY⟩ := exists_closedChartSectionExtension hab x α (fun s ↦ (v s).1) hv.fst hsrc |
| 60 | (fun s ↦ (z s).1) (fun _ _ ↦ rfl) |
| 61 | obtain ⟨EP⟩ := exists_closedChartSectionExtension hab x α (fun s ↦ (v s).2) hv.snd hsrc |
| 62 | (fun s ↦ (z s).2) (fun _ _ ↦ rfl) |
| 63 | have hαs (s : ℝ) (hs : s ∈ Icc a b) : MDifferentiableAt (𝓘(ℝ, ℝ)) (𝓡 n) α s := |
| 64 | ((hα s (hCU hs)).contMDiffAt (hU.mem_nhds (hCU hs))).mdifferentiableAt (by simp) |
| 65 | have hpair (s : ℝ) (hs : s ∈ Icc a b) := covariantPhase_pullback_pair F T hab hCS htime x α |
| 66 | hsrc B₀ C₀ V₀ H₀ v hv EY EP hs (fun _ ↦ rfl) (hvd s hs) (hαs s hs) |
| 67 | refine ⟨z, ⟨hab, hCS, hzsmooth₁, hzsmooth₂, EY, EP, ?_, ?_⟩, ?_⟩ |
| 68 | · intro s hs |
| 69 | exact (hpair s hs).1 |
| 70 | · intro s hs W |
| 71 | let w := e.continuousLinearMapAt ℝ (α s) W |
| 72 | have hw : chartFrame x w (α s) = W := e.symmL_continuousLinearMapAt (hsrc hs) W |
| 73 | have hq : extChartAt (𝓡 n) x (α s) ∈ (extChartAt (𝓡 n) x).target := |
| 74 | (extChartAt (𝓡 n) x).map_source (by simpa only [extChartAt_source] using hsrc hs) |
| 75 | change jacobiPairResidual F T α (Icc A B) s (chartFrame x (v s).1 (α s)) |
| 76 | (chartFrame x (v s).2 (α s)) _ W = 0 |
| 77 | rw [(hpair s hs).2, ← hw, |
| 78 | jacobiPairResidual_chart F hM04 T hAB htime x α (hCS hs) (hsrc hs) (hαs s hs)] |
| 79 | change chartActionMetric F T x (s, extChartAt (𝓡 n) x (α s)) |
| 80 | (chartMetricDualInverse F T x (s, extChartAt (𝓡 n) x (α s)) |
| 81 | (V₀ s (v s).1 - H₀ s (v s).2)) w - V₀ s (v s).1 w + H₀ s (v s).2 w = 0 |
| 82 | rw [chartMetricDualInverse_pair F T x hq] |
| 83 | simp only [sub_apply] |
| 84 | ring |
| 85 | · change (chartFrame x (v t₀).1 (α t₀), chartFrame x (v t₀).2 (α t₀)) = z₀ |
| 86 | rw [hv₀] |
| 87 | exact Prod.ext (e.symmL_continuousLinearMapAt (hsrc ht₀) z₀.1) |
| 88 | (e.symmL_continuousLinearMapAt (hsrc ht₀) z₀.2) |
| 89 | |
| 90 | end PoincareMT.LGeometry |