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 | |
| 3 | /-! |
| 4 | # Initial admissibility and the actual terminal slab |
| 5 | |
| 6 | Morgan--Tian Corollary 15.10, p. 363, and Section 17.2, p. 409. Before the |
| 7 | first surgery the entire maximal ordinary solution is its own last slab. |
| 8 | -/ |
| 9 | |
| 10 | set_option autoImplicit false |
| 11 | |
| 12 | open Set |
| 13 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT.M51Initial |
| 18 | |
| 19 | theorem admissible_of_no_events (F : SurgeryFlowData.{u}) (hS : F.surgery_times = ∅) : |
| 20 | SurgeryFlowAdmissible F where |
| 21 | strong_boundaries := by intro T hT; simp only [hS, mem_empty_iff_false] at hT |
| 22 | strong_disappearing := by intro T hT; simp only [hS, mem_empty_iff_false] at hT |
| 23 | strong_vanishing := by intro T hT; simp only [hS, mem_empty_iff_false] at hT |
| 24 | |
| 25 | variable {M : Type u} [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 27 | [T2Space M] [T3Space M] [SecondCountableTopology M] [CompactSpace M] [Nonempty M] |
| 28 | (g0 : StandardInitialMetric) (K : MetricSurgeryConstants) (P : SurgeryParameters) |
| 29 | (I : NormalizedInitialMetric (M := M)) |
| 30 | (hRP : NoTrivialNormalProjectivePlane (M := M)) |
| 31 | {J : Set ℝ} (F : RicciFlow 3 M J) (h0 : F.metric 0 = I.metric) |
| 32 | (hleast : IsLeast J 0) |
| 33 | (hmax : ∀ b : ℝ, 0 < b → Ico 0 b ⊆ J → b ∉ J → |
| 34 | ∀ L s : ℝ, s < b → ∃ t ∈ Ioo (max 0 s) b, ∃ x : M, |
| 35 | L < (F.connection t).curvatureTensorNorm x) |
| 36 | |
| 37 | noncomputable def preterminal (T : ℝ) (hT : 0 < T) (hJ : J = Ico 0 T) : |
| 38 | RepairedPreterminalSlab (rawFlow g0 K P I hRP F h0 hleast hmax) T where |
| 39 | start := 0 |
| 40 | start_mem := hleast.1 |
| 41 | start_lt := hT |
| 42 | start_initial_or_surgery := Or.inl rfl |
| 43 | time_subset := hJ ▸ Subset.rfl |
| 44 | surgery_free := by simp [rawFlow] |
| 45 | flow := M51Ordinary.restrict F (hJ ▸ Subset.rfl) ordConnected_Ico (by |
| 46 | refine ⟨0, ⟨le_rfl, hT⟩, T / 2, ⟨by linarith, by linarith⟩, ?_⟩ |
| 47 | linarith) |
| 48 | identify := fun _ => Diffeomorph.refl (𝓡 3) M ∞ |
| 49 | initial_identify := fun _ => rfl |
| 50 | metric_pullback := by |
| 51 | intro t x v w |
| 52 | dsimp only [rawFlow] at x v w ⊢ |
| 53 | change (F.metric t.1).inner (id x) |
| 54 | (mfderiv (𝓡 3) (𝓡 3) (id : M → M) x v) |
| 55 | (mfderiv (𝓡 3) (𝓡 3) (id : M → M) x w) = _ |
| 56 | simp only [mfderiv_id] |
| 57 | rfl |
| 58 | transport_compatibility := by intros; rfl |
| 59 | curvature_unbounded := hmax T hT (hJ ▸ Subset.rfl) (by simp [hJ]) |
| 60 | |
| 61 | @[simp] theorem preterminal_start (T : ℝ) (hT : 0 < T) (hJ : J = Ico 0 T) : |
| 62 | (preterminal g0 K P I hRP F h0 hleast hmax T hT hJ).start = 0 := rfl |
| 63 | |
| 64 | end PoincareMT.M51Initial |