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.Compatibility.SourceNames |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Annulus.SliceAcceleration |
| 3 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Modulus.MinimumHarmonic |
| 4 | |
| 5 | /-! |
| 6 | # Intrinsic zero tension at the actual annular modulus |
| 7 | |
| 8 | Local target charts transfer the weighted coordinate equation to the two |
| 9 | genuine covariant slice accelerations. This retains the free modulus and |
| 10 | does not require one chart for the entire annulus. Source: the harmonic |
| 11 | annulus argument in Morgan--Tian Lemma 19.15, pp. 447-449. |
| 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 | open Proofs.M09 CoordinateExponential ConnectionVariation |
| 25 | |
| 26 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] [T2Space M] [CompactSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 28 | {g : RiemannianMetric n M} {c0 c1 : ℝ → M} |
| 29 | |
| 30 | /-- The actual modulus-conformal area minimum has zero weighted intrinsic tension at each |
| 31 | smooth interior point, including rank-zero points. Source: Morgan--Tian (2007), Lemma 19.15 |
| 32 | and Corollary 19.16, pp. 447-449; project derivation |
| 33 | `proof-work/tasks/M64/reports/2026-09-27-annulus-energy-and-finite-variation-derivation.md`. -/ |
| 34 | theorem m64Annulus_intrinsic_tension_eq_zero_of_modulus_minimum |
| 35 | (D : LeviCivitaData g) (A : M64Annulus g c0 c1) {r : ℝ} (hr : 0 < r) |
| 36 | (hminimum : A.area = m64LeastAnnulusArea g c0 c1) |
| 37 | (hconformal : ∀ᵐ p ∂volume.restrict m64AnnulusDomain, |
| 38 | r * m60AreaGram g A.map p 0 0 = r⁻¹ * m60AreaGram g A.map p 1 1 ∧ |
| 39 | m60AreaGram g A.map p 0 1 = 0) |
| 40 | (hA : ContMDiffOn (𝓡 2) (𝓡 n) ∞ A.map m64AnnulusInterior) |
| 41 | {x s : ℝ} (hp : annulusPoint x s ∈ m64AnnulusInterior) : |
| 42 | r • rampHorizontalCovariantDerivative D (fun y => A.map (annulusPoint y s)) |
| 43 | (fun y => curveVelocity (fun z => A.map (annulusPoint z s)) y) x + |
| 44 | r⁻¹ • rampHorizontalCovariantDerivative D (fun y => A.map (annulusPoint x y)) |
| 45 | (fun y => curveVelocity (fun z => A.map (annulusPoint x z)) y) s = 0 := by |
| 46 | let p := annulusPoint x s |
| 47 | let b := A.map p |
| 48 | let c := extChartAt (𝓡 n) b |
| 49 | let U := m64AnnulusInterior ∩ A.map ⁻¹' c.source |
| 50 | let u := c ∘ A.map |
| 51 | let B := g.pullbackCoefficients c.symm |
| 52 | let e0 : LoopPlane := EuclideanSpace.single (0 : Fin 2) 1 |
| 53 | let e1 : LoopPlane := EuclideanSpace.single (1 : Fin 2) 1 |
| 54 | have hU : IsOpen U := hA.continuousOn.isOpen_inter_preimage |
| 55 | isOpen_m64AnnulusInterior (isOpen_extChartAt_source b) |
| 56 | have hpU : p ∈ U := ⟨hp, mem_extChartAt_source b⟩ |
| 57 | have hAU := hA.mono (show U ⊆ m64AnnulusInterior from inter_subset_left) |
| 58 | have hchart : MapsTo A.map U c.source := fun _ hq => hq.2 |
| 59 | have hharm := m64Annulus_chart_harmonic_of_modulus_minimum |
| 60 | A hr hminimum hconformal b hU inter_subset_left hAU hchart p hpU |
| 61 | change r • covDerivAlong (christoffelBilinear B) u |
| 62 | (fun q => fderiv ℝ u q (EuclideanSpace.basisFun (Fin 2) ℝ 0)) |
| 63 | (EuclideanSpace.basisFun (Fin 2) ℝ 0) p + |
| 64 | r⁻¹ • covDerivAlong (christoffelBilinear B) u |
| 65 | (fun q => fderiv ℝ u q (EuclideanSpace.basisFun (Fin 2) ℝ 1)) |
| 66 | (EuclideanSpace.basisFun (Fin 2) ℝ 1) p = 0 at hharm |
| 67 | simp only [EuclideanSpace.basisFun_apply] at hharm |
| 68 | have hline0 : ContDiff ℝ ∞ (fun y => annulusPoint y s) := by |
| 69 | apply (contDiff_piLp 2).mpr |
| 70 | intro i |
| 71 | fin_cases i |
| 72 | · simpa [annulusPoint] using! (contDiff_id : ContDiff ℝ ∞ (id : ℝ → ℝ)) |
| 73 | · simpa [annulusPoint] using (contDiff_const : ContDiff ℝ ∞ (fun _ : ℝ => s)) |
| 74 | have hline1 : ContDiff ℝ ∞ (annulusPoint x) := by |
| 75 | apply (contDiff_piLp 2).mpr |
| 76 | intro i |
| 77 | fin_cases i |
| 78 | · simpa [annulusPoint] using (contDiff_const : ContDiff ℝ ∞ (fun _ : ℝ => x)) |
| 79 | · simpa [annulusPoint] using! (contDiff_id : ContDiff ℝ ∞ (id : ℝ → ℝ)) |
| 80 | let J0 := (fun y => annulusPoint y s) ⁻¹' U |
| 81 | let J1 := (annulusPoint x) ⁻¹' U |
| 82 | have hJ0 : IsOpen J0 := hU.preimage hline0.continuous |
| 83 | have hJ1 : IsOpen J1 := hU.preimage hline1.continuous |
| 84 | have hacc0 := m64Annulus_slice_acceleration_in_chart D b hU hAU hchart |
| 85 | hJ0 hline0.contDiffOn (fun _ hq => hq) e0 |
| 86 | (fun y _ => m64AnnulusPoint_horizontal_hasDerivAt s y) hpU |
| 87 | have hacc1 := m64Annulus_slice_acceleration_in_chart D b hU hAU hchart |
| 88 | hJ1 hline1.contDiffOn (fun _ hq => hq) e1 |
| 89 | (fun y _ => m64AnnulusPoint_vertical_hasDerivAt x y) hpU |
| 90 | have hsum := congrArg₂ (fun v w : TangentSpace (𝓡 n) (A.map p) => r • v + r⁻¹ • w) |
| 91 | hacc0 hacc1 |
| 92 | apply hsum.trans |
| 93 | have hz := congrArg (fun v : EuclideanSpace ℝ (Fin n) => |
| 94 | chartVectorField b v (A.map p)) hharm |
| 95 | simpa only [chartVectorField, VectorField.mpullback, map_add, map_smul, map_zero] using hz |
| 96 | |
| 97 | end PoincareMT |