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.Surgery.StandardCap.Existence.Lifetime.CanonicalGeometry.StrongNeckOrdinaryPullback |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Lifetime.CanonicalGeometry.StrongNeckRestriction |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Lifetime.CanonicalGeometry.StrongNeckLocality |
| 4 | |
| 5 | /-! |
| 6 | # The actual source strong-neck record |
| 7 | |
| 8 | The actual spatial image, its retained inverse, and the ordinary time |
| 9 | cylinder fill every frozen field. Scalar normalization is an explicit |
| 10 | real identity to be read from M30 base preservation. Source: Morgan-Tian |
| 11 | Theorem 12.28, pp. 323-324; owned source-neck assembly derivation. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M34 |
| 23 | |
| 24 | variable {M : Type u} [TopologicalSpace M] |
| 25 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 26 | [T3Space M] [MeasurableSpace M] [BorelSpace M] [SecondCountableTopology M] |
| 27 | {I : SpacetimeInterval} {F : RicciFlow 3 M I.domain} |
| 28 | (R : OrdinaryProductRicciGeometry F.metric I) |
| 29 | |
| 30 | local notation "G" => ordinaryChapter11Flow (I := I) (F := F) R |
| 31 | |
| 32 | /-- An actual captured neck and its transferred metric comparison give |
| 33 | the actual source strong neck, with the transported center unchanged. -/ |
| 34 | theorem ordinaryChapter11_exists_sourceStrongNeck |
| 35 | {C : GeneralizedSliceCarrier.{u}} {origin scale : ℝ} |
| 36 | {K : Set ℝ} {U : Set C.carrier} |
| 37 | (e : GeneralizedFlowCylinder (G) C origin scale K U) |
| 38 | (hU : IsOpen U) (hK : IsPreconnected K) (hzero : 0 ∈ K) |
| 39 | {g : RiemannianMetric 3 C.carrier} (N : EpsilonNeck g) |
| 40 | (hNU : N.carrier ⊆ U) (hI : Ioc (-1 : ℝ) 0 ⊆ K) |
| 41 | (sigma : ℝ) (hsigma : 0 < sigma) (hscale : scale = sigma⁻¹ ^ 2) |
| 42 | (hscalar : 0 < (G).scalar (e.pointMap 0 hzero N.center)) |
| 43 | (hsigmaScalar : sigma = ((G).scalar (e.pointMap 0 hzero N.center)) ^ (-1 / 2 : ℝ)) |
| 44 | (hclose : RoundCylinderFamilyClose N.epsilon (Ioc (-1 : ℝ) 0) |
| 45 | (generalizedCylinderPullback e N.coordinate_map)) : |
| 46 | ∃ Ns : GeneralizedStrongNeck (G) (origin + 0 / scale) N.epsilon, |
| 47 | Ns.center = e.forward 0 hzero N.center := by |
| 48 | subst scale |
| 49 | have hzero' : (0 : ℝ) ∈ Ioc (-1 : ℝ) 0 := by constructor <;> norm_num |
| 50 | let f := e.forward 0 hzero |
| 51 | let fInv := e.inverse 0 hzero |
| 52 | let V := f '' N.carrier |
| 53 | let c := N.coordinate.trans (e.restrictedSpatialHomeomorph hNU 0 hzero) |
| 54 | let coordinate := f ∘ N.coordinate_map |
| 55 | let inverse := N.coordinate_inverse ∘ fInv |
| 56 | let e' := ordinaryChapter11PushedCylinder R e N.center hzero N.carrier |
| 57 | (Ioc (-1 : ℝ) 0) hI |
| 58 | have hinv (x : ((G).slice (origin + 0 / sigma⁻¹ ^ 2)).carrier) (hx : x ∈ V) : |
| 59 | fInv x ∈ N.carrier := by |
| 60 | obtain ⟨y, hy, rfl⟩ := hx |
| 61 | simpa only [fInv, f, e.left_inverse 0 hzero (hNU hy)] using hy |
| 62 | have hcoordinate : ContMDiffOn ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ coordinate |
| 63 | (univ ×ˢ Ioo (-N.epsilon⁻¹) N.epsilon⁻¹) := |
| 64 | (e.forward_smooth 0 hzero).comp N.coordinate_map_smooth |
| 65 | (fun _ hz => hNU (N.coordinate_map_mem_of_axial_mem hz.2)) |
| 66 | have hinverse : ContMDiffOn (𝓡 3) ((𝓡 2).prod 𝓘(ℝ, ℝ)) ∞ inverse V := |
| 67 | N.coordinate_inverse_smooth.comp |
| 68 | ((e.inverse_smooth 0 hzero).mono (image_mono hNU)) hinv |
| 69 | have hcomparison : RoundCylinderFamilyClose N.epsilon (Ioc (-1 : ℝ) 0) |
| 70 | (generalizedCylinderPullback e' coordinate) := by |
| 71 | apply hclose.congr_cylinder |
| 72 | intro s hs z hz v w |
| 73 | exact (ordinaryChapter11PushedCylinder_cylinderPullback_eq R e hU hK N.center |
| 74 | hzero N.carrier_open hNU (Ioc (-1 : ℝ) 0) hI (convex_Ioc _ _).isPreconnected |
| 75 | hzero' hs |
| 76 | ((N.coordinate_map_smooth.contMDiffAt |
| 77 | ((isOpen_univ.prod isOpen_Ioo).mem_nhds ⟨mem_univ _, hz⟩)).mdifferentiableAt |
| 78 | (by simp)) (N.coordinate_map_mem_of_axial_mem hz) v w).symm |
| 79 | refine ⟨{ |
| 80 | epsilon_pos := N.epsilon_pos |
| 81 | center := f N.center |
| 82 | scalar_center_pos := hscalar |
| 83 | scale := sigma |
| 84 | scale_pos := hsigma |
| 85 | scale_scalar := hsigmaScalar |
| 86 | carrier := V |
| 87 | carrier_open := e.isOpen_forward_image hU N.carrier_open hNU hzero |
| 88 | coordinate := c |
| 89 | coordinate_map := coordinate |
| 90 | coordinate_map_eq := ?_ |
| 91 | coordinate_map_smooth := hcoordinate |
| 92 | coordinate_inverse := inverse |
| 93 | coordinate_inverse_mem := fun x hx => (N.coordinate_inverse_mem _ (hinv x hx)).2 |
| 94 | coordinate_inverse_left := ?_ |
| 95 | coordinate_inverse_right := ?_ |
| 96 | coordinate_inverse_smooth := hinverse |
| 97 | central_sphere := f '' N.central_sphere |
| 98 | central_sphere_eq := ?_ |
| 99 | center_on_central_sphere := mem_image_of_mem f N.center_on_central_sphere |
| 100 | central_sphere_subset := image_mono N.central_sphere_subset |
| 101 | time_cylinder := e' |
| 102 | cylinder_identity := ?_ |
| 103 | metric_comparison := hcomparison |
| 104 | }, rfl⟩ |
| 105 | · intro z |
| 106 | exact congrArg f (N.coordinate_map_eq z) |
| 107 | · intro z |
| 108 | change N.coordinate_inverse (e.inverse 0 hzero (e.forward 0 hzero (N.coordinate z))) = _ |
| 109 | rw [e.left_inverse 0 hzero (hNU (N.coordinate z).property)] |
| 110 | exact N.coordinate_inverse_left z |
| 111 | · intro x hx |
| 112 | have hy := hinv x hx |
| 113 | have hN := congrArg (fun y : N.carrier => (y : C.carrier)) |
| 114 | (N.coordinate_inverse_right (fInv x) hy) |
| 115 | rw [N.coordinate_map_eq] at hN |
| 116 | change f (N.coordinate_map (N.coordinate_inverse (fInv x))) = x |
| 117 | exact (congrArg f hN).trans (e.right_inverse 0 hzero ((image_mono hNU) hx)) |
| 118 | · rw [N.central_sphere_eq, image_image] |
| 119 | rfl |
| 120 | · intro h x _ |
| 121 | exact ordinaryChapter11PushedCylinder_zero_identity R e N.center hzero N.carrier |
| 122 | (Ioc (-1 : ℝ) 0) hI h x |
| 123 | |
| 124 | end PoincareMT.M34 |