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.WeakInequality.Operator.WeightedOperatorFormula |
| 2 | |
| 3 | /-! |
| 4 | # Convergence of the weighted coordinate operator |
| 5 | |
| 6 | One normalization is fixed at the evaluation point. The explicit |
| 7 | operator formula then turns C2 jet convergence into convergence of |
| 8 | the weighted divergence, without a moving-frame choice. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open Filter |
| 14 | open scoped ContDiff Topology BigOperators |
| 15 | |
| 16 | namespace PoincareMT.ReducedVolume |
| 17 | |
| 18 | variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] |
| 19 | [FiniteDimensional ℝ E] |
| 20 | |
| 21 | /-- First and second jet convergence imply convergence of the weighted metric divergence. -/ |
| 22 | theorem trace_weightedMetricDual_tendsto {ι : Type*} [Fintype ι] |
| 23 | (b : OrthonormalBasis ι ℝ E) {B : E → E →L[ℝ] E →L[ℝ] ℝ} {ρ u : E → ℝ} |
| 24 | {f : ℕ → E → ℝ} {x : E} (hB : ContDiffAt ℝ 1 B x) (hρ : DifferentiableAt ℝ ρ x) |
| 25 | (hu : ContDiffAt ℝ 2 u x) (hf : ∀ j, ContDiffAt ℝ 2 (f j) x) |
| 26 | (hi : (B x).IsInvertible) (C : E ≃L[ℝ] E) |
| 27 | (hC : ∀ v w, B x (C v) (C w) = inner ℝ v w) |
| 28 | (hfirst : Tendsto (fun j ↦ fderiv ℝ (f j) x) atTop (𝓝 (fderiv ℝ u x))) |
| 29 | (hsecond : Tendsto (fun j ↦ fderiv ℝ (fderiv ℝ (f j)) x) |
| 30 | atTop (𝓝 (fderiv ℝ (fderiv ℝ u) x))) : |
| 31 | Tendsto (fun j ↦ LinearMap.trace ℝ E |
| 32 | (fderiv ℝ (weightedMetricDual B ρ (f j)) x).toLinearMap) atTop |
| 33 | (𝓝 (LinearMap.trace ℝ E (fderiv ℝ (weightedMetricDual B ρ u) x).toLinearMap)) := by |
| 34 | have ha := ((B x).inverse.continuous.tendsto _).comp hfirst |
| 35 | have hterm (i : ι) := |
| 36 | (((ContinuousLinearMap.apply ℝ ℝ (C (b i))).continuous.tendsto _).comp |
| 37 | (((ContinuousLinearMap.apply ℝ (E →L[ℝ] ℝ) (C (b i))).continuous.tendsto _).comp |
| 38 | hsecond)).sub |
| 39 | (((ContinuousLinearMap.apply ℝ ℝ (C (b i))).continuous.tendsto _).comp |
| 40 | (((fderiv ℝ B x (C (b i))).continuous.tendsto _).comp ha)) |
| 41 | have hsum := tendsto_finsetSum Finset.univ (fun i _ ↦ hterm i) |
| 42 | have hresult := ((tendsto_const_nhds (x := ρ x)).mul hsum).add |
| 43 | (((fderiv ℝ ρ x).continuous.tendsto _).comp ha) |
| 44 | have hseq (j : ℕ) := trace_weightedMetricDual_eq b hB hρ (hf j) hi C hC |
| 45 | simp only [Function.comp_apply, ContinuousLinearMap.apply_apply] at hresult |
| 46 | simpa only [← trace_weightedMetricDual_eq b hB hρ hu hi C hC, ← hseq] using hresult |
| 47 | |
| 48 | end PoincareMT.ReducedVolume |