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.Topology.Manifold.Poincare.Final.Compatibility.SourceNames |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Seed.Normalized.SeedNormalizedPath |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Joint.JointSeedOrdinary |
| 4 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Barrier.PathComparison |
| 5 | |
| 6 | /-! |
| 7 | # Accessible points under actual finite-history normalization |
| 8 | |
| 9 | The original attained path is a competitor in the normalized flow. |
| 10 | Both minimizing theories come from the actual compact closed histories. |
| 11 | MT Definition 6.45 and Theorem 7.10; reviewed young-seed G3 derivation. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.Proofs.M47 |
| 23 | |
| 24 | variable {M : Type u} [TopologicalSpace M] |
| 25 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 26 | [ConnectedSpace M] |
| 27 | |
| 28 | /-- A genuine old minimizer supplies the one-sided normalized access |
| 29 | inequality, without identifying the two action infima. -/ |
| 30 | theorem seed_reducedLength_normalized_le |
| 31 | {J K : Set ℝ} {F : RicciFlow 3 M J} {G : RicciFlow 3 M K} |
| 32 | {T U d sigma oldMax newMax : ℝ} (hd : 0 < d) (hsigma : 0 < sigma) |
| 33 | (hOld : LGeodesicTheory F T oldMax) (hNew : LGeodesicTheory G U newMax) |
| 34 | (hold : d * sigma ≤ oldMax) (hnew : sigma ≤ newMax) |
| 35 | (hwindow : Icc (U - sigma) U ⊆ K) |
| 36 | (hmetric : ∀ s ∈ Icc (0 : ℝ) sigma, ∀ x (v w : TangentSpace (𝓡 3) x), |
| 37 | (G.metric (U - s)).inner x v w = d⁻¹ * (F.metric (T - d * s)).inner x v w) |
| 38 | (hscalar : ∀ s ∈ Icc (0 : ℝ) sigma, ∀ x, |
| 39 | (G.connection (U - s)).scalarCurvature x = |
| 40 | d * (F.connection (T - d * s)).scalarCurvature x) |
| 41 | (x y : M) : |
| 42 | reducedLength G U x y sigma ≤ reducedLength F T x y (d * sigma) := by |
| 43 | obtain ⟨p, hp0, hpEnd, _hpMin, hpValue⟩ := |
| 44 | hOld.reduced_length_attained (d * sigma) (mul_pos hd hsigma) hold x y |
| 45 | let q := seedNormalizedPath hd hsigma hwindow hmetric hscalar p |
| 46 | have hq0 : q.curve 0 = x := by simpa only [q, seedNormalizedPath, mul_zero] using hp0 |
| 47 | have hqEnd : q.curve sigma = y := hpEnd |
| 48 | have hbound := M09.reducedLength_le_path hNew hsigma hnew q hq0 hqEnd |
| 49 | refine hbound.trans_eq ?_ |
| 50 | rw [hpValue, seedNormalizedPath_length hd hsigma hwindow hmetric hscalar p, |
| 51 | Real.sqrt_mul hd.le] |
| 52 | ring |
| 53 | |
| 54 | /-- Compactness and the retained ordinary service discharge both actual |
| 55 | M08 theories on the finite intervals [b,T] and [0,1]. -/ |
| 56 | theorem seed_compact_normalized_access |
| 57 | (P : M14OrdinaryProviders.{u} 3) |
| 58 | [T3Space M] [SecondCountableTopology M] [CompactSpace M] |
| 59 | {b T sigma : ℝ} (hbt : b < T) (hsigma : 0 < sigma) (hsigmaOne : sigma ≤ 1) |
| 60 | (F : RicciFlow 3 M (Icc b T)) (G : RicciFlow 3 M (Icc 0 1)) |
| 61 | (hmetric : ∀ s ∈ Icc (0 : ℝ) sigma, ∀ x (v w : TangentSpace (𝓡 3) x), |
| 62 | (G.metric (1 - s)).inner x v w = |
| 63 | (T - b)⁻¹ * (F.metric (T - (T - b) * s)).inner x v w) |
| 64 | (hscalar : ∀ s ∈ Icc (0 : ℝ) sigma, ∀ x, |
| 65 | (G.connection (1 - s)).scalarCurvature x = |
| 66 | (T - b) * (F.connection (T - (T - b) * s)).scalarCurvature x) |
| 67 | (x y : M) : |
| 68 | reducedLength G 1 x y sigma ≤ reducedLength F T x y ((T - b) * sigma) := by |
| 69 | let : MeasurableSpace M := borel M |
| 70 | let : BorelSpace M := ⟨rfl⟩ |
| 71 | have hd : 0 < T - b := sub_pos.mpr hbt |
| 72 | have hT : T ∈ Icc b T := ⟨hbt.le, le_rfl⟩ |
| 73 | have hOldWindow : Icc (T - (T - b)) T ⊆ Icc b T := by rw [sub_sub_cancel] |
| 74 | have hOldBounded : CompleteBoundedCurvatureOn F (Icc (T - (T - b)) T) := by |
| 75 | simpa only [sub_sub_cancel] using PoincareMT.M47.jointSeed_completeBoundedCurvatureOn F |
| 76 | obtain ⟨hOld⟩ := P.m08 M (Icc b T) F T (T - b) hT hd hOldWindow hOldBounded |
| 77 | have hNewWindow : Icc ((1 : ℝ) - 1) 1 ⊆ Icc 0 1 := by norm_num |
| 78 | have hNewBounded : CompleteBoundedCurvatureOn G (Icc ((1 : ℝ) - 1) 1) := by |
| 79 | simpa only [sub_self] using PoincareMT.M47.jointSeed_completeBoundedCurvatureOn G |
| 80 | obtain ⟨hNew⟩ := P.m08 M (Icc 0 1) G 1 1 (by norm_num) (by norm_num) |
| 81 | hNewWindow hNewBounded |
| 82 | apply seed_reducedLength_normalized_le hd hsigma hOld hNew |
| 83 | (by nlinarith) hsigmaOne _ hmetric hscalar x y |
| 84 | intro s hs |
| 85 | exact ⟨by linarith [hs.1], hs.2⟩ |
| 86 | |
| 87 | end PoincareMT.Proofs.M47 |