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.AncientKappa.Compactness.LocalBounds.Limit |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.ScalarBuffer |
| 3 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Nonflatness |
| 4 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Noncollapse |
| 5 | |
| 6 | /-! |
| 7 | # The positive-volume auxiliary-limit contradiction |
| 8 | |
| 9 | A normalized sequence with a uniform eventual curvature bound on every |
| 10 | terminal ball cannot have a fixed positive volume ratio on expanding balls. |
| 11 | The contradiction uses the same complete bounded interior limit and a |
| 12 | positive scalar slice retained from the original normalization. Translation |
| 13 | to this slice constructs an actual ancient kappa-solution for M22. |
| 14 | |
| 15 | Reference: Morgan--Tian Corollary 9.62 and Lemma 9.65, pp. 223-227. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | open Set Filter |
| 22 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 23 | |
| 24 | namespace PoincareMT.NormalizedKappaSolutionSequence |
| 25 | |
| 26 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 27 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 28 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 29 | |
| 30 | local instance auxiliaryCarrierConnected (C : FlowCarrier 3) : ConnectedSpace C.carrier := |
| 31 | connectedSpace_iff_univ.mpr C.connected |
| 32 | |
| 33 | variable {kappa : ℝ} (S : NormalizedKappaSolutionSequence kappa) |
| 34 | |
| 35 | /-- Positive expanding-ball volume ratios contradict the M22 zero-AVR |
| 36 | conclusion on the actual bounded auxiliary ancient solution. -/ |
| 37 | theorem false_of_eventually_bounded_curvature_and_positive_volume_ratio |
| 38 | (P : M23NormalizedKappaCompactnessPredecessors) {B ν : ℝ} |
| 39 | (hB : 0 ≤ B) (hν : 0 < ν) |
| 40 | (hbound : ∀ r : ℝ, 0 < r → ∀ᶠ k in atTop, |
| 41 | ∀ t : ℝ, t ≤ 0 → ∀ x ∈ ((S.term k).flow.flow.metric 0).ball (S.term k).base r, |
| 42 | |((S.term k).flow.flow.connection t).curvatureTensorNorm x| ≤ B) |
| 43 | (hvolume : ∀ r : ℝ, 0 < r → ∀ᶠ k in atTop, |
| 44 | ENNReal.ofReal (ν * r ^ 3) ≤ calibratedMetricVolume ((S.term k).flow.flow.metric 0) |
| 45 | (((S.term k).flow.flow.metric 0).ball (S.term k).base r)) : False := by |
| 46 | have hcontrol := S.allTimeCurvatureControl_of_eventually P |
| 47 | (fun r hr ↦ ⟨B, hB, hbound r hr⟩) |
| 48 | obtain ⟨G, hcomplete, hnorm, hoperator, hvol⟩ := |
| 49 | S.exists_complete_bounded_positive_volume_interior_limit P hB hbound hvolume |
| 50 | obtain ⟨δ, hδpos, hδone, hbuffer⟩ := S.exists_base_scalar_positive_time_buffer P hcontrol |
| 51 | let s := 1 - δ |
| 52 | have hspos : 0 < s := by dsimp [s]; linarith |
| 53 | have hsone : s < 1 := by dsimp [s]; linarith |
| 54 | have hscalar : ∀ᶠ k in atTop, |
| 55 | (1 : ℝ) / 2 ≤ ((S.term k).flow.flow.connection (s - 1)).scalarCurvature (S.term k).base := |
| 56 | Eventually.of_forall fun k ↦ hbuffer k (s - 1) ⟨by dsimp [s]; linarith, |
| 57 | by dsimp [s]; linarith⟩ |
| 58 | have hpositive := S.interiorLimit_base_curvatureTensorNorm_pos_of_scalar_buffer |
| 59 | G hsone (by norm_num : (0 : ℝ) < 1 / 2) hscalar |
| 60 | have hshift : (fun t : ℝ ↦ t + s) '' Iic 0 ⊆ Iio 1 := by |
| 61 | rintro _ ⟨t, ht, rfl⟩ |
| 62 | change t + s < 1 |
| 63 | linarith [show t ≤ 0 from ht] |
| 64 | let F : RicciFlow 3 G.limitCarrier.carrier (Iic 0) := |
| 65 | G.limitFlow.translate s hshift ordConnected_Iic |
| 66 | ⟨-1, by norm_num, 0, by norm_num, by norm_num⟩ |
| 67 | have hcompleteF : ∀ t ≤ 0, MetricComplete (F.metric t) := by |
| 68 | intro t ht |
| 69 | exact hcomplete (t + s) (by change t + s < 1; linarith) |
| 70 | have hoperatorF : ∀ t ≤ 0, ∀ x, |
| 71 | (F.connection t).NonnegativeCurvatureOperator x := by |
| 72 | intro t ht x |
| 73 | exact hoperator (t + s) (by change t + s < 1; linarith) x |
| 74 | have hnormF : ∀ t ≤ 0, ∀ x, (F.connection t).curvatureTensorNorm x ≤ B := by |
| 75 | intro t ht x |
| 76 | exact hnorm (t + s) (by change t + s < 1; linarith) x |
| 77 | have hpositiveF : ∃ p, 0 < (F.connection 0).scalarCurvature p := by |
| 78 | refine ⟨G.base, ?_⟩ |
| 79 | have hp := hpositive.trans_le |
| 80 | ((G.limitFlow.connection s).curvatureTensorNorm_le_scalarCurvature_sharp |
| 81 | (P.tensor_calculus 3 G.limitCarrier.carrier (G.limitFlow.metric s) |
| 82 | (G.limitFlow.connection s)) G.base (hoperator s hsone G.base)) |
| 83 | change 0 < (G.limitFlow.connection (0 + s)).scalarCurvature G.base |
| 84 | rw [zero_add] |
| 85 | exact hp |
| 86 | have hnonflat := F.scalarCurvature_positive_somewhere_of_bounded_ancient_of_m23_predecessors |
| 87 | P hcompleteF hoperatorF hB hnormF hpositiveF |
| 88 | have hnc := S.interiorLimit_metricKappaNoncollapsed P G hcomplete |
| 89 | let K : AncientKappaSolution 3 G.limitCarrier.carrier := { |
| 90 | flow := F |
| 91 | kappa := kappa / 27 |
| 92 | kappa_pos := div_pos S.kappa_pos (by norm_num) |
| 93 | complete := hcompleteF |
| 94 | nonnegative_curvature_operator := hoperatorF |
| 95 | bounded_curvature := fun t ht ↦ ⟨B, hB, fun x ↦ by |
| 96 | rw [abs_of_nonneg (show 0 ≤ (F.connection t).curvatureTensorNorm x from Real.sqrt_nonneg _)] |
| 97 | exact hnormF t ht x⟩ |
| 98 | nonflat := fun t ht ↦ by |
| 99 | obtain ⟨x, hx⟩ := hnonflat t ht |
| 100 | refine ⟨x, ?_⟩ |
| 101 | have h := (F.connection t).scalarCurvature_le_curvatureTensorNorm_sharp x |
| 102 | norm_num at h |
| 103 | intro hz |
| 104 | rw [hz, mul_zero] at h |
| 105 | exact hx.not_ge h |
| 106 | noncollapsed := by |
| 107 | intro r₀ hr₀ t ht p r hr hrr₀ hcurv |
| 108 | apply (hnc (t + s) (by linarith)).2 p r hr |
| 109 | intro q hq |
| 110 | exact hcurv t ⟨by nlinarith [sq_pos_of_pos hr], le_rfl⟩ q hq |
| 111 | } |
| 112 | have havr : asymptoticVolumeRatio (G.limitFlow.metric 0) G.base = 0 := by |
| 113 | have h := P.zero_avr G.limitCarrier.carrier K (-s) (by linarith) G.base |
| 114 | change asymptoticVolumeRatio (G.limitFlow.metric (-s + s)) G.base = 0 at h |
| 115 | simpa only [neg_add_cancel] using h |
| 116 | have hν' : 0 < ν / Real.exp (27 * B) ^ 6 := by positivity |
| 117 | have hlower : ENNReal.ofReal (ν / Real.exp (27 * B) ^ 6) ≤ |
| 118 | asymptoticVolumeRatio (G.limitFlow.metric 0) G.base := by |
| 119 | apply le_sInf |
| 120 | rintro _ ⟨r, rfl⟩ |
| 121 | have h := ENNReal.div_le_div_right (hvol r.1 r.2) (ENNReal.ofReal r.1 ^ 3) |
| 122 | have hcancel : (ν / Real.exp (27 * B) ^ 6) * r.1 ^ 3 / r.1 ^ 3 = |
| 123 | ν / Real.exp (27 * B) ^ 6 := mul_div_cancel_right₀ _ (pow_ne_zero _ r.2.ne') |
| 124 | rw [← ENNReal.ofReal_pow r.2.le, |
| 125 | ← ENNReal.ofReal_div_of_pos (pow_pos r.2 3), hcancel] at h |
| 126 | simpa only [metricBallVolumeRatio, ENNReal.ofReal_pow r.2.le] using h |
| 127 | rw [havr] at hlower |
| 128 | exact (ENNReal.ofReal_pos.mpr hν').not_ge hlower |
| 129 | |
| 130 | end PoincareMT.NormalizedKappaSolutionSequence |