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.Variation.Jacobi.JacobiLocalUniqueness |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Variation.Jacobi.JacobiGaugeCover |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Variation.Jacobi.JacobiGluing |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.Gauge.Geometry |
| 5 | |
| 6 | /-! |
| 7 | # Global closed-interval horizontal Jacobi transport |
| 8 | |
| 9 | Morgan-Tian Lemmas 6.10 and 6.12, pp. 109-110. Local compatible |
| 10 | gauge solutions glue across a finite interval chain. The same local |
| 11 | linear uniqueness identifies every global solution with the prescribed |
| 12 | initial phase value, without extending the base curve off its domain. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M14 |
| 23 | |
| 24 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 25 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 26 | {T τ₁ τ₂ : ℝ} {x y : G.Point} {p : M14BackwardPath G T τ₁ τ₂ x y} |
| 27 | (R : M14SquareRootPath G p) |
| 28 | |
| 29 | private noncomputable def horizontalPhaseEncoding (s : ℝ) : |
| 30 | (EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n)) ≃ |
| 31 | G.Horizontal (R.curve s) × G.Horizontal (R.curve s) := |
| 32 | let e := (VectorBundle.continuousLinearEquivAt ℝ (EuclideanSpace ℝ (Fin n)) |
| 33 | G.Horizontal (R.curve s)).symm.toEquiv |
| 34 | e.prodCongr e |
| 35 | |
| 36 | /-- Every initial horizontal phase value has a smooth actual Jacobi |
| 37 | pair on the full closed square interval, Lemmas 6.10 and 6.12, |
| 38 | pp. 109-110. -/ |
| 39 | theorem exists_horizontalJacobiPair |
| 40 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 41 | (z₀ : G.Horizontal (R.curve (Real.sqrt τ₁)) × G.Horizontal (R.curve (Real.sqrt τ₁))) : |
| 42 | ∃ z : ∀ s, G.Horizontal (R.curve s) × G.Horizontal (R.curve s), |
| 43 | IsHorizontalJacobiPairOn R (Real.sqrt τ₁) (Real.sqrt τ₂) z ∧ |
| 44 | z (Real.sqrt τ₁) = z₀ := by |
| 45 | classical |
| 46 | have hCoordinates := hM12.coordinate_gauges X time I G.spacetime G.slices |
| 47 | G.timeIntervals G.gaugeCover G.leafwise |
| 48 | have hscalar := ((hM12.leafwise_calculus X time I G.spacetime G.slices |
| 49 | G.timeIntervals G.gaugeCover).2 G.leafwise).scalar_smooth |
| 50 | obtain ⟨m, t, b, l, r, β, hm, ht, hta, htb, hp⟩ := exists_overlapping_squareRoot_gauges R |
| 51 | let W := fun i => Classical.choice (ordinaryGaugeWitness_nonempty (b i) hCoordinates) |
| 52 | apply exists_dependent_interval_solution_of_overlapping_cover (IsHorizontalJacobiPairOn R) |
| 53 | (horizontalJacobiPairOn_locality R) (horizontalPhaseEncoding R) |
| 54 | (Real.sqrt_lt_sqrt p.tau_nonneg p.tau_lt) hm t l r ht hta htb ?_ ?_ ?_ z₀ |
| 55 | · intro i |
| 56 | obtain ⟨hal, hlr, hrb, hlt, htr, hβ, hrec, hclock, hnear⟩ := hp i |
| 57 | exact ⟨hal, hlr, hrb, hlt, htr, hnear⟩ |
| 58 | · intro i s hs z |
| 59 | obtain ⟨hal, hlr, hrb, hlt, htr, hβ, hrec, hclock, hnear⟩ := hp i |
| 60 | exact exists_gaugeHorizontalJacobiPair R (b i) hCoordinates hscalar (W i) hM04 (β i s).2 |
| 61 | hlr (Icc_subset_Icc hal hrb) hβ hrec hclock hs z |
| 62 | · intro i c d hlc hcd hdr f g hf hg s hs hinit |
| 63 | obtain ⟨hal, hlr, hrb, hlt, htr, hβ, hrec, hclock, hnear⟩ := hp i |
| 64 | have hsub : Icc c d ⊆ Icc (l i) (r i) := Icc_subset_Icc hlc hdr |
| 65 | exact gaugeHorizontalJacobiPair_unique (b i) hCoordinates hscalar (W i) hM04 (β i s).2 |
| 66 | (hβ.mono hsub) (fun v hv => hrec v (hsub hv)) (fun v hv => hclock v (hsub hv)) |
| 67 | hf hg hs hinit |
| 68 | |
| 69 | /-- Global actual Jacobi phase solutions with the same initial |
| 70 | value agree on the full closed square interval, Lemmas 6.10 and |
| 71 | 6.12, pp. 109-110. -/ |
| 72 | theorem horizontalJacobiPair_unique |
| 73 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 74 | {f g : ∀ s, G.Horizontal (R.curve s) × G.Horizontal (R.curve s)} |
| 75 | (hf : IsHorizontalJacobiPairOn R (Real.sqrt τ₁) (Real.sqrt τ₂) f) |
| 76 | (hg : IsHorizontalJacobiPairOn R (Real.sqrt τ₁) (Real.sqrt τ₂) g) |
| 77 | (hinit : f (Real.sqrt τ₁) = g (Real.sqrt τ₁)) : |
| 78 | ∀ s ∈ M14SqrtParameterInterval τ₁ τ₂, f s = g s := by |
| 79 | classical |
| 80 | have hCoordinates := hM12.coordinate_gauges X time I G.spacetime G.slices |
| 81 | G.timeIntervals G.gaugeCover G.leafwise |
| 82 | have hscalar := ((hM12.leafwise_calculus X time I G.spacetime G.slices |
| 83 | G.timeIntervals G.gaugeCover).2 G.leafwise).scalar_smooth |
| 84 | obtain ⟨m, t, b, l, r, β, hm, ht, hta, htb, hp⟩ := exists_overlapping_squareRoot_gauges R |
| 85 | let W := fun i => Classical.choice (ordinaryGaugeWitness_nonempty (b i) hCoordinates) |
| 86 | apply dependent_interval_solution_unique_of_cover (IsHorizontalJacobiPairOn R) |
| 87 | (horizontalJacobiPairOn_locality R) (horizontalPhaseEncoding R) |
| 88 | hm t l r ht hta htb ?_ ?_ hf hg hinit |
| 89 | · intro i |
| 90 | obtain ⟨hal, hlr, hrb, hlt, htr, hβ, hrec, hclock, hnear⟩ := hp i |
| 91 | exact ⟨hal, hlr, hrb, hlt, htr⟩ |
| 92 | · intro i f' g' hf' hg' s hs heq |
| 93 | obtain ⟨hal, hlr, hrb, hlt, htr, hβ, hrec, hclock, hnear⟩ := hp i |
| 94 | exact gaugeHorizontalJacobiPair_unique (b i) hCoordinates hscalar (W i) hM04 (β i s).2 |
| 95 | hβ hrec hclock hf' hg' hs heq |
| 96 | |
| 97 | end PoincareMT.M14 |