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.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Persistence.NeckGeometry.CapturedCylinderChart |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Analysis.FiniteHessian.MetricTransition |
| 4 | |
| 5 | /-! |
| 6 | # Finite derivatives of the actual captured cylinder maps |
| 7 | |
| 8 | The guarded atlas coefficients are smooth and nonsingular. The actual |
| 9 | metric identity therefore supplies the Hessian equation, and finite |
| 10 | coefficient bounds supply finite map bounds. The source metric may be the |
| 11 | normalized whole-slice metric while the neck retains its raw chart. |
| 12 | Source: Morgan--Tian Propositions 9.79 and 10.7, pp. 232-234 and 253; |
| 13 | M28 derivation 104. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff Bundle Topology |
| 21 | |
| 22 | universe u v |
| 23 | |
| 24 | namespace PoincareMT.Proofs.M28.NeckTransfer |
| 25 | |
| 26 | open PoincareMT.M28.tube FiniteHessian |
| 27 | |
| 28 | attribute [local instance] normedAddCommGroupTangentSpaceVectorSpace |
| 29 | normedSpaceTangentSpaceVectorSpace |
| 30 | |
| 31 | variable {M : Type u} [TopologicalSpace M] |
| 32 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 33 | |
| 34 | /-- Actual atlas coefficients are smooth and nonsingular at every captured |
| 35 | chart point. The differential is the composition of two guarded local |
| 36 | diffeomorphisms. Source: Proposition 10.7; M28 derivation 104. -/ |
| 37 | theorem capturedCylinderCoordinates_atlas_regular |
| 38 | {X : Type v} [TopologicalSpace X] |
| 39 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) X] [IsManifold (𝓡 3) ∞ X] |
| 40 | {h : RiemannianMetric 3 X} (gX : RiemannianMetric 3 X) |
| 41 | (e : PartialDiffeomorph (𝓡 3) (𝓡 3) M X ∞) (N : EpsilonNeck h) |
| 42 | (hcapture : N.carrier ⊆ e.target) (q : UnitTwoSphere) (s : ℝ) (p : M) |
| 43 | {x : EuclideanSpace ℝ (Fin 3)} (hx : x ∈ capturedCylinderChartDomain e N q s p) : |
| 44 | ContDiffAt ℝ ∞ (gX.pullbackCoefficients (e ∘ (extChartAt (𝓡 3) p).symm)) |
| 45 | (capturedCylinderCoordinates e N q s p x) ∧ |
| 46 | (gX.pullbackCoefficients (e ∘ (extChartAt (𝓡 3) p).symm) |
| 47 | (capturedCylinderCoordinates e N q s p x)).IsInvertible := by |
| 48 | let c := extChartAt (𝓡 3) p |
| 49 | let y := capturedCylinderCoordinates e N q s p x |
| 50 | have hy : y ∈ c.target := c.map_source hx.2 |
| 51 | have hs : c.symm y ∈ e.source := by |
| 52 | rw [show c.symm y = capturedCylinderMap e N q s x from c.left_inv hx.2] |
| 53 | exact capturedCylinderMap_mem_source e N hcapture q s hx.1 |
| 54 | have hcinv : ContMDiffAt (𝓡 3) (𝓡 3) ∞ c.symm y := |
| 55 | (contMDiffOn_extChartAt_symm p).contMDiffAt |
| 56 | ((isOpen_extChartAt_target p).mem_nhds hy) |
| 57 | have he := e.contMDiffOn_toFun.contMDiffAt (e.open_source.mem_nhds hs) |
| 58 | refine ⟨gX.contDiffAt_pullbackCoefficients (he.comp y hcinv), ?_⟩ |
| 59 | apply gX.isInvertible_pullbackCoefficients |
| 60 | rw [mfderiv_comp y (he.mdifferentiableAt (by simp)) |
| 61 | (hcinv.mdifferentiableAt (by simp))] |
| 62 | have helocal : IsLocalDiffeomorphAt (𝓡 3) (𝓡 3) ∞ e (c.symm y) := |
| 63 | ⟨e, hs, fun _ _ => rfl⟩ |
| 64 | have heinj : Function.Injective (mfderiv (𝓡 3) (𝓡 3) e (c.symm y)) := |
| 65 | (helocal.mfderivToContinuousLinearEquiv (by simp)).injective |
| 66 | have hi := isInvertible_mfderivWithin_extChartAt_symm (I := 𝓡 3) hy |
| 67 | rw [ModelWithCorners.range_eq_univ, mfderivWithin_univ] at hi |
| 68 | exact heinj.comp hi.injective |
| 69 | |
| 70 | /-- Finite metric jets and pointwise ellipticity bound the actual captured |
| 71 | coordinate derivatives through one extra order. Source manifolds may vary |
| 72 | with the index. No Hessian equation or map-jet estimate is an input. |
| 73 | Source: Proposition 10.7, p. 253; M28 derivation 104. -/ |
| 74 | theorem hasUniformJetBoundsAt_capturedCylinderCoordinates_fderiv |
| 75 | {ι : Type*} {X : ι → Type v} [∀ i, TopologicalSpace (X i)] |
| 76 | [∀ i, ChartedSpace (EuclideanSpace ℝ (Fin 3)) (X i)] |
| 77 | [∀ i, IsManifold (𝓡 3) ∞ (X i)] |
| 78 | {h : ∀ i, RiemannianMetric 3 (X i)} (gX : ∀ i, RiemannianMetric 3 (X i)) |
| 79 | (e : ∀ i, PartialDiffeomorph (𝓡 3) (𝓡 3) M (X i) ∞) |
| 80 | (N : ∀ i, EpsilonNeck (h i)) (hcapture : ∀ i, (N i).carrier ⊆ (e i).target) |
| 81 | (q : ι → UnitTwoSphere) (s : ι → ℝ) (p : ι → M) |
| 82 | (hs : ∀ i, s i ∈ Ioo (-(N i).epsilon⁻¹) (N i).epsilon⁻¹) |
| 83 | (hp : ∀ i, (e i).symm ((N i).coordinate_map (q i, s i)) ∈ |
| 84 | (extChartAt (𝓡 3) (p i)).source) (n : ℕ) |
| 85 | (hAj : HasUniformJetBoundsAt (n + 1) |
| 86 | (fun i => (gX i).pullbackCoefficients (cylinderNeckChart (N i) (q i) (s i))) |
| 87 | (fun _ => 0)) |
| 88 | (hBj : HasUniformJetBoundsAt (n + 1) |
| 89 | (fun i => (gX i).pullbackCoefficients ((e i) ∘ (extChartAt (𝓡 3) (p i)).symm)) |
| 90 | (fun i => capturedCylinderCoordinates (e i) (N i) (q i) (s i) (p i) 0)) |
| 91 | {a b : ℝ} (ha : 0 < a) (hb : 0 < b) |
| 92 | (hAe : ∀ i v, a * ‖v‖ ^ 2 ≤ |
| 93 | (gX i).pullbackCoefficients (cylinderNeckChart (N i) (q i) (s i)) 0 v v) |
| 94 | (hBe : ∀ i v, b * ‖v‖ ^ 2 ≤ |
| 95 | (gX i).pullbackCoefficients ((e i) ∘ (extChartAt (𝓡 3) (p i)).symm) |
| 96 | (capturedCylinderCoordinates (e i) (N i) (q i) (s i) (p i) 0) v v) : |
| 97 | HasUniformJetBoundsAt (n + 1) |
| 98 | (fun i => fderiv ℝ (capturedCylinderCoordinates (e i) (N i) (q i) (s i) (p i))) |
| 99 | (fun _ => 0) := by |
| 100 | refine hasUniformJetBoundsAt_fderiv_of_metric_pullback n |
| 101 | (U := fun i => capturedCylinderChartDomain (e i) (N i) (q i) (s i) (p i)) |
| 102 | (fun i => isOpen_capturedCylinderChartDomain (e i) (N i) (hcapture i) (q i) (s i) (p i)) |
| 103 | (fun i => zero_mem_capturedCylinderChartDomain (e i) (N i) (q i) (hs i) (p i) (hp i)) |
| 104 | (fun i => contDiffOn_capturedCylinderCoordinates |
| 105 | (e i) (N i) (hcapture i) (q i) (s i) (p i)) |
| 106 | ?_ ?_ ?_ ?_ ?_ ?_ hAj hBj ha hb hAe hBe |
| 107 | · intro i y hy |
| 108 | exact ((gX i).contDiffAt_pullbackCoefficients |
| 109 | ((contMDiffOn_cylinderNeckChart (N i) (q i) (s i)).contMDiffAt |
| 110 | ((isOpen_cylinderNeckChartDomain (N i) (q i) (s i)).mem_nhds hy.1))).contDiffWithinAt |
| 111 | · intro i y hy |
| 112 | exact (capturedCylinderCoordinates_atlas_regular |
| 113 | (gX i) (e i) (N i) (hcapture i) (q i) (s i) (p i) hy).1 |
| 114 | · intro i y hy |
| 115 | exact (gX i).isInvertible_pullbackCoefficients |
| 116 | (cylinderNeckChart_mfderiv_isInvertible (N i) (q i) (s i) hy.1).injective |
| 117 | · intro i y hy |
| 118 | exact (capturedCylinderCoordinates_atlas_regular |
| 119 | (gX i) (e i) (N i) (hcapture i) (q i) (s i) (p i) hy).2 |
| 120 | · intro i y _ v w |
| 121 | exact (gX i).symm _ _ _ |
| 122 | · intro i y hy v w |
| 123 | exact congrArg (fun B : EuclideanSpace ℝ (Fin 3) →L[ℝ] |
| 124 | EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ => B v w) |
| 125 | (capturedCylinderCoordinates_source_coefficients |
| 126 | (gX i) (e i) (N i) (hcapture i) (q i) (s i) (p i) hy) |
| 127 | |
| 128 | end PoincareMT.Proofs.M28.NeckTransfer |