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.Limit.Finite.LimitFinitePhysicalCoherence |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Cylinder.CylinderChart |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.History.Transport.SurgeryCylinderRestriction |
| 4 | import PoincareLib.Topology.Sequences.Diagonal |
| 5 | |
| 6 | /-! |
| 7 | # Actual physical maps at the missing endpoint |
| 8 | |
| 9 | The availability diagonal retains genuine source cylinders and their |
| 10 | metadata. Spatial restriction preserves their literal inverse, and |
| 11 | backward physical uniqueness identifies every fixed earlier row. |
| 12 | MT Proposition 17.1; endpoint-physical-readout.md, AM1. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Topology ENNReal |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M47 |
| 24 | |
| 25 | /-- A diagonal retains every actual row witness and its original data. |
| 26 | No cylinder is assigned at an unavailable source index. -/ |
| 27 | theorem limitFinite_endpoint_source_diagonal |
| 28 | {C : GeneralizedSliceCarrier.{u}} (F : ℕ → SurgeryFlowData.{u}) |
| 29 | (index : ℕ → ℕ) (base Q : ℕ → ℝ) (U : ℕ → Set C.carrier) |
| 30 | (j : ℕ → ℕ) (T : ℝ) (d : ℕ → ℝ) |
| 31 | (P : ∀ m k b, SurgeryFlowCylinder (F (index k)) C |
| 32 | (base (index k)) (Q (index k)) (Icc b 0) (U (j m)) → Prop) |
| 33 | (havailable : ∀ m, ∀ᶠ k in atTop, ∃ b, b ≤ -(T + d m / 2) ∧ |
| 34 | ∃ E : SurgeryFlowCylinder (F (index k)) C |
| 35 | (base (index k)) (Q (index k)) (Icc b 0) (U (j m)), P m k b E) : |
| 36 | ∃ eta : ℕ → ℕ, StrictMono eta ∧ |
| 37 | ∃ b : ∀ k m, m ≤ k → ℝ, |
| 38 | (∀ k m hmk, b k m hmk ≤ -(T + d m / 2)) ∧ |
| 39 | ∃ E : ∀ k m (hmk : m ≤ k), SurgeryFlowCylinder (F (index (eta k))) C |
| 40 | (base (index (eta k))) (Q (index (eta k))) (Icc (b k m hmk) 0) (U (j m)), |
| 41 | ∀ k m hmk, P m (eta k) (b k m hmk) (E k m hmk) := by |
| 42 | classical |
| 43 | obtain ⟨eta, heta, hrows⟩ := |
| 44 | Poincare.exists_strictMono_forall_le_of_eventually havailable |
| 45 | choose b hb E hE using hrows |
| 46 | exact ⟨eta, heta, b, hb, E, hE⟩ |
| 47 | |
| 48 | /-- The actual endpoint charts keep the original inverse and agree |
| 49 | with every fixed source row sharing the retained zero map. -/ |
| 50 | theorem limitFinite_endpoint_physical_maps |
| 51 | {C : GeneralizedSliceCarrier.{u}} (F : ℕ → SurgeryFlowData.{u}) |
| 52 | (base Q : ℕ → ℝ) (U : ℕ → Set C.carrier) |
| 53 | (hU : ∀ k, IsOpen (U k)) (hmono : Monotone U) |
| 54 | (j : ℕ → ℕ) (hsub : ∀ k, U k ⊆ U (j k)) |
| 55 | {T : ℝ} (hT : 0 < T) (d : ℕ → ℝ) (hd : ∀ k, 0 < d k) |
| 56 | (b : ℕ → ℝ) (hb : ∀ k, b k ≤ -(T + d k / 2)) |
| 57 | (E : ∀ k, SurgeryFlowCylinder (F k) C (base k) (Q k) (Icc (b k) 0) (U (j k))) |
| 58 | (Z : ∀ k, C.carrier → ((F k).slice (base k + 0 / Q k)).carrier) |
| 59 | (hzero : ∀ k (h0 : 0 ∈ Icc (b k) 0) x, x ∈ U (j k) → |
| 60 | (E k).forward 0 h0 x = Z k x) : |
| 61 | ∃ psi : ∀ k, PartialDiffeomorph (𝓡 3) (𝓡 3) C.carrier |
| 62 | ((F k).slice (base k + -T / Q k)).carrier ∞, |
| 63 | (∀ k, (psi k).source = U k) ∧ |
| 64 | (∀ k, ∀ ht : -T ∈ Icc (b k) 0, |
| 65 | ((psi k : C.carrier → _) = (E k).forward (-T) ht) ∧ |
| 66 | (((psi k).symm : _ → C.carrier) = (E k).inverse (-T) ht)) ∧ |
| 67 | (∀ k, 0 < Q k ∧ base k + -T / Q k ∈ (F k).time_domain ∧ |
| 68 | base k + -T / Q k ∈ Ico 0 (base k)) ∧ |
| 69 | ∀ m k, j m ≤ k → ∀ b' : ℝ, b' ≤ -(T + d m / 2) → |
| 70 | ∀ E' : SurgeryFlowCylinder (F k) C (base k) (Q k) (Icc b' 0) (U (j m)), |
| 71 | (∀ (h0 : 0 ∈ Icc b' 0) x, x ∈ U (j m) → E'.forward 0 h0 x = Z k x) → |
| 72 | ∀ ht : -T ∈ Icc b' 0, EqOn (psi k) (E'.forward (-T) ht) (U (j m)) := by |
| 73 | classical |
| 74 | have htime (k : ℕ) : -T ∈ Icc (b k) 0 := |
| 75 | ⟨by linarith [hb k, hd k], neg_nonpos.mpr hT.le⟩ |
| 76 | let er := fun k => (E k).restrict (Subset.refl (Icc (b k) 0)) |
| 77 | ordConnected_Icc (hsub k) |
| 78 | let psi := fun k => M44.cylinderSliceChart (er k) (hU k) (-T) (htime k) |
| 79 | refine ⟨psi, fun _ => rfl, fun _ _ => ⟨rfl, rfl⟩, ?_, ?_⟩ |
| 80 | · intro k |
| 81 | have hQ := (E k).scale_pos |
| 82 | have hdom := (E k).time_subset (mem_image_of_mem _ (htime k)) |
| 83 | exact ⟨hQ, hdom, (F k).time_domain_nonnegative hdom, |
| 84 | by linarith [div_neg_of_neg_of_pos (neg_neg_of_pos hT) hQ]⟩ |
| 85 | · intro m k hj b' hb' E' hzero' ht' x hx |
| 86 | have hI : Icc (-T) 0 ⊆ Icc (b k) 0 := Icc_subset_Icc_left (htime k).1 |
| 87 | have hJ : Icc (-T) 0 ⊆ Icc b' 0 := Icc_subset_Icc_left ht'.1 |
| 88 | have hxk : x ∈ U (j k) := hsub k (hmono hj hx) |
| 89 | exact terminalCommonInterval_physical_eq (E k) E' (neg_nonpos.mpr hT.le) |
| 90 | hI hJ x hxk x hx ((hzero k _ x hxk).trans (hzero' _ x hx).symm) |
| 91 | |
| 92 | end PoincareMT.M47 |