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.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.SelectedIntrinsicShapeCompact |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.SelectedAmbientBall |
| 4 | |
| 5 | /-! |
| 6 | # Actual arclength shape derivatives on an ambient normalized ball |
| 7 | |
| 8 | Morgan-Tian Theorem 12.32, pp. 326-327. Compact-uniform selected shape |
| 9 | limits and the genuine cylinder inverse control every point of an actual |
| 10 | ambient normalized ball. The conclusion refers to the original radial |
| 11 | geometry and contains no chosen coordinate-map or model derivative input. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.M35.OrdinaryRealization |
| 21 | |
| 22 | open Uniqueness |
| 23 | |
| 24 | local notation "V" => EuclideanSpace ℝ (Fin 3) |
| 25 | |
| 26 | /-- Theorem 12.32: every actual intrinsic shape derivative is |
| 27 | uniformly small on a fixed ball at the scalar-normalized center. -/ |
| 28 | theorem blowupSequence_intrinsic_shape_on_ambient_ball |
| 29 | (P : M35StandardCapPredecessors) |
| 30 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 31 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 32 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 33 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 34 | (hd : Tendsto (fun k => ((E.flow.metric (t k)).edist 0 (x k)).toReal * |
| 35 | Real.sqrt ((E.flow.connection (t k)).scalarCurvature (x k))) atTop atTop) |
| 36 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 37 | (blowupBackwardInterval ⊤)) {kappa : ℝ} |
| 38 | (A : BlowupAncientKappaIdentification L.limit kappa) : |
| 39 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 40 | letI : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 41 | letI : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 42 | letI : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 43 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 44 | letI : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 45 | letI : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 46 | letI : SecondCountableTopology L.limit.carrier.carrier := L.limit.carrier.secondCountable |
| 47 | letI : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 48 | ∀ (_N : M27SphereLineFlowCertificate A.solution) (m : ℕ) (r epsilon : ℝ), |
| 49 | 0 < r → 0 < epsilon → ∀ᶠ k in atTop, |
| 50 | let Q := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 51 | let hQ := (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence k) |
| 52 | let G : RiemannianMetric 3 V := |
| 53 | M13.scaleSmoothMetric (E.flow.metric (t (L.subsequence k))) Q hQ |
| 54 | let hrot := scaleSmoothMetric_rotation_invariant |
| 55 | (E.rotation_invariant (t (L.subsequence k)) (ht _)) Q hQ |
| 56 | let hc := scaleSmoothMetric_complete (E.flow.metric (t (L.subsequence k))) |
| 57 | (E.complete (t (L.subsequence k)) (ht _)) Q hQ |
| 58 | ∀ y ∈ G.ball (x (L.subsequence k)) r, |
| 59 | |iteratedDeriv m (intrinsicRadialShape G hrot hc) (radialArclength G ‖y‖)| < |
| 60 | epsilon := by |
| 61 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 62 | let : MeasurableSpace L.limit.carrier.carrier := L.limit.carrier.measurableSpace |
| 63 | have : BorelSpace L.limit.carrier.carrier := L.limit.carrier.borelSpace |
| 64 | let : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 65 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 66 | have : T2Space L.limit.carrier.carrier := L.limit.carrier.t2Space |
| 67 | have : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 68 | have : SecondCountableTopology L.limit.carrier.carrier := L.limit.carrier.secondCountable |
| 69 | have : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 70 | intro N m r epsilon hr hepsilon |
| 71 | let K : Set L.limit.sliceCarrier.carrier := |
| 72 | closure ((L.limit.flow.metric 0).ball L.limit.base (2 * r)) |
| 73 | have hK : IsCompact K := Proofs.M09.isCompact_closure_metric_ball |
| 74 | (L.limit.flow.metric 0) (L.limit.complete 0 L.limit.zero_mem) L.limit.base (2 * r) |
| 75 | have hshape := blowupSequence_intrinsic_shape_uniform_compact |
| 76 | P E t x ht hR L hd A N K hK m epsilon hepsilon |
| 77 | filter_upwards [hshape, blowupSequence_normalized_ball_retained P E t x ht hR L hr] |
| 78 | with k hk hball |
| 79 | dsimp only |
| 80 | intro y hy |
| 81 | obtain ⟨z, hz, hzy⟩ := hball hy |
| 82 | have h := hk z (subset_closure hz) |
| 83 | unfold selectedIntrinsicShapeDerivative at h |
| 84 | simpa only [hzy] using h |
| 85 | |
| 86 | end PoincareMT.M35.OrdinaryRealization |