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.Annulus.CircleCurrent |
| 2 | |
| 3 | /-! The real phase differential is the actual product circle current. |
| 4 | The quotient chain rule and the product metric determine its sign. |
| 5 | Source: MT Lemma 19.15, pp. 447-449; M64 affine phase derivation. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | set_option autoImplicit false |
| 9 | set_option warningAsError true |
| 10 | set_option backward.isDefEq.respectTransparency false |
| 11 | |
| 12 | open Set Filter |
| 13 | open scoped Manifold ContDiff Topology Bundle |
| 14 | |
| 15 | namespace PoincareMT |
| 16 | |
| 17 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 18 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 19 | {a b : ℝ} {F : RicciFlow n M (Icc a b)} {circumference : ℝ} |
| 20 | |
| 21 | /-- The differential of an actual local real circle phase equals the genuine product-metric |
| 22 | circle current. Source: Morgan--Tian (2007), Lemma 19.15 and Corollary 19.16, pp. 447-449; |
| 23 | project derivation |
| 24 | `proof-work/tasks/M64/reports/2026-09-27-annulus-energy-and-finite-variation-derivation.md`. -/ |
| 25 | theorem m64CirclePhase_current |
| 26 | (P : M62.CircleProductData F circumference) (t : ℝ) |
| 27 | {f : LoopPlane → P.charts.Point} {L : LoopPlane → ℝ} {p : LoopPlane} |
| 28 | (hf : MDifferentiableAt (𝓡 2) (𝓡 (n + 1)) f p) |
| 29 | (hL : DifferentiableAt ℝ L p) |
| 30 | (hquot : P.circle.quotient ∘ L =ᶠ[𝓝 p] Prod.snd ∘ f) (i : Fin 2) : |
| 31 | fderiv ℝ L p (EuclideanSpace.single i 1) = m64AnnulusCircleCurrent P t f i p := by |
| 32 | let := P.charts.chartedSpace |
| 33 | let := P.circle.chartedSpace |
| 34 | let v : LoopPlane := EuclideanSpace.single i 1 |
| 35 | let W := mfderiv (𝓡 2) (𝓡 (n + 1)) f p v |
| 36 | have hsnd : MDifferentiable (𝓡 (n + 1)) (𝓡 1) |
| 37 | (Prod.snd : P.charts.Point → P.circle.Point) := |
| 38 | (contMDiff_snd.comp P.charts.to_product_smooth).mdifferentiable (by simp) |
| 39 | have hpr := mfderiv_comp_apply (f := f) |
| 40 | (g := (Prod.snd : P.charts.Point → P.circle.Point)) p (hsnd (f p)) hf v |
| 41 | have hl := mfderiv_comp_apply (f := L) (g := P.circle.quotient) p |
| 42 | (P.circle.quotient_smooth.mdifferentiableAt (by simp)) |
| 43 | hL.hasFDerivAt.hasMFDerivAt.mdifferentiableAt v |
| 44 | rw [hquot.mfderiv_eq, mfderiv_eq_fderiv] at hl |
| 45 | have hv : (P.charts.split (f p) W).2 = |
| 46 | mfderiv 𝓘(ℝ, ℝ) (𝓡 1) P.circle.quotient (L p) (fderiv ℝ L p v) := by |
| 47 | rw [P.charts.split_circle] |
| 48 | exact hpr.symm.trans hl |
| 49 | have hpoint : P.circle.quotient (L p) = (f p).2 := hquot.eq_of_nhds |
| 50 | have hsplit : P.charts.split (f p) (P.charts.circleUnit (f p)) = |
| 51 | (0, P.circle.frame (f p).2) := (P.charts.split (f p)).apply_symm_apply _ |
| 52 | change fderiv ℝ L p v = (P.flow.metric t).inner (f p) W (P.charts.circleUnit (f p)) |
| 53 | rw [P.metric_eq, hsplit] |
| 54 | simp only [map_zero, zero_add] |
| 55 | rw [hv, ← hpoint] |
| 56 | simp only [M62.CircleGeometry.quotient, P.circle.frame_quotient] |
| 57 | simpa +instances only [M62.CircleGeometry.quotient, M62.CircleGeometry.metricOnPoints, |
| 58 | mul_one] using! (P.circle.metric_quotient (L p) (fderiv ℝ L p v) 1).symm |
| 59 | |
| 60 | end PoincareMT |