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.InitialSlopeSupport |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.RawFlow.IntrinsicSlabContinuity |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.RawFlow.IntrinsicSlopeBounds |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.RadialGauge.PolynomialComparison |
| 6 | |
| 7 | /-! |
| 8 | # Actual polynomial slope decay on every closed raw slab |
| 9 | |
| 10 | Morgan-Tian Section 12.6, pp. 309-320, with the corrected radial-gauge |
| 11 | erratum. Every input to the half-line comparison is supplied by the |
| 12 | actual raw geometry and the frozen exact initial cylinder. The same |
| 13 | closed time interval works for every polynomial decay order. |
| 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 | variable (P : RicciFlowCurvatureTheory.{0}) {g₀ : StandardInitialMetric} |
| 24 | (H : StandardCapEstimate g₀) (G : PartialStandardCapFlow g₀) |
| 25 | (hrotation : ∀ t ∈ Ico 0 G.lifetime, |
| 26 | ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, ∀ x u v : StandardCapSpace, |
| 27 | (G.flow.metric t).inner (standardRotation A x) |
| 28 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 29 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = (G.flow.metric t).inner x u v) |
| 30 | |
| 31 | include H |
| 32 | |
| 33 | theorem raw_initial_slope_support : |
| 34 | ∃ R : ℝ, 0 < R ∧ ∀ s, R ≤ s → rawWarpingSlope P G hrotation 0 s = 0 := by |
| 35 | obtain ⟨R, hR, hslope⟩ := initial_intrinsic_slope_support g₀ H |
| 36 | refine ⟨R, hR, ?_⟩ |
| 37 | intro s hs |
| 38 | have ht : (0 : ℝ) ∈ Ico 0 G.lifetime := ⟨le_rfl, G.lifetime_pos⟩ |
| 39 | change deriv (rawWarpingRadius P G hrotation 0) s = 0 |
| 40 | rw [rawWarpingRadius_eq P G hrotation ht] |
| 41 | have htransport (g h : RiemannianMetric 3 StandardCapSpace) |
| 42 | (hg : _) (hc : MetricComplete g) (hh : _) (hd : MetricComplete h) |
| 43 | (heq : g = h) : intrinsicWarpingRadius g hg hc = |
| 44 | intrinsicWarpingRadius h hh hd := by |
| 45 | subst h |
| 46 | rfl |
| 47 | rw [htransport _ _ _ _ _ _ G.initial_metric] |
| 48 | exact hslope s hs |
| 49 | |
| 50 | /-- The actual slope has every polynomial decay order, uniformly on one |
| 51 | whole closed preterminal slab. No quantitative evolving-end hypothesis is used. -/ |
| 52 | theorem raw_intrinsic_slope_polynomial_decay {T : ℝ} (hT : 0 < T) |
| 53 | (hTlt : T < G.lifetime) : |
| 54 | ∀ N : ℕ, ∃ C : ℝ, 0 < C ∧ ∀ t ∈ Icc 0 T, ∀ s ≥ 0, |
| 55 | (1 + s ^ 2) ^ N * rawWarpingSlope P G hrotation t s ≤ C := by |
| 56 | obtain ⟨R, _, hstart⟩ := raw_initial_slope_support P H G hrotation |
| 57 | obtain ⟨K, hK, hcurv⟩ := G.curvature_locally_bounded T hT.le hTlt |
| 58 | obtain ⟨V, hV, hvelocity⟩ := raw_intrinsic_radial_velocity_bounded P G hT.le hTlt |
| 59 | have hvalid (t : ℝ) (ht : t ∈ Icc 0 T) : t ∈ Ico 0 G.lifetime := |
| 60 | ⟨ht.1, ht.2.trans_lt hTlt⟩ |
| 61 | have hcont := (rawWarpingSlope_continuousOn_slab G P hrotation hT.le hTlt).mono |
| 62 | (show Icc 0 T ×ˢ Ici (0 : ℝ) ⊆ Icc 0 T ×ˢ univ from |
| 63 | fun _ hp => ⟨hp.1, mem_univ _⟩) |
| 64 | have hv (t : ℝ) (ht : t ∈ Icc 0 T) (s : ℝ) (_hs : 0 ≤ s) : |
| 65 | |rawRadialVelocity P G hrotation t s| ≤ V := by |
| 66 | rw [rawRadialVelocity_eq P G hrotation (hvalid t ht)] |
| 67 | exact hvelocity t ht (hrotation t (hvalid t ht)) s |
| 68 | have hc (t : ℝ) (ht : t ∈ Icc 0 T) (s : ℝ) (hs : 0 ≤ s) : |
| 69 | rawTangentialCurvature P G hrotation t s ≤ 9 * K := |
| 70 | (rawTangentialCurvature_bounds P G hrotation hK hTlt |
| 71 | (fun t ht x => (le_abs_self _).trans (hcurv t ht x)) ht hs).2 |
| 72 | refine RadialGauge.halfLine_polynomial_bound_of_initial_support |
| 73 | hT (mul_nonneg (by norm_num) hK) hV.le hcont |
| 74 | (fun t ht => rawWarpingSlope_contDiff P G hrotation (hvalid t ht)) |
| 75 | (fun t ht s hs => (rawWarpingSlope_bounds P G hrotation (hvalid t ht) hs).2) |
| 76 | hv hc hstart ?_ |
| 77 | intro t ht s hs |
| 78 | exact (rawWarpingSlope_hasDerivAt_time P G hrotation |
| 79 | ⟨ht.1, ht.2.trans_lt hTlt⟩ hs).hasDerivWithinAt |
| 80 | |
| 81 | end PoincareMT.M35.Uniqueness |