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.RawFlow.InitialCylinderNull |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.RawFlow.AxisRicciForm |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.RawFlow.IntrinsicWarpingBounds |
| 5 | |
| 6 | /-! |
| 7 | # Actual compact support of the initial intrinsic slope |
| 8 | |
| 9 | Morgan-Tian Definition 12.1 and Section 12.6. The exact initial end has |
| 10 | a nonzero Ricci-null direction; rotational nonnegative geometry forces |
| 11 | zero radial curvature there. Thus f'' vanishes on an intrinsic tail. |
| 12 | The actual bounded radius and concavity estimate s f'<=f then force its |
| 13 | constant slope on that tail to be zero. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff Bundle |
| 20 | |
| 21 | namespace PoincareMT.M35.Uniqueness |
| 22 | |
| 23 | /-- The frozen exact initial cylindrical end gives compact support of |
| 24 | the actual intrinsic derivative, independently of any evolving end theorem. -/ |
| 25 | theorem initial_intrinsic_slope_support (g₀ : StandardInitialMetric) |
| 26 | (H : StandardCapEstimate g₀) : |
| 27 | ∃ R : ℝ, 0 < R ∧ ∀ s, R ≤ s → |
| 28 | deriv (intrinsicWarpingRadius g₀.metric g₀.rotation_invariant g₀.complete) s = 0 := by |
| 29 | let f := intrinsicWarpingRadius g₀.metric g₀.rotation_invariant g₀.complete |
| 30 | let p := deriv f |
| 31 | let q := (radialArclengthOrderIso g₀.metric g₀.rotation_invariant g₀.complete).symm |
| 32 | obtain ⟨r₀, hr₀, htail⟩ := initial_axis_tail_ricci_null g₀.cylindrical_end g₀.connection |
| 33 | let s₀ := radialArclength g₀.metric r₀ |
| 34 | have hs₀ : 0 < s₀ := by |
| 35 | have hh := radialArclength_strictMono g₀.metric hr₀ |
| 36 | rwa [radialArclength_zero] at hh |
| 37 | have hq (s : ℝ) : radialArclength g₀.metric (q s) = s := |
| 38 | (radialArclengthOrderIso g₀.metric g₀.rotation_invariant g₀.complete).apply_symm_apply s |
| 39 | have hzero (s : ℝ) (hs : s₀ < s) : deriv p s = 0 := by |
| 40 | have hspos : 0 < s := hs₀.trans hs |
| 41 | have hr : 0 < q s := radialArclengthOrderIso_symm_pos g₀.metric |
| 42 | g₀.rotation_invariant g₀.complete hspos |
| 43 | have hrlarge : r₀ ≤ q s := by |
| 44 | apply (radialArclength_strictMono g₀.metric).le_iff_le.mp |
| 45 | rw [hq] |
| 46 | exact hs.le |
| 47 | obtain ⟨v, hv, hnull⟩ := htail (q s) hrlarge |
| 48 | have hK := radialMixedCurvatureFactor_eq_zero_of_ricci_null g₀.connection |
| 49 | g₀.rotation_invariant g₀.nonnegative_sectional hr hv hnull |
| 50 | have hsecond := (intrinsicWarpingRadius_deriv_hasDerivAt g₀.metric |
| 51 | g₀.rotation_invariant g₀.complete hspos).deriv |
| 52 | change deriv p s = axisWarpingSecond g₀.metric (q s) at hsecond |
| 53 | rw [hsecond, axisWarpingSecond, hK, mul_zero, zero_div] |
| 54 | have hp : ContDiff ℝ ∞ p := (contDiff_infty_iff_deriv.mp |
| 55 | (intrinsicWarpingRadius_contDiff g₀.metric g₀.rotation_invariant g₀.complete)).2 |
| 56 | have hconst {s z : ℝ} (hs : s₀ < s) (hz : s₀ < z) : p s = p z := |
| 57 | isOpen_Ioi.is_const_of_deriv_eq_zero (convex_Ioi s₀).isPreconnected |
| 58 | (hp.differentiable (by simp)).differentiableOn (fun x hx => hzero x hx) hs hz |
| 59 | have hbounds (s : ℝ) (hs : 0 < s) : |
| 60 | f s ^ 2 ≤ 2 * H.scalar_constant ∧ 0 ≤ p s ∧ s * p s ≤ f s := by |
| 61 | have hr : 0 < q s := radialArclengthOrderIso_symm_pos g₀.metric |
| 62 | g₀.rotation_invariant g₀.complete hs |
| 63 | have hfirst : p s = axisWarpingSlope g₀.metric (q s) := |
| 64 | (intrinsicWarpingRadius_hasDerivAt g₀.metric g₀.rotation_invariant g₀.complete hs).deriv |
| 65 | have hrad := axisWarpingRadius_sq_le_of_exterior_scalar_floor g₀.connection |
| 66 | g₀.rotation_invariant g₀.complete g₀.nonnegative_sectional |
| 67 | (inv_pos.mpr H.scalar_constant_pos) (K := ∅) isCompact_empty |
| 68 | (fun x _ => (H.scalar_bounds x).1) hr |
| 69 | have hprod := axisWarpingSlope_mul_arclength_le g₀.connection |
| 70 | g₀.rotation_invariant g₀.nonnegative_sectional hr |
| 71 | rw [hq, mul_comm, ← hfirst] at hprod |
| 72 | refine ⟨?_, ?_, hprod⟩ |
| 73 | · change axisWarpingRadius g₀.metric (q s) ^ 2 ≤ 2 * H.scalar_constant |
| 74 | simpa only [div_inv_eq_mul] using hrad |
| 75 | · rw [hfirst] |
| 76 | exact axisWarpingSlope_nonneg g₀.connection g₀.rotation_invariant |
| 77 | g₀.nonnegative_sectional g₀.complete hr |
| 78 | let R := s₀ + 1 |
| 79 | have hR : 0 < R := by dsimp only [R]; linarith |
| 80 | refine ⟨R, hR, ?_⟩ |
| 81 | intro s hs |
| 82 | have hspos : 0 < s := hR.trans_le hs |
| 83 | have hstail : s₀ < s := by dsimp only [R] at hs; linarith |
| 84 | have hsnonneg := (hbounds s hspos).2.1 |
| 85 | change p s = 0 |
| 86 | apply le_antisymm _ hsnonneg |
| 87 | by_contra hnot |
| 88 | have hps : 0 < p s := lt_of_not_ge hnot |
| 89 | let C := 2 * H.scalar_constant + 1 |
| 90 | have hC : 0 < C := by dsimp only [C]; linarith [H.scalar_constant_pos] |
| 91 | let z := C / p s + R + 1 |
| 92 | have hzR : R < z := by |
| 93 | have hh := div_pos hC hps |
| 94 | dsimp only [z] |
| 95 | linarith only [hh] |
| 96 | have hzpos : 0 < z := hR.trans hzR |
| 97 | have hztail : s₀ < z := by dsimp only [R] at hzR; linarith |
| 98 | have hsame : p z = p s := hconst hztail hstail |
| 99 | obtain ⟨hzsquare, _, hzprod⟩ := hbounds z hzpos |
| 100 | rw [hsame] at hzprod |
| 101 | have hfC : f z ≤ C := by |
| 102 | dsimp only [C] |
| 103 | nlinarith only [hzsquare, sq_nonneg (f z - 1), H.scalar_constant_pos] |
| 104 | have hmul : C < z * p s := by |
| 105 | dsimp only [z] |
| 106 | rw [add_mul, add_mul, div_mul_cancel₀ C hps.ne', one_mul] |
| 107 | nlinarith only [mul_pos hR hps, hps] |
| 108 | exact (not_le_of_gt hmul) (hzprod.trans hfC) |
| 109 | |
| 110 | end PoincareMT.M35.Uniqueness |