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.RampWeakMinimum |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Free.PhaseContinuity |
| 3 | |
| 4 | /-! Stabilized ramp data produce an actual interior-continuous minimum |
| 5 | over all positive moduli and raw free boundary labels. The phase-preserving |
| 6 | cone construction supplies continuity; no regular representative is assumed. |
| 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 | /-- Construct a continuous representative of the attained stabilized free minimum while |
| 27 | retaining its actual weak energy and labels. Source: MT Lemma 19.15, pp. 447-449, its weak |
| 28 | minimum and sweep construction. -/ |
| 29 | theorem auxiliaryCircle_free_ramp_continuous_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 | ContinuousOn L.annulus.map (interior m64AnnulusDomain) ∧ |
| 65 | L.annulus.weightedEnergy B r ≤ m64LeastAnnulusArea (Q.flow.metric time) c0 c1 ∧ |
| 66 | ∀ s : ℝ, 0 < s → |
| 67 | ∀ A : M64FreeWeakPhaseAnnulus (n := (n + 1) + 1) |
| 68 | e R c0 c1 H0 H1 (curvePeriod / circumference) D, |
| 69 | L.annulus.weightedEnergy B r ≤ A.annulus.weightedEnergy B s := by |
| 70 | obtain ⟨m, e, R, T, H0, H1, D, B, he, hei, hread, hR, hT, hD, hH0, hH1, |
| 71 | hzero, hone, hB, hpos, hsymm, hdiag, r, hr, A, harea, hminimum⟩ := |
| 72 | auxiliaryCircle_free_ramp_weak_minimum P Q time gamma0 gamma1 hgamma0 hgamma1 |
| 73 | hp0 hp1 hramp0 hramp1 A0 hdelta hsmall |
| 74 | obtain ⟨L, -, -, hL, -, -, -, -, henergy, hmin⟩ := |
| 75 | auxiliaryCircle_free_phase_continuous_minimum P Q (he.of_le (by simp)) hei hread |
| 76 | hR A (Q.flow.metric time) B hB hpos hdiag hr hminimum |
| 77 | refine ⟨m, e, R, T, H0, H1, D, B, he, hei, hread, hR, hT, hD, hH0, hH1, |
| 78 | hzero, hone, hB, hpos, hsymm, hdiag, r, hr, L, hL, ?_, hmin⟩ |
| 79 | rw [henergy] |
| 80 | exact harea |
| 81 | |
| 82 | end PoincareMT.M64 |