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.SourceCriticalBallLocalBackwardModels |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.CriticalBall.CriticalBallSourcePacket |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.OpenGeometry.OpenMetricCurvaturePositivity |
| 5 | |
| 6 | /-! |
| 7 | # Actual curvature positivity on the retained first spatial limit |
| 8 | |
| 9 | At each point the original counterexample sources produce an included |
| 10 | terminal slice of a nonnegative backward model. Its actual local isometry |
| 11 | transports positivity to the same retained connection D0. Open restriction |
| 12 | then gives the sectional curvature input for the selected-end comparison. |
| 13 | Source: Morgan--Tian Claim 10.11, p. 255; M28 derivations 79 and 161b. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set |
| 20 | open scoped Manifold ContDiff Bundle |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.M28.CounterexampleNeckFamily |
| 25 | |
| 26 | /-- The actual original sources give nonnegative curvature operator on |
| 27 | the same first spatial limit, and nonnegative sectional curvature for |
| 28 | every literal open restriction. The accuracy is chosen before the |
| 29 | counterexample family and source packet; the local models are produced |
| 30 | internally. Source: MT Claim 10.11, p. 255; derivation 161b. -/ |
| 31 | theorem exists_source_criticalBall_nonnegative_accuracy |
| 32 | (P : RicciFlowCurvatureTheory.{u}) : |
| 33 | ∃ epsilon0 : ℝ, 0 < epsilon0 ∧ epsilon0 ≤ (1 / 1000 : ℝ) ∧ |
| 34 | ∀ {epsilon C A : ℝ} |
| 35 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 36 | ((n : ℝ) + 1) ((n : ℝ) + 1)} |
| 37 | (H : CounterexampleNeckFamily E) (W : CriticalBallSourcePacket H), |
| 38 | epsilon ≤ epsilon0 → |
| 39 | ∀ (G : RegularPointedMetricConvergence |
| 40 | (fun k => H.tubeCriticalMetric W.tube W.radius (W.high_index k)) |
| 41 | (fun k => H.tubeCriticalBase W.tube W.radius W.radius_pos (W.high_index k))), |
| 42 | letI := G.limitCarrier.topologicalSpace |
| 43 | letI := G.limitCarrier.chartedSpace |
| 44 | letI := G.limitCarrier.isManifold |
| 45 | ∀ D0 : LeviCivitaData G.limitMetric, |
| 46 | (∀ q : G.limitCarrier.carrier, D0.NonnegativeCurvatureOperator q) ∧ |
| 47 | ∀ (U : TopologicalSpace.Opens G.limitCarrier.carrier) |
| 48 | (DU : LeviCivitaData (intrinsicOpenMetric G.limitMetric U)), |
| 49 | DU.NonnegativeSectionalCurvature := by |
| 50 | obtain ⟨epsilon0, hpos, hsmall, hmodels⟩ := |
| 51 | exists_source_criticalBall_local_backward_models_accuracy P |
| 52 | refine ⟨epsilon0, hpos, hsmall, ?_⟩ |
| 53 | intro epsilon C A E H W hepsilon G |
| 54 | let := G.limitCarrier.topologicalSpace |
| 55 | let := G.limitCarrier.chartedSpace |
| 56 | let := G.limitCarrier.isManifold |
| 57 | intro D0 |
| 58 | have hnonnegative (q : G.limitCarrier.carrier) : |
| 59 | D0.NonnegativeCurvatureOperator q := by |
| 60 | obtain ⟨F⟩ := hmodels H W.tube hepsilon W.radius W.radius_pos W.high_index |
| 61 | W.high_index_strictMono G D0 q univ isOpen_univ (mem_univ q) |
| 62 | let := F.carrier.topologicalSpace |
| 63 | let := F.carrier.chartedSpace |
| 64 | let := F.carrier.isManifold |
| 65 | obtain ⟨z, hz⟩ := F.captures |
| 66 | have hzero : (0 : ℝ) ∈ Icc (-F.duration) 0 := |
| 67 | ⟨neg_nonpos.mpr F.duration_pos.le, le_rfl⟩ |
| 68 | have htransport := ((F.flow.connection 0).nonnegativeCurvatureOperator_iff_of_local_isometry |
| 69 | D0 (f := F.embedding) isOpen_univ F.embedding_smooth.contMDiff.contMDiffOn |
| 70 | (fun y _ v w => (F.metric_at_zero y v w).symm) (mem_univ z)).mp |
| 71 | (F.nonnegative 0 hzero z) |
| 72 | rw [hz] at htransport |
| 73 | exact htransport |
| 74 | refine ⟨hnonnegative, ?_⟩ |
| 75 | intro U DU |
| 76 | exact intrinsicOpenMetric_nonnegativeSectionalCurvature_of_operator |
| 77 | G.limitMetric U D0 DU (fun x => hnonnegative (x : G.limitCarrier.carrier)) |
| 78 | |
| 79 | end PoincareMT.M28.CounterexampleNeckFamily |