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.Existence.Analysis.Coordinates.RoundCylinderParametrizedJets |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Analysis.Coordinates.SphereChartMetric |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Asymptotics.EndCylinderPullback |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.InitialEstimates.EndTranslation |
| 5 | import PoincareLib.Geometry.RicciFlow.CanonicalNeighborhood.Neck.Convergence.CylinderCoefficients |
| 6 | |
| 7 | /-! |
| 8 | # Centered sphere-chart maps into the original end |
| 9 | |
| 10 | The fixed geometric map sending cylinder coordinates through the chosen |
| 11 | sphere chart into the supplied end is smooth above height zero. Its |
| 12 | pullback of the ambient cylinder coefficients is the evolving Euclidean |
| 13 | model used by the frozen jet error. This is Proposition 12.7, pp. 298-299 |
| 14 | and cylinder-asymptotics-by-end-energy.md. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set Filter |
| 21 | open scoped Manifold ContDiff Topology InnerProductSpace |
| 22 | |
| 23 | namespace PoincareMT.M34 |
| 24 | |
| 25 | local notation "E₂" => EuclideanSpace ℝ (Fin 2) |
| 26 | |
| 27 | /-- The supplied end coordinates through the literal chosen sphere chart |
| 28 | (Proposition 12.7, pp. 298-299). -/ |
| 29 | noncomputable def endSphereCylinderMap {g : RiemannianMetric 3 StandardCapSpace} |
| 30 | (e : StandardCylindricalEnd g) (q : UnitTwoSphere) |
| 31 | (p : RoundCylinderCoordinates) : StandardCapSpace := |
| 32 | e.coordinate ((chartAt E₂ q).symm p.1, p.2) |
| 33 | |
| 34 | /-- The evolving Euclidean model is the frozen cylinder inner product in |
| 35 | the chosen sphere chart (Proposition 12.7, pp. 298-299). -/ |
| 36 | theorem evolvingRoundCylinderModelCoefficients_eq_standardCylinderInner |
| 37 | (u : ℝ) (q : UnitTwoSphere) (p v w : RoundCylinderCoordinates) : |
| 38 | evolvingRoundCylinderModelCoefficients u p v w = |
| 39 | standardCylinderInner u ((chartAt E₂ q).symm p.1, p.2) |
| 40 | (mfderiv (𝓡 2) (𝓡 2) (chartAt E₂ q).symm p.1 v.1, v.2) |
| 41 | (mfderiv (𝓡 2) (𝓡 2) (chartAt E₂ q).symm p.1 w.1, w.2) := by |
| 42 | let : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin 3)) = 2 + 1) := ⟨by simp⟩ |
| 43 | simp only [evolvingRoundCylinderModelCoefficients_apply, standardCylinderInner] |
| 44 | have h := inner_mfderiv_sphere_chart_symm (E := EuclideanSpace ℝ (Fin 3)) (n := 2) |
| 45 | q p.1 v.1 w.1 |
| 46 | rw [h] |
| 47 | ring |
| 48 | |
| 49 | variable {g : RiemannianMetric 3 StandardCapSpace} (e : StandardCylindricalEnd g) |
| 50 | |
| 51 | /-- The centered chart map is smooth at every positive height |
| 52 | (Proposition 12.7, pp. 298-299). -/ |
| 53 | theorem endSphereCylinderMap_contMDiffAt (q : UnitTwoSphere) |
| 54 | {p : RoundCylinderCoordinates} (hp : 0 < p.2) : |
| 55 | ContMDiffAt 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 3) ∞ |
| 56 | (endSphereCylinderMap e q) p := |
| 57 | (end_coordinate_contMDiffAt e (z := ((chartAt E₂ q).symm p.1, p.2)) hp).comp p |
| 58 | (cylinderChart_symm_smooth q p) |
| 59 | |
| 60 | /-- The derivative of the centered chart map retains the sphere-chart |
| 61 | inverse in the angular factor (Proposition 12.7, pp. 298-299). -/ |
| 62 | theorem endSphereCylinderMap_mfderiv (q : UnitTwoSphere) |
| 63 | {p : RoundCylinderCoordinates} (hp : 0 < p.2) |
| 64 | (v : RoundCylinderCoordinates) : |
| 65 | mfderiv 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 3) (endSphereCylinderMap e q) p v = |
| 66 | mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) e.coordinate |
| 67 | ((chartAt E₂ q).symm p.1, p.2) |
| 68 | (mfderiv (𝓡 2) (𝓡 2) (chartAt E₂ q).symm p.1 v.1, v.2) := by |
| 69 | have hf := (end_coordinate_contMDiffAt e |
| 70 | (z := ((chartAt E₂ q).symm p.1, p.2)) hp).mdifferentiableAt (by simp) |
| 71 | let c := chartAt E₂ q |
| 72 | have hc : MDifferentiableAt (𝓡 2) (𝓡 2) c.symm p.1 := by |
| 73 | apply ((contMDiffOn_chart_symm (I := 𝓡 2) (n := ∞) (x := q)).contMDiffAt |
| 74 | ?_).mdifferentiableAt (by simp) |
| 75 | exact c.open_target.mem_nhds (by rw [roundCylinder_sphereChart_target]; trivial) |
| 76 | let L₁ := ContinuousLinearMap.fst ℝ E₂ ℝ |
| 77 | let L₂ := ContinuousLinearMap.snd ℝ E₂ ℝ |
| 78 | have h₁ := hc.comp p L₁.mdifferentiableAt |
| 79 | have h₂ := L₂.mdifferentiableAt (x := p) |
| 80 | have hh := mfderiv_comp p hf (h₁.prodMk h₂) |
| 81 | have hL₁ : mfderiv 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 2) Prod.fst p = L₁ := |
| 82 | L₁.mfderiv_eq |
| 83 | have hL₂ : mfderiv 𝓘(ℝ, RoundCylinderCoordinates) 𝓘(ℝ, ℝ) L₂ p = L₂ := |
| 84 | L₂.mfderiv_eq |
| 85 | rw [mfderiv_prodMk h₁ h₂, mfderiv_comp p hc L₁.mdifferentiableAt, hL₁, hL₂] at hh |
| 86 | exact congrArg (fun L => L v) hh |
| 87 | |
| 88 | /-- Above height two, the ambient cylinder coefficients pull back to the |
| 89 | evolving Euclidean model in the chosen chart (Proposition 12.7, pp. 298-299). -/ |
| 90 | theorem endCylinderCoefficients_endSphereCylinderMap (s : ℝ) (q : UnitTwoSphere) |
| 91 | {p : RoundCylinderCoordinates} (hp : 2 < p.2) |
| 92 | (v w : RoundCylinderCoordinates) : |
| 93 | endCylinderCoefficients e s (endSphereCylinderMap e q p) |
| 94 | (mfderiv 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 3) (endSphereCylinderMap e q) p v) |
| 95 | (mfderiv 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 3) (endSphereCylinderMap e q) p w) = |
| 96 | evolvingRoundCylinderModelCoefficients s p v w := by |
| 97 | have hp0 : 0 < p.2 := lt_trans (by norm_num : (0 : ℝ) < 2) hp |
| 98 | rw [endSphereCylinderMap_mfderiv e q hp0 v, endSphereCylinderMap_mfderiv e q hp0 w] |
| 99 | change endCylinderCoefficients e s |
| 100 | (e.coordinate ((chartAt E₂ q).symm p.1, p.2)) |
| 101 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) e.coordinate |
| 102 | ((chartAt E₂ q).symm p.1, p.2) |
| 103 | (mfderiv (𝓡 2) (𝓡 2) (chartAt E₂ q).symm p.1 v.1, v.2)) |
| 104 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) e.coordinate |
| 105 | ((chartAt E₂ q).symm p.1, p.2) |
| 106 | (mfderiv (𝓡 2) (𝓡 2) (chartAt E₂ q).symm p.1 w.1, w.2)) = _ |
| 107 | rw [endCylinderCoefficients_coordinate e s hp] |
| 108 | exact (evolvingRoundCylinderModelCoefficients_eq_standardCylinderInner |
| 109 | s q p v w).symm |
| 110 | |
| 111 | /-- Axial translation of the centered chart map is the same map at the |
| 112 | translated height (Proposition 12.7, pp. 298-299). -/ |
| 113 | theorem endAxialTranslation_endSphereCylinderMap (j : ℕ) (q : UnitTwoSphere) |
| 114 | {p : RoundCylinderCoordinates} (hp : 0 ≤ p.2) : |
| 115 | endAxialTranslation e j (endSphereCylinderMap e q p) = |
| 116 | e.coordinate ((chartAt E₂ q).symm p.1, p.2 + j) := |
| 117 | endAxialTranslation_coordinate e j (z := ((chartAt E₂ q).symm p.1, p.2)) hp |
| 118 | |
| 119 | end PoincareMT.M34 |