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.Induction.Noncollapse.StableSet.Seed.EpochWindow |
| 2 | |
| 3 | /-! |
| 4 | # The low-cylinder window inside the actual induction overlap |
| 5 | |
| 6 | Morgan--Tian Proposition 16.1 and Claim 16.27, pp. 367-368 and 392-393. |
| 7 | The dyadic epoch margin contains the entire short backward cylinder, |
| 8 | including when it crosses into the old epoch. All delta bounds there |
| 9 | come from the literal overlap hypothesis. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT.Proofs.M46 |
| 19 | |
| 20 | /-- An observed flow satisfying a smaller cutoff also satisfies any |
| 21 | larger one, with the same actual radius profile and old prefix. -/ |
| 22 | theorem ObservedInputs.cutoff_mono {K : MetricSurgeryConstants} |
| 23 | {p : SurgeryParameterPrefix K} {rNext delta delta' : ℝ} |
| 24 | {F : SurgeryFlowData.{u}} {O : SurgeryObservation F} |
| 25 | (inputs : ObservedInputs p rNext delta F O) (hdelta : delta ≤ delta') : |
| 26 | ObservedInputs p rNext delta' F O := { |
| 27 | inputs with |
| 28 | scales := { |
| 29 | r_eq := inputs.scales.r_eq |
| 30 | delta_le := fun t ht => (inputs.scales.delta_le t ht).trans hdelta |
| 31 | h_eq := inputs.scales.h_eq |
| 32 | } |
| 33 | overlap := fun t ht => (inputs.overlap t ht).trans hdelta |
| 34 | } |
| 35 | |
| 36 | /-- The next-epoch low test's full scalar-control window lies in the |
| 37 | observed overlap, including its closed earlier endpoint. -/ |
| 38 | theorem observed_low_cylinder_window {K : MetricSurgeryConstants} |
| 39 | (p : SurgeryParameterPrefix K) {rNext cutoff B : ℝ} |
| 40 | {F : SurgeryFlowData.{u}} {O : SurgeryObservation F} |
| 41 | (inputs : ObservedInputs p rNext cutoff F O) (D : NoncollapseTest F O) |
| 42 | (hnew : surgeryEpochStart p.i ≤ D.time) (hB : 1 ≤ B) |
| 43 | (hr : 0 < rNext) (hrLast : rNext ≤ p.r (Fin.last p.i)) : |
| 44 | Icc (D.time - rNext ^ 2 / (64 * B)) D.time ⊆ |
| 45 | surgeryObservationInterval O ∩ overlapInterval p := by |
| 46 | have hrsmall : rNext ≤ 1 / 200 := |
| 47 | hrLast.trans ((p.r_le_epsilon _).trans (p.setup.epsilon_le.trans (min_le_left _ _))) |
| 48 | have hBpos : 0 < B := zero_lt_one.trans_le hB |
| 49 | have hshort : rNext ^ 2 / (64 * B) ≤ 1 / 40000 := by |
| 50 | apply (div_le_iff₀ (mul_pos (by norm_num) hBpos)).mpr |
| 51 | nlinarith [sq_nonneg (rNext - 1 / 200)] |
| 52 | have ha := epochStart_ge_initial (p.i - 1) |
| 53 | rw [prefix_epochStart_eq_twice p] at hnew |
| 54 | intro t ht |
| 55 | have htlo : surgeryEpochStart (p.i - 1) ≤ t := by linarith [ht.1] |
| 56 | have hthi : t < O.H := ht.2.trans_lt D.time_mem.2 |
| 57 | exact ⟨⟨by linarith, hthi⟩, htlo, hthi.trans_le inputs.next_epoch.2⟩ |
| 58 | |
| 59 | /-- The tested time has a genuine later observed time, used only to |
| 60 | initialize the actual zero-time identity cylinder. -/ |
| 61 | theorem NoncollapseTest.exists_later_observed_time |
| 62 | {F : SurgeryFlowData.{u}} {O : SurgeryObservation F} (D : NoncollapseTest F O) : |
| 63 | ∃ top : ℝ, D.time < top ∧ top ∈ F.time_domain := by |
| 64 | obtain ⟨top, htop, htopH⟩ := exists_between D.time_mem.2 |
| 65 | exact ⟨top, htop, O.interval_subset ⟨D.time_mem.1.trans htop.le, htopH⟩⟩ |
| 66 | |
| 67 | end PoincareMT.Proofs.M46 |