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.ConeWeakExtraction |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Observed.TangentProjection |
| 3 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Moving.KernelWeakClosure |
| 4 | import PoincareLib.Geometry.Riemannian.MinimalSurface.Sphere.AlphaEnergy.Variation.Energy |
| 5 | |
| 6 | /-! |
| 7 | # Actual weak target disks from continuous cone limits |
| 8 | |
| 9 | The smooth disk energies bound the observed columns. The fixed continuous |
| 10 | target limit retains their distribution derivatives and actual tangent |
| 11 | ranges, and each column's L2 norm has the limiting energy bound. |
| 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 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | noncomputable section |
| 21 | |
| 22 | open Set Filter MeasureTheory Metric |
| 23 | open scoped Topology Manifold ContDiff ENNReal |
| 24 | |
| 25 | namespace PoincareMT |
| 26 | |
| 27 | open Poincare.Analysis.Sobolev.Weak Poincare.Analysis.Sobolev.WeakCompactness |
| 28 | |
| 29 | variable {n m : ℕ} {M : Type*} [TopologicalSpace M] |
| 30 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 31 | [CompactSpace M] [T2Space M] |
| 32 | |
| 33 | local notation "E" => EuclideanSpace ℝ (Fin m) |
| 34 | local notation "S" => ball (0 : LoopPlane) 1 |
| 35 | local notation "mu" => volume.restrict S |
| 36 | |
| 37 | /-- Energy-bounded classical disks converging to a continuous target map produce its actual |
| 38 | weak tangent columns. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 39 | theorem m64ContinuousDisk_observed_weak_columns |
| 40 | (g : RiemannianMetric n M) (e : M → E) (he : ContMDiff (𝓡 n) (𝓡 m) 1 e) |
| 41 | (hread : M60.SUChartReadable (n := n) e) : |
| 42 | ∃ Q : ℝ, 0 ≤ Q ∧ ∀ (f : ℕ → LoopPlane → M), |
| 43 | (∀ j, ContMDiff (𝓡 2) (𝓡 n) 1 (f j)) → ∀ F : LoopPlane → M, |
| 44 | Continuous F → (∀ p, Tendsto (fun j => f j p) atTop (𝓝 (F p))) → |
| 45 | ∀ (b : ℕ → ℝ) (B : ℝ), Tendsto b atTop (𝓝 B) → |
| 46 | (∀ j, (∫ p in loopDiskSet, m60EnergyDensity g (f j) p) ≤ b j) → |
| 47 | let u := fun j => e ∘ f j |
| 48 | let D := fun j i p => fderiv ℝ (u j) p (EuclideanSpace.single i 1) |
| 49 | ∃ (hu : ∀ j, MemLp (u j) 2 mu) (hF : MemLp (e ∘ F) 2 mu) |
| 50 | (hD : ∀ j i, MemLp (D j i) 2 mu) (k : ℕ → ℕ) (W : Fin 2 → Lp E 2 mu), |
| 51 | StrictMono k ∧ |
| 52 | Tendsto (fun j => (hu (k j)).toLp (u (k j))) atTop (𝓝 (hF.toLp (e ∘ F))) ∧ |
| 53 | (∀ i, WeakConverges (fun j => (hD (k j) i).toLp (D (k j) i)) (W i)) ∧ |
| 54 | (∀ i, ∀ᵐ p ∂mu, W i p ∈ range (mfderiv (𝓡 n) (𝓡 m) e (F p))) ∧ |
| 55 | (∀ i a, HasWeakPartialDeriv i (fun p => W i p a) (fun p => e (F p) a) S) ∧ |
| 56 | ∀ i, ‖W i‖ ^ 2 ≤ Q * B := by |
| 57 | obtain ⟨Q, hQ, hcolumn⟩ := M60.exists_observed_derivative_energy_bound g e he |
| 58 | refine ⟨Q, hQ, ?_⟩ |
| 59 | intro f hf F hFc hpoint b B hb henergy u D |
| 60 | let : IsFiniteMeasure mu := ⟨by |
| 61 | rw [Measure.restrict_apply_univ] |
| 62 | exact lt_of_le_of_lt (measure_mono ball_subset_closedBall) |
| 63 | (isCompact_closedBall (0 : LoopPlane) 1).measure_lt_top⟩ |
| 64 | have huc (j : ℕ) : ContDiff ℝ 1 (u j) := contMDiff_iff_contDiff.mp (he.comp (hf j)) |
| 65 | have hDc (j : ℕ) (i : Fin 2) : Continuous (D j i) := |
| 66 | ((huc j).continuous_fderiv (by simp)).clm_apply continuous_const |
| 67 | have hu (j : ℕ) : MemLp (u j) 2 mu := by |
| 68 | apply (memLp_two_iff_integrable_sq_norm (huc j).continuous.aestronglyMeasurable).mpr |
| 69 | exact ((huc j).continuous.norm.pow 2).continuousOn.integrableOn_compact |
| 70 | (isCompact_closedBall (0 : LoopPlane) 1) |>.mono_set ball_subset_closedBall |
| 71 | have hF : MemLp (e ∘ F) 2 mu := by |
| 72 | apply (memLp_two_iff_integrable_sq_norm |
| 73 | (he.continuous.comp hFc).aestronglyMeasurable).mpr |
| 74 | exact ((he.continuous.comp hFc).norm.pow 2).continuousOn.integrableOn_compact |
| 75 | (isCompact_closedBall (0 : LoopPlane) 1) |>.mono_set ball_subset_closedBall |
| 76 | have hD (j : ℕ) (i : Fin 2) : MemLp (D j i) 2 mu := by |
| 77 | apply (memLp_two_iff_integrable_sq_norm (hDc j i).aestronglyMeasurable).mpr |
| 78 | exact ((hDc j i).norm.pow 2).continuousOn.integrableOn_compact |
| 79 | (isCompact_closedBall (0 : LoopPlane) 1) |>.mono_set ball_subset_closedBall |
| 80 | have hDi (j : ℕ) (i : Fin 2) : IntegrableOn (fun p => ‖D j i p‖ ^ 2) S volume := |
| 81 | (memLp_two_iff_integrable_sq_norm (hDc j i).aestronglyMeasurable).mp (hD j i) |
| 82 | have hcolint (j : ℕ) (i : Fin 2) : (∫ p in S, ‖D j i p‖ ^ 2) ≤ Q * b j := by |
| 83 | have hEi : IntegrableOn (m60EnergyDensity g (f j)) loopDiskSet volume := |
| 84 | (m60EnergyDensity_continuous g (hf j)).continuousOn.integrableOn_compact |
| 85 | (isCompact_closedBall (0 : LoopPlane) 1) |
| 86 | calc |
| 87 | _ ≤ ∫ p in S, Q * m60EnergyDensity g (f j) p := by |
| 88 | apply integral_mono (hDi j i) ((hEi.mono_set ball_subset_closedBall).const_mul Q) |
| 89 | intro p |
| 90 | simpa only [D, u, EuclideanSpace.basisFun_apply] using hcolumn (f j) (hf j) p i |
| 91 | _ = Q * ∫ p in S, m60EnergyDensity g (f j) p := integral_const_mul _ _ |
| 92 | _ ≤ Q * ∫ p in loopDiskSet, m60EnergyDensity g (f j) p := |
| 93 | mul_le_mul_of_nonneg_left (setIntegral_mono_set hEi |
| 94 | (Eventually.of_forall (m60EnergyDensity_nonneg g (f j))) |
| 95 | (Eventually.of_forall fun p hp => ball_subset_closedBall hp)) hQ |
| 96 | _ ≤ Q * b j := mul_le_mul_of_nonneg_left (henergy j) hQ |
| 97 | obtain ⟨R, hR⟩ := hb.cauchySeq.isBounded_range.exists_norm_le |
| 98 | have hbR (j : ℕ) : b j ≤ max R 0 := |
| 99 | (le_abs_self _).trans ((hR _ (mem_range_self j)).trans (le_max_left _ _)) |
| 100 | obtain ⟨k, W, hk, hweak⟩ := m64Plane_two_columns_subsequence D hD |
| 101 | (fun j i => (hcolint j i).trans (mul_le_mul_of_nonneg_left (hbR j) hQ)) |
| 102 | obtain ⟨A, hA⟩ := (isCompact_range he.continuous).isBounded.exists_norm_le |
| 103 | have hvalbound (j : ℕ) (p : LoopPlane) : ‖u j p‖ ≤ max A 0 := |
| 104 | (hA _ (mem_range_self (f j p))).trans (le_max_left _ _) |
| 105 | have hstrong := m64Bounded_pointwise_l2_tendsto u (e ∘ F) hu hF |
| 106 | (le_max_right A 0) hvalbound (Eventually.of_forall fun p => |
| 107 | (he.continuous.tendsto (F p)).comp (hpoint p)) |
| 108 | have hstrongk := hstrong.comp hk.tendsto_atTop |
| 109 | have hvalueweak : WeakConverges (fun j => (hu (k j)).toLp (u (k j))) (hF.toLp (e ∘ F)) := |
| 110 | fun L => (L.continuous.tendsto _).comp hstrongk |
| 111 | have htangent (j : ℕ) (i : Fin 2) (p : LoopPlane) : |
| 112 | D j i p ∈ range (mfderiv (𝓡 n) (𝓡 m) e (f j p)) := by |
| 113 | refine ⟨mfderiv (𝓡 2) (𝓡 n) (f j) p (EuclideanSpace.single i 1), ?_⟩ |
| 114 | have hc := mfderiv_comp p (he.mdifferentiable (by simp) _) |
| 115 | ((hf j).mdifferentiable (by simp) _) |
| 116 | have hd := congrArg (fun L => L (EuclideanSpace.single i 1)) hc |
| 117 | rw [mfderiv_eq_fderiv] at hd |
| 118 | exact hd.symm |
| 119 | refine ⟨hu, hF, hD, k, W, hk, hstrongk, hweak, ?_, ?_, ?_⟩ |
| 120 | · intro i |
| 121 | obtain ⟨P, K, hP, hK, hPbound, hfix, hrange⟩ := |
| 122 | m64ChartReadable_tangent_projection e he hread |
| 123 | let Rj := fun j p => ContinuousLinearMap.id ℝ E - P (f (k j) p) |
| 124 | let R0 := fun p => ContinuousLinearMap.id ℝ E - P (F p) |
| 125 | have hRj (j : ℕ) : AEStronglyMeasurable (Rj j) mu := |
| 126 | (continuous_const.sub (hP.comp (hf (k j)).continuous)).aestronglyMeasurable |
| 127 | have hRb (j : ℕ) : ∀ᵐ p ∂mu, ‖Rj j p‖ ≤ 1 + K := Eventually.of_forall fun p => |
| 128 | (norm_sub_le _ _).trans (add_le_add ContinuousLinearMap.norm_id_le (hPbound _)) |
| 129 | have hRlim : ∀ᵐ p ∂mu, Tendsto (fun j => Rj j p) atTop (𝓝 (R0 p)) := |
| 130 | Eventually.of_forall fun p => tendsto_const_nhds.sub |
| 131 | ((hP.tendsto (F p)).comp ((hpoint p).comp hk.tendsto_atTop)) |
| 132 | have hz (j : ℕ) : ∀ᵐ p ∂mu, Rj j p ((hD (k j) i).toLp (D (k j) i) p) = 0 := by |
| 133 | filter_upwards [(hD (k j) i).coeFn_toLp] with p hp |
| 134 | rw [hp] |
| 135 | obtain ⟨v, hv⟩ := htangent (k j) i p |
| 136 | change D (k j) i p - P (f (k j) p) (D (k j) i p) = 0 |
| 137 | rw [← hv, hfix, sub_self] |
| 138 | have hzlim := m64MovingKernel_weak_closed Rj R0 hRj (by positivity : 0 ≤ 1 + K) |
| 139 | hRb hRlim (hweak i) hz |
| 140 | filter_upwards [hzlim] with p hp |
| 141 | change W i p - P (F p) (W i p) = 0 at hp |
| 142 | have hfixed : P (F p) (W i p) = W i p := (sub_eq_zero.mp hp).symm |
| 143 | simpa only [hfixed] using hrange (F p) (W i p) |
| 144 | · intro i a |
| 145 | have hseq (j : ℕ) : HasWeakPartialDeriv i |
| 146 | (fun p => (hD (k j) i).toLp (D (k j) i) p a) |
| 147 | (fun p => (hu (k j)).toLp (u (k j)) p a) S := |
| 148 | m64WeakPartialDeriv_ae_congr |
| 149 | ((hu (k j)).coeFn_toLp.symm.mono fun p hp => congrArg (fun v : E => v a) hp) |
| 150 | ((hD (k j) i).coeFn_toLp.symm.mono fun p hp => congrArg (fun v : E => v a) hp) |
| 151 | (m64Plane_c1_weak_partial isOpen_ball (huc (k j)) i a) |
| 152 | exact m64WeakPartialDeriv_ae_congr |
| 153 | (hF.coeFn_toLp.mono fun p hp => congrArg (fun v : E => v a) hp) |
| 154 | EventuallyEq.rfl (m64Plane_weak_partial_closed hvalueweak (hweak i) i a hseq) |
| 155 | · intro i |
| 156 | apply m64Weak_limit_norm_sq_le (hweak i) ((hb.comp hk.tendsto_atTop).const_mul Q) |
| 157 | intro j |
| 158 | calc |
| 159 | _ = ∫ p in S, ‖D (k j) i p‖ ^ 2 := by |
| 160 | rw [← real_inner_self_eq_norm_sq, L2.inner_def] |
| 161 | simp only [real_inner_self_eq_norm_sq] |
| 162 | exact integral_congr_ae ((hD (k j) i).coeFn_toLp.mono fun p hp => |
| 163 | congrArg (fun v : E => ‖v‖ ^ 2) hp) |
| 164 | _ ≤ Q * b (k j) := hcolint (k j) i |
| 165 | |
| 166 | end PoincareMT |