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 | /- Adapted from Mapher `PoincareMT/Proofs/M03/CompactFiniteCoefficient.lean` at |
| 2 | f927d9e1f0810042766d3b5f64d3f4da02ee93cc. See |
| 3 | `references/ricci-flow/mapher/local-theory/port.json`. -/ |
| 4 | |
| 5 | import PoincareLib.Geometry.RicciFlow.Local.Energy.Comparison.RateFiniteAlgebra |
| 6 | |
| 7 | set_option autoImplicit false |
| 8 | |
| 9 | open scoped BigOperators |
| 10 | |
| 11 | namespace PoincareMT.RicciFlow.Local |
| 12 | |
| 13 | /- A finite family of continuous coefficient functions is uniformly bounded on |
| 14 | a compact domain after taking the square-sum used by the rate algebra. -/ |
| 15 | theorem exists_compact_finite_square_sum_bound |
| 16 | {X I B : Type*} [TopologicalSpace X] [Fintype I] [Fintype B] |
| 17 | {K : Set X} (hK : IsCompact K) |
| 18 | (c : X → I → B → ℝ) |
| 19 | (hc : ∀ i b, ContinuousOn (fun x => c x i b) K) : |
| 20 | ∃ C : ℝ, 0 ≤ C ∧ |
| 21 | ∀ x ∈ K, (∑ i, ∑ b, (c x i b) ^ 2) ≤ C := by |
| 22 | let S : X → ℝ := fun x => ∑ i, ∑ b, (c x i b) ^ 2 |
| 23 | have hS : ContinuousOn S K := by |
| 24 | unfold S |
| 25 | apply continuousOn_finsetSum |
| 26 | intro i hi |
| 27 | apply continuousOn_finsetSum |
| 28 | intro b hb |
| 29 | exact (hc i b).pow 2 |
| 30 | obtain ⟨C₀, hC₀⟩ := hK.exists_bound_of_continuousOn hS |
| 31 | refine ⟨max C₀ 0, le_max_right C₀ 0, ?_⟩ |
| 32 | intro x hx |
| 33 | have hnorm : ‖S x‖ ≤ max C₀ 0 := |
| 34 | (hC₀ x hx).trans (le_max_left C₀ 0) |
| 35 | exact (le_abs_self (S x)).trans hnorm |
| 36 | |
| 37 | end PoincareMT.RicciFlow.Local |