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.Surgery.StandardCap.Existence.Lifetime.Coordinates.LimitMetricJets |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Analysis.Coordinates.AffineWithinJets |
| 3 | |
| 4 | /-! |
| 5 | # Generalized included spatial metric jets |
| 6 | |
| 7 | The arbitrary generalized sequence uses the frozen joint within-domain field |
| 8 | directly. A compact time-space product is passed to |
| 9 | `pullback_metric_CInfinity`; the fixed affine inclusion of the spatial slice |
| 10 | then extracts zero-time directions. No ordinary fixed-flow sequence is used. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M47 |
| 22 | |
| 23 | attribute [local instance] normedAddCommGroupTangentSpaceVectorSpace |
| 24 | normedSpaceTangentSpaceVectorSpace |
| 25 | |
| 26 | variable {S : GeneralizedBlowupSequence.{u}} {J : Set ℝ} |
| 27 | (C : GeneralizedBlowupConvergence S J) |
| 28 | |
| 29 | local instance : TopologicalSpace C.limit.carrier.carrier := |
| 30 | C.limit.carrier.topologicalSpace |
| 31 | local instance : ChartedSpace (EuclideanSpace ℝ (Fin 3)) C.limit.carrier.carrier := |
| 32 | C.limit.carrier.chartedSpace |
| 33 | local instance : IsManifold (𝓡 3) ∞ C.limit.carrier.carrier := |
| 34 | C.limit.carrier.isManifold |
| 35 | |
| 36 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 37 | |
| 38 | /-- Uniform generalized joint jets, restricted only at the level of the |
| 39 | within-domain derivative array. The compact set may contain time zero or |
| 40 | any other included endpoint. -/ |
| 41 | theorem limitNoncollapse_generalized_uniform_spatialJetWithin |
| 42 | (q : C.limit.sliceCarrier.carrier) (j r : ℕ) |
| 43 | (K : Set (ℝ × E)) (hK : IsCompact K) |
| 44 | (hdom : K ⊆ {z | z ∈ blowupMetricChartDomain C.limit q ∧ |
| 45 | (extChartAt (𝓡 3) q).symm z.2 ∈ C.exhaustion.space j}) |
| 46 | (epsilon : ℝ) (hepsilon : 0 < epsilon) : |
| 47 | ∃ N : ℕ, j ≤ N ∧ ∀ k ≥ N, |
| 48 | K ⊆ Icc (-C.exhaustion.time k) 0 ×ˢ |
| 49 | (extChartAt (𝓡 3) q).target ∧ |
| 50 | ∀ a b : Fin 3, ∀ z ∈ K, |
| 51 | ‖(iteratedFDerivWithin ℝ r |
| 52 | (blowupPullbackCoefficient (C.embedding k) q a b) |
| 53 | (Icc (-C.exhaustion.time k) 0 ×ˢ |
| 54 | (extChartAt (𝓡 3) q).target) z).compContinuousLinearMap |
| 55 | (fun _ : Fin r => ContinuousLinearMap.inr ℝ ℝ E) - |
| 56 | (iteratedFDerivWithin ℝ r |
| 57 | (FlowCarrier.coordinateCoefficient C.limit.carrier q |
| 58 | (fun t x v w => (C.limit.flow.metric t).inner x v w) a b) |
| 59 | (blowupMetricChartDomain C.limit q) z).compContinuousLinearMap |
| 60 | (fun _ : Fin r => ContinuousLinearMap.inr ℝ ℝ E)‖ < epsilon := by |
| 61 | let P := ContinuousMultilinearMap.compContinuousLinearMapL |
| 62 | (𝕜 := ℝ) (F := ℝ) |
| 63 | (fun _ : Fin r => ContinuousLinearMap.inr ℝ ℝ E) |
| 64 | obtain ⟨N, hjN, hN⟩ := C.pullback_metric_CInfinity q j r K hK hdom |
| 65 | epsilon hepsilon |
| 66 | refine ⟨N, hjN, fun k hk => ⟨(hN k hk).1, ?_⟩⟩ |
| 67 | intro a b z hz |
| 68 | have hcomp := (hN k hk).2 a b z hz |
| 69 | let Dk := iteratedFDerivWithin ℝ r |
| 70 | (blowupPullbackCoefficient (C.embedding k) q a b) |
| 71 | (Icc (-C.exhaustion.time k) 0 ×ˢ (extChartAt (𝓡 3) q).target) z |
| 72 | let D0 := iteratedFDerivWithin ℝ r |
| 73 | (FlowCarrier.coordinateCoefficient C.limit.carrier q |
| 74 | (fun t x v w => (C.limit.flow.metric t).inner x v w) a b) |
| 75 | (blowupMetricChartDomain C.limit q) z |
| 76 | change ‖P (Dk - D0)‖ < epsilon |
| 77 | exact ((Dk - D0).norm_compContinuous_linearIsometry_le |
| 78 | (fun _ : Fin r => LinearIsometry.inr ℝ ℝ E)).trans_lt |
| 79 | (by simpa only [Dk, D0] using hcomp) |
| 80 | |
| 81 | end PoincareMT.M47 |