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 Mathlib.Analysis.Calculus.BumpFunction.FiniteDimension |
| 2 | |
| 3 | /-! |
| 4 | # A common supported time cutoff near a parameterized point |
| 5 | |
| 6 | The local gauge band in Morgan-Tian Proposition 6.30, pp. 118-119. |
| 7 | Joint continuity supplies a product neighborhood; a scalar smooth bump |
| 8 | then works throughout one parameter neighborhood. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open Set Filter |
| 14 | open scoped ContDiff Topology |
| 15 | |
| 16 | namespace PoincareMT.M14 |
| 17 | |
| 18 | variable {P M : Type*} [TopologicalSpace P] [TopologicalSpace M] |
| 19 | |
| 20 | /-- A smooth cutoff inside a prescribed open time set keeps a jointly |
| 21 | continuous family in an open target for all nearby parameters, |
| 22 | the gauge-band step of Proposition 6.30, pp. 118-119. -/ |
| 23 | theorem exists_family_time_cutoff {f : ℝ × P → M} {c : ℝ} {p : P} |
| 24 | (hf : ContinuousAt f (c, p)) {V : Set M} (hV : IsOpen V) (hfp : f (c, p) ∈ V) |
| 25 | {J : Set ℝ} (hJ : IsOpen J) (hc : c ∈ J) : |
| 26 | ∃ N : Set P, IsOpen N ∧ p ∈ N ∧ ∃ χ : ℝ → ℝ, ContDiff ℝ ∞ χ ∧ |
| 27 | χ c = 1 ∧ tsupport χ ⊆ J ∧ ∀ s ∈ tsupport χ, ∀ q ∈ N, f (s, q) ∈ V := by |
| 28 | obtain ⟨B, N, hB, hcB, hN, hpN, hsub⟩ := |
| 29 | mem_nhds_prod_iff'.mp (hf.preimage_mem_nhds (hV.mem_nhds hfp)) |
| 30 | obtain ⟨χ, hsupport, _, hχ, _, hχc⟩ := |
| 31 | exists_contDiff_tsupport_subset (n := (⊤ : ℕ∞)) ((hB.inter hJ).mem_nhds ⟨hcB, hc⟩) |
| 32 | exact ⟨N, hN, hpN, χ, hχ, hχc, fun _ hs => (hsupport hs).2, |
| 33 | fun s hs q hq => hsub ⟨(hsupport hs).1, hq⟩⟩ |
| 34 | |
| 35 | end PoincareMT.M14 |