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.Blowup.Controlled.Geometry |
| 2 | |
| 3 | /-! |
| 4 | # Restrict the actual raw cylinder |
| 5 | |
| 6 | Only the displayed time and source sets change. The original point maps, |
| 7 | inverses, clock and metric pullbacks are retained on the smaller cylinder. |
| 8 | -/ |
| 9 | |
| 10 | set_option autoImplicit false |
| 11 | |
| 12 | open Set |
| 13 | open scoped Manifold ContDiff Topology |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT.GeneralizedFlowCylinder |
| 18 | |
| 19 | variable {F : GeneralizedRicciFlowData.{u}} {C : GeneralizedSliceCarrier.{u}} |
| 20 | {a q : ℝ} {J J' : Set ℝ} {U U' : Set C.carrier} |
| 21 | (e : GeneralizedFlowCylinder F C a q J U) (hJ : J' ⊆ J) (hU : U' ⊆ U) |
| 22 | |
| 23 | noncomputable def restrict : GeneralizedFlowCylinder F C a q J' U' where |
| 24 | scale_pos := e.scale_pos |
| 25 | forward := fun s hs => e.forward s (hJ hs) |
| 26 | inverse := fun s hs => e.inverse s (hJ hs) |
| 27 | forward_smooth := fun s hs => (e.forward_smooth s (hJ hs)).mono hU |
| 28 | inverse_smooth := fun s hs => (e.inverse_smooth s (hJ hs)).mono (image_mono hU) |
| 29 | left_inverse := fun s hs x hx => e.left_inverse s (hJ hs) (hU hx) |
| 30 | right_inverse := fun s hs x hx => e.right_inverse s (hJ hs) (image_mono hU hx) |
| 31 | embedding := e.embedding.comp ((Topology.IsEmbedding.inclusion hJ).prodMap |
| 32 | (Topology.IsEmbedding.inclusion hU)) |
| 33 | vertical_compatibility := by |
| 34 | intro s hs x hx |
| 35 | obtain ⟨b, y, δ, hδ, h⟩ := e.vertical_compatibility s (hJ hs) x (hU hx) |
| 36 | exact ⟨b, y, δ, hδ, fun s' hs' hnear => h s' (hJ hs') hnear⟩ |
| 37 | |
| 38 | theorem restrict_pointMap (s : ℝ) (hs : s ∈ J') (x : C.carrier) : |
| 39 | (e.restrict hJ hU).pointMap s hs x = e.pointMap s (hJ hs) x := rfl |
| 40 | |
| 41 | theorem restrict_pullbackInner (s : ℝ) (hs : s ∈ J') (x : C.carrier) |
| 42 | (v w : TangentSpace (𝓡 3) x) : |
| 43 | (e.restrict hJ hU).pullbackInner s hs x v w = |
| 44 | e.pullbackInner s (hJ hs) x v w := rfl |
| 45 | |
| 46 | end PoincareMT.GeneralizedFlowCylinder |