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.Persistence.Limit.Exponential.ExponentialVariation |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Analysis.ODE.ODEHigherVariation |
| 3 | |
| 4 | /-! |
| 5 | # All finite derivatives of the actual initial exponential charts |
| 6 | |
| 7 | The initial frames converge in operator norm. Repeated variational |
| 8 | equations transfer this convergence and the metric coefficient jets |
| 9 | to every spatial jet of the actual exponential phases, including |
| 10 | time one. Morgan--Tian, Claim 16.6 and Corollary 16.7, pp. 371-372; |
| 11 | see derivation 22. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter Metric |
| 18 | open scoped Manifold ContDiff Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M44 |
| 23 | |
| 24 | local notation "E" => StandardCapSpace |
| 25 | |
| 26 | variable (g₀ : StandardInitialMetric) (S : ℕ → GeneralizedSliceCarrier.{u}) |
| 27 | (g : (n : ℕ) → RiemannianMetric 3 (S n).carrier) |
| 28 | (tip : (n : ℕ) → (S n).carrier) (scale eta : ℕ → ℝ) {R : ℝ} |
| 29 | (Q : (n : ℕ) → SurgeryCapClose g₀ (S n) (g n) (tip n) (scale n) (eta n)) |
| 30 | (D : (n : ℕ) → NormalizedCapExponential (Q n) R) |
| 31 | |
| 32 | /-- Every initial spatial jet converges because the actual initial |
| 33 | phases are linear maps given by the convergent frames. |
| 34 | Source: Corollary 16.7, p. 372. -/ |
| 35 | theorem compactSmoothConvergenceOn_initial_exponential_phases |
| 36 | (L : E ≃L[ℝ] E) |
| 37 | (hL : Tendsto (fun n => fderiv ℝ (D n).coordinateMap 0) atTop |
| 38 | (𝓝 L.toContinuousLinearMap)) : |
| 39 | CompactSmoothConvergenceOn (fun n p => (D n).phase (p, 0)) |
| 40 | (fun p => standardFramePhase g₀ L (p, 0)) atTop univ := by |
| 41 | have hz : CompactSmoothConvergenceOn (fun _ : ℕ => fun _ : E => (0 : E)) |
| 42 | (fun _ => 0) atTop univ := |
| 43 | CompactSmoothConvergenceOn.constant isOpen_univ contDiffOn_const |
| 44 | simpa only [NormalizedCapExponential.phase_initial, standardFramePhase_initial, |
| 45 | ContinuousLinearEquiv.coe_coe] using |
| 46 | hz.prodMk hL.compactSmoothConvergenceOn_clm_apply |
| 47 | |
| 48 | /-- Actual exponential phase jets converge uniformly on each compact |
| 49 | parameter set strictly inside the common domain, through both time |
| 50 | endpoints. Source: Claim 16.6 and Corollary 16.7, pp. 371-372. -/ |
| 51 | theorem tendstoUniformlyOn_exponential_phase_jets |
| 52 | (heta : Tendsto eta atTop (𝓝 0)) (L : E ≃L[ℝ] E) |
| 53 | (hL : Tendsto (fun n => fderiv ℝ (D n).coordinateMap 0) atTop |
| 54 | (𝓝 L.toContinuousLinearMap)) (j : ℕ) {K : Set E} (hK : IsCompact K) |
| 55 | (hKR : K ⊆ ball 0 (R / 2)) : |
| 56 | TendstoUniformlyOn |
| 57 | (fun n (z : E × ℝ) => iteratedFDeriv ℝ j (fun p => (D n).phase (p, z.2)) z.1) |
| 58 | (fun z : E × ℝ => iteratedFDeriv ℝ j |
| 59 | (fun p => standardFramePhase g₀ L (p, z.2)) z.1) atTop (K ×ˢ Icc (0 : ℝ) 1) := by |
| 60 | have hR := (D 0).radius_pos |
| 61 | have hsmall : ball (0 : E) (R / 2) ⊆ ball 0 R := ball_subset_ball (by linarith) |
| 62 | have hsmul {p : E} {t : ℝ} (hp : p ∈ ball 0 (R / 2)) (ht : t ∈ Ioo (-2 : ℝ) 2) : |
| 63 | t • p ∈ ball 0 R := by |
| 64 | have hpR : ‖p‖ < R / 2 := by simpa only [mem_ball, dist_zero_right] using hp |
| 65 | have htR : |t| < 2 := abs_lt.mpr ht |
| 66 | rw [mem_ball, dist_zero_right, norm_smul, Real.norm_eq_abs] |
| 67 | calc |
| 68 | |t| * ‖p‖ ≤ 2 * ‖p‖ := mul_le_mul_of_nonneg_right htR.le (norm_nonneg p) |
| 69 | _ < 2 * (R / 2) := mul_lt_mul_of_pos_left hpR (by norm_num) |
| 70 | _ = R := by ring |
| 71 | apply tendstoUniformlyOn_ode_spatial_jets j |
| 72 | (U := ball 0 (R / 2)) (I := Ioo (-2 : ℝ) 2) isOpen_ball isOpen_Ioo zero_le_one |
| 73 | (by intro t ht; constructor <;> linarith [ht.1, ht.2]) hK hKR |
| 74 | (standardFramePhase_contDiff g₀ L).contDiffOn |
| 75 | · exact Eventually.of_forall fun n => (D n).phase_smooth.mono (fun _ hz => hsmul hz.1 hz.2) |
| 76 | · exact Eventually.of_forall fun n p hp t ht => |
| 77 | (D n).phase_hasDerivAt (hsmall hp) (hsmul hp ht) |
| 78 | · exact Eventually.of_forall fun n p hp t ht => (D n).field_contDiffAt_phase (hsmul hp ht) |
| 79 | · exact fun p _ t _ => standardFramePhase_hasDerivAt g₀ L p t |
| 80 | · exact compactSmoothConvergenceOn_initial_geodesicFields g₀ S g tip scale eta Q heta |
| 81 | · exact (compactSmoothConvergenceOn_initial_exponential_phases |
| 82 | g₀ S g tip scale eta Q D L hL).mono isOpen_ball (subset_univ _) |
| 83 | |
| 84 | /-- The actual coordinate exponential endpoints converge smoothly on |
| 85 | compact subsets of the fixed smaller parameter ball. |
| 86 | Source: Corollary 16.7, p. 372. -/ |
| 87 | theorem compactSmoothConvergenceOn_initial_exponentials |
| 88 | (heta : Tendsto eta atTop (𝓝 0)) (L : E ≃L[ℝ] E) |
| 89 | (hL : Tendsto (fun n => fderiv ℝ (D n).coordinateMap 0) atTop |
| 90 | (𝓝 L.toContinuousLinearMap)) : |
| 91 | CompactSmoothConvergenceOn (fun n => (D n).coordinateMap) |
| 92 | (standardFrameExponential g₀ L) atTop (ball 0 (R / 2)) := by |
| 93 | have hsmall : ball (0 : E) (R / 2) ⊆ ball 0 R := |
| 94 | ball_subset_ball (by linarith [(D 0).radius_pos]) |
| 95 | have hs (n : ℕ) : ContDiffOn ℝ ∞ (fun p => (D n).phase (p, 1)) (ball 0 (R / 2)) := |
| 96 | (D n).phase_smooth.comp (contDiffOn_id.prodMk contDiffOn_const) |
| 97 | (fun p hp => by simpa only [mem_ofPred_eq, one_smul] using hsmall hp) |
| 98 | have hphase : CompactSmoothConvergenceOn (fun n p => (D n).phase (p, 1)) |
| 99 | (fun p => standardFramePhase g₀ L (p, 1)) atTop (ball 0 (R / 2)) := { |
| 100 | isOpen := isOpen_ball |
| 101 | smooth := ((standardFramePhase_contDiff g₀ L).comp |
| 102 | (contDiff_id.prodMk contDiff_const)).contDiffOn |
| 103 | eventually_smooth K _ hK := Eventually.of_forall fun n x hx => |
| 104 | (hs n).contDiffAt (isOpen_ball.mem_nhds (hK hx)) |
| 105 | jets j K hK hKR := by |
| 106 | have hjet := tendstoUniformlyOn_exponential_phase_jets |
| 107 | g₀ S g tip scale eta Q D heta L hL j hK hKR |
| 108 | exact (hjet.comp (fun p : E => (p, (1 : ℝ)))).mono (fun _ hp => ⟨hp, by simp⟩) } |
| 109 | have hproj := hphase.comp_smooth isOpen_univ |
| 110 | (contDiff_fst (𝕜 := ℝ) (n := ∞)).contDiffOn (fun _ _ => mem_univ _) |
| 111 | simpa only [Function.comp_def, NormalizedCapExponential.phase, standardFramePhase, one_smul] |
| 112 | using hproj |
| 113 | |
| 114 | end PoincareMT.M44 |