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.AreaComparison.Projection.Complete |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Infimum |
| 3 | |
| 4 | /-! |
| 5 | # Constant auxiliary-circle lifts |
| 6 | |
| 7 | The actual inclusion at a fixed auxiliary circle coordinate preserves |
| 8 | the retained Riemannian metric and distance. It therefore lifts every |
| 9 | admissible annulus without changing its map area or literal boundaries. |
| 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 Filter MeasureTheory Bundle |
| 21 | open scoped Topology Manifold ContDiff ENNReal |
| 22 | |
| 23 | namespace PoincareMT.M64 |
| 24 | |
| 25 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 27 | {a b : ℝ} {F : RicciFlow n M (Icc a b)} {circumference : ℝ} |
| 28 | |
| 29 | /-- Include the retained target at a fixed auxiliary circle coordinate. Proof expansion for |
| 30 | Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 31 | def auxiliaryCircleSection (P : M62.CircleProductData F circumference) |
| 32 | (q : P.circle.Point) : M → P.charts.Point := fun x => (x, q) |
| 33 | |
| 34 | /-- The constant auxiliary-circle inclusion is smooth. Proof expansion for Morgan-Tian |
| 35 | (2007), Lemma 19.15, pp. 447-449. -/ |
| 36 | theorem auxiliaryCircle_section_contMDiff |
| 37 | (P : M62.CircleProductData F circumference) (q : P.circle.Point) : |
| 38 | ContMDiff (𝓡 n) (𝓡 (n + 1)) ∞ (auxiliaryCircleSection P q) := by |
| 39 | let := P.charts.chartedSpace |
| 40 | exact P.charts.from_product_smooth.comp (contMDiff_id.prodMk contMDiff_const) |
| 41 | |
| 42 | /-- Compute the differential splitting of the constant inclusion as the base vector and |
| 43 | zero. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 44 | theorem auxiliaryCircle_section_mfderiv_split |
| 45 | (P : M62.CircleProductData F circumference) (q : P.circle.Point) |
| 46 | (x : M) (v : TangentSpace (𝓡 n) x) : |
| 47 | P.charts.split (x, q) |
| 48 | (mfderiv (𝓡 n) (𝓡 (n + 1)) (auxiliaryCircleSection P q) x v) = |
| 49 | (v, 0) := by |
| 50 | let := P.charts.chartedSpace |
| 51 | let := P.circle.chartedSpace |
| 52 | have hi := (auxiliaryCircle_section_contMDiff P q).mdifferentiable (by simp) |
| 53 | have hf : MDifferentiable (𝓡 (n + 1)) (𝓡 n) (Prod.fst : P.charts.Point → M) := |
| 54 | (contMDiff_fst.comp P.charts.to_product_smooth).mdifferentiable (by simp) |
| 55 | have hs : MDifferentiable (𝓡 (n + 1)) (𝓡 1) |
| 56 | (Prod.snd : P.charts.Point → P.circle.Point) := |
| 57 | (contMDiff_snd.comp P.charts.to_product_smooth).mdifferentiable (by simp) |
| 58 | apply Prod.ext |
| 59 | · rw [P.charts.split_space] |
| 60 | have h := mfderiv_comp_apply (f := auxiliaryCircleSection P q) |
| 61 | (g := (Prod.fst : P.charts.Point → M)) x (hf (x, q)) (hi x) v |
| 62 | have hid : (Prod.fst : P.charts.Point → M) ∘ auxiliaryCircleSection P q = id := rfl |
| 63 | rw [hid, mfderiv_id] at h |
| 64 | exact h.symm |
| 65 | · rw [P.charts.split_circle] |
| 66 | have h := mfderiv_comp_apply (f := auxiliaryCircleSection P q) |
| 67 | (g := (Prod.snd : P.charts.Point → P.circle.Point)) x (hs (x, q)) (hi x) v |
| 68 | have hc : (Prod.snd : P.charts.Point → P.circle.Point) ∘ |
| 69 | auxiliaryCircleSection P q = fun _ => q := rfl |
| 70 | rw [hc, mfderiv_const] at h |
| 71 | exact h.symm |
| 72 | |
| 73 | /-- The constant inclusion preserves the actual Riemannian metric pairing. Proof expansion |
| 74 | for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 75 | theorem auxiliaryCircle_section_metric |
| 76 | (P : M62.CircleProductData F circumference) (t : ℝ) (q : P.circle.Point) |
| 77 | (x : M) (v w : TangentSpace (𝓡 n) x) : |
| 78 | (P.flow.metric t).inner (x, q) |
| 79 | (mfderiv (𝓡 n) (𝓡 (n + 1)) (auxiliaryCircleSection P q) x v) |
| 80 | (mfderiv (𝓡 n) (𝓡 (n + 1)) (auxiliaryCircleSection P q) x w) = |
| 81 | (F.metric t).inner x v w := by |
| 82 | rw [P.metric_eq, auxiliaryCircle_section_mfderiv_split, |
| 83 | auxiliaryCircle_section_mfderiv_split] |
| 84 | simp |
| 85 | |
| 86 | /-- The constant inclusion preserves extended Riemannian distance. Proof expansion for |
| 87 | Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 88 | theorem auxiliaryCircle_section_edist |
| 89 | (P : M62.CircleProductData F circumference) (t : ℝ) (q : P.circle.Point) |
| 90 | (x y : M) : |
| 91 | (P.flow.metric t).edist (x, q) (y, q) = (F.metric t).edist x y := by |
| 92 | apply le_antisymm |
| 93 | · have hnorm (z : M) (v : TangentSpace (𝓡 n) z) : |
| 94 | (P.flow.metric t).tangentNorm (z, q) |
| 95 | (mfderiv (𝓡 n) (𝓡 (n + 1)) (auxiliaryCircleSection P q) z v) ≤ |
| 96 | 1 * (F.metric t).tangentNorm z v := by |
| 97 | unfold RiemannianMetric.tangentNorm |
| 98 | rw [auxiliaryCircle_section_metric, one_mul] |
| 99 | have h := RiemannianMetric.edist_le_mul_of_tangentNorm_mfderiv_le |
| 100 | (F.metric t) (P.flow.metric t) ((auxiliaryCircle_section_contMDiff P q).of_le (by simp)) |
| 101 | (by norm_num : (0 : ℝ) < 1) hnorm x y |
| 102 | simpa only [auxiliaryCircleSection, ENNReal.ofReal_one, one_mul] using h |
| 103 | · simpa using m64Projection_edist_le P t (x, q) (y, q) |
| 104 | |
| 105 | /-- The constant inclusion preserves the actual Gram matrix at differentiability points. |
| 106 | Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 107 | theorem auxiliaryCircle_section_areaGram |
| 108 | (P : M62.CircleProductData F circumference) (t : ℝ) (q : P.circle.Point) |
| 109 | {f : LoopPlane → M} {z : LoopPlane} (hf : MDifferentiableAt (𝓡 2) (𝓡 n) f z) : |
| 110 | m60AreaGram (P.flow.metric t) (auxiliaryCircleSection P q ∘ f) z = |
| 111 | m60AreaGram (F.metric t) f z := by |
| 112 | have hcomp (i : Fin 2) := mfderiv_comp_apply (f := f) |
| 113 | (g := auxiliaryCircleSection P q) z |
| 114 | ((auxiliaryCircle_section_contMDiff P q).mdifferentiableAt (by simp)) hf |
| 115 | (EuclideanSpace.basisFun (Fin 2) ℝ i) |
| 116 | ext i j |
| 117 | dsimp only [m60AreaGram] |
| 118 | erw [hcomp i, hcomp j] |
| 119 | exact auxiliaryCircle_section_metric P t q _ _ _ |
| 120 | |
| 121 | /-- Lift an admissible annulus through a constant auxiliary inclusion without changing its |
| 122 | area. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 123 | theorem auxiliaryCircle_lift_annulus |
| 124 | (P : M62.CircleProductData F circumference) (t : ℝ) (q : P.circle.Point) |
| 125 | {c0 c1 : ℝ → M} (A : M64Annulus (F.metric t) c0 c1) : |
| 126 | ∃ B : M64Annulus (P.flow.metric t) (fun x => (c0 x, q)) (fun x => (c1 x, q)), |
| 127 | B.map = (fun z => (A.map z, q)) ∧ B.area = A.area := by |
| 128 | have hi := auxiliaryCircle_section_contMDiff P q |
| 129 | have hdiff : ∀ᵐ z ∂volume, z ∈ m64AnnulusDomain → |
| 130 | MDifferentiableAt (𝓡 2) (𝓡 (n + 1)) (auxiliaryCircleSection P q ∘ A.map) z := by |
| 131 | filter_upwards [A.ae_manifold_differentiable] with z hz |
| 132 | intro hmem |
| 133 | exact (hi.mdifferentiableAt (by simp)).comp z (hz hmem) |
| 134 | have hdensity : m60AreaDensity (P.flow.metric t) (auxiliaryCircleSection P q ∘ A.map) |
| 135 | =ᵐ[volume.restrict m64AnnulusDomain] m60AreaDensity (F.metric t) A.map := by |
| 136 | filter_upwards [ae_restrict_mem m64AnnulusDomain_measurableSet, |
| 137 | ae_restrict_of_ae A.ae_manifold_differentiable] with z hz hdiff |
| 138 | unfold m60AreaDensity |
| 139 | rw [auxiliaryCircle_section_areaGram P t q (hdiff hz)] |
| 140 | let B : M64Annulus (P.flow.metric t) (fun x => (c0 x, q)) (fun x => (c1 x, q)) := { |
| 141 | map := fun z => (A.map z, q) |
| 142 | continuous_on_domain := hi.continuous.comp_continuousOn A.continuous_on_domain |
| 143 | periodic := fun x s => by simp only [A.periodic] |
| 144 | lower_boundary := fun x => by simp only [A.lower_boundary] |
| 145 | upper_boundary := fun x => by simp only [A.upper_boundary] |
| 146 | lipschitz_constant := A.lipschitz_constant |
| 147 | lipschitz_nonnegative := A.lipschitz_nonnegative |
| 148 | lipschitz_on_domain := fun x y => by |
| 149 | rw [auxiliaryCircle_section_edist] |
| 150 | exact A.lipschitz_on_domain x y |
| 151 | ae_manifold_differentiable := hdiff |
| 152 | area_integrable := A.area_integrable.congr hdensity.symm } |
| 153 | exact ⟨B, rfl, integral_congr_ae hdensity⟩ |
| 154 | |
| 155 | end PoincareMT.M64 |