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.Persistence.SourceNames.Homothety |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Removal.Sphere.SphereJetMargin |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Geometry.SectionalPlane |
| 4 | |
| 5 | /-! |
| 6 | # Actual tangent-plane curvature from pullback two-jets |
| 7 | |
| 8 | A local positive metric realization identifies the coordinate curvature |
| 9 | operator with the physical curvature tensor. Strict sectional margins |
| 10 | then transfer to the physical tangent plane and every nondegenerate |
| 11 | basis of that plane. Morgan--Tian, Claim 16.10, pp. 374-375; |
| 12 | see M44 derivation 46. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Bundle Topology |
| 20 | |
| 21 | namespace PoincareMT.M44 |
| 22 | |
| 23 | open SpacetimeBounds |
| 24 | |
| 25 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 26 | |
| 27 | noncomputable local instance pullbackPlaneCoefficientNormedGroup : |
| 28 | NormedAddCommGroup (MetricCoefficient 3) := ContinuousLinearMap.toNormedAddCommGroup |
| 29 | |
| 30 | noncomputable local instance pullbackPlaneCoefficientNormedSpace : |
| 31 | NormedSpace ℝ (MetricCoefficient 3) := ContinuousLinearMap.toNormedSpace |
| 32 | |
| 33 | /-- The native pullback curvature operator is the actual curvature |
| 34 | tensor evaluated on the chart differential. Source: Claim 16.10; |
| 35 | M44 derivation 46. -/ |
| 36 | theorem jetCurvature_pullbackCoefficients |
| 37 | {M : Type*} [TopologicalSpace M] [ChartedSpace E M] |
| 38 | [IsManifold (𝓡 3) ∞ M] [T2Space M] |
| 39 | (g : RiemannianMetric 3 M) (D : LeviCivitaData g) |
| 40 | {f : E → M} {U : Set E} (hU : IsOpen U) |
| 41 | (hf : ContMDiffOn (𝓡 3) (𝓡 3) ∞ f U) |
| 42 | (hinv : ∀ y ∈ U, (mfderiv (𝓡 3) (𝓡 3) f y).IsInvertible) |
| 43 | {x : E} (hx : x ∈ U) (u w v z : E) : |
| 44 | jetCurvature (metricTwoJet (g.pullbackCoefficients f) x) u w v z = |
| 45 | D.curvatureTensor (f x) (mfderiv (𝓡 3) (𝓡 3) f x u) |
| 46 | (mfderiv (𝓡 3) (𝓡 3) f x w) (mfderiv (𝓡 3) (𝓡 3) f x v) |
| 47 | (mfderiv (𝓡 3) (𝓡 3) f x z) := by |
| 48 | obtain ⟨gE, DE, V, hV, hxV, hVU, hmetric⟩ := |
| 49 | RiemannianMetric.exists_local_realization hU hx (g.pullbackCoefficients f) |
| 50 | (fun y hy => (g.contDiffAt_pullbackCoefficients |
| 51 | (hf.contMDiffAt (hU.mem_nhds hy))).contDiffWithinAt) |
| 52 | (fun y _ a b => g.symm (f y) _ _) |
| 53 | (fun y hy a ha => by |
| 54 | apply g.pos (f y) |
| 55 | intro hz |
| 56 | apply ha |
| 57 | apply (hinv y hy).injective |
| 58 | rw [map_zero] |
| 59 | exact hz) |
| 60 | have heq : gE.euclideanCoefficients =ᶠ[𝓝 x] g.pullbackCoefficients f := |
| 61 | eventually_of_mem (hV.mem_nhds hxV) hmetric |
| 62 | have htwo : metricTwoJet gE.euclideanCoefficients x = |
| 63 | metricTwoJet (g.pullbackCoefficients f) x := by |
| 64 | simp only [metricTwoJet, heq.eq_of_nhds, heq.fderiv_eq, |
| 65 | (heq.fderiv (𝕜 := ℝ)).fderiv_eq] |
| 66 | rw [← htwo, jetCurvature_metricTwoJet DE] |
| 67 | exact DE.curvatureTensor_eq_of_local_isometry D hV (hf.mono hVU) |
| 68 | (fun y hy a b => congrArg (fun B => B a b) (hmetric y hy)) hxV u w v z |
| 69 | |
| 70 | /-- A strict lower bound on the pullback two-jet gives that bound |
| 71 | on its physical image plane, with positive Gram retained. Source: |
| 72 | Claim 16.10, pp. 374-375; M44 derivation 46. -/ |
| 73 | theorem sectional_lower_of_pullback_twoJet |
| 74 | {M : Type*} [TopologicalSpace M] [ChartedSpace E M] |
| 75 | [IsManifold (𝓡 3) ∞ M] [T2Space M] |
| 76 | (g : RiemannianMetric 3 M) (D : LeviCivitaData g) |
| 77 | {f : E → M} {U : Set E} (hU : IsOpen U) |
| 78 | (hf : ContMDiffOn (𝓡 3) (𝓡 3) ∞ f U) |
| 79 | (hinv : ∀ y ∈ U, (mfderiv (𝓡 3) (𝓡 3) f y).IsInvertible) |
| 80 | {x : E} (hx : x ∈ U) (k : ℝ) (u v : E) |
| 81 | (hJ : metricTwoJet (g.pullbackCoefficients f) x ∈ sectionalJetLowerRegion k u v) : |
| 82 | let L := mfderiv (𝓡 3) (𝓡 3) f x |
| 83 | 0 < g.inner (f x) (L u) (L u) * g.inner (f x) (L v) (L v) - |
| 84 | (g.inner (f x) (L u) (L v)) ^ 2 ∧ |
| 85 | k < D.sectionalCurvature (f x) (L u) (L v) := by |
| 86 | refine ⟨hJ.2.1, ?_⟩ |
| 87 | unfold LeviCivitaData.sectionalCurvature |
| 88 | apply (lt_div_iff₀ hJ.2.1).mpr |
| 89 | rw [← jetCurvature_pullbackCoefficients g D hU hf hinv hx] |
| 90 | exact hJ.2.2 |
| 91 | |
| 92 | /-- A strict actual sectional lower bound holds on every positive |
| 93 | Gram pair in the same physical plane. Source: the angular rank |
| 94 | contradiction in Claim 16.10; M44 derivation 46. -/ |
| 95 | theorem sectional_lower_on_physical_plane |
| 96 | {M : Type*} [TopologicalSpace M] [ChartedSpace E M] |
| 97 | [IsManifold (𝓡 3) ∞ M] [T2Space M] |
| 98 | {g : RiemannianMetric 3 M} (D : LeviCivitaData g) (x : M) |
| 99 | {u v p q : TangentSpace (𝓡 3) x} {k : ℝ} |
| 100 | (huv : 0 < g.inner x u u * g.inner x v v - (g.inner x u v) ^ 2) |
| 101 | (hlower : k < D.sectionalCurvature x u v) |
| 102 | (hp : p ∈ Submodule.span ℝ ({u, v} : Set (TangentSpace (𝓡 3) x))) |
| 103 | (hq : q ∈ Submodule.span ℝ ({u, v} : Set (TangentSpace (𝓡 3) x))) |
| 104 | (hpq : 0 < g.inner x p p * g.inner x q q - (g.inner x p q) ^ 2) : |
| 105 | k < D.sectionalCurvature x p q := by |
| 106 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 107 | ⟨g.toRiemannianMetric⟩ |
| 108 | apply (lt_div_iff₀ hpq).mpr |
| 109 | exact sectional_lower_of_mem_span_pair (M13.curvatureTensorLinear D x) |
| 110 | (fun a b c d => D.curvatureTensor_swap_first x a b c d) |
| 111 | (fun a b c d => D.curvatureTensor_swap_last x a b c d) |
| 112 | ((lt_div_iff₀ huv).mp hlower) hp hq hpq |
| 113 | |
| 114 | end PoincareMT.M44 |