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.Harnack.Noncompact.AncientVolume.Nonflatness |
| 2 | import PoincareLib.Geometry.Curvature.Operator.SectionalBounds |
| 3 | |
| 4 | /-! |
| 5 | # Backward nonflatness from compact-time curvature bounds |
| 6 | |
| 7 | Positive terminal scalar persists somewhere on every earlier slice. On |
| 8 | compact carriers this follows from finite scalar comparison. Under the |
| 9 | contradiction assumption on a noncompact carrier, backward scalar-zero |
| 10 | rigidity supplies the global bound needed by the existing comparison. |
| 11 | This is the nonflatness step in Morgan--Tian Theorem 11.8, pp. 272-279, |
| 12 | with Corollary 4.19, pp. 71-72. The comparison follows the lower treatment |
| 13 | of Kleiner--Lott Proposition 41.13, p. 2678; see backward-nonflatness.md. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set |
| 20 | open scoped Manifold ContDiff Bundle |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.M30 |
| 25 | |
| 26 | /-- Spatial curvature bounds on each compact time slab suffice for |
| 27 | backward nonflatness of the same complete ancient flow (Theorem 11.8, |
| 28 | pp. 272-279). No bound on the whole past is assumed. -/ |
| 29 | theorem scalarCurvature_positive_somewhere_of_locally_bounded_ancient |
| 30 | {M : Type u} [TopologicalSpace M] [T3Space M] |
| 31 | [SecondCountableTopology M] [ConnectedSpace M] |
| 32 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 33 | (hC : RicciFlowCurvatureTheory.{u}) (F : RicciFlow 3 M (Iic 0)) |
| 34 | (hcomplete : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 35 | (hoperator : ∀ t ≤ 0, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 36 | (hbounded : ∀ a ≤ 0, ∃ K : ℝ, 0 ≤ K ∧ |
| 37 | ∀ t ∈ Icc a 0, ∀ x, (F.connection t).curvatureTensorNorm x ≤ K) |
| 38 | (hterminal : ∃ p : M, 0 < (F.connection 0).scalarCurvature p) : |
| 39 | ∀ a ≤ 0, ∃ x : M, 0 < (F.connection a).scalarCurvature x := by |
| 40 | classical |
| 41 | intro a ha |
| 42 | rcases lt_or_eq_of_le ha with ha | rfl |
| 43 | · by_contra hinit |
| 44 | push Not at hinit |
| 45 | obtain ⟨K, hK, hbound⟩ := hbounded a ha.le |
| 46 | obtain ⟨p, hp⟩ := hterminal |
| 47 | have hRic (t : ℝ) (ht : t ≤ 0) (x : M) (v : TangentSpace (𝓡 3) x) : |
| 48 | 0 ≤ (F.connection t).ricci x v v := |
| 49 | ((F.connection t).ricci_bounds_of_nonnegative_curvatureOperator |
| 50 | (hC.tensor_calculus 3 M (F.metric t) (F.connection t)) x (hoperator t ht x) v).1 |
| 51 | by_cases hc : IsCompact (univ : Set M) |
| 52 | · let : CompactSpace M := ⟨hc⟩ |
| 53 | have hnonpos : ∀ x t, t ∈ Icc a 0 → (F.connection t).scalarCurvature x ≤ 0 := by |
| 54 | apply Poincare.Parabolic.nonpos_of_deriv_le_mul_at_max |
| 55 | (F := fun x t => (F.connection t).scalarCurvature x) |
| 56 | (F' := fun x t => (F.connection t).laplacian (F.connection t).scalarCurvature x + |
| 57 | 2 * (F.connection t).ricciNormSq x) (K := 2 * ((3 : ℝ) ^ 2 * K)) |
| 58 | · exact (hC.scalar_regular 3 M (Iic 0) F).continuousOn.comp |
| 59 | (f := fun z : M × ℝ => (z.2, z.1)) |
| 60 | (continuous_snd.prodMk continuous_fst).continuousOn |
| 61 | (fun z hz => ⟨hz.2.2, mem_univ z.1⟩) |
| 62 | · intro x t ht |
| 63 | exact (hC.scalar_evolution 3 M (Iic 0) F t ht.2 x).mono |
| 64 | (fun _ hs => hs.2) |
| 65 | · intro x t ht hpositive hmax |
| 66 | have hsmooth := Poincare.RicciFlow.Harnack.scalarCurvature_contMDiff_slice |
| 67 | hC (Iic 0) F t ht.2 |
| 68 | have hlap := (F.connection t).laplacian_nonpos_of_isLocalMax hsmooth |
| 69 | (Filter.Eventually.of_forall hmax) |
| 70 | have hricci := (F.connection t).ricciNormSq_le_scalarCurvature_sq_of_ricci_nonneg |
| 71 | (hC.tensor_calculus 3 M (F.metric t) (F.connection t)) x (hRic t ht.2 x) |
| 72 | have hscalar : (F.connection t).scalarCurvature x ≤ (3 : ℝ) ^ 2 * K := |
| 73 | (le_abs_self _).trans |
| 74 | (((F.connection t).abs_scalarCurvature_le_curvatureTensorNorm x).trans |
| 75 | (mul_le_mul_of_nonneg_left (hbound t ⟨ht.1.le, ht.2⟩ x) (sq_nonneg _))) |
| 76 | have hreaction := mul_le_mul_of_nonneg_right hscalar hpositive.le |
| 77 | nlinarith |
| 78 | · exact hinit |
| 79 | exact hp.not_ge (hnonpos p 0 ⟨ha.le, le_rfl⟩) |
| 80 | · let : NoncompactSpace M := ⟨hc⟩ |
| 81 | have hzero : (F.connection a).scalarCurvature p = 0 := |
| 82 | le_antisymm (hinit p) (Finset.sum_nonneg fun i _ => hRic a ha.le p _) |
| 83 | have hpast (t : ℝ) (hta : t ≤ a) (x : M) : |
| 84 | (F.connection t).curvatureTensorNorm x = 0 := by |
| 85 | let b := t - 1 |
| 86 | let T := a - b |
| 87 | have hT : 0 < T := by dsimp [T, b]; linarith |
| 88 | have hshift : (fun s : ℝ => s + b) '' Icc 0 T ⊆ Iic 0 := by |
| 89 | rintro _ ⟨s, hs, rfl⟩ |
| 90 | change s + b ≤ 0 |
| 91 | dsimp [T] at hs |
| 92 | linarith [hs.2] |
| 93 | have hne : (Icc 0 T).Nontrivial := |
| 94 | ⟨0, ⟨le_rfl, hT.le⟩, T, ⟨hT.le, le_rfl⟩, hT.ne⟩ |
| 95 | let G := F.translate b hshift ordConnected_Icc hne |
| 96 | have hsec : ∀ s ∈ Icc 0 T, (G.connection s).NonnegativeSectionalCurvature := by |
| 97 | intro s hs y v w |
| 98 | exact (F.connection (s + b)).curvatureTensor_self_nonneg_of_nonnegative_curvatureOperator |
| 99 | y (hoperator (s + b) (by dsimp [T] at hs; linarith [hs.2]) y) v w |
| 100 | have hterminalG : (G.connection T).scalarCurvature p = 0 := by |
| 101 | change (F.connection (T + b)).scalarCurvature p = 0 |
| 102 | exact (congrArg (fun s => (F.connection s).scalarCurvature p = 0) |
| 103 | (show T + b = a by dsimp [T]; ring)).mpr hzero |
| 104 | have hflat := hC.scalar_zero_rigidity M T hT G hsec p hterminalG |
| 105 | have htime : (1 : ℝ) ∈ Icc 0 T := by |
| 106 | constructor |
| 107 | · norm_num |
| 108 | · dsimp [T, b] |
| 109 | linarith |
| 110 | have hx := hflat 1 htime x |
| 111 | change (F.connection (1 + b)).curvatureTensorNorm x = 0 at hx |
| 112 | exact (congrArg (fun s => (F.connection s).curvatureTensorNorm x = 0) |
| 113 | (show 1 + b = t by dsimp [b]; ring)).mp hx |
| 114 | have hglobal (t : ℝ) (ht : t ≤ 0) (x : M) : |
| 115 | (F.connection t).curvatureTensorNorm x ≤ K := by |
| 116 | by_cases hta : t ≤ a |
| 117 | · rw [hpast t hta x] |
| 118 | exact hK |
| 119 | · exact hbound t ⟨(lt_of_not_ge hta).le, ht⟩ x |
| 120 | exact hp.not_ge (F.scalarCurvature_terminal_nonpos_of_bounded_ancient_slice_nonpos |
| 121 | hC hcomplete hoperator hK hglobal ha hinit p) |
| 122 | · exact hterminal |
| 123 | |
| 124 | end PoincareMT.M30 |