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.RotationInvariance.EndLocalDiffeomorph |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.Coordinates.CanonicalPullbackCoefficients |
| 3 | |
| 4 | /-! |
| 5 | # Actual translated flows on the fixed end domain |
| 6 | |
| 7 | The supplied flow is pulled back along the actual axial translations. |
| 8 | Canonical inverse-chart coefficients and all their spatial jets agree |
| 9 | with the ambient pullback coefficients on the reference region. These |
| 10 | are the repeated charts in Morgan-Tian Section 12.5, pp. 309-319. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Topology |
| 18 | |
| 19 | namespace PoincareMT.M34 |
| 20 | |
| 21 | variable {g : RiemannianMetric 3 StandardCapSpace} (e : StandardCylindricalEnd g) |
| 22 | |
| 23 | /-- Every translation preserving positive height is smooth throughout the |
| 24 | reference region (Section 12.5, pp. 309-319). -/ |
| 25 | theorem endReferenceTranslation_contMDiffOn {s : ℝ} (hs : -3 < s) : |
| 26 | ContMDiffOn (𝓡 3) (𝓡 3) ∞ (endAxialTranslation e s) (endReferenceRegion e) := by |
| 27 | rintro _ ⟨z, hz, rfl⟩ |
| 28 | have hh : 3 < z.2 := hz.2.1 |
| 29 | exact (endAxialTranslation_contMDiffAt e s (by linarith) |
| 30 | (by linarith)).contMDiffWithinAt |
| 31 | |
| 32 | /-- Every such reference translation preserves the actual initial metric |
| 33 | (Section 12.5, pp. 309-319). -/ |
| 34 | theorem endReferenceTranslation_metric {s : ℝ} (hs : -3 < s) |
| 35 | {x : StandardCapSpace} (hx : x ∈ endReferenceRegion e) |
| 36 | (u v : TangentSpace (𝓡 3) x) : |
| 37 | g.inner x u v = g.inner (endAxialTranslation e s x) |
| 38 | (mfderiv (𝓡 3) (𝓡 3) (endAxialTranslation e s) x u) |
| 39 | (mfderiv (𝓡 3) (𝓡 3) (endAxialTranslation e s) x v) := by |
| 40 | obtain ⟨z, hz, rfl⟩ := hx |
| 41 | have hh : 3 < z.2 := hz.2.1 |
| 42 | exact endAxialTranslation_metric e s (by linarith) (by linarith) u v |
| 43 | |
| 44 | /-- The differential of each reference translation is invertible |
| 45 | (Section 12.5, pp. 309-319). -/ |
| 46 | theorem endReferenceTranslation_mfderiv_isInvertible {s : ℝ} (hs : -3 < s) |
| 47 | {x : StandardCapSpace} (hx : x ∈ endReferenceRegion e) : |
| 48 | (mfderiv (𝓡 3) (𝓡 3) (endAxialTranslation e s) x).IsInvertible := by |
| 49 | have hbij := g.mfderiv_bijective_of_pullback_eq g x |
| 50 | (fun u v => (endReferenceTranslation_metric e hs hx u v).symm) |
| 51 | let L : StandardCapSpace →L[ℝ] StandardCapSpace := |
| 52 | mfderiv (𝓡 3) (𝓡 3) (endAxialTranslation e s) x |
| 53 | exact ⟨ContinuousLinearEquiv.ofBijective L (LinearMap.ker_eq_bot.mpr hbij.1) |
| 54 | (LinearMap.range_eq_top.mpr hbij.2), rfl⟩ |
| 55 | |
| 56 | /-- The actual translated flow with its constructed canonical connection |
| 57 | on the fixed reference domain (Section 12.5, pp. 309-319). -/ |
| 58 | noncomputable def endPullbackFlow {J : Set ℝ} (F : RicciFlow 3 StandardCapSpace J) |
| 59 | (s : ℝ) (hs : -3 < s) : |
| 60 | letI := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 61 | letI := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.isManifold_singleton |
| 62 | (I := 𝓡 3) (n := ∞) |
| 63 | RicciFlow 3 (endReferenceRegion e) J := |
| 64 | F.pullbackToCanonicalDomain (endReferenceRegion e) (endReferenceRegion_isOpen e) |
| 65 | (fun x => endAxialTranslation e s x) (endReferenceTranslation_isLocalDiffeomorph e hs) |
| 66 | |
| 67 | /-- The translated flow has the prescribed ambient coefficients at every |
| 68 | total time and every reference point (Section 12.5, pp. 309-319). -/ |
| 69 | theorem endPullbackFlow_inner {J : Set ℝ} (F : RicciFlow 3 StandardCapSpace J) |
| 70 | (s : ℝ) (hs : -3 < s) : |
| 71 | letI := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 72 | letI := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.isManifold_singleton |
| 73 | (I := 𝓡 3) (n := ∞) |
| 74 | ∀ (t : ℝ) (x : endReferenceRegion e), |
| 75 | ((endPullbackFlow e F s hs).metric t).inner x = |
| 76 | (F.metric t).pullbackCoefficients (endAxialTranslation e s) x := |
| 77 | canonicalDomain_flow_inner (endReferenceRegion e) (endReferenceRegion_isOpen e) |
| 78 | (endAxialTranslation e s) (endReferenceTranslation_contMDiffOn e hs) |
| 79 | (endReferenceTranslation_isLocalDiffeomorph e hs) F |
| 80 | |
| 81 | /-- Inverse-chart coefficients of the actual translated flow agree on the |
| 82 | open reference region (Section 12.5, pp. 309-319). -/ |
| 83 | theorem endPullbackFlow_chart_coefficients {J : Set ℝ} (F : RicciFlow 3 StandardCapSpace J) |
| 84 | (s : ℝ) (hs : -3 < s) : |
| 85 | letI := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 86 | letI := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.isManifold_singleton |
| 87 | (I := 𝓡 3) (n := ∞) |
| 88 | ∀ (t : ℝ) (p : endReferenceRegion e) (x : StandardCapSpace), x ∈ endReferenceRegion e → |
| 89 | ((endPullbackFlow e F s hs).metric t).pullbackCoefficients |
| 90 | (extChartAt (𝓡 3) p).symm x = |
| 91 | (F.metric t).pullbackCoefficients (endAxialTranslation e s) x := by |
| 92 | let := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 93 | let := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.isManifold_singleton |
| 94 | (I := 𝓡 3) (n := ∞) |
| 95 | intro t p x hx |
| 96 | exact canonicalDomain_pullback_chart_coefficients (endReferenceRegion e) |
| 97 | (endReferenceRegion_isOpen e) (endAxialTranslation e s) |
| 98 | (endReferenceTranslation_contMDiffOn e hs) |
| 99 | (endReferenceTranslation_isLocalDiffeomorph e hs) (F.metric t) p ⟨x, hx⟩ |
| 100 | |
| 101 | /-- Every finite spatial jet of the actual translated metric is the jet of |
| 102 | the ambient pullback field on the reference domain (Section 12.5, pp. 309-319). -/ |
| 103 | theorem endPullbackFlow_iteratedFDeriv {J : Set ℝ} (F : RicciFlow 3 StandardCapSpace J) |
| 104 | (s : ℝ) (hs : -3 < s) : |
| 105 | letI := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 106 | letI := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.isManifold_singleton |
| 107 | (I := 𝓡 3) (n := ∞) |
| 108 | ∀ (t : ℝ) (p : endReferenceRegion e) (j : ℕ) (x : StandardCapSpace), |
| 109 | x ∈ endReferenceRegion e → |
| 110 | iteratedFDeriv ℝ j (((endPullbackFlow e F s hs).metric t).pullbackCoefficients |
| 111 | (extChartAt (𝓡 3) p).symm) x = |
| 112 | iteratedFDeriv ℝ j ((F.metric t).pullbackCoefficients (endAxialTranslation e s)) x := by |
| 113 | let := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 114 | let := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.isManifold_singleton |
| 115 | (I := 𝓡 3) (n := ∞) |
| 116 | intro t p j x hx |
| 117 | have heq : ((endPullbackFlow e F s hs).metric t).pullbackCoefficients |
| 118 | (extChartAt (𝓡 3) p).symm =ᶠ[𝓝 x] |
| 119 | (F.metric t).pullbackCoefficients (endAxialTranslation e s) := by |
| 120 | filter_upwards [(endReferenceRegion_isOpen e).mem_nhds hx] with y hy |
| 121 | exact endPullbackFlow_chart_coefficients e F s hs t p y hy |
| 122 | exact (heq.iteratedFDeriv (𝕜 := ℝ) j).eq_of_nhds |
| 123 | |
| 124 | end PoincareMT.M34 |