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.Topology.Manifold.Poincare.Final.Compatibility.SourceNames |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Component.ComponentEstimateCylinder |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.Assembly.PositiveComponents.PositiveLocalIsometry |
| 4 | |
| 5 | /-! |
| 6 | # Positivity on the literal whole component of a cylinder |
| 7 | |
| 8 | The actual compact connected image is a whole physical component. |
| 9 | Pointwise local-isometry invariance therefore gives both directions of |
| 10 | the whole-component positivity predicate. Source: MT pp. 393-394. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M47Positive |
| 22 | |
| 23 | /-- A literal cylinder pullback on a compact connected open source is |
| 24 | positive everywhere precisely when the actual physical component is |
| 25 | positive. The image is a whole component, not only a local chart; |
| 26 | Morgan--Tian, pp. 393-394. -/ |
| 27 | theorem component_cylinder_positive_iff |
| 28 | {F : SurgeryFlowData.{u}} {C : GeneralizedSliceCarrier.{u}} |
| 29 | {origin scale : ℝ} {I : Set ℝ} (U : TopologicalSpace.Opens C.carrier) |
| 30 | (e : SurgeryFlowCylinder F C origin scale I U) |
| 31 | (hcompact : IsCompact (U : Set C.carrier)) |
| 32 | (hconnected : IsConnected (U : Set C.carrier)) |
| 33 | (s : ℝ) (hs : s ∈ I) (g : RiemannianMetric 3 U) (D : LeviCivitaData g) |
| 34 | (hmetric : ∀ y : U, ∀ v w : TangentSpace (𝓡 3) y, |
| 35 | g.inner y v w = (F.metric (origin + s / scale)).inner (e.forward s hs y.val) |
| 36 | (mfderiv (𝓡 3) (𝓡 3) (fun z : U => e.forward s hs z.val) y v) |
| 37 | (mfderiv (𝓡 3) (𝓡 3) (fun z : U => e.forward s hs z.val) y w)) |
| 38 | (x : U) : |
| 39 | (∀ y : U, ∀ v w : TangentSpace (𝓡 3) y, |
| 40 | LeviCivitaData.IsOrthonormalPair g y v w → 0 < D.sectionalCurvature y v w) ↔ |
| 41 | SurgeryPositiveComponentAt F (origin + s / scale) (e.forward s hs x.val) := by |
| 42 | have hf : ContMDiff (𝓡 3) (𝓡 3) ∞ (fun y : U => e.forward s hs y.val) := by |
| 43 | intro y |
| 44 | exact ((e.forward_smooth s hs y.val y.property).contMDiffAt |
| 45 | (U.isOpen.mem_nhds y.property)).comp y (contMDiff_subtype_val (n := ∞) y) |
| 46 | have hpoint (y : U) := Proofs.M46.sectional_positive_iff_of_local_isometry D |
| 47 | (F.connection (origin + s / scale)) isOpen_univ hf.contMDiffOn |
| 48 | (fun z _hz => hmetric z) (mem_univ y) |
| 49 | have himage := M47.component_cylinder_image_eq e U.isOpen hcompact hconnected |
| 50 | s hs x.property |
| 51 | constructor |
| 52 | · intro hpos y hy |
| 53 | obtain ⟨z, hz, rfl⟩ := himage.symm ▸ hy |
| 54 | exact (hpoint ⟨z, hz⟩).mp (hpos ⟨z, hz⟩) |
| 55 | · intro hpos y |
| 56 | apply (hpoint y).mpr |
| 57 | apply hpos _ |
| 58 | rw [← himage] |
| 59 | exact mem_image_of_mem _ y.property |
| 60 | |
| 61 | end PoincareMT.M47Positive |