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.Radial.Gram |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Annulus.WeakMinimizer |
| 3 | |
| 4 | /-! |
| 5 | # Quantitative area control under auxiliary separation |
| 6 | |
| 7 | Every original admissible annulus has actual admissible separated lifts |
| 8 | whose area differs by at most a fixed finite energy coefficient times the |
| 9 | auxiliary offset. Projection gives the reverse inequality for least area. |
| 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 | [T2Space M] [CompactSpace M] |
| 28 | {a b : ℝ} {F : RicciFlow n M (Icc a b)} {circumference : ℝ} |
| 29 | |
| 30 | /-- Construct a radial lifted annulus with an explicit finite linear area error. Proof |
| 31 | expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 32 | theorem auxiliaryCircle_radial_annulus_area_bound |
| 33 | (P : M62.CircleProductData F circumference) (time : ℝ) |
| 34 | {c0 c1 : ℝ → M} (A : M64Annulus (F.metric time) c0 c1) (delta : ℝ) : |
| 35 | ∃ B : M64Annulus (P.flow.metric time) |
| 36 | (auxiliaryCircleSection P (P.circle.quotient 0) ∘ c0) |
| 37 | (auxiliaryCircleSection P (P.circle.quotient delta) ∘ c1), |
| 38 | B.map = auxiliaryCircleRadialLift P A.map delta ∧ |
| 39 | B.area ≤ A.area + |delta| * (volume.real m64AnnulusDomain + |
| 40 | ∫ z in m64AnnulusDomain, m60EnergyDensity (F.metric time) A.map z) := by |
| 41 | obtain ⟨B, hmap⟩ := auxiliaryCircle_radial_annulus P time A delta |
| 42 | have hE := A.energy_integrable |
| 43 | have hconst : IntegrableOn (fun _ : LoopPlane => (1 : ℝ)) m64AnnulusDomain volume := |
| 44 | integrableOn_const m64AnnulusDomain_volume_ne_top |
| 45 | have herror : IntegrableOn (fun z => |delta| * |
| 46 | (1 + m60EnergyDensity (F.metric time) A.map z)) m64AnnulusDomain volume := |
| 47 | (hconst.add hE).const_mul |delta| |
| 48 | have hbound : ∀ᵐ z ∂volume.restrict m64AnnulusDomain, |
| 49 | m60AreaDensity (P.flow.metric time) B.map z ≤ |
| 50 | m60AreaDensity (F.metric time) A.map z + |
| 51 | |delta| * (1 + m60EnergyDensity (F.metric time) A.map z) := by |
| 52 | filter_upwards [ae_restrict_mem m64AnnulusDomain_measurableSet, |
| 53 | ae_restrict_of_ae A.ae_manifold_differentiable] with z hz hdiff |
| 54 | rw [hmap] |
| 55 | exact auxiliaryCircle_radial_density_le_energy_error P time delta (hdiff hz) |
| 56 | refine ⟨B, hmap, ?_⟩ |
| 57 | calc |
| 58 | B.area ≤ ∫ z in m64AnnulusDomain, |
| 59 | (m60AreaDensity (F.metric time) A.map z + |
| 60 | |delta| * (1 + m60EnergyDensity (F.metric time) A.map z)) := |
| 61 | integral_mono_ae B.area_integrable (A.area_integrable.add herror) hbound |
| 62 | _ = A.area + |delta| * (volume.real m64AnnulusDomain + |
| 63 | ∫ z in m64AnnulusDomain, m60EnergyDensity (F.metric time) A.map z) := by |
| 64 | rw [integral_add A.area_integrable herror, integral_const_mul, |
| 65 | integral_add hconst hE] |
| 66 | simp only [integral_const, Measure.real, smul_eq_mul, mul_one, |
| 67 | Measure.restrict_apply_univ, M64Annulus.area, m64AnnulusArea] |
| 68 | |
| 69 | omit [CompactSpace M] in |
| 70 | /-- Projection bounds the original guarded least area by the stabilized least area. Proof |
| 71 | expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 72 | theorem auxiliaryCircle_leastArea_le_lifted_leastArea |
| 73 | (P : M62.CircleProductData F circumference) (time : ℝ) |
| 74 | {c0 c1 : ℝ → M} (A : M64Annulus (F.metric time) c0 c1) (delta : ℝ) : |
| 75 | m64LeastAnnulusArea (F.metric time) c0 c1 ≤ |
| 76 | m64LeastAnnulusArea (P.flow.metric time) |
| 77 | (auxiliaryCircleSection P (P.circle.quotient 0) ∘ c0) |
| 78 | (auxiliaryCircleSection P (P.circle.quotient delta) ∘ c1) := by |
| 79 | obtain ⟨B, -⟩ := auxiliaryCircle_radial_annulus P time A delta |
| 80 | have hnonempty := m64AnnulusAreaRange_nonempty B |
| 81 | have hbounded := m64AnnulusAreaRange_bddBelow (P.flow.metric time) |
| 82 | (auxiliaryCircleSection P (P.circle.quotient 0) ∘ c0) |
| 83 | (auxiliaryCircleSection P (P.circle.quotient delta) ∘ c1) |
| 84 | apply (isGLB_csInf hnonempty hbounded).2 |
| 85 | rintro _ ⟨C, rfl⟩ |
| 86 | obtain ⟨-, D, -, -, -, harea⟩ := m64ProjectedAnnulus_of_annulus P time _ _ C |
| 87 | exact (m64LeastAnnulusArea_le_annulus D).trans harea |
| 88 | |
| 89 | /-- Bound the stabilized least area using a specified original annulus and its finite |
| 90 | energy. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 91 | theorem auxiliaryCircle_lifted_leastArea_error |
| 92 | (P : M62.CircleProductData F circumference) (time : ℝ) |
| 93 | {c0 c1 : ℝ → M} (A : M64Annulus (F.metric time) c0 c1) (delta : ℝ) : |
| 94 | m64LeastAnnulusArea (P.flow.metric time) |
| 95 | (auxiliaryCircleSection P (P.circle.quotient 0) ∘ c0) |
| 96 | (auxiliaryCircleSection P (P.circle.quotient delta) ∘ c1) ≤ |
| 97 | A.area + |delta| * (volume.real m64AnnulusDomain + |
| 98 | ∫ z in m64AnnulusDomain, m60EnergyDensity (F.metric time) A.map z) := by |
| 99 | obtain ⟨B, -, harea⟩ := auxiliaryCircle_radial_annulus_area_bound P time A delta |
| 100 | exact (m64LeastAnnulusArea_le_annulus B).trans harea |
| 101 | |
| 102 | /-- Show that stabilized least area tends to original least area as the auxiliary offset |
| 103 | vanishes. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 104 | theorem auxiliaryCircle_lifted_leastArea_tendsto |
| 105 | (P : M62.CircleProductData F circumference) (time : ℝ) |
| 106 | {c0 c1 : ℝ → M} (A : M64Annulus (F.metric time) c0 c1) : |
| 107 | Tendsto (fun delta : ℝ => m64LeastAnnulusArea (P.flow.metric time) |
| 108 | (auxiliaryCircleSection P (P.circle.quotient 0) ∘ c0) |
| 109 | (auxiliaryCircleSection P (P.circle.quotient delta) ∘ c1)) (𝓝 0) |
| 110 | (𝓝 (m64LeastAnnulusArea (F.metric time) c0 c1)) := by |
| 111 | apply Metric.tendsto_nhds.mpr |
| 112 | intro epsilon hepsilon |
| 113 | obtain ⟨C, hC⟩ := m64LeastAnnulusArea_near_minimizer A (half_pos hepsilon) |
| 114 | let K := volume.real m64AnnulusDomain + |
| 115 | ∫ z in m64AnnulusDomain, m60EnergyDensity (F.metric time) C.map z |
| 116 | have hK : 0 ≤ K := add_nonneg ENNReal.toReal_nonneg |
| 117 | (integral_nonneg (fun z => m60EnergyDensity_nonneg (F.metric time) C.map z)) |
| 118 | have hK1 : 0 < K + 1 := by linarith |
| 119 | have hsmall : ∀ᶠ delta : ℝ in 𝓝 0, |delta| < (epsilon / 2) / (K + 1) := by |
| 120 | have hpos := div_pos (half_pos hepsilon) hK1 |
| 121 | filter_upwards [Metric.ball_mem_nhds (0 : ℝ) hpos] with delta hdelta |
| 122 | simpa only [Metric.mem_ball, Real.dist_eq, sub_zero] using hdelta |
| 123 | filter_upwards [hsmall] with delta hdelta |
| 124 | have hupper := auxiliaryCircle_lifted_leastArea_error P time C delta |
| 125 | have hlower := auxiliaryCircle_leastArea_le_lifted_leastArea P time A delta |
| 126 | have herror : |delta| * K < epsilon / 2 := by |
| 127 | have hlt := (lt_div_iff₀ hK1).mp hdelta |
| 128 | nlinarith [abs_nonneg delta] |
| 129 | rw [Real.dist_eq, abs_of_nonneg (sub_nonneg.mpr hlower)] |
| 130 | change _ ≤ C.area + |delta| * K at hupper |
| 131 | linarith |
| 132 | |
| 133 | /-- Choose actual radial lifted annuli whose areas tend to that of the original annulus. |
| 134 | Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 135 | theorem auxiliaryCircle_radial_annuli_area_tendsto |
| 136 | (P : M62.CircleProductData F circumference) (time : ℝ) |
| 137 | {c0 c1 : ℝ → M} (A : M64Annulus (F.metric time) c0 c1) : |
| 138 | ∃ B : ∀ delta : ℝ, M64Annulus (P.flow.metric time) |
| 139 | (auxiliaryCircleSection P (P.circle.quotient 0) ∘ c0) |
| 140 | (auxiliaryCircleSection P (P.circle.quotient delta) ∘ c1), |
| 141 | (∀ delta, (B delta).map = auxiliaryCircleRadialLift P A.map delta) ∧ |
| 142 | Tendsto (fun delta => (B delta).area) (𝓝 0) (𝓝 A.area) := by |
| 143 | choose B hmap hbound using (fun delta => auxiliaryCircle_radial_annulus_area_bound P time A delta) |
| 144 | refine ⟨B, hmap, ?_⟩ |
| 145 | let K := volume.real m64AnnulusDomain + |
| 146 | ∫ z in m64AnnulusDomain, m60EnergyDensity (F.metric time) A.map z |
| 147 | have hupper : Tendsto (fun delta : ℝ => A.area + |delta| * K) (𝓝 0) (𝓝 A.area) := by |
| 148 | have hcont : Continuous (fun delta : ℝ => A.area + |delta| * K) := by fun_prop |
| 149 | simpa only [abs_zero, zero_mul, add_zero] using hcont.tendsto 0 |
| 150 | apply tendsto_of_tendsto_of_tendsto_of_le_of_le tendsto_const_nhds hupper ?_ hbound |
| 151 | intro delta |
| 152 | obtain ⟨-, C, hC, -, -, harea⟩ := m64ProjectedAnnulus_of_annulus P time _ _ (B delta) |
| 153 | have hmapC : C.map = A.map := by |
| 154 | rw [hC, hmap delta] |
| 155 | rfl |
| 156 | have hareaC : C.area = A.area := by |
| 157 | unfold M64Annulus.area m64AnnulusArea |
| 158 | rw [hmapC] |
| 159 | exact hareaC.symm.le.trans harea |
| 160 | |
| 161 | end PoincareMT.M64 |