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/FiniteCompactFourFamilyCoefficient.lean` at |
| 2 | f927d9e1f0810042766d3b5f64d3f4da02ee93cc. See |
| 3 | `references/ricci-flow/mapher/local-theory/port.json`. -/ |
| 4 | |
| 5 | import PoincareLib.Geometry.RicciFlow.Local.Energy.Coefficients.FiniteCompactCoefficientFamily |
| 6 | |
| 7 | set_option autoImplicit false |
| 8 | |
| 9 | open scoped BigOperators |
| 10 | |
| 11 | namespace PoincareMT.RicciFlow.Local |
| 12 | |
| 13 | /- A finite compact chart family gives one square-sum bound for principal and |
| 14 | H/A/S coefficient arrays used together in the uniqueness estimate. -/ |
| 15 | theorem exists_finite_compact_family_four_array_square_sum_bound |
| 16 | {X I D H A S M : Type*} [TopologicalSpace X] |
| 17 | [Fintype I] [Fintype D] [Fintype H] [Fintype A] [Fintype S] |
| 18 | (s : Finset M) (K : M → Set X) |
| 19 | (hK : ∀ a ∈ s, IsCompact (K a)) |
| 20 | (cD : M → X → I → D → ℝ) |
| 21 | (cH : M → X → I → H → ℝ) |
| 22 | (cA : M → X → I → A → ℝ) |
| 23 | (cS : M → X → I → S → ℝ) |
| 24 | (hcD : ∀ a ∈ s, ∀ i d, ContinuousOn (fun x => cD a x i d) (K a)) |
| 25 | (hcH : ∀ a ∈ s, ∀ i h, ContinuousOn (fun x => cH a x i h) (K a)) |
| 26 | (hcA : ∀ a ∈ s, ∀ i j, ContinuousOn (fun x => cA a x i j) (K a)) |
| 27 | (hcS : ∀ a ∈ s, ∀ i k, ContinuousOn (fun x => cS a x i k) (K a)) : |
| 28 | ∃ C : ℝ, 0 ≤ C ∧ |
| 29 | ∀ a ∈ s, ∀ x ∈ K a, |
| 30 | (∑ i, ∑ d, (cD a x i d) ^ 2) + |
| 31 | (∑ i, ∑ h, (cH a x i h) ^ 2) + |
| 32 | (∑ i, ∑ j, (cA a x i j) ^ 2) + |
| 33 | (∑ i, ∑ k, (cS a x i k) ^ 2) ≤ C := by |
| 34 | let B := D ⊕ (H ⊕ (A ⊕ S)) |
| 35 | let c : M → X → I → B → ℝ := fun a x i q => |
| 36 | Sum.elim (cD a x i) (Sum.elim (cH a x i) (Sum.elim (cA a x i) (cS a x i))) q |
| 37 | have hc : ∀ a ∈ s, ∀ i b, ContinuousOn (fun x => c a x i b) (K a) := by |
| 38 | intro a ha i b |
| 39 | cases b with |
| 40 | | inl d => |
| 41 | simpa [c] using hcD a ha i d |
| 42 | | inr b => |
| 43 | cases b with |
| 44 | | inl h => |
| 45 | simpa [c] using hcH a ha i h |
| 46 | | inr b => |
| 47 | cases b with |
| 48 | | inl j => |
| 49 | simpa [c] using hcA a ha i j |
| 50 | | inr k => |
| 51 | simpa [c] using hcS a ha i k |
| 52 | obtain ⟨C, hC, hbound⟩ := |
| 53 | exists_finite_compact_family_square_sum_bound s K hK c hc |
| 54 | refine ⟨C, hC, ?_⟩ |
| 55 | intro a ha x hx |
| 56 | have hpacked := hbound a ha x hx |
| 57 | simpa [B, c, Fintype.sum_sum_type, Finset.sum_add_distrib, |
| 58 | add_assoc, add_left_comm, add_comm] using hpacked |
| 59 | |
| 60 | end PoincareMT.RicciFlow.Local |