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.Curvature.Calculus |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.Splitting.SelectedComparison |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.Splitting.SmallSurfaceLine |
| 4 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.Volume.SmallSelectedLimit |
| 5 | |
| 6 | /-! |
| 7 | # Nonflat ancient limits with a line and positive volume ratio |
| 8 | |
| 9 | Original bounded ancient curvature, explicit parabolic noncollapse, and an |
| 10 | unbounded distance-squared scalar ratio construct a single small ancient |
| 11 | limit. The selected-segment construction gives a line in this same limit, |
| 12 | and positive original asymptotic volume ratio passes to its buffered zero |
| 13 | slice. No selected points, convergence, line, or volume bound are inputs. |
| 14 | |
| 15 | References: Kleiner--Lott (corrected 2013), Proposition 41.13, p. 2678, |
| 16 | Corollary 44.1, pp. 2682--2683, and Appendix E, pp. 2848--2849. |
| 17 | -/ |
| 18 | |
| 19 | noncomputable section |
| 20 | set_option autoImplicit false |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | |
| 23 | open Set Filter |
| 24 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 25 | |
| 26 | universe u |
| 27 | |
| 28 | namespace PoincareMT.RicciFlow |
| 29 | |
| 30 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 31 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 32 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 33 | attribute [local instance] smallCarrier smallChartedSpace smallIsManifold |
| 34 | |
| 35 | private theorem small_scalarCurvature_pos_of_nonflat_operator |
| 36 | {n : ℕ} {M : Type} [TopologicalSpace M] |
| 37 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 38 | {J : Set ℝ} (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow n M J) |
| 39 | (t : ℝ) (p : M) (hop : (F.connection t).NonnegativeCurvatureOperator p) |
| 40 | (hnonflat : 0 < (F.connection t).curvatureTensorNorm p) : |
| 41 | 0 < (F.connection t).scalarCurvature p := by |
| 42 | let : ChartedSpace (EuclideanSpace ℝ (Fin n)) (ULift.{u} M) := |
| 43 | Poincare.Manifold.uliftChartedSpace _ M |
| 44 | let : IsManifold (𝓡 n) ∞ (ULift.{u} M) := |
| 45 | Poincare.Manifold.uliftIsManifold (𝓡 n) M |
| 46 | let H : RicciFlow n (ULift.{u} M) J := F.ulift |
| 47 | have hD := hC.tensor_calculus n (ULift.{u} M) (H.metric t) (H.connection t) |
| 48 | have hbound := (H.connection t).curvatureTensorNorm_le_scalarCurvature hD |
| 49 | (ULift.up.{u} p) ((F.ulift_nonnegativeCurvatureOperator_iff t (ULift.up.{u} p)).mpr hop) |
| 50 | simp only [H, F.ulift_curvatureTensorNorm, F.ulift_scalarCurvature] at hbound |
| 51 | by_contra! h |
| 52 | exact (not_lt_of_ge (hbound.trans (mul_nonpos_of_nonneg_of_nonpos (sq_nonneg _) h))) hnonflat |
| 53 | |
| 54 | set_option maxHeartbeats 800000 in |
| 55 | /-- Original bounded ancient data produce one complete nonflat small ancient |
| 56 | flow with both positive asymptotic volume ratio and a minimizing line through |
| 57 | its base. All three conclusions refer to the same constructed flow. -/ |
| 58 | theorem exists_nonflat_small_ancient_limit_with_line_of_unbounded_scalar_ratio |
| 59 | {m : ℕ} (hm : 0 < m) {M : Type u} |
| 60 | [TopologicalSpace M] [T3Space M] [SecondCountableTopology M] |
| 61 | [ConnectedSpace M] [NoncompactSpace M] [MeasurableSpace M] [BorelSpace M] |
| 62 | [ChartedSpace (EuclideanSpace ℝ (Fin (m + 1))) M] [IsManifold (𝓡 (m + 1)) ∞ M] |
| 63 | (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow (m + 1) M (Iic 0)) |
| 64 | (hcomplete : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 65 | (hoperator : ∀ t ≤ 0, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 66 | {K : ℝ} (hK : 0 ≤ K) |
| 67 | (hbound : ∀ t ≤ 0, ∀ x, (F.connection t).curvatureTensorNorm x ≤ K) |
| 68 | {κ : ℝ} (hκ : 0 < κ) |
| 69 | (hnoncollapse : ∀ t ≤ 0, ∀ x : M, ∀ r : ℝ, 0 < r → |
| 70 | (∀ s ∈ Icc (t - r ^ 2) t, ∀ y ∈ (F.metric t).ball x r, |
| 71 | (F.connection s).curvatureTensorNorm y ≤ r⁻¹ ^ 2) → |
| 72 | ENNReal.ofReal (κ * r ^ (m + 1)) ≤ |
| 73 | (F.metric t).volumeMeasure ((F.metric t).ball x r)) |
| 74 | {t₀ t₁ : ℝ} (ht₀ : t₀ < 0) (ht₁ : t₁ ≤ 0) (htimeOrder : t₀ ≤ t₁) |
| 75 | (p : M) (hvolume : 0 < (F.metric t₁).asymptoticVolumeRatio p) |
| 76 | (hunbounded : ¬ BddAbove (range (fun x => |
| 77 | ((F.metric t₀).edist p x).toReal ^ 2 * (F.connection t₀).scalarCurvature x))) : |
| 78 | ∃ C : FlowCarrier.{0} (m + 1), ∃ δ : ℝ, 0 < δ ∧ δ < 1 ∧ |
| 79 | ∃ Flim : RicciFlow (m + 1) C.carrier (Iio δ), ∃ base : C.carrier, |
| 80 | (∀ t ∈ Iio δ, C.metricComplete (Flim.metric t)) ∧ |
| 81 | (∀ t ∈ Iio δ, ∀ x, (Flim.connection t).NonnegativeCurvatureOperator x) ∧ |
| 82 | (∀ t ∈ Iio δ, ∀ x, |
| 83 | (Flim.connection t).curvatureTensorNorm x ≤ 4 * (((m + 1 : ℕ) : ℝ)) ^ 2) ∧ |
| 84 | 0 < (Flim.connection 0).scalarCurvature base ∧ |
| 85 | 0 < (Flim.metric 0).asymptoticVolumeRatio base ∧ |
| 86 | (letI := C.metricSpaceOf (Flim.metric 0) |
| 87 | ∃ γ : ℝ → C.carrier, Isometry γ ∧ γ 0 = base) := by |
| 88 | obtain ⟨q, r, hQ, hcontrol, hd, _, hL, hdQ, hratio, _, _, _, _, _, _, _, |
| 89 | ν, _, _, δ, hδ, hδone, G, hGcomplete, hnonflat, hGnorm, hGoperator⟩ := |
| 90 | exists_nonflat_small_ancient_rescaled_limit_of_unbounded_scalar_ratio hm hC F |
| 91 | hcomplete hoperator hK hbound hκ hnoncollapse t₀ ht₀ p hunbounded |
| 92 | let Q := fun i => (F.connection t₀).scalarCurvature (q i) |
| 93 | have hline := exists_isometric_line_of_selected_small_rescalings hC hm F |
| 94 | hcomplete hoperator hK hbound t₀ ht₀ p q r Q |
| 95 | (fun i => (hcontrol i).1) hQ (fun i => (hcontrol i).2.1) |
| 96 | hd hdQ hL hratio hδ G (hGcomplete 0 hδ) |
| 97 | have hAVR := asymptoticVolumeRatio_pos_of_small_buffered_ancient_rescalings hm hC F |
| 98 | hcomplete hoperator hK hbound ht₀ ht₁ htimeOrder p hvolume q Q hQ hδ G |
| 99 | (hGcomplete 0 hδ) |
| 100 | have hscalar := small_scalarCurvature_pos_of_nonflat_operator hC G.limitFlow 0 G.base |
| 101 | (hGoperator 0 hδ G.base) hnonflat |
| 102 | exact ⟨G.limitCarrier, δ, hδ, hδone, G.limitFlow, G.base, |
| 103 | hGcomplete, hGoperator, hGnorm, hscalar, hAVR, hline⟩ |
| 104 | |
| 105 | /-- In dimension two the constructed nonflat limit contradicts surface |
| 106 | rigidity for an actual minimizing line. -/ |
| 107 | theorem false_of_surface_unbounded_scalar_ratio_and_positive_volume |
| 108 | {M : Type u} [TopologicalSpace M] [T3Space M] [SecondCountableTopology M] |
| 109 | [ConnectedSpace M] [NoncompactSpace M] [MeasurableSpace M] [BorelSpace M] |
| 110 | [ChartedSpace (EuclideanSpace ℝ (Fin 2)) M] [IsManifold (𝓡 2) ∞ M] |
| 111 | (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow 2 M (Iic 0)) |
| 112 | (hcomplete : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 113 | (hoperator : ∀ t ≤ 0, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 114 | {K : ℝ} (hK : 0 ≤ K) |
| 115 | (hbound : ∀ t ≤ 0, ∀ x, (F.connection t).curvatureTensorNorm x ≤ K) |
| 116 | {κ : ℝ} (hκ : 0 < κ) |
| 117 | (hnoncollapse : ∀ t ≤ 0, ∀ x : M, ∀ r : ℝ, 0 < r → |
| 118 | (∀ s ∈ Icc (t - r ^ 2) t, ∀ y ∈ (F.metric t).ball x r, |
| 119 | (F.connection s).curvatureTensorNorm y ≤ r⁻¹ ^ 2) → |
| 120 | ENNReal.ofReal (κ * r ^ 2) ≤ (F.metric t).volumeMeasure ((F.metric t).ball x r)) |
| 121 | {t₀ t₁ : ℝ} (ht₀ : t₀ < 0) (ht₁ : t₁ ≤ 0) (htimeOrder : t₀ ≤ t₁) |
| 122 | (p : M) (hvolume : 0 < (F.metric t₁).asymptoticVolumeRatio p) |
| 123 | (hunbounded : ¬ BddAbove (range (fun x => |
| 124 | ((F.metric t₀).edist p x).toReal ^ 2 * (F.connection t₀).scalarCurvature x))) : |
| 125 | False := by |
| 126 | obtain ⟨C, δ, hδ, _, Flim, base, hc, hop, _, hscalar, _, hline⟩ := |
| 127 | exists_nonflat_small_ancient_limit_with_line_of_unbounded_scalar_ratio |
| 128 | (m := 1) (by norm_num) hC F hcomplete hoperator hK hbound hκ hnoncollapse |
| 129 | ht₀ ht₁ htimeOrder p hvolume hunbounded |
| 130 | let : ConnectedSpace C.carrier := connectedSpace_iff_univ.mpr C.connected |
| 131 | let := C.metricSpaceOf (Flim.metric 0) |
| 132 | obtain ⟨γ, hγ, _⟩ := hline |
| 133 | apply Flim.not_minimizing_line_of_nonflat_small_surface hC 0 (hc 0 hδ) |
| 134 | (hop 0 hδ) ⟨base, hscalar⟩ γ |
| 135 | intro s t |
| 136 | change edist (γ s) (γ t) = ENNReal.ofReal |s - t| |
| 137 | rw [hγ.edist_eq, edist_dist, Real.dist_eq] |
| 138 | |
| 139 | end PoincareMT.RicciFlow |