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.Induction.Noncollapse.Compat.MetricSurgery |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.LGeometry.Confinement.IntrinsicScalar |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.LGeometry.Confinement.PhysicalScalar |
| 4 | |
| 5 | /-! |
| 6 | # Actual scalar lower rate in a persisting surgery cap |
| 7 | |
| 8 | Definition 16.12 and Proposition 16.13, pp. 376-378. One positive |
| 9 | intrinsic comparison tolerance is chosen from the stored standard cap, |
| 10 | the spatial radius and the normalized time ceiling. Every actual M44 |
| 11 | comparison at that tolerance then has the physical scalar lower rate. |
| 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.Proofs.M46 |
| 23 | |
| 24 | /-- The stored standard scalar rate transfers through the literal |
| 25 | finite intrinsic jet comparison to physical curvature in any persisting |
| 26 | cap. The tolerance is fixed before the surgery flow. Source: |
| 27 | Definition 16.12 and Proposition 16.13, pp. 376-378. -/ |
| 28 | theorem exists_actualCap_scalarRate_tolerance {g0 : StandardInitialMetric} |
| 29 | (P : RepairedCapPersistenceData.{u} g0) {c theta A : ℝ} |
| 30 | (hc : 0 < c) (htheta : theta < 1) (hA : 0 < A) |
| 31 | (hrate : ∀ s ∈ Ico 0 P.standard_cap.flow.base.lifetime, ∀ x : StandardCapSpace, |
| 32 | c / (1 - s) ≤ (P.standard_cap.flow.connection s).scalarCurvature x) : |
| 33 | ∃ eta : ℝ, 0 < eta ∧ eta ≤ 1 / 2 ∧ |
| 34 | ∀ (F : SurgeryFlowData.{u}) (_hinitial : F.standard_initial = g0) |
| 35 | (S : MaximalStandardCapFlow F.standard_initial), |
| 36 | HEq S P.standard_cap.flow → |
| 37 | ∀ (t : ℝ) (hT : t ∈ F.surgery_times) (_hn : Nonempty (F.slice t).carrier) |
| 38 | (i : Fin (F.event t hT).cap_count) (J : Set ℝ) (U : Set (F.slice t).carrier) |
| 39 | (e : SurgeryFlowCylinder F (F.slice t) t ((F.parameters.h t)⁻¹ ^ 2) J U) |
| 40 | (initial : SurgeryCapInitialComparison F t hT i A), |
| 41 | SurgeryCapFamilyComparison F S A eta e initial.chart → |
| 42 | 0 < F.parameters.h t → ∀ (s : ℝ) (hs : s ∈ J), s ≤ theta → |
| 43 | ∀ x ∈ F.standard_initial.metric.ball 0 A, |
| 44 | c / (2 * (1 - s) * (F.parameters.h t) ^ 2) ≤ |
| 45 | (F.connection (t + s / ((F.parameters.h t)⁻¹ ^ 2))).scalarCurvature |
| 46 | (e.forward s hs (initial.chart x)) := by |
| 47 | let K : Set StandardCapSpace := {x | g0.metric.edist 0 x ≤ ENNReal.ofReal A} |
| 48 | obtain ⟨eta, heta, hetaHalf, hbound⟩ := |
| 49 | exists_standardCap_intrinsic_scalarRate_tolerance P hc htheta hrate |
| 50 | (M36.standard_closed_ball_compact g0 hA.le) |
| 51 | refine ⟨eta, heta, hetaHalf, ?_⟩ |
| 52 | intro F hinitial S hS t hT hn i J U e initial comparison hh s hs hst x hx |
| 53 | have htime : s ∈ Icc 0 theta := ⟨(comparison.choose_spec.2.2.1 s hs).1, hst⟩ |
| 54 | have hKx : x ∈ K := by |
| 55 | dsimp only [K] |
| 56 | rw [← hinitial] |
| 57 | change F.standard_initial.metric.edist 0 x ≤ ENNReal.ofReal A |
| 58 | change F.standard_initial.metric.edist 0 x < ENNReal.ofReal A at hx |
| 59 | exact le_of_lt hx |
| 60 | have hjet : 2 ≤ ⌊eta⁻¹⌋₊ := by |
| 61 | apply Nat.le_floor |
| 62 | have := (le_div_iff₀ heta).mpr (show (2 : ℝ) * eta ≤ 1 by linarith) |
| 63 | simpa only [one_div, Nat.cast_ofNat] using this |
| 64 | have hU : IsOpen (F.standard_initial.metric.ball 0 A) := |
| 65 | (capInitialPartialDiffeomorph initial).open_source |
| 66 | have himage : initial.chart '' F.standard_initial.metric.ball 0 A = U := |
| 67 | comparison.choose_spec.2.2.2.1 |
| 68 | have hUopen : IsOpen U := himage ▸ (capInitialPartialDiffeomorph initial).open_target |
| 69 | have hmap : MapsTo initial.chart (F.standard_initial.metric.ball 0 A) U := by |
| 70 | intro y hy |
| 71 | exact himage ▸ mem_image_of_mem initial.chart hy |
| 72 | have hsmooth := capComparisonCoefficients_smooth e hUopen hU initial.chart_smooth hmap s hs |
| 73 | have hscalar : c / (2 * (1 - s)) ≤ M44.jetScalarCurvature |
| 74 | (SpacetimeBounds.metricTwoJet (capComparisonCoefficients e initial.chart s hs) x) := by |
| 75 | have hhbound := hbound s htime (F.standard_initial.metric.ball 0 A) hU |
| 76 | (capComparisonCoefficients e initial.chart s hs) hsmooth x hKx hx |
| 77 | apply hhbound |
| 78 | intro j hj |
| 79 | have he := (capComparison_covariant_error_lt e initial.chart comparison heta s hs hx |
| 80 | (hj.trans hjet)).le |
| 81 | cases hinitial |
| 82 | cases hS |
| 83 | exact he |
| 84 | rw [capComparison_scalar_readout e initial comparison hh s hs hx] at hscalar |
| 85 | have hsq : 0 < (F.parameters.h t) ^ 2 := sq_pos_of_pos hh |
| 86 | rw [div_mul_eq_div_div] |
| 87 | exact (div_le_iff₀ hsq).mpr (by simpa only [mul_comm] using hscalar) |
| 88 | |
| 89 | end PoincareMT.Proofs.M46 |