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.Modulus.IntrinsicTension |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Circle.CurrentLaplacian |
| 3 | |
| 4 | /-! |
| 5 | # The actual weighted circle-current equation |
| 6 | |
| 7 | The genuine modulus-weighted tension of an attained area minimum pairs |
| 8 | to zero with the parallel circle field. Together with torsion-free |
| 9 | closedness, this gives the actual weighted scalar elliptic equation. |
| 10 | Source: the harmonic-circle argument for Morgan--Tian Lemma 19.15, |
| 11 | pp. 447-449. No phase lift or branch exclusion is assumed. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter MeasureTheory |
| 18 | open scoped Manifold ContDiff Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT |
| 23 | |
| 24 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] [T2Space M] [CompactSpace M] |
| 25 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 26 | {a b : ℝ} {F : RicciFlow n M (Icc a b)} {circumference : ℝ} |
| 27 | |
| 28 | /-- Actual minimality at the conformal modulus supplies the weighted divergence equation of |
| 29 | the actual circle current. Source: Morgan--Tian (2007), Lemma 19.15 and Corollary 19.16, pp. |
| 30 | 447-449; project derivation |
| 31 | `proof-work/tasks/M64/reports/2026-09-27-annulus-energy-and-finite-variation-derivation.md`. -/ |
| 32 | theorem m64AnnulusCircleCurrent_divergence_zero_of_modulus_minimum |
| 33 | (P : M62.CircleProductData F circumference) (hcirc : 0 < circumference) (t : ℝ) |
| 34 | {c0 c1 : ℝ → P.charts.Point} (A : M64Annulus (P.flow.metric t) c0 c1) |
| 35 | {r : ℝ} (hr : 0 < r) |
| 36 | (hminimum : A.area = m64LeastAnnulusArea (P.flow.metric t) c0 c1) |
| 37 | (hconformal : ∀ᵐ p ∂volume.restrict m64AnnulusDomain, |
| 38 | r * m60AreaGram (P.flow.metric t) A.map p 0 0 = |
| 39 | r⁻¹ * m60AreaGram (P.flow.metric t) A.map p 1 1 ∧ |
| 40 | m60AreaGram (P.flow.metric t) A.map p 0 1 = 0) |
| 41 | (hA : ContMDiffOn (𝓡 2) (𝓡 (n + 1)) ∞ A.map m64AnnulusInterior) |
| 42 | {x s : ℝ} (hp : annulusPoint x s ∈ m64AnnulusInterior) : |
| 43 | r * fderiv ℝ (m64AnnulusCircleCurrent P t A.map 0) (annulusPoint x s) |
| 44 | (EuclideanSpace.single (0 : Fin 2) 1) + |
| 45 | r⁻¹ * fderiv ℝ (m64AnnulusCircleCurrent P t A.map 1) (annulusPoint x s) |
| 46 | (EuclideanSpace.single (1 : Fin 2) 1) = 0 := by |
| 47 | let : Fact (0 < circumference) := ⟨hcirc⟩ |
| 48 | have hfp := hA.contMDiffAt (isOpen_m64AnnulusInterior.mem_nhds hp) |
| 49 | rw [m64AnnulusCircleCurrent_horizontal_derivative P t hfp, |
| 50 | m64AnnulusCircleCurrent_vertical_derivative P t hfp] |
| 51 | have hxx := M62.pullback_congr (P.flow.connection t) |
| 52 | (γ := fun y => A.map (annulusPoint y s)) |
| 53 | (Y := fun y => mfderiv (𝓡 2) (𝓡 (n + 1)) A.map (annulusPoint y s) |
| 54 | (EuclideanSpace.single (0 : Fin 2) 1)) |
| 55 | (Z := fun y => curveVelocity (fun z => A.map (annulusPoint z s)) y) (x := x) (by |
| 56 | filter_upwards [(m64AnnulusPoint_horizontal_hasDerivAt s x).continuousAt |
| 57 | (isOpen_m64AnnulusInterior.mem_nhds hp)] with y hy |
| 58 | exact (m64Annulus_horizontal_velocity |
| 59 | ((hA.contMDiffAt (isOpen_m64AnnulusInterior.mem_nhds hy)).mdifferentiableAt |
| 60 | (by simp))).symm) |
| 61 | have hyy := M62.pullback_congr (P.flow.connection t) |
| 62 | (γ := fun y => A.map (annulusPoint x y)) |
| 63 | (Y := fun y => mfderiv (𝓡 2) (𝓡 (n + 1)) A.map (annulusPoint x y) |
| 64 | (EuclideanSpace.single (1 : Fin 2) 1)) |
| 65 | (Z := fun y => curveVelocity (fun z => A.map (annulusPoint x z)) y) (x := s) (by |
| 66 | filter_upwards [(m64AnnulusPoint_vertical_hasDerivAt x s).continuousAt |
| 67 | (isOpen_m64AnnulusInterior.mem_nhds hp)] with y hy |
| 68 | exact (m64Annulus_vertical_velocity |
| 69 | ((hA.contMDiffAt (isOpen_m64AnnulusInterior.mem_nhds hy)).mdifferentiableAt |
| 70 | (by simp))).symm) |
| 71 | rw [hxx, hyy] |
| 72 | have hzero := m64Annulus_intrinsic_tension_eq_zero_of_modulus_minimum |
| 73 | (P.flow.connection t) A hr hminimum hconformal hA hp |
| 74 | have hscalar := congrArg (fun v => (P.flow.metric t).inner (A.map (annulusPoint x s)) v |
| 75 | (P.charts.circleUnit (A.map (annulusPoint x s)))) hzero |
| 76 | simpa only [map_add, add_apply, map_smul, smul_apply, smul_eq_mul, map_zero, zero_apply] |
| 77 | using hscalar |
| 78 | |
| 79 | /-- The actual angular current of a smooth modulus-conformal area minimum satisfies its |
| 80 | weighted second-order equation on the open rectangle. Source: Morgan--Tian (2007), Lemma |
| 81 | 19.15 and Corollary 19.16, pp. 447-449; project derivation |
| 82 | `proof-work/tasks/M64/reports/2026-09-27-annulus-energy-and-finite-variation-derivation.md`. -/ |
| 83 | theorem m64AnnulusCircleCurrent_horizontal_equation_of_modulus_minimum |
| 84 | (P : M62.CircleProductData F circumference) (hcirc : 0 < circumference) (t : ℝ) |
| 85 | {c0 c1 : ℝ → P.charts.Point} (A : M64Annulus (P.flow.metric t) c0 c1) |
| 86 | {r : ℝ} (hr : 0 < r) |
| 87 | (hminimum : A.area = m64LeastAnnulusArea (P.flow.metric t) c0 c1) |
| 88 | (hconformal : ∀ᵐ p ∂volume.restrict m64AnnulusDomain, |
| 89 | r * m60AreaGram (P.flow.metric t) A.map p 0 0 = |
| 90 | r⁻¹ * m60AreaGram (P.flow.metric t) A.map p 1 1 ∧ |
| 91 | m60AreaGram (P.flow.metric t) A.map p 0 1 = 0) |
| 92 | (hA : ContMDiffOn (𝓡 2) (𝓡 (n + 1)) ∞ A.map m64AnnulusInterior) |
| 93 | {p : LoopPlane} (hp : p ∈ m64AnnulusInterior) : |
| 94 | r * fderiv ℝ (fderiv ℝ (m64AnnulusCircleCurrent P t A.map 0)) p |
| 95 | (EuclideanSpace.single (0 : Fin 2) 1) (EuclideanSpace.single (0 : Fin 2) 1) + |
| 96 | r⁻¹ * fderiv ℝ (fderiv ℝ (m64AnnulusCircleCurrent P t A.map 0)) p |
| 97 | (EuclideanSpace.single (1 : Fin 2) 1) (EuclideanSpace.single (1 : Fin 2) 1) = 0 := by |
| 98 | let J := m64AnnulusCircleCurrent P t A.map |
| 99 | have hJ (i : Fin 2) : ContDiffOn ℝ ∞ (J i) m64AnnulusInterior := by |
| 100 | intro q hq |
| 101 | exact (m64AnnulusCircleCurrent_contDiffAt P t |
| 102 | (hA.contMDiffAt (isOpen_m64AnnulusInterior.mem_nhds hq)) i).contDiffWithinAt |
| 103 | have hpoint (q : LoopPlane) : annulusPoint (q 0) (q 1) = q := by |
| 104 | ext i |
| 105 | fin_cases i <;> simp [annulusPoint] |
| 106 | have hclosed (q : LoopPlane) (hq : q ∈ m64AnnulusInterior) : |
| 107 | fderiv ℝ (J 1) q (EuclideanSpace.single (0 : Fin 2) 1) = |
| 108 | fderiv ℝ (J 0) q (EuclideanSpace.single (1 : Fin 2) 1) := by |
| 109 | simpa only [hpoint] using m64AnnulusCircleCurrent_closed P t isOpen_m64AnnulusInterior hA |
| 110 | (x := q 0) (s := q 1) (hpoint q ▸ hq) |
| 111 | have hdiv (q : LoopPlane) (hq : q ∈ m64AnnulusInterior) : |
| 112 | r * fderiv ℝ (J 0) q (EuclideanSpace.single (0 : Fin 2) 1) + |
| 113 | r⁻¹ * fderiv ℝ (J 1) q (EuclideanSpace.single (1 : Fin 2) 1) = 0 := by |
| 114 | simpa only [hpoint] using |
| 115 | m64AnnulusCircleCurrent_divergence_zero_of_modulus_minimum P hcirc t A hr |
| 116 | hminimum hconformal hA (x := q 0) (s := q 1) (hpoint q ▸ hq) |
| 117 | exact m64CircleCurrent_weighted_second_derivative_zero |
| 118 | isOpen_m64AnnulusInterior hJ r r⁻¹ hclosed hdiv hp |
| 119 | |
| 120 | end PoincareMT |