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.EndCylinderParameterJets |
| 2 | |
| 3 | /-! |
| 4 | # The shrinking cylindrical end excludes lifetime greater than one |
| 5 | |
| 6 | On a hypothetical flow surviving time one, exponential metric comparison |
| 7 | stays uniformly positive. The actual ordinary parameter errors vanish |
| 8 | at infinity, contradicting the shrinking angular cylinder coefficient. |
| 9 | This is Proposition 12.7, pp. 298-299 and |
| 10 | cylinder-lifetime-upper-bound.md. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option maxSynthPendingDepth 12 |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff InnerProductSpace |
| 19 | |
| 20 | namespace PoincareMT.M34 |
| 21 | |
| 22 | open DifferenceEnergy |
| 23 | |
| 24 | /-- The actual initial parameter coefficients equal the supplied model |
| 25 | on the end plateau (Proposition 12.7, pp. 298-299). -/ |
| 26 | theorem partialFlow_endCylinderParameterDifference_zero |
| 27 | {g0 : StandardInitialMetric} (F : PartialStandardCapFlow g0) |
| 28 | (e : StandardCylindricalEnd g0.metric) (j : ℕ) (q : UnitTwoSphere) |
| 29 | {p : RoundCylinderCoordinates} (hp : 2 < p.2) : |
| 30 | endCylinderParameterDifference e F.flow j 0 q p = 0 := by |
| 31 | have hp0 : 0 < p.2 := lt_trans (by norm_num : (0 : ℝ) < 2) hp |
| 32 | have hj : 0 < p.2 + (j : ℝ) := add_pos_of_pos_of_nonneg hp0 (Nat.cast_nonneg j) |
| 33 | have hz : endCylinderDifferenceCoefficients e F.flow j 0 |
| 34 | (endSphereCylinderMap e q p) = 0 := by |
| 35 | apply ContinuousLinearMap.ext |
| 36 | intro v |
| 37 | apply ContinuousLinearMap.ext |
| 38 | intro w |
| 39 | have he := endAxialTranslation_metric e (j : ℝ) |
| 40 | (z := ((chartAt (EuclideanSpace ℝ (Fin 2)) q).symm p.1, p.2)) hp0 hj v w |
| 41 | simp only [endCylinderDifferenceCoefficients, Pi.sub_apply, sub_apply, |
| 42 | endCylinderCoefficients_apply, F.initial_metric, sub_zero, one_mul, zero_mul, |
| 43 | add_zero, zero_apply] |
| 44 | change _ - _ = 0 |
| 45 | exact sub_eq_zero.mpr he.symm |
| 46 | rw [endCylinderParameterDifference_eq_pullback e F.flow j 0 q hp, hz] |
| 47 | apply ContinuousLinearMap.ext |
| 48 | intro v |
| 49 | apply ContinuousLinearMap.ext |
| 50 | intro w |
| 51 | rfl |
| 52 | |
| 53 | /-- Every actual partial standard-cap flow has lifetime at most one |
| 54 | (Proposition 12.7, pp. 298-299). -/ |
| 55 | theorem partialFlow_lifetime_le_one_of_end_jets |
| 56 | (P : RicciFlowCurvatureTheory.{0}) {g0 : StandardInitialMetric} |
| 57 | (E0 : StandardCapEstimate g0) (F : PartialStandardCapFlow g0) |
| 58 | (e : StandardCylindricalEnd g0.metric) |
| 59 | {dH dA dS : ℕ} (qH : FH 3 ≃L[ℝ] EuclideanSpace ℝ (Fin dH)) |
| 60 | (qA : FA 3 ≃L[ℝ] EuclideanSpace ℝ (Fin dA)) |
| 61 | (qS : FS 3 ≃L[ℝ] EuclideanSpace ℝ (Fin dS)) (p₀ : endReferenceRegion e) : |
| 62 | F.lifetime ≤ 1 := by |
| 63 | by_contra! hlong |
| 64 | obtain ⟨K, hK, hKb⟩ := F.curvature_locally_bounded 1 zero_le_one hlong |
| 65 | let ell : ℝ := Real.exp (-6 * K) |
| 66 | have hell : 0 < ell := Real.exp_pos _ |
| 67 | have hell1 : ell ≤ 1 := Real.exp_le_one_iff.mpr (by nlinarith) |
| 68 | let T : ℝ := 1 - ell / 2 |
| 69 | have hT0 : 0 ≤ T := by dsimp [T]; linarith |
| 70 | have hT1 : T < 1 := by dsimp [T]; linarith |
| 71 | have hT : T ∈ Ico 0 F.lifetime ∩ Ico 0 1 := |
| 72 | ⟨⟨hT0, hT1.trans hlong⟩, ⟨hT0, hT1⟩⟩ |
| 73 | obtain ⟨N, hN⟩ := partialFlow_endCylinderParameterDifference_iteratedFDeriv_tendsto |
| 74 | P E0 F e qH qA qS p₀ hT 0 (half_pos hell) |
| 75 | let q : UnitTwoSphere := ⟨EuclideanSpace.single 0 1, by simp⟩ |
| 76 | let v : RoundCylinderCoordinates := (EuclideanSpace.single 0 1, 0) |
| 77 | have hv : ‖v‖ = 1 := by simp [v, Prod.norm_def] |
| 78 | have hmodel (t : ℝ) : evolvingRoundCylinderModelCoefficients t (0, 4) v v = |
| 79 | 2 * (1 - t) := by |
| 80 | norm_num [evolvingRoundCylinderModelCoefficients_apply, v] |
| 81 | let f := endAxialTranslation e (N + 1 : ℕ) ∘ endSphereCylinderMap e q |
| 82 | have hinit : g0.metric.parametrizedCoefficients f (0, 4) v v = 2 := by |
| 83 | have hi := congrArg (fun B => B v v) |
| 84 | (partialFlow_endCylinderParameterDifference_zero F e (N + 1) q |
| 85 | (p := (0, 4)) (by norm_num)) |
| 86 | simp only [endCylinderParameterDifference, sub_apply, F.initial_metric, |
| 87 | zero_apply, hmodel] at hi |
| 88 | change g0.metric.parametrizedCoefficients f (0, 4) v v - 2 * (1 - 0) = 0 at hi |
| 89 | linarith |
| 90 | have hcomparison := (partialFlow_exp_bounds F P hT.1 hK |
| 91 | (fun s hs x => (le_abs_self _).trans (hKb s ⟨hs.1, hs.2.trans hT1.le⟩ x)) |
| 92 | (f (0, 4)) (mfderiv 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 3) f (0, 4) v)).1 |
| 93 | change Real.exp (-6 * K * T) * g0.metric.parametrizedCoefficients f (0, 4) v v ≤ |
| 94 | (F.flow.metric T).parametrizedCoefficients f (0, 4) v v at hcomparison |
| 95 | rw [hinit] at hcomparison |
| 96 | have hexp : ell ≤ Real.exp (-6 * K * T) := |
| 97 | Real.exp_le_exp.mpr (by nlinarith) |
| 98 | have hlower : 2 * ell ≤ (F.flow.metric T).parametrizedCoefficients f (0, 4) v v := by |
| 99 | nlinarith |
| 100 | have herror := hN N le_rfl T ⟨hT0, le_rfl⟩ q 4 (by norm_num) |
| 101 | simp only [norm_iteratedFDeriv_zero] at herror |
| 102 | have heval := (endCylinderParameterDifference e F.flow (N + 1) T q (0, 4)).le_opNorm₂ v v |
| 103 | rw [hv, mul_one, mul_one] at heval |
| 104 | have hsmall := heval.trans_lt herror |
| 105 | simp only [endCylinderParameterDifference, sub_apply, hmodel, Real.norm_eq_abs] at hsmall |
| 106 | have habs := (le_abs_self _).trans_lt hsmall |
| 107 | change (F.flow.metric T).parametrizedCoefficients f (0, 4) v v - 2 * (1 - T) < ell / 2 |
| 108 | at habs |
| 109 | dsimp [T] at habs |
| 110 | linarith |
| 111 | |
| 112 | end PoincareMT.M34 |