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.CanonicalInduction.Limit.Noncollapse.LimitNoncollapseIncludedJets |
| 2 | import Mathlib.Topology.UniformSpace.UniformApproximation |
| 3 | |
| 4 | /-! |
| 5 | # Moving spatial jets on included compact time products |
| 6 | |
| 7 | The limit jets are continuous within the actual flow interval. Uniform |
| 8 | control on one compact product therefore gives convergence at moving times |
| 9 | and chart points, including zero. Source: reviewed included-curvature |
| 10 | derivation, steps 2-3, and MT Theorem 11.8. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M47 |
| 22 | |
| 23 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 24 | |
| 25 | variable {S : GeneralizedBlowupSequence.{u}} {J : Set ℝ} |
| 26 | (C : GeneralizedBlowupConvergence S J) |
| 27 | |
| 28 | local instance : TopologicalSpace C.limit.carrier.carrier := C.limit.carrier.topologicalSpace |
| 29 | local instance : ChartedSpace E C.limit.carrier.carrier := C.limit.carrier.chartedSpace |
| 30 | local instance : IsManifold (𝓡 3) ∞ C.limit.carrier.carrier := C.limit.carrier.isManifold |
| 31 | |
| 32 | /-- Spatial jets of the literal limit metric are continuous on the included |
| 33 | chart domain; unique differentiation follows from the actual flow interval. -/ |
| 34 | theorem limitNoncollapse_limit_spatialJet_continuousOn |
| 35 | (q : C.limit.sliceCarrier.carrier) (r : ℕ) (a b : Fin 3) : |
| 36 | ContinuousOn (fun z : ℝ × E => iteratedFDeriv ℝ r |
| 37 | (fun y => FlowCarrier.coordinateCoefficient C.limit.carrier q |
| 38 | (fun t x v w => (C.limit.flow.metric t).inner x v w) a b (z.1, y)) z.2) |
| 39 | (blowupMetricChartDomain C.limit q) := by |
| 40 | have hJ : UniqueDiffOn ℝ J := uniqueDiffOn_convex C.limit.flow.interval.convex |
| 41 | (C.limit.flow.interval.convex.nontrivial_iff_nonempty_interior.mp C.limit.flow.nontrivial) |
| 42 | let R := ContinuousMultilinearMap.compContinuousLinearMapL (𝕜 := ℝ) (F := ℝ) |
| 43 | (fun _ : Fin r => ContinuousLinearMap.inr ℝ ℝ E) |
| 44 | have hcont := (C.limit.flow.contDiffOn_chartMetric q a b).continuousOn_iteratedFDerivWithin |
| 45 | (show (r : ℕ∞ω) ≤ ∞ from WithTop.coe_le_coe.mpr le_top) |
| 46 | (hJ.prod (isOpen_extChartAt_target q).uniqueDiffOn) |
| 47 | apply (R.continuous.comp_continuousOn hcont).congr |
| 48 | intro z hz |
| 49 | exact iteratedFDeriv_prod_slice_eq_within (C.limit.flow.contDiffOn_chartMetric q a b) |
| 50 | hJ (isOpen_extChartAt_target q) hz.1 hz.2 (WithTop.coe_le_coe.mpr le_top) |
| 51 | |
| 52 | /-- Compact-product control remains valid along a cofinal source index and |
| 53 | moving included times and spatial coordinates. No common source interval |
| 54 | or open-time extension is used. -/ |
| 55 | theorem limitNoncollapse_tendsto_moving_spatial_jets |
| 56 | (P : M47Predecessors.{u}) (q : C.limit.sliceCarrier.carrier) |
| 57 | {Ktime : Set ℝ} (hKtime : IsCompact Ktime) (hKJ : Ktime ⊆ J) |
| 58 | {index : ℕ → ℕ} (hindex : Tendsto index atTop atTop) |
| 59 | {z : ℕ → ℝ × E} {p : ℝ × E} |
| 60 | (htime : ∀ k, (z k).1 ∈ Ktime) (hp : p.1 ∈ Ktime) |
| 61 | (hchart : p.2 ∈ (extChartAt (𝓡 3) q).target) |
| 62 | (hz : Tendsto z atTop (𝓝 p)) (r : ℕ) (a b : Fin 3) : |
| 63 | Tendsto (fun k => iteratedFDeriv ℝ r |
| 64 | (fun y => blowupPullbackCoefficient (C.embedding (index k)) q a b ((z k).1, y)) |
| 65 | (z k).2) atTop |
| 66 | (𝓝 (iteratedFDeriv ℝ r |
| 67 | (fun y => FlowCarrier.coordinateCoefficient C.limit.carrier q |
| 68 | (fun t x v w => (C.limit.flow.metric t).inner x v w) a b (p.1, y)) p.2)) := by |
| 69 | have hJ : UniqueDiffOn ℝ J := uniqueDiffOn_convex C.limit.flow.interval.convex |
| 70 | (C.limit.flow.interval.convex.nontrivial_iff_nonempty_interior.mp C.limit.flow.nontrivial) |
| 71 | obtain ⟨H, hH, hpH, hHt⟩ := exists_compact_subset |
| 72 | (isOpen_extChartAt_target (I := 𝓡 3) q) hchart |
| 73 | have hzH : ∀ᶠ k in atTop, (z k).2 ∈ H := |
| 74 | (continuousAt_snd.tendsto.comp hz).eventually (mem_interior_iff_mem_nhds.mp hpH) |
| 75 | have hunif : TendstoUniformlyOn |
| 76 | (fun k (w : ℝ × E) => iteratedFDeriv ℝ r |
| 77 | (fun y => blowupPullbackCoefficient (C.embedding (index k)) q a b (w.1, y)) w.2) |
| 78 | (fun w : ℝ × E => iteratedFDeriv ℝ r |
| 79 | (fun y => FlowCarrier.coordinateCoefficient C.limit.carrier q |
| 80 | (fun t x v v' => (C.limit.flow.metric t).inner x v v') a b (w.1, y)) w.2) |
| 81 | atTop (Ktime ×ˢ H) := by |
| 82 | apply Metric.tendstoUniformlyOn_iff.mpr |
| 83 | intro epsilon hepsilon |
| 84 | filter_upwards [hindex.eventually |
| 85 | (limitNoncollapse_generalized_compact_spatial_jets P C hJ q r hKtime hKJ hH hHt |
| 86 | hepsilon)] with k hk w hw |
| 87 | simpa only [dist_eq_norm, norm_sub_rev] using hk.2.2 w.1 hw.1 w.2 hw.2 a b |
| 88 | have hwithin : Tendsto z atTop (𝓝[Ktime ×ˢ H] p) := |
| 89 | tendsto_nhdsWithin_iff.mpr ⟨hz, hzH.mono (fun k hk => ⟨htime k, hk⟩)⟩ |
| 90 | exact hunif.tendsto_comp |
| 91 | ((limitNoncollapse_limit_spatialJet_continuousOn C q r a b p ⟨hKJ hp, hchart⟩).mono |
| 92 | (fun w hw => ⟨hKJ hw.1, hHt hw.2⟩)) hwithin |
| 93 | |
| 94 | end PoincareMT.M47 |