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.Surgery.StandardCap.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.ScalarOperators.ScalarGradientConvergence |
| 3 | import PoincareLib.Geometry.RicciFlow.Curvature.Evolution.Scalar.Within |
| 4 | |
| 5 | /-! |
| 6 | # Joint continuity of the actual frozen scalar operators |
| 7 | |
| 8 | Morgan-Tian Definition 9.72 and Theorem 12.32, pp. 326-327. |
| 9 | The native spacetime trace calculus applies to the actual spatial |
| 10 | scalar differential. Its trace is the square of the frozen gradient |
| 11 | norm; the native time-dependent Laplacian gives the other cap operator. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.M35 |
| 21 | |
| 22 | variable {M : Type} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 24 | |
| 25 | /-- The frozen unit-sphere supremum is exactly the square root |
| 26 | of the actual orthonormal trace of its squared differential. -/ |
| 27 | theorem scalarGradientNorm_eq_sqrt_scalarGradientSq |
| 28 | {g : RiemannianMetric 3 M} (D : LeviCivitaData g) (x : M) : |
| 29 | scalarGradientNorm g D x = Real.sqrt (M04.scalarGradientSq g D.scalarCurvature x) := by |
| 30 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 31 | ⟨g.toRiemannianMetric⟩ |
| 32 | rw [scalarGradientNorm_eq_gradient_norm, RiemannianMetric.tangentNorm] |
| 33 | congr 1 |
| 34 | simp only [M04.scalarGradientSq, ← D.inner_gradient] |
| 35 | change inner ℝ (D.gradient D.scalarCurvature x) (D.gradient D.scalarCurvature x) = |
| 36 | ∑ i, (inner ℝ (D.gradient D.scalarCurvature x) (g.orthonormalBasis x i)) ^ 2 |
| 37 | rw [real_inner_self_eq_norm_sq, OrthonormalBasis.sum_sq_inner_left] |
| 38 | |
| 39 | /-- The actual frozen scalar-gradient norm is jointly continuous |
| 40 | on the whole flow domain, including its included time endpoints. -/ |
| 41 | theorem continuousOn_flow_scalarGradientNorm {J : Set ℝ} (F : RicciFlow 3 M J) : |
| 42 | ContinuousOn (fun p : ℝ × M => scalarGradientNorm (F.metric p.1) |
| 43 | (F.connection p.1) p.2) (J ×ˢ univ) := by |
| 44 | classical |
| 45 | let q := fun p : ℝ × M => (F.connection p.1).scalarCurvature p.2 |
| 46 | let T : (p : ℝ × M) → MultilinearMap ℝ (fun _ : Fin 2 => TangentSpace (𝓡 3) p.2) ℝ := |
| 47 | fun p => MultilinearMap.mk' (R := ℝ) |
| 48 | (fun v => mvfderiv (𝓡 3) (fun y => q (p.1, y)) p.2 (v 0) * |
| 49 | mvfderiv (𝓡 3) (fun y => q (p.1, y)) p.2 (v 1)) |
| 50 | (by |
| 51 | intro v i a b |
| 52 | fin_cases i <;> simp [Function.update, map_add, add_mul, mul_add]) |
| 53 | (by |
| 54 | intro v i c a |
| 55 | fin_cases i <;> simp [Function.update, map_smul, smul_eq_mul, mul_assoc, mul_left_comm]) |
| 56 | have htrace := M04.continuousOn_flow_tensorTrace F isOpen_univ T (by |
| 57 | intro V hV hVU X Y hX hY |
| 58 | have hq := F.contMDiffOn_scalarCurvature.mono (prod_mono Subset.rfl hVU) |
| 59 | exact ((M04.contMDiffOn_mvfderiv_spatial hV hq hX).mul |
| 60 | (M04.contMDiffOn_mvfderiv_spatial hV hq hY)).continuousOn) |
| 61 | have hsquare : ContinuousOn (fun p : ℝ × M => |
| 62 | M04.scalarGradientSq (F.metric p.1) (F.connection p.1).scalarCurvature p.2) |
| 63 | (J ×ˢ univ) := by |
| 64 | simpa only [M04.scalarGradientSq, T, q, MultilinearMap.mk'_apply, pow_two, |
| 65 | Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val_fin_one] using htrace |
| 66 | convert! hsquare.sqrt using 1 |
| 67 | ext p |
| 68 | exact scalarGradientNorm_eq_sqrt_scalarGradientSq (F.connection p.1) p.2 |
| 69 | |
| 70 | /-- The literal Laplacian plus twice the Ricci norm square is |
| 71 | jointly continuous on the same full flow domain. -/ |
| 72 | theorem continuousOn_flow_scalar_evolution [T2Space M] |
| 73 | {J : Set ℝ} (F : RicciFlow 3 M J) : |
| 74 | ContinuousOn (fun p : ℝ × M => |
| 75 | (F.connection p.1).laplacian (F.connection p.1).scalarCurvature p.2 + |
| 76 | 2 * (F.connection p.1).ricciNormSq p.2) (J ×ˢ univ) := |
| 77 | (M04.continuousOn_flow_timeDependentLaplacian F F.contMDiffOn_scalarCurvature).add |
| 78 | (continuousOn_const.mul (M04.continuousOn_flow_ricciNormSq F)) |
| 79 | |
| 80 | end PoincareMT.M35 |