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.SourceCriticalBallBackwardPositivity |
| 3 | |
| 4 | /-! |
| 5 | # Actual nonnegative local backward models from the source family |
| 6 | |
| 7 | The source-family producer supplies the curvature bound before extraction. |
| 8 | Original pinching then proves nonnegative curvature of the same genuine |
| 9 | backward limit, whose terminal metric remains the retained spatial metric. |
| 10 | Morgan--Tian Proposition 5.14 and Claim 10.11, pp. 90-91 and 255; |
| 11 | M28 derivation 78. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M28.CounterexampleNeckFamily |
| 23 | |
| 24 | set_option maxHeartbeats 1400000 in |
| 25 | -- Retain the same dependent source data, extracted flow and curvature bound. |
| 26 | /-- A universal source accuracy constructs an actual nonnegative backward |
| 27 | chart limit with exact terminal spatial metric. The curvature bound is |
| 28 | produced from the source, not supplied as an extra assumption (derivation 78). -/ |
| 29 | theorem exists_source_criticalBall_positive_backward_limit_accuracy |
| 30 | (P : RicciFlowCurvatureTheory.{u}) : |
| 31 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ (1 / 1000 : ℝ) ∧ |
| 32 | ∀ {epsilon C A : ℝ} |
| 33 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 34 | ((n : ℝ) + 1) ((n : ℝ) + 1)} |
| 35 | (H : CounterexampleNeckFamily E) (T : ∀ k, SourceTubeData (H.segment k)), |
| 36 | epsilon ≤ epsilon₀ → ∀ (A1 : ℝ) (hA1 : 0 < A1) (phi : ℕ → ℕ), |
| 37 | StrictMono phi → ∀ (G : RegularPointedMetricConvergence |
| 38 | (fun k => H.tubeCriticalMetric T A1 (phi k)) |
| 39 | (fun k => H.tubeCriticalBase T A1 hA1 (phi k))), |
| 40 | letI := G.limitCarrier.topologicalSpace |
| 41 | letI := G.limitCarrier.chartedSpace |
| 42 | letI := G.limitCarrier.isManifold |
| 43 | ∀ (D₀ : LeviCivitaData G.limitMetric) (q : G.limitCarrier.carrier), |
| 44 | ∃ D : CriticalBallBackwardChartData H T A1 hA1 phi G q |
| 45 | (D₀.scalarCurvature q)⁻¹, |
| 46 | ∃ L : CriticalBallBackwardChartData.BackwardChartLimit D, |
| 47 | letI := D.limitDomain_open.isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 48 | letI := D.limitDomain_open.isOpenEmbedding_subtypeVal.isManifold_singleton |
| 49 | (I := 𝓡 3) (n := ∞) |
| 50 | ∀ t ∈ Icc (-((D₀.scalarCurvature q)⁻¹ / 8)) 0, |
| 51 | ∀ x : D.limitDomain, (L.flow.connection t).NonnegativeCurvatureOperator x := by |
| 52 | obtain ⟨epsilon₀, hpos, hsmall, hsource⟩ := |
| 53 | exists_source_criticalBall_backward_family_accuracy P |
| 54 | refine ⟨epsilon₀, hpos, hsmall, ?_⟩ |
| 55 | intro epsilon C A E H T hepsilon A1 hA1 phi hphi G |
| 56 | let := G.limitCarrier.topologicalSpace |
| 57 | let := G.limitCarrier.chartedSpace |
| 58 | let := G.limitCarrier.isManifold |
| 59 | intro D₀ q |
| 60 | obtain ⟨D, ⟨K, hK, hcurv⟩, hderiv⟩ := hsource H T hepsilon A1 hA1 phi G D₀ q |
| 61 | obtain ⟨L⟩ := D.exists_backward_limit hK.le hcurv hderiv |
| 62 | exact ⟨D, L, L.nonnegativeCurvatureOperator P hphi hK.le hcurv⟩ |
| 63 | |
| 64 | end PoincareMT.M28.CounterexampleNeckFamily |