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.Data |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Spacetime.GeneralizedCylinderRestriction |
| 3 | |
| 4 | /-! |
| 5 | # Restricting the cylinders of Chapter 11 |
| 6 | |
| 7 | Morgan--Tian Definition 3.38, p. 61, and Theorem 11.8, p. 272: a compatible |
| 8 | cylinder restricts to smaller space and time domains. The total maps are |
| 9 | unchanged, and a closed backward slab is taken strictly inside an open-left |
| 10 | slab. This is data restriction; endpoint metric jets are a later obligation. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M30 |
| 20 | |
| 21 | namespace Cylinder |
| 22 | |
| 23 | variable {F : GeneralizedRicciFlowData.{u}} {C : GeneralizedSliceCarrier.{u}} |
| 24 | {origin scale : ℝ} {I J : Set ℝ} {U V : Set C.carrier} |
| 25 | |
| 26 | /-- Restrict a compatible cylinder, preserving both total maps (Definition |
| 27 | 3.38, p. 61). This reuses M12's raw-cylinder restriction. -/ |
| 28 | noncomputable def restrict |
| 29 | (e : GeneralizedFlowCylinder F C origin scale I U) |
| 30 | (hJI : J ⊆ I) (hVU : V ⊆ U) : |
| 31 | GeneralizedFlowCylinder F C origin scale J V := |
| 32 | e.restrict hJI hVU |
| 33 | |
| 34 | /-- Restriction preserves the actual spacetime point (Definition 3.38, p. 61). -/ |
| 35 | @[simp] theorem restrict_pointMap |
| 36 | (e : GeneralizedFlowCylinder F C origin scale I U) |
| 37 | (hJI : J ⊆ I) (hVU : V ⊆ U) (s : ℝ) (hs : s ∈ J) (x : C.carrier) : |
| 38 | (restrict e hJI hVU).pointMap s hs x = e.pointMap s (hJI hs) x := rfl |
| 39 | |
| 40 | /-- Restriction preserves the pullback metric because it reuses the total |
| 41 | spatial maps (Definition 3.38, p. 61; Definition 5.12, p. 90). -/ |
| 42 | @[simp] theorem restrict_pullbackInner |
| 43 | (e : GeneralizedFlowCylinder F C origin scale I U) |
| 44 | (hJI : J ⊆ I) (hVU : V ⊆ U) (s : ℝ) (hs : s ∈ J) (x : C.carrier) |
| 45 | (v w : TangentSpace (𝓡 3) x) : |
| 46 | (restrict e hJI hVU).pullbackInner s hs x v w = |
| 47 | e.pullbackInner s (hJI hs) x v w := rfl |
| 48 | |
| 49 | end Cylinder |
| 50 | |
| 51 | /-- A strictly shorter closed slab lies inside the slab of Theorem 11.8, |
| 52 | p. 272. Positivity is needed separately to use it as a nontrivial flow. -/ |
| 53 | theorem closedSlab_subset_openSlab {T' T : ℝ} (h : T' < T) : |
| 54 | Set.Icc (-T') 0 ⊆ Set.Ioc (-T) 0 := by |
| 55 | intro t ht |
| 56 | exact ⟨(neg_lt_neg h).trans_le ht.1, ht.2⟩ |
| 57 | |
| 58 | namespace FiniteHorizonSlab |
| 59 | |
| 60 | variable {S : GeneralizedBlowupSequence.{u}} {k : ℕ} {A T kappa r₀ : ℝ} |
| 61 | |
| 62 | /-- Theorem 11.8's open-left slab supplies its closed subslab with exactly |
| 63 | the same total maps (p. 272; Definition 5.12, p. 90). -/ |
| 64 | noncomputable def closedEmbedding (e : M30FiniteHorizonSlab S k A T kappa r₀) |
| 65 | {T' : ℝ} (h : T' < T) : |
| 66 | GeneralizedFlowCylinder (S.flow k) ((S.flow k).slice (S.base k).1) |
| 67 | (S.base k).1 (S.scale k) (Set.Icc (-T') 0) (S.baseBall k A) := |
| 68 | Cylinder.restrict e.embedding (closedSlab_subset_openSlab h) Set.Subset.rfl |
| 69 | |
| 70 | /-- The restricted slab retains its terminal identity (Theorem 11.8, p. 272). -/ |
| 71 | theorem closedEmbedding_zero_identity (e : M30FiniteHorizonSlab S k A T kappa r₀) |
| 72 | {T' : ℝ} (h : T' < T) (h₀ : 0 ∈ Set.Icc (-T') 0) |
| 73 | (x : ((S.flow k).slice (S.base k).1).carrier) (hx : x ∈ S.baseBall k A) : |
| 74 | (closedEmbedding e h).pointMap 0 h₀ x = |
| 75 | (⟨(S.base k).1, x⟩ : (S.flow k).point) := |
| 76 | e.zero_identity _ x hx |
| 77 | |
| 78 | /-- Pointwise original-scale noncollapse survives slab restriction |
| 79 | (Theorem 11.8, p. 272). -/ |
| 80 | theorem closedEmbedding_noncollapsed (e : M30FiniteHorizonSlab S k A T kappa r₀) |
| 81 | {T' : ℝ} (h : T' < T) (s : ℝ) (hs : s ∈ Set.Icc (-T') 0) |
| 82 | (x : ((S.flow k).slice (S.base k).1).carrier) (hx : x ∈ S.baseBall k A) : |
| 83 | GeneralizedKappaNoncollapsedAt (S.flow k) |
| 84 | ((closedEmbedding e h).pointMap s hs x) kappa r₀ := |
| 85 | e.noncollapsed s _ x hx |
| 86 | |
| 87 | end FiniteHorizonSlab |
| 88 | |
| 89 | end PoincareMT.M30 |