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.LimitFiniteSourceAlternative |
| 2 | import PoincareLib.Geometry.RicciFlow.TimeTranslation |
| 3 | |
| 4 | /-! |
| 5 | # The actual clock around the finite endpoint |
| 6 | |
| 7 | The retained anchor centers a closed source slab whose recent half |
| 8 | contains the missing limit time in its interior. MT Proposition 17.1; |
| 9 | limit-finite-retained-jets.md, AC4. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M47 |
| 21 | |
| 22 | /-- The actual long-branch ordinary source has a translated closed slab |
| 23 | around the missing time, with unchanged metric, connection and ceiling. -/ |
| 24 | theorem limitFinite_endpoint_buffer_flow |
| 25 | {M : Type u} [TopologicalSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 27 | {T d K : ℝ} (hd : 0 < d) (hc : -T + d / 4 ≤ 0) |
| 28 | (F : RicciFlow 3 M (Icc (-(T + d / 2)) 0)) |
| 29 | (hcurv : ∀ s ∈ Icc (-(T + d / 2)) 0, ∀ x : M, |
| 30 | |(F.connection s).curvatureTensorNorm x| ≤ K) : |
| 31 | ∃ A : RicciFlow 3 M (Icc (-(3 * d / 4)) 0), |
| 32 | (∀ s, A.metric s = F.metric (s + (-T + d / 4))) ∧ |
| 33 | (∀ s (x : M), (A.connection s).curvatureTensorNorm x = |
| 34 | (F.connection (s + (-T + d / 4))).curvatureTensorNorm x) ∧ |
| 35 | (∀ s ∈ Icc (-(3 * d / 4)) 0, ∀ x : M, |
| 36 | |(A.connection s).curvatureTensorNorm x| ≤ K) ∧ |
| 37 | A.metric 0 = F.metric (-T + d / 4) ∧ |
| 38 | -d / 4 ∈ Ioo (-((3 * d / 4) / 2)) 0 ∧ |
| 39 | -d / 4 + (-T + d / 4) = -T := by |
| 40 | have hmap : (fun s : ℝ => s + (-T + d / 4)) '' Icc (-(3 * d / 4)) 0 ⊆ |
| 41 | Icc (-(T + d / 2)) 0 := by |
| 42 | rintro _ ⟨s, hs, rfl⟩ |
| 43 | constructor <;> linarith [hs.1, hs.2] |
| 44 | have hne : (Icc (-(3 * d / 4)) (0 : ℝ)).Nontrivial := by |
| 45 | refine ⟨-(3 * d / 4), ⟨le_rfl, by linarith⟩, 0, ⟨by linarith, le_rfl⟩, ?_⟩ |
| 46 | linarith |
| 47 | let A := F.translate (-T + d / 4) hmap ordConnected_Icc hne |
| 48 | refine ⟨A, fun _ => rfl, fun _ _ => rfl, ?_, ?_, ?_, ?_⟩ |
| 49 | · intro s hs x |
| 50 | exact hcurv _ (hmap ⟨s, hs, rfl⟩) x |
| 51 | · change F.metric (0 + (-T + d / 4)) = F.metric (-T + d / 4) |
| 52 | rw [zero_add] |
| 53 | · constructor <;> linarith |
| 54 | · ring |
| 55 | |
| 56 | end PoincareMT.M47 |