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.Blowup.Construction.Analysis.SmoothCoverLift |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.ShortTime.StaticLimit.StaticNullField |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.ShortTime.Nullity.NullNeckTransversality |
| 4 | import PoincareLib.Topology.Homotopy.Sphere.SphereConnectivity |
| 5 | |
| 6 | /-! |
| 7 | # A lifted neck sphere transverse to the unit null field |
| 8 | |
| 9 | The actual central sphere lifts through the unit Ricci-kernel cover. |
| 10 | Its coordinate left inverse and the projected field identity prove |
| 11 | injectivity of the lifted differential and transversality to the fixed |
| 12 | tautological field. This supplies the compact section for the flowout |
| 13 | argument in Morgan--Tian Claim 11.7, pp. 270-271. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Manifold PoincareMT.RicciFlow.Splitting |
| 20 | open scoped Manifold ContDiff Bundle Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.M30 |
| 25 | |
| 26 | /-- The actual central sphere of a sufficiently small neck has a smooth |
| 27 | lift transverse to the literal unit Ricci-kernel field, with injective |
| 28 | differential (Claim 11.7, pp. 270-271). -/ |
| 29 | theorem exists_neck_lifted_sphere_transverse_unitRicciKernelField : |
| 30 | ∃ epsilon0 : ℝ, 0 < epsilon0 ∧ epsilon0 ≤ 1 / 200 ∧ |
| 31 | ∀ {M : Type u} [TopologicalSpace M] |
| 32 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 33 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 34 | [T2Space M] [T3Space M] {g : RiemannianMetric 3 M}, |
| 35 | ∀ (N : EpsilonNeck g) (D : LeviCivitaData g), N.epsilon ≤ epsilon0 → |
| 36 | ∀ (hc : IsCoveringMap (unitRicciKernelProjection D)), |
| 37 | (∀ x : M, Nat.card (unitRicciKernelProjection D ⁻¹' {x}) = 2) → |
| 38 | letI := unitRicciKernelChartedSpace D hc |
| 39 | letI := unitRicciKernelIsManifold D hc |
| 40 | ∃ j : UnitTwoSphere → UnitRicciKernel D, |
| 41 | ContMDiff (𝓡 2) (𝓡 3) ∞ j ∧ |
| 42 | unitRicciKernelProjection D ∘ j = (fun q => N.coordinate_map (q, 0)) ∧ |
| 43 | (∀ q, Function.Injective (mfderiv (𝓡 2) (𝓡 3) j q)) ∧ |
| 44 | ∀ q, ¬ ∃ v : TangentSpace (𝓡 2) q, |
| 45 | mfderiv (𝓡 2) (𝓡 3) j q v = unitRicciKernelField D hc (j q) := by |
| 46 | classical |
| 47 | obtain ⟨epsilon0, hepsilon0, hsmall, htrans⟩ := |
| 48 | exists_neck_central_sphere_ricci_null_transversality.{u} |
| 49 | refine ⟨epsilon0, hepsilon0, hsmall, ?_⟩ |
| 50 | intro M _ _ _ _ _ _ _ g N D hN hc hcard |
| 51 | let := unitRicciKernelChartedSpace D hc |
| 52 | let := unitRicciKernelIsManifold D hc |
| 53 | let : SimplyConnectedSpace UnitTwoSphere := |
| 54 | Poincare.Topology.sphere_simplyConnectedSpace_of_two_lt_finrank (by simp) |
| 55 | let : LocallyPathConnectedSpace UnitTwoSphere := |
| 56 | ChartedSpace.locallyPathConnectedSpace (EuclideanSpace ℝ (Fin 2)) UnitTwoSphere |
| 57 | let i : UnitTwoSphere → M := fun q => N.coordinate_map (q, 0) |
| 58 | have hi : ContMDiff (𝓡 2) (𝓡 3) ∞ i := N.centralSphere_contMDiff |
| 59 | have hpi := unitRicciKernelProjection_isLocalDiffeomorph D hc |
| 60 | let q0 : UnitTwoSphere := (N.coordinate_inverse N.center).1 |
| 61 | have hfiber : Nonempty (unitRicciKernelProjection D ⁻¹' {i q0}) := |
| 62 | (Nat.card_ne_zero.mp (by rw [hcard]; decide)).1 |
| 63 | obtain ⟨p0⟩ := hfiber |
| 64 | obtain ⟨j, hj, _, hproj⟩ := exists_contMDiff_covering_lift hc hpi hi q0 p0.1 p0.2 |
| 65 | have hz (q : UnitTwoSphere) : (q, (0 : ℝ)) ∈ N.cylinderDomain := |
| 66 | ⟨mem_univ _, neg_lt_zero.mpr (inv_pos.mpr N.epsilon_pos), |
| 67 | inv_pos.mpr N.epsilon_pos⟩ |
| 68 | let k : M → UnitTwoSphere := fun x => (N.coordinate_inverse x).1 |
| 69 | have hkcomp : k ∘ i = id := by |
| 70 | funext q |
| 71 | exact congrArg Prod.fst (N.coordinate_inverse_coordinate_map (hz q)) |
| 72 | have hk (q : UnitTwoSphere) : MDifferentiableAt (𝓡 3) (𝓡 2) k (i q) := |
| 73 | (contMDiffAt_fst.comp (i q) (N.coordinate_inverse_smooth.contMDiffAt |
| 74 | (N.carrier_open.mem_nhds (N.coordinate_map_mem (hz q))))).mdifferentiableAt (by simp) |
| 75 | have hi_inj (q : UnitTwoSphere) : Function.Injective (mfderiv (𝓡 2) (𝓡 3) i q) := by |
| 76 | have hcomp : (mfderiv (𝓡 3) (𝓡 2) k (i q)).comp (mfderiv (𝓡 2) (𝓡 3) i q) = |
| 77 | ContinuousLinearMap.id ℝ (TangentSpace (𝓡 2) q) := by |
| 78 | rw [← mfderiv_comp q (hk q) (hi.mdifferentiable (by simp) q), hkcomp] |
| 79 | exact mfderiv_id |
| 80 | have hleft (v : TangentSpace (𝓡 2) q) : |
| 81 | mfderiv (𝓡 3) (𝓡 2) k (i q) (mfderiv (𝓡 2) (𝓡 3) i q v) = v := |
| 82 | congrArg (fun L => L v) hcomp |
| 83 | intro v w hvw |
| 84 | exact (hleft v).symm.trans |
| 85 | ((congrArg (mfderiv (𝓡 3) (𝓡 2) k (i q)) hvw).trans (hleft w)) |
| 86 | have hderiv (q : UnitTwoSphere) : |
| 87 | (mfderiv (𝓡 3) (𝓡 3) (unitRicciKernelProjection D) (j q)).comp |
| 88 | (mfderiv (𝓡 2) (𝓡 3) j q) = mfderiv (𝓡 2) (𝓡 3) i q := by |
| 89 | rw [← mfderiv_comp q (hpi.contMDiff.mdifferentiable (by simp) (j q)) |
| 90 | (hj.mdifferentiable (by simp) q), hproj] |
| 91 | refine ⟨j, hj, hproj, ?_, ?_⟩ |
| 92 | · intro q v w hvw |
| 93 | apply hi_inj q |
| 94 | have heq := congrArg (mfderiv (𝓡 3) (𝓡 3) (unitRicciKernelProjection D) (j q)) hvw |
| 95 | change ((mfderiv (𝓡 3) (𝓡 3) (unitRicciKernelProjection D) (j q)).comp |
| 96 | (mfderiv (𝓡 2) (𝓡 3) j q)) v = |
| 97 | ((mfderiv (𝓡 3) (𝓡 3) (unitRicciKernelProjection D) (j q)).comp |
| 98 | (mfderiv (𝓡 2) (𝓡 3) j q)) w at heq |
| 99 | simpa only [hderiv q, TangentSpace] using heq |
| 100 | · intro q |
| 101 | have hp : unitRicciKernelProjection D (j q) = i q := congrFun hproj q |
| 102 | have hunit : g.inner (i q) (j q).1.snd (j q).1.snd = 1 := by |
| 103 | rw [← hp] |
| 104 | exact (j q).2.1 |
| 105 | have hnonzero : (j q).1.snd ≠ 0 := by |
| 106 | intro hzero |
| 107 | simp only [hzero, map_zero] at hunit |
| 108 | norm_num at hunit |
| 109 | have hnull : D.ricci (i q) (j q).1.snd (j q).1.snd = 0 := by |
| 110 | rw [← hp] |
| 111 | exact (j q).2.2 _ |
| 112 | rintro ⟨v, hv⟩ |
| 113 | apply (htrans N D hN).2.2 q (j q).1.snd hnonzero hnull |
| 114 | refine ⟨v, ?_⟩ |
| 115 | have heq := congrArg (mfderiv (𝓡 3) (𝓡 3) (unitRicciKernelProjection D) (j q)) hv |
| 116 | rw [unitRicciKernelField_projection D hc] at heq |
| 117 | exact (congrArg (fun L => L v) (hderiv q)).symm.trans heq |
| 118 | |
| 119 | end PoincareMT.M30 |