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.Lifetime.Coordinates.StrongNeckBilinearReadout |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Analysis.Coordinates.RoundCylinderParametrizedJets |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Singular.Geometry |
| 4 | |
| 5 | /-! |
| 6 | # Literal cylinder coefficients in a fixed target chart |
| 7 | |
| 8 | The product-chart chain rule identifies the frozen tensor coefficients |
| 9 | with the actual bilinear pullback through a fixed target chart. This is |
| 10 | the local spatial-jet identity for Morgan-Tian Theorem 12.28, pp. 323-324. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option maxSynthPendingDepth 12 |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M34 |
| 23 | |
| 24 | local notation "E₂" => EuclideanSpace ℝ (Fin 2) |
| 25 | local notation "E₃" => EuclideanSpace ℝ (Fin 3) |
| 26 | |
| 27 | /-- The actual chosen product-chart differential has the inverse sphere |
| 28 | chart in the first factor and the identity in the axial factor. -/ |
| 29 | theorem mfderiv_comp_chosen_cylinder_chart |
| 30 | {M : Type*} [TopologicalSpace M] [ChartedSpace E₃ M] |
| 31 | [IsManifold (𝓡 3) ∞ M] (q : UnitTwoSphere) |
| 32 | (f : RoundCylinderSpace → M) (p : RoundCylinderCoordinates) |
| 33 | (hf : MDifferentiableAt ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) f |
| 34 | ((chartAt E₂ q).symm p.1, p.2)) (v : RoundCylinderCoordinates) : |
| 35 | mfderiv 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 3) |
| 36 | (fun y => f ((chartAt E₂ q).symm y.1, y.2)) p v = |
| 37 | mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) f |
| 38 | ((chartAt E₂ q).symm p.1, p.2) |
| 39 | (mfderiv (𝓡 2) (𝓡 2) (chartAt E₂ q).symm p.1 v.1, v.2) := by |
| 40 | let c := chartAt E₂ q |
| 41 | have hc : MDifferentiableAt (𝓡 2) (𝓡 2) c.symm p.1 := by |
| 42 | apply ((contMDiffOn_chart_symm (I := 𝓡 2) (n := ∞) (x := q)).contMDiffAt |
| 43 | ?_).mdifferentiableAt (by simp) |
| 44 | exact c.open_target.mem_nhds (by rw [roundCylinder_sphereChart_target]; trivial) |
| 45 | let A := ContinuousLinearMap.fst ℝ E₂ ℝ |
| 46 | let B := ContinuousLinearMap.snd ℝ E₂ ℝ |
| 47 | have ha := hc.comp p A.mdifferentiableAt |
| 48 | have hb := B.mdifferentiableAt (x := p) |
| 49 | have h := mfderiv_comp p hf (ha.prodMk hb) |
| 50 | have hA : mfderiv 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 2) Prod.fst p = A := |
| 51 | A.mfderiv_eq |
| 52 | have hB : mfderiv 𝓘(ℝ, RoundCylinderCoordinates) 𝓘(ℝ, ℝ) B p = B := |
| 53 | B.mfderiv_eq |
| 54 | rw [mfderiv_prodMk ha hb, mfderiv_comp p hc A.mdifferentiableAt, hA, hB] at h |
| 55 | exact congrArg (fun L => L v) h |
| 56 | |
| 57 | variable {J : Set ℝ} {L : BlowupLimitFlow.{u} J} |
| 58 | |
| 59 | private local instance : TopologicalSpace L.carrier.carrier := L.carrier.topologicalSpace |
| 60 | private local instance : ChartedSpace E₃ L.carrier.carrier := L.carrier.chartedSpace |
| 61 | private local instance : IsManifold (𝓡 3) ∞ L.carrier.carrier := L.carrier.isManifold |
| 62 | |
| 63 | /-- On an actual target-chart neighborhood, the scalar difference of |
| 64 | the frozen cylinder tensors is the reconstructed bilinear difference |
| 65 | pulled back through that target chart. -/ |
| 66 | theorem cylinder_coefficient_difference_fixed_chart |
| 67 | {G : GeneralizedRicciFlowData.{u}} {origin scale : ℝ} {K : Set ℝ} |
| 68 | {U : Set L.sliceCarrier.carrier} |
| 69 | (e : GeneralizedFlowCylinder G L.sliceCarrier origin scale K U) |
| 70 | (coordinate : RoundCylinderSpace → L.sliceCarrier.carrier) |
| 71 | (q : UnitTwoSphere) (a : L.sliceCarrier.carrier) {s : ℝ} (hs : s ∈ K) |
| 72 | (p : RoundCylinderCoordinates) |
| 73 | (hf : MDifferentiableAt ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) coordinate |
| 74 | ((chartAt E₂ q).symm p.1, p.2)) |
| 75 | (ha : coordinate ((chartAt E₂ q).symm p.1, p.2) ∈ (extChartAt (𝓡 3) a).source) |
| 76 | (i j : Fin 3) : |
| 77 | let φ := fun y : RoundCylinderCoordinates => coordinate ((chartAt E₂ q).symm y.1, y.2) |
| 78 | let f := (extChartAt (𝓡 3) a) ∘ φ |
| 79 | roundCylinderTensorCoefficient (generalizedCylinderPullback e coordinate s) |
| 80 | (chartAt E₂ q) p i j - |
| 81 | roundCylinderTensorCoefficient (roundCylinderPullback (L.flow.metric s) coordinate) |
| 82 | (chartAt E₂ q) p i j = |
| 83 | ((blowupCoordinateBilinear e a s (f p) - limitCoordinateBilinear L a s (f p)).bilinearComp |
| 84 | (fderiv ℝ f p) (fderiv ℝ f p)) |
| 85 | (roundCylinderCoordinateBasis i) (roundCylinderCoordinateBasis j) := by |
| 86 | dsimp only |
| 87 | have hφ := hf.comp p ((cylinderChart_symm_smooth q p).mdifferentiableAt (by simp)) |
| 88 | have hb := blowupCoordinateBilinear_pullback_apply e a hs hφ ha |
| 89 | (roundCylinderCoordinateBasis i) (roundCylinderCoordinateBasis j) |
| 90 | have hl := limitCoordinateBilinear_pullback_apply a s hφ ha |
| 91 | (roundCylinderCoordinateBasis i) (roundCylinderCoordinateBasis j) |
| 92 | simp only [ContinuousLinearMap.bilinearComp_apply, sub_apply] at hb hl ⊢ |
| 93 | have hv := mfderiv_comp_chosen_cylinder_chart q coordinate p hf (roundCylinderCoordinateBasis i) |
| 94 | have hw := mfderiv_comp_chosen_cylinder_chart q coordinate p hf (roundCylinderCoordinateBasis j) |
| 95 | refine ((congrArg₂ (fun v w : ℝ => v - w) hb hl).trans ?_).symm |
| 96 | simp only [generalizedCylinderPullback, dif_pos hs, roundCylinderTensorCoefficient, |
| 97 | roundCylinderPullback] |
| 98 | exact congrArg₂ (fun v w : ℝ => v - w) |
| 99 | (congrArg₂ (fun V W : E₃ => e.pullbackInner s hs |
| 100 | (coordinate ((chartAt E₂ q).symm p.1, p.2)) V W) hv hw) |
| 101 | (congrArg₂ (fun V W : E₃ => (L.flow.metric s).inner |
| 102 | (coordinate ((chartAt E₂ q).symm p.1, p.2)) V W) hv hw) |
| 103 | |
| 104 | end PoincareMT.M34 |