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.Local.ConeWeakFilling |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Local.ConeH1Radius |
| 3 | |
| 4 | /-! |
| 5 | # Uniform H1 cone fillings over the compact target |
| 6 | |
| 7 | A finite chart cover and an observed Lebesgue radius choose the constants |
| 8 | before the circle. Its actual interval FTC turns small angular energy |
| 9 | into the required neighborhood condition. |
| 10 | |
| 11 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 12 | 447-449. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter MeasureTheory Metric Topology |
| 19 | open scoped Topology Manifold ContDiff |
| 20 | |
| 21 | namespace PoincareMT |
| 22 | |
| 23 | variable {n m : ℕ} {M : Type*} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 25 | [CompactSpace M] [T2Space M] |
| 26 | |
| 27 | local notation "E" => EuclideanSpace ℝ (Fin m) |
| 28 | local notation "circleMu" => volume.restrict (Icc (0 : ℝ) curvePeriod) |
| 29 | |
| 30 | /-- A finite target chart cover gives uniform observed-radius and energy constants for |
| 31 | actual H1 cone fillings. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 32 | theorem m64ChartReadable_uniform_H1_cone_radius |
| 33 | (g : RiemannianMetric n M) (e : M → E) (he : ContMDiff (𝓡 n) (𝓡 m) 1 e) |
| 34 | (hei : IsEmbedding e) (hread : M60.SUChartReadable (n := n) e) : |
| 35 | ∃ delta : ℝ, 0 < delta ∧ ∃ C : ℝ, 0 ≤ C ∧ |
| 36 | ∀ (gamma : ℝ → M), Continuous gamma → Function.Periodic gamma curvePeriod → |
| 37 | (∀ x ∈ Icc (0 : ℝ) curvePeriod, dist (e (gamma x)) (e (gamma 0)) < delta) → |
| 38 | ∀ (w : ℕ → ℝ → E), |
| 39 | (∀ j, ContDiff ℝ 1 (w j)) → (∀ j, Function.Periodic (w j) curvePeriod) → |
| 40 | TendstoUniformlyOn w (e ∘ gamma) atTop (Icc (0 : ℝ) curvePeriod) → |
| 41 | ∀ v : ℝ → E, MemLp v 2 circleMu → |
| 42 | Tendsto (fun j => ∫ x in Icc (0 : ℝ) curvePeriod, |
| 43 | ‖deriv (w j) x - v x‖ ^ 2) atTop (𝓝 0) → |
| 44 | ∃ A : M64ObservedConeDisk (n := n) e gamma, |
| 45 | ∀ i, ‖A.column i‖ ^ 2 ≤ C * ∫ x in Icc (0 : ℝ) curvePeriod, ‖v x‖ ^ 2 := by |
| 46 | classical |
| 47 | choose U C hU hp hC hfill using m64ChartReadable_local_H1_cone g e he hread |
| 48 | obtain ⟨T, hT⟩ := isCompact_univ.elim_finite_subcover U hU |
| 49 | (fun q _ => mem_iUnion.mpr ⟨q, hp q⟩) |
| 50 | choose V hV hpre using fun p => hei.isInducing.isOpen_iff.mp (hU p) |
| 51 | have hcover : range e ⊆ ⋃ p : (↑T : Set M), V p.1 := by |
| 52 | rintro _ ⟨q, rfl⟩ |
| 53 | obtain ⟨p, hpT, hq⟩ := mem_iUnion₂.mp (hT (mem_univ q)) |
| 54 | refine mem_iUnion.mpr ⟨⟨p, hpT⟩, ?_⟩ |
| 55 | change q ∈ e ⁻¹' V p |
| 56 | rw [hpre p] |
| 57 | exact hq |
| 58 | obtain ⟨delta, hdelta, hball⟩ := lebesgue_number_lemma_of_metric |
| 59 | (isCompact_range he.continuous) (fun p : (↑T : Set M) => hV p.1) hcover |
| 60 | refine ⟨delta, hdelta, ∑ p ∈ T, C p, Finset.sum_nonneg (fun p _ => hC p), ?_⟩ |
| 61 | intro gamma hgamma hgammaP hsmall w hw hwP hlim v hv hder |
| 62 | obtain ⟨p, hpball⟩ := hball (e (gamma 0)) (mem_range_self _) |
| 63 | have hP : 0 < curvePeriod := by unfold curvePeriod; positivity |
| 64 | have hgammaU (x : ℝ) : gamma x ∈ U p.1 := by |
| 65 | let y := toIcoMod hP 0 x |
| 66 | have hy : y ∈ Icc (0 : ℝ) curvePeriod := |
| 67 | Ico_subset_Icc_self (toIcoMod_mem_Ico' hP x) |
| 68 | have hxy : gamma y = gamma x := by |
| 69 | simpa only [y, toIcoMod, neg_smul, sub_eq_add_neg] using |
| 70 | (hgammaP.zsmul (-toIcoDiv hP 0 x)) x |
| 71 | rw [← hxy, ← hpre p.1] |
| 72 | exact hpball (hsmall y hy) |
| 73 | obtain ⟨A, hA⟩ := hfill p.1 gamma hgamma hgammaP hgammaU w hw hwP hlim v hv hder |
| 74 | refine ⟨A, fun i => (hA i).trans ?_⟩ |
| 75 | exact mul_le_mul_of_nonneg_right |
| 76 | (Finset.single_le_sum (fun q _ => hC q) p.2) |
| 77 | (integral_nonneg fun x => sq_nonneg ‖v x‖) |
| 78 | |
| 79 | /-- Small actual angular energy gives a target-valued H1 cone with controlled weak columns. |
| 80 | Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 81 | theorem m64ChartReadable_small_energy_H1_cone |
| 82 | (g : RiemannianMetric n M) (e : M → E) (he : ContMDiff (𝓡 n) (𝓡 m) 1 e) |
| 83 | (hei : IsEmbedding e) (hread : M60.SUChartReadable (n := n) e) : |
| 84 | ∃ epsilon : ℝ, 0 < epsilon ∧ ∃ C : ℝ, 0 ≤ C ∧ |
| 85 | ∀ (gamma : ℝ → M), Continuous gamma → Function.Periodic gamma curvePeriod → |
| 86 | ∀ (w : ℕ → ℝ → E), |
| 87 | (∀ j, ContDiff ℝ 1 (w j)) → (∀ j, Function.Periodic (w j) curvePeriod) → |
| 88 | TendstoUniformlyOn w (e ∘ gamma) atTop (Icc (0 : ℝ) curvePeriod) → |
| 89 | ∀ v : ℝ → E, MemLp v 2 circleMu → |
| 90 | (∀ x ∈ Icc (0 : ℝ) curvePeriod, |
| 91 | e (gamma x) - e (gamma 0) = ∫ t in (0 : ℝ)..x, v t) → |
| 92 | Tendsto (fun j => ∫ x in Icc (0 : ℝ) curvePeriod, |
| 93 | ‖deriv (w j) x - v x‖ ^ 2) atTop (𝓝 0) → |
| 94 | (∫ x in Icc (0 : ℝ) curvePeriod, ‖v x‖ ^ 2) < epsilon → |
| 95 | ∃ A : M64ObservedConeDisk (n := n) e gamma, |
| 96 | ∀ i, ‖A.column i‖ ^ 2 ≤ C * ∫ x in Icc (0 : ℝ) curvePeriod, ‖v x‖ ^ 2 := by |
| 97 | obtain ⟨delta, hdelta, C, hC, hfill⟩ := |
| 98 | m64ChartReadable_uniform_H1_cone_radius g e he hei hread |
| 99 | have hP : 0 < curvePeriod := by unfold curvePeriod; positivity |
| 100 | refine ⟨delta ^ 2 / curvePeriod, by positivity, C, hC, ?_⟩ |
| 101 | intro gamma hc hperiod w hw hwP hlim v hv hFTC hder hsmall |
| 102 | apply hfill gamma hc hperiod ?_ w hw hwP hlim v hv hder |
| 103 | intro x hx |
| 104 | have hradius := m64H1Trace_radius_sq_le (e ∘ gamma) v hv hFTC hx |
| 105 | have hE := (lt_div_iff₀ hP).mp hsmall |
| 106 | rw [dist_eq_norm] |
| 107 | change ‖e (gamma x) - e (gamma 0)‖ ^ 2 ≤ |
| 108 | curvePeriod * ∫ t in Icc (0 : ℝ) curvePeriod, ‖v t‖ ^ 2 at hradius |
| 109 | nlinarith [norm_nonneg (e (gamma x) - e (gamma 0))] |
| 110 | |
| 111 | /-- Choose uniform small-energy and intrinsic-energy constants before the actual target |
| 112 | circle. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 113 | theorem m64ChartReadable_uniform_H1_cone_energy |
| 114 | (g : RiemannianMetric n M) (e : M → E) (he : ContMDiff (𝓡 n) (𝓡 m) 1 e) |
| 115 | (hei : IsEmbedding e) (hread : M60.SUChartReadable (n := n) e) |
| 116 | (B : M → E →L[ℝ] E →L[ℝ] ℝ) (hB : Continuous B) : |
| 117 | ∃ epsilon : ℝ, 0 < epsilon ∧ ∃ C : ℝ, 0 ≤ C ∧ |
| 118 | ∀ (gamma : ℝ → M), Continuous gamma → Function.Periodic gamma curvePeriod → |
| 119 | ∀ (w : ℕ → ℝ → E), |
| 120 | (∀ j, ContDiff ℝ 1 (w j)) → (∀ j, Function.Periodic (w j) curvePeriod) → |
| 121 | TendstoUniformlyOn w (e ∘ gamma) atTop (Icc (0 : ℝ) curvePeriod) → |
| 122 | ∀ v : ℝ → E, MemLp v 2 circleMu → |
| 123 | (∀ x ∈ Icc (0 : ℝ) curvePeriod, |
| 124 | e (gamma x) - e (gamma 0) = ∫ t in (0 : ℝ)..x, v t) → |
| 125 | Tendsto (fun j => ∫ x in Icc (0 : ℝ) curvePeriod, |
| 126 | ‖deriv (w j) x - v x‖ ^ 2) atTop (𝓝 0) → |
| 127 | (∫ x in Icc (0 : ℝ) curvePeriod, ‖v x‖ ^ 2) < epsilon → |
| 128 | ∃ A : M64ObservedConeDisk (n := n) e gamma, |
| 129 | A.energy B ≤ C * ∫ x in Icc (0 : ℝ) curvePeriod, ‖v x‖ ^ 2 := by |
| 130 | obtain ⟨epsilon, hepsilon, C, hC, hfill⟩ := |
| 131 | m64ChartReadable_small_energy_H1_cone g e he hei hread |
| 132 | have hbounded : Bornology.IsBounded (range B) := (isCompact_range hB).isBounded |
| 133 | obtain ⟨K, hK⟩ := hbounded.exists_norm_le |
| 134 | refine ⟨epsilon, hepsilon, max K 0 * C, mul_nonneg (le_max_right _ _) hC, ?_⟩ |
| 135 | intro gamma hc hperiod w hw hwP hlim v hv hFTC hder hsmall |
| 136 | obtain ⟨A, hA⟩ := hfill gamma hc hperiod w hw hwP hlim v hv hFTC hder hsmall |
| 137 | refine ⟨A, ?_⟩ |
| 138 | exact (A.energy_le_column_bound B hB (le_max_right K 0) |
| 139 | (fun q => (hK _ (mem_range_self q)).trans (le_max_left _ _)) hA).trans_eq (by ring) |
| 140 | |
| 141 | end PoincareMT |