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.Curvature.Integral.Concentration.FiniteCover |
| 2 | |
| 3 | /-! |
| 4 | # Concentration at one center across shrinking neighborhoods |
| 5 | |
| 6 | Finiteness permits one fixed neighborhood index to retain unbounded mass at |
| 7 | every scale. A diagonal extraction then follows any prescribed scale sequence. |
| 8 | This supports Petrunin's spire rescaling, Section 4.6, manuscript pp. 12--14. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open Set Filter MeasureTheory |
| 14 | open scoped BigOperators |
| 15 | |
| 16 | namespace Poincare.CurvatureIntegral |
| 17 | |
| 18 | /-- Uniform bounds away from a finite nested family force one fixed member |
| 19 | to have unbounded integrals at every scale. -/ |
| 20 | theorem exists_fixed_member_integral_unbounded_all_scales |
| 21 | {X : ℕ → Type*} [∀ j, MeasurableSpace (X j)] {ι : Type*} [Fintype ι] |
| 22 | (μ : ∀ j, Measure (X j)) (U : ∀ j, Set (X j)) |
| 23 | (V : ∀ j, ℕ → ι → Set (X j)) (h : ∀ j, X j → ℝ) |
| 24 | (hU : ∀ j, MeasurableSet (U j)) (hV : ∀ j k i, MeasurableSet (V j k i)) |
| 25 | (hhn : ∀ j x, 0 ≤ h j x) (hUi : ∀ j, IntegrableOn (h j) (U j) (μ j)) |
| 26 | (hVi : ∀ j k i, IntegrableOn (h j) (V j k i) (μ j)) |
| 27 | (hnested : ∀ j i, Antitone (fun k => V j k i)) |
| 28 | (C : ℕ → ℝ) |
| 29 | (houtside : ∀ k j, (∫ x in U j \ ⋃ i, V j k i, h j x ∂μ j) ≤ C k) |
| 30 | (hlarge : ∀ B : ℝ, ∃ j, B < ∫ x in U j, h j x ∂μ j) : |
| 31 | ∃ i : ι, ∀ k, ∀ B : ℝ, ∃ j, B < ∫ x in V j k i, h j x ∂μ j := by |
| 32 | classical |
| 33 | by_contra hb |
| 34 | push Not at hb |
| 35 | choose k b hb using hb |
| 36 | let K := Finset.univ.sup k |
| 37 | have hiK (i : ι) : k i ≤ K := Finset.le_sup (Finset.mem_univ i) |
| 38 | obtain ⟨j, hj⟩ := hlarge (C K + ∑ i, b i) |
| 39 | have hmono (i : ι) : (∫ x in V j K i, h j x ∂μ j) ≤ b i := by |
| 40 | apply le_trans _ (hb i j) |
| 41 | exact setIntegral_mono_set (hVi j (k i) i) |
| 42 | (Eventually.of_forall (hhn j)) |
| 43 | (Eventually.of_forall (fun _ hx => hnested j i (hiK i) hx)) |
| 44 | have hcover := integral_le_complement_add_sum (hU j) (V j K) (hV j K) |
| 45 | (hhn j) (hUi j) (hVi j K) |
| 46 | exact (not_le_of_gt hj) (hcover.trans (add_le_add (houtside K j) |
| 47 | (Finset.sum_le_sum (fun i _ => hmono i)))) |
| 48 | |
| 49 | /-- The same prescribed center index works along an arbitrary sequence of |
| 50 | scales, after extraction of increasing source indices. -/ |
| 51 | theorem exists_subseq_fixed_member_integral_tendsto_atTop_at_scales |
| 52 | {X : ℕ → Type*} [∀ j, MeasurableSpace (X j)] {ι : Type*} [Fintype ι] |
| 53 | (μ : ∀ j, Measure (X j)) (U : ∀ j, Set (X j)) |
| 54 | (V : ∀ j, ℕ → ι → Set (X j)) (h : ∀ j, X j → ℝ) |
| 55 | (hU : ∀ j, MeasurableSet (U j)) (hV : ∀ j k i, MeasurableSet (V j k i)) |
| 56 | (hhn : ∀ j x, 0 ≤ h j x) (hUi : ∀ j, IntegrableOn (h j) (U j) (μ j)) |
| 57 | (hVi : ∀ j k i, IntegrableOn (h j) (V j k i) (μ j)) |
| 58 | (hnested : ∀ j i, Antitone (fun k => V j k i)) |
| 59 | (C : ℕ → ℝ) |
| 60 | (houtside : ∀ k j, (∫ x in U j \ ⋃ i, V j k i, h j x ∂μ j) ≤ C k) |
| 61 | (hlarge : ∀ B : ℝ, ∃ j, B < ∫ x in U j, h j x ∂μ j) |
| 62 | (scale : ℕ → ℕ) : |
| 63 | ∃ i : ι, ∃ phi : ℕ → ℕ, StrictMono phi ∧ |
| 64 | Tendsto (fun j => ∫ x in V (phi j) (scale j) i, |
| 65 | h (phi j) x ∂μ (phi j)) atTop atTop := by |
| 66 | obtain ⟨i, hi⟩ := exists_fixed_member_integral_unbounded_all_scales |
| 67 | μ U V h hU hV hhn hUi hVi hnested C houtside hlarge |
| 68 | obtain ⟨phi, hphi, hvalue⟩ := exists_strictMono_above_thresholds_family |
| 69 | (fun k j => ∫ x in V j (scale k) i, h j x ∂μ j) (fun k => (k : ℝ)) |
| 70 | (fun k => hi (scale k)) |
| 71 | exact ⟨i, phi, hphi, tendsto_atTop_mono (fun j => (hvalue j).le) |
| 72 | tendsto_natCast_atTop_atTop⟩ |
| 73 | |
| 74 | end Poincare.CurvatureIntegral |