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.LGeometry.Minimization.LocalMinimality |
| 2 | |
| 3 | /-! Adapted from Mapher `PoincareMT/Proofs/M08/MinimizerPath.lean` at |
| 4 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. -/ |
| 5 | |
| 6 | |
| 7 | /-! |
| 8 | # Admissibility and minimality of the regular chart limit |
| 9 | |
| 10 | Interior C1 regularity identifies the H1 chart action with the actual |
| 11 | regularized action. The square-root pullback then gives an admissible path. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open MeasureTheory Set Filter Topology |
| 18 | open scoped Manifold ContDiff Bundle intervalIntegral |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.LGeometry |
| 23 | |
| 24 | variable {n : ℕ} {M : Type u} [MetricSpace M] |
| 25 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 26 | [ConnectedSpace M] |
| 27 | |
| 28 | theorem finite_chart_action_of_interior_regular {J : Set ℝ} (F : RicciFlow n M J) |
| 29 | (hM04 : RicciFlowCurvatureTheory.{u}) (T : ℝ) |
| 30 | {m : ℕ} (t : Fin (m + 1) → ℝ) (ht : Monotone t) |
| 31 | (htime : ∀ s ∈ Icc (t 0) (t (Fin.last m)), T - s ^ 2 ∈ J) |
| 32 | (γ : ℝ → M) (hγ : ContinuousOn γ (Icc (t 0) (t (Fin.last m)))) |
| 33 | (hreg : ContMDiffOn (𝓘(ℝ, ℝ)) (𝓡 n) 1 γ (Ioo (t 0) (t (Fin.last m)))) |
| 34 | (x : Fin m → M) |
| 35 | (hsrc : ∀ i, MapsTo γ (Icc (t i.castSucc) (t i.succ)) |
| 36 | (chartAt (EuclideanSpace ℝ (Fin n)) (x i)).source) |
| 37 | (w : ∀ i : Fin m, ChartL2 (EuclideanSpace ℝ (Fin n)) (t i.castSucc) (t i.succ)) |
| 38 | (hprimitive : ∀ i s, s ∈ Icc (t i.castSucc) (t i.succ) → |
| 39 | extChartAt (𝓡 n) (x i) (γ s) = extChartAt (𝓡 n) (x i) (γ (t i.castSucc)) + |
| 40 | ∫ r in t i.castSucc..s, w i r) : |
| 41 | IntervalIntegrable (regularizedLIntegrand F T γ) volume (t 0) (t (Fin.last m)) ∧ |
| 42 | (∑ i, chartH1Action F T (x i) (t i.castSucc) (t i.succ) γ (w i)) = |
| 43 | ∫ s in t 0..t (Fin.last m), regularizedLIntegrand F T γ s := by |
| 44 | have hseg (i : Fin m) : t i.castSucc ≤ t i.succ := ht (Fin.castSucc_le_succ i) |
| 45 | have hsub (i : Fin m) : Icc (t i.castSucc) (t i.succ) ⊆ Icc (t 0) (t (Fin.last m)) := |
| 46 | Icc_subset_Icc (ht (Fin.zero_le _)) (ht (Fin.le_last _)) |
| 47 | have hreg' (i : Fin m) : |
| 48 | ContMDiffOn (𝓘(ℝ, ℝ)) (𝓡 n) 1 γ (Ioo (t i.castSucc) (t i.succ)) := by |
| 49 | apply hreg.mono |
| 50 | intro s hs |
| 51 | exact ⟨(ht (Fin.zero_le _)).trans_lt hs.1, hs.2.trans_le (ht (Fin.le_last _))⟩ |
| 52 | have hv (i : Fin m) : |
| 53 | (w i : ℝ → EuclideanSpace ℝ (Fin n)) =ᵐ[volume.restrict (Icc (t i.castSucc) (t i.succ))] |
| 54 | deriv ((extChartAt (𝓡 n) (x i)) ∘ γ) := by |
| 55 | filter_upwards [chart_primitive_ae_hasDerivAt (hseg i) |
| 56 | ((extChartAt (𝓡 n) (x i)) ∘ γ) (w i) (hprimitive i)] with s hs |
| 57 | exact hs.deriv.symm |
| 58 | have hint (i : Fin m) : |
| 59 | IntervalIntegrable (regularizedLIntegrand F T γ) volume (t i.castSucc) (t i.succ) := |
| 60 | chart_piece_integrable F hM04 T (hseg i) (x i) γ (hγ.mono (hsub i)) (hreg' i) |
| 61 | (hsrc i) (fun s hs ↦ htime s (hsub i hs)) (w i) (hv i) |
| 62 | obtain ⟨hglobal, hsum⟩ := integrable_sum_fin_partition t (regularizedLIntegrand F T γ) hint |
| 63 | refine ⟨hglobal, ?_⟩ |
| 64 | calc |
| 65 | _ = ∑ i : Fin m, ∫ s in t i.castSucc..t i.succ, regularizedLIntegrand F T γ s := by |
| 66 | apply Finset.sum_congr rfl |
| 67 | intro i hi |
| 68 | exact chart_piece_action_eq F hM04 T (hseg i) (x i) γ (hγ.mono (hsub i)) |
| 69 | (hreg' i) (hsrc i) (fun s hs ↦ htime s (hsub i hs)) (hint i) (w i) (hv i) |
| 70 | _ = _ := hsum |
| 71 | |
| 72 | theorem exists_minimizing_backward_path_of_chart_limit {J : Set ℝ} {F : RicciFlow n M J} |
| 73 | {T τmax τ₁ τ₂ : ℝ} (hM04 : RicciFlowCurvatureTheory.{u}) (hT : T ∈ J) |
| 74 | (hwindow : Icc (T - τmax) T ⊆ J) |
| 75 | (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - τmax) T)) |
| 76 | (hτ₁ : 0 ≤ τ₁) (hordered : τ₁ < τ₂) (hτ₂ : τ₂ ≤ τmax) |
| 77 | {m : ℕ} (t : Fin (m + 1) → ℝ) (ht : Monotone t) |
| 78 | (hta : t 0 = Real.sqrt τ₁) (htb : t (Fin.last m) = Real.sqrt τ₂) |
| 79 | (γ : ℝ → M) (hγ : ContinuousOn γ (Icc (t 0) (t (Fin.last m)))) |
| 80 | (hreg : ContMDiffOn (𝓘(ℝ, ℝ)) (𝓡 n) 1 γ (Ioo (t 0) (t (Fin.last m)))) |
| 81 | (p₁ p₂ : M) (hγa : γ (Real.sqrt τ₁) = p₁) (hγb : γ (Real.sqrt τ₂) = p₂) |
| 82 | (x : Fin m → M) |
| 83 | (hsrc : ∀ i, MapsTo γ (Icc (t i.castSucc) (t i.succ)) |
| 84 | (chartAt (EuclideanSpace ℝ (Fin n)) (x i)).source) |
| 85 | (w : ∀ i : Fin m, ChartL2 (EuclideanSpace ℝ (Fin n)) (t i.castSucc) (t i.succ)) |
| 86 | (hprimitive : ∀ i s, s ∈ Icc (t i.castSucc) (t i.succ) → |
| 87 | extChartAt (𝓡 n) (x i) (γ s) = extChartAt (𝓡 n) (x i) (γ (t i.castSucc)) + |
| 88 | ∫ r in t i.castSucc..s, w i r) |
| 89 | (hmin : (∑ i, chartH1Action F T (x i) (t i.castSucc) (t i.succ) γ (w i)) ≤ |
| 90 | sInf (backwardActionValues F T τ₁ τ₂ p₁ p₂)) : |
| 91 | ∃ p : BackwardTimePath F T τ₁ τ₂, |
| 92 | p.curve τ₁ = p₁ ∧ p.curve τ₂ = p₂ ∧ IsMinimizingBackwardLPath F T τ₁ τ₂ p ∧ |
| 93 | backwardLLength F T τ₁ τ₂ p.curve = sInf (backwardActionValues F T τ₁ τ₂ p₁ p₂) ∧ |
| 94 | ∀ τ, p.curve τ = γ (Real.sqrt τ) := by |
| 95 | have htime (τ : ℝ) (hτ : τ ∈ Icc τ₁ τ₂) : T - τ ∈ J := |
| 96 | hwindow (backwardTime_mem_window hτ₁ hτ₂ hτ) |
| 97 | have htimesq (s : ℝ) (hs : s ∈ Icc (t 0) (t (Fin.last m))) : T - s ^ 2 ∈ J := by |
| 98 | rw [hta, htb] at hs |
| 99 | have hsn : 0 ≤ s := (Real.sqrt_nonneg τ₁).trans hs.1 |
| 100 | apply htime |
| 101 | constructor |
| 102 | · simpa only [Real.sq_sqrt hτ₁] using |
| 103 | (sq_le_sq₀ (Real.sqrt_nonneg τ₁) hsn).mpr hs.1 |
| 104 | · simpa only [Real.sq_sqrt (hτ₁.trans hordered.le)] using |
| 105 | (sq_le_sq₀ hsn (Real.sqrt_nonneg τ₂)).mpr hs.2 |
| 106 | obtain ⟨hint, hact⟩ := |
| 107 | finite_chart_action_of_interior_regular F hM04 T t ht htimesq γ hγ hreg x hsrc w hprimitive |
| 108 | have hcont : ContinuousOn γ (Icc (Real.sqrt τ₁) (Real.sqrt τ₂)) := by |
| 109 | simpa only [hta, htb] using hγ |
| 110 | have hregular : ContMDiffOn (𝓘(ℝ, ℝ)) (𝓡 n) 1 γ |
| 111 | (Ioo (Real.sqrt τ₁) (Real.sqrt τ₂)) := by |
| 112 | simpa only [hta, htb] using hreg |
| 113 | have hintegrable : IntervalIntegrable (regularizedLIntegrand F T γ) volume |
| 114 | (Real.sqrt τ₁) (Real.sqrt τ₂) := by |
| 115 | simpa only [hta, htb] using hint |
| 116 | let p := backwardPathOfSqrt F T τ₁ τ₂ hτ₁ hordered hT htime γ hcont hregular hintegrable |
| 117 | have hpa : p.curve τ₁ = p₁ := hγa |
| 118 | have hpb : p.curve τ₂ = p₂ := hγb |
| 119 | have hpact : backwardLLength F T τ₁ τ₂ p.curve = |
| 120 | ∑ i, chartH1Action F T (x i) (t i.castSucc) (t i.succ) γ (w i) := by |
| 121 | rw [backwardPathOfSqrt_action] |
| 122 | simpa only [regularizedLAction, hta, htb] using hact.symm |
| 123 | have hple : backwardLLength F T τ₁ τ₂ p.curve ≤ |
| 124 | sInf (backwardActionValues F T τ₁ τ₂ p₁ p₂) := hpact.trans_le hmin |
| 125 | have hbdd : BddBelow (backwardActionValues F T τ₁ τ₂ p₁ p₂) := |
| 126 | backwardActionValues_bddBelow hM04 hcurvature hτ₂ p₁ p₂ |
| 127 | have hpeq : backwardLLength F T τ₁ τ₂ p.curve = |
| 128 | sInf (backwardActionValues F T τ₁ τ₂ p₁ p₂) := |
| 129 | le_antisymm hple (csInf_le hbdd ⟨p, hpa, hpb, rfl⟩) |
| 130 | refine ⟨p, hpa, hpb, ?_, hpeq, fun _ ↦ rfl⟩ |
| 131 | intro q hqa hqb |
| 132 | exact hple.trans (csInf_le hbdd ⟨q, hqa.trans hpa, hqb.trans hpb, rfl⟩) |
| 133 | |
| 134 | end PoincareMT.LGeometry |