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.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.OpenGeometry.OpenNeckRestriction |
| 3 | import PoincareLib.Geometry.Riemannian.Coordinates.Exponential.JetBounds.CurvatureNaturality |
| 4 | import PoincareLib.Geometry.Manifold.RegularLevel.OpenInclusion |
| 5 | |
| 6 | /-! |
| 7 | # Curvature-derivative naturality for open metric restrictions |
| 8 | |
| 9 | The intrinsic metric on an open subtype is the literal pullback of the |
| 10 | ambient metric. This file records the all-order curvature-norm identity |
| 11 | needed when a source strong-neck connection is compared with the retained |
| 12 | tube connection. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set |
| 20 | open scoped Manifold ContDiff Bundle Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.M28 |
| 25 | |
| 26 | variable {M : Type u} [TopologicalSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 28 | [IsManifold (𝓡 3) ∞ M] |
| 29 | |
| 30 | /-- Every Levi-Civita connection on an intrinsic open restriction has the |
| 31 | same curvature-derivative norms as the ambient connection at the lifted |
| 32 | point. The proof uses only the open-subtype differential and the literal |
| 33 | pullback metric identity. -/ |
| 34 | theorem intrinsicOpenMetric_curvatureDerivativeNorm |
| 35 | (g : RiemannianMetric 3 M) (V : TopologicalSpace.Opens M) |
| 36 | (DU : LeviCivitaData (intrinsicOpenMetric g V)) |
| 37 | (D : LeviCivitaData g) (m : ℕ) (x : V) : |
| 38 | DU.curvatureDerivativeNorm m x = D.curvatureDerivativeNorm m (x : M) := by |
| 39 | let f : V → M := (Subtype.val : V → M) |
| 40 | have hf : ContMDiffOn (𝓡 3) (𝓡 3) ∞ f (Set.univ : Set V) := |
| 41 | contMDiff_subtype_val.contMDiffOn |
| 42 | have hinv : ∀ y : V, y ∈ (Set.univ : Set V) → |
| 43 | (mfderiv (𝓡 3) (𝓡 3) f y).IsInvertible := by |
| 44 | intro y hy |
| 45 | rw [Poincare.Geometry.Manifold.RegularLevel.mfderiv_opens_subtypeVal V y] |
| 46 | exact ⟨ContinuousLinearEquiv.refl ℝ _, rfl⟩ |
| 47 | have hmetric : ∀ y : V, y ∈ (Set.univ : Set V) → |
| 48 | ∀ u v : TangentSpace (𝓡 3) y, |
| 49 | (intrinsicOpenMetric g V).inner y u v = |
| 50 | g.inner (f y) (mfderiv (𝓡 3) (𝓡 3) f y u) |
| 51 | (mfderiv (𝓡 3) (𝓡 3) f y v) := by |
| 52 | intro y hy u v |
| 53 | exact intrinsicOpenMetric_inner g V y u v |
| 54 | simpa only [f] using |
| 55 | (PoincareMT.LeviCivitaData.curvatureDerivativeNorm_eq_pullback DU D |
| 56 | isOpen_univ hf hinv hmetric m (x := x) (mem_univ x)) |
| 57 | |
| 58 | end PoincareMT.M28 |