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.Metric.Coordinates.ChartMetricBounds |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Measure.Chart.ChartDensitySmooth |
| 3 | |
| 4 | /-! |
| 5 | # Local bounds for the weighted chart operator |
| 6 | |
| 7 | The actual chart metric and positive Gram density are smooth. Their |
| 8 | first derivatives and inverse metric therefore have common local bounds. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open Set Filter |
| 14 | open scoped Manifold ContDiff Topology |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT.ReducedVolume |
| 19 | |
| 20 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 21 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 22 | |
| 23 | noncomputable local instance chartOperatorBilinearNormedAddCommGroup : NormedAddCommGroup |
| 24 | (EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ) := |
| 25 | ContinuousLinearMap.toNormedAddCommGroup |
| 26 | |
| 27 | noncomputable local instance chartOperatorBilinearNormedSpace : NormedSpace ℝ |
| 28 | (EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ) := |
| 29 | ContinuousLinearMap.toNormedSpace |
| 30 | |
| 31 | set_option backward.isDefEq.respectTransparency false in |
| 32 | /-- One constant locally bounds the metric derivative, inverse metric and density jets. -/ |
| 33 | theorem chartOperator_eventually_bounded (g : RiemannianMetric n M) (q₀ : M) : |
| 34 | let e := extChartAt (𝓡 n) q₀ |
| 35 | let B := pullbackMetricForm g e.symm |
| 36 | let ρ := pullbackJacobian g e.symm |
| 37 | ∃ S : ℝ, 0 ≤ S ∧ ∀ᶠ y in 𝓝 (e q₀), y ∈ e.target ∧ |
| 38 | ‖fderiv ℝ B y‖ ≤ S ∧ ‖(B y).inverse‖ ≤ S ∧ ρ y ≤ S ∧ ‖fderiv ℝ ρ y‖ ≤ S := by |
| 39 | let e := extChartAt (𝓡 n) q₀ |
| 40 | let ρ := pullbackJacobian g e.symm |
| 41 | obtain ⟨S, hS, _, hmetric⟩ := chartMetricForm_eventually_bounded g q₀ (C := 0) le_rfl |
| 42 | have hρ : ContDiffAt ℝ ∞ ρ (e q₀) := |
| 43 | (chartJacobian_contDiffOn g q₀).contDiffAt (extChartAt_target_mem_nhds (I := 𝓡 n) q₀) |
| 44 | let A := fun y ↦ |ρ y| + ‖fderiv ℝ ρ y‖ |
| 45 | have hA : ContinuousAt A (e q₀) := |
| 46 | hρ.continuousAt.abs.add (hρ.continuousAt_fderiv (by simp)).norm |
| 47 | have hnonneg (y : EuclideanSpace ℝ (Fin n)) : 0 ≤ A y := by dsimp only [A]; positivity |
| 48 | have hbound : ∀ᶠ y in 𝓝 (e q₀), A y < A (e q₀) + 1 := |
| 49 | hA (eventually_lt_nhds (lt_add_one _)) |
| 50 | refine ⟨S + A (e q₀) + 1, by linarith [hnonneg (e q₀)], ?_⟩ |
| 51 | filter_upwards [hmetric, hbound] with y hy hyA |
| 52 | refine ⟨hy.1, ?_, ?_, ?_, ?_⟩ |
| 53 | · linarith [hy.2.2.1, hnonneg (e q₀)] |
| 54 | · linarith [hy.2.2.2, hnonneg (e q₀)] |
| 55 | · dsimp only [A] at hyA |
| 56 | linarith [le_abs_self (ρ y), norm_nonneg (fderiv ℝ ρ y)] |
| 57 | · dsimp only [A] at hyA |
| 58 | linarith [abs_nonneg (ρ y)] |
| 59 | |
| 60 | end PoincareMT.ReducedVolume |