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.CurveShortening.Comparison.AnnularEvolution.Plateau.Variable.ModulusLiminf |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Observed.Metric |
| 3 | import Mathlib.Topology.Order.IsLUB |
| 4 | |
| 5 | /-! |
| 6 | # An actual least-energy annulus and modulus on a positive compact interval |
| 7 | |
| 8 | The guarded weighted-energy infimum has a minimizing sequence of genuine |
| 9 | weak annuli and moduli. Compactness of the modulus interval and the actual |
| 10 | weak annulus class give a pair attaining the infimum. This does not assert |
| 11 | that unrestricted minimizing moduli remain in such an interval. |
| 12 | |
| 13 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 14 | 447-449. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | noncomputable section |
| 20 | |
| 21 | open Set Filter MeasureTheory Topology |
| 22 | open scoped Topology Manifold ContDiff |
| 23 | |
| 24 | namespace PoincareMT |
| 25 | |
| 26 | variable {n m : ℕ} {M : Type*} [TopologicalSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 28 | [CompactSpace M] [T2Space M] |
| 29 | |
| 30 | local notation "E" => EuclideanSpace ℝ (Fin m) |
| 31 | |
| 32 | /-- Actual weighted Dirichlet energy attains its minimum over all weak annuli and all moduli |
| 33 | in a prescribed compact positive interval. Proof expansion for Morgan-Tian (2007), Lemma |
| 34 | 19.15, pp. 447-449. -/ |
| 35 | theorem m64ObservedWeakAnnulus_weightedEnergy_attained |
| 36 | (e : M → E) (he : ContMDiff (𝓡 n) (𝓡 m) 1 e) (hei : IsClosedEmbedding e) |
| 37 | (hread : M60.SUChartReadable (n := n) e) {c0 c1 : ℝ → M} |
| 38 | (B : M → E →L[ℝ] E →L[ℝ] ℝ) (hB : Continuous B) |
| 39 | {K : ℝ} (hK : 0 ≤ K) (hb : ∀ q, ‖B q‖ ≤ K) |
| 40 | (hpos : ∀ q v, 0 ≤ B q v v) (hsymm : ∀ q v w, B q v w = B q w v) |
| 41 | {C : ℝ} (hC : 0 ≤ C) |
| 42 | (hcoercive : ∀ (q : M) (v : E), v ∈ range (mfderiv (𝓡 n) (𝓡 m) e q) → |
| 43 | ‖v‖ ^ 2 ≤ C * B q v v) {lo hi : ℝ} (hlo : 0 < lo) (hlohi : lo ≤ hi) |
| 44 | (A0 : M64ObservedWeakAnnulus (n := n) e c0 c1) : |
| 45 | ∃ r ∈ Icc lo hi, ∃ L : M64ObservedWeakAnnulus (n := n) e c0 c1, |
| 46 | ∀ s ∈ Icc lo hi, ∀ A : M64ObservedWeakAnnulus (n := n) e c0 c1, |
| 47 | L.weightedEnergy B r ≤ A.weightedEnergy B s := by |
| 48 | classical |
| 49 | let T : Set ℝ := range (fun P : Icc lo hi × M64ObservedWeakAnnulus (n := n) e c0 c1 => |
| 50 | P.2.weightedEnergy B P.1) |
| 51 | have hne : T.Nonempty := ⟨A0.weightedEnergy B lo, (⟨lo, le_rfl, hlohi⟩, A0), rfl⟩ |
| 52 | have hlower : BddBelow T := by |
| 53 | refine ⟨0, ?_⟩ |
| 54 | rintro _ ⟨P, rfl⟩ |
| 55 | exact P.2.weightedEnergy_nonneg B hpos (hlo.le.trans P.1.property.1) |
| 56 | obtain ⟨u, hanti, hlim, hu⟩ := exists_seq_tendsto_sInf hne hlower |
| 57 | change ∀ j, ∃ P : Icc lo hi × M64ObservedWeakAnnulus (n := n) e c0 c1, |
| 58 | P.2.weightedEnergy B P.1 = u j at hu |
| 59 | choose P hP using hu |
| 60 | let r : ℕ → ℝ := fun j => (P j).1 |
| 61 | let A := fun j => (P j).2 |
| 62 | have hr (j : ℕ) : r j ∈ Icc lo hi := (P j).1.property |
| 63 | have hA (j : ℕ) : (A j).weightedEnergy B (r j) = u j := hP j |
| 64 | let D := max lo⁻¹ hi |
| 65 | have hD : 0 ≤ D := (inv_nonneg.mpr hlo.le).trans (le_max_left _ _) |
| 66 | have hcols (j : ℕ) (i : Fin 2) : ‖(A j).column i‖ ^ 2 ≤ 2 * C * D * u 0 := by |
| 67 | calc |
| 68 | _ ≤ 2 * C * (A j).energy B := |
| 69 | (A j).column_norm_sq_le_energy B hB hei.isEmbedding hb hpos hC hcoercive i |
| 70 | _ ≤ 2 * C * (D * (A j).weightedEnergy B (r j)) := |
| 71 | mul_le_mul_of_nonneg_left |
| 72 | ((A j).energy_le_weightedEnergy_of_mem B hB hei.isEmbedding hb hpos hlo (hr j)) |
| 73 | (by positivity) |
| 74 | _ = (2 * C * D) * u j := by rw [hA j]; ring |
| 75 | _ ≤ (2 * C * D) * u 0 := |
| 76 | mul_le_mul_of_nonneg_left (hanti (Nat.zero_le j)) (by positivity) |
| 77 | obtain ⟨r0, hr0, k, hk, hrlim⟩ := isCompact_Icc.tendsto_subseq hr |
| 78 | obtain ⟨l, L, hl, -, hweak, htarget⟩ := |
| 79 | m64ObservedWeakAnnulus_subsequence e he hei hread (fun j => A (k j)) |
| 80 | (fun j i => hcols (k j) i) |
| 81 | have hrllim : Tendsto (fun j => r (k (l j))) atTop (𝓝 r0) := |
| 82 | hrlim.comp hl.tendsto_atTop |
| 83 | have hlsc := m64ObservedWeakAnnulus_weightedEnergy_le_liminf hei.isEmbedding B hB |
| 84 | hK hb hpos hsymm hlo hr0 (fun j => r (k (l j))) (fun j => hr (k (l j))) hrllim |
| 85 | (fun j => A (k (l j))) L (fun j i => hcols (k (l j)) i) hweak htarget |
| 86 | have henergy : Tendsto (fun j => (A (k (l j))).weightedEnergy B (r (k (l j)))) |
| 87 | atTop (𝓝 (sInf T)) := by |
| 88 | simpa only [hA, Function.comp_def] using hlim.comp (hk.comp hl).tendsto_atTop |
| 89 | rw [henergy.liminf_eq] at hlsc |
| 90 | refine ⟨r0, hr0, L, fun s hs A => hlsc.trans (csInf_le hlower ?_)⟩ |
| 91 | exact ⟨(⟨s, hs⟩, A), rfl⟩ |
| 92 | |
| 93 | /-- The intrinsic observed metric is constructed internally before the actual |
| 94 | compact-interval modulus minimization. Proof expansion for Morgan-Tian (2007), Lemma 19.15, |
| 95 | pp. 447-449. -/ |
| 96 | theorem m64ObservedWeakAnnulus_exists_modulus_minimizer |
| 97 | (g : RiemannianMetric n M) (e : M → E) |
| 98 | (he : ContMDiff (𝓡 n) (𝓡 m) 1 e) (hei : IsClosedEmbedding e) |
| 99 | (hread : M60.SUChartReadable (n := n) e) {c0 c1 : ℝ → M} |
| 100 | {lo hi : ℝ} (hlo : 0 < lo) (hlohi : lo ≤ hi) |
| 101 | (A0 : M64ObservedWeakAnnulus (n := n) e c0 c1) : |
| 102 | ∃ (B : M → E →L[ℝ] E →L[ℝ] ℝ) (r : ℝ), r ∈ Icc lo hi ∧ |
| 103 | ∃ L : M64ObservedWeakAnnulus (n := n) e c0 c1, |
| 104 | Continuous B ∧ (∀ q v, 0 ≤ B q v v) ∧ (∀ q v w, B q v w = B q w v) ∧ |
| 105 | (∀ (f : LoopPlane → M), ContMDiff (𝓡 2) (𝓡 n) 1 f → ∀ p i j, |
| 106 | B (f p) (fderiv ℝ (e ∘ f) p (EuclideanSpace.basisFun (Fin 2) ℝ i)) |
| 107 | (fderiv ℝ (e ∘ f) p (EuclideanSpace.basisFun (Fin 2) ℝ j)) = |
| 108 | m60AreaGram g f p i j) ∧ |
| 109 | ∀ s ∈ Icc lo hi, ∀ A : M64ObservedWeakAnnulus (n := n) e c0 c1, |
| 110 | L.weightedEnergy B r ≤ A.weightedEnergy B s := by |
| 111 | obtain ⟨B, K, hB, hK, hb, hpos, hsymm, hgram⟩ := |
| 112 | m64ChartReadable_observed_metric g e he hread |
| 113 | obtain ⟨C, hC, hcoercive⟩ := m64ObservedMetric_tangent_coercivity g e he B hgram |
| 114 | obtain ⟨r, hr, L, hL⟩ := m64ObservedWeakAnnulus_weightedEnergy_attained e he hei hread |
| 115 | B hB hK hb hpos hsymm hC hcoercive hlo hlohi A0 |
| 116 | exact ⟨B, r, hr, L, hB, hpos, hsymm, hgram, hL⟩ |
| 117 | |
| 118 | end PoincareMT |