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.CanonicalNeighborhood.Neck.Curvature.Quadratic |
| 2 | import PoincareLib.Geometry.RicciFlow.CanonicalNeighborhood.Neck.Overlap.ProjectionDerivative |
| 3 | import PoincareLib.Geometry.RicciFlow.CanonicalNeighborhood.Neck.Separation |
| 4 | |
| 5 | /-! |
| 6 | # A compact sphere transverse to the Ricci-null directions |
| 7 | |
| 8 | The actual neck Ricci estimate forces every nonzero diagonal-null tangent |
| 9 | vector to have a nonzero axial component. Its central sphere is therefore |
| 10 | a compact smooth embedded surface transverse to these directions. |
| 11 | |
| 12 | The statements retain the frozen neck coordinates, their product source |
| 13 | model, and the supplied connection on the actual metric. They require no |
| 14 | parallel field, complete metric, soliton potential, or Ricci-flow interval. |
| 15 | Morgan--Tian Claim 11.7, pp. 270-271; Lemma A.2, pp. 497-498; and |
| 16 | Proposition A.11, pp. 503-504. See the independently reviewed |
| 17 | null-neck-transversality-route derivation and round_1 report. |
| 18 | -/ |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | |
| 23 | open Set |
| 24 | open scoped Manifold ContDiff Bundle Topology |
| 25 | |
| 26 | universe u |
| 27 | |
| 28 | namespace PoincareMT.M30 |
| 29 | |
| 30 | /-- The universal neck Ricci estimate gives a quantitative axial bound |
| 31 | for actual diagonal-null vectors, the local static step of Claim 11.7 |
| 32 | (pp. 270-271), using Lemma A.2 and Proposition A.11. -/ |
| 33 | theorem exists_neck_ricci_null_axial_bound : |
| 34 | ∃ epsilon0 : ℝ, 0 < epsilon0 ∧ epsilon0 ≤ 1 / 200 ∧ |
| 35 | ∀ {M : Type u} [TopologicalSpace M] |
| 36 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 37 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 38 | [T2Space M] [T3Space M] {g : RiemannianMetric 3 M}, |
| 39 | ∀ (N : EpsilonNeck g) (D : LeviCivitaData g), N.epsilon ≤ epsilon0 → |
| 40 | ∀ z ∈ N.cylinderDomain, ∀ v : RoundCylinderTangent z, |
| 41 | D.ricci (N.coordinate_map z) |
| 42 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) N.coordinate_map z v) |
| 43 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) N.coordinate_map z v) = 0 → |
| 44 | (49 / 50 : ℝ) * EvolvingRoundCylinderMetric 0 z v v ≤ v.2 ^ 2 := by |
| 45 | obtain ⟨epsilon0, hepsilon0, hsmall, hcontrol⟩ := |
| 46 | EpsilonNeck.exists_ricci_quadratic_control.{u} |
| 47 | refine ⟨epsilon0, hepsilon0, hsmall, ?_⟩ |
| 48 | intro M _ _ _ _ _ _ _ g N D hN z hz v hnull |
| 49 | have h := (abs_le.mp (hcontrol N D hN z hz v)).1 |
| 50 | rw [hnull] at h |
| 51 | linarith |
| 52 | |
| 53 | /-- The actual central sphere of each sufficiently small neck is a compact |
| 54 | smooth embedding transverse to every nonzero diagonal Ricci-null direction |
| 55 | (Claim 11.7, pp. 270-271). The threshold is retained from the axial estimate. -/ |
| 56 | theorem exists_neck_central_sphere_ricci_null_transversality : |
| 57 | ∃ epsilon0 : ℝ, 0 < epsilon0 ∧ epsilon0 ≤ 1 / 200 ∧ |
| 58 | ∀ {M : Type u} [TopologicalSpace M] |
| 59 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 60 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 61 | [T2Space M] [T3Space M] {g : RiemannianMetric 3 M}, |
| 62 | ∀ (N : EpsilonNeck g) (D : LeviCivitaData g), N.epsilon ≤ epsilon0 → |
| 63 | let i : UnitTwoSphere → M := fun q => N.coordinate_map (q, 0) |
| 64 | Manifold.IsSmoothEmbedding (𝓡 2) (𝓡 3) ∞ i ∧ |
| 65 | IsCompact N.central_sphere ∧ |
| 66 | ∀ (q : UnitTwoSphere) (w : TangentSpace (𝓡 3) (i q)), |
| 67 | w ≠ 0 → D.ricci (i q) w w = 0 → |
| 68 | ¬ ∃ v : TangentSpace (𝓡 2) q, |
| 69 | mfderiv (𝓡 2) (𝓡 3) i q v = w := by |
| 70 | obtain ⟨epsilon0, hepsilon0, hsmall, hbound⟩ := |
| 71 | exists_neck_ricci_null_axial_bound.{u} |
| 72 | refine ⟨epsilon0, hepsilon0, hsmall, ?_⟩ |
| 73 | intro M _ _ _ _ _ _ _ g N D hN |
| 74 | dsimp only |
| 75 | refine ⟨N.centralSphere_isSmoothEmbedding, N.isCompact_central_sphere, ?_⟩ |
| 76 | intro q w hw hnull |
| 77 | rintro ⟨v, hv⟩ |
| 78 | have hz : (q, (0 : ℝ)) ∈ N.cylinderDomain := |
| 79 | ⟨mem_univ _, neg_lt_zero.mpr (inv_pos.mpr N.epsilon_pos), |
| 80 | inv_pos.mpr N.epsilon_pos⟩ |
| 81 | have hv0 : (v, (0 : ℝ)) ≠ (0 : RoundCylinderTangent (q, 0)) := by |
| 82 | intro heq |
| 83 | have hvzero : v = 0 := congrArg Prod.fst heq |
| 84 | apply hw |
| 85 | rw [hvzero] at hv |
| 86 | simpa only [map_zero] using hv.symm |
| 87 | have hnull' : D.ricci (N.coordinate_map (q, 0)) |
| 88 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) N.coordinate_map (q, 0) (v, 0)) |
| 89 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) N.coordinate_map (q, 0) (v, 0)) = 0 := by |
| 90 | rw [← N.centralSphere_mfderiv q v, hv] |
| 91 | exact hnull |
| 92 | have haxial := hbound N D hN (q, 0) hz (v, 0) hnull' |
| 93 | have hpos : 0 < EvolvingRoundCylinderMetric 0 (q, 0) (v, 0) (v, 0) := by |
| 94 | rw [← roundCylinderProductMetric_inner (q, 0) (v, 0) (v, 0)] |
| 95 | exact roundCylinderProductMetric.pos (q, 0) (v, 0) hv0 |
| 96 | simp only [zero_pow (by decide : 2 ≠ 0)] at haxial |
| 97 | linarith |
| 98 | |
| 99 | end PoincareMT.M30 |