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.Positive.PositivePinchingPointwise |
| 3 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Noncollapse.Universal.Roundness.Preservation |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.Assembly.PositiveComponents.PositiveSectionalContinuation |
| 5 | |
| 6 | /-! |
| 7 | # A persistent positive Ricci pinching ratio |
| 8 | |
| 9 | Strict positive sectional curvature on the initial compact slice chooses a |
| 10 | uniform curvature-cone ratio. The shared tensor maximum principle preserves |
| 11 | that cone on the original half-open time interval. Its Ricci consequence |
| 12 | is the first pinching input to Morgan--Tian, Theorem 4.23, pp. 74-75. |
| 13 | See `proof-work/tasks/M47/derivations/positive-pinching.md`. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff Bundle |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M47Positive |
| 24 | |
| 25 | open PoincareMT.AncientKappaRoundness |
| 26 | open PoincareMT.M04 |
| 27 | |
| 28 | variable {M : Type u} [TopologicalSpace M] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 30 | [T2Space M] [CompactSpace M] |
| 31 | |
| 32 | /-- Compact initial strict positivity chooses a single curvature-cone |
| 33 | constant. The lower bound comes from the compact comparison underlying |
| 34 | Morgan--Tian, Lemma 4.13, pp. 68-69; the ratio is used in Theorem 4.23, |
| 35 | pp. 74-75. -/ |
| 36 | theorem exists_initial_complement_pinching |
| 37 | {J : Set ℝ} (F : RicciFlow 3 M J) {a : ℝ} (ha : a ∈ J) |
| 38 | (hD : (F.connection a).CurvatureTensorCalculus) |
| 39 | (hpos : ∀ x : M, ∀ v w : TangentSpace (𝓡 3) x, |
| 40 | LeviCivitaData.IsOrthonormalPair (F.metric a) x v w → |
| 41 | 0 < (F.connection a).sectionalCurvature x v w) : |
| 42 | ∃ c : ℝ, 1 ≤ c ∧ |
| 43 | ∀ x : M, |
| 44 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 45 | ⟨(F.metric a).toRiemannianMetric⟩ |
| 46 | (F.connection a).ricciComplementTensor hD x ∈ tensorPinchingCone c := by |
| 47 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 48 | ⟨(F.metric a).toRiemannianMetric⟩ |
| 49 | obtain ⟨m, hm, hlower⟩ := PoincareMT.Proofs.M46.exists_initial_sectional_lower |
| 50 | F ha isClosed_univ (fun x _ => hpos x) |
| 51 | obtain ⟨B, hB⟩ := isCompact_univ.bddAbove_image |
| 52 | (F.contMDiff_scalarCurvature a ha).continuous.continuousOn |
| 53 | let B' := max 1 B |
| 54 | have hB' : 0 ≤ B' := (by norm_num : (0 : ℝ) ≤ 1).trans (le_max_left _ _) |
| 55 | have hscalar (x : M) : (F.connection a).scalarCurvature x ≤ B' := |
| 56 | (hB ⟨x, mem_univ x, rfl⟩).trans (le_max_right _ _) |
| 57 | let c := max 1 (B' / m) |
| 58 | have hc : 1 ≤ c := le_max_left _ _ |
| 59 | have hcm : B' ≤ c * m := (div_le_iff₀ hm).mp (le_max_right _ _) |
| 60 | refine ⟨c, hc, fun x => (ricciComplement_mem_iff _ hD x c).mpr ?_⟩ |
| 61 | have hsec (v w : TangentSpace (𝓡 3) x) : |
| 62 | 0 ≤ (F.connection a).curvatureTensor x v w v w := by |
| 63 | have hgram : 0 ≤ metricGram (F.metric a) x v w := by |
| 64 | change 0 ≤ inner ℝ v v * inner ℝ w w - (inner ℝ v w) ^ 2 |
| 65 | nlinarith only [real_inner_mul_inner_self_le v w] |
| 66 | exact (mul_nonneg hm.le hgram).trans (hlower x (mem_univ x) v w) |
| 67 | have hmin (v : TangentSpace (𝓡 3) x) (hv : (F.metric a).inner x v v = 1) : |
| 68 | m ≤ (F.connection a).ricciComplementEvaluation x ![v, v] := |
| 69 | ricciComplement_lower_of_sectional_lower _ hD x m |
| 70 | (hlower x (mem_univ x)) v hv |
| 71 | refine ⟨fun v hv => hm.le.trans (hmin v hv), fun v w hv hw => ?_⟩ |
| 72 | have hmax := ricciComplement_le_half_scalar (F.connection a) x hsec v hv |
| 73 | calc |
| 74 | (F.connection a).ricciComplementEvaluation x ![v, v] ≤ B' := by |
| 75 | linarith [hscalar x] |
| 76 | _ ≤ c * m := hcm |
| 77 | _ ≤ c * (F.connection a).ricciComplementEvaluation x ![w, w] := |
| 78 | mul_le_mul_of_nonneg_left (hmin w hw) (by linarith) |
| 79 | |
| 80 | /-- The same initial curvature-cone constant persists on the original |
| 81 | half-open interval, by Morgan--Tian, Theorem 4.8, p. 66; this supplies the |
| 82 | positive pinching input to Theorem 4.23, pp. 74-75. -/ |
| 83 | theorem complement_pinching_preserved |
| 84 | (hC : RicciFlowCurvatureTheory.{u}) {T c : ℝ} |
| 85 | (F : RicciFlow 3 M (Ico 0 T)) (hc : 1 ≤ c) |
| 86 | (hinit : ∀ x : M, |
| 87 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 88 | ⟨(F.metric 0).toRiemannianMetric⟩ |
| 89 | (F.connection 0).ricciComplementTensor |
| 90 | (hC.tensor_calculus 3 M (F.metric 0) (F.connection 0)) x ∈ tensorPinchingCone c) : |
| 91 | ∀ t ∈ Ico 0 T, ∀ x : M, |
| 92 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 93 | ⟨(F.metric t).toRiemannianMetric⟩ |
| 94 | (F.connection t).ricciComplementTensor |
| 95 | (hC.tensor_calculus 3 M (F.metric t) (F.connection t)) x ∈ tensorPinchingCone c := by |
| 96 | intro t ht x |
| 97 | exact ricciComplement_mem_of_initial F |
| 98 | (fun s => hC.tensor_calculus 3 M (F.metric s) (F.connection s)) |
| 99 | (hC.scalar_regular 3 M (Ico 0 T) F) |
| 100 | (hC.curvature_evolution 3 M (Ico 0 T) F) hc hinit ht x |
| 101 | |
| 102 | /-- Strict sectional positivity on a compact initial slice supplies a |
| 103 | fixed `epsilon` in `(0,1/3]` with `Ric >= epsilon R g` at all later times. |
| 104 | This is the initial pinching stage of Morgan--Tian, Theorem 4.23, |
| 105 | pp. 74-75; it does not assert the later gradient or terminal blow-up bounds. -/ |
| 106 | theorem exists_uniform_ricci_pinching |
| 107 | (hC : RicciFlowCurvatureTheory.{u}) {T : ℝ} (hT : 0 < T) |
| 108 | (F : RicciFlow 3 M (Ico 0 T)) |
| 109 | (hpos : ∀ x : M, ∀ v w : TangentSpace (𝓡 3) x, |
| 110 | LeviCivitaData.IsOrthonormalPair (F.metric 0) x v w → |
| 111 | 0 < (F.connection 0).sectionalCurvature x v w) : |
| 112 | ∃ epsilon : ℝ, 0 < epsilon ∧ epsilon ≤ 1 / 3 ∧ |
| 113 | ∀ t ∈ Ico 0 T, ∀ x : M, ∀ v : TangentSpace (𝓡 3) x, |
| 114 | (F.metric t).inner x v v = 1 → |
| 115 | epsilon * (F.connection t).scalarCurvature x ≤ |
| 116 | (F.connection t).ricci x v v := by |
| 117 | obtain ⟨c, hc, hinit⟩ := exists_initial_complement_pinching F ⟨le_rfl, hT⟩ |
| 118 | (hC.tensor_calculus 3 M (F.metric 0) (F.connection 0)) hpos |
| 119 | have hden : 0 < c + 2 := by linarith |
| 120 | refine ⟨1 / (c + 2), div_pos zero_lt_one hden, ?_, ?_⟩ |
| 121 | · apply (div_le_iff₀ hden).mpr |
| 122 | linarith |
| 123 | · intro t ht x v hv |
| 124 | have hpinch := complement_pinching_preserved hC F hc hinit t ht x |
| 125 | have h := ricci_lower_of_complement_pinching (F.connection t) |
| 126 | (hC.tensor_calculus 3 M (F.metric t) (F.connection t)) x hc hpinch v hv |
| 127 | simpa only [one_div, div_eq_mul_inv, one_mul, mul_comm] using h |
| 128 | |
| 129 | /-- The original half-open flow has a positive scalar lower bound fixed |
| 130 | by its initial compact slice. This applies Morgan--Tian, Lemma 4.13, |
| 131 | pp. 68-69, on closed subintervals and guards the quotient equations in |
| 132 | the positive pinching argument of Theorem 4.23, pp. 74-75. -/ |
| 133 | theorem exists_uniform_positive_scalar_lower [SecondCountableTopology M] |
| 134 | {T : ℝ} (hT : 0 < T) (F : RicciFlow 3 M (Ico 0 T)) |
| 135 | (hpos : ∀ x : M, ∀ v w : TangentSpace (𝓡 3) x, |
| 136 | LeviCivitaData.IsOrthonormalPair (F.metric 0) x v w → |
| 137 | 0 < (F.connection 0).sectionalCurvature x v w) : |
| 138 | ∃ r : ℝ, 0 < r ∧ ∀ t ∈ Ico 0 T, ∀ x : M, |
| 139 | r ≤ (F.connection t).scalarCurvature x := by |
| 140 | obtain ⟨m, hm, hinit⟩ := PoincareMT.Proofs.M46.exists_initial_sectional_lower |
| 141 | F ⟨le_rfl, hT⟩ isClosed_univ (fun x _ => hpos x) |
| 142 | refine ⟨6 * m, mul_pos (by norm_num) hm, ?_⟩ |
| 143 | intro t ht x |
| 144 | apply PoincareMT.Proofs.M46.scalar_lower_of_sectional_lower (F.connection t) x m |
| 145 | rcases eq_or_lt_of_le ht.1 with heq | htime |
| 146 | · subst t |
| 147 | exact hinit x (mem_univ x) |
| 148 | · exact PoincareMT.Proofs.M46.sectional_lower_on_closed_interval F htime hm.le |
| 149 | (fun s hs => ⟨hs.1, hs.2.trans_lt ht.2⟩) |
| 150 | isOpen_univ isClosed_univ hinit t ⟨ht.1, le_rfl⟩ x (mem_univ x) |
| 151 | |
| 152 | end PoincareMT.M47Positive |