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.SourceCriticalBallPositiveBackwardProducer |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Geometry.CanonicalBackwardModel |
| 4 | |
| 5 | /-! |
| 6 | # Local nonnegative backward models on the actual spatial limit |
| 7 | |
| 8 | The actual source family produces a positive-time backward limit and its |
| 9 | nonnegative curvature. Restriction to a connected inverse-chart ball fills |
| 10 | the literal local-model record inside any prescribed neighborhood. |
| 11 | Morgan--Tian Proposition 5.14 and Claim 10.11, pp. 90-91 and 255; |
| 12 | M28 derivations 78-79. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Metric |
| 19 | open scoped Manifold ContDiff Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M28.CounterexampleNeckFamily |
| 24 | |
| 25 | set_option maxHeartbeats 1600000 in |
| 26 | -- The original source, retained spatial metric and backward chart stay fixed. |
| 27 | /-- Actual original sources supply local nonnegative backward models at |
| 28 | every spatial-limit point inside every requested open neighborhood. No |
| 29 | backward model, curvature bound or sign is an extra input (derivation 79). -/ |
| 30 | theorem exists_source_criticalBall_local_backward_models_accuracy |
| 31 | (P : RicciFlowCurvatureTheory.{u}) : |
| 32 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ (1 / 1000 : ℝ) ∧ |
| 33 | ∀ {epsilon C A : ℝ} |
| 34 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 35 | ((n : ℝ) + 1) ((n : ℝ) + 1)} |
| 36 | (H : CounterexampleNeckFamily E) (T : ∀ k, SourceTubeData (H.segment k)), |
| 37 | epsilon ≤ epsilon₀ → ∀ (A1 : ℝ) (hA1 : 0 < A1) (phi : ℕ → ℕ), |
| 38 | StrictMono phi → ∀ (G : RegularPointedMetricConvergence |
| 39 | (fun k => H.tubeCriticalMetric T A1 (phi k)) |
| 40 | (fun k => H.tubeCriticalBase T A1 hA1 (phi k))), |
| 41 | letI := G.limitCarrier.topologicalSpace |
| 42 | letI := G.limitCarrier.chartedSpace |
| 43 | letI := G.limitCarrier.isManifold |
| 44 | ∀ (_D₀ : LeviCivitaData G.limitMetric) (q : G.limitCarrier.carrier) |
| 45 | (U : Set G.limitCarrier.carrier), IsOpen U → q ∈ U → |
| 46 | Nonempty (LocalNonnegativeBackwardModel G.limitMetric U q) := by |
| 47 | obtain ⟨epsilon₀, hpos, hsmall, hsource⟩ := |
| 48 | exists_source_criticalBall_positive_backward_limit_accuracy P |
| 49 | refine ⟨epsilon₀, hpos, hsmall, ?_⟩ |
| 50 | intro epsilon C A E H T hepsilon A1 hA1 phi hphi G |
| 51 | let := G.limitCarrier.topologicalSpace |
| 52 | let := G.limitCarrier.chartedSpace |
| 53 | let := G.limitCarrier.isManifold |
| 54 | intro D₀ q U hU hq |
| 55 | obtain ⟨D, L, hnonnegative⟩ := hsource H T hepsilon A1 hA1 phi hphi G D₀ q |
| 56 | have hcenter : extChartAt (𝓡 3) q q ∈ D.limitDomain := mem_ball_self D.radius_pos |
| 57 | have htarget : D.limitDomain ⊆ (extChartAt (𝓡 3) q).target := |
| 58 | D.limitDomain_subset_domain.trans (ball_subset_closedBall.trans D.target) |
| 59 | exact exists_localNonnegativeBackwardModel_of_chart_flow G.limitMetric q |
| 60 | D.limitDomain D.limitDomain_open hcenter htarget ((D₀.scalarCurvature q)⁻¹ / 8) |
| 61 | (by linarith [D.scale_pos]) L.flow L.terminal_coefficients hnonnegative hU hq |
| 62 | |
| 63 | end PoincareMT.M28.CounterexampleNeckFamily |