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.IntrinsicShapeDerivative |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.VanishingMetricErrorJets |
| 4 | |
| 5 | /-! |
| 6 | # Intrinsic radial shape jets vanish in the actual retained geometry |
| 7 | |
| 8 | Morgan-Tian Theorem 12.32, pp. 326-327. Repeated true arclength |
| 9 | derivatives are actual directional derivatives along the retained unit |
| 10 | field. Each contraction retains a vanishing shape jet, while the already |
| 11 | controlled actual field jets supply the other factor. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter VectorField |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.M35.Uniqueness |
| 21 | |
| 22 | noncomputable section |
| 23 | |
| 24 | local notation "V" => StandardCapSpace |
| 25 | |
| 26 | local instance intrinsicShapeJetsDualNormedGroup : NormedAddCommGroup (V →L[ℝ] ℝ) := |
| 27 | inferInstance |
| 28 | local instance intrinsicShapeJetsDualNormedSpace : NormedSpace ℝ (V →L[ℝ] ℝ) := |
| 29 | inferInstance |
| 30 | |
| 31 | /-- Theorem 12.32: actual intrinsic shape derivatives, together with all |
| 32 | their retained coordinate jets, vanish at moving coordinate points. -/ |
| 33 | theorem intrinsic_shape_derivative_jets_zero |
| 34 | (g : ℕ → RiemannianMetric 3 V) |
| 35 | (hrotation : ∀ k, ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 36 | ∀ x u v : V, |
| 37 | (g k).inner (standardRotation A x) |
| 38 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 39 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = (g k).inner x u v) |
| 40 | (hcomplete : ∀ k, MetricComplete (g k)) (f : ℕ → V → V) (p : ℕ → V) |
| 41 | (hdomain : ∀ᶠ k in atTop, ∀ᶠ y in 𝓝 (p k), |
| 42 | ContDiffAt ℝ ∞ (f k) y ∧ (fderiv ℝ (f k) y).IsInvertible ∧ f k y ≠ 0) |
| 43 | (hfield : ∀ r : ℕ, HasUniformJetBoundsAt r |
| 44 | (fun k => pullback ℝ (f k) (radialUnitField (g k))) p) |
| 45 | (hshape : ∀ r : ℕ, Tendsto (fun k => iteratedFDeriv ℝ r |
| 46 | (fun y => axisWarpingSlope (g k) ‖f k y‖ / axisWarpingRadius (g k) ‖f k y‖) |
| 47 | (p k)) atTop (𝓝 0)) : |
| 48 | ∀ m r : ℕ, Tendsto (fun k => iteratedFDeriv ℝ r |
| 49 | (intrinsicShapeDerivativePullback (g k) (hrotation k) (hcomplete k) (f k) m) |
| 50 | (p k)) atTop (𝓝 0) := by |
| 51 | let S k m := intrinsicShapeDerivativePullback (g k) (hrotation k) (hcomplete k) (f k) m |
| 52 | let Z k := pullback ℝ (f k) (radialUnitField (g k)) |
| 53 | have hS (m : ℕ) : ∀ᶠ k in atTop, ContDiffAt ℝ ∞ (S k m) (p k) := by |
| 54 | filter_upwards [hdomain] with k hk |
| 55 | exact intrinsicShapeDerivativePullback_contDiffAt (g k) (hrotation k) (hcomplete k) |
| 56 | hk.self_of_nhds.1 hk.self_of_nhds.2.2 m |
| 57 | have hZ : ∀ᶠ k in atTop, ContDiffAt ℝ ∞ (Z k) (p k) := by |
| 58 | filter_upwards [hdomain] with k hk |
| 59 | exact euclidean_radial_pullback_contDiffAt (g k) hk.self_of_nhds.1 |
| 60 | hk.self_of_nhds.2.1 hk.self_of_nhds.2.2 |
| 61 | intro m |
| 62 | induction m with |
| 63 | | zero => |
| 64 | intro r |
| 65 | apply (hshape r).congr' |
| 66 | filter_upwards [hdomain] with k hk |
| 67 | have heq : S k 0 =ᶠ[𝓝 (p k)] |
| 68 | (fun y => axisWarpingSlope (g k) ‖f k y‖ / axisWarpingRadius (g k) ‖f k y‖) := by |
| 69 | filter_upwards [hk] with y hy |
| 70 | exact intrinsicShapeDerivativePullback_zero (g k) (hrotation k) (hcomplete k) hy.2.2 |
| 71 | exact ((heq.iteratedFDeriv ℝ r).self_of_nhds).symm |
| 72 | | succ m hm => |
| 73 | intro r |
| 74 | have hderiv (j : ℕ) : Tendsto |
| 75 | (fun k => iteratedFDeriv ℝ j (fderiv ℝ (S k m)) (p k)) atTop (𝓝 0) := by |
| 76 | let C := continuousMultilinearCurryRightEquiv' ℝ j V ℝ |
| 77 | have hc (a : V → ℝ) (y : V) : |
| 78 | iteratedFDeriv ℝ j (fderiv ℝ a) y = C (iteratedFDeriv ℝ (j + 1) a y) := by |
| 79 | rw [iteratedFDeriv_succ_eq_comp_right] |
| 80 | exact (C.apply_symm_apply _).symm |
| 81 | simp_rw [hc] |
| 82 | have h := (C.continuous.tendsto (0 : V [×(j + 1)]→L[ℝ] ℝ)).comp (hm (j + 1)) |
| 83 | simpa only [Function.comp_def, S, map_zero] using h |
| 84 | have hz := jet_bilinear_tendsto_zero_of_bounded |
| 85 | (ContinuousLinearMap.apply ℝ ℝ : V →L[ℝ] (V →L[ℝ] ℝ) →L[ℝ] ℝ).flip |
| 86 | (fun j _ => hderiv j) (hfield r) |
| 87 | ((hS m).mono fun _ h => h.fderiv_right (m := ∞) (by simp)) hZ |
| 88 | apply hz.congr' |
| 89 | filter_upwards [hdomain] with k hk |
| 90 | have heq : S k (m + 1) =ᶠ[𝓝 (p k)] |
| 91 | (fun y => fderiv ℝ (S k m) y (Z k y)) := by |
| 92 | filter_upwards [hk] with y hy |
| 93 | exact intrinsicShapeDerivativePullback_succ (g k) (hrotation k) (hcomplete k) |
| 94 | (hy.1.differentiableAt (by simp)) hy.2.1 hy.2.2 m |
| 95 | exact ((heq.iteratedFDeriv ℝ r).self_of_nhds).symm |
| 96 | |
| 97 | end |
| 98 | |
| 99 | end PoincareMT.M35.Uniqueness |