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.Tube.SourceGeometry.CriticalBall.SourceCriticalBallRawStage |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.Ends.SourceTubeInitialPair |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Persistence.NeckGeometry.PartialDiffeomorphPullback |
| 5 | |
| 6 | /-! |
| 7 | # Forward geometry of a fixed neck at the retained base |
| 8 | |
| 9 | The original raw-stage embedding carries the fixed central sphere and |
| 10 | restricted neck coordinates forward. The literal zero-node connection |
| 11 | sets exactly its original scalar-defined scale. Metric comparison is a |
| 12 | separate analytic step. Source: Morgan--Tian Proposition 10.7, pp. 253-254; |
| 13 | M28 derivation 109. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.M28.CounterexampleNeckFamily |
| 25 | |
| 26 | open PoincareMT.Proofs.M28.NeckTransfer |
| 27 | |
| 28 | variable {epsilon C A : ℝ} |
| 29 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 30 | ((n : ℝ) + 1) ((n : ℝ) + 1)} |
| 31 | |
| 32 | set_option maxHeartbeats 2400000 in |
| 33 | -- The source connection and geometry retain the literal dependent zero-node index. |
| 34 | /-- Every stage containing the fixed neck gives its actual forward |
| 35 | geometry at the original zero-node center and scale. The central sphere |
| 36 | is exactly the image of the same fixed sphere. Source: Proposition 10.7, |
| 37 | pp. 253-254; M28 derivation 109. -/ |
| 38 | theorem exists_regularRawStage_forward_neck_geometry (H : CounterexampleNeckFamily E) |
| 39 | (T : ∀ k, SourceTubeData (H.segment k)) (A1 : ℝ) (hA1 : 0 < A1) |
| 40 | (phi : ℕ → ℕ) |
| 41 | (G : RegularPointedMetricConvergence |
| 42 | (fun k => H.tubeCriticalMetric T A1 (phi k)) |
| 43 | (fun k => H.tubeCriticalBase T A1 hA1 (phi k))) : |
| 44 | letI := G.limitCarrier.topologicalSpace |
| 45 | letI := G.limitCarrier.chartedSpace |
| 46 | letI := G.limitCarrier.isManifold |
| 47 | ∀ (L : EpsilonNeck G.limitMetric) (j : ℕ), L.carrier ⊆ G.exhaustion j → |
| 48 | L.center = G.base → ∀ theta : ℝ, L.epsilon ≤ theta → theta < 1 / 2 → |
| 49 | ∀ k ≥ j, ∃ V : NeckGeometryCore |
| 50 | ((E (phi (G.subsequence k) + H.shift)).flow.metric |
| 51 | (E (phi (G.subsequence k) + H.shift)).time) theta, |
| 52 | V.center = ((T (phi (G.subsequence k))).list.node 0).2.center ∧ |
| 53 | V.scale = ((T (phi (G.subsequence k))).list.node 0).2.scale ∧ |
| 54 | V.connection = ((T (phi (G.subsequence k))).list.node 0).2.connection ∧ |
| 55 | V.carrier = (H.regularRawStageDiffeomorph T A1 hA1 phi G k) '' |
| 56 | L.region (-theta⁻¹) theta⁻¹ ∧ |
| 57 | V.central_sphere = (H.regularRawStageDiffeomorph T A1 hA1 phi G k) '' |
| 58 | L.central_sphere ∧ |
| 59 | ∀ z : RoundCylinderSpace, V.coordinate_map z = |
| 60 | H.regularRawStageDiffeomorph T A1 hA1 phi G k (L.coordinate_map z) := by |
| 61 | let := G.limitCarrier.topologicalSpace |
| 62 | let := G.limitCarrier.chartedSpace |
| 63 | let := G.limitCarrier.isManifold |
| 64 | intro L j hLstage hLcenter theta htheta hhalf k hjk |
| 65 | let i := phi (G.subsequence k) |
| 66 | let N := ((T i).list.node 0).2 |
| 67 | let e := H.regularRawStageDiffeomorph T A1 hA1 phi G k |
| 68 | let R := L.restrict_m28 theta htheta hhalf |
| 69 | have hmono : Monotone G.exhaustion := monotone_nat_of_le_succ |
| 70 | (fun k => subset_closure.trans (G.exhaustion_step k)) |
| 71 | have hcap : R.carrier ⊆ e.symm.target := by |
| 72 | change R.carrier ⊆ e.source |
| 73 | rw [H.regularRawStageDiffeomorph_source] |
| 74 | intro x hx |
| 75 | exact hmono hjk (hLstage hx.1) |
| 76 | have hcenter : e R.center = N.center := by |
| 77 | change e L.center = N.center |
| 78 | rw [hLcenter, H.regularRawStageDiffeomorph_base] |
| 79 | exact (T i).node_zero_readout.2.2.symm |
| 80 | have hscalar : 0 < N.connection.scalarCurvature (e.symm.symm R.center) := by |
| 81 | change 0 < N.connection.scalarCurvature (e R.center) |
| 82 | rw [hcenter] |
| 83 | exact N.scalar_center_pos |
| 84 | let V := pullbackNeckGeometry e.symm R hcap N.connection hscalar |
| 85 | refine ⟨V, hcenter, ?_, rfl, rfl, rfl, fun _ => rfl⟩ |
| 86 | change (N.connection.scalarCurvature (e R.center)) ^ (-1 / 2 : ℝ) = N.scale |
| 87 | rw [hcenter] |
| 88 | exact N.scale_eq_scalar.symm |
| 89 | |
| 90 | end PoincareMT.M28.CounterexampleNeckFamily |