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.Retained.Circle |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Weighted.AnnulusEnergyIdentity |
| 3 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Free.ModulusReduction |
| 4 | |
| 5 | /-! |
| 6 | # Weighted energy decreases under the actual auxiliary projection |
| 7 | |
| 8 | Each projected Gram diagonal is bounded by the corresponding product |
| 9 | diagonal. This gives the same-modulus weighted-energy comparison for |
| 10 | actual admissible annuli, retaining the old circle for winding estimates. |
| 11 | |
| 12 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 13 | 447-449. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | noncomputable section |
| 20 | |
| 21 | open Set Filter MeasureTheory Bundle |
| 22 | open scoped Topology Manifold ContDiff |
| 23 | |
| 24 | namespace PoincareMT.M64 |
| 25 | |
| 26 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 28 | {a b : ℝ} {F : RicciFlow n M (Icc a b)} {circumference : ℝ} |
| 29 | |
| 30 | /-- Projection to the base decreases each actual diagonal Gram entry. Proof expansion for |
| 31 | Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 32 | theorem auxiliaryCircle_projected_gram_diagonal_le |
| 33 | (P : M62.CircleProductData F circumference) (time : ℝ) |
| 34 | (f : LoopPlane → P.charts.Point) (z : LoopPlane) |
| 35 | (hf : MDifferentiableAt (𝓡 2) (𝓡 (n + 1)) f z) (i : Fin 2) : |
| 36 | m60AreaGram (F.metric time) (fun p => (f p).1) z i i ≤ |
| 37 | m60AreaGram (P.flow.metric time) f z i i := by |
| 38 | let := P.charts.chartedSpace |
| 39 | have hfst : ContMDiff (𝓡 (n + 1)) (𝓡 n) ∞ |
| 40 | (Prod.fst : P.charts.Point → M) := |
| 41 | contMDiff_fst.comp P.charts.to_product_smooth |
| 42 | have hcomp : mfderiv (𝓡 2) (𝓡 n) (fun p => (f p).1) z |
| 43 | (EuclideanSpace.basisFun (Fin 2) ℝ i) = |
| 44 | (P.charts.split (f z) (mfderiv (𝓡 2) (𝓡 (n + 1)) f z |
| 45 | (EuclideanSpace.basisFun (Fin 2) ℝ i))).1 := by |
| 46 | rw [P.charts.split_space] |
| 47 | exact mfderiv_comp_apply (f := f) (g := (Prod.fst : P.charts.Point → M)) z |
| 48 | (hfst.mdifferentiableAt (by simp)) hf (EuclideanSpace.basisFun (Fin 2) ℝ i) |
| 49 | dsimp only [m60AreaGram] |
| 50 | erw [hcomp] |
| 51 | rw [P.metric_eq] |
| 52 | exact le_add_of_nonneg_right |
| 53 | ((P.circle.metricOnPoints.toRiemannianMetric.toCore (f z).2).re_inner_nonneg _) |
| 54 | |
| 55 | /-- Construct the projected admissible annulus with no greater positive-modulus weighted |
| 56 | energy. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 57 | theorem auxiliaryCircle_projected_weightedEnergy [T2Space M] [CompactSpace M] |
| 58 | (P : M62.CircleProductData F circumference) (time : ℝ) |
| 59 | {c0 c1 : ℝ → P.charts.Point} (A : M64Annulus (P.flow.metric time) c0 c1) |
| 60 | {r : ℝ} (hr : 0 < r) : |
| 61 | ∃ D : M64Annulus (F.metric time) (fun x => (c0 x).1) (fun x => (c1 x).1), |
| 62 | D.map = (fun p => (A.map p).1) ∧ |
| 63 | m64ClassicalWeightedGramEnergy (F.metric time) D r ≤ |
| 64 | m64ClassicalWeightedGramEnergy (P.flow.metric time) A r := by |
| 65 | let : Fact (0 < circumference) := ⟨P.circle.positive⟩ |
| 66 | obtain ⟨-, D, hmap, -, -, -⟩ := m64ProjectedAnnulus_of_annulus P time c0 c1 A |
| 67 | refine ⟨D, hmap, ?_⟩ |
| 68 | apply integral_mono_ae (D.weightedGramEnergy_integrable r) (A.weightedGramEnergy_integrable r) |
| 69 | filter_upwards [ae_restrict_mem m64AnnulusDomain_measurableSet, |
| 70 | ae_restrict_of_ae A.ae_manifold_differentiable] with z hz hdiff |
| 71 | rw [hmap] |
| 72 | have h0 := auxiliaryCircle_projected_gram_diagonal_le P time A.map z (hdiff hz) 0 |
| 73 | have h1 := auxiliaryCircle_projected_gram_diagonal_le P time A.map z (hdiff hz) 1 |
| 74 | exact div_le_div_of_nonneg_right |
| 75 | (add_le_add (mul_le_mul_of_nonneg_left h0 hr.le) |
| 76 | (mul_le_mul_of_nonneg_left h1 (inv_pos.mpr hr).le)) (by norm_num) |
| 77 | |
| 78 | end PoincareMT.M64 |