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.GlobalSchedule.Empty.EmptyEventCopy |
| 2 | |
| 3 | /-! |
| 4 | # Unchanged ordinary slabs before the empty cutoff |
| 5 | |
| 6 | Morgan--Tian Definition 15.5 and Section 17.2, pp. 361-364 and 409. |
| 7 | Only carrier labels are transported through equalities. The original |
| 8 | ordinary flow, including its physical time parameter, is retained. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open scoped Manifold ContDiff |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT.SurgeryRegularSlab |
| 18 | |
| 19 | variable {slice : ℝ → GeneralizedSliceCarrier.{u}} |
| 20 | {metric : ∀ t, RiemannianMetric 3 (slice t).carrier} {p q : ℝ} |
| 21 | |
| 22 | noncomputable def m51_reindexPast (S : SurgeryRegularSlab slice metric p q) |
| 23 | (tau : ℝ → ℝ) (hTau : ∀ t ≤ q, tau t = t) : |
| 24 | SurgeryRegularSlab (fun t => slice (tau t)) (fun t => metric (tau t)) p q := by |
| 25 | have hp := hTau p S.ordered.le |
| 26 | refine { |
| 27 | ordered := S.ordered |
| 28 | flow := M51EventCopy.flow slice hp.symm S.flow |
| 29 | identify := fun t => M51EventCopy.diffeomorph slice hp.symm |
| 30 | (hTau t.1 t.2.2).symm (S.identify t) |
| 31 | initial_identify := ?_ |
| 32 | metric_pullback := ?_ } |
| 33 | · intro x |
| 34 | obtain ⟨y, rfl⟩ := (M51EventCopy.timeEquivalence slice p (tau p) hp.symm).surjective x |
| 35 | exact (M51EventCopy.diffeomorph_apply slice hp.symm hp.symm |
| 36 | (S.identify ⟨p, le_rfl, S.ordered.le⟩) y).trans |
| 37 | (congrArg (M51EventCopy.timeEquivalence slice p (tau p) hp.symm) |
| 38 | (S.initial_identify y)) |
| 39 | · intro t |
| 40 | exact M51EventCopy.diffeomorph_flow_metric_pullback slice metric hp.symm |
| 41 | (hTau t.1 t.2.2).symm S.flow t.1 (S.identify t) (S.metric_pullback t) |
| 42 | |
| 43 | /-- The reindexed slab follows the same worldline through equal carriers. -/ |
| 44 | theorem m51_reindexPast_transport_heq (S : SurgeryRegularSlab slice metric p q) |
| 45 | (tau : ℝ → ℝ) (hTau : ∀ t ≤ q, tau t = t) (s t : Set.Icc p q) |
| 46 | {x : (slice s.1).carrier} {y : (slice (tau s.1)).carrier} (hy : HEq y x) : |
| 47 | HEq ((S.m51_reindexPast tau hTau).transport s t y) (S.transport s t x) := by |
| 48 | let S' := S.m51_reindexPast tau hTau |
| 49 | let c := M51EventCopy.identify slice tau p (hTau p S.ordered.le) |
| 50 | have hmap (r : Set.Icc p q) (z : (slice p).carrier) : |
| 51 | S'.identify r (c z) = |
| 52 | M51EventCopy.identify slice tau r.1 (hTau r.1 r.2.2) (S.identify r z) := |
| 53 | M51EventCopy.diffeomorph_apply slice (hTau p S.ordered.le).symm |
| 54 | (hTau r.1 r.2.2).symm (S.identify r) z |
| 55 | have hsource : y = M51EventCopy.identify slice tau s.1 (hTau s.1 s.2.2) x := |
| 56 | eq_of_heq (hy.trans (M51EventCopy.identify_apply_heq slice tau s.1 |
| 57 | (hTau s.1 s.2.2) x).symm) |
| 58 | have hinverse : (S'.identify s).symm y = c ((S.identify s).symm x) := by |
| 59 | apply (S'.identify s).injective |
| 60 | change (S'.identify s) ((S'.identify s).symm y) = |
| 61 | (S'.identify s) (c ((S.identify s).symm x)) |
| 62 | rw [Diffeomorph.apply_symm_apply, hmap, Diffeomorph.apply_symm_apply] |
| 63 | exact hsource |
| 64 | change HEq (S'.identify t ((S'.identify s).symm y)) _ |
| 65 | rw [hinverse, hmap] |
| 66 | exact M51EventCopy.identify_apply_heq slice tau t.1 (hTau t.1 t.2.2) _ |
| 67 | |
| 68 | end PoincareMT.SurgeryRegularSlab |