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.RicciFlow.Surgery.StandardCap.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.InitialAxialDifferential |
| 3 | |
| 4 | /-! |
| 5 | # Literal metric coefficients after initial axial normalization |
| 6 | |
| 7 | Morgan-Tian Theorem 12.32, pp. 326-327. Each axial tensor index |
| 8 | contributes exactly the chosen axial speed. The resulting identity |
| 9 | retains the original actual metric coefficient at the rescaled point; |
| 10 | it is the input for the closed-time-interval finite-jet comparison. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | namespace PoincareMT.M35 |
| 20 | |
| 21 | /-- The actual coefficient of the normalized spatial map, before |
| 22 | the central scalar multiplication. -/ |
| 23 | theorem initial_axial_patch_coefficient |
| 24 | (g : RiemannianMetric 3 StandardCapSpace) {length : ℝ} {x : StandardCapSpace} |
| 25 | (N : StandardCylinderPatch length x) (c l : ℝ) (hc : 0 < c) (hl : 0 < l) |
| 26 | (hcl : c * l ≤ length) (q : UnitTwoSphere) (p : RoundCylinderCoordinates) |
| 27 | (hp : p.2 ∈ Ioo (-l) l) (i j : Fin 3) : |
| 28 | roundCylinderTensorCoefficient |
| 29 | (roundCylinderPullback g (N.axialRescale c l hc hl hcl).coordinate) |
| 30 | (chartAt (EuclideanSpace ℝ (Fin 2)) q) p i j = |
| 31 | (if i = 2 then c else 1) * (if j = 2 then c else 1) * |
| 32 | roundCylinderTensorCoefficient (roundCylinderPullback g N.coordinate) |
| 33 | (chartAt (EuclideanSpace ℝ (Fin 2)) q) (p.1, c * p.2) i j := by |
| 34 | let ch := chartAt (EuclideanSpace ℝ (Fin 2)) q |
| 35 | let d := mfderiv (𝓡 2) (𝓡 2) ch.symm p.1 |
| 36 | let w (a : Fin 3) : RoundCylinderCoordinates := |
| 37 | (d (roundCylinderCoordinateBasis a).1, (roundCylinderCoordinateBasis a).2) |
| 38 | have hw (a : Fin 3) : (d (roundCylinderCoordinateBasis a).1, |
| 39 | c * (roundCylinderCoordinateBasis a).2) = |
| 40 | (if a = 2 then c else 1) • w a := by |
| 41 | fin_cases a <;> simp [w, roundCylinderCoordinateBasis] |
| 42 | have hh := initial_axial_patch_pullback g N c l hc hl hcl (ch.symm p.1, p.2) hp |
| 43 | (w i) (w j) |
| 44 | change roundCylinderPullback g (N.axialRescale c l hc hl hcl).coordinate |
| 45 | (ch.symm p.1, p.2) (w i) (w j) = _ |
| 46 | rw [hh] |
| 47 | change roundCylinderPullback g N.coordinate (ch.symm p.1, c * p.2) |
| 48 | (d (roundCylinderCoordinateBasis i).1, c * (roundCylinderCoordinateBasis i).2) |
| 49 | (d (roundCylinderCoordinateBasis j).1, c * (roundCylinderCoordinateBasis j).2) = _ |
| 50 | rw [hw i, hw j] |
| 51 | change g.inner (N.coordinate (ch.symm p.1, c * p.2)) |
| 52 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) N.coordinate |
| 53 | (ch.symm p.1, c * p.2) ((if i = 2 then c else 1) • w i)) |
| 54 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) N.coordinate |
| 55 | (ch.symm p.1, c * p.2) ((if j = 2 then c else 1) • w j)) = _ |
| 56 | rw [map_smul, map_smul, map_smul, smul_apply, map_smul] |
| 57 | simp only [smul_eq_mul] |
| 58 | dsimp only [roundCylinderTensorCoefficient, roundCylinderPullback, ch, w, d] |
| 59 | ring |
| 60 | |
| 61 | /-- The rescaled model differs from the desired normalized model |
| 62 | only by its actual scalar-time normalization and its axial speed. -/ |
| 63 | theorem initial_axial_model_error (Q c u v : ℝ) (hunit : Q * c ^ 2 = 1) |
| 64 | (q : UnitTwoSphere) (p : RoundCylinderCoordinates) (i j : Fin 3) : |
| 65 | Q * (if i = 2 then c else 1) * (if j = 2 then c else 1) * |
| 66 | roundCylinderGram v (chartAt (EuclideanSpace ℝ (Fin 2)) q) (p.1, c * p.2) i j - |
| 67 | roundCylinderGram u (chartAt (EuclideanSpace ℝ (Fin 2)) q) p i j = |
| 68 | (Q * (1 - v) - (1 - u)) * |
| 69 | ((roundCylinderGram 0 (chartAt (EuclideanSpace ℝ (Fin 2)) q) p i j) - |
| 70 | (roundCylinderCoordinateBasis i).2 * (roundCylinderCoordinateBasis j).2) := by |
| 71 | rw [roundCylinderGram_apply, roundCylinderGram_apply, roundCylinderGram_apply] |
| 72 | fin_cases i <;> fin_cases j <;> simp [roundCylinderCoordinateBasis, pow_two] |
| 73 | all_goals ring_nf at hunit ⊢ |
| 74 | all_goals nlinarith only [hunit] |
| 75 | |
| 76 | end PoincareMT.M35 |