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.CappedTwoNeckMinimizers |
| 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 two-neck source minimizer in a capped region |
| 8 | |
| 9 | Claim 10.3, Morgan--Tian pp. 248-249. Original endpoint membership in the |
| 10 | literal tube selects actual chain necks. Scalar separation constructs both |
| 11 | disjointness inputs, actual connectors recenter the source path, and the |
| 12 | capped confinement producer minimizes over the full capped carrier. |
| 13 | See the cap-topology recentered-confinement derivation, section 4. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff Topology ENNReal Bundle |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M28 |
| 24 | |
| 25 | /-- At one universal accuracy, an actual capped-region source path whose |
| 26 | original endpoints lie in its tube produces a finite full-region |
| 27 | minimizer between actual selected chain centers. No selected indices, |
| 28 | disjointness, connectors or confinement data are supplied (Claim 10.3). -/ |
| 29 | theorem exists_capped_two_neck_source_minimizer_accuracy : |
| 30 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ (1 / 200 : ℝ) ∧ |
| 31 | ∀ (M : Type u) [TopologicalSpace M] |
| 32 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 33 | [IsManifold (𝓡 3) ∞ M] [T2Space M] [T3Space M] |
| 34 | [MeasurableSpace M] [BorelSpace M] |
| 35 | (g : RiemannianMetric 3 M) (D : LeviCivitaData g) |
| 36 | (T : CappedTubeCertificate g), |
| 37 | T.tube.epsilon ≤ epsilon₀ → |
| 38 | ∀ (C Q A : ℝ) (η : ℝ → M) (a b : ℝ), |
| 39 | T.cap.cap_constant ≤ C → 0 < Q → a ≤ b → |
| 40 | ContMDiffOn 𝓘(ℝ, ℝ) (𝓡 3) 1 η (Icc a b) → |
| 41 | MapsTo η (Icc a b) T.carrier → |
| 42 | η a ∈ T.tube.carrier → η b ∈ T.tube.carrier → |
| 43 | g.pathELength η a b < ENNReal.ofReal (A * Q ^ (-1 / 2 : ℝ)) → |
| 44 | D.scalarCurvature (η a) = 8 * Q → |
| 45 | 32 * (max C 2) ^ 4 * Q < D.scalarCurvature (η b) → |
| 46 | ∃ i ∈ T.tube.chain.shape.active, ∃ j ∈ T.tube.chain.shape.active, |
| 47 | ∃ γ : ℝ → M, γ 0 = (T.tube.chain.neck i).center ∧ |
| 48 | γ 1 = (T.tube.chain.neck j).center ∧ |
| 49 | D.scalarCurvature (γ 0) ≤ 8 * max C 2 * Q ∧ |
| 50 | 32 * (max C 2) ^ 3 * Q < D.scalarCurvature (γ 1) ∧ |
| 51 | D.scalarCurvature (η b) ≤ max C 2 * D.scalarCurvature (γ 1) ∧ |
| 52 | ContMDiffOn 𝓘(ℝ, ℝ) (𝓡 3) 1 γ (Icc (0 : ℝ) 1) ∧ |
| 53 | MapsTo γ (Icc (0 : ℝ) 1) T.carrier ∧ |
| 54 | g.pathELength γ 0 1 = intrinsicEDist g T.carrier (γ 0) (γ 1) ∧ |
| 55 | g.pathELength γ 0 1 ≠ ⊤ ∧ |
| 56 | g.pathELength γ 0 1 < |
| 57 | ENNReal.ofReal ((A + 2 * endpointConnectorBudget T.tube.epsilon C) * |
| 58 | Q ^ (-1 / 2 : ℝ)) := by |
| 59 | obtain ⟨epsilonR, hRpos, hRthreshold, hrecentering⟩ := |
| 60 | exists_neck_endpoint_recentering_accuracy.{u} |
| 61 | obtain ⟨epsilonS, hSpos, _, hseparation⟩ := |
| 62 | exists_endpoint_scalar_separation_accuracy.{u} |
| 63 | let epsilon₀ := min epsilonR (min epsilonS neckShorteningEpsilon) |
| 64 | refine ⟨epsilon₀, lt_min hRpos (lt_min hSpos neckShorteningEpsilon_pos), |
| 65 | (min_le_left _ _).trans hRthreshold, ?_⟩ |
| 66 | 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 |
| 67 | have hsmallR : T.tube.epsilon ≤ epsilonR := hsmall.trans (min_le_left _ _) |
| 68 | have hsmallS : T.tube.epsilon ≤ epsilonS := |
| 69 | hsmall.trans ((min_le_right _ _).trans (min_le_left _ _)) |
| 70 | have hshort : T.tube.epsilon ≤ neckShorteningEpsilon := |
| 71 | hsmall.trans ((min_le_right _ _).trans (min_le_right _ _)) |
| 72 | rw [T.tube.carrier_eq_chain_union] at hηa hηb |
| 73 | obtain ⟨i, hpi⟩ := mem_iUnion.mp hηa |
| 74 | obtain ⟨j, hpj⟩ := mem_iUnion.mp hηb |
| 75 | have hNi : (T.tube.chain.neck i.val).carrier ⊆ T.carrier := by |
| 76 | apply Subset.trans _ T.tube_subset |
| 77 | rw [T.tube.carrier_eq_chain_union] |
| 78 | exact subset_iUnion_of_subset i Subset.rfl |
| 79 | have hNj : (T.tube.chain.neck j.val).carrier ⊆ T.carrier := by |
| 80 | apply Subset.trans _ T.tube_subset |
| 81 | rw [T.tube.carrier_eq_chain_union] |
| 82 | exact subset_iUnion_of_subset j Subset.rfl |
| 83 | have hiepsilon := T.tube.chain.epsilon_eq i.val i.property |
| 84 | have hjepsilon := T.tube.chain.epsilon_eq j.val j.property |
| 85 | have hsep := hseparation M g D C Q (η a) (η b) hQ hz hy |
| 86 | have hdisj := hsep.1 (T.tube.chain.neck i.val) (T.tube.chain.neck j.val) |
| 87 | (hiepsilon.trans_le hsmallS) (hjepsilon.trans_le hsmallS) hpi hpj |
| 88 | have hcapdisj := hsep.2.2.2.2 T.cap (T.tube.chain.neck i.val) (T.tube.chain.neck j.val) |
| 89 | (hcap.trans (le_max_left C 2)) |
| 90 | (hiepsilon.trans_le hsmallS) (hjepsilon.trans_le hsmallS) hpi hpj |
| 91 | obtain ⟨_, _, _, _, hlow, _, _, α, hα0, hα1, hα, hαN, hαL⟩ := |
| 92 | hrecentering T.tube.epsilon C T.tube.epsilon_pos hsmallR M g D |
| 93 | (T.tube.chain.neck i.val) Q (η a) hQ hiepsilon hpi (Or.inl hz) |
| 94 | obtain ⟨_, _, hsourceHigh, _, _, hhigh, hforward, _⟩ := |
| 95 | hrecentering T.tube.epsilon C T.tube.epsilon_pos hsmallR M g D |
| 96 | (T.tube.chain.neck j.val) Q (η b) hQ hjepsilon hpj (Or.inr hy) |
| 97 | obtain ⟨β, hβ0, hβ1, hβ, hβN, hβL⟩ := hforward |
| 98 | obtain ⟨σ, hσ0, hσ1, hσ, hσU, hσL⟩ := |
| 99 | exists_recentered_competitor_of_connectors g T.tube.epsilon_pos hQ hab hη hηU hηL |
| 100 | hα0 hα1 hα (fun t ht => hNi (hαN ht)) hαL |
| 101 | hβ0 hβ1 hβ (fun t ht => hNj (hβN ht)) hβL |
| 102 | obtain ⟨γ, hγ0, hγ1, hγ, hγU, hγmin, hγfinite, hγL⟩ := |
| 103 | T.exists_chain_neck_minimizer i.val j.val i.property j.property hdisj hcapdisj hshort |
| 104 | zero_le_one hσ hσU hσ0 hσ1 hσL |
| 105 | refine ⟨i.val, i.property, j.val, j.property, γ, hγ0.trans hσ0, hγ1.trans hσ1, |
| 106 | ?_, ?_, ?_, hγ, hγU, ?_, hγfinite, hγL⟩ |
| 107 | · simpa only [hγ0, hσ0] using hlow hz |
| 108 | · simpa only [hγ1, hσ1] using hhigh hy |
| 109 | · simpa only [hγ1, hσ1] using hsourceHigh |
| 110 | · simpa only [hγ0, hγ1] using hγmin |
| 111 | |
| 112 | end PoincareMT.M28 |