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.Normed.Module.Multilinear.Basic |
| 2 | import Mathlib.Analysis.Normed.Module.Normalize |
| 3 | import Mathlib.Analysis.Normed.Module.RCLike.Real |
| 4 | |
| 5 | /-! |
| 6 | # Multilinear bounds from the closed unit balls |
| 7 | |
| 8 | Normalize each input without excluding zero vectors. This is the scalar |
| 9 | normalization used for the ambient estimates in MT2015Correction |
| 10 | Corollary 0.3, p. 6; see `references/ricci-flow/mapher/curve-evolution/derivations/2026-09-20-pointwise-bounds.md`. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open scoped BigOperators |
| 16 | |
| 17 | /-- A bound on the product of closed unit balls scales by the product of |
| 18 | input norms, including zero inputs; the normalization for corrected |
| 19 | Corollary 0.3, p. 6. -/ |
| 20 | theorem MultilinearMap.norm_le_mul_prod_of_unit_bound |
| 21 | {ι : Type*} [Fintype ι] {E : ι → Type*} |
| 22 | [∀ i, NormedAddCommGroup (E i)] [∀ i, NormedSpace ℝ (E i)] |
| 23 | {G : Type*} [SeminormedAddCommGroup G] [NormedSpace ℝ G] |
| 24 | (A : MultilinearMap ℝ E G) {K : ℝ} |
| 25 | (hbound : ∀ w, (∀ i, ‖w i‖ ≤ 1) → ‖A w‖ ≤ K) (v : ∀ i, E i) : |
| 26 | ‖A v‖ ≤ K * ∏ i, ‖v i‖ := by |
| 27 | let w : ∀ i, E i := fun i => NormedSpace.normalize (v i) |
| 28 | have hw (i : ι) : ‖w i‖ ≤ 1 := by |
| 29 | simpa only [w, NormedSpace.normalize, Metric.mem_closedBall, dist_zero_right] using |
| 30 | inv_norm_smul_mem_unitClosedBall (v i) |
| 31 | have hv : (fun i => ‖v i‖ • w i) = v := by |
| 32 | funext i |
| 33 | exact NormedSpace.norm_smul_normalize (v i) |
| 34 | have hscale := A.map_smul_univ (fun i => ‖v i‖) w |
| 35 | rw [hv] at hscale |
| 36 | have hnonneg : 0 ≤ ∏ i, ‖v i‖ := Finset.prod_nonneg fun _ _ => norm_nonneg _ |
| 37 | rw [hscale, norm_smul_of_nonneg hnonneg, mul_comm K] |
| 38 | exact mul_le_mul_of_nonneg_left (hbound w hw) hnonneg |