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.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.CapGeometry.CappedRegionMinimizers |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Geometry.RecenteredCompetitor |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Ends.EndpointScalarSeparation |
| 5 | |
| 6 | /-! |
| 7 | # The actual low-cap high-neck source minimizer |
| 8 | |
| 9 | Claim 10.3, Morgan--Tian pp. 248-249. The actual tube chain selects the |
| 10 | high endpoint neck. Scalar separation, actual endpoint connectors and |
| 11 | their splice feed the full capped-carrier minimizer. See derivations |
| 12 | 27-28 and the claim10_4 low-cap high-neck source-minimizer record. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Topology ENNReal Bundle |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M28 |
| 23 | |
| 24 | /-- An original low-cap high-tube path produces an actual finite regional |
| 25 | minimizer with a constructed low cap-core point and high chain center. |
| 26 | Selection, disjointness, recentering and confinement are derived from the |
| 27 | actual capped certificate at one universal accuracy (Claim 10.3). -/ |
| 28 | theorem exists_low_cap_high_neck_source_minimizer_accuracy : |
| 29 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ (1 / 200 : ℝ) ∧ |
| 30 | ∀ (M : Type u) [TopologicalSpace M] |
| 31 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 32 | [IsManifold (𝓡 3) ∞ M] [T2Space M] [T3Space M] |
| 33 | [MeasurableSpace M] [BorelSpace M] |
| 34 | (g : RiemannianMetric 3 M) (D : LeviCivitaData g) |
| 35 | (T : CappedTubeCertificate g), |
| 36 | T.tube.epsilon ≤ epsilon₀ → |
| 37 | ∀ (C Q A : ℝ) (η : ℝ → M) (a b : ℝ), |
| 38 | T.cap.cap_constant ≤ C → 0 < Q → a ≤ b → |
| 39 | ContMDiffOn 𝓘(ℝ, ℝ) (𝓡 3) 1 η (Icc a b) → |
| 40 | MapsTo η (Icc a b) T.carrier → |
| 41 | η a ∈ T.cap.carrier → η b ∈ T.tube.carrier → |
| 42 | g.pathELength η a b < ENNReal.ofReal (A * Q ^ (-1 / 2 : ℝ)) → |
| 43 | D.scalarCurvature (η a) = 8 * Q → |
| 44 | 32 * (max C 2) ^ 4 * Q < D.scalarCurvature (η b) → |
| 45 | ∃ c ∈ T.cap.core, ∃ j ∈ T.tube.chain.shape.active, |
| 46 | ∃ γ : ℝ → M, γ 0 = c ∧ |
| 47 | γ 1 = (T.tube.chain.neck j).center ∧ |
| 48 | D.scalarCurvature (γ 0) ≤ 8 * max C 2 * Q ∧ |
| 49 | 32 * (max C 2) ^ 3 * Q < D.scalarCurvature (γ 1) ∧ |
| 50 | D.scalarCurvature (η b) ≤ max C 2 * D.scalarCurvature (γ 1) ∧ |
| 51 | ContMDiffOn 𝓘(ℝ, ℝ) (𝓡 3) 1 γ (Icc (0 : ℝ) 1) ∧ |
| 52 | MapsTo γ (Icc (0 : ℝ) 1) T.carrier ∧ |
| 53 | g.pathELength γ 0 1 = intrinsicEDist g T.carrier (γ 0) (γ 1) ∧ |
| 54 | g.pathELength γ 0 1 ≠ ⊤ ∧ |
| 55 | g.pathELength γ 0 1 < |
| 56 | ENNReal.ofReal ((A + 2 * endpointConnectorBudget T.tube.epsilon C) * |
| 57 | Q ^ (-1 / 2 : ℝ)) := by |
| 58 | obtain ⟨epsilonR, hRpos, hRthreshold, hrecentering⟩ := |
| 59 | exists_neck_endpoint_recentering_accuracy.{u} |
| 60 | obtain ⟨epsilonS, hSpos, _, hseparation⟩ := |
| 61 | exists_endpoint_scalar_separation_accuracy.{u} |
| 62 | let epsilon₀ := min epsilonR (min epsilonS neckShorteningEpsilon) |
| 63 | refine ⟨epsilon₀, lt_min hRpos (lt_min hSpos neckShorteningEpsilon_pos), |
| 64 | (min_le_left _ _).trans hRthreshold, ?_⟩ |
| 65 | intro M _ _ _ _ _ _ _ g D T hsmall C Q A η a b hcap hQ hab hη hηU hηa hηb hηL hz hy |
| 66 | have hsmallR : T.tube.epsilon ≤ epsilonR := hsmall.trans (min_le_left _ _) |
| 67 | have hsmallS : T.tube.epsilon ≤ epsilonS := |
| 68 | hsmall.trans ((min_le_right _ _).trans (min_le_left _ _)) |
| 69 | have hshort : T.tube.epsilon ≤ neckShorteningEpsilon := |
| 70 | hsmall.trans ((min_le_right _ _).trans (min_le_right _ _)) |
| 71 | rw [T.tube.carrier_eq_chain_union] at hηb |
| 72 | obtain ⟨j, hpj⟩ := mem_iUnion.mp hηb |
| 73 | have hNj : (T.tube.chain.neck j.val).carrier ⊆ T.tube.carrier := by |
| 74 | rw [T.tube.carrier_eq_chain_union] |
| 75 | exact subset_iUnion_of_subset j Subset.rfl |
| 76 | have hjepsilon := T.tube.chain.epsilon_eq j.val j.property |
| 77 | have hdisj := (hseparation M g D C Q (η a) (η b) hQ hz hy).2.1 |
| 78 | T.cap (T.tube.chain.neck j.val) hcap (hjepsilon.trans_le hsmallS) hηa hpj |
| 79 | obtain ⟨c, hc, _, _, _, hlow, _, _, hbackward⟩ := |
| 80 | exists_cap_endpoint_recentering T.cap D T.tube.epsilon_pos hcap hQ hηa (Or.inl hz) |
| 81 | obtain ⟨α, hα0, hα1, hα, hαCap, hαL⟩ := hbackward |
| 82 | obtain ⟨_, _, hsourceHigh, _, _, hhigh, hforward, _⟩ := |
| 83 | hrecentering T.tube.epsilon C T.tube.epsilon_pos hsmallR M g D |
| 84 | (T.tube.chain.neck j.val) Q (η b) hQ hjepsilon hpj (Or.inr hy) |
| 85 | obtain ⟨β, hβ0, hβ1, hβ, hβN, hβL⟩ := hforward |
| 86 | obtain ⟨σ, hσ0, hσ1, hσ, hσU, hσL⟩ := |
| 87 | exists_recentered_competitor_of_connectors g T.tube.epsilon_pos hQ hab hη hηU hηL |
| 88 | hα0 hα1 hα (fun t ht => T.cap_subset (hαCap ht)) hαL |
| 89 | hβ0 hβ1 hβ (fun t ht => T.tube_subset (hNj (hβN ht))) hβL |
| 90 | obtain ⟨γ, hγ0, hγ1, hγ, hγU, hγmin, hγfinite, hγL⟩ := |
| 91 | T.exists_core_neck_minimizer (T.tube.chain.neck j.val) hNj |
| 92 | (T.tube.central_sphere_isotopy j.val j.property) hdisj |
| 93 | (hjepsilon.trans_le hshort) zero_le_one hσ hσU |
| 94 | (hσ0 ▸ T.cap.core_subset_carrier_m28 hc) |
| 95 | (hσ1 ▸ (T.tube.chain.neck j.val).center_on_central_sphere) hσL |
| 96 | refine ⟨c, hc, j.val, j.property, γ, hγ0.trans hσ0, hγ1.trans hσ1, |
| 97 | ?_, ?_, ?_, hγ, hγU, ?_, hγfinite, hγL⟩ |
| 98 | · simpa only [hγ0, hσ0] using hlow hz |
| 99 | · simpa only [hγ1, hσ1] using hhigh hy |
| 100 | · simpa only [hγ1, hσ1] using hsourceHigh |
| 101 | · simpa only [hγ0, hγ1] using hγmin |
| 102 | |
| 103 | end PoincareMT.M28 |