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.CorePullbackBounds |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.RotationInvariance.EndPullbackBounds |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.RotationInvariance.IndexedSupportIntegral |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.Energy.UniformFamilyEnergyBounds |
| 5 | |
| 6 | /-! |
| 7 | # Uniform indexed energy values and local support rates |
| 8 | |
| 9 | Compact core bounds and uniform translated-end bounds apply to both |
| 10 | actual partial flows on one bounded-curvature horizon. Taking two finite |
| 11 | maxima yields constants before every chart index and time. This is |
| 12 | Morgan-Tian Section 12.5, pp. 309-319 and |
| 13 | uniqueness-assembly-interfaces.md. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | -- Actual curvature takes values in three nested Hom spaces. |
| 19 | set_option maxSynthPendingDepth 8 |
| 20 | |
| 21 | open Set MeasureTheory |
| 22 | open scoped Manifold ContDiff |
| 23 | |
| 24 | namespace PoincareMT.M34 |
| 25 | |
| 26 | open DifferenceEnergy |
| 27 | |
| 28 | /-- The actual indexed energies have uniformly bounded values and one |
| 29 | uniform local support-rate coefficient on a common curvature horizon |
| 30 | (Section 12.5, pp. 309-319). -/ |
| 31 | theorem partialFlows_capDifferenceEnergy_bounds (P : RicciFlowCurvatureTheory.{0}) |
| 32 | {g0 : StandardInitialMetric} (E0 : StandardCapEstimate g0) |
| 33 | (F F' : PartialStandardCapFlow g0) (e : StandardCylindricalEnd g0.metric) |
| 34 | {dH dA dS : ℕ} (qH : FH 3 ≃L[ℝ] EuclideanSpace ℝ (Fin dH)) |
| 35 | (qA : FA 3 ≃L[ℝ] EuclideanSpace ℝ (Fin dA)) |
| 36 | (qS : FS 3 ≃L[ℝ] EuclideanSpace ℝ (Fin dS)) |
| 37 | {S B : ℝ} (hS : 0 < S) (hSF : S ≤ F.lifetime) (hSF' : S ≤ F'.lifetime) |
| 38 | (hB : 0 < B) |
| 39 | (hfull : ∀ t ∈ Ico 0 S, ∀ x : StandardCapSpace, |
| 40 | (F.flow.connection t).curvatureTensorNorm x ≤ B) |
| 41 | (hfull' : ∀ t ∈ Ico 0 S, ∀ x : StandardCapSpace, |
| 42 | (F'.flow.connection t).curvatureTensorNorm x ≤ B) |
| 43 | (p : endReferenceRegion e) : |
| 44 | let E := capDifferenceEnergy e qH qA qS F.flow F'.flow p |
| 45 | let D := capDifferenceSupportIntegral e qH qA qS F.flow F'.flow p |
| 46 | ∃ M C : ℝ, 0 ≤ M ∧ 0 ≤ C ∧ |
| 47 | (∀ i t, t ∈ Ico 0 S → E i t ≤ M) ∧ |
| 48 | (∀ i t, t ∈ Ico 0 S → t ∈ interior (Ico 0 F.lifetime ∩ Ico 0 F'.lifetime) → |
| 49 | deriv (E i) t ≤ C * D i t) := by |
| 50 | let := (isOpen_univ : IsOpen (univ : Set (V 3))).isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 51 | let := (isOpen_univ : IsOpen (univ : Set (V 3))).isOpenEmbedding_subtypeVal.isManifold_singleton |
| 52 | (I := 𝓡 3) (n := ∞) |
| 53 | let := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 54 | let := (endReferenceRegion_isOpen e).isOpenEmbedding_subtypeVal.isManifold_singleton |
| 55 | (I := 𝓡 3) (n := ∞) |
| 56 | let : MeasurableSpace StandardCapSpace := borel _ |
| 57 | let : BorelSpace StandardCapSpace := ⟨rfl⟩ |
| 58 | intro E D |
| 59 | obtain ⟨ac, Mc, hac, _hMc, hc⟩ := partialFlow_corePullback_bounds P E0 F |
| 60 | hS hSF hB hfull (energyCutoffs_hasCompactSupport e).2 3 |
| 61 | obtain ⟨ac', Mc', hac', _hMc', hc'⟩ := partialFlow_corePullback_bounds P E0 F' |
| 62 | hS hSF' hB hfull' (energyCutoffs_hasCompactSupport e).2 3 |
| 63 | obtain ⟨ae, Me, hae, _hMe, he⟩ := partialFlow_endPullback_bounds P E0 F e |
| 64 | hS hSF hB hfull (energyCutoffs_hasCompactSupport e).1 3 |
| 65 | obtain ⟨ae', Me', hae', _hMe', he'⟩ := partialFlow_endPullback_bounds P E0 F' e |
| 66 | hS hSF' hB hfull' (energyCutoffs_hasCompactSupport e).1 3 |
| 67 | let pc : (univ : Set (V 3)) := ⟨0, mem_univ _⟩ |
| 68 | obtain ⟨Bc, Lc, hBc, hLc, hfc⟩ := exists_uniformFamily_energy_bounds univ isOpen_univ |
| 69 | qH qA qS ((energyCutoffs_contDiff e).2.of_le (by simp)) |
| 70 | (energyCutoffs_hasCompactSupport e).2 (subset_univ _) hac hac' Mc Mc' |
| 71 | obtain ⟨hvc, hrc⟩ := hfc (K := Ico 0 S) |
| 72 | (fun _ : Unit => canonicalCoreFlow F.flow) (fun _ : Unit => canonicalCoreFlow F'.flow) pc |
| 73 | (fun _ t ht x hx => hc t ht pc x hx) (fun _ t ht x hx => hc' t ht pc x hx) |
| 74 | obtain ⟨Be, Le, hBe, hLe, hfe⟩ := exists_uniformFamily_energy_bounds |
| 75 | (endReferenceRegion e) (endReferenceRegion_isOpen e) qH qA qS |
| 76 | ((energyCutoffs_contDiff e).1.of_le (by simp)) (energyCutoffs_hasCompactSupport e).1 |
| 77 | (endEnergyCutoff_tsupport_subset_region e) hae hae' Me Me' |
| 78 | have hj (j : ℕ) : -3 < (j : ℝ) := by have := Nat.cast_nonneg (α := ℝ) j; linarith |
| 79 | obtain ⟨hve, hre⟩ := hfe (K := Ico 0 S) |
| 80 | (fun j : ℕ => endPullbackFlow e F.flow j (hj j)) |
| 81 | (fun j : ℕ => endPullbackFlow e F'.flow j (hj j)) p |
| 82 | (fun j t ht x hx => he j (hj j) t ht p x hx (endEnergyCutoff_tsupport_subset_region e hx)) |
| 83 | (fun j t ht x hx => he' j (hj j) t ht p x hx (endEnergyCutoff_tsupport_subset_region e hx)) |
| 84 | have htJ (t) (ht : t ∈ Ico 0 S) : t ∈ Ico 0 F.lifetime ∩ Ico 0 F'.lifetime := |
| 85 | ⟨⟨ht.1, ht.2.trans_le hSF⟩, ⟨ht.1, ht.2.trans_le hSF'⟩⟩ |
| 86 | refine ⟨max Bc Be, max Lc Le, hBc.trans (le_max_left _ _), |
| 87 | hLc.trans (le_max_left _ _), ?_, ?_⟩ |
| 88 | · intro i t ht |
| 89 | cases i with |
| 90 | | zero => exact (hvc () t ht (htJ t ht)).trans (le_max_left _ _) |
| 91 | | succ j => exact (hve j t ht (htJ t ht)).trans (le_max_right _ _) |
| 92 | · intro i t ht hi |
| 93 | have hD : 0 ≤ D i t := capDifferenceSupportIntegral_nonneg e qH qA qS F.flow F'.flow p i t |
| 94 | cases i with |
| 95 | | zero => |
| 96 | have hr : deriv (E 0) t ≤ Lc * D 0 t := by |
| 97 | simpa only [E, D, capDifferenceEnergy, capDifferenceSupportIntegral, |
| 98 | canonicalCoreFlow_chart_density] using hrc () t ht hi |
| 99 | exact hr.trans (mul_le_mul_of_nonneg_right (le_max_left _ _) hD) |
| 100 | | succ j => |
| 101 | exact (hre j t ht hi).trans (mul_le_mul_of_nonneg_right (le_max_right _ _) hD) |
| 102 | |
| 103 | end PoincareMT.M34 |