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.Stabilization.Free.PhaseConfinement |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Free.WeakPhaseMinimum |
| 3 | |
| 4 | /-! Genuine free weak attainment over every positive modulus. |
| 5 | The seam and boundary energy bounds produce the compact interval inside |
| 6 | the proof. Its endpoints cannot contain a bounded-energy minimizer. |
| 7 | |
| 8 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 9 | 447-449. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open Set MeasureTheory Topology |
| 18 | open scoped ContDiff Manifold |
| 19 | |
| 20 | namespace PoincareMT.M64FreeWeakPhaseAnnulus |
| 21 | |
| 22 | variable {n m : ℕ} {M : Type*} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 24 | [CompactSpace M] [T2Space M] |
| 25 | |
| 26 | local notation "E" => EuclideanSpace ℝ (Fin m) |
| 27 | |
| 28 | /-- The compact-interval minimizer is an actual minimum over every positive modulus by the |
| 29 | proved energy confinement. Source: MT Lemma 19.15, pp. 447-449; M64 derivation |
| 30 | `2026-09-25-free-label-compactness.md`. -/ |
| 31 | theorem weightedEnergy_attained_positive |
| 32 | (e : M → E) (he : ContMDiff (𝓡 n) (𝓡 m) 1 e) (hei : IsClosedEmbedding e) |
| 33 | (hread : M60.SUChartReadable (n := n) e) |
| 34 | (R : E →L[ℝ] LoopPlane) (c0 c1 : ℝ → M) (hc0 : Continuous c0) (hc1 : Continuous c1) |
| 35 | (H0 H1 : ℝ ≃o ℝ) {frequency D : ℝ} (hf : frequency ≠ 0) (hD : D ≠ 0) |
| 36 | (hH0 : ∀ x, H0 (x + curvePeriod) = H0 x + D) |
| 37 | (hH1 : ∀ x, H1 (x + curvePeriod) = H1 x + D) |
| 38 | (T : E →L[ℝ] ℝ) {v0 v1 : ℝ} (hne : v0 ≠ v1) |
| 39 | (h0 : ∀ x, T (e (c0 x)) = v0) (h1 : ∀ x, T (e (c1 x)) = v1) |
| 40 | (B : M → E →L[ℝ] E →L[ℝ] ℝ) (hB : Continuous B) |
| 41 | {K : ℝ} (hK : 0 ≤ K) (hb : ∀ q, ‖B q‖ ≤ K) |
| 42 | (hpos : ∀ q v, 0 ≤ B q v v) (hsymm : ∀ q v w, B q v w = B q w v) |
| 43 | {C : ℝ} (hC : 0 ≤ C) |
| 44 | (hcoercive : ∀ (q : M) (v : E), v ∈ range (mfderiv (𝓡 n) (𝓡 m) e q) → |
| 45 | ‖v‖ ^ 2 ≤ C * B q v v) |
| 46 | (A0 : M64FreeWeakPhaseAnnulus (n := n) e R c0 c1 H0 H1 frequency D) : |
| 47 | ∃ r : ℝ, 0 < r ∧ |
| 48 | ∃ L : M64FreeWeakPhaseAnnulus (n := n) e R c0 c1 H0 H1 frequency D, |
| 49 | ∀ s : ℝ, 0 < s → |
| 50 | ∀ A : M64FreeWeakPhaseAnnulus (n := n) e R c0 c1 H0 H1 frequency D, |
| 51 | L.annulus.weightedEnergy B r ≤ A.annulus.weightedEnergy B s := by |
| 52 | let cap := A0.annulus.weightedEnergy B 1 + 1 |
| 53 | have hcap : 0 < cap := by |
| 54 | have hn := A0.annulus.weightedEnergy_nonneg B hpos zero_le_one |
| 55 | dsimp only [cap] |
| 56 | linarith |
| 57 | obtain ⟨lo, hi, hlo, hlohi, hconfined⟩ := |
| 58 | exists_strict_modulus_interval (R := R) hf hD hH0 hH1 |
| 59 | (he.continuous.comp hc0) (he.continuous.comp hc1) T hne h0 h1 |
| 60 | B hB hei.isEmbedding hb hpos hcoercive hcap |
| 61 | have hseed : A0.annulus.weightedEnergy B 1 ≤ cap := by |
| 62 | dsimp only [cap] |
| 63 | linarith |
| 64 | have hone := hconfined A0 1 one_pos hseed |
| 65 | obtain ⟨r, hr, L, hminimum⟩ := weightedEnergy_attained e he hei hread |
| 66 | R c0 c1 hc0 hc1 H0 H1 hf hH0 hH1 B hB hK hb hpos hsymm hC hcoercive |
| 67 | hlo hlohi.le A0 |
| 68 | have hrpos : 0 < r := hlo.trans_le hr.1 |
| 69 | have hbelow : L.annulus.weightedEnergy B r ≤ cap := |
| 70 | (hminimum 1 ⟨hone.1.le, hone.2.le⟩ A0).trans hseed |
| 71 | have hinterior := hconfined L r hrpos hbelow |
| 72 | refine ⟨r, hlo.trans hinterior.1, L, ?_⟩ |
| 73 | intro s hs A |
| 74 | by_cases hA : A.annulus.weightedEnergy B s ≤ cap |
| 75 | · have hsI := hconfined A s hs hA |
| 76 | exact hminimum s ⟨hsI.1.le, hsI.2.le⟩ A |
| 77 | · exact hbelow.trans (lt_of_not_ge hA).le |
| 78 | |
| 79 | end PoincareMT.M64FreeWeakPhaseAnnulus |