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.CapturedCylinderJets |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Cylinders.CylinderMetricBounds |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Cylinders.CylinderFiniteJets |
| 5 | |
| 6 | /-! |
| 7 | # Uniform chart derivatives of one fixed neck |
| 8 | |
| 9 | The identity partial diffeomorphism specializes the actual Hessian estimate |
| 10 | to a fixed neck. Its normalized cylinder bounds and fixed scale supply the |
| 11 | source estimates. Finite atlas bounds supply the remaining estimates. |
| 12 | Source: Morgan--Tian Proposition 9.79, pp. 232-234, and Proposition 10.7, |
| 13 | pp. 253-254; M28 derivation 109. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff Topology |
| 21 | |
| 22 | namespace PoincareMT.Proofs.M28.NeckTransfer |
| 23 | |
| 24 | open PoincareMT.M28.tube FiniteHessian |
| 25 | |
| 26 | variable {M : Type*} [TopologicalSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 28 | {g : RiemannianMetric 3 M} |
| 29 | |
| 30 | /-- Removing the fixed neck normalization gives the actual bilinear |
| 31 | coefficient field at every point, including its totalized values. |
| 32 | Source: Proposition 9.79; M28 derivation 109. -/ |
| 33 | theorem cylinderNeckCoefficients_unscale (N : EpsilonNeck g) |
| 34 | (q : UnitTwoSphere) (s : ℝ) (x : EuclideanSpace ℝ (Fin 3)) : |
| 35 | g.pullbackCoefficients (cylinderNeckChart N q s) x = |
| 36 | N.scale ^ 2 • cylinderNeckCoefficients N q s x := by |
| 37 | have hcancel : N.scale ^ 2 * N.scale⁻¹ ^ 2 = 1 := by |
| 38 | rw [← mul_pow, mul_inv_cancel₀ N.scale_pos.ne', one_pow] |
| 39 | ext v w |
| 40 | change g.pullbackCoefficients (cylinderNeckChart N q s) x v w = |
| 41 | N.scale ^ 2 * (N.scale⁻¹ ^ 2 * |
| 42 | g.pullbackCoefficients (cylinderNeckChart N q s) x v w) |
| 43 | rw [← mul_assoc, hcancel, one_mul] |
| 44 | |
| 45 | /-- A fixed neck's actual metric gives finite jets of its coordinate |
| 46 | transitions, uniformly over every admissible point and atlas label. |
| 47 | No smooth dependence on the chosen sphere chart is assumed. Source: |
| 48 | Proposition 10.7, pp. 253-254; M28 derivation 109. -/ |
| 49 | theorem hasUniformJetBoundsAt_fixedCylinderCoordinates_fderiv |
| 50 | (N : EpsilonNeck g) {ι : Type*} |
| 51 | (q : ι → UnitTwoSphere) (s : ι → ℝ) (p : ι → M) |
| 52 | (hs : ∀ i, s i ∈ Ioo (-N.epsilon⁻¹) N.epsilon⁻¹) |
| 53 | (hp : ∀ i, N.coordinate_map (q i, s i) ∈ (extChartAt (𝓡 3) (p i)).source) |
| 54 | (n : ℕ) (hn : n + 1 ≤ ⌊N.epsilon⁻¹⌋₊) |
| 55 | (hBj : HasUniformJetBoundsAt (n + 1) |
| 56 | (fun i => g.pullbackCoefficients (extChartAt (𝓡 3) (p i)).symm) |
| 57 | (fun i => (extChartAt (𝓡 3) (p i)) (N.coordinate_map (q i, s i)))) |
| 58 | {b : ℝ} (hb : 0 < b) |
| 59 | (hBe : ∀ i v, b * ‖v‖ ^ 2 ≤ |
| 60 | g.pullbackCoefficients (extChartAt (𝓡 3) (p i)).symm |
| 61 | ((extChartAt (𝓡 3) (p i)) (N.coordinate_map (q i, s i))) v v) : |
| 62 | HasUniformJetBoundsAt (n + 1) |
| 63 | (fun i => fderiv ℝ ((extChartAt (𝓡 3) (p i)) ∘ cylinderNeckChart N (q i) (s i))) |
| 64 | (fun _ => 0) := by |
| 65 | let : AddMonoid (SpacetimeBounds.MetricCoefficient 3) := |
| 66 | (inferInstance : NormedAddCommGroup (SpacetimeBounds.MetricCoefficient 3)).toAddMonoid |
| 67 | let e := (Diffeomorph.refl (𝓡 3) M ∞).toPartialDiffeomorph |
| 68 | have hj := hasUniformJetBoundsAt_cylinderNeckCoefficients (fun _ : ι => N) |
| 69 | N.epsilon_pos (by linarith [N.epsilon_lt_half]) (fun _ => rfl) (n + 1) hn q s hs |
| 70 | have hc (i : ι) : ContDiffAt ℝ ∞ (cylinderNeckCoefficients N (q i) (s i)) 0 := |
| 71 | (contDiffOn_cylinderNeckCoefficients N (q i) (s i)).contDiffAt |
| 72 | ((isOpen_cylinderNeckChartDomain N (q i) (s i)).mem_nhds |
| 73 | (zero_mem_cylinderNeckChartDomain N (q i) (hs i))) |
| 74 | let L : SpacetimeBounds.MetricCoefficient 3 →L[ℝ] SpacetimeBounds.MetricCoefficient 3 := |
| 75 | N.scale ^ 2 • ContinuousLinearMap.id ℝ (SpacetimeBounds.MetricCoefficient 3) |
| 76 | have hAj : HasUniformJetBoundsAt (n + 1) |
| 77 | (fun i => g.pullbackCoefficients (cylinderNeckChart N (q i) (s i))) (fun _ => 0) := by |
| 78 | apply (hj.clm hc L).congr_germ |
| 79 | intro i |
| 80 | filter_upwards [] with x |
| 81 | exact (cylinderNeckCoefficients_unscale N (q i) (s i) x).symm |
| 82 | have ha : 0 < N.scale ^ 2 * (1 - N.epsilon) := |
| 83 | mul_pos (sq_pos_of_pos N.scale_pos) (by linarith [N.epsilon_lt_half]) |
| 84 | have hAe (i : ι) (v : EuclideanSpace ℝ (Fin 3)) : |
| 85 | (N.scale ^ 2 * (1 - N.epsilon)) * ‖v‖ ^ 2 ≤ |
| 86 | g.pullbackCoefficients (cylinderNeckChart N (q i) (s i)) 0 v v := by |
| 87 | rw [cylinderNeckCoefficients_unscale] |
| 88 | simpa only [smul_apply, smul_eq_mul, mul_assoc] using |
| 89 | mul_le_mul_of_nonneg_left |
| 90 | (cylinderNeckCoefficients_quadratic_bounds N (q i) (hs i) v).1 (sq_nonneg N.scale) |
| 91 | have hB' : HasUniformJetBoundsAt (n + 1) |
| 92 | (fun i => g.pullbackCoefficients (e ∘ (extChartAt (𝓡 3) (p i)).symm)) |
| 93 | (fun i => capturedCylinderCoordinates e N (q i) (s i) (p i) 0) := by |
| 94 | change HasUniformJetBoundsAt (n + 1) |
| 95 | (fun i => g.pullbackCoefficients (extChartAt (𝓡 3) (p i)).symm) |
| 96 | (fun i => (extChartAt (𝓡 3) (p i)) (cylinderNeckChart N (q i) (s i) 0)) |
| 97 | simpa only [cylinderNeckChart_zero] using hBj |
| 98 | have h := hasUniformJetBoundsAt_capturedCylinderCoordinates_fderiv |
| 99 | (fun _ : ι => g) (fun _ => e) (fun _ => N) (fun _ _ _ => mem_univ _) |
| 100 | q s p hs hp n hAj hB' ha hb hAe (fun i v => by |
| 101 | change b * ‖v‖ ^ 2 ≤ g.pullbackCoefficients (extChartAt (𝓡 3) (p i)).symm |
| 102 | ((extChartAt (𝓡 3) (p i)) (cylinderNeckChart N (q i) (s i) 0)) v v |
| 103 | rw [cylinderNeckChart_zero] |
| 104 | exact hBe i v) |
| 105 | exact h |
| 106 | |
| 107 | end PoincareMT.Proofs.M28.NeckTransfer |