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.ReducedGeometry.LGeometry.Basic |
| 2 | |
| 3 | /-! |
| 4 | # A scalar-curvature bound from the full curvature norm |
| 5 | |
| 6 | The selected scalar trace has n squared coefficients, each bounded by the |
| 7 | full Hilbert-Schmidt norm. This coarse estimate suffices to retain and |
| 8 | control the curvature term in Morgan-Tian's small-time action calculation. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open scoped Manifold ContDiff Bundle BigOperators |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT.ReducedVolume |
| 18 | |
| 19 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 20 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 21 | |
| 22 | set_option maxHeartbeats 800000 in |
| 23 | -- Elaborating four nested finite sums expands the selected curvature coefficients. |
| 24 | /-- Each selected orthonormal curvature coefficient is bounded by the full norm. -/ |
| 25 | theorem abs_curvatureTensor_basis_le (g : RiemannianMetric n M) |
| 26 | (D : LeviCivitaData g) (q : M) |
| 27 | (i j k l : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) q))) : |
| 28 | |D.curvatureTensor q (g.orthonormalBasis q i) (g.orthonormalBasis q j) |
| 29 | (g.orthonormalBasis q k) (g.orthonormalBasis q l)| ≤ D.curvatureTensorNorm q := by |
| 30 | let N := Fin (Module.finrank ℝ (TangentSpace (𝓡 n) q)) |
| 31 | let a : N → N → N → N → ℝ := fun i j k l ↦ |
| 32 | D.curvatureTensor q (g.orthonormalBasis q i) |
| 33 | (g.orthonormalBasis q j) (g.orthonormalBasis q k) (g.orthonormalBasis q l) |
| 34 | change |a i j k l| ≤ Real.sqrt (∑ i, ∑ j, ∑ k, ∑ l, a i j k l ^ 2) |
| 35 | apply Real.le_sqrt_of_sq_le |
| 36 | rw [sq_abs] |
| 37 | calc |
| 38 | a i j k l ^ 2 ≤ ∑ l, a i j k l ^ 2 := |
| 39 | Finset.single_le_sum (fun _ _ ↦ sq_nonneg _) (Finset.mem_univ l) |
| 40 | _ ≤ ∑ k, ∑ l, a i j k l ^ 2 := |
| 41 | Finset.single_le_sum (fun _ _ ↦ Finset.sum_nonneg (fun _ _ ↦ sq_nonneg _)) |
| 42 | (Finset.mem_univ k) |
| 43 | _ ≤ ∑ j, ∑ k, ∑ l, a i j k l ^ 2 := |
| 44 | Finset.single_le_sum (fun _ _ ↦ Finset.sum_nonneg (fun _ _ ↦ |
| 45 | Finset.sum_nonneg (fun _ _ ↦ sq_nonneg _))) (Finset.mem_univ j) |
| 46 | _ ≤ ∑ i, ∑ j, ∑ k, ∑ l, a i j k l ^ 2 := |
| 47 | Finset.single_le_sum (fun _ _ ↦ Finset.sum_nonneg (fun _ _ ↦ |
| 48 | Finset.sum_nonneg (fun _ _ ↦ Finset.sum_nonneg (fun _ _ ↦ sq_nonneg _)))) |
| 49 | (Finset.mem_univ i) |
| 50 | |
| 51 | /-- The actual scalar trace is bounded by n squared times the full curvature norm. -/ |
| 52 | theorem abs_scalarCurvature_le (g : RiemannianMetric n M) |
| 53 | (D : LeviCivitaData g) (q : M) : |
| 54 | |D.scalarCurvature q| ≤ (n : ℝ) ^ 2 * D.curvatureTensorNorm q := by |
| 55 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 n) q) = n := by |
| 56 | change Module.finrank ℝ (EuclideanSpace ℝ (Fin n)) = n |
| 57 | simp |
| 58 | calc |
| 59 | |D.scalarCurvature q| ≤ ∑ i, |D.ricci q (g.orthonormalBasis q i) |
| 60 | (g.orthonormalBasis q i)| := Finset.abs_sum_le_sum_abs _ _ |
| 61 | _ ≤ ∑ i, ∑ j, |D.curvatureTensor q (g.orthonormalBasis q i) |
| 62 | (g.orthonormalBasis q j) (g.orthonormalBasis q i) |
| 63 | (g.orthonormalBasis q j)| := |
| 64 | Finset.sum_le_sum (fun _ _ ↦ Finset.abs_sum_le_sum_abs _ _) |
| 65 | _ ≤ ∑ _i : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) q)), |
| 66 | ∑ _j : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) q)), D.curvatureTensorNorm q := |
| 67 | Finset.sum_le_sum (fun i _ ↦ Finset.sum_le_sum (fun j _ ↦ |
| 68 | abs_curvatureTensor_basis_le g D q i j i j)) |
| 69 | _ = (n : ℝ) ^ 2 * D.curvatureTensorNorm q := by |
| 70 | simp only [Finset.sum_const, Finset.card_univ, Fintype.card_fin, hdim, nsmul_eq_mul] |
| 71 | ring |
| 72 | |
| 73 | /-- The existing complete bounded-curvature hypothesis gives one uniform scalar bound. -/ |
| 74 | theorem exists_uniform_scalarCurvature_bound {J I : Set ℝ} (F : RicciFlow n M J) |
| 75 | [T3Space M] (hcurvature : CompleteBoundedCurvatureOn F I) : |
| 76 | ∃ C : ℝ, 0 ≤ C ∧ ∀ t ∈ I, ∀ q : M, |(F.connection t).scalarCurvature q| ≤ C := by |
| 77 | obtain ⟨K, hK, hbound⟩ := hcurvature.2 |
| 78 | refine ⟨(n : ℝ) ^ 2 * K, mul_nonneg (sq_nonneg _) hK, ?_⟩ |
| 79 | intro t ht q |
| 80 | exact (abs_scalarCurvature_le (F.metric t) (F.connection t) q).trans |
| 81 | (mul_le_mul_of_nonneg_left ((le_abs_self _).trans (hbound t ht q)) (sq_nonneg _)) |
| 82 | |
| 83 | end PoincareMT.ReducedVolume |