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.Weak.AnnulusClass |
| 2 | |
| 3 | /-! Coercivity transfers the original metric energy to the sum of the |
| 4 | actual weak column squares on any subset of the original open annulus. |
| 5 | Source: the observed-metric construction and Morrey energy estimates. |
| 6 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 7 | 447-449. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | set_option autoImplicit false |
| 12 | set_option warningAsError true |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set Filter MeasureTheory Topology |
| 16 | open scoped Manifold |
| 17 | |
| 18 | namespace PoincareMT.M64ObservedWeakAnnulus |
| 19 | |
| 20 | variable {n m : ℕ} {M : Type*} [TopologicalSpace M] |
| 21 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 22 | {e : M → EuclideanSpace ℝ (Fin m)} {c0 c1 : ℝ → M} |
| 23 | |
| 24 | local notation "E" => EuclideanSpace ℝ (Fin m) |
| 25 | local notation "S" => interior m64AnnulusDomain |
| 26 | |
| 27 | /-- Both weak columns are controlled on the same original subset; all integrability and |
| 28 | tangent constraints come from the weak annulus. Proof expansion for Morgan-Tian (2007), |
| 29 | Lemma 19.15, pp. 447-449. -/ |
| 30 | theorem column_sum_energy_le_on (A : M64ObservedWeakAnnulus (n := n) e c0 c1) |
| 31 | (B : M → E →L[ℝ] E →L[ℝ] ℝ) (hB : Continuous B) (hei : IsEmbedding e) |
| 32 | {bound C : ℝ} (hb : ∀ q, ‖B q‖ ≤ bound) |
| 33 | (hcoercive : ∀ (q : M) (v : E), v ∈ range (mfderiv (𝓡 n) (𝓡 m) e q) → |
| 34 | ‖v‖ ^ 2 ≤ C * B q v v) {K : Set LoopPlane} (hK : K ⊆ S) : |
| 35 | (∫ p in K, ∑ i : Fin 2, ‖A.column i p‖ ^ 2) ≤ |
| 36 | 2 * C * ∫ p in K, |
| 37 | (B (A.map p) (A.column 0 p) (A.column 0 p) + |
| 38 | B (A.map p) (A.column 1 p) (A.column 1 p)) / 2 := by |
| 39 | have hcol : IntegrableOn (fun p => ∑ i : Fin 2, ‖A.column i p‖ ^ 2) S := |
| 40 | integrable_finsetSum _ (fun i _ => (Lp.memLp (A.column i)).norm.integrable_sq) |
| 41 | have hEi := (A.energy_integrable B hB hei hb).mono_set hK |
| 42 | rw [← integral_const_mul] |
| 43 | apply integral_mono_ae (hcol.mono_set hK) (hEi.const_mul _) |
| 44 | filter_upwards [ae_restrict_of_ae_restrict_of_subset hK (A.tangent 0), |
| 45 | ae_restrict_of_ae_restrict_of_subset hK (A.tangent 1)] with p h0 h1 |
| 46 | have hsum := add_le_add (hcoercive (A.map p) (A.column 0 p) h0) |
| 47 | (hcoercive (A.map p) (A.column 1 p) h1) |
| 48 | simp only [Fin.sum_univ_two] |
| 49 | nlinarith |
| 50 | |
| 51 | end PoincareMT.M64ObservedWeakAnnulus |