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.TerminalSourceCharts |
| 2 | import PoincareLib.Geometry.RicciFlow.MetricComparison |
| 3 | import PoincareLib.Geometry.Riemannian.Curvature.NormBounds |
| 4 | |
| 5 | /-! # Closed-time ellipticity of actual terminal source charts |
| 6 | |
| 7 | MT Proposition 5.14, pp. 90-91. Raw curvature on the fixed chart image |
| 8 | propagates terminal quadratic bounds throughout its own closed slab. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff Bundle Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M47 |
| 20 | |
| 21 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 22 | |
| 23 | noncomputable def terminalSourceLower (H τ : ℝ) : ℝ := Real.exp (-54 * H * τ) / 4 |
| 24 | noncomputable def terminalSourceUpper (H τ : ℝ) : ℝ := 9 * Real.exp (54 * H * τ) / 4 |
| 25 | |
| 26 | theorem terminalSourceLower_pos (H τ : ℝ) : 0 < terminalSourceLower H τ := by |
| 27 | unfold terminalSourceLower |
| 28 | positivity |
| 29 | |
| 30 | theorem terminalSourceUpper_pos (H τ : ℝ) : 0 < terminalSourceUpper H τ := by |
| 31 | unfold terminalSourceUpper |
| 32 | positivity |
| 33 | |
| 34 | variable {M : Type u} [TopologicalSpace M] [ChartedSpace E M] |
| 35 | [IsManifold (𝓡 3) ∞ M] [T2Space M] |
| 36 | |
| 37 | /-- The time endpoint is included; only actual within-time Ricci evolution |
| 38 | and raw curvature on the same chart image are used. -/ |
| 39 | theorem TerminalSourceChart.closed_bounds {τ R H ρ : ℝ} (hτ : 0 < τ) (hH : 0 ≤ H) |
| 40 | (F : RicciFlow 3 M (Icc (-τ) 0)) (C : TerminalSourceChart (F.metric 0) R) |
| 41 | (hρR : 2 * ρ < R) |
| 42 | (hsmall : ∀ s : ℝ, |s| ≤ 2 * ρ → |
| 43 | (H * s ^ 2) * Real.exp (max 1 (H * s ^ 2)) ≤ 3) |
| 44 | (hcurv : ∀ t ∈ Icc (-τ) 0, ∀ y ∈ C.chart '' Metric.ball 0 R, |
| 45 | (F.connection t).curvatureTensorNorm y ≤ H) |
| 46 | {t : ℝ} (ht : t ∈ Icc (-τ) 0) {x : E} |
| 47 | (hx : x ∈ Metric.closedBall 0 (2 * ρ)) (v : E) : |
| 48 | terminalSourceLower H τ * ‖v‖ ^ 2 ≤ (F.metric t).pullbackCoefficients C.chart x v v ∧ |
| 49 | (F.metric t).pullbackCoefficients C.chart x v v ≤ terminalSourceUpper H τ * ‖v‖ ^ 2 := by |
| 50 | have h0 : (0 : ℝ) ∈ Icc (-τ) 0 := ⟨by linarith, le_rfl⟩ |
| 51 | have hb := C.terminal_bounds (F.connection 0) hρR hsmall (hcurv 0 h0) hx v |
| 52 | let w := mfderiv (𝓡 3) (𝓡 3) C.chart x v |
| 53 | have hnonneg (s : ℝ) : 0 ≤ (F.metric s).inner (C.chart x) w w := by |
| 54 | by_cases hw : w = 0 |
| 55 | · simp [hw] |
| 56 | · exact ((F.metric s).pos _ _ hw).le |
| 57 | have hRic : ∀ s ∈ Icc (-τ) 0, |
| 58 | |(F.connection s).ricci (C.chart x) w w| ≤ (27 * H) * (F.metric s).inner (C.chart x) w w := by |
| 59 | intro s hs |
| 60 | have h := (F.connection s).abs_ricci_quadratic_le_curvatureTensorNorm (C.chart x) w |
| 61 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 3) (C.chart x)) = 3 := |
| 62 | finrank_euclideanSpace_fin |
| 63 | simp only [Fintype.card_fin, hdim] at h |
| 64 | norm_num at h |
| 65 | exact h.trans (mul_le_mul_of_nonneg_right |
| 66 | (mul_le_mul_of_nonneg_left (hcurv s hs _ |
| 67 | ⟨x, Metric.closedBall_subset_ball hρR hx, rfl⟩) (by norm_num)) (hnonneg s)) |
| 68 | have htime := F.metric_inner_self_exp_bounds (convex_Icc (-τ) 0) (Subset.refl _) |
| 69 | (C.chart x) w (27 * H) hRic h0 ht |
| 70 | have htau : |t - 0| ≤ τ := by rw [abs_le]; constructor <;> linarith [ht.1, ht.2] |
| 71 | have hlo : Real.exp (-54 * H * τ) * (F.metric 0).pullbackCoefficients C.chart x v v ≤ |
| 72 | (F.metric t).pullbackCoefficients C.chart x v v := by |
| 73 | apply le_trans (mul_le_mul_of_nonneg_right (Real.exp_le_exp.mpr ?_) (hnonneg 0)) htime.1 |
| 74 | nlinarith [mul_le_mul_of_nonneg_left htau (by positivity : 0 ≤ 54 * H)] |
| 75 | have hhi : (F.metric t).pullbackCoefficients C.chart x v v ≤ |
| 76 | Real.exp (54 * H * τ) * (F.metric 0).pullbackCoefficients C.chart x v v := by |
| 77 | apply htime.2.trans (mul_le_mul_of_nonneg_right (Real.exp_le_exp.mpr ?_) (hnonneg 0)) |
| 78 | nlinarith [mul_le_mul_of_nonneg_left htau (by positivity : 0 ≤ 54 * H)] |
| 79 | constructor |
| 80 | · calc |
| 81 | _ = Real.exp (-54 * H * τ) * ((1 / 4 : ℝ) * ‖v‖ ^ 2) := by |
| 82 | unfold terminalSourceLower |
| 83 | ring |
| 84 | _ ≤ Real.exp (-54 * H * τ) * (F.metric 0).pullbackCoefficients C.chart x v v := |
| 85 | mul_le_mul_of_nonneg_left hb.1 (Real.exp_pos _).le |
| 86 | _ ≤ _ := hlo |
| 87 | · apply hhi.trans |
| 88 | calc |
| 89 | _ ≤ Real.exp (54 * H * τ) * ((9 / 4 : ℝ) * ‖v‖ ^ 2) := |
| 90 | mul_le_mul_of_nonneg_left hb.2 (Real.exp_pos _).le |
| 91 | _ = _ := by unfold terminalSourceUpper; ring |
| 92 | |
| 93 | end PoincareMT.M47 |