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.RampContinuousMinimum |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Free.PhaseInteriorSmooth |
| 3 | |
| 4 | /-! Actual stabilized ramps admit an interior-smooth minimum over all |
| 5 | positive moduli and raw free labels. The representative is produced by |
| 6 | phase-preserving cone comparisons and target variations. |
| 7 | |
| 8 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 9 | 447-449. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open Set MeasureTheory Topology |
| 18 | open scoped Manifold ContDiff |
| 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 | /-- The attained stabilized free minimum has a continuous representative that is smooth on |
| 27 | the open annulus. Source: MT Lemma 19.15, pp. 447-449, its weak minimum and sweep |
| 28 | construction. -/ |
| 29 | theorem auxiliaryCircle_free_ramp_smooth_minimum |
| 30 | (P : M62.CircleProductData F circumference) |
| 31 | (Q : M62.CircleProductData P.flow auxiliary) (time : ℝ) |
| 32 | (gamma0 gamma1 : ℝ → P.charts.Point) |
| 33 | (hgamma0 : ContMDiff 𝓘(ℝ, ℝ) (𝓡 (n + 1)) 2 gamma0) |
| 34 | (hgamma1 : ContMDiff 𝓘(ℝ, ℝ) (𝓡 (n + 1)) 2 gamma1) |
| 35 | (hp0 : Function.Periodic gamma0 curvePeriod) |
| 36 | (hp1 : Function.Periodic gamma1 curvePeriod) |
| 37 | (hramp0 : M63IsRampAt P gamma0 time) (hramp1 : M63IsRampAt P gamma1 time) |
| 38 | (A0 : M64Annulus (P.flow.metric time) gamma0 gamma1) |
| 39 | {delta : ℝ} (hdelta : 0 < delta) (hsmall : delta < auxiliary) : |
| 40 | let c0 := auxiliaryCircleSection Q (Q.circle.quotient 0) ∘ gamma0 |
| 41 | let c1 := auxiliaryCircleSection Q (Q.circle.quotient delta) ∘ gamma1 |
| 42 | ∃ (m : ℕ) (e : Q.charts.Point → EuclideanSpace ℝ (Fin m)) |
| 43 | (R T : EuclideanSpace ℝ (Fin m) →L[ℝ] LoopPlane) |
| 44 | (H0 H1 : ℝ ≃o ℝ) (D : ℝ) |
| 45 | (B : Q.charts.Point → EuclideanSpace ℝ (Fin m) →L[ℝ] |
| 46 | EuclideanSpace ℝ (Fin m) →L[ℝ] ℝ), |
| 47 | ContMDiff (𝓡 ((n + 1) + 1)) (𝓡 m) ∞ e ∧ IsClosedEmbedding e ∧ |
| 48 | M60.SUChartReadable (n := (n + 1) + 1) e ∧ |
| 49 | (∀ q, R (e q) = planarCircleObservation q.1.2) ∧ |
| 50 | (∀ q, T (e q) = planarCircleObservation q.2) ∧ |
| 51 | 0 < D ∧ |
| 52 | (∀ x, H0 (x + curvePeriod) = H0 x + D) ∧ |
| 53 | (∀ x, H1 (x + curvePeriod) = H1 x + D) ∧ |
| 54 | (∀ x, P.circle.quotient (H0 x) = (gamma0 x).2) ∧ |
| 55 | (∀ x, P.circle.quotient (H1 x) = (gamma1 x).2) ∧ |
| 56 | Continuous B ∧ (∀ q v, 0 ≤ B q v v) ∧ |
| 57 | (∀ q v w, B q v w = B q w v) ∧ |
| 58 | (∀ (q : Q.charts.Point) (v : TangentSpace (𝓡 ((n + 1) + 1)) q), |
| 59 | B q (mfderiv (𝓡 ((n + 1) + 1)) (𝓡 m) e q v) |
| 60 | (mfderiv (𝓡 ((n + 1) + 1)) (𝓡 m) e q v) = (Q.flow.metric time).inner q v v) ∧ |
| 61 | ∃ r : ℝ, 0 < r ∧ |
| 62 | ∃ L : M64FreeWeakPhaseAnnulus (n := (n + 1) + 1) |
| 63 | e R c0 c1 H0 H1 (curvePeriod / circumference) D, |
| 64 | ContMDiffOn (𝓡 2) (𝓡 ((n + 1) + 1)) ∞ L.annulus.map |
| 65 | (interior m64AnnulusDomain) ∧ |
| 66 | L.annulus.weightedEnergy B r ≤ m64LeastAnnulusArea (Q.flow.metric time) c0 c1 ∧ |
| 67 | ∀ s : ℝ, 0 < s → |
| 68 | ∀ A : M64FreeWeakPhaseAnnulus (n := (n + 1) + 1) |
| 69 | e R c0 c1 H0 H1 (curvePeriod / circumference) D, |
| 70 | L.annulus.weightedEnergy B r ≤ A.annulus.weightedEnergy B s := by |
| 71 | let : Fact (0 < circumference) := ⟨P.circle.positive⟩ |
| 72 | let : Fact (0 < auxiliary) := ⟨Q.circle.positive⟩ |
| 73 | obtain ⟨m, e, R, T, H0, H1, D, B, he, hei, hread, hR, hT, hD, hH0, hH1, |
| 74 | hzero, hone, hB, hpos, hsymm, hdiag, r, hr, A, hA, harea, hminimum⟩ := |
| 75 | auxiliaryCircle_free_ramp_continuous_minimum P Q time gamma0 gamma1 hgamma0 hgamma1 |
| 76 | hp0 hp1 hramp0 hramp1 A0 hdelta hsmall |
| 77 | have hbounded : Bornology.IsBounded (range B) := (isCompact_range hB).isBounded |
| 78 | obtain ⟨K, hK⟩ := hbounded.exists_norm_le |
| 79 | have hsm := auxiliaryCircle_free_phase_contMDiffOn P Q e (he.of_le (by simp)) |
| 80 | hei.isEmbedding hread R hR A (Q.flow.metric time) B hB |
| 81 | (fun q => hK _ (mem_range_self q)) hdiag hr (hminimum r hr) hA |
| 82 | exact ⟨m, e, R, T, H0, H1, D, B, he, hei, hread, hR, hT, hD, hH0, hH1, |
| 83 | hzero, hone, hB, hpos, hsymm, hdiag, r, hr, A, hsm, harea, hminimum⟩ |
| 84 | |
| 85 | end PoincareMT.M64 |