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.Riemannian.Curvature.EuclideanFields |
| 3 | |
| 4 | /-! |
| 5 | # Actual curvature annihilates a retained parallel field |
| 6 | |
| 7 | The conclusion concerns the retained curvature operator. It follows from |
| 8 | the native commutator on the smooth field and a genuine parallel germ. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | open Filter VectorField |
| 15 | open scoped Manifold ContDiff Bundle Topology |
| 16 | |
| 17 | namespace PoincareMT.M35 |
| 18 | |
| 19 | noncomputable section |
| 20 | |
| 21 | variable {n : ℕ} |
| 22 | |
| 23 | local notation "V" => EuclideanSpace ℝ (Fin n) |
| 24 | |
| 25 | local instance parallelDualNormedGroup : NormedAddCommGroup (V →L[ℝ] ℝ) := inferInstance |
| 26 | local instance parallelDualNormedSpace : NormedSpace ℝ (V →L[ℝ] ℝ) := inferInstance |
| 27 | local instance parallelMetricNormedGroup : NormedAddCommGroup (V →L[ℝ] V →L[ℝ] ℝ) := inferInstance |
| 28 | local instance parallelMetricNormedSpace : NormedSpace ℝ (V →L[ℝ] V →L[ℝ] ℝ) := inferInstance |
| 29 | |
| 30 | /-- A genuine parallel field germ lies in the nullspace of the actual |
| 31 | curvature operator, not merely that of a coordinate substitute. -/ |
| 32 | theorem curvature_parallel_field_germ |
| 33 | {g : RiemannianMetric n V} (D : LeviCivitaData g) |
| 34 | {Z : V → V} {x : V} (hZ : ContDiffAt ℝ ∞ Z x) |
| 35 | (hparallel : ∀ᶠ y in 𝓝 x, ∀ v : V, D.connection Z y v = 0) |
| 36 | (u v : V) : D.curvature x u v (Z x) = 0 := by |
| 37 | have hc (a b : V) : D.connection (fun y => D.connection Z y a) x b = 0 := by |
| 38 | have he : (fun y => D.connection Z y a) =ᶠ[𝓝 x] (fun _ : V => (0 : V)) := |
| 39 | hparallel.mono fun y hy => hy a |
| 40 | have hd : DifferentiableAt ℝ (fun y => D.connection Z y a) x := |
| 41 | (differentiableAt_const (c := (0 : V))).congr_of_eventuallyEq he |
| 42 | have hz := congrArg (fun c : V => D.euclideanConnection b c x) he.self_of_nhds |
| 43 | have hzero : D.euclideanConnection b (0 : V) x = 0 := by |
| 44 | simp [LeviCivitaData.euclideanConnection, D.connection_const_eq_inverse, |
| 45 | metricKoszulCovector] |
| 46 | rw [D.connection_eq_fderiv_add hd, he.fderiv_eq] |
| 47 | simpa only [fderiv_const_apply, zero_apply, zero_add] using! |
| 48 | hz.trans hzero |
| 49 | have h := D.curvatureOnFields_eq_curvature_euclidean |
| 50 | (contDiffAt_const (c := u)) (contDiffAt_const (c := v)) hZ |
| 51 | rw [LeviCivitaData.curvatureOnFields] at h |
| 52 | change D.connection (fun y => D.connection Z y v) x u - |
| 53 | D.connection (fun y => D.connection Z y u) x v - |
| 54 | D.connection Z x (mlieBracket (𝓡 n) (fun _ : V => u) (fun _ : V => v) x) = |
| 55 | D.curvature x u v (Z x) at h |
| 56 | rw [hc, hc, hparallel.self_of_nhds] at h |
| 57 | simpa using h.symm |
| 58 | |
| 59 | /-- The actual four-covariant tensor vanishes when its final slot is |
| 60 | the retained parallel field, as needed for positive product curvature. -/ |
| 61 | theorem curvatureTensor_parallel_field_germ |
| 62 | {g : RiemannianMetric n V} (D : LeviCivitaData g) |
| 63 | {Z : V → V} {x : V} (hZ : ContDiffAt ℝ ∞ Z x) |
| 64 | (hparallel : ∀ᶠ y in 𝓝 x, ∀ v : V, D.connection Z y v = 0) |
| 65 | (u v w : V) : D.curvatureTensor x u v w (Z x) = 0 := by |
| 66 | rw [LeviCivitaData.curvatureTensor, curvature_parallel_field_germ D hZ hparallel] |
| 67 | simp |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end PoincareMT.M35 |