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.SourceNames |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Persistence.NeckGeometry.CoreCoefficientReadout |
| 4 | |
| 5 | /-! |
| 6 | # Frozen tensor readout with a separate varying-scale error |
| 7 | |
| 8 | The exact readout applies at the auxiliary scalar given by the ratio of |
| 9 | target and source squared scales. Its coefficient error is the sum of |
| 10 | the actual metric error and the normalized source field times the scale |
| 11 | error. Source: Morgan--Tian Proposition 9.79 and Claim 10.8, |
| 12 | pp. 232-234 and 254; M28 derivation 117. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff Topology |
| 20 | |
| 21 | universe u v |
| 22 | |
| 23 | namespace PoincareMT.Proofs.M28.NeckTransfer |
| 24 | |
| 25 | open PoincareMT.M28.tube |
| 26 | |
| 27 | variable {M : Type u} {X : Type v} [TopologicalSpace M] [TopologicalSpace X] |
| 28 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) X] |
| 30 | [IsManifold (𝓡 3) ∞ M] [IsManifold (𝓡 3) ∞ X] |
| 31 | {g : RiemannianMetric 3 M} {h : RiemannianMetric 3 X} {eta : ℝ} |
| 32 | |
| 33 | /-- The frozen scalar error is controlled by the actual bilinear metric |
| 34 | error plus the additional varying-scale term. The target scale stays |
| 35 | fixed in the prefactor. Source: Proposition 9.79 and Claim 10.8; |
| 36 | M28 derivation 117, exact error decomposition. -/ |
| 37 | theorem NeckGeometryCore.norm_frozen_difference_jet_le_of_scale_error |
| 38 | (V : NeckGeometryCore g eta) (N : EpsilonNeck h) (Q : ℝ) (hQ : 0 < Q) |
| 39 | (q : UnitTwoSphere) {s : ℝ} |
| 40 | (hsV : s ∈ Ioo (-eta⁻¹) eta⁻¹) |
| 41 | (hsN : s ∈ Ioo (-N.epsilon⁻¹) N.epsilon⁻¹) (a b : Fin 3) (m : ℕ) : |
| 42 | ‖iteratedFDeriv ℝ m (fun p => roundCylinderTensorCoefficient V.tensor |
| 43 | (chartAt (EuclideanSpace ℝ (Fin 2)) q) p a b - |
| 44 | roundCylinderTensorCoefficient |
| 45 | (fun z v w => N.scale⁻¹ ^ 2 * roundCylinderPullback h N.coordinate_map z v w) |
| 46 | (chartAt (EuclideanSpace ℝ (Fin 2)) q) p a b) (0, s)‖ ≤ |
| 47 | V.scale⁻¹ ^ 2 * ‖cylinderScalarCoordinateEquiv.symm.toContinuousLinearMap‖ ^ m * |
| 48 | (‖iteratedFDeriv ℝ m (fun x => g.pullbackCoefficients |
| 49 | (V.coordinate_map ∘ (cylinderSphereParametrization q ∘ cylinderScalarCoordinates s)) x - |
| 50 | RiemannianMetric.pullbackCoefficients (M13.scaleSmoothMetric h Q hQ) |
| 51 | (cylinderNeckChart N q s) x) 0‖ + |
| 52 | ‖iteratedFDeriv ℝ m (fun x => (Q * N.scale ^ 2 - V.scale ^ 2) • |
| 53 | cylinderNeckCoefficients N q s x) 0‖) := by |
| 54 | let : AddMonoid (SpacetimeBounds.MetricCoefficient 3) := |
| 55 | (inferInstance : NormedAddCommGroup (SpacetimeBounds.MetricCoefficient 3)).toAddMonoid |
| 56 | let Q0 := V.scale ^ 2 / N.scale ^ 2 |
| 57 | have hQ0 : 0 < Q0 := div_pos (sq_pos_of_pos V.scale_pos) (sq_pos_of_pos N.scale_pos) |
| 58 | have hscale : Q0 * N.scale ^ 2 = V.scale ^ 2 := |
| 59 | div_mul_cancel₀ _ (pow_ne_zero 2 N.scale_pos.ne') |
| 60 | let T := g.pullbackCoefficients |
| 61 | (V.coordinate_map ∘ (cylinderSphereParametrization q ∘ cylinderScalarCoordinates s)) |
| 62 | let E := fun x => T x - RiemannianMetric.pullbackCoefficients |
| 63 | (M13.scaleSmoothMetric h Q hQ) (cylinderNeckChart N q s) x |
| 64 | let S := fun x => (Q * N.scale ^ 2 - V.scale ^ 2) • cylinderNeckCoefficients N q s x |
| 65 | have heq : (fun x => T x - RiemannianMetric.pullbackCoefficients |
| 66 | (M13.scaleSmoothMetric h Q0 hQ0) (cylinderNeckChart N q s) x) = E + S := by |
| 67 | funext x |
| 68 | change T x - RiemannianMetric.pullbackCoefficients |
| 69 | (M13.scaleSmoothMetric h Q0 hQ0) (cylinderNeckChart N q s) x = |
| 70 | (T x - RiemannianMetric.pullbackCoefficients |
| 71 | (M13.scaleSmoothMetric h Q hQ) (cylinderNeckChart N q s) x) + |
| 72 | (Q * N.scale ^ 2 - V.scale ^ 2) • cylinderNeckCoefficients N q s x |
| 73 | rw [scaleSmoothMetric_cylinderNeckCoefficients, |
| 74 | scaleSmoothMetric_cylinderNeckCoefficients, hscale] |
| 75 | ext v w |
| 76 | change T x v w - V.scale ^ 2 * cylinderNeckCoefficients N q s x v w = |
| 77 | (T x v w - (Q * N.scale ^ 2) * cylinderNeckCoefficients N q s x v w) + |
| 78 | (Q * N.scale ^ 2 - V.scale ^ 2) * cylinderNeckCoefficients N q s x v w |
| 79 | ring |
| 80 | have hxV : cylinderScalarCoordinates s 0 ∈ |
| 81 | (chartAt (EuclideanSpace ℝ (Fin 2)) q).target ×ˢ Ioo (-eta⁻¹) eta⁻¹ := by |
| 82 | rw [cylinderScalarCoordinates_zero] |
| 83 | refine ⟨?_, hsV⟩ |
| 84 | rw [← NeckAnalysis.sphere_chart_center q] |
| 85 | exact (chartAt (EuclideanSpace ℝ (Fin 2)) q).map_source (mem_chart_source _ q) |
| 86 | have hT : ContDiffAt ℝ ∞ T 0 := g.contDiffAt_pullbackCoefficients |
| 87 | (contMDiffAt_cylinderMap V.coordinate_map_smooth q s hxV) |
| 88 | have hN := (contMDiffOn_cylinderNeckChart N q s).contMDiffAt |
| 89 | ((isOpen_cylinderNeckChartDomain N q s).mem_nhds |
| 90 | (zero_mem_cylinderNeckChartDomain N q hsN)) |
| 91 | have hE : ContDiffAt ℝ ∞ E 0 := hT.sub |
| 92 | (RiemannianMetric.contDiffAt_pullbackCoefficients (M13.scaleSmoothMetric h Q hQ) hN) |
| 93 | have hC : ContDiffAt ℝ ∞ (cylinderNeckCoefficients N q s) 0 := |
| 94 | (contDiffOn_cylinderNeckCoefficients N q s).contDiffAt |
| 95 | ((isOpen_cylinderNeckChartDomain N q s).mem_nhds |
| 96 | (zero_mem_cylinderNeckChartDomain N q hsN)) |
| 97 | have hS : ContDiffAt ℝ ∞ S 0 := hC.const_smul _ |
| 98 | have hnorm : ‖iteratedFDeriv ℝ m (fun x => T x - RiemannianMetric.pullbackCoefficients |
| 99 | (M13.scaleSmoothMetric h Q0 hQ0) (cylinderNeckChart N q s) x) 0‖ ≤ |
| 100 | ‖iteratedFDeriv ℝ m E 0‖ + ‖iteratedFDeriv ℝ m S 0‖ := by |
| 101 | rw [heq, iteratedFDeriv_add_apply |
| 102 | (hE.of_le (by exact_mod_cast le_top)) (hS.of_le (by exact_mod_cast le_top))] |
| 103 | exact norm_add_le _ _ |
| 104 | exact (V.norm_frozen_difference_jet_le N Q0 hQ0 hscale q hsV hsN a b m).trans |
| 105 | (mul_le_mul_of_nonneg_left hnorm |
| 106 | (mul_nonneg (sq_nonneg _) (pow_nonneg (norm_nonneg _) _))) |
| 107 | |
| 108 | end PoincareMT.Proofs.M28.NeckTransfer |