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.Blowup.Construction.Generalized.PullbackCurvature |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.CurvatureDefect.NegativeDefect |
| 3 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.PartialLimits.ControlledSource |
| 4 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl |
| 5 | |
| 6 | /-! |
| 7 | # Uniform vanishing defect on the retained source flows |
| 8 | |
| 9 | Morgan--Tian Theorem 5.33, pp. 99--100, and Claim 11.5, p. 270. |
| 10 | The full cylinder curvature bound supplies a scalar bound for the original |
| 11 | pinching estimate. Normalization then gives arbitrarily small negative |
| 12 | sectional part on the same fixed family, including both time endpoints. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | universe u v |
| 21 | |
| 22 | namespace PoincareMT.M30 |
| 23 | |
| 24 | /-- Every positive defect tolerance eventually holds on the entire |
| 25 | retained source family, with no new choice of maps or flows |
| 26 | (Theorem 5.33 and Claim 11.5, pp. 99--100 and 270). -/ |
| 27 | theorem eventually_retained_source_negativeDefect_le |
| 28 | (S : GeneralizedBlowupSequence.{u}) |
| 29 | (hbranch : ∀ k, generalizedPinchedOrNonnegative (S.flow k)) |
| 30 | (phi : ℕ → ℕ) (hphi : StrictMono phi) {W T B eta₀ : ℝ} |
| 31 | (hT : 0 < T) (hB : 0 ≤ B) |
| 32 | (E : ∀ k, ControlledBlowupCylinder S (phi k) W T B eta₀) |
| 33 | {Y : Type v} [TopologicalSpace Y] |
| 34 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) Y] [IsManifold (𝓡 3) ∞ Y] |
| 35 | (f : ∀ k, Y → ((S.flow (phi k)).slice (S.base (phi k)).1).carrier) |
| 36 | (hf : ∀ᶠ k in atTop, ContMDiff (𝓡 3) (𝓡 3) ∞ (f k)) |
| 37 | (himage : ∀ k x, f k x ∈ S.baseBall (phi k) W) |
| 38 | (G : ℕ → RicciFlow 3 Y (Icc (-T) 0)) |
| 39 | (hG : ∀ k s (hs : s ∈ Icc (-T) 0) (x : Y) (v w : TangentSpace (𝓡 3) x), |
| 40 | ((G k).metric s).inner x v w = (E k).embedding.pullbackInner s hs (f k x) |
| 41 | (mfderiv (𝓡 3) (𝓡 3) (f k) x v) (mfderiv (𝓡 3) (𝓡 3) (f k) x w)) |
| 42 | (eta : ℝ) (heta : 0 < eta) : |
| 43 | ∀ᶠ k in atTop, ∀ s ∈ Icc (-T) 0, ∀ x : Y, |
| 44 | ((G k).connection s).negativeCurvaturePart x ≤ eta := by |
| 45 | let J : SpacetimeInterval := { |
| 46 | domain := Icc (-T) 0 |
| 47 | ordConnected := ordConnected_Icc |
| 48 | nontrivial := ⟨-T, ⟨le_rfl, by linarith⟩, 0, ⟨by linarith, le_rfl⟩, |
| 49 | by linarith⟩ } |
| 50 | filter_upwards [hf, hphi.tendsto_atTop.eventually |
| 51 | (eventually_negativeDefect_le S hbranch (9 * B) (by positivity) eta heta)] |
| 52 | with k hfk hk s hs x |
| 53 | let U : TopologicalSpace.Opens ((S.flow (phi k)).slice (S.base (phi k)).1).carrier := |
| 54 | ⟨S.baseBall (phi k) W, baseBall_isOpen S (phi k) W⟩ |
| 55 | have hread := Cylinder.curvature_of_pullbackFlow (J := J) (U := U) |
| 56 | (E k).embedding (f k) hfk (himage k) (G k) (hG k) s hs x |
| 57 | rw [hread.2.2] |
| 58 | apply (div_le_iff₀ (S.base_scalar_pos (phi k))).mpr |
| 59 | let p := (E k).embedding.pointMap s hs (f k x) |
| 60 | apply hk p.1 (((S.flow (phi k)).slice_nonempty_iff p.1).mp ⟨p.2⟩) p.2 |
| 61 | have hnorm : (S.flow (phi k)).curvatureNorm p ≤ B * S.scale (phi k) := |
| 62 | (le_abs_self _).trans ((E k).curvature_bound s hs (f k x) (himage k x)) |
| 63 | have hscalar := ((S.flow (phi k)).connection p.1).abs_scalarCurvature_le_curvatureTensorNorm |
| 64 | p.2 |
| 65 | norm_num only [Nat.cast_ofNat, Nat.reducePow] at hscalar |
| 66 | calc |
| 67 | (S.flow (phi k)).scalar p ≤ 9 * (S.flow (phi k)).curvatureNorm p := |
| 68 | (le_abs_self _).trans hscalar |
| 69 | _ ≤ 9 * (B * S.scale (phi k)) := mul_le_mul_of_nonneg_left hnorm (by norm_num) |
| 70 | _ = (9 * B) * S.scale (phi k) := by ring |
| 71 | |
| 72 | end PoincareMT.M30 |