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.SourceNames |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.CriticalBall.SourceCriticalBallBackwardCurvature |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.CriticalBall.SourceCriticalBallBackwardPinching |
| 5 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Pinching.Geometry.OperatorPositivity |
| 6 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.SourceNames.CurvatureCalculus |
| 7 | |
| 8 | /-! |
| 9 | # Nonnegative curvature of the actual backward chart limit |
| 10 | |
| 11 | The original pinching error tends to zero while the fixed-vector metric |
| 12 | Gram determinant and actual curvature tensor converge. Closedness of the |
| 13 | real order gives nonnegative plane tensors, hence the literal frozen |
| 14 | curvature-operator predicate in dimension three. Morgan--Tian Claim 10.11, |
| 15 | p. 255; M28 derivation 78. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | set_option maxSynthPendingDepth 12 |
| 21 | |
| 22 | open Set Filter |
| 23 | open scoped Manifold ContDiff Bundle Topology |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | namespace PoincareMT.M28.CounterexampleNeckFamily.CriticalBallBackwardChartData |
| 28 | |
| 29 | variable {epsilon C A : ℝ} |
| 30 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 31 | ((n : ℝ) + 1) ((n : ℝ) + 1)} |
| 32 | {H : CounterexampleNeckFamily E} {T : ∀ k, SourceTubeData (H.segment k)} |
| 33 | {A1 : ℝ} {hA1 : 0 < A1} {phi : ℕ → ℕ} |
| 34 | {G : RegularPointedMetricConvergence |
| 35 | (fun k => H.tubeCriticalMetric T A1 (phi k)) |
| 36 | (fun k => H.tubeCriticalBase T A1 hA1 (phi k))} |
| 37 | {q : G.limitCarrier.carrier} {a : ℝ} |
| 38 | {D : CriticalBallBackwardChartData H T A1 hA1 phi G q a} |
| 39 | |
| 40 | set_option synthInstance.maxHeartbeats 200000 in |
| 41 | -- The actual source tensors retain the dependent original neck carriers. |
| 42 | set_option maxHeartbeats 2400000 in |
| 43 | -- Compare the same source error, metric Gram determinant and tensor limit. |
| 44 | /-- Original pinching and the actual source curvature bound imply |
| 45 | nonnegative curvature operator for the same extracted backward flow at |
| 46 | every included time, without a new subsequence (derivation 78). -/ |
| 47 | theorem BackwardChartLimit.nonnegativeCurvatureOperator (L : BackwardChartLimit D) |
| 48 | (P : RicciFlowCurvatureTheory.{u}) (hphi : StrictMono phi) |
| 49 | {K : ℝ} (hK : 0 ≤ K) |
| 50 | (hcurv : ∀ k t, t ∈ Icc (-(a / 8)) 0 → ∀ x : strongNeckOpen (D.neck k), |
| 51 | ((D.sourceFlow k).connection t).curvatureTensorNorm x ≤ K) : |
| 52 | letI := D.limitDomain_open.isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 53 | letI := D.limitDomain_open.isOpenEmbedding_subtypeVal.isManifold_singleton |
| 54 | (I := 𝓡 3) (n := ∞) |
| 55 | ∀ t ∈ Icc (-(a / 8)) 0, ∀ x : D.limitDomain, |
| 56 | (L.flow.connection t).NonnegativeCurvatureOperator x := by |
| 57 | let := D.limitDomain_open.isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 58 | let := D.limitDomain_open.isOpenEmbedding_subtypeVal.isManifold_singleton |
| 59 | (I := 𝓡 3) (n := ∞) |
| 60 | intro t ht x |
| 61 | apply (L.flow.connection t).nonnegativeCurvatureOperator_of_plane_nonneg |
| 62 | (L.flow.connection t).normalization_curvatureTensorCalculus x |
| 63 | intro v w |
| 64 | let f (k : ℕ) := D.limitParametrization (L.subsequence k) |
| 65 | let g (k : ℕ) := (D.sourceFlow (L.subsequence k)).metric t |
| 66 | let V (k : ℕ) := mfderiv (𝓡 3) (𝓡 3) (f k) x v |
| 67 | let W (k : ℕ) := mfderiv (𝓡 3) (𝓡 3) (f k) x w |
| 68 | have herr : Tendsto (fun k => D.pinchingError (L.subsequence k) t ht (f k x)) |
| 69 | atTop (𝓝 0) := |
| 70 | (D.pinchingError_tendsto_zero P hphi hK hcurv t ht |
| 71 | (fun k => D.limitParametrization k x)).comp L.subsequence_strictMono.tendsto_atTop |
| 72 | have hcoeff : Tendsto (fun k => (g k).pullbackCoefficients (f k) x) atTop |
| 73 | (𝓝 (L.coefficients (t, x))) := by |
| 74 | simpa only [SpacetimeBounds.metricTwoJet] using |
| 75 | (L.spatial_twoJets t ht x.property).fst_nhds |
| 76 | have heval (u z : EuclideanSpace ℝ (Fin 3)) : |
| 77 | Tendsto (fun k => (g k).pullbackCoefficients (f k) x u z) atTop |
| 78 | (𝓝 (L.coefficients (t, x) u z)) := |
| 79 | ((ContinuousLinearMap.apply ℝ ℝ z).continuous.tendsto _).comp |
| 80 | (((ContinuousLinearMap.apply ℝ (_ →L[ℝ] ℝ) u).continuous.tendsto _).comp hcoeff) |
| 81 | have hgram : Tendsto (fun k => M04.metricGram (g k) (f k x) (V k) (W k)) atTop |
| 82 | (𝓝 (L.coefficients (t, x) v v * L.coefficients (t, x) w w - |
| 83 | L.coefficients (t, x) v w ^ 2)) := by |
| 84 | exact ((heval v v).mul (heval w w)).sub ((heval v w).pow 2) |
| 85 | have hlower : Tendsto |
| 86 | (fun k => -D.pinchingError (L.subsequence k) t ht (f k x) * |
| 87 | M04.metricGram (g k) (f k x) (V k) (W k)) atTop (𝓝 0) := by |
| 88 | simpa only [neg_zero, zero_mul] using herr.neg.mul hgram |
| 89 | exact le_of_tendsto_of_tendsto hlower (L.curvatureTensor_tendsto t ht x v w v w) |
| 90 | (Eventually.of_forall fun k => |
| 91 | D.sourceFlow_plane_lower P (L.subsequence k) t ht (f k x) (V k) (W k)) |
| 92 | |
| 93 | end PoincareMT.M28.CounterexampleNeckFamily.CriticalBallBackwardChartData |