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.Metric.MetricLimitJets |
| 2 | |
| 3 | /-! |
| 4 | # Curvature bounds from a compact positive metric limit |
| 5 | |
| 6 | At each chart point, compact-uniform jet convergence gives a joint limit |
| 7 | of the actual curvature norm as time approaches the terminal time from the |
| 8 | left. A finite neighborhood cover makes the collar and bound uniform over |
| 9 | the compact manifold. No Ricci equation or completeness premise is used. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set Filter |
| 15 | open scoped Manifold ContDiff Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M51 |
| 20 | |
| 21 | variable {A : GeneralizedSliceCarrier.{u}} |
| 22 | |
| 23 | /-- A positive same-carrier metric limit bounds the actual curvature norm |
| 24 | on a neighborhood of each point and one terminal time collar. -/ |
| 25 | theorem metricLimit_local_curvature_bound |
| 26 | (g : ℝ → RiemannianMetric 3 A.carrier) (D : ∀ t, LeviCivitaData (g t)) |
| 27 | (g₀ : RiemannianMetric 3 A.carrier) {T : ℝ} |
| 28 | (hlim : SurgeryMetricLimitOn A A g g₀ id univ T) (q : A.carrier) : |
| 29 | ∃ U ∈ 𝓝 q, ∃ d > 0, ∃ L ≥ 0, |
| 30 | ∀ t ∈ Ioo (T - d) T, ∀ x ∈ U, (D t).curvatureTensorNorm x ≤ L := by |
| 31 | let c := extChartAt (𝓡 3) q |
| 32 | let p : c.target := ⟨c q, mem_extChartAt_target q⟩ |
| 33 | obtain ⟨r, hr, hK⟩ := Metric.nhds_basis_closedBall.mem_iff.mp |
| 34 | ((isOpen_extChartAt_target (I := 𝓡 3) q).mem_nhds p.2) |
| 35 | let K := Metric.closedBall p.1 r |
| 36 | let l : Filter (ℝ × c.target) := (𝓝[<] T) ×ˢ 𝓝 p |
| 37 | have hcoord : Tendsto (fun i : ℝ × c.target => i.2.1) l (𝓝[K] p.1) := by |
| 38 | rw [nhdsWithin_eq_nhds.mpr (Metric.closedBall_mem_nhds _ hr)] |
| 39 | exact continuous_subtype_val.continuousAt.tendsto.comp tendsto_snd |
| 40 | obtain ⟨L, hL, hconv⟩ := curvatureNorm_limit_of_chart_jets |
| 41 | (fun i : ℝ × c.target => g i.1) (fun i => D i.1) g₀ q (fun i => i.2.1) |
| 42 | (fun i => i.2.2) p.1 p.2 (fun k _ a b => |
| 43 | metricLimit_jets_tendsto g g₀ hlim q (isCompact_closedBall p.1 r) hK |
| 44 | (l := l) tendsto_fst (Metric.mem_closedBall_self hr.le) hcoord k a b) |
| 45 | have hbound : ∀ᶠ i : ℝ × c.target in l, |
| 46 | (D i.1).curvatureTensorNorm (c.symm i.2.1) ≤ L + 1 := by |
| 47 | have hlt : ∀ᶠ i : ℝ × c.target in l, |
| 48 | (D i.1).curvatureTensorNorm (c.symm i.2.1) < L + 1 := |
| 49 | hconv (Iio_mem_nhds (show L < L + 1 by linarith)) |
| 50 | exact hlt.mono fun _ hi => hi.le |
| 51 | obtain ⟨pa, hpa, pb, hpb, hproduct⟩ := eventually_prod_iff.mp hbound |
| 52 | obtain ⟨s, hs, htime⟩ := (nhdsLT_basis T).mem_iff.mp hpa |
| 53 | obtain ⟨V, hV, hVsub⟩ := (mem_nhds_subtype c.target p {y | pb y}).mp hpb |
| 54 | let U := c.source ∩ c ⁻¹' (c.target ∩ V) |
| 55 | have hU : U ∈ 𝓝 q := by |
| 56 | apply inter_mem |
| 57 | · exact (isOpen_extChartAt_source q).mem_nhds (mem_extChartAt_source q) |
| 58 | · have hc : ContinuousAt c q := |
| 59 | continuousAt_extChartAt (I := 𝓡 3) q |
| 60 | exact hc (inter_mem ((isOpen_extChartAt_target (I := 𝓡 3) q).mem_nhds p.2) hV) |
| 61 | refine ⟨U, hU, T - s, sub_pos.mpr hs, L + 1, by linarith, ?_⟩ |
| 62 | intro t ht x hx |
| 63 | have hts : t ∈ Ioo s T := by constructor <;> linarith [ht.1, ht.2] |
| 64 | have hb := hproduct (htime hts) (hVsub (show (⟨c x, hx.2.1⟩ : c.target) ∈ |
| 65 | Subtype.val ⁻¹' V from hx.2.2)) |
| 66 | simpa only [c.left_inv hx.1] using hb |
| 67 | |
| 68 | /-- Compactness makes the local metric-limit curvature bounds uniform. -/ |
| 69 | theorem metricLimit_curvature_bound_of_compact |
| 70 | (g : ℝ → RiemannianMetric 3 A.carrier) (D : ∀ t, LeviCivitaData (g t)) |
| 71 | (g₀ : RiemannianMetric 3 A.carrier) {T : ℝ} |
| 72 | (hA : IsCompact (univ : Set A.carrier)) |
| 73 | (hlim : SurgeryMetricLimitOn A A g g₀ id univ T) : |
| 74 | ∃ d > 0, ∃ L ≥ 0, |
| 75 | ∀ t ∈ Ioo (T - d) T, ∀ x, (D t).curvatureTensorNorm x ≤ L := by |
| 76 | classical |
| 77 | choose U hU d hd L hL hb using metricLimit_local_curvature_bound g D g₀ hlim |
| 78 | obtain ⟨s, _, hcover⟩ := hA.elim_nhds_subcover U (fun x _ => hU x) |
| 79 | have hfinite : ∀ s : Finset A.carrier, |
| 80 | ∃ d₀ > 0, ∃ L₀ ≥ 0, ∀ x ∈ s, d₀ ≤ d x ∧ L x ≤ L₀ := by |
| 81 | intro s |
| 82 | induction s using Finset.induction_on with |
| 83 | | empty => exact ⟨1, by norm_num, 0, le_rfl, by simp⟩ |
| 84 | | @insert x s hxs ih => |
| 85 | obtain ⟨d₀, hd₀, L₀, hL₀, hs⟩ := ih |
| 86 | refine ⟨min d₀ (d x), lt_min hd₀ (hd x), max L₀ (L x), |
| 87 | hL₀.trans (le_max_left _ _), ?_⟩ |
| 88 | intro y hy |
| 89 | rcases Finset.mem_insert.mp hy with rfl | hy |
| 90 | · exact ⟨min_le_right _ _, le_max_right _ _⟩ |
| 91 | · exact ⟨(min_le_left _ _).trans (hs y hy).1, |
| 92 | (hs y hy).2.trans (le_max_left _ _)⟩ |
| 93 | obtain ⟨d₀, hd₀, L₀, hL₀, hs⟩ := hfinite s |
| 94 | refine ⟨d₀, hd₀, L₀, hL₀, ?_⟩ |
| 95 | intro t ht x |
| 96 | obtain ⟨q, hq, hx⟩ := mem_iUnion₂.mp (hcover (mem_univ x)) |
| 97 | exact (hb q t ⟨by linarith [(hs q hq).1, ht.1], ht.2⟩ x hx).trans (hs q hq).2 |
| 98 | |
| 99 | end PoincareMT.M51 |
| 100 | |
| 101 | namespace PoincareMT.SurgeryMetricLimitOn |
| 102 | |
| 103 | /-- A full compact surgery metric limit through a genuine diffeomorphism |
| 104 | has bounded actual curvature on one terminal collar. -/ |
| 105 | theorem curvature_bound_of_compact |
| 106 | (A B : GeneralizedSliceCarrier.{u}) |
| 107 | (g : ℝ → RiemannianMetric 3 A.carrier) (D : ∀ t, LeviCivitaData (g t)) |
| 108 | (gT : RiemannianMetric 3 B.carrier) |
| 109 | (f : Diffeomorph (𝓡 3) (𝓡 3) A.carrier B.carrier ∞) |
| 110 | (T : ℝ) (hA : IsCompact (univ : Set A.carrier)) |
| 111 | (hlim : SurgeryMetricLimitOn A B g gT f univ T) : |
| 112 | ∃ d > 0, ∃ L ≥ 0, |
| 113 | ∀ t ∈ Ioo (T - d) T, ∀ x, (D t).curvatureTensorNorm x ≤ L := |
| 114 | M51.metricLimit_curvature_bound_of_compact g D |
| 115 | (gT.pullbackOfLocalDiffeomorph f f.isLocalDiffeomorph) hA |
| 116 | (M51.surgeryMetricLimitOn_pullback g gT f hlim) |
| 117 | |
| 118 | end PoincareMT.SurgeryMetricLimitOn |