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.Recovery.Finite |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Minimum.CompactTime |
| 3 | |
| 4 | /-! |
| 5 | # Ancient reduced length bounded by recovered chart action |
| 6 | |
| 7 | Every continuous finite-chart primitive with square-integrable coordinate |
| 8 | velocity admits smooth comparison paths with the same endpoints. Their |
| 9 | actual backward actions bound the frozen reduced length at the endpoint. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set Filter MeasureTheory |
| 16 | open scoped Manifold ContDiff Bundle Topology intervalIntegral |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.AncientKappaSolution |
| 21 | |
| 22 | open ReducedLengthMinimum.Variational |
| 23 | |
| 24 | variable {M : Type u} [MetricSpace M] |
| 25 | [ChartedSpace (EuclideanSpace ℝ (Fin 2)) M] [IsManifold (𝓡 2) ∞ M] |
| 26 | [MeasurableSpace M] [BorelSpace M] [SecondCountableTopology M] [ConnectedSpace M] |
| 27 | |
| 28 | /-- The frozen reduced length is bounded by the actual chart action of any |
| 29 | continuous finite-chart primitive, with no minimizing-curve service. -/ |
| 30 | theorem reducedLength_le_finite_chart_piece_action (K : AncientKappaSolution 2 M) |
| 31 | {τ : ℝ} (hτ : 0 < τ) |
| 32 | {m : ℕ} (t : Fin (m + 1) → ℝ) (ht : Monotone t) |
| 33 | (hta : t 0 = 0) (htb : t (Fin.last m) = Real.sqrt τ) |
| 34 | (γ : ℝ → M) (β : Fin m → ℝ → M) |
| 35 | (hβ : ∀ i, ContinuousOn (β i) (Icc (t i.castSucc) (t i.succ))) |
| 36 | (hβa : ∀ i, β i (t i.castSucc) = γ (t i.castSucc)) |
| 37 | (hβb : ∀ i, β i (t i.succ) = γ (t i.succ)) |
| 38 | (x : Fin m → M) |
| 39 | (hsrc : ∀ i, MapsTo (β i) (Icc (t i.castSucc) (t i.succ)) |
| 40 | (chartAt (EuclideanSpace ℝ (Fin 2)) (x i)).source) |
| 41 | (w : ∀ i : Fin m, IntervalL2 (EuclideanSpace ℝ (Fin 2)) (t i.castSucc) (t i.succ)) |
| 42 | (hprimitive : ∀ i s, s ∈ Icc (t i.castSucc) (t i.succ) → |
| 43 | extChartAt (𝓡 2) (x i) (β i s) = extChartAt (𝓡 2) (x i) (β i (t i.castSucc)) + |
| 44 | ∫ r in t i.castSucc..s, w i r) : |
| 45 | 2 * Real.sqrt τ * reducedLength K.flow 0 (γ 0) (γ (Real.sqrt τ)) τ ≤ |
| 46 | ∑ i, ((∫ s in t i.castSucc..t i.succ, |
| 47 | regularizedChartMetric K.flow 0 (x i) (s, β i s) (w i s) (w i s)) + |
| 48 | ∫ s in t i.castSucc..t i.succ, |
| 49 | 2 * s ^ 2 * (K.flow.connection (0 - s ^ 2)).scalarCurvature (β i s)) := by |
| 50 | have htime (s : ℝ) (_hs : s ∈ Icc (t 0) (t (Fin.last m))) : |
| 51 | 0 - s ^ 2 ∈ Iic (0 : ℝ) := by simp only [mem_Iic]; nlinarith [sq_nonneg s] |
| 52 | have hpotential : ContinuousOn (fun z : ℝ × M => |
| 53 | 2 * z.1 ^ 2 * (K.flow.connection (0 - z.1 ^ 2)).scalarCurvature z.2) |
| 54 | (Icc (t 0) (t (Fin.last m)) ×ˢ univ) := by |
| 55 | rw [hta, htb] |
| 56 | exact K.regularizedPotential_continuousOn le_rfl (Real.sqrt_nonneg τ) univ |
| 57 | obtain ⟨α, hα, _, hlim⟩ := exists_smooth_finite_chart_piece_recovery K.flow 0 t ht htime |
| 58 | hpotential γ β hβ hβa hβb x hsrc w hprimitive |
| 59 | have hcont (k : ℕ) : ContinuousOn (α k) (Icc (Real.sqrt 0) (Real.sqrt τ)) := |
| 60 | (hα k).1.continuous.continuousOn |
| 61 | have hreg (k : ℕ) : ContMDiffOn (𝓘(ℝ, ℝ)) (𝓡 2) 1 (α k) |
| 62 | (Ioo (Real.sqrt 0) (Real.sqrt τ)) := ((hα k).1.of_le (by simp)).contMDiffOn |
| 63 | have hint (k : ℕ) : IntervalIntegrable (regularizedLIntegrand K.flow 0 (α k)) volume |
| 64 | (Real.sqrt 0) (Real.sqrt τ) := by |
| 65 | simpa only [hta, htb, Real.sqrt_zero] using (hα k).2.2.2 |
| 66 | have hback (r : ℝ) (hr : r ∈ Icc 0 τ) : 0 - r ∈ Iic (0 : ℝ) := by |
| 67 | simpa only [mem_Iic, sub_nonpos] using hr.1 |
| 68 | let paths : ℕ → BackwardTimePath K.flow 0 0 τ := fun k => |
| 69 | backwardPathOfSqrt K.flow 0 0 τ le_rfl hτ (by simp) hback |
| 70 | (α k) (hcont k) (hreg k) (hint k) |
| 71 | have hstart (k : ℕ) : (paths k).curve 0 = γ 0 := by |
| 72 | change α k (Real.sqrt 0) = γ 0 |
| 73 | simpa only [Real.sqrt_zero, hta] using (hα k).2.1 |
| 74 | have hend (k : ℕ) : (paths k).curve τ = γ (Real.sqrt τ) := by |
| 75 | change α k (Real.sqrt τ) = γ (Real.sqrt τ) |
| 76 | simpa only [htb] using (hα k).2.2.1 |
| 77 | have haction (k : ℕ) : backwardLLength K.flow 0 0 τ (paths k).curve = |
| 78 | ∫ s in t 0..t (Fin.last m), regularizedLIntegrand K.flow 0 (α k) s := by |
| 79 | rw [backwardPathOfSqrt_action] |
| 80 | simp only [hta, htb, Real.sqrt_zero] |
| 81 | apply ge_of_tendsto hlim |
| 82 | apply Eventually.of_forall |
| 83 | intro k |
| 84 | have h := (le_div_iff₀ (show 0 < 2 * Real.sqrt τ by positivity)).mp |
| 85 | (K.reducedLength_le_path (paths k) (hstart k) (hend k)) |
| 86 | simpa only [haction, mul_comm] using h |
| 87 | |
| 88 | /-- A continuous finite-chart primitive bounds the frozen reduced length. -/ |
| 89 | theorem reducedLength_le_finite_chart_action (K : AncientKappaSolution 2 M) |
| 90 | {τ : ℝ} (hτ : 0 < τ) |
| 91 | {m : ℕ} (t : Fin (m + 1) → ℝ) (ht : Monotone t) |
| 92 | (hta : t 0 = 0) (htb : t (Fin.last m) = Real.sqrt τ) |
| 93 | (γ : ℝ → M) (hγ : ContinuousOn γ (Icc (t 0) (t (Fin.last m)))) |
| 94 | (x : Fin m → M) |
| 95 | (hsrc : ∀ i, MapsTo γ (Icc (t i.castSucc) (t i.succ)) |
| 96 | (chartAt (EuclideanSpace ℝ (Fin 2)) (x i)).source) |
| 97 | (w : ∀ i : Fin m, IntervalL2 (EuclideanSpace ℝ (Fin 2)) (t i.castSucc) (t i.succ)) |
| 98 | (hprimitive : ∀ i s, s ∈ Icc (t i.castSucc) (t i.succ) → |
| 99 | extChartAt (𝓡 2) (x i) (γ s) = extChartAt (𝓡 2) (x i) (γ (t i.castSucc)) + |
| 100 | ∫ r in t i.castSucc..s, w i r) : |
| 101 | 2 * Real.sqrt τ * reducedLength K.flow 0 (γ 0) (γ (Real.sqrt τ)) τ ≤ |
| 102 | ∑ i, ((∫ s in t i.castSucc..t i.succ, |
| 103 | regularizedChartMetric K.flow 0 (x i) (s, γ s) (w i s) (w i s)) + |
| 104 | ∫ s in t i.castSucc..t i.succ, |
| 105 | 2 * s ^ 2 * (K.flow.connection (0 - s ^ 2)).scalarCurvature (γ s)) := by |
| 106 | exact K.reducedLength_le_finite_chart_piece_action hτ t ht hta htb γ (fun _ => γ) |
| 107 | (fun i => hγ.mono (Icc_subset_Icc (ht (Fin.zero_le _)) (ht (Fin.le_last _)))) |
| 108 | (fun _ => rfl) (fun _ => rfl) x hsrc w hprimitive |
| 109 | |
| 110 | end PoincareMT.AncientKappaSolution |