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.ReducedVolume.Metric.Comparison.BilinearCoefficientBound |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Exponential.Jacobian.BackwardMetricDerivative |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Minimum.Compactness.ScalarBound |
| 4 | |
| 5 | /-! |
| 6 | # Curvature control of the actual backward metric derivative |
| 7 | |
| 8 | The time derivative is a genuine bilinear form. Its selected orthonormal |
| 9 | coefficients are twice the Ricci coefficients, each a sum of curvature |
| 10 | coefficients. Expanding this bilinear form gives the coarse constant |
| 11 | 2 n cubed K without assuming an additional Ricci tensoriality interface. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle BigOperators |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.ReducedVolume |
| 22 | |
| 23 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 25 | |
| 26 | /-- Every selected Ricci coefficient is bounded by dimension times the curvature norm. -/ |
| 27 | theorem abs_ricci_basis_le (g : RiemannianMetric n M) (D : LeviCivitaData g) (q : M) |
| 28 | (i j : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) q))) : |
| 29 | |D.ricci q (g.orthonormalBasis q i) (g.orthonormalBasis q j)| ≤ |
| 30 | (n : ℝ) * D.curvatureTensorNorm q := by |
| 31 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 n) q) = n := by |
| 32 | change Module.finrank ℝ (EuclideanSpace ℝ (Fin n)) = n |
| 33 | simp |
| 34 | calc |
| 35 | _ ≤ ∑ k, |D.curvatureTensor q (g.orthonormalBasis q i) (g.orthonormalBasis q k) |
| 36 | (g.orthonormalBasis q j) (g.orthonormalBasis q k)| := |
| 37 | Finset.abs_sum_le_sum_abs _ _ |
| 38 | _ ≤ ∑ _k : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) q)), |
| 39 | D.curvatureTensorNorm q := |
| 40 | Finset.sum_le_sum (fun k _ ↦ abs_curvatureTensor_basis_le g D q i k j k) |
| 41 | _ = (n : ℝ) * D.curvatureTensorNorm q := by |
| 42 | simp only [Finset.sum_const, Finset.card_univ, Fintype.card_fin, hdim, nsmul_eq_mul] |
| 43 | |
| 44 | variable {J : Set ℝ} {F : RicciFlow n M J} {T τmax : ℝ} |
| 45 | |
| 46 | set_option backward.isDefEq.respectTransparency false in |
| 47 | /-- Bilinearity of the actual derivative gives a uniform diagonal Ricci bound. -/ |
| 48 | theorem abs_twice_ricci_self_le |
| 49 | (hwindow : Icc (T - τmax) T ⊆ J) {τ K : ℝ} (hτ : 0 < τ) (hmax : τ < τmax) |
| 50 | (q : M) (hK : (F.connection (T - τ)).curvatureTensorNorm q ≤ K) |
| 51 | (v : TangentSpace (𝓡 n) q) : |
| 52 | |2 * (F.connection (T - τ)).ricci q v v| ≤ |
| 53 | (2 * (n : ℝ) ^ 3 * K) * (F.metric (T - τ)).inner q v v := by |
| 54 | let g := F.metric (T - τ) |
| 55 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 56 | ⟨g.toRiemannianMetric⟩ |
| 57 | let B : TangentSpace (𝓡 n) q →L[ℝ] TangentSpace (𝓡 n) q →L[ℝ] ℝ := |
| 58 | fderiv ℝ (coordinateBackwardMetric F T q) (extChartAt (𝓡 n) q q, τ) (0, 1) |
| 59 | have hB (u w : TangentSpace (𝓡 n) q) : |
| 60 | B u w = 2 * (F.connection (T - τ)).ricci q u w := |
| 61 | coordinateBackwardMetric_time_derivative hwindow hτ hmax q u w |
| 62 | have hcoeff (i j : Fin (Module.finrank ℝ (TangentSpace (𝓡 n) q))) : |
| 63 | |B (g.orthonormalBasis q i) (g.orthonormalBasis q j)| ≤ 2 * (n : ℝ) * K := by |
| 64 | rw [hB, abs_mul, abs_of_nonneg (by norm_num : (0 : ℝ) ≤ 2)] |
| 65 | have hr := (abs_ricci_basis_le g (F.connection (T - τ)) q i j).trans |
| 66 | (mul_le_mul_of_nonneg_left hK (Nat.cast_nonneg n)) |
| 67 | nlinarith only [hr] |
| 68 | have h := abs_bilinear_self_le_of_basis_bound (g.orthonormalBasis q) B hcoeff v |
| 69 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 n) q) = n := by |
| 70 | change Module.finrank ℝ (EuclideanSpace ℝ (Fin n)) = n |
| 71 | simp |
| 72 | have hnorm : ‖v‖ ^ 2 = g.inner q v v := (real_inner_self_eq_norm_sq v).symm |
| 73 | rw [hB, Fintype.card_fin, hdim, hnorm] at h |
| 74 | convert h using 1 |
| 75 | ring |
| 76 | |
| 77 | end PoincareMT.ReducedVolume |