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.Noncollapse.LimitNoncollapseFiniteHarnackDomain |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Blowup.Controls.BlowupControlsSequence |
| 3 | |
| 4 | /-! |
| 5 | # Positive physical clocks from a finite left buffer |
| 6 | |
| 7 | A forward point inhabits the actual physical slice. A strictly earlier |
| 8 | included normalized time then proves strict positivity in a nonnegative |
| 9 | history interval. Source: MT Proposition 17.1; reviewed compact transfer F2d. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set Filter |
| 15 | open scoped Topology ENNReal |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M47 |
| 20 | |
| 21 | /-- The actual forward point certifies membership of its dependent |
| 22 | physical clock in the original generalized interval. -/ |
| 23 | theorem limitNoncollapse_physical_time_mem |
| 24 | {S : GeneralizedBlowupSequence.{u}} {J : Set ℝ} |
| 25 | (G : GeneralizedBlowupConvergence S J) (k : ℕ) (t : ℝ) |
| 26 | (ht : t ∈ Icc (-G.exhaustion.time k) 0) : |
| 27 | (S.base (G.subsequence k)).1 + t / S.scale (G.subsequence k) ∈ |
| 28 | (S.flow (G.subsequence k)).interval := by |
| 29 | apply ((S.flow (G.subsequence k)).slice_nonempty_iff _).mp |
| 30 | exact ⟨(G.embedding k).forward t ht G.limit.base⟩ |
| 31 | |
| 32 | /-- The finite left buffer gives a strictly positive physical time, |
| 33 | including when the tested normalized time is zero. -/ |
| 34 | theorem limitNoncollapse_eventually_physical_time_pos |
| 35 | {S : GeneralizedBlowupSequence.{u}} {H : ℝ≥0∞} |
| 36 | (hfinite : H ≠ ⊤) |
| 37 | (G : GeneralizedBlowupConvergence S (blowupBackwardInterval H)) |
| 38 | (hnonnegative : ∀ k, (S.flow k).interval ⊆ Ici 0) |
| 39 | (t : ℝ) (ht : t ∈ blowupBackwardInterval H) : |
| 40 | ∀ᶠ k : ℕ in atTop, |
| 41 | t ∈ Icc (-G.exhaustion.time k) 0 ∧ |
| 42 | (S.base (G.subsequence k)).1 + t / S.scale (G.subsequence k) ∈ |
| 43 | (S.flow (G.subsequence k)).interval ∧ |
| 44 | 0 < (S.base (G.subsequence k)).1 + t / S.scale (G.subsequence k) := by |
| 45 | have ht' : -H.toReal < t ∧ t ≤ 0 := by |
| 46 | rwa [limitFinite_domain_eq hfinite] at ht |
| 47 | let a := (t - H.toReal) / 2 |
| 48 | have hat : a < t := by dsimp [a]; linarith |
| 49 | have ha : a ∈ blowupBackwardInterval H := by |
| 50 | rw [limitFinite_domain_eq hfinite] |
| 51 | dsimp [a] |
| 52 | constructor <;> linarith |
| 53 | have hpair : ({a, t} : Set ℝ) ⊆ blowupBackwardInterval H := by |
| 54 | intro s hs |
| 55 | rcases mem_insert_iff.mp hs with rfl | hs |
| 56 | · exact ha |
| 57 | · exact mem_singleton_iff.mp hs ▸ ht |
| 58 | filter_upwards [G.exhaustion.time_cofinal {a, t} |
| 59 | ((isCompact_singleton : IsCompact ({t} : Set ℝ)).insert a) hpair] with k hk |
| 60 | have hak : a ∈ Icc (-G.exhaustion.time k) 0 := hk (by simp) |
| 61 | have htk : t ∈ Icc (-G.exhaustion.time k) 0 := hk (by simp) |
| 62 | refine ⟨htk, limitNoncollapse_physical_time_mem G k t htk, ?_⟩ |
| 63 | have hnonneg := hnonnegative (G.subsequence k) |
| 64 | (limitNoncollapse_physical_time_mem G k a hak) |
| 65 | have hdiv := (div_lt_div_iff_of_pos_right (G.embedding k).scale_pos).mpr hat |
| 66 | change 0 ≤ (S.base (G.subsequence k)).1 + a / S.scale (G.subsequence k) at hnonneg |
| 67 | linarith |
| 68 | |
| 69 | end PoincareMT.M47 |