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.Riemannian.Coordinates.Exponential.JetBounds.OperatorComponentJets |
| 2 | |
| 3 | /-! # Bilinear jets from fixed orthonormal components -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | set_option autoImplicit false |
| 7 | set_option backward.isDefEq.respectTransparency false |
| 8 | set_option maxSynthPendingDepth 8 |
| 9 | set_option synthInstance.maxHeartbeats 100000 |
| 10 | |
| 11 | open scoped ContDiff BigOperators |
| 12 | |
| 13 | namespace PoincareMT.SpacetimeBounds |
| 14 | |
| 15 | open CoordinateExponential |
| 16 | |
| 17 | variable {E P : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] |
| 18 | [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 19 | |
| 20 | theorem bilinear_eq_sum_dual {n : ℕ} (b : OrthonormalBasis (Fin n) ℝ E) |
| 21 | (B : E →L[ℝ] E →L[ℝ] ℝ) : |
| 22 | B = ∑ i, ∑ j, B (b i) (b j) • (innerSL ℝ (b i)).smulRight (innerSL ℝ (b j)) := by |
| 23 | classical |
| 24 | ext u v |
| 25 | conv_lhs => rw [← b.sum_repr u, ← b.sum_repr v] |
| 26 | simp only [map_sum, sum_apply, map_smul, smul_apply, smul_eq_mul, |
| 27 | Finset.mul_sum, OrthonormalBasis.repr_apply_apply, |
| 28 | ContinuousLinearMap.smulRight_apply, innerSL_apply_apply] |
| 29 | rw [Finset.sum_comm] |
| 30 | apply Finset.sum_congr rfl |
| 31 | intro i _ |
| 32 | apply Finset.sum_congr rfl |
| 33 | intro j _ |
| 34 | ring |
| 35 | |
| 36 | /-- Scalar coefficient bounds control the operator norm of every bilinear |
| 37 | jet, with a dimension-dependent constant independent of the field. -/ |
| 38 | theorem norm_iteratedFDeriv_bilinear_le_of_components {n : ℕ} |
| 39 | (b : OrthonormalBasis (Fin n) ℝ E) {F : P → E →L[ℝ] E →L[ℝ] ℝ} {x : P} |
| 40 | (hF : ContDiffAt ℝ ∞ F x) (m : ℕ) {C : ℝ} |
| 41 | (h : ∀ i j, ‖iteratedFDeriv ℝ m (fun y => F y (b i) (b j)) x‖ ≤ C) : |
| 42 | ‖iteratedFDeriv ℝ m F x‖ ≤ n * n * C := by |
| 43 | classical |
| 44 | let : NormedAddCommGroup (E →L[ℝ] ℝ) := ContinuousLinearMap.toNormedAddCommGroup |
| 45 | let : NormedSpace ℝ (E →L[ℝ] ℝ) := ContinuousLinearMap.toNormedSpace |
| 46 | let : NormedAddCommGroup (E →L[ℝ] E →L[ℝ] ℝ) := ContinuousLinearMap.toNormedAddCommGroup |
| 47 | let : NormedSpace ℝ (E →L[ℝ] E →L[ℝ] ℝ) := ContinuousLinearMap.toNormedSpace |
| 48 | have hm : (m : ℕ∞ω) ≤ ∞ := by exact_mod_cast le_top |
| 49 | let c (i j : Fin n) (y : P) := F y (b i) (b j) |
| 50 | have hc (i j) : ContDiffAt ℝ ∞ (c i j) x := |
| 51 | (hF.clm_apply contDiffAt_const).clm_apply contDiffAt_const |
| 52 | let f (i j : Fin n) (y : P) := |
| 53 | c i j y • (innerSL ℝ (b i)).smulRight (innerSL ℝ (b j)) |
| 54 | have hf (i j) : ContDiffAt ℝ ∞ (f i j) x := (hc i j).smul contDiffAt_const |
| 55 | have hb (i j) : ‖iteratedFDeriv ℝ m (f i j) x‖ ≤ C := by |
| 56 | let L : ℝ →L[ℝ] (E →L[ℝ] E →L[ℝ] ℝ) := |
| 57 | (ContinuousLinearMap.id ℝ ℝ).smulRight |
| 58 | ((innerSL ℝ (b i)).smulRight (innerSL ℝ (b j))) |
| 59 | have hL : ‖L‖ = 1 := by |
| 60 | simp only [L, ContinuousLinearMap.norm_smulRight_apply, |
| 61 | ContinuousLinearMap.norm_id, innerSL_apply_norm, b.norm_eq_one, mul_one] |
| 62 | have hh := L.norm_iteratedFDeriv_comp_left (hc i j) hm |
| 63 | rw [hL, one_mul] at hh |
| 64 | exact hh.trans (h i j) |
| 65 | have hi (i) := norm_iteratedFDeriv_sum_le_const |
| 66 | (fun j => (hf i j).of_le hm) (hb i) |
| 67 | have hall := norm_iteratedFDeriv_sum_le_const |
| 68 | (fun i => ContDiffAt.sum (fun j _ => (hf i j).of_le hm)) hi |
| 69 | have he : (fun y => ∑ i, ∑ j, f i j y) = F := |
| 70 | funext fun y => (bilinear_eq_sum_dual b (F y)).symm |
| 71 | rw [he] at hall |
| 72 | simpa only [Fintype.card_fin, mul_assoc] using hall |
| 73 | |
| 74 | end PoincareMT.SpacetimeBounds |