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.Free.PhaseGlobalMinimum |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Stabilization.Normalized.PhaseSeed |
| 3 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Stabilization.Ramp.PhaseDegree |
| 4 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Stabilization.Confined.Approximation |
| 5 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Annulus.SeamGeometry |
| 6 | |
| 7 | /-! The stabilized ramp data themselves produce a global free weak |
| 8 | minimum. The two circle readers, common ramp phase, observed metric and |
| 9 | classical phase competitors are constructed inside the proof. Free |
| 10 | uniformization compares its energy directly with the least annulus area. |
| 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 MeasureTheory Topology |
| 22 | open scoped Topology Manifold ContDiff |
| 23 | |
| 24 | namespace PoincareMT.M64 |
| 25 | |
| 26 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] [T2Space M] [CompactSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 28 | {a b : ℝ} {F : RicciFlow n M (Icc a b)} {circumference auxiliary : ℝ} |
| 29 | |
| 30 | /-- Construct an actual all-positive-modulus minimum in the raw weak phase class for two |
| 31 | separated stabilized ramps. Source: MT Lemma 19.15, pp. 447-449; M64 derivation |
| 32 | `2026-09-25-free-label-compactness.md`. -/ |
| 33 | theorem auxiliaryCircle_free_ramp_weak_minimum |
| 34 | (P : M62.CircleProductData F circumference) |
| 35 | (Q : M62.CircleProductData P.flow auxiliary) (time : ℝ) |
| 36 | (gamma0 gamma1 : ℝ → P.charts.Point) |
| 37 | (hgamma0 : ContMDiff 𝓘(ℝ, ℝ) (𝓡 (n + 1)) 2 gamma0) |
| 38 | (hgamma1 : ContMDiff 𝓘(ℝ, ℝ) (𝓡 (n + 1)) 2 gamma1) |
| 39 | (hp0 : Function.Periodic gamma0 curvePeriod) |
| 40 | (hp1 : Function.Periodic gamma1 curvePeriod) |
| 41 | (hramp0 : M63IsRampAt P gamma0 time) (hramp1 : M63IsRampAt P gamma1 time) |
| 42 | (A0 : M64Annulus (P.flow.metric time) gamma0 gamma1) |
| 43 | {delta : ℝ} (hdelta : 0 < delta) (hsmall : delta < auxiliary) : |
| 44 | let c0 := auxiliaryCircleSection Q (Q.circle.quotient 0) ∘ gamma0 |
| 45 | let c1 := auxiliaryCircleSection Q (Q.circle.quotient delta) ∘ gamma1 |
| 46 | ∃ (m : ℕ) (e : Q.charts.Point → EuclideanSpace ℝ (Fin m)) |
| 47 | (R T : EuclideanSpace ℝ (Fin m) →L[ℝ] LoopPlane) |
| 48 | (H0 H1 : ℝ ≃o ℝ) (D : ℝ) |
| 49 | (B : Q.charts.Point → EuclideanSpace ℝ (Fin m) →L[ℝ] |
| 50 | EuclideanSpace ℝ (Fin m) →L[ℝ] ℝ), |
| 51 | ContMDiff (𝓡 ((n + 1) + 1)) (𝓡 m) ∞ e ∧ IsClosedEmbedding e ∧ |
| 52 | M60.SUChartReadable (n := (n + 1) + 1) e ∧ |
| 53 | (∀ q, R (e q) = planarCircleObservation q.1.2) ∧ |
| 54 | (∀ q, T (e q) = planarCircleObservation q.2) ∧ |
| 55 | 0 < D ∧ |
| 56 | (∀ x, H0 (x + curvePeriod) = H0 x + D) ∧ |
| 57 | (∀ x, H1 (x + curvePeriod) = H1 x + D) ∧ |
| 58 | (∀ x, P.circle.quotient (H0 x) = (gamma0 x).2) ∧ |
| 59 | (∀ x, P.circle.quotient (H1 x) = (gamma1 x).2) ∧ |
| 60 | Continuous B ∧ (∀ q v, 0 ≤ B q v v) ∧ |
| 61 | (∀ q v w, B q v w = B q w v) ∧ |
| 62 | (∀ (q : Q.charts.Point) (v : TangentSpace (𝓡 ((n + 1) + 1)) q), |
| 63 | B q (mfderiv (𝓡 ((n + 1) + 1)) (𝓡 m) e q v) |
| 64 | (mfderiv (𝓡 ((n + 1) + 1)) (𝓡 m) e q v) = (Q.flow.metric time).inner q v v) ∧ |
| 65 | ∃ r : ℝ, 0 < r ∧ |
| 66 | ∃ L : M64FreeWeakPhaseAnnulus (n := (n + 1) + 1) |
| 67 | e R c0 c1 H0 H1 (curvePeriod / circumference) D, |
| 68 | L.annulus.weightedEnergy B r ≤ m64LeastAnnulusArea (Q.flow.metric time) c0 c1 ∧ |
| 69 | ∀ s : ℝ, 0 < s → |
| 70 | ∀ A : M64FreeWeakPhaseAnnulus (n := (n + 1) + 1) |
| 71 | e R c0 c1 H0 H1 (curvePeriod / circumference) D, |
| 72 | L.annulus.weightedEnergy B r ≤ A.annulus.weightedEnergy B s := by |
| 73 | let : Fact (0 < circumference) := ⟨P.circle.positive⟩ |
| 74 | let : Fact (0 < auxiliary) := ⟨Q.circle.positive⟩ |
| 75 | let c0 := auxiliaryCircleSection Q (Q.circle.quotient 0) ∘ gamma0 |
| 76 | let c1 := auxiliaryCircleSection Q (Q.circle.quotient delta) ∘ gamma1 |
| 77 | have hc0 : Continuous c0 := |
| 78 | (auxiliaryCircle_section_contMDiff Q _).continuous.comp hgamma0.continuous |
| 79 | have hc1 : Continuous c1 := |
| 80 | (auxiliaryCircle_section_contMDiff Q _).continuous.comp hgamma1.continuous |
| 81 | have hperiod0 : Function.Periodic c0 curvePeriod := |
| 82 | fun x => congrArg (auxiliaryCircleSection Q (Q.circle.quotient 0)) (hp0 x) |
| 83 | have hperiod1 : Function.Periodic c1 curvePeriod := |
| 84 | fun x => congrArg (auxiliaryCircleSection Q (Q.circle.quotient delta)) (hp1 x) |
| 85 | have hsub : interior m64AnnulusDomain ⊆ |
| 86 | preimage (fun p : LoopPlane => p 1) (Ioo (0 : ℝ) 1) := by |
| 87 | intro p hp |
| 88 | exact ((m64AnnulusInterior_coordinates p).mp hp).2.2 |
| 89 | obtain ⟨lo, hi, hlo, -, happrox⟩ := auxiliaryCircle_free_approximation_confined P Q time |
| 90 | gamma0 gamma1 hgamma0 hgamma1 hp0 hp1 hramp0 A0 hdelta hsmall |
| 91 | obtain ⟨r0, -, sigma0, sigma1, -, -, -, -, -, -, A, hA, -, -⟩ := happrox 1 one_pos |
| 92 | obtain ⟨H0, H1, D, hD, hH0, hH1, hzero, hone⟩ := auxiliaryCircle_ramp_phase_data |
| 93 | P Q time gamma0 gamma1 hgamma0 hgamma1 hp0 hp1 hramp0 hramp1 |
| 94 | (Q.circle.quotient 0) (Q.circle.quotient delta) sigma0 sigma1 A (hA.mono hsub) |
| 95 | obtain ⟨m, e, R, T, he, hei, hread, hR, hT⟩ := |
| 96 | auxiliaryCircle_observation_with_two_circles P Q |
| 97 | have he1 : ContMDiff (𝓡 ((n + 1) + 1)) (𝓡 m) 1 e := he.of_le (by simp) |
| 98 | obtain ⟨B, K, hB, hK, hb, hpos, hsymm, hgram⟩ := |
| 99 | m64ChartReadable_observed_metric (Q.flow.metric time) e he1 hread |
| 100 | have hdiag := m64ObservedMetric_tangent_diagonal (Q.flow.metric time) e he1 B hgram |
| 101 | obtain ⟨C, hC, hcoercive⟩ := |
| 102 | m64ObservedMetric_tangent_coercivity (Q.flow.metric time) e he1 B hgram |
| 103 | obtain ⟨W, -, -⟩ := auxiliaryCircle_normalized_freeWeakPhase_seed P Q time |
| 104 | e he1 R hR c0 c1 hperiod0 hperiod1 H0 H1 hzero hone hH0 B hdiag |
| 105 | sigma0 sigma1 A (hA.mono hsub) |
| 106 | have hq : Q.circle.quotient 0 ≠ Q.circle.quotient delta := by |
| 107 | intro hh |
| 108 | have hz : (delta : AddCircle auxiliary) = 0 := hh.symm |
| 109 | exact hdelta.ne' ((AddCircle.coe_eq_zero_iff_of_mem_Ico ⟨hdelta.le, hsmall⟩).mp hz) |
| 110 | obtain ⟨V, v0, v1, hv, hv0, hv1⟩ := auxiliaryCircle_exists_separating_reader P Q e T hT hq |
| 111 | have hfreq : curvePeriod / circumference ≠ 0 := by |
| 112 | exact (div_pos (by unfold curvePeriod; positivity) P.circle.positive).ne' |
| 113 | obtain ⟨r, hr, L, hminimum⟩ := M64FreeWeakPhaseAnnulus.weightedEnergy_attained_positive |
| 114 | e he1 hei hread R c0 c1 hc0 hc1 H0 H1 hfreq hD.ne' hH0 hH1 V hv |
| 115 | (fun x => hv0 (gamma0 x)) (fun x => hv1 (gamma1 x)) |
| 116 | B hB hK hb hpos hsymm hC hcoercive W |
| 117 | refine ⟨m, e, R, T, H0, H1, D, B, he, hei, hread, hR, hT, hD, hH0, hH1, |
| 118 | hzero, hone, hB, hpos, hsymm, hdiag, r, hr, L, ?_, hminimum⟩ |
| 119 | apply le_of_forall_pos_le_add |
| 120 | intro eps heps |
| 121 | obtain ⟨s, hs, tau0, tau1, -, -, -, -, -, -, Aeps, hAeps, -, hEeps⟩ := |
| 122 | happrox eps heps |
| 123 | obtain ⟨Weps, -, hWeps⟩ := auxiliaryCircle_normalized_freeWeakPhase_seed P Q time |
| 124 | e he1 R hR c0 c1 hperiod0 hperiod1 H0 H1 hzero hone hH0 B hdiag |
| 125 | tau0 tau1 Aeps (hAeps.mono hsub) |
| 126 | exact (hminimum s (hlo.trans_le hs.1) Weps).trans ((hWeps s).trans_le hEeps.le) |
| 127 | |
| 128 | end PoincareMT.M64 |