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.Riemannian.MinimalSurface.Sphere.Minimizer.VectorMollification |
| 2 | import PoincareLib.Geometry.Riemannian.MinimalSurface.Sphere.Minimizer.Averages.Derivative |
| 3 | import Mathlib.MeasureTheory.Function.L2Space |
| 4 | |
| 5 | /-! |
| 6 | # Actual strong inner approximation of the weak annular map |
| 7 | |
| 8 | The compact inner set determines a positive support margin. Smooth |
| 9 | averages then have exactly the averaged weak columns there, and the |
| 10 | approximate identity gives simultaneous strong value and derivative limits. |
| 11 | |
| 12 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 13 | 447-449. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | noncomputable section |
| 19 | |
| 20 | open Set Filter MeasureTheory ContinuousLinearMap |
| 21 | open scoped Topology ContDiff Convolution ENNReal |
| 22 | |
| 23 | namespace PoincareMT |
| 24 | |
| 25 | open Poincare.Analysis.Sobolev Poincare.Analysis.Sobolev.Weak M60 |
| 26 | |
| 27 | variable {m : ℕ} |
| 28 | |
| 29 | local notation "E" => EuclideanSpace ℝ (Fin m) |
| 30 | local notation "Plane" => EuclideanSpace ℝ (Fin 2) |
| 31 | |
| 32 | private theorem restrict_approximation |
| 33 | {K : Set Plane} (hK : MeasurableSet K) {f : ℕ → Plane → E} {u U : Plane → E} |
| 34 | (heq : EqOn U u K) |
| 35 | (hlim : Tendsto (fun j => eLpNorm (f j - U) 2 volume) atTop (𝓝 0)) : |
| 36 | Tendsto (fun j => eLpNorm (f j - u) 2 (volume.restrict K)) atTop (𝓝 0) := by |
| 37 | have hb (j : ℕ) : eLpNorm (f j - u) 2 (volume.restrict K) ≤ eLpNorm (f j - U) 2 volume := by |
| 38 | calc |
| 39 | _ = eLpNorm (f j - U) 2 (volume.restrict K) := eLpNorm_congr_ae (by |
| 40 | filter_upwards [ae_restrict_mem hK] with x hx |
| 41 | simp only [Pi.sub_apply, heq hx]) |
| 42 | _ ≤ _ := eLpNorm_mono_measure _ Measure.restrict_le_self |
| 43 | exact tendsto_of_tendsto_of_tendsto_of_le_of_le tendsto_const_nhds hlim |
| 44 | (fun _ => bot_le) hb |
| 45 | |
| 46 | private theorem integral_square_tendsto |
| 47 | {K : Set Plane} {f : ℕ → Plane → E} {u : Plane → E} |
| 48 | (hf : ∀ j, MemLp (f j) 2 (volume.restrict K)) (hu : MemLp u 2 (volume.restrict K)) |
| 49 | (hlim : Tendsto (fun j => eLpNorm (f j - u) 2 (volume.restrict K)) atTop (𝓝 0)) : |
| 50 | Tendsto (fun j => ∫ x in K, ‖f j x - u x‖ ^ 2) atTop (𝓝 0) := by |
| 51 | have hL := (Lp.tendsto_Lp_iff_tendsto_eLpNorm'' f hf u hu).mpr hlim |
| 52 | have hs := (hL.sub_const (hu.toLp u)).norm.pow 2 |
| 53 | have heq (j : ℕ) : ‖(hf j).toLp (f j) - hu.toLp u‖ ^ 2 = |
| 54 | ∫ x in K, ‖f j x - u x‖ ^ 2 := by |
| 55 | rw [← real_inner_self_eq_norm_sq, L2.inner_def] |
| 56 | simp only [real_inner_self_eq_norm_sq] |
| 57 | apply integral_congr_ae |
| 58 | filter_upwards [Lp.coeFn_sub ((hf j).toLp (f j)) (hu.toLp u), |
| 59 | (hf j).coeFn_toLp, hu.coeFn_toLp] with x hx hxf hxu |
| 60 | simp only [hx, Pi.sub_apply, hxf, hxu] |
| 61 | simpa only [heq, sub_self, norm_zero, zero_pow (by decide : 2 ≠ 0)] using hs |
| 62 | |
| 63 | /-- Smooth inner averages approximate the actual weak map and both actual columns strongly |
| 64 | on any compact interior set. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. |
| 65 | 447-449. -/ |
| 66 | theorem m64WeakMap_inner_strong_approximation |
| 67 | {O K : Set Plane} (hO : IsOpen O) (hK : IsCompact K) (hKO : K ⊆ O) |
| 68 | (u : Plane → E) (V : Fin 2 → Plane → E) |
| 69 | (hu : MemLp u 2 (volume.restrict O)) (hV : ∀ i, MemLp (V i) 2 (volume.restrict O)) |
| 70 | (hw : ∀ i b, HasWeakPartialDeriv i (fun p => V i p b) (fun p => u p b) O) : |
| 71 | ∃ f : ℕ → Plane → E, (∀ j, ContDiff ℝ ∞ (f j)) ∧ |
| 72 | Tendsto (fun j => ∫ p in K, ‖f j p - u p‖ ^ 2) atTop (𝓝 0) ∧ |
| 73 | ∀ i : Fin 2, Tendsto (fun j => ∫ p in K, |
| 74 | ‖fderiv ℝ (f j) p (EuclideanSpace.single i 1) - V i p‖ ^ 2) atTop (𝓝 0) := by |
| 75 | obtain ⟨delta, hdelta, hbuffer⟩ := hK.exists_cthickening_subset_open hO hKO |
| 76 | let U := O.indicator u |
| 77 | let W := fun i => O.indicator (V i) |
| 78 | have hU : MemLp U 2 volume := (memLp_indicator_iff_restrict hO.measurableSet).mpr hu |
| 79 | have hW (i : Fin 2) : MemLp (W i) 2 volume := |
| 80 | (memLp_indicator_iff_restrict hO.measurableSet).mpr (hV i) |
| 81 | let r := fun j : ℕ => delta * (1 / 2 : ℝ) ^ (j + 1) |
| 82 | have hr (j : ℕ) : 0 < r j := mul_pos hdelta (pow_pos (by norm_num) _) |
| 83 | have hrb (j : ℕ) : r j ≤ delta := mul_le_of_le_one_right hdelta.le |
| 84 | (pow_le_one₀ (by norm_num : (0 : ℝ) ≤ 1 / 2) (by norm_num)) |
| 85 | have hrz : Tendsto r atTop (𝓝 0) := by |
| 86 | simpa only [r, pow_succ, mul_zero, zero_mul] using |
| 87 | ((tendsto_pow_atTop_nhds_zero_of_lt_one (by norm_num : (0 : ℝ) ≤ 1 / 2) |
| 88 | (by norm_num : (1 / 2 : ℝ) < 1)).mul_const (1 / 2)).const_mul delta |
| 89 | let f := fun j => mollifierEps (hr j) ⋆[lsmul ℝ ℝ, volume] U |
| 90 | let D := fun j i => mollifierEps (hr j) ⋆[lsmul ℝ ℝ, volume] W i |
| 91 | have hf (j : ℕ) : ContDiff ℝ ∞ (f j) := |
| 92 | (mollifierEps_compactSupport (hr j)).contDiff_convolution_left (lsmul ℝ ℝ) |
| 93 | (mollifierEps_smooth (hr j)) (hU.locallyIntegrable (by norm_num)) |
| 94 | have hD (j : ℕ) (i : Fin 2) : ContDiff ℝ ∞ (D j i) := |
| 95 | (mollifierEps_compactSupport (hr j)).contDiff_convolution_left (lsmul ℝ ℝ) |
| 96 | (mollifierEps_smooth (hr j)) ((hW i).locallyIntegrable (by norm_num)) |
| 97 | have hdf (j : ℕ) (i : Fin 2) (p : Plane) (hp : p ∈ K) : |
| 98 | fderiv ℝ (f j) p (EuclideanSpace.single i 1) = D j i p := by |
| 99 | apply suWeak_convolution_fderiv hO.measurableSet (hw i) |
| 100 | (hU.locallyIntegrable (by norm_num)) ((hW i).locallyIntegrable (by norm_num)) |
| 101 | (mollifierEps_smooth (hr j)) (mollifierEps_compactSupport (hr j)) |
| 102 | rw [suMollifier_translated_tsupport] |
| 103 | intro q hq |
| 104 | exact hbuffer (Metric.mem_cthickening_of_dist_le q p delta K hp |
| 105 | ((Metric.mem_closedBall.mp hq).trans (hrb j))) |
| 106 | have hfl (j : ℕ) : MemLp (f j) 2 (volume.restrict K) := by |
| 107 | apply (memLp_two_iff_integrable_sq_norm (hf j).continuous.aestronglyMeasurable).mpr |
| 108 | exact ((hf j).continuous.norm.pow 2).continuousOn.integrableOn_compact hK |
| 109 | have hDl (j : ℕ) (i : Fin 2) : MemLp (D j i) 2 (volume.restrict K) := by |
| 110 | apply (memLp_two_iff_integrable_sq_norm (hD j i).continuous.aestronglyMeasurable).mpr |
| 111 | exact ((hD j i).continuous.norm.pow 2).continuousOn.integrableOn_compact hK |
| 112 | have hval : Tendsto (fun j => eLpNorm (f j - u) 2 (volume.restrict K)) atTop (𝓝 0) := |
| 113 | restrict_approximation hK.measurableSet (fun p hp => indicator_of_mem (hKO hp) u) |
| 114 | (suVectorMollifier_Lp_tendsto (by norm_num) (by norm_num) hU hr hrz) |
| 115 | have hcol (i : Fin 2) : Tendsto (fun j => eLpNorm (D j i - V i) 2 (volume.restrict K)) |
| 116 | atTop (𝓝 0) := |
| 117 | restrict_approximation hK.measurableSet (fun p hp => indicator_of_mem (hKO hp) (V i)) |
| 118 | (suVectorMollifier_Lp_tendsto (by norm_num) (by norm_num) (hW i) hr hrz) |
| 119 | refine ⟨f, hf, integral_square_tendsto hfl |
| 120 | (hu.mono_measure (Measure.restrict_mono hKO le_rfl)) hval, ?_⟩ |
| 121 | intro i |
| 122 | have hlim := integral_square_tendsto (fun j => hDl j i) |
| 123 | ((hV i).mono_measure (Measure.restrict_mono hKO le_rfl)) (hcol i) |
| 124 | have heq (j : ℕ) : (∫ p in K, |
| 125 | ‖fderiv ℝ (f j) p (EuclideanSpace.single i 1) - V i p‖ ^ 2) = |
| 126 | ∫ p in K, ‖D j i p - V i p‖ ^ 2 := by |
| 127 | apply setIntegral_congr_fun hK.measurableSet |
| 128 | intro p hp |
| 129 | exact congrArg (fun z : E => ‖z - V i p‖ ^ 2) (hdf j i p hp) |
| 130 | simpa only [heq] using hlim |
| 131 | |
| 132 | end PoincareMT |