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.ReducedGeometry.ReducedVolume.Regularity.Semiconcavity.ReducedLengthSemiconcavity |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.WeakInequality.Operator.ChartOperatorBounds |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Basic |
| 4 | |
| 5 | /-! |
| 6 | # Common local data for the reduced-length weak comparison |
| 7 | |
| 8 | Shrink the semiconcavity ball to the common neighborhood of the |
| 9 | metric coefficients and the regular time-derivative bound. Continuity |
| 10 | of reduced length bounds the other term in the Laplacian upper bound. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter Metric |
| 16 | open scoped Manifold ContDiff Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.ReducedVolume |
| 21 | |
| 22 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 24 | [ConnectedSpace M] [T3Space M] [MeasurableSpace M] [BorelSpace M] |
| 25 | {J : Set ℝ} {F : RicciFlow n M J} {T τmax : ℝ} |
| 26 | |
| 27 | noncomputable local instance weakChartBilinearNormedAddCommGroup : NormedAddCommGroup |
| 28 | (EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ) := |
| 29 | ContinuousLinearMap.toNormedAddCommGroup |
| 30 | |
| 31 | noncomputable local instance weakChartBilinearNormedSpace : NormedSpace ℝ |
| 32 | (EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ) := |
| 33 | ContinuousLinearMap.toNormedSpace |
| 34 | |
| 35 | set_option backward.isDefEq.respectTransparency false in |
| 36 | /-- Semiconcavity, operator bounds and the regular right-side bound hold on one buffered ball. -/ |
| 37 | theorem reducedLength_weak_chart_data |
| 38 | (hL : LGeodesicTheory F T τmax) (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 39 | (p q₀ : M) (R : ReducedLengthMeasureData F T τmax p) |
| 40 | {τ : ℝ} (hτ : 0 < τ) (hmax : τ < τmax) : |
| 41 | let e := extChartAt (𝓡 n) q₀ |
| 42 | let B := pullbackMetricForm (F.metric (T - τ)) e.symm |
| 43 | let ρ := pullbackJacobian (F.metric (T - τ)) e.symm |
| 44 | let u := fun y ↦ reducedLength F T p (e.symm y) τ |
| 45 | let H := fun q ↦ -deriv (fun s ↦ reducedLength F T p q s) τ + |
| 46 | ((n : ℝ) / 2 - reducedLength F T p q τ) / τ |
| 47 | ∃ r K S A : ℝ, 0 < r ∧ 0 ≤ K ∧ 0 ≤ S ∧ 0 ≤ A ∧ |
| 48 | ball (e q₀) (4 * r) ⊆ e.target ∧ |
| 49 | ConcaveOn ℝ (ball (e q₀) (4 * r)) (fun y ↦ u y - K * ‖y‖ ^ 2 / 2) ∧ |
| 50 | (∀ y ∈ ball (e q₀) (4 * r), ‖fderiv ℝ B y‖ ≤ S ∧ ‖(B y).inverse‖ ≤ S ∧ |
| 51 | ρ y ≤ S ∧ ‖fderiv ℝ ρ y‖ ≤ S) ∧ |
| 52 | (∀ y ∈ ball (e q₀) (4 * r), (e.symm y, τ) ∈ R.regularDomain → |H (e.symm y)| ≤ A) := by |
| 53 | let e := extChartAt (𝓡 n) q₀ |
| 54 | let u := fun y ↦ reducedLength F T p (e.symm y) τ |
| 55 | obtain ⟨r₀, hr₀, htarget, K, hK, hconc⟩ := |
| 56 | reducedLength_chart_semiconcave hL hDifferential p q₀ hτ hmax |
| 57 | obtain ⟨S, hS, hmetric⟩ := chartOperator_eventually_bounded (F.metric (T - τ)) q₀ |
| 58 | obtain ⟨N, hN, hqN, _, C, hC, hderiv⟩ := |
| 59 | R.local_derivative_bounds (q₀, τ) ⟨mem_univ _, hτ, hmax⟩ |
| 60 | have hN' : ∀ᶠ y in 𝓝 (e q₀), (e.symm y, τ) ∈ N := by |
| 61 | have ht := (continuousAt_extChartAt_symm (I := 𝓡 n) q₀).prodMk |
| 62 | (continuousAt_const (y := τ)) |
| 63 | exact ht (hN.mem_nhds (by simpa only [e, extChartAt_to_inv] using hqN)) |
| 64 | have hu : Continuous (fun q ↦ reducedLength F T p q τ) := |
| 65 | R.continuous.comp_continuous (continuous_id.prodMk continuous_const) |
| 66 | (fun _ ↦ ⟨mem_univ _, hτ, hmax⟩) |
| 67 | have huc : ContinuousAt u (e q₀) := |
| 68 | hu.continuousAt.comp (continuousAt_extChartAt_symm (I := 𝓡 n) q₀) |
| 69 | let L := |u (e q₀)| + 1 |
| 70 | have hL0 : 0 ≤ L := by dsimp only [L]; positivity |
| 71 | have hub : ∀ᶠ y in 𝓝 (e q₀), |u y| < L := huc.abs (eventually_lt_nhds (lt_add_one _)) |
| 72 | have hnear : ∀ᶠ y in 𝓝 (e q₀), y ∈ ball (e q₀) r₀ ∧ |
| 73 | (y ∈ e.target ∧ |
| 74 | ‖fderiv ℝ (pullbackMetricForm (F.metric (T - τ)) e.symm) y‖ ≤ S ∧ |
| 75 | ‖(pullbackMetricForm (F.metric (T - τ)) e.symm y).inverse‖ ≤ S ∧ |
| 76 | pullbackJacobian (F.metric (T - τ)) e.symm y ≤ S ∧ |
| 77 | ‖fderiv ℝ (pullbackJacobian (F.metric (T - τ)) e.symm) y‖ ≤ S) ∧ |
| 78 | (e.symm y, τ) ∈ N ∧ |u y| < L := by |
| 79 | filter_upwards [ball_mem_nhds (e q₀) hr₀, hmetric, hN', hub] with y hy hm hn hl |
| 80 | exact ⟨hy, hm, hn, hl⟩ |
| 81 | obtain ⟨δ, hδ, hball⟩ := Metric.mem_nhds_iff.mp hnear |
| 82 | let r := δ / 4 |
| 83 | have h4r : 4 * r = δ := by dsimp only [r]; ring |
| 84 | let A := C + ((n : ℝ) / 2 + L) / τ |
| 85 | refine ⟨r, K, S, A, by dsimp only [r]; positivity, hK, hS, |
| 86 | by dsimp only [A]; positivity, ?_, ?_, ?_, ?_⟩ |
| 87 | · intro y hy |
| 88 | rw [h4r] at hy |
| 89 | exact (hball hy).2.1.1 |
| 90 | · apply hconc.subset _ (convex_ball _ _) |
| 91 | intro y hy |
| 92 | rw [h4r] at hy |
| 93 | exact (hball hy).1 |
| 94 | · intro y hy |
| 95 | rw [h4r] at hy |
| 96 | exact (hball hy).2.1.2 |
| 97 | · intro y hy hreg |
| 98 | rw [h4r] at hy |
| 99 | obtain ⟨_, _, hyN, hyL⟩ := hball hy |
| 100 | have hd := (hderiv (e.symm y, τ) ⟨hyN, hreg⟩).1 |
| 101 | have hval : |(n : ℝ) / 2 - u y| ≤ (n : ℝ) / 2 + L := |
| 102 | (abs_sub _ _).trans (by rw [abs_of_nonneg (by positivity : 0 ≤ (n : ℝ) / 2)]; linarith) |
| 103 | calc |
| 104 | _ ≤ |deriv (fun s ↦ reducedLength F T p (e.symm y) s) τ| + |
| 105 | |((n : ℝ) / 2 - u y) / τ| := by |
| 106 | simpa only [abs_neg] using abs_add_le |
| 107 | (-deriv (fun s ↦ reducedLength F T p (e.symm y) s) τ) |
| 108 | (((n : ℝ) / 2 - u y) / τ) |
| 109 | _ ≤ C + ((n : ℝ) / 2 + L) / τ := by |
| 110 | rw [abs_div, abs_of_pos hτ] |
| 111 | exact add_le_add hd (div_le_div_of_nonneg_right hval hτ.le) |
| 112 | |
| 113 | end PoincareMT.ReducedVolume |