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.GlobalSchedule.Event.EventTransportMetricCharts |
| 2 | |
| 3 | /-! |
| 4 | # Smooth metric-limit pullback on open coordinate domains |
| 5 | |
| 6 | M07's bilinear pullback theorem supplies all-order convergence in each source |
| 7 | chart. The local-model theorem patches these estimates over compact subsets |
| 8 | of the actual regular-limit domain. |
| 9 | This proves the coordinate transport needed for Morgan--Tian Definition 15.8, |
| 10 | pp. 361-362, as derived in |
| 11 | `proof-work/tasks/M51/derivations/2026-09-24-event-transport.md`. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option maxSynthPendingDepth 8 |
| 18 | |
| 19 | open Set Filter Poincare.Analysis.Calculus |
| 20 | open scoped Manifold ContDiff Bundle Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.M51EventTransport |
| 25 | |
| 26 | local notation "V3" => EuclideanSpace ℝ (Fin 3) |
| 27 | local notation "Bil3" => V3 →L[ℝ] V3 →L[ℝ] ℝ |
| 28 | |
| 29 | local instance : NormedAddCommGroup (V3 →L[ℝ] ℝ) := |
| 30 | ContinuousLinearMap.toNormedAddCommGroup |
| 31 | local instance : NormedSpace ℝ (V3 →L[ℝ] ℝ) := ContinuousLinearMap.toNormedSpace |
| 32 | local instance : NormedAddCommGroup (Bil3) := ContinuousLinearMap.toNormedAddCommGroup |
| 33 | local instance : NormedSpace ℝ (Bil3) := ContinuousLinearMap.toNormedSpace |
| 34 | |
| 35 | /-- All jets of the metric pullback by a smooth coordinate map converge; |
| 36 | this supports the regular-limit clause of Definition 15.8, pp. 361-362. -/ |
| 37 | theorem metricLimit_pullbackCoefficients_seq |
| 38 | {A B : GeneralizedSliceCarrier.{u}} |
| 39 | {g : ℝ → RiemannianMetric 3 A.carrier} |
| 40 | {gT : RiemannianMetric 3 B.carrier} |
| 41 | {f : A.carrier → B.carrier} {U : Set A.carrier} {T : ℝ} |
| 42 | (hU : IsOpen U) (hf : ContMDiffOn (𝓡 3) (𝓡 3) ∞ f U) |
| 43 | (hlim : SurgeryMetricLimitOn A B g gT f U T) |
| 44 | {h : V3 → A.carrier} {W : Set V3} (hW : IsOpen W) |
| 45 | (hh : ContMDiffOn (𝓡 3) (𝓡 3) ∞ h W) (hhU : MapsTo h W U) |
| 46 | {t : ℕ → ℝ} (ht : Tendsto t atTop (𝓝[<] T)) |
| 47 | (m : ℕ) {K : Set V3} (hK : IsCompact K) (hKW : K ⊆ W) : |
| 48 | TendstoUniformlyOn |
| 49 | (fun i => iteratedFDeriv ℝ m ((g (t i)).pullbackCoefficients h)) |
| 50 | (iteratedFDeriv ℝ m (gT.pullbackCoefficients (f ∘ h))) atTop K := by |
| 51 | apply tendstoUniformlyOn_iteratedFDeriv_of_local_models hW ?_ m hK hKW |
| 52 | intro z hz |
| 53 | let q := h z |
| 54 | let c := extChartAt (𝓡 3) q |
| 55 | let O := chartRegularDomain A q U |
| 56 | let V := W ∩ h ⁻¹' c.source |
| 57 | let a := c ∘ h |
| 58 | let S : ℕ → V3 → Bil3 := fun i => (g (t i)).pullbackCoefficients c.symm |
| 59 | let S₀ : V3 → Bil3 := gT.pullbackCoefficients (f ∘ c.symm) |
| 60 | have hO : IsOpen O := chartRegularDomain_open A q hU |
| 61 | have hV : IsOpen V := hh.continuousOn.isOpen_inter_preimage hW |
| 62 | (isOpen_extChartAt_source q) |
| 63 | have hzV : z ∈ V := ⟨hz, mem_extChartAt_source q⟩ |
| 64 | have hhh : ContMDiffOn (𝓡 3) (𝓡 3) ∞ h V := hh.mono inter_subset_left |
| 65 | have ha : ContDiffOn ℝ ∞ a V := contMDiffOn_iff_contDiffOn.mp |
| 66 | ((contMDiffOn_extChartAt (I := 𝓡 3) (x := q)).comp hhh |
| 67 | (fun _ hy => by simpa only [c, extChartAt_source] using hy.2)) |
| 68 | have haO : MapsTo a V O := by |
| 69 | intro y hy |
| 70 | refine ⟨c.map_source hy.2, ?_⟩ |
| 71 | change c.symm (c (h y)) ∈ U |
| 72 | rw [c.left_inv hy.2] |
| 73 | exact hhU hy.1 |
| 74 | have hS₀ : ContDiffOn ℝ ∞ S₀ O := terminal_chart_contDiffOn gT hU hf q |
| 75 | have hSlocal : ∀ x ∈ O, ∃ R, IsOpen R ∧ x ∈ R ∧ |
| 76 | ∀ᶠ i in atTop, ContDiffOn ℝ ∞ (S i) R := by |
| 77 | intro x hx |
| 78 | exact ⟨O, hO, hx, Eventually.of_forall fun i => |
| 79 | ((g (t i)).contDiffOn_chartCoefficients q).mono inter_subset_left⟩ |
| 80 | have hajet : ∀ j C, IsCompact C → C ⊆ V → TendstoUniformlyOn |
| 81 | (fun _ : ℕ => iteratedFDeriv ℝ j a) (iteratedFDeriv ℝ j a) atTop C := by |
| 82 | intro j C _ _ |
| 83 | apply Metric.tendstoUniformlyOn_iff.mpr |
| 84 | intro eta heta |
| 85 | exact Eventually.of_forall fun _ _ _ => by simpa using heta |
| 86 | obtain ⟨_, hjet⟩ := smooth_convergence_pullback_bilinear_on_open hO hV hS₀ ha haO |
| 87 | hSlocal (fun x hx => ⟨V, hV, hx, Eventually.of_forall fun _ => ha⟩) |
| 88 | (fun j C hC hCO => metricLimit_chart_jets_seq hU hf hlim q (hhU hz) ht j C hC hCO) |
| 89 | hajet |
| 90 | refine ⟨V, hV, hzV, inter_subset_left, |
| 91 | (fun i y => (S i (a y)).bilinearComp (fderiv ℝ a y) (fderiv ℝ a y)), |
| 92 | (fun y => (S₀ (a y)).bilinearComp (fderiv ℝ a y) (fderiv ℝ a y)), |
| 93 | Eventually.of_forall ?_, ?_, hjet⟩ |
| 94 | · intro i y hy |
| 95 | have hheq := chart_factor_eventuallyEq q |
| 96 | (hhh.contMDiffAt (hV.mem_nhds hy)).continuousAt hy.2 |
| 97 | have hc : ContMDiffAt (𝓡 3) (𝓡 3) ∞ c.symm (a y) := |
| 98 | (contMDiffOn_extChartAt_symm q).contMDiffAt |
| 99 | ((isOpen_extChartAt_target (I := 𝓡 3) q).mem_nhds (c.map_source hy.2)) |
| 100 | exact (pullbackCoefficients_congr (g (t i)) hheq.symm).trans |
| 101 | (pullbackCoefficients_comp (g (t i)) hc (ha.contDiffAt (hV.mem_nhds hy))) |
| 102 | · intro y hy |
| 103 | have hheq := chart_factor_eventuallyEq q |
| 104 | (hhh.contMDiffAt (hV.mem_nhds hy)).continuousAt hy.2 |
| 105 | have hfeq : ((f ∘ c.symm) ∘ a) =ᶠ[𝓝 y] (f ∘ h) := by |
| 106 | filter_upwards [hheq] with w hw |
| 107 | exact congrArg f hw |
| 108 | have hc : ContMDiffAt (𝓡 3) (𝓡 3) ∞ c.symm (a y) := |
| 109 | (contMDiffOn_extChartAt_symm q).contMDiffAt |
| 110 | ((isOpen_extChartAt_target (I := 𝓡 3) q).mem_nhds (c.map_source hy.2)) |
| 111 | have hcf : ContMDiffAt (𝓡 3) (𝓡 3) ∞ (f ∘ c.symm) (a y) := |
| 112 | (hf.contMDiffAt (hU.mem_nhds (haO hy).2)).comp (a y) hc |
| 113 | exact (pullbackCoefficients_congr gT hfeq.symm).trans |
| 114 | (pullbackCoefficients_comp gT hcf (ha.contDiffAt (hV.mem_nhds hy))) |
| 115 | |
| 116 | end PoincareMT.M51EventTransport |