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.Asymptotics.EndCylinderParameterBounds |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Asymptotics.EndCylinderJets |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Analysis.Coordinates.BilinearPullbackJetBound |
| 4 | |
| 5 | /-! |
| 6 | # Vanishing end errors in the literal cylinder parameters |
| 7 | |
| 8 | The actual parametrized metric difference is the bilinear pullback of the |
| 9 | native ambient coefficient difference. Uniform chart jets transfer the |
| 10 | proved ambient decay to every ordinary parameter jet. This is Proposition |
| 11 | 12.7, pp. 298-299 and parametrized-pullback-jet-decay.md. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option maxSynthPendingDepth 12 |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Topology BigOperators |
| 20 | |
| 21 | namespace PoincareMT.M34 |
| 22 | |
| 23 | open DifferenceEnergy Poincare.Analysis.Calculus |
| 24 | |
| 25 | variable {g : RiemannianMetric 3 StandardCapSpace} |
| 26 | |
| 27 | /-- The translated cap metric minus the evolving model in the literal |
| 28 | product parameter norm (Proposition 12.7, pp. 298-299). -/ |
| 29 | noncomputable def endCylinderParameterDifference (e : StandardCylindricalEnd g) |
| 30 | {J : Set ℝ} (F : RicciFlow 3 StandardCapSpace J) (j : ℕ) (t : ℝ) |
| 31 | (q : UnitTwoSphere) (p : RoundCylinderCoordinates) : |
| 32 | RoundCylinderCoordinates →L[ℝ] RoundCylinderCoordinates →L[ℝ] ℝ := |
| 33 | (F.metric t).parametrizedCoefficients |
| 34 | (endAxialTranslation e j ∘ endSphereCylinderMap e q) p - |
| 35 | evolvingRoundCylinderModelCoefficients t p |
| 36 | |
| 37 | /-- The actual coefficient error is the bilinear pullback of the native |
| 38 | error on a whole open end region (Proposition 12.7, pp. 298-299). -/ |
| 39 | theorem endCylinderParameterDifference_eq_pullback (e : StandardCylindricalEnd g) |
| 40 | {J : Set ℝ} (F : RicciFlow 3 StandardCapSpace J) (j : ℕ) (t : ℝ) |
| 41 | (q : UnitTwoSphere) {p : RoundCylinderCoordinates} (hp : 2 < p.2) : |
| 42 | endCylinderParameterDifference e F j t q p = |
| 43 | (endCylinderDifferenceCoefficients e F j t (endSphereCylinderMap e q p)).bilinearComp |
| 44 | (fderiv ℝ (endSphereCylinderMap e q) p) |
| 45 | (fderiv ℝ (endSphereCylinderMap e q) p) := by |
| 46 | have hp0 : 0 < p.2 := lt_trans (by norm_num : (0 : ℝ) < 2) hp |
| 47 | have hj : 0 < p.2 + (j : ℝ) := add_pos_of_pos_of_nonneg hp0 (Nat.cast_nonneg j) |
| 48 | have hf := (endSphereCylinderMap_contMDiffAt e q hp0).mdifferentiableAt (by simp) |
| 49 | have hτ₀ := endAxialTranslation_contMDiffAt e (j : ℝ) |
| 50 | (z := ((chartAt (EuclideanSpace ℝ (Fin 2)) q).symm p.1, p.2)) hp0 hj |
| 51 | have hτ := hτ₀.mdifferentiableAt (by simp) |
| 52 | have hd := mfderiv_comp p hτ hf |
| 53 | have hm (v w : RoundCylinderCoordinates) := |
| 54 | endCylinderCoefficients_endSphereCylinderMap e t q hp v w |
| 55 | have heq (v w : RoundCylinderCoordinates) : |
| 56 | endCylinderParameterDifference e F j t q p v w = |
| 57 | endCylinderDifferenceCoefficients e F j t (endSphereCylinderMap e q p) |
| 58 | (mfderiv 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 3) (endSphereCylinderMap e q) p v) |
| 59 | (mfderiv 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 3) (endSphereCylinderMap e q) p w) := by |
| 60 | simp only [endCylinderParameterDifference, sub_apply, |
| 61 | RiemannianMetric.parametrizedCoefficients_apply] |
| 62 | rw [hd] |
| 63 | change _ = (F.metric t).pullbackCoefficients (endAxialTranslation e j) |
| 64 | (endSphereCylinderMap e q p) |
| 65 | (mfderiv 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 3) (endSphereCylinderMap e q) p v) |
| 66 | (mfderiv 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 3) (endSphereCylinderMap e q) p w) - |
| 67 | endCylinderCoefficients e t (endSphereCylinderMap e q p) |
| 68 | (mfderiv 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 3) (endSphereCylinderMap e q) p v) |
| 69 | (mfderiv 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 3) (endSphereCylinderMap e q) p w) |
| 70 | exact congrArg (fun z => (F.metric t).pullbackCoefficients (endAxialTranslation e j) |
| 71 | (endSphereCylinderMap e q p) |
| 72 | (mfderiv 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 3) (endSphereCylinderMap e q) p v) |
| 73 | (mfderiv 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 3) (endSphereCylinderMap e q) p w) - z) |
| 74 | (hm v w).symm |
| 75 | apply ContinuousLinearMap.ext |
| 76 | intro v |
| 77 | apply ContinuousLinearMap.ext |
| 78 | intro w |
| 79 | have h := heq v w |
| 80 | simp only [mfderiv_eq_fderiv] at h |
| 81 | convert! h using 1 |
| 82 | |
| 83 | /-- The pointwise identity holds as a smooth germ, hence transfers all |
| 84 | ordinary parameter jets (Proposition 12.7, pp. 298-299). -/ |
| 85 | theorem endCylinderParameterDifference_jet_eq (e : StandardCylindricalEnd g) |
| 86 | {J : Set ℝ} (F : RicciFlow 3 StandardCapSpace J) (j : ℕ) (t : ℝ) |
| 87 | (q : UnitTwoSphere) {p : RoundCylinderCoordinates} (hp : 2 < p.2) (m : ℕ) : |
| 88 | iteratedFDeriv ℝ m (endCylinderParameterDifference e F j t q) p = |
| 89 | iteratedFDeriv ℝ m (fun y => |
| 90 | (endCylinderDifferenceCoefficients e F j t (endSphereCylinderMap e q y)).bilinearComp |
| 91 | (fderiv ℝ (endSphereCylinderMap e q) y) |
| 92 | (fderiv ℝ (endSphereCylinderMap e q) y)) p := by |
| 93 | have heq : endCylinderParameterDifference e F j t q =ᶠ[𝓝 p] fun y => |
| 94 | (endCylinderDifferenceCoefficients e F j t (endSphereCylinderMap e q y)).bilinearComp |
| 95 | (fderiv ℝ (endSphereCylinderMap e q) y) (fderiv ℝ (endSphereCylinderMap e q) y) := by |
| 96 | filter_upwards [(isOpen_lt continuous_const continuous_snd).mem_nhds hp] with y hy |
| 97 | exact endCylinderParameterDifference_eq_pullback e F j t q hy |
| 98 | exact (heq.iteratedFDeriv ℝ m).self_of_nhds |
| 99 | |
| 100 | /-- Ambient spatial-jet decay transfers uniformly to the actual |
| 101 | parametrized cylinder error, including both closed-time endpoints |
| 102 | (Proposition 12.7, pp. 298-299). -/ |
| 103 | theorem partialFlow_endCylinderParameterDifference_iteratedFDeriv_tendsto |
| 104 | (P : RicciFlowCurvatureTheory.{0}) {g0 : StandardInitialMetric} |
| 105 | (E0 : StandardCapEstimate g0) (F : PartialStandardCapFlow g0) |
| 106 | (e : StandardCylindricalEnd g0.metric) |
| 107 | {dH dA dS : ℕ} (qH : FH 3 ≃L[ℝ] EuclideanSpace ℝ (Fin dH)) |
| 108 | (qA : FA 3 ≃L[ℝ] EuclideanSpace ℝ (Fin dA)) |
| 109 | (qS : FS 3 ≃L[ℝ] EuclideanSpace ℝ (Fin dS)) (p₀ : endReferenceRegion e) |
| 110 | {T : ℝ} (hT : T ∈ Ico 0 F.lifetime ∩ Ico 0 1) (m : ℕ) {ε : ℝ} (hε : 0 < ε) : |
| 111 | ∃ N : ℕ, ∀ k ≥ N, ∀ t ∈ Icc 0 T, ∀ q : UnitTwoSphere, |
| 112 | ∀ r ∈ Icc (17 / 5 : ℝ) (23 / 5), |
| 113 | ‖iteratedFDeriv ℝ m (endCylinderParameterDifference e F.flow (k + 1) t q) (0, r)‖ < |
| 114 | ε := by |
| 115 | classical |
| 116 | choose D hDb using fun j : Fin (m + 2) => endSphereCylinderMap_uniform_jet_bound e j |
| 117 | let D₀ : ℝ := 1 + ∑ j : Fin (m + 2), max (D j) 0 |
| 118 | have hD₀ : 1 ≤ D₀ := le_add_of_nonneg_right |
| 119 | (Finset.sum_nonneg fun _ _ => le_max_right _ _) |
| 120 | have hmapjet (j : ℕ) (hj : j ≤ m + 1) (q : UnitTwoSphere) (r : ℝ) |
| 121 | (hr : r ∈ Icc (17 / 5 : ℝ) (23 / 5)) : |
| 122 | ‖iteratedFDeriv ℝ j (endSphereCylinderMap e q) (0, r)‖ ≤ D₀ := by |
| 123 | let i : Fin (m + 2) := ⟨j, by omega⟩ |
| 124 | have hle : max (D i) 0 ≤ ∑ l : Fin (m + 2), max (D l) 0 := |
| 125 | Finset.single_le_sum (fun _ _ => le_max_right _ _) (Finset.mem_univ i) |
| 126 | exact (hDb i q r hr).trans ((le_max_left _ _).trans (hle.trans (by dsimp [D₀]; linarith))) |
| 127 | obtain ⟨C, hC, hbound⟩ := exists_bilinear_pullback_jet_bound |
| 128 | (E := RoundCylinderCoordinates) (F := StandardCapSpace) (G := ℝ) m hD₀ |
| 129 | let δ : ℝ := ε / (C + 1) |
| 130 | have hδ : 0 < δ := div_pos hε (by linarith) |
| 131 | choose N hN using fun j : Fin (m + 1) => |
| 132 | partialFlow_endCylinderDifferenceCoefficients_iteratedFDeriv_tendsto |
| 133 | P E0 F e qH qA qS p₀ hT j hδ |
| 134 | refine ⟨Finset.univ.sup N, ?_⟩ |
| 135 | intro k hk t ht q r hr |
| 136 | have hx : endSphereCylinderMap e q (0, r) ∈ endClosedSlab e (17 / 5) (23 / 5) := |
| 137 | ⟨((chartAt (EuclideanSpace ℝ (Fin 2)) q).symm 0, r), ⟨mem_univ _, hr⟩, rfl⟩ |
| 138 | have hxU := endClosedSlab_subset_reference e (by norm_num : (3 : ℝ) < 17 / 5) |
| 139 | (by norm_num : (23 / 5 : ℝ) < 5) hx |
| 140 | have hf : ContDiffAt ℝ ∞ (endSphereCylinderMap e q) (0, r) := |
| 141 | contMDiffAt_iff_contDiffAt.mp (endSphereCylinderMap_contMDiffAt e q |
| 142 | (by change 0 < r; linarith [hr.1])) |
| 143 | have hB := (endCylinderDifferenceCoefficients_contDiffOn e F.flow (k + 1) t).contDiffAt |
| 144 | ((endReferenceRegion_isOpen e).mem_nhds hxU) |
| 145 | have hb := hbound (endSphereCylinderMap e q) |
| 146 | (endCylinderDifferenceCoefficients e F.flow (k + 1) t) (0, r) hf hB |
| 147 | (fun j hj => hmapjet j hj q r hr) δ hδ.le (fun j hj => ?_) |
| 148 | · rw [endCylinderParameterDifference_jet_eq e F.flow (k + 1) t q |
| 149 | (by change 2 < r; linarith [hr.1]) m] |
| 150 | calc |
| 151 | _ ≤ C * δ := hb |
| 152 | _ < (C + 1) * δ := mul_lt_mul_of_pos_right (lt_add_one C) hδ |
| 153 | _ = ε := by dsimp [δ]; field_simp |
| 154 | · let i : Fin (m + 1) := ⟨j, by omega⟩ |
| 155 | exact (hN i k ((Finset.le_sup (f := N) (Finset.mem_univ i)).trans hk) t ht _ hx).le |
| 156 | |
| 157 | end PoincareMT.M34 |