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.Projected.WeightedEnergy |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Free.ModulusPhaseEnergy |
| 3 | |
| 4 | /-! |
| 5 | # Winding bounds from the original ramp circle |
| 6 | |
| 7 | Projection of an actual stabilized annulus retains the original ramp |
| 8 | boundary. Its weighted energy decreases, so the original positive circle |
| 9 | degree gives the upper modulus bound in the twice enlarged target. |
| 10 | |
| 11 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 12 | 447-449. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | noncomputable section |
| 19 | |
| 20 | open Set MeasureTheory |
| 21 | open scoped Topology Manifold ContDiff Bundle |
| 22 | |
| 23 | namespace PoincareMT.M64 |
| 24 | |
| 25 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] [T2Space M] [CompactSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 27 | {a b : ℝ} {F : RicciFlow n M (Icc a b)} {circumference auxiliary : ℝ} |
| 28 | |
| 29 | local notation "Strip" => preimage (fun p : LoopPlane => p 1) (Ioo (0 : ℝ) 1) |
| 30 | |
| 31 | /-- Retain the original positive winding lower bound for stabilized weighted energy. Proof |
| 32 | expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 33 | theorem auxiliaryCircle_free_annulus_weighted_energy_ge_original_winding |
| 34 | (P : M62.CircleProductData F circumference) |
| 35 | (Q : M62.CircleProductData P.flow auxiliary) (time : ℝ) |
| 36 | (gamma : ℝ → P.charts.Point) |
| 37 | (hgamma : ContMDiff 𝓘(ℝ, ℝ) (𝓡 (n + 1)) 2 gamma) |
| 38 | (hperiod : Function.Periodic gamma curvePeriod) (hramp : M63IsRampAt P gamma time) |
| 39 | (q : Q.circle.Point) (sigma : M64PeriodicDegreeOneLift) |
| 40 | {c1 : ℝ → Q.charts.Point} |
| 41 | (A : M64Annulus (Q.flow.metric time) |
| 42 | ((auxiliaryCircleSection Q q ∘ gamma) ∘ sigma.map) c1) |
| 43 | (hA : ContMDiffOn (𝓡 2) (𝓡 ((n + 1) + 1)) 1 A.map Strip) |
| 44 | {r : ℝ} (hr : 0 < r) : |
| 45 | r * circumference ^ 2 / (2 * curvePeriod) ≤ |
| 46 | m64ClassicalWeightedGramEnergy (Q.flow.metric time) A r := by |
| 47 | let : Fact (0 < circumference) := ⟨P.circle.positive⟩ |
| 48 | let := Q.charts.chartedSpace |
| 49 | obtain ⟨D, hmap, henergy⟩ := auxiliaryCircle_projected_weightedEnergy Q time A hr |
| 50 | have hfst : ContMDiff (𝓡 ((n + 1) + 1)) (𝓡 (n + 1)) 1 |
| 51 | (Prod.fst : Q.charts.Point → P.charts.Point) := |
| 52 | (contMDiff_fst.comp Q.charts.to_product_smooth).of_le (by simp) |
| 53 | have hD : ContMDiffOn (𝓡 2) (𝓡 (n + 1)) 1 D.map Strip := by |
| 54 | rw [hmap] |
| 55 | exact hfst.comp_contMDiffOn hA |
| 56 | exact (free_ramp_annulus_weighted_energy_ge_winding P time gamma hgamma hperiod |
| 57 | hramp sigma D hD hr (D.weightedGramEnergy_integrable r)).trans henergy |
| 58 | |
| 59 | /-- Bound the stabilized modulus above using the retained original winding. Proof expansion |
| 60 | for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 61 | theorem auxiliaryCircle_free_annulus_modulus_le_original_winding |
| 62 | (P : M62.CircleProductData F circumference) |
| 63 | (Q : M62.CircleProductData P.flow auxiliary) (time : ℝ) |
| 64 | (gamma : ℝ → P.charts.Point) |
| 65 | (hgamma : ContMDiff 𝓘(ℝ, ℝ) (𝓡 (n + 1)) 2 gamma) |
| 66 | (hperiod : Function.Periodic gamma curvePeriod) (hramp : M63IsRampAt P gamma time) |
| 67 | (q : Q.circle.Point) (sigma : M64PeriodicDegreeOneLift) |
| 68 | {c1 : ℝ → Q.charts.Point} |
| 69 | (A : M64Annulus (Q.flow.metric time) |
| 70 | ((auxiliaryCircleSection Q q ∘ gamma) ∘ sigma.map) c1) |
| 71 | (hA : ContMDiffOn (𝓡 2) (𝓡 ((n + 1) + 1)) 1 A.map Strip) |
| 72 | {r E : ℝ} (hr : 0 < r) |
| 73 | (hbound : m64ClassicalWeightedGramEnergy (Q.flow.metric time) A r ≤ E) : |
| 74 | r ≤ (2 * curvePeriod * E) / circumference ^ 2 := by |
| 75 | have hh := (auxiliaryCircle_free_annulus_weighted_energy_ge_original_winding P Q time |
| 76 | gamma hgamma hperiod hramp q sigma A hA hr).trans hbound |
| 77 | have hP : 0 < 2 * curvePeriod := by unfold curvePeriod; positivity |
| 78 | have hi := (div_le_iff₀ hP).mp hh |
| 79 | apply (le_div_iff₀ (sq_pos_of_pos P.circle.positive)).mpr |
| 80 | nlinarith |
| 81 | |
| 82 | end PoincareMT.M64 |