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.ReducedGeometry.ReducedLength.Minimum.Variational.TimeSupport |
| 2 | |
| 3 | /-! |
| 4 | # Time continuity of the spatial reduced-length infimum |
| 5 | |
| 6 | Truncation makes the unnormalized minimum action nondecreasing. Stationary |
| 7 | extension, confinement of minimizing endpoints, and compact-slab scalar |
| 8 | continuity bound its increments on every finite positive-time interval. |
| 9 | Thus the actual spatial infimum is continuous at every positive time. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set Filter MeasureTheory Topology |
| 15 | open scoped Manifold ContDiff Bundle intervalIntegral NNReal |
| 16 | |
| 17 | namespace PoincareMT.AncientKappaSolution |
| 18 | |
| 19 | open ReducedLengthMinimum ReducedLengthMinimum.Variational |
| 20 | |
| 21 | variable {M : Type*} [TopologicalSpace M] |
| 22 | [ChartedSpace (EuclideanSpace ℝ (Fin 2)) M] [IsManifold (𝓡 2) ∞ M] |
| 23 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 24 | [SecondCountableTopology M] [ConnectedSpace M] |
| 25 | |
| 26 | private noncomputable def initialBackwardSubpath (K : AncientKappaSolution 2 M) |
| 27 | {τ u : ℝ} (hτ : 0 < τ) (hu : τ ≤ u) |
| 28 | (path : BackwardTimePath K.flow 0 0 u) : BackwardTimePath K.flow 0 0 τ where |
| 29 | curve := path.curve |
| 30 | nonnegative := le_rfl |
| 31 | ordered := hτ |
| 32 | terminal_mem := path.terminal_mem |
| 33 | time_mem s hs := path.time_mem s ⟨hs.1, hs.2.trans hu⟩ |
| 34 | continuous := path.continuous.mono (Icc_subset_Icc_right hu) |
| 35 | regular := path.regular.mono (Ioo_subset_Ioo_right hu) |
| 36 | l_integrable := path.l_integrable.mono_set (by |
| 37 | rw [uIcc_of_le hτ.le, uIcc_of_le (hτ.le.trans hu)] |
| 38 | exact Icc_subset_Icc_right hu) |
| 39 | |
| 40 | /-- The unnormalized spatial minimum is nondecreasing by truncation of actual |
| 41 | admissible paths and nonnegativity of their action density. -/ |
| 42 | theorem monotoneOn_spatial_minimum_action (K : AncientKappaSolution 2 M) (p : M) : |
| 43 | MonotoneOn (fun τ => 2 * Real.sqrt τ * K.spatialReducedLengthInfimum p τ) (Ioi 0) := by |
| 44 | intro τ hτ u _hu hu |
| 45 | change 0 < τ at hτ |
| 46 | obtain ⟨paths, α, hstart, hanti, hlim, hα0, huniform⟩ := |
| 47 | K.exists_uniformly_convergent_spatial_minimizing_paths p (hτ.trans_le hu) |
| 48 | apply ge_of_tendsto hlim |
| 49 | apply Eventually.of_forall |
| 50 | intro k |
| 51 | let path := K.initialBackwardSubpath hτ hu (paths k) |
| 52 | have hred := K.reducedLength_le_path path (hstart k) rfl |
| 53 | have hden : 0 < 2 * Real.sqrt τ := by positivity |
| 54 | have hbound := (le_div_iff₀ hden).mp |
| 55 | ((K.spatialReducedLengthInfimum_le p (path.curve τ) τ).trans hred) |
| 56 | have hnonneg : 0 ≤ᵐ[volume.restrict (Ioc (0 : ℝ) u)] |
| 57 | backwardLIntegrand K.flow 0 (paths k).curve := by |
| 58 | filter_upwards [ae_restrict_mem measurableSet_Ioc] with s hs |
| 59 | exact K.backwardLIntegrand_nonneg _ hs.1.le |
| 60 | have hmono := intervalIntegral.integral_mono_interval (a := (0 : ℝ)) le_rfl hτ.le hu |
| 61 | hnonneg (paths k).l_integrable |
| 62 | have hpath : backwardLLength K.flow 0 0 τ path.curve ≤ |
| 63 | backwardLLength K.flow 0 0 u (paths k).curve := hmono |
| 64 | have hbound' : 2 * Real.sqrt τ * K.spatialReducedLengthInfimum p τ ≤ |
| 65 | backwardLLength K.flow 0 0 τ path.curve := by |
| 66 | simpa only [mul_comm] using hbound |
| 67 | exact hbound'.trans hpath |
| 68 | |
| 69 | /-- The unnormalized minimum action has a uniform one-sided Lipschitz bound |
| 70 | on every bounded interval of positive backward times. -/ |
| 71 | theorem exists_spatial_minimum_action_increment_bound (K : AncientKappaSolution 2 M) |
| 72 | (p : M) {B : ℝ} (hB : 0 < B) : |
| 73 | ∃ C : ℝ, 0 ≤ C ∧ ∀ τ u : ℝ, 0 < τ → τ ≤ u → u ≤ B → |
| 74 | 2 * Real.sqrt u * K.spatialReducedLengthInfimum p u - |
| 75 | 2 * Real.sqrt τ * K.spatialReducedLengthInfimum p τ ≤ C * (u - τ) := by |
| 76 | obtain ⟨L, hL, hcompare⟩ := K.exists_uniform_reducedLength_comparator p B |
| 77 | obtain ⟨S, hS, hsub⟩ := K.exists_compact_reducedLength_sublevels p B L |
| 78 | obtain ⟨C, hC, hcurv⟩ := K.exists_curvature_bound_on_compact hS hB |
| 79 | refine ⟨Real.sqrt B * C, mul_nonneg (Real.sqrt_nonneg B) hC, ?_⟩ |
| 80 | intro τ u hτ hu huB |
| 81 | have hu' : 0 < u := hτ.trans_le hu |
| 82 | obtain ⟨q, hq, hsupport⟩ := K.exists_stationary_time_comparison p hτ |
| 83 | have hqS : q ∈ S := hsub τ hτ (hu.trans huB) (by |
| 84 | change reducedLength K.flow 0 p q τ ≤ L |
| 85 | rw [hq] |
| 86 | exact (K.spatialReducedLengthInfimum_le p p τ).trans (hcompare τ hτ (hu.trans huB))) |
| 87 | have hR (r : ℝ) (hr : r ∈ Icc τ u) : |
| 88 | (K.flow.connection (0 - r)).scalarCurvature q ≤ C := by |
| 89 | have htime : 0 - r ∈ Icc (-B) 0 := ⟨by linarith [hr.2], by linarith [hr.1]⟩ |
| 90 | have h := hcurv (0 - r) htime q hqS |
| 91 | rw [(K.flow.connection (0 - r)).curvatureTensorNorm_eq_abs_scalarCurvature q, |
| 92 | abs_abs] at h |
| 93 | exact (le_abs_self _).trans h |
| 94 | have hcont : ContinuousOn |
| 95 | (fun r => Real.sqrt r * (K.flow.connection (0 - r)).scalarCurvature q) (Icc τ u) := |
| 96 | Real.continuous_sqrt.continuousOn.mul |
| 97 | ((K.flow.continuousOn_scalarCurvature_ancient_surface q).comp |
| 98 | (continuous_const.sub continuous_id).continuousOn |
| 99 | (fun r hr => show 0 - r ∈ Iic 0 from by |
| 100 | exact sub_nonpos.mpr (hτ.le.trans hr.1))) |
| 101 | have htail : (∫ r in τ..u, |
| 102 | Real.sqrt r * (K.flow.connection (0 - r)).scalarCurvature q) ≤ |
| 103 | (u - τ) * (Real.sqrt B * C) := by |
| 104 | have h := intervalIntegral.integral_mono_on (μ := volume) hu (hcont.intervalIntegrable_of_Icc hu) |
| 105 | intervalIntegrable_const (fun r hr => |
| 106 | (mul_le_mul_of_nonneg_left (hR r hr) (Real.sqrt_nonneg r)).trans |
| 107 | (mul_le_mul_of_nonneg_right (Real.sqrt_le_sqrt (hr.2.trans huB)) hC)) |
| 108 | simpa only [intervalIntegral.integral_const, smul_eq_mul] using h |
| 109 | have hden : 0 < 2 * Real.sqrt u := by positivity |
| 110 | have hact := (le_div_iff₀ hden).mp (hsupport u hu) |
| 111 | nlinarith |
| 112 | |
| 113 | /-- On each bounded positive-time interval the actual minimum action is |
| 114 | Lipschitz; the constant is supplied by compact-slab scalar curvature. -/ |
| 115 | theorem exists_lipschitzOn_spatial_minimum_action (K : AncientKappaSolution 2 M) |
| 116 | (p : M) {B : ℝ} (hB : 0 < B) : |
| 117 | ∃ C : ℝ≥0, LipschitzOnWith C |
| 118 | (fun τ => 2 * Real.sqrt τ * K.spatialReducedLengthInfimum p τ) (Ioc 0 B) := by |
| 119 | obtain ⟨C, hC, hbound⟩ := K.exists_spatial_minimum_action_increment_bound p hB |
| 120 | refine ⟨⟨C, hC⟩, LipschitzOnWith.of_dist_le_mul ?_⟩ |
| 121 | intro τ hτ u hu |
| 122 | change |2 * Real.sqrt τ * K.spatialReducedLengthInfimum p τ - |
| 123 | 2 * Real.sqrt u * K.spatialReducedLengthInfimum p u| ≤ C * |τ - u| |
| 124 | rcases le_total τ u with htu | hut |
| 125 | · have hmono := K.monotoneOn_spatial_minimum_action p hτ.1 hu.1 htu |
| 126 | rw [abs_of_nonpos (sub_nonpos.mpr hmono), abs_of_nonpos (sub_nonpos.mpr htu)] |
| 127 | nlinarith [hbound τ u hτ.1 htu hu.2] |
| 128 | · have hmono := K.monotoneOn_spatial_minimum_action p hu.1 hτ.1 hut |
| 129 | rw [abs_of_nonneg (sub_nonneg.mpr hmono), abs_of_nonneg (sub_nonneg.mpr hut)] |
| 130 | exact hbound u τ hu.1 hut hτ.2 |
| 131 | |
| 132 | /-- The spatial infimum of the actual ancient-surface reduced length is |
| 133 | continuous at every positive backward time. -/ |
| 134 | theorem continuousOn_spatialReducedLengthInfimum (K : AncientKappaSolution 2 M) |
| 135 | (p : M) : ContinuousOn (K.spatialReducedLengthInfimum p) (Ioi 0) := by |
| 136 | have haction : ContinuousOn |
| 137 | (fun τ => 2 * Real.sqrt τ * K.spatialReducedLengthInfimum p τ) (Ioi 0) := by |
| 138 | intro τ hτ |
| 139 | change 0 < τ at hτ |
| 140 | obtain ⟨C, hC⟩ := K.exists_lipschitzOn_spatial_minimum_action p (by linarith : 0 < τ + 1) |
| 141 | exact (hC.continuousOn.continuousAt |
| 142 | (Ioc_mem_nhds hτ (by linarith : τ < τ + 1))).continuousWithinAt |
| 143 | have hquot := haction.div (continuous_const.mul Real.continuous_sqrt).continuousOn |
| 144 | (fun τ hτ => show 2 * Real.sqrt τ ≠ 0 by |
| 145 | change 0 < τ at hτ |
| 146 | positivity) |
| 147 | apply hquot.congr |
| 148 | intro τ hτ |
| 149 | change 0 < τ at hτ |
| 150 | exact (mul_div_cancel_left₀ (K.spatialReducedLengthInfimum p τ) |
| 151 | (show 2 * Real.sqrt τ ≠ 0 by positivity)).symm |
| 152 | |
| 153 | end PoincareMT.AncientKappaSolution |