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.Initial.InitialRawFlow |
| 2 | import PoincareLib.Topology.Manifold.Poincare.Final.Compatibility.Normalization |
| 3 | import PoincareLib.Geometry.RicciFlow.Pinching.Imported.Main |
| 4 | |
| 5 | open PoincareMT.PinchingImport |
| 6 | /-! |
| 7 | # Pinching of the actual normalized ordinary start |
| 8 | |
| 9 | The existing M01 norm-to-pinching theorem applies to the actual initial |
| 10 | connection. Literal finite restrictions then allow the M05 persistence |
| 11 | theorem to cover both finite and infinite maximal domains without changing |
| 12 | the absolute clock or selecting another connection. |
| 13 | |
| 14 | Source: Morgan--Tian Definition 4.10, p. 67; Theorem 4.32, pp. 79-80; |
| 15 | and the normalization argument in Corollary 15.10, p. 363. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open Set |
| 21 | open scoped Manifold ContDiff |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.M51Initial |
| 26 | |
| 27 | variable {M : Type u} [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 28 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 29 | [T2Space M] [T3Space M] [SecondCountableTopology M] |
| 30 | |
| 31 | omit [T2Space M] [SecondCountableTopology M] in |
| 32 | /-- Normalization controls the retained initial connection without identifying records. -/ |
| 33 | theorem initial_pinched (I : NormalizedInitialMetric (M := M)) |
| 34 | {J : Set ℝ} (F : RicciFlow 3 M J) (h0 : F.metric 0 = I.metric) : |
| 35 | HamiltonIveyPinchedAt (F.connection 0) 0 := |
| 36 | m01HamiltonIveyPinchedAt_zero_of_norm_le (F.connection 0) (initial_norm_bound I F h0) |
| 37 | |
| 38 | /-- Every included time is controlled by M05 on a literal finite restriction. -/ |
| 39 | theorem pinched_on [CompactSpace M] (I : NormalizedInitialMetric (M := M)) |
| 40 | {J : Set ℝ} (F : RicciFlow 3 M J) (h0 : F.metric 0 = I.metric) |
| 41 | (hshape : J = Ici 0 ∨ ∃ T : ℝ, 0 < T ∧ J = Ico 0 T) : |
| 42 | ∀ t ∈ J, SurgeryPinchedAt (F.connection t) t := by |
| 43 | intro t ht |
| 44 | have hwindow : ∃ b : ℝ, 0 < b ∧ Ico 0 b ⊆ J ∧ t ∈ Ico 0 b := by |
| 45 | rcases hshape with hJ | ⟨b, hb, hJ⟩ |
| 46 | · have ht0 : 0 ≤ t := by simpa only [hJ, mem_Ici] using ht |
| 47 | refine ⟨t + 1, by linarith, ?_, ⟨ht0, by linarith⟩⟩ |
| 48 | intro s hs |
| 49 | simpa only [hJ, mem_Ici] using hs.1 |
| 50 | · refine ⟨b, hb, ?_, ?_⟩ |
| 51 | · intro s hs |
| 52 | simpa only [hJ] using hs |
| 53 | · simpa only [hJ] using ht |
| 54 | obtain ⟨b, hb, hsub, htb⟩ := hwindow |
| 55 | have hne : (Ico 0 b).Nontrivial := by |
| 56 | obtain ⟨c, hc, hcb⟩ := exists_between hb |
| 57 | exact ⟨0, ⟨le_rfl, hb⟩, c, ⟨hc.le, hcb⟩, hc.ne⟩ |
| 58 | let R := M51Ordinary.restrict F hsub ordConnected_Ico hne |
| 59 | have hinit : HamiltonIveyPinchedAt (R.connection 0) 0 := initial_pinched I F h0 |
| 60 | have h := (hamiltonIveyPinching_from_M04 (a := 0) (b := b) |
| 61 | le_rfl hb R hinit).persistence t htb |
| 62 | exact ⟨h.1, fun x _ => h.2.1 x, fun x _ => h.2.2 x⟩ |
| 63 | |
| 64 | end PoincareMT.M51Initial |