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.MetricAliases |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.GeometryImports |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Cylinders.CylinderCoordinates |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Persistence.NeckAnalysis.ModelGram |
| 5 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Spheres.RoundTransfer |
| 6 | import PoincareLib.Geometry.RicciFlow.Local.Metric.MetricInverse |
| 7 | |
| 8 | /-! |
| 9 | # One fixed model jet for the cylinder scalar estimate |
| 10 | |
| 11 | After the chosen sphere chart and axial translation, the literal cylinder |
| 12 | has one coefficient function independent of the neck and point. Its center |
| 13 | is positive, hence the scalar two-jet operator has one modulus there. The |
| 14 | source neck's exact center normalization supplies the scalar normalization |
| 15 | in the final comparison; no separate model-scalar calculation is assumed. |
| 16 | Source: Morgan--Tian Lemma A.2 and M28 derivation 22. |
| 17 | -/ |
| 18 | |
| 19 | noncomputable section |
| 20 | set_option autoImplicit false |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | |
| 23 | open Set |
| 24 | open scoped Manifold ContDiff Bundle BigOperators Topology |
| 25 | |
| 26 | namespace PoincareMT.M28.tube |
| 27 | |
| 28 | open PoincareMT.SpacetimeBounds PoincareMT.Proofs.M28.NeckAnalysis |
| 29 | |
| 30 | private abbrev CE := EuclideanSpace ℝ (Fin 3) |
| 31 | |
| 32 | private abbrev CMetric := MetricCoefficient 3 |
| 33 | local instance : NormedAddCommGroup CMetric := ContinuousLinearMap.toNormedAddCommGroup |
| 34 | local instance : NormedSpace ℝ CMetric := ContinuousLinearMap.toNormedSpace |
| 35 | private abbrev CFirst := CE →L[ℝ] CMetric |
| 36 | local instance : NormedAddCommGroup CFirst := ContinuousLinearMap.toNormedAddCommGroup |
| 37 | local instance : NormedSpace ℝ CFirst := ContinuousLinearMap.toNormedSpace |
| 38 | private abbrev CSecond := CE →L[ℝ] CFirst |
| 39 | local instance : NormedAddCommGroup CSecond := ContinuousLinearMap.toNormedAddCommGroup |
| 40 | local instance : NormedSpace ℝ CSecond := ContinuousLinearMap.toNormedSpace |
| 41 | |
| 42 | /-- Sphere-coordinate projection used in the fixed chart of Lemma A.2. -/ |
| 43 | def cylinderSphereProjection : CE →L[ℝ] EuclideanSpace ℝ (Fin 2) := |
| 44 | (ContinuousLinearMap.fst ℝ (EuclideanSpace ℝ (Fin 2)) ℝ).comp |
| 45 | cylinderScalarCoordinateEquiv.toContinuousLinearMap |
| 46 | |
| 47 | /-- Axial projection used in the fixed chart of Lemma A.2. -/ |
| 48 | def cylinderAxisProjection : CE →L[ℝ] ℝ := |
| 49 | (ContinuousLinearMap.snd ℝ (EuclideanSpace ℝ (Fin 2)) ℝ).comp |
| 50 | cylinderScalarCoordinateEquiv.toContinuousLinearMap |
| 51 | |
| 52 | /-- Actual chosen-chart cylinder metric, independent of chart center and |
| 53 | axis coordinate, on one fixed Euclidean parameter space. -/ |
| 54 | def cylinderModelMetricCoefficient (x : CE) : MetricCoefficient 3 := |
| 55 | (2 * sphereChartConformalFactor (cylinderSphereProjection x)) • |
| 56 | (innerSL ℝ).bilinearComp cylinderSphereProjection cylinderSphereProjection + |
| 57 | (innerSL ℝ).bilinearComp cylinderAxisProjection cylinderAxisProjection |
| 58 | |
| 59 | /-- The fixed model is the literal sphere-plus-axis cylinder metric. -/ |
| 60 | theorem cylinderModelMetricCoefficient_apply (x v w : CE) : |
| 61 | cylinderModelMetricCoefficient x v w = |
| 62 | 2 * sphereChartConformalFactor (cylinderScalarCoordinateEquiv x).1 * |
| 63 | inner ℝ (cylinderScalarCoordinateEquiv v).1 (cylinderScalarCoordinateEquiv w).1 + |
| 64 | (cylinderScalarCoordinateEquiv v).2 * (cylinderScalarCoordinateEquiv w).2 := by |
| 65 | simp [cylinderModelMetricCoefficient, cylinderSphereProjection, cylinderAxisProjection, |
| 66 | ContinuousLinearMap.bilinearComp_apply, innerSL_apply_apply, mul_comm] |
| 67 | |
| 68 | /-- The model coefficients are genuinely smooth on the full Euclidean |
| 69 | parameter space, so their two-jet is well defined. -/ |
| 70 | theorem contDiff_cylinderModelMetricCoefficient : |
| 71 | ContDiff ℝ ∞ cylinderModelMetricCoefficient := by |
| 72 | exact (contDiff_const.mul |
| 73 | (contDiff_sphereChartConformalFactor.comp cylinderSphereProjection.contDiff)).smul |
| 74 | contDiff_const |>.add contDiff_const |
| 75 | |
| 76 | /-- The fixed coefficient function is exactly the frozen Gram matrix in |
| 77 | every chosen sphere chart and after every axial translation. -/ |
| 78 | theorem cylinderModelMetricCoefficient_basis |
| 79 | (q : UnitTwoSphere) (s : ℝ) (x : CE) (a b : Fin 3) : |
| 80 | cylinderModelMetricCoefficient x |
| 81 | (EuclideanSpace.basisFun (Fin 3) ℝ a) (EuclideanSpace.basisFun (Fin 3) ℝ b) = |
| 82 | roundCylinderGram 0 (chartAt (EuclideanSpace ℝ (Fin 2)) q) |
| 83 | (cylinderScalarCoordinates s x) a b := by |
| 84 | rw [cylinderModelMetricCoefficient_apply, |
| 85 | cylinderScalarCoordinateEquiv_basis, cylinderScalarCoordinateEquiv_basis, |
| 86 | roundCylinderGram_chosen_chart] |
| 87 | fin_cases a <;> fin_cases b <;> |
| 88 | simp [roundCylinderCoordinateBasis, cylinderScalarCoordinates, Matrix.diagonal, |
| 89 | EuclideanSpace.inner_single_left, mul_comm] |
| 90 | |
| 91 | /-- Positivity of the model coefficient at zero precedes every selected |
| 92 | source neck and supplies the scalar operator's invertible base jet. -/ |
| 93 | theorem cylinderModelMetricCoefficient_zero_isInvertible : |
| 94 | (cylinderModelMetricCoefficient 0).IsInvertible := by |
| 95 | apply PoincareMT.Proofs.M03.isInvertible_bilinear_of_pos |
| 96 | intro v hv |
| 97 | rw [cylinderModelMetricCoefficient_apply] |
| 98 | simp only [map_zero, Prod.fst_zero, sphereChartConformalFactor, norm_zero, |
| 99 | zero_pow (by decide : 2 ≠ 0), zero_add] |
| 100 | rw [real_inner_self_eq_norm_sq] |
| 101 | have hne : cylinderScalarCoordinateEquiv v ≠ 0 := by |
| 102 | intro hzero |
| 103 | apply hv |
| 104 | apply cylinderScalarCoordinateEquiv.injective |
| 105 | simpa only [map_zero] using hzero |
| 106 | have hpair : (cylinderScalarCoordinateEquiv v).1 ≠ 0 ∨ |
| 107 | (cylinderScalarCoordinateEquiv v).2 ≠ 0 := by |
| 108 | by_contra h |
| 109 | push Not at h |
| 110 | exact hne (Prod.ext h.1 h.2) |
| 111 | rcases hpair with hs | ha |
| 112 | · have hp := sq_pos_of_pos (norm_pos_iff.mpr hs) |
| 113 | nlinarith [sq_nonneg (cylinderScalarCoordinateEquiv v).2] |
| 114 | · have hp := sq_pos_of_ne_zero ha |
| 115 | nlinarith [sq_nonneg ‖(cylinderScalarCoordinateEquiv v).1‖] |
| 116 | |
| 117 | /-- The single model jet against which every source neck is compared. -/ |
| 118 | def cylinderModelTwoJet : MetricTwoJet 3 := |
| 119 | metricTwoJet cylinderModelMetricCoefficient 0 |
| 120 | |
| 121 | /-- A scalar accuracy determines a positive tolerance before any source |
| 122 | neck. The model scalar is a fixed constant and is not an extra hypothesis. -/ |
| 123 | theorem exists_cylinder_model_scalar_modulus {delta : ℝ} (hdelta : 0 < delta) : |
| 124 | ∃ eta : ℝ, 0 < eta ∧ ∀ J : MetricTwoJet 3, |
| 125 | dist J cylinderModelTwoJet < eta → |
| 126 | |jetScalarCurvature J - jetScalarCurvature cylinderModelTwoJet| < delta := |
| 127 | exists_jetScalarCurvature_modulus cylinderModelMetricCoefficient_zero_isInvertible hdelta |
| 128 | |
| 129 | end PoincareMT.M28.tube |