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.Terminal.Source.TerminalSourceJetsSpatial |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Limit.Compactness.CompactnessFeedJets |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Limit.Coordinates.RicciTimeGluing |
| 4 | |
| 5 | /-! # Mixed jets of the actual source metric up to time zero |
| 6 | |
| 7 | MT Theorem 5.11 and Proposition 5.14, pp. 89-91. The bound set contains |
| 8 | the whole negative half-cylinder. Source carriers may vary in Type u. |
| 9 | The ordinary source, terminal chart and actual cylinder metric link |
| 10 | remain upstream geometric obligations, not added M47 entry premises. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option maxSynthPendingDepth 12 |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | universe u v |
| 21 | |
| 22 | namespace PoincareMT.M47 |
| 23 | |
| 24 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 25 | local notation "V" => E →L[ℝ] E →L[ℝ] ℝ |
| 26 | |
| 27 | variable {α : Type v} (l : Filter α) (M : α → Type u) |
| 28 | [∀ k, TopologicalSpace (M k)] [∀ k, ChartedSpace E (M k)] |
| 29 | [∀ k, IsManifold (𝓡 3) ∞ (M k)] [∀ k, T2Space (M k)] |
| 30 | [∀ k, SecondCountableTopology (M k)] |
| 31 | |
| 32 | /-- Raw eventual curvature in fixed terminal normal charts produces all |
| 33 | actual mixed jets, uniformly on the entire negative recent half-slab. -/ |
| 34 | theorem terminalSourceJets_mixed (P : RicciFlowCurvatureTheory.{u}) |
| 35 | {τ R H ρ : ℝ} (hτ : 0 < τ) (hH : 0 < H) (hρ : 0 < ρ) (hρR : 2 * ρ < R) |
| 36 | (hsmall : ∀ s : ℝ, |s| ≤ 2 * ρ → |
| 37 | (H * s ^ 2) * Real.exp (max 1 (H * s ^ 2)) ≤ 3) |
| 38 | (F : ∀ k, RicciFlow 3 (M k) (Icc (-τ) 0)) |
| 39 | (C : ∀ k, TerminalSourceChart ((F k).metric 0) R) |
| 40 | (hraw : ∀ᶠ k in l, ∀ t ∈ Icc (-τ) 0, ∀ y ∈ (C k).chart '' Metric.ball 0 R, |
| 41 | ((F k).connection t).curvatureTensorNorm y ≤ H) : |
| 42 | ∀ m : ℕ, ∃ B : ℝ, 0 ≤ B ∧ ∀ᶠ k in l, |
| 43 | ∀ t ∈ Ioo (-(τ / 2)) 0, ∀ x ∈ Metric.closedBall 0 ρ, |
| 44 | ‖iteratedFDeriv ℝ m (fun p : ℝ × E => |
| 45 | ((F k).metric p.1).pullbackCoefficients (C k).chart p.2) (t, x)‖ ≤ B := by |
| 46 | let f := fun k (p : ℝ × E) => ((F k).metric p.1).pullbackCoefficients (C k).chart p.2 |
| 47 | let J := fun _ : α => Ioo (-τ) 0 |
| 48 | let U := fun _ : α => Metric.ball (0 : E) R |
| 49 | let S := fun _ : α => Ioo (-(τ / 2)) 0 ×ˢ Metric.closedBall (0 : E) ρ |
| 50 | have hsubset : ∀ k, S k ⊆ J k ×ˢ U k := by |
| 51 | intro k p hp |
| 52 | exact ⟨⟨by linarith [hp.1.1], hp.1.2⟩, |
| 53 | Metric.closedBall_subset_ball (by linarith : ρ < R) hp.2⟩ |
| 54 | have hsmooth : ∀ k, ContDiffOn ℝ ∞ (f k) (J k ×ˢ U k) := by |
| 55 | intro k |
| 56 | exact (M44.contDiffOn_pullbackCoefficients_within (F k) Metric.isOpen_ball |
| 57 | (C k).smooth).mono (prod_mono Ioo_subset_Icc_self (Subset.refl _)) |
| 58 | have hinv : ∀ k p, p ∈ J k ×ˢ U k → (f k p).IsInvertible := by |
| 59 | intro k p hp |
| 60 | exact ((F k).metric p.1).isInvertible_pullbackCoefficients ((C k).invertible hp.2).injective |
| 61 | have hevol : ∀ k t, t ∈ J k → ∀ x ∈ U k, |
| 62 | HasDerivAt (fun s => f k (s, x)) |
| 63 | (SpacetimeBounds.ricciFlowOperator 3 |
| 64 | (SpacetimeBounds.metricTwoJet (fun y => f k (t, y)) x)) t := by |
| 65 | intro k t ht x hx |
| 66 | exact M44.hasDerivAt_pullbackCoefficients_ricci |
| 67 | (M44.closedSlabInterior (by linarith : -τ < 0) (F k)) isOpen_Ioo |
| 68 | Metric.isOpen_ball (C k).smooth (fun y hy => (C k).invertible hy) ht hx |
| 69 | have helliptic : ∀ᶠ k in l, ∀ p ∈ S k, ∀ v, |
| 70 | terminalSourceLower H τ * ‖v‖ ^ 2 ≤ f k p v v := by |
| 71 | filter_upwards [hraw] with k hk p hp v |
| 72 | exact ((C k).closed_bounds hτ hH.le (F k) hρR hsmall hk |
| 73 | ⟨by linarith [hp.1.1], hp.1.2.le⟩ |
| 74 | (Metric.closedBall_subset_closedBall (by linarith) hp.2) v).1 |
| 75 | have hspatial : ∀ m : ℕ, ∃ B : ℝ, 0 ≤ B ∧ ∀ᶠ k in l, |
| 76 | ∀ p ∈ S k, ∀ j ≤ m, ‖iteratedFDeriv ℝ j (fun x => f k (p.1, x)) p.2‖ ≤ B := by |
| 77 | intro m |
| 78 | obtain ⟨B, hB, hbound⟩ := terminalSourceJets_spatial P hτ hH hρ hρR hsmall m |
| 79 | refine ⟨B, hB, hraw.mono ?_⟩ |
| 80 | intro k hk p hp j hj |
| 81 | exact hbound (F k) (C k) hk p.1 (Ioo_subset_Icc_self hp.1) p.2 hp.2 j hj |
| 82 | have h := M44.eventually_coordinate_spacetime_jet_bound l 3 f J U S hsmooth |
| 83 | (fun _ => isOpen_Ioo) (fun _ => Metric.isOpen_ball) hsubset hinv hevol |
| 84 | (terminalSourceLower_pos H τ) helliptic hspatial |
| 85 | intro m |
| 86 | obtain ⟨B, hB, hbound⟩ := h m |
| 87 | exact ⟨B, hB, hbound.mono fun k hk t ht x hx => hk (t, x) ⟨ht, hx⟩⟩ |
| 88 | |
| 89 | /-- Transfer to literal cylinder coefficient representatives by their |
| 90 | actual metric identity on the open source domain. In particular this |
| 91 | controls every compact K contained in the retained spatial ball. -/ |
| 92 | theorem terminalSourceJets_eventually_mixed_on_buffer (P : RicciFlowCurvatureTheory.{u}) |
| 93 | {τ R H ρ : ℝ} (hτ : 0 < τ) (hH : 0 < H) (hρ : 0 < ρ) (hρR : 2 * ρ < R) |
| 94 | (hsmall : ∀ s : ℝ, |s| ≤ 2 * ρ → |
| 95 | (H * s ^ 2) * Real.exp (max 1 (H * s ^ 2)) ≤ 3) |
| 96 | (F : ∀ k, RicciFlow 3 (M k) (Icc (-τ) 0)) |
| 97 | (C : ∀ k, TerminalSourceChart ((F k).metric 0) R) |
| 98 | (hraw : ∀ᶠ k in l, ∀ t ∈ Icc (-τ) 0, ∀ y ∈ (C k).chart '' Metric.ball 0 R, |
| 99 | ((F k).connection t).curvatureTensorNorm y ≤ H) |
| 100 | (fminus : α → ℝ × E → V) |
| 101 | (hactual : ∀ᶠ k in l, EqOn (fminus k) |
| 102 | (fun p : ℝ × E => ((F k).metric p.1).pullbackCoefficients (C k).chart p.2) |
| 103 | (Ioo (-τ) 0 ×ˢ Metric.ball 0 R)) |
| 104 | {K : Set E} (hK : K ⊆ Metric.closedBall 0 ρ) (m : ℕ) : |
| 105 | ∃ B : ℝ, 0 ≤ B ∧ ∀ᶠ k in l, ∀ t ∈ Ioo (-(τ / 2)) 0, ∀ x ∈ K, |
| 106 | ‖iteratedFDeriv ℝ m (fminus k) (t, x)‖ ≤ B := by |
| 107 | obtain ⟨B, hB, hbound⟩ := terminalSourceJets_mixed l M P hτ hH hρ hρR hsmall F C hraw m |
| 108 | refine ⟨B, hB, ?_⟩ |
| 109 | filter_upwards [hbound, hactual] with k hk heq t ht x hx |
| 110 | have hmem : (t, x) ∈ Ioo (-τ) 0 ×ˢ Metric.ball (0 : E) R := |
| 111 | ⟨⟨by linarith [ht.1], ht.2⟩, Metric.closedBall_subset_ball (by linarith) (hK hx)⟩ |
| 112 | have hgerm : fminus k =ᶠ[𝓝 (t, x)] |
| 113 | (fun p : ℝ × E => ((F k).metric p.1).pullbackCoefficients (C k).chart p.2) := by |
| 114 | filter_upwards [(isOpen_Ioo.prod Metric.isOpen_ball).mem_nhds hmem] with p hp |
| 115 | exact heq hp |
| 116 | rw [(hgerm.iteratedFDeriv (𝕜 := ℝ) m).eq_of_nhds] |
| 117 | exact hk t ht x (hK hx) |
| 118 | |
| 119 | end PoincareMT.M47 |