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 Mathlib.Analysis.InnerProductSpace.PiL2 |
| 2 | import Mathlib.Analysis.Normed.Operator.Bilinear |
| 3 | |
| 4 | /-! |
| 5 | # A coarse bilinear bound from orthonormal coefficients |
| 6 | |
| 7 | Expanding both arguments in the same orthonormal basis bounds a diagonal |
| 8 | evaluation by the square of the dimension times the coefficient bound. |
| 9 | The empty basis is included. This estimate will be applied to the actual |
| 10 | metric derivative, whose bilinearity does not require a Ricci extension |
| 11 | independence theorem. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open scoped BigOperators |
| 17 | |
| 18 | namespace PoincareMT.ReducedVolume |
| 19 | |
| 20 | variable {E ι : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [Fintype ι] |
| 21 | |
| 22 | /-- Bounding orthonormal coefficients bounds every diagonal bilinear evaluation. -/ |
| 23 | theorem abs_bilinear_self_le_of_basis_bound (b : OrthonormalBasis ι ℝ E) |
| 24 | (B : E →L[ℝ] E →L[ℝ] ℝ) {K : ℝ} |
| 25 | (hcoeff : ∀ i j, |B (b i) (b j)| ≤ K) (v : E) : |
| 26 | |B v v| ≤ (Fintype.card ι : ℝ) ^ 2 * K * ‖v‖ ^ 2 := by |
| 27 | classical |
| 28 | let c := fun i ↦ b.repr v i |
| 29 | have hc (i : ι) : |c i| ≤ ‖v‖ := by |
| 30 | dsimp only [c] |
| 31 | rw [b.repr_apply_apply] |
| 32 | simpa only [b.norm_eq_one, one_mul] using abs_real_inner_le_norm (b i) v |
| 33 | have hexpand : B v v = ∑ i, ∑ j, c i * c j * B (b i) (b j) := by |
| 34 | calc |
| 35 | B v v = B (∑ i, c i • b i) (∑ j, c j • b j) := by |
| 36 | rw [b.sum_repr] |
| 37 | _ = ∑ i, ∑ j, c i * c j * B (b i) (b j) := by |
| 38 | simp only [map_sum, map_smul, sum_apply, smul_apply, |
| 39 | smul_eq_mul, Finset.mul_sum, mul_assoc] |
| 40 | rw [Finset.sum_comm] |
| 41 | apply Finset.sum_congr rfl |
| 42 | intro i _ |
| 43 | apply Finset.sum_congr rfl |
| 44 | intro j _ |
| 45 | ring |
| 46 | rw [hexpand] |
| 47 | calc |
| 48 | |∑ i, ∑ j, c i * c j * B (b i) (b j)| ≤ |
| 49 | ∑ i, ∑ j, |c i * c j * B (b i) (b j)| := |
| 50 | (Finset.abs_sum_le_sum_abs _ _).trans |
| 51 | (Finset.sum_le_sum (fun _ _ ↦ Finset.abs_sum_le_sum_abs _ _)) |
| 52 | _ ≤ ∑ _i : ι, ∑ _j : ι, ‖v‖ * ‖v‖ * K := by |
| 53 | apply Finset.sum_le_sum |
| 54 | intro i _ |
| 55 | apply Finset.sum_le_sum |
| 56 | intro j _ |
| 57 | simp only [abs_mul] |
| 58 | exact mul_le_mul (mul_le_mul (hc i) (hc j) (abs_nonneg _) (norm_nonneg _)) |
| 59 | (hcoeff i j) (abs_nonneg _) (mul_nonneg (norm_nonneg _) (norm_nonneg _)) |
| 60 | _ = (Fintype.card ι : ℝ) ^ 2 * K * ‖v‖ ^ 2 := by |
| 61 | simp only [Finset.sum_const, Finset.card_univ, nsmul_eq_mul] |
| 62 | ring |
| 63 | |
| 64 | end PoincareMT.ReducedVolume |