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.CanonicalInduction.Terminal.Curvature.TerminalCurvatureSectionalScaling |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Blowup.Controls.BlowupControlsPinching |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Limit.Finite.LimitFiniteOriginalInterior |
| 4 | import PoincareLib.Geometry.Riemannian.Curvature.Scalar.SharpBounds |
| 5 | |
| 6 | /-! |
| 7 | # Pinching on the actual retained endpoint sources |
| 8 | |
| 9 | The same physical cylinder and normalized ordinary source are kept for |
| 10 | every error tolerance. Only the eventual scale threshold changes. |
| 11 | MT Proposition 17.1; endpoint-germ-sign.md, AL1-AL2. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M47 |
| 23 | |
| 24 | /-- The physical norm ceiling and actual pinching give every sufficiently |
| 25 | large scale the displayed sectional error on its unchanged source. -/ |
| 26 | theorem limitFinite_source_sectional_of_pinching |
| 27 | {F : SurgeryFlowData.{u}} (hPinched : SurgeryFlowPinched F) |
| 28 | {C : GeneralizedSliceCarrier.{u}} {base Q b tau K eta : ℝ} |
| 29 | (U : TopologicalSpace.Opens C.carrier) (hb : b ≤ -tau) (hK : 0 ≤ K) |
| 30 | (E : SurgeryFlowCylinder F C base Q (Icc b 0) U) |
| 31 | (A : RicciFlow 3 U (Icc (-tau) 0)) |
| 32 | (hcurv : ∀ s (hs : s ∈ Icc b 0), ∀ x ∈ U, |
| 33 | |(F.connection (base + s / Q)).curvatureTensorNorm (E.forward s hs x)| ≤ K * Q) |
| 34 | (hmetric : ∀ s (hs : s ∈ Icc (-tau) 0) (x : U), |
| 35 | ∀ v w : TangentSpace (𝓡 3) x, |
| 36 | (A.metric s).inner x v w = E.pullbackInner s ⟨hb.trans hs.1, hs.2⟩ x.val |
| 37 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → C.carrier) x v) |
| 38 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → C.carrier) x w)) |
| 39 | (heta : 0 < eta) (hscale : blowupPinchingThreshold (3 * K) eta ≤ Q) : |
| 40 | ∀ s ∈ Icc (-tau) 0, ∀ (x : U) (v w : TangentSpace (𝓡 3) x), |
| 41 | -eta ≤ (A.connection s).sectionalCurvature x v w := by |
| 42 | intro s hs x v w |
| 43 | let hsE : s ∈ Icc b 0 := ⟨hb.trans hs.1, hs.2⟩ |
| 44 | let f := fun y : U => E.forward s hsE y.val |
| 45 | have hf : ContMDiff (𝓡 3) (𝓡 3) ∞ f := by |
| 46 | intro y |
| 47 | exact ((E.forward_smooth s hsE y.val y.property).contMDiffAt |
| 48 | (U.isOpen.mem_nhds y.property)).comp y (contMDiff_subtype_val y) |
| 49 | have hm : ∀ y ∈ (univ : Set U), ∀ a b : TangentSpace (𝓡 3) y, |
| 50 | (A.metric s).inner y a b = Q * (F.metric (base + s / Q)).inner |
| 51 | (f y) (mfderiv (𝓡 3) (𝓡 3) f y a) (mfderiv (𝓡 3) (𝓡 3) f y b) := by |
| 52 | intro y _ a b |
| 53 | have hd := mfderiv_comp y |
| 54 | (((E.forward_smooth s hsE y.val y.property).contMDiffAt |
| 55 | (U.isOpen.mem_nhds y.property)).mdifferentiableAt (by simp)) |
| 56 | ((contMDiff_subtype_val (n := ∞) y).mdifferentiableAt (by simp)) |
| 57 | change mfderiv (𝓡 3) (𝓡 3) f y = _ at hd |
| 58 | rw [hmetric s hs y a b, hd] |
| 59 | rfl |
| 60 | have hscalar : (F.connection (base + s / Q)).scalarCurvature (f x) ≤ (3 * K) * Q := by |
| 61 | calc |
| 62 | _ ≤ 3 * (F.connection (base + s / Q)).curvatureTensorNorm (f x) := |
| 63 | (F.connection (base + s / Q)).scalarCurvature_le_curvatureTensorNorm_sharp (f x) |
| 64 | _ ≤ 3 * (K * Q) := mul_le_mul_of_nonneg_left |
| 65 | ((le_abs_self _).trans (hcurv s hsE x.val x.property)) (by norm_num) |
| 66 | _ = _ := by ring |
| 67 | have hp := hPinched (base + s / Q) (E.time_subset (mem_image_of_mem _ hsE)) |
| 68 | have hnegative : (F.connection (base + s / Q)).negativeCurvaturePart (f x) ≤ eta * Q := |
| 69 | negative_part_le_blowup_error (by positivity : 0 ≤ 3 * K) heta hscale hp.1 |
| 70 | hscalar (hp.2.2 (f x) (mem_univ _)) |
| 71 | exact terminalCurvature_sectional_lower_of_scaled_negative |
| 72 | (A.connection s) (F.connection (base + s / Q)) E.scale_pos |
| 73 | isOpen_univ hf.contMDiffOn hm (mem_univ x) hnegative v w |
| 74 | |
| 75 | /-- Only genuine late physical sources are required; the all-index |
| 76 | ordinary family and its original raw index are unchanged. -/ |
| 77 | theorem limitFinite_eventually_preserved_source_sectional |
| 78 | (F : ℕ → SurgeryFlowData.{u}) (hPinched : ∀ k, SurgeryFlowPinched (F k)) |
| 79 | (index : ℕ → ℕ) (base Q : ℕ → ℝ) |
| 80 | {C : GeneralizedSliceCarrier.{u}} (U : TopologicalSpace.Opens C.carrier) |
| 81 | {tau K : ℝ} (hK : 0 ≤ K) (A : ℕ → RicciFlow 3 U (Icc (-tau) 0)) |
| 82 | (hphysical : ∀ᶠ k in atTop, ∃ b, ∃ hb : b ≤ -tau, |
| 83 | ∃ E : SurgeryFlowCylinder (F (index k)) C |
| 84 | (base (index k)) (Q (index k)) (Icc b 0) U, |
| 85 | (∀ s (hs : s ∈ Icc b 0), ∀ x ∈ U, |
| 86 | |((F (index k)).connection (base (index k) + s / Q (index k))).curvatureTensorNorm |
| 87 | (E.forward s hs x)| ≤ K * Q (index k)) ∧ |
| 88 | (∀ s (hs : s ∈ Icc (-tau) 0) (x : U), ∀ v w : TangentSpace (𝓡 3) x, |
| 89 | ((A k).metric s).inner x v w = E.pullbackInner s ⟨hb.trans hs.1, hs.2⟩ x.val |
| 90 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → C.carrier) x v) |
| 91 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → C.carrier) x w))) |
| 92 | (hQ : Tendsto (fun k => Q (index k)) atTop atTop) : |
| 93 | ∀ eta : ℝ, 0 < eta → ∀ᶠ k in atTop, ∀ s ∈ Icc (-tau) 0, |
| 94 | ∀ (x : U) (v w : TangentSpace (𝓡 3) x), |
| 95 | -eta ≤ ((A k).connection s).sectionalCurvature x v w := by |
| 96 | intro eta heta |
| 97 | filter_upwards [hphysical, hQ.eventually |
| 98 | (eventually_ge_atTop (blowupPinchingThreshold (3 * K) eta))] with k hk hscale |
| 99 | obtain ⟨b, hb, E, hcurv, hmetric⟩ := hk |
| 100 | exact limitFinite_source_sectional_of_pinching (hPinched (index k)) U hb hK E (A k) |
| 101 | hcurv hmetric heta hscale |
| 102 | |
| 103 | end PoincareMT.M47 |