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 | |
| 3 | /-! |
| 4 | # Smoothness on the entire finite cylinder |
| 5 | |
| 6 | The actual scalar pullback coefficients of a smooth cylinder coordinate |
| 7 | are smooth on every full sphere-chart target times the axial interval. |
| 8 | This supplies the separate smoothness field in Proposition 12.7, |
| 9 | pp. 298-299; see asymptotic-certificate-patches.md. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option maxSynthPendingDepth 12 |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Topology |
| 18 | open Poincare.Geometry.Riemannian.SpaceForm |
| 19 | |
| 20 | namespace PoincareMT.M34 |
| 21 | |
| 22 | /-- Smooth actual cylinder coordinates give the full frozen coefficient |
| 23 | smoothness predicate (Proposition 12.7, pp. 298-299). -/ |
| 24 | theorem roundCylinderTensorSmoothOn_pullback |
| 25 | {M : Type*} [TopologicalSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 27 | (g : RiemannianMetric 3 M) {ε : ℝ} {f : RoundCylinderSpace → M} |
| 28 | (hf : ContMDiffOn ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ f |
| 29 | (univ ×ˢ Ioo (-ε⁻¹) ε⁻¹)) : |
| 30 | RoundCylinderTensorSmoothOn ε (roundCylinderPullback g f) := by |
| 31 | intro q a b x hx |
| 32 | let c := chartAt (EuclideanSpace ℝ (Fin 2)) q |
| 33 | let U : Set RoundCylinderSpace := univ ×ˢ Ioo (-ε⁻¹) ε⁻¹ |
| 34 | have hU : IsOpen U := isOpen_univ.prod isOpen_Ioo |
| 35 | have hxU : (c.symm x.1, x.2) ∈ U := ⟨mem_univ _, hx.2⟩ |
| 36 | let φ : RoundCylinderCoordinates → M := fun p => f (c.symm p.1, p.2) |
| 37 | have hmap : ContMDiffAt 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 3) ∞ φ x := |
| 38 | (hf.contMDiffAt (hU.mem_nhds hxU)).comp x (cylinderChart_symm_smooth q x) |
| 39 | have hscalar : ContDiffAt ℝ ∞ (fun y => g.parametrizedCoefficients φ y |
| 40 | (roundCylinderCoordinateBasis a) (roundCylinderCoordinateBasis b)) x := |
| 41 | ((g.contDiffAt_parametrizedCoefficients hmap).clm_apply contDiffAt_const).clm_apply |
| 42 | contDiffAt_const |
| 43 | have heq : (fun y => roundCylinderTensorCoefficient (roundCylinderPullback g f) c y a b) |
| 44 | =ᶠ[𝓝 x] (fun y => g.parametrizedCoefficients φ y |
| 45 | (roundCylinderCoordinateBasis a) (roundCylinderCoordinateBasis b)) := by |
| 46 | have hnear := (cylinderChart_symm_smooth q).continuous.continuousAt.preimage_mem_nhds |
| 47 | (hU.mem_nhds hxU) |
| 48 | filter_upwards [hnear] with y hy |
| 49 | have h := roundCylinderTensorCoefficient_pullback_eq g q f y |
| 50 | ((hf.contMDiffAt (hU.mem_nhds hy)).mdifferentiableAt (by simp)) a b |
| 51 | exact h |
| 52 | exact (hscalar.congr_of_eventuallyEq heq).contDiffWithinAt |
| 53 | |
| 54 | end PoincareMT.M34 |