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.AdaptedFields.AdaptedLocalExistence |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Variation.AdaptedFields.AdaptedMetric |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Variation.AdaptedFields.AdaptedGluing |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Variation.Jacobi.JacobiGaugeCover |
| 5 | |
| 6 | /-! |
| 7 | # Global actual adapted transport |
| 8 | |
| 9 | Closed local gauge solutions glue across the finite overlapping cover |
| 10 | of the actual square-root path. Geometric metric conservation supplies |
| 11 | uniqueness on each overlap. Morgan-Tian Definition 6.35, p. 122, and |
| 12 | the adapted frame of Proposition 6.43, pp. 127-128. |
| 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 horizontalAdaptedEncoding (s : ℝ) : |
| 30 | EuclideanSpace ℝ (Fin n) ≃ G.Horizontal (R.curve s) := |
| 31 | (VectorBundle.continuousLinearEquivAt ℝ (EuclideanSpace ℝ (Fin n)) |
| 32 | G.Horizontal (R.curve s)).symm.toEquiv |
| 33 | |
| 34 | /-- Every initial horizontal value has a smooth actual unit-adapted |
| 35 | field on the full closed square interval, Definition 6.35 and |
| 36 | Proposition 6.43, pp. 122, 127-128. -/ |
| 37 | theorem exists_horizontalUnitAdaptedField |
| 38 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 39 | (P₀ : G.Horizontal (R.curve (Real.sqrt τ₁))) : |
| 40 | ∃ P : ∀ s, G.Horizontal (R.curve s), |
| 41 | IsHorizontalUnitAdaptedFieldOn R (Real.sqrt τ₁) (Real.sqrt τ₂) P ∧ |
| 42 | P (Real.sqrt τ₁) = P₀ := by |
| 43 | classical |
| 44 | have hCoordinates := hM12.coordinate_gauges X time I G.spacetime G.slices |
| 45 | G.timeIntervals G.gaugeCover G.leafwise |
| 46 | obtain ⟨m, t, b, l, r, β, hm, ht, hta, htb, hp⟩ := exists_overlapping_squareRoot_gauges R |
| 47 | let W := fun i => Classical.choice (ordinaryGaugeWitness_nonempty (b i) hCoordinates) |
| 48 | apply exists_dependent_interval_solution_of_overlapping_cover (IsHorizontalUnitAdaptedFieldOn R) |
| 49 | (horizontalUnitAdaptedOn_locality R) (horizontalAdaptedEncoding R) |
| 50 | (Real.sqrt_lt_sqrt p.tau_nonneg p.tau_lt) hm t l r ht hta htb ?_ ?_ ?_ P₀ |
| 51 | · intro i |
| 52 | obtain ⟨hal, hlr, hrb, hlt, htr, hβ, hrec, hclock, hnear⟩ := hp i |
| 53 | exact ⟨hal, hlr, hrb, hlt, htr, hnear⟩ |
| 54 | · intro i s hs P₀ |
| 55 | obtain ⟨hal, hlr, hrb, hlt, htr, hβ, hrec, hclock, hnear⟩ := hp i |
| 56 | exact exists_gaugeHorizontalUnitAdaptedField R (b i) hCoordinates (W i) hM04 (β i s).2 |
| 57 | hlr (Icc_subset_Icc hal hrb) hβ hrec hclock hs P₀ |
| 58 | · intro i c d hlc hcd hdr P Q hP hQ s hs hinit |
| 59 | exact horizontalUnitAdapted_unique hM12 hP hQ hs hinit |
| 60 | |
| 61 | end PoincareMT.M14 |