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.StandardCap.Existence.Analysis.Limits.CompactImmersion |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Geometry.Basic.GeneralizedCylinderDifferential |
| 3 | |
| 4 | /-! |
| 5 | # A generalized Euclidean blow-up has noncompact limit carrier |
| 6 | |
| 7 | If the whole carrier were compact, it would lie in one actual exhaustion |
| 8 | stage. That stage's spatial map at time zero would immerse the whole |
| 9 | carrier into a source slice diffeomorphic to R3. |
| 10 | Source: Morgan-Tian Theorem 12.28, pp. 323-324; M34 compact-limit exclusion |
| 11 | derivation. No time-interior premise or metric convergence rate is used. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M34 |
| 22 | |
| 23 | variable {S : GeneralizedBlowupSequence.{u}} {J : Set ℝ} |
| 24 | (C : GeneralizedBlowupConvergence S J) |
| 25 | |
| 26 | /-- The actual limit carrier is noncompact whenever all included source |
| 27 | slices are diffeomorphic to R3 (Theorem 12.28). -/ |
| 28 | theorem generalizedBlowupConvergence_not_compact |
| 29 | (hsource : ∀ k t, t ∈ (S.flow k).interval → |
| 30 | Nonempty (Diffeomorph (𝓡 3) (𝓡 3) |
| 31 | ((S.flow k).slice t).carrier (EuclideanSpace ℝ (Fin 3)) ∞)) : |
| 32 | ¬ IsCompact (univ : Set C.limit.sliceCarrier.carrier) := by |
| 33 | intro hcompact |
| 34 | obtain ⟨k, hk⟩ := hcompact.elim_directed_cover C.exhaustion.space |
| 35 | C.exhaustion.space_open |
| 36 | (fun x _ => C.exhaustion.space_covers.symm ▸ mem_univ x) |
| 37 | C.exhaustion.space_increasing.directed_le |
| 38 | have hzero : 0 ∈ Icc (-C.exhaustion.time k) 0 := |
| 39 | ⟨neg_nonpos.mpr (C.exhaustion.time_pos k).le, le_rfl⟩ |
| 40 | let e := C.embedding k |
| 41 | have ht : (S.base (C.subsequence k)).1 + 0 / S.scale (C.subsequence k) ∈ |
| 42 | (S.flow (C.subsequence k)).interval := |
| 43 | ((S.flow (C.subsequence k)).slice_nonempty_iff _).mp |
| 44 | ⟨e.forward 0 hzero C.limit.base⟩ |
| 45 | obtain ⟨psi⟩ := hsource (C.subsequence k) _ ht |
| 46 | let f := psi ∘ e.forward 0 hzero |
| 47 | have he (x : C.limit.sliceCarrier.carrier) : |
| 48 | ContMDiffAt (𝓡 3) (𝓡 3) ∞ (e.forward 0 hzero) x := |
| 49 | (e.forward_smooth 0 hzero x (hk (mem_univ x))).contMDiffAt |
| 50 | ((C.exhaustion.space_open k).mem_nhds (hk (mem_univ x))) |
| 51 | have hf : ContMDiff (𝓡 3) (𝓡 3) ∞ f := |
| 52 | fun x => (psi.contMDiff _).comp x (he x) |
| 53 | have hinj (x : C.limit.sliceCarrier.carrier) : |
| 54 | Function.Injective (mfderiv (𝓡 3) (𝓡 3) f x) := by |
| 55 | change Function.Injective (mfderiv (𝓡 3) (𝓡 3) (psi ∘ e.forward 0 hzero) x) |
| 56 | rw [mfderiv_comp x (psi.mdifferentiable (by simp) _) |
| 57 | ((he x).mdifferentiableAt (by simp))] |
| 58 | exact (psi.mfderivToContinuousLinearEquiv (by simp) _).injective.comp |
| 59 | (e.forward_mfderiv_injective (C.exhaustion.space_open k) hzero (hk (mem_univ x))) |
| 60 | exact not_isCompact_univ_of_euclidean_immersion |
| 61 | (M := C.limit.sliceCarrier.carrier) C.limit.base f hf hinj hcompact |
| 62 | |
| 63 | end PoincareMT.M34 |