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.RicciFlow.Surgery.StandardCap.Existence.RotationInvariance.CoreBandIntegral |
| 2 | |
| 3 | /-! |
| 4 | # The core and zeroth end support integral bounds |
| 5 | |
| 6 | Both exceptional supports lie in the fixed compact exhaustion sublevel |
| 7 | six. The core density restricts directly; the zeroth end density is |
| 8 | controlled there by actual pullback transport. This gives one constant |
| 9 | for the two boundary rows of the countable energy system. This is |
| 10 | Morgan-Tian Section 12.5, pp. 309-319 and core-energy-comparison-api.md. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | -- The actual curvature fiber contains three nested Hom spaces. |
| 16 | set_option maxSynthPendingDepth 8 |
| 17 | |
| 18 | open Set MeasureTheory |
| 19 | open scoped Manifold ContDiff BigOperators |
| 20 | |
| 21 | namespace PoincareMT.M34 |
| 22 | |
| 23 | open DifferenceEnergy |
| 24 | |
| 25 | /-- The two boundary support integrals are controlled by the three |
| 26 | boundary energies, with a constant before both flows and time |
| 27 | (Section 12.5, pp. 309-319). -/ |
| 28 | theorem exists_boundarySupport_integral_bound |
| 29 | {g : RiemannianMetric 3 StandardCapSpace} (e : StandardCylindricalEnd g) |
| 30 | {dH dA dS : ℕ} (qH : FH 3 ≃L[ℝ] EuclideanSpace ℝ (Fin dH)) |
| 31 | (qA : FA 3 ≃L[ℝ] EuclideanSpace ℝ (Fin dA)) |
| 32 | (qS : FS 3 ≃L[ℝ] EuclideanSpace ℝ (Fin dS)) : |
| 33 | letI := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 34 | letI := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.isManifold_singleton |
| 35 | (I := 𝓡 3) (n := ∞) |
| 36 | letI : MeasurableSpace StandardCapSpace := borel _ |
| 37 | letI : BorelSpace StandardCapSpace := ⟨rfl⟩ |
| 38 | ∃ C : ℝ, 0 ≤ C ∧ ∀ {J J' : Set ℝ} |
| 39 | (F : RicciFlow 3 StandardCapSpace J) (F' : RicciFlow 3 StandardCapSpace J') |
| 40 | (p : endReferenceRegion e) {t : ℝ}, t ∈ J ∩ J' → |
| 41 | let dc := actualDifferenceEnergyDensity qH qA qS (F.connection t) (F'.connection t) |
| 42 | let rho := fun j : ℕ => canonicalDifferenceDensity |
| 43 | (endReferenceRegion e) (endReferenceRegion_isOpen e) qH qA qS |
| 44 | (endPullbackFlow e F j (by have := Nat.cast_nonneg (α := ℝ) j; linarith)) |
| 45 | (endPullbackFlow e F' j (by have := Nat.cast_nonneg (α := ℝ) j; linarith)) p t |
| 46 | let B := (∫ x, coreEnergyCutoff e x ^ 2 * dc x) + |
| 47 | (∫ x, endEnergyCutoff e x ^ 2 * rho 0 x) + |
| 48 | (∫ x, endEnergyCutoff e x ^ 2 * rho 1 x) |
| 49 | (∫ x in tsupport (coreEnergyCutoff e), dc x) ≤ C * B ∧ |
| 50 | (∫ x in tsupport (endEnergyCutoff e), rho 0 x) ≤ C * B := by |
| 51 | let := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 52 | let := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.isManifold_singleton |
| 53 | (I := 𝓡 3) (n := ∞) |
| 54 | let : MeasurableSpace StandardCapSpace := borel _ |
| 55 | let : BorelSpace StandardCapSpace := ⟨rfl⟩ |
| 56 | obtain ⟨Cb, hCb, hband⟩ := exists_coreBand_integral_bound e qH qA qS |
| 57 | obtain ⟨D, hD, hcompare⟩ := exists_endOriginal_density_bounds e qH qA qS 0 (by norm_num) |
| 58 | (energyCutoffs_hasCompactSupport e).1 (endEnergyCutoff_tsupport_subset_region e) |
| 59 | let C := max Cb (D * Cb) |
| 60 | refine ⟨C, hCb.trans (le_max_left _ _), ?_⟩ |
| 61 | intro J J' F F' p t ht dc rho B |
| 62 | have hc : Continuous dc := actualDifferenceEnergyDensity_continuous_euclidean qH qA qS F F' ht |
| 63 | have hd0 (x) : 0 ≤ dc x := actualDifferenceEnergyDensity_nonneg qH qA qS _ _ x |
| 64 | have hr0 (j : ℕ) (x : StandardCapSpace) : 0 ≤ rho j x := |
| 65 | canonicalDifferenceDensity_nonneg _ _ qH qA qS _ _ p t x |
| 66 | have hB : 0 ≤ B := add_nonneg |
| 67 | (add_nonneg (integral_nonneg (fun x => mul_nonneg (sq_nonneg _) (hd0 x))) |
| 68 | (integral_nonneg (fun x => mul_nonneg (sq_nonneg _) (hr0 0 x)))) |
| 69 | (integral_nonneg (fun x => mul_nonneg (sq_nonneg _) (hr0 1 x))) |
| 70 | have hci : IntegrableOn dc {x | endExhaustion e x ≤ 6} := |
| 71 | ContinuousOn.integrableOn_compact (endExhaustion_sublevel_isCompact e 6) hc.continuousOn |
| 72 | have hb : (∫ x in {x | endExhaustion e x ≤ 6}, dc x) ≤ Cb * B := hband F F' p ht |
| 73 | have hendSub : tsupport (endEnergyCutoff e) ⊆ {x | endExhaustion e x ≤ 6} := by |
| 74 | intro x hx |
| 75 | have hh := (endEnergyCutoff_tsupport e hx).2 |
| 76 | change endExhaustion e x ≤ 6 |
| 77 | linarith |
| 78 | constructor |
| 79 | · exact ((setIntegral_mono_set hci (Filter.Eventually.of_forall hd0) |
| 80 | (Filter.Eventually.of_forall (coreEnergyCutoff_tsupport e))).trans hb).trans |
| 81 | (mul_le_mul_of_nonneg_right (le_max_left _ _) hB) |
| 82 | · have hec : ContinuousOn (rho 0) (endReferenceRegion e) := |
| 83 | canonicalDifferenceDensity_continuousOn_slice _ _ qH qA qS _ _ p ht |
| 84 | have hei : IntegrableOn (rho 0) (tsupport (endEnergyCutoff e)) := |
| 85 | ContinuousOn.integrableOn_compact (energyCutoffs_hasCompactSupport e).1 |
| 86 | (hec.mono (endEnergyCutoff_tsupport_subset_region e)) |
| 87 | have hdi : IntegrableOn dc (tsupport (endEnergyCutoff e)) := |
| 88 | ContinuousOn.integrableOn_compact (energyCutoffs_hasCompactSupport e).1 hc.continuousOn |
| 89 | have hpoint (x) (hx : x ∈ tsupport (endEnergyCutoff e)) : rho 0 x ≤ D * dc x := by |
| 90 | have hh := (hcompare F F' p t x hx).1 |
| 91 | simpa only [rho, Nat.cast_zero, endAxialTranslation_zero_reference e |
| 92 | (endEnergyCutoff_tsupport_subset_region e hx)] using hh |
| 93 | calc |
| 94 | _ ≤ ∫ x in tsupport (endEnergyCutoff e), D * dc x := |
| 95 | setIntegral_mono_on hei (hdi.const_mul D) (isClosed_tsupport _).measurableSet hpoint |
| 96 | _ = D * ∫ x in tsupport (endEnergyCutoff e), dc x := integral_const_mul _ _ |
| 97 | _ ≤ D * ∫ x in {x | endExhaustion e x ≤ 6}, dc x := |
| 98 | mul_le_mul_of_nonneg_left (setIntegral_mono_set hci |
| 99 | (Filter.Eventually.of_forall hd0) (Filter.Eventually.of_forall hendSub)) hD |
| 100 | _ ≤ D * (Cb * B) := mul_le_mul_of_nonneg_left hb hD |
| 101 | _ = (D * Cb) * B := by ring |
| 102 | _ ≤ C * B := mul_le_mul_of_nonneg_right (le_max_right _ _) hB |
| 103 | |
| 104 | end PoincareMT.M34 |