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.EndCylinderCharts |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.RotationInvariance.EndCompactSlabs |
| 3 | import PoincareLib.Geometry.Riemannian.Coordinates.TransitionBounds |
| 4 | import PoincareLib.Geometry.Riemannian.Coordinates.CompactEnergy |
| 5 | |
| 6 | /-! |
| 7 | # Uniform spatial derivatives of the chosen end charts |
| 8 | |
| 9 | The chosen sphere frames need not vary continuously. Each chart is an |
| 10 | actual local isometry from the same stereographic metric into one compact |
| 11 | end slab. M07's transition estimates therefore give uniform derivatives |
| 12 | of every order. This is Proposition 12.7, pp. 298-299 and |
| 13 | parametrized-pullback-jet-decay.md. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set |
| 20 | open scoped Manifold ContDiff |
| 21 | |
| 22 | namespace PoincareMT.M34 |
| 23 | |
| 24 | local notation "E₃" => EuclideanSpace ℝ (Fin 3) |
| 25 | |
| 26 | /-- A bounded open stereographic parameter region containing the whole |
| 27 | centered cutoff plateau (Proposition 12.7, pp. 298-299). -/ |
| 28 | def endCylinderChartRegion : Set E₃ := |
| 29 | Metric.ball 0 6 ∩ {x : E₃ | x 2 ∈ Ioo (3 : ℝ) 5} |
| 30 | |
| 31 | /-- The parameter region is open in its ordinary normed topology |
| 32 | (Proposition 12.7, pp. 298-299). -/ |
| 33 | theorem endCylinderChartRegion_isOpen : IsOpen endCylinderChartRegion := |
| 34 | Metric.isOpen_ball.inter |
| 35 | (isOpen_Ioo.preimage (EuclideanSpace.proj 2 : E₃ →L[ℝ] ℝ).continuous) |
| 36 | |
| 37 | variable {g : RiemannianMetric 3 StandardCapSpace} (e : StandardCylindricalEnd g) |
| 38 | |
| 39 | private theorem endStereographicChart_sequence_jet_bounds (q : ℕ → UnitTwoSphere) : |
| 40 | ∀ m : ℕ, ∃ C : ℝ, ∀ i x, x ∈ endCylinderChartRegion → |
| 41 | ‖iteratedFDeriv ℝ m (endStereographicChart e (q i)) x‖ ≤ C := by |
| 42 | let A : E₃ → E₃ →L[ℝ] E₃ →L[ℝ] ℝ := stereographicCylinderCoefficients 2 |
| 43 | let B : E₃ → E₃ →L[ℝ] E₃ →L[ℝ] ℝ := g.euclideanCoefficients |
| 44 | have hA : ContDiff ℝ ∞ A := |
| 45 | stereographicCylinderCoefficients_contDiff.comp (contDiff_const.prodMk contDiff_id) |
| 46 | have hB : ContDiff ℝ ∞ B := contDiff_iff_contDiffAt.mpr g.contDiffAt_euclideanCoefficients |
| 47 | have hslab := endClosedSlab_isCompact e (a := 3) (b := 5) (by norm_num) |
| 48 | obtain ⟨R, hR⟩ := hslab.isBounded.exists_norm_le |
| 49 | let V : Set E₃ := Metric.ball 0 (R + 1) |
| 50 | have hmap : ∀ i, MapsTo (endStereographicChart e (q i)) endCylinderChartRegion V := by |
| 51 | intro i x hx |
| 52 | have hs : endStereographicChart e (q i) x ∈ endClosedSlab e 3 5 := |
| 53 | ⟨sphereCylinderChart (q i) x, ⟨mem_univ _, hx.2.1.le, hx.2.2.le⟩, rfl⟩ |
| 54 | simpa only [V, Metric.mem_ball, dist_zero_right] using |
| 55 | (hR _ hs).trans_lt (lt_add_one R) |
| 56 | obtain ⟨aA, haA, hAlow⟩ := exists_uniform_bilinear_lower_bound |
| 57 | (isCompact_closedBall (0 : E₃) 6) hA.continuous.continuousOn |
| 58 | (fun x _ v hv => stereographicCylinderCoefficients_pos (by norm_num) x v hv) |
| 59 | obtain ⟨aB, haB, hBlow⟩ := exists_uniform_bilinear_lower_bound |
| 60 | (isCompact_closedBall (0 : E₃) (R + 1)) hB.continuous.continuousOn |
| 61 | (fun x _ v hv => g.pos x v hv) |
| 62 | have hpos : 0 < min aA aB := lt_min haA haB |
| 63 | have hf : ∀ i, ContDiffOn ℝ ∞ (endStereographicChart e (q i)) endCylinderChartRegion := by |
| 64 | intro i x hx |
| 65 | have hs : ContDiffAt ℝ ∞ (endStereographicChart e (q i)) x := |
| 66 | contMDiffAt_iff_contDiffAt.mp |
| 67 | (endStereographicChart_contMDiffAt e (q i) (by have := hx.2.1; linarith)) |
| 68 | exact hs.contDiffWithinAt |
| 69 | apply CoordinateTransition.uniform_derivative_bounds_of_local_isometries |
| 70 | (A := fun _ => A) (B := fun _ => B) |
| 71 | (f := fun i => endStereographicChart e (q i)) |
| 72 | endCylinderChartRegion_isOpen Metric.isOpen_ball Metric.isBounded_ball |
| 73 | (fun _ => hA.contDiffOn) (fun _ => hB.contDiffOn) hf |
| 74 | (fun _ x _ u v => by |
| 75 | simp only [A, stereographicCylinderCoefficients_apply] |
| 76 | ring) |
| 77 | (fun _ x _ u v => g.symm x u v) hpos |
| 78 | (fun _ x hx v => (mul_le_mul_of_nonneg_right (min_le_left _ _) (sq_nonneg _)).trans |
| 79 | (hAlow x (Metric.ball_subset_closedBall hx.1) v)) |
| 80 | (fun _ x hx v => (mul_le_mul_of_nonneg_right (min_le_right _ _) (sq_nonneg _)).trans |
| 81 | (hBlow x (Metric.ball_subset_closedBall hx) v)) |
| 82 | ?_ hmap ?_ |
| 83 | · intro m |
| 84 | obtain ⟨CA, hCA⟩ := (isCompact_closedBall (0 : E₃) 6).exists_bound_of_continuousOn |
| 85 | ((hA.continuous_iteratedFDeriv (m := m) (by exact_mod_cast le_top)).continuousOn) |
| 86 | obtain ⟨CB, hCB⟩ := (isCompact_closedBall (0 : E₃) (R + 1)).exists_bound_of_continuousOn |
| 87 | ((hB.continuous_iteratedFDeriv (m := m) (by exact_mod_cast le_top)).continuousOn) |
| 88 | exact ⟨max CA CB, |
| 89 | fun _ x hx => (hCA x (Metric.ball_subset_closedBall hx.1)).trans (le_max_left _ _), |
| 90 | fun _ x hx => (hCB x (Metric.ball_subset_closedBall hx)).trans (le_max_right _ _)⟩ |
| 91 | · intro i x hx u v |
| 92 | have h := endCylinderAuxMetric_stereographic e (q i) 0 |
| 93 | (by have := hx.2.1; linarith : 2 < x 2) u v |
| 94 | rw [endCylinderAuxMetric_zero, mfderiv_eq_fderiv] at h |
| 95 | norm_num [endCylinderParameter] at h |
| 96 | convert! h using 1 |
| 97 | |
| 98 | /-- All chosen charts have uniform jets on the fixed parameter region; |
| 99 | the bound precedes the sphere center (Proposition 12.7, pp. 298-299). -/ |
| 100 | theorem endStereographicChart_uniform_jet_bounds (m : ℕ) : |
| 101 | ∃ C : ℝ, ∀ (q : UnitTwoSphere) x, x ∈ endCylinderChartRegion → |
| 102 | ‖iteratedFDeriv ℝ m (endStereographicChart e q) x‖ ≤ C := by |
| 103 | classical |
| 104 | by_contra! h |
| 105 | choose q x hx hlarge using fun n : ℕ => h (n : ℝ) |
| 106 | obtain ⟨C, hC⟩ := endStereographicChart_sequence_jet_bounds e q m |
| 107 | obtain ⟨n, hn⟩ := exists_nat_gt C |
| 108 | exact (not_lt_of_ge (hC n (x n) (hx n))) (hn.trans (hlarge n)) |
| 109 | |
| 110 | end PoincareMT.M34 |