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.CanonicalInduction.Generalized.GeneralizedBridgeCylinder |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.History.Transport.SurgeryCylinderRestriction |
| 3 | |
| 4 | /-! |
| 5 | # Included interiors of the preserved physical search |
| 6 | |
| 7 | The actual earlier source time supplies regularity at both new endpoints. |
| 8 | The selected history retains the source, all old maps and both metric |
| 9 | slots. MT Proposition 17.1; limit-finite-retained-interior.md, AA1. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M47 |
| 21 | |
| 22 | /-- A strict interior of the actual preserved search returns to the same |
| 23 | regular history and agrees with the original generalized future. -/ |
| 24 | theorem limitFinite_preserved_history_interior |
| 25 | {F : SurgeryFlowData.{u}} {W : M33RegularHistoryWindow F} |
| 26 | (H : M33RegularHistoryData W) {C : GeneralizedSliceCarrier.{u}} |
| 27 | {base Q b c tau : ℝ} {U : Set C.carrier} |
| 28 | (hbase : base ∈ H.generalized.interval) (htau : 0 < tau) |
| 29 | (hb : b < -tau) (hU : IsOpen U) |
| 30 | (E : SurgeryFlowCylinder F C base Q (Icc b 0) U) |
| 31 | (e0 : GeneralizedFlowCylinder H.generalized C base Q (Icc c 0) U) |
| 32 | (hfuture : ∀ s (hs : s ∈ Icc c 0) (hs' : s ∈ Icc b 0), ∀ x ∈ U, |
| 33 | E.forward s hs' x = H.history.forward (base + s / Q) |
| 34 | ((H.generalized.slice_nonempty_iff _).mp ⟨e0.forward s hs x⟩) |
| 35 | (e0.forward s hs x)) : |
| 36 | ∃ htime : ∀ s ∈ Icc (-tau) 0, base + s / Q ∈ H.generalized.interval, |
| 37 | ∃ e : GeneralizedFlowCylinder H.generalized C base Q (Icc (-tau) 0) U, |
| 38 | (∀ s hs x, x ∈ U → H.history.forward (base + s / Q) (htime s hs) |
| 39 | (e.forward s hs x) = E.forward s ⟨hb.le.trans hs.1, hs.2⟩ x) ∧ |
| 40 | (∀ s hs x, x ∈ U → ∀ v w : TangentSpace (𝓡 3) x, |
| 41 | e.pullbackInner s hs x v w = |
| 42 | E.pullbackInner s ⟨hb.le.trans hs.1, hs.2⟩ x v w) ∧ |
| 43 | (∀ s (hs : s ∈ Icc c 0) (hs' : s ∈ Icc (-tau) 0), ∀ x ∈ U, |
| 44 | e.forward s hs' x = e0.forward s hs x) ∧ |
| 45 | (∀ s (hs : s ∈ Icc c 0) (hs' : s ∈ Icc (-tau) 0), ∀ x ∈ U, |
| 46 | ∀ v w : TangentSpace (𝓡 3) x, |
| 47 | e.pullbackInner s hs' x v w = e0.pullbackInner s hs x v w) := by |
| 48 | have hsub : Icc (-tau) 0 ⊆ Icc b 0 := Icc_subset_Icc hb.le le_rfl |
| 49 | let small := E.restrict hsub ordConnected_Icc (Subset.refl U) |
| 50 | have htime (s : ℝ) (hs : s ∈ Icc (-tau) 0) : |
| 51 | base + s / Q ∈ H.generalized.interval := by |
| 52 | rw [H.interval_eq] |
| 53 | apply W.interval_connected.out W.zero_mem (H.interval_eq ▸ hbase) |
| 54 | exact ⟨F.time_domain_nonnegative (E.time_subset (mem_image_of_mem _ (hsub hs))), |
| 55 | add_le_of_nonpos_right (div_nonpos_of_nonpos_of_nonneg hs.2 E.scale_pos.le)⟩ |
| 56 | have hregular (s : ℝ) (hs : s ∈ Icc (-tau) 0) : |
| 57 | small.forward s hs '' U ⊆ m33RegularRegion F (base + s / Q) := by |
| 58 | exact E.regular_image_of_earlier (hsub hs) |
| 59 | ⟨b, ⟨le_rfl, (hb.trans (neg_neg_of_pos htau)).le⟩, hb.trans_le hs.1⟩ |
| 60 | obtain ⟨e, hmap, hmetric⟩ := H.cylinders_from_surgery C base Q |
| 61 | (Icc (-tau) 0) U hU htime small hregular |
| 62 | have hagree (s : ℝ) (hs : s ∈ Icc c 0) (hs' : s ∈ Icc (-tau) 0) |
| 63 | (x : C.carrier) (hx : x ∈ U) : e.forward s hs' x = e0.forward s hs x := by |
| 64 | apply (H.history.forward_openEmbedding (base + s / Q) (htime s hs')).injective |
| 65 | exact (hmap s hs' x hx).trans (hfuture s hs (hsub hs') x hx) |
| 66 | refine ⟨htime, e, hmap, hmetric, hagree, ?_⟩ |
| 67 | intro s hs hs' x hx v w |
| 68 | have heq : e.forward s hs' =ᶠ[𝓝 x] e0.forward s hs := by |
| 69 | filter_upwards [hU.mem_nhds hx] with y hy |
| 70 | exact hagree s hs hs' y hy |
| 71 | unfold GeneralizedFlowCylinder.pullbackInner |
| 72 | rw [heq.self_of_nhds, heq.mfderiv_eq] |
| 73 | |
| 74 | end PoincareMT.M47 |