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.Finite.RampForward |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Stabilization.Area.Convergence |
| 3 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Sweep.Least.AreaContinuity |
| 4 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Forward.PointwiseLimit |
| 5 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Curvature.Supremum |
| 6 | |
| 7 | /-! Remove the auxiliary separation after continuous interval comparison. |
| 8 | Actual swept annuli guard the infima, and the projection/radial-lift |
| 9 | estimates supply the pointwise limit. The original dimension controls |
| 10 | both rates. Source: MT Lemma 19.15 and Corollary 19.16, pp. 447-449. -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | set_option autoImplicit false |
| 14 | set_option warningAsError true |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Topology ContDiff Manifold |
| 19 | |
| 20 | namespace PoincareMT.M64 |
| 21 | |
| 22 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] [T2Space M] [CompactSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 24 | {a b : ℝ} {F : RicciFlow n M (Icc a b)} {circumference auxiliary : ℝ} |
| 25 | |
| 26 | /-- Both original annular evolution estimates follow by sending the constructed auxiliary |
| 27 | separation to zero after interval comparison. Source: Morgan--Tian Lemma 19.15, printed pp. |
| 28 | 447-449, and Lemma 19.31, pp. 464-466; |
| 29 | `proof-work/tasks/M64/derivations/2026-09-26-separation-evolution.md`. -/ |
| 30 | theorem auxiliaryCircle_ramp_evolution |
| 31 | (P : M62.CircleProductData F circumference) |
| 32 | (Q : M62.CircleProductData P.flow auxiliary) (hn : 1 ≤ n) |
| 33 | {c0 c1 : ℝ → ℝ → P.charts.Point} |
| 34 | (hc0 : M63C2ShrinkingCurveOn P.flow c0 (Icc a b)) |
| 35 | (hc1 : M63C2ShrinkingCurveOn P.flow c1 (Icc a b)) |
| 36 | (hramp0 : ∀ t ∈ Ioo a b, M63IsRampAt P (fun x ↦ c0 x t) t) |
| 37 | (hramp1 : ∀ t ∈ Ioo a b, M63IsRampAt P (fun x ↦ c1 x t) t) |
| 38 | (A0 : M64Annulus (P.flow.metric a) (fun x ↦ c0 x a) (fun x ↦ c1 x a)) |
| 39 | {K0 K1 K2 : ℝ} (hK0 : 0 ≤ K0) (hBounds : CurveEvolutionAmbientBounds F K0 K1 K2) : |
| 40 | (∀ t ∈ Ico a b, |
| 41 | AnnulusForwardDerivativeBound (m64FlowAnnulusArea P c0 c1) |
| 42 | ((2 * (n : ℝ) - 1) * m64CurvatureSupremum F t * m64FlowAnnulusArea P c0 c1 t) t) ∧ |
| 43 | (∀ s t : ℝ, s ∈ Icc a b → t ∈ Icc a b → s ≤ t → |
| 44 | m64FlowAnnulusArea P c0 c1 t ≤ |
| 45 | Real.exp ((2 * (n : ℝ) - 1) * K0 * (t - s)) * m64FlowAnnulusArea P c0 c1 s) := by |
| 46 | let : Fact (0 < circumference) := ⟨P.circle.positive⟩ |
| 47 | let : Fact (0 < auxiliary) := ⟨Q.circle.positive⟩ |
| 48 | let d0 := fun x s ↦ auxiliaryCircleSection Q (Q.circle.quotient 0) (c0 x s) |
| 49 | let d1 := fun delta x s ↦ auxiliaryCircleSection Q (Q.circle.quotient delta) (c1 x s) |
| 50 | let mu := fun delta ↦ m64FlowAnnulusArea Q d0 (d1 delta) |
| 51 | let k := fun t ↦ (2 * (n : ℝ) - 1) * m64CurvatureSupremum F t |
| 52 | let rate := (2 * (n : ℝ) - 1) * K0 |
| 53 | have hnonempty := m64AnnulusFlow_nonempty_of_initial isCompact_univ |
| 54 | P.circle.positive P hc0 hc1 A0 |
| 55 | have hcontinuous := m64AnnulusFlow_continuous_of_initial isCompact_univ |
| 56 | P.circle.positive P hc0 hc1 A0 |
| 57 | have hlimit (t : ℝ) (ht : t ∈ Icc a b) : |
| 58 | Tendsto (fun delta ↦ mu delta t) (𝓝[>] 0) (𝓝 (m64FlowAnnulusArea P c0 c1 t)) := by |
| 59 | obtain ⟨A⟩ := hnonempty t ht |
| 60 | exact (auxiliaryCircle_lifted_leastArea_tendsto Q t A).mono_left nhdsWithin_le_nhds |
| 61 | have hd0 : M63C2ShrinkingCurveOn Q.flow d0 (Icc a b) := |
| 62 | auxiliaryCircle_c2ShrinkingCurve Q (Q.circle.quotient 0) hc0 |
| 63 | have hd1 (delta : ℝ) : M63C2ShrinkingCurveOn Q.flow (d1 delta) (Icc a b) := |
| 64 | auxiliaryCircle_c2ShrinkingCurve Q (Q.circle.quotient delta) hc1 |
| 65 | have hdata : ∀ᶠ delta : ℝ in 𝓝[>] 0, |
| 66 | ContinuousOn (mu delta) (Icc a b) ∧ |
| 67 | (∀ t ∈ Icc a b, 0 ≤ mu delta t) ∧ |
| 68 | ∀ t ∈ Ioo a b, |
| 69 | AnnulusForwardDerivativeBound (mu delta) (k t * mu delta t) t ∧ |
| 70 | AnnulusForwardDerivativeBound (mu delta) (rate * mu delta t) t := by |
| 71 | filter_upwards [Ioo_mem_nhdsGT Q.circle.positive] with delta hdelta |
| 72 | obtain ⟨B0, -⟩ := auxiliaryCircle_radial_annulus Q a A0 delta |
| 73 | refine ⟨m64AnnulusFlow_continuous_of_initial isCompact_univ Q.circle.positive Q |
| 74 | hd0 (hd1 delta) B0, |
| 75 | m64AnnulusFlow_nonnegative_of_initial isCompact_univ Q.circle.positive Q |
| 76 | hd0 (hd1 delta) B0, ?_⟩ |
| 77 | intro t ht |
| 78 | obtain ⟨A⟩ := hnonempty t (Ioo_subset_Icc_self ht) |
| 79 | have hforward := auxiliaryCircle_ramp_forward P Q hn hc0 hc1 ht |
| 80 | (hramp0 t ht) (hramp1 t ht) A hdelta.1 hdelta.2 |
| 81 | have hbounded := m64CurvatureRange_bddAbove_of_compact |
| 82 | (F := F) isCompact_univ (Ioo_subset_Icc_self ht) |
| 83 | exact ⟨hforward.1 (m64CurvatureSupremum F t) (m64CurvatureSupremum_nonneg hbounded) |
| 84 | (m64Curvature_le_supremum hbounded), hforward.2 K0 K1 K2 hK0 hBounds⟩ |
| 85 | constructor |
| 86 | · exact m64AnnulusForwardDerivativeBound.of_pointwise_limit hcontinuous |
| 87 | (continuousOn_const.mul (m64CurvatureSupremum_continuous_of_compact isCompact_univ)) |
| 88 | (hdata.mono (fun _ hd ↦ ⟨hd.1, hd.2.1, fun t ht ↦ (hd.2.2 t ht).1⟩)) hlimit |
| 89 | · intro s t hs ht hst |
| 90 | exact m64AnnulusForwardDerivativeBound.exponential_comparison_of_pointwise_limit |
| 91 | (k := fun _ ↦ rate) |
| 92 | (hdata.mono (fun _ hd ↦ ⟨hd.1, hd.2.1, fun x hx ↦ (hd.2.2 x hx).2⟩)) |
| 93 | hlimit hs ht hst (fun _ _ ↦ le_rfl) |
| 94 | |
| 95 | end PoincareMT.M64 |