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.ModulusGrowth |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Variable.ModulusMinimizer |
| 3 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Weak.Representative |
| 4 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Morrey.LocalRepresentative |
| 5 | |
| 6 | /-! |
| 7 | # Actual interior continuity of the weighted annular minimizer |
| 8 | |
| 9 | Weighted disk replacement yields genuine column power growth. Morrey |
| 10 | averaging and closed-target lifting construct an interior-continuous |
| 11 | representative preserving all weak traces, columns, and weighted energies. |
| 12 | Applying this to the actual compact-interval minimizer preserves its joint |
| 13 | least property. |
| 14 | |
| 15 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 16 | 447-449. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | |
| 21 | noncomputable section |
| 22 | |
| 23 | open Set Filter MeasureTheory Topology |
| 24 | open scoped Topology Manifold ContDiff |
| 25 | |
| 26 | namespace PoincareMT |
| 27 | |
| 28 | variable {n m : ℕ} {M : Type*} [TopologicalSpace M] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 30 | {e : M → EuclideanSpace ℝ (Fin m)} {c0 c1 : ℝ → M} |
| 31 | |
| 32 | local notation "E" => EuclideanSpace ℝ (Fin m) |
| 33 | local notation "S" => interior m64AnnulusDomain |
| 34 | local notation "mu" => volume.restrict S |
| 35 | |
| 36 | /-- Changing only the almost-everywhere representative preserves the literal weighted energy |
| 37 | for every metric and every modulus. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. |
| 38 | 447-449. -/ |
| 39 | theorem M64ObservedWeakAnnulus.weightedEnergy_eq_of_map_ae |
| 40 | (A W : M64ObservedWeakAnnulus (n := n) e c0 c1) |
| 41 | (hmap : W.map =ᵐ[mu] A.map) (hcol : W.column = A.column) |
| 42 | (Q : M → E →L[ℝ] E →L[ℝ] ℝ) (r : ℝ) : |
| 43 | W.weightedEnergy Q r = A.weightedEnergy Q r := by |
| 44 | unfold M64ObservedWeakAnnulus.weightedEnergy |
| 45 | rw [hcol] |
| 46 | apply integral_congr_ae |
| 47 | filter_upwards [hmap] with p hp |
| 48 | rw [hp] |
| 49 | |
| 50 | variable [IsManifold (𝓡 n) ∞ M] [CompactSpace M] [T2Space M] |
| 51 | |
| 52 | /-- An actual positive-modulus minimizer has an interior-continuous representative with the |
| 53 | same weak columns and all weighted energies. Proof expansion for Morgan-Tian (2007), Lemma |
| 54 | 19.15, pp. 447-449. -/ |
| 55 | theorem M64ObservedWeakAnnulus.weighted_continuous_representative |
| 56 | (A : M64ObservedWeakAnnulus (n := n) e c0 c1) |
| 57 | (g : RiemannianMetric n M) (he : ContMDiff (𝓡 n) (𝓡 m) 1 e) |
| 58 | (hei : IsClosedEmbedding e) (hread : M60.SUChartReadable (n := n) e) |
| 59 | (Q : M → E →L[ℝ] E →L[ℝ] ℝ) (hQ : Continuous Q) (hpos : ∀ q v, 0 ≤ Q q v v) |
| 60 | {C : ℝ} (hC : 0 ≤ C) |
| 61 | (hcoercive : ∀ (q : M) (v : E), v ∈ range (mfderiv (𝓡 n) (𝓡 m) e q) → |
| 62 | ‖v‖ ^ 2 ≤ C * Q q v v) {modulus : ℝ} (hmodulus : 0 < modulus) |
| 63 | (hmin : ∀ W : M64ObservedWeakAnnulus (n := n) e c0 c1, |
| 64 | A.weightedEnergy Q modulus ≤ W.weightedEnergy Q modulus) : |
| 65 | ∃ W : M64ObservedWeakAnnulus (n := n) e c0 c1, |
| 66 | ContinuousOn W.map S ∧ W.map =ᵐ[mu] A.map ∧ W.column = A.column ∧ |
| 67 | (∀ (B : M → E →L[ℝ] E →L[ℝ] ℝ) (r : ℝ), |
| 68 | W.weightedEnergy B r = A.weightedEnergy B r) ∧ |
| 69 | ∀ V : M64ObservedWeakAnnulus (n := n) e c0 c1, |
| 70 | W.weightedEnergy Q modulus ≤ V.weightedEnergy Q modulus := by |
| 71 | have hgrowth (a : LoopPlane) (ha : a ∈ S) := A.weighted_local_column_power_growth |
| 72 | g he hei hread Q hQ hpos hC hcoercive hmodulus hmin a ha |
| 73 | obtain ⟨U, hU, hUae⟩ := m64Morrey_local_representative A.observed_memLp |
| 74 | (fun i => Lp.memLp (A.column i)) A.weak_partial (by |
| 75 | intro a ha |
| 76 | obtain ⟨rho, hrho, hsub, K, hK, beta, hbeta, hg⟩ := hgrowth a ha |
| 77 | exact ⟨rho, hrho, hsub, K, hK, beta, hbeta, fun i b hb r hr => hg b hb r hr i⟩) |
| 78 | obtain ⟨F, hF, hFae, -⟩ := |
| 79 | m64ClosedEmbedding_continuous_representative hei isOpen_interior A.map U hU hUae |
| 80 | obtain ⟨W, hmap, hcolumn, -⟩ := A.with_map_ae F hFae |
| 81 | have hWae : W.map =ᵐ[mu] A.map := hmap ▸ hFae |
| 82 | have henergy := A.weightedEnergy_eq_of_map_ae W hWae hcolumn |
| 83 | refine ⟨W, hmap ▸ hF, hWae, hcolumn, henergy, ?_⟩ |
| 84 | intro V |
| 85 | rw [henergy] |
| 86 | exact hmin V |
| 87 | |
| 88 | /-- The actual joint minimizer on a compact positive modulus interval can be chosen |
| 89 | interior-continuous, with the observed metric constructed from the original intrinsic |
| 90 | geometry. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 91 | theorem m64ObservedWeakAnnulus_exists_continuous_modulus_minimizer |
| 92 | (g : RiemannianMetric n M) (e : M → E) |
| 93 | (he : ContMDiff (𝓡 n) (𝓡 m) 1 e) (hei : IsClosedEmbedding e) |
| 94 | (hread : M60.SUChartReadable (n := n) e) {c0 c1 : ℝ → M} |
| 95 | {lo hi : ℝ} (hlo : 0 < lo) (hlohi : lo ≤ hi) |
| 96 | (A0 : M64ObservedWeakAnnulus (n := n) e c0 c1) : |
| 97 | ∃ (B : M → E →L[ℝ] E →L[ℝ] ℝ) (r : ℝ), r ∈ Icc lo hi ∧ |
| 98 | ∃ L : M64ObservedWeakAnnulus (n := n) e c0 c1, |
| 99 | Continuous B ∧ (∀ q v, 0 ≤ B q v v) ∧ (∀ q v w, B q v w = B q w v) ∧ |
| 100 | (∀ (f : LoopPlane → M), ContMDiff (𝓡 2) (𝓡 n) 1 f → ∀ p i j, |
| 101 | B (f p) (fderiv ℝ (e ∘ f) p (EuclideanSpace.basisFun (Fin 2) ℝ i)) |
| 102 | (fderiv ℝ (e ∘ f) p (EuclideanSpace.basisFun (Fin 2) ℝ j)) = |
| 103 | m60AreaGram g f p i j) ∧ ContinuousOn L.map S ∧ |
| 104 | ∀ s ∈ Icc lo hi, ∀ A : M64ObservedWeakAnnulus (n := n) e c0 c1, |
| 105 | L.weightedEnergy B r ≤ A.weightedEnergy B s := by |
| 106 | obtain ⟨B, r, hr, A, hB, hpos, hsymm, hgram, hmin⟩ := |
| 107 | m64ObservedWeakAnnulus_exists_modulus_minimizer g e he hei hread hlo hlohi A0 |
| 108 | obtain ⟨C, hC, hcoercive⟩ := m64ObservedMetric_tangent_coercivity g e he B hgram |
| 109 | obtain ⟨L, hL, -, -, henergy, -⟩ := A.weighted_continuous_representative |
| 110 | g he hei hread B hB hpos hC hcoercive (hlo.trans_le hr.1) (hmin r hr) |
| 111 | refine ⟨B, r, hr, L, hB, hpos, hsymm, hgram, hL, ?_⟩ |
| 112 | intro s hs W |
| 113 | rw [henergy] |
| 114 | exact hmin s hs W |
| 115 | |
| 116 | end PoincareMT |