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.Generalized.ReducedGeometry.SmallTime.Stability.SmallTimeDifferentialLocal |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.Domain.CompactSurvival |
| 3 | |
| 4 | /-! |
| 5 | # Uniform small-time noncriticality on compact initial sets |
| 6 | |
| 7 | Compact survival supplies positive prefixes. Local uniform noncriticality |
| 8 | and the tube lemma then give one positive time for all initial vectors |
| 9 | in a compact set. This is the noncriticality part of Morgan-Tian |
| 10 | Corollary 6.79, pp. 144-145, with no minimizing or completeness premise. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M14 |
| 21 | |
| 22 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 23 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 24 | {T : ℝ} {x : G.Point} |
| 25 | |
| 26 | /-- The actual exponential differential is uniformly bijective on a |
| 27 | compact initial set for all sufficiently small positive times in an |
| 28 | allowed past window, Corollary 6.79, pp. 144-145. The conclusion also |
| 29 | includes survival and imposes no minimizing or curvature hypothesis. -/ |
| 30 | theorem compact_initial_smallTime_differential_bijective |
| 31 | (E : M14ExponentialFamily G T x) {B : Set (G.Horizontal x)} (hB : IsCompact B) |
| 32 | {δ : ℝ} (hδ : 0 < δ) (hwindow : Icc (T - δ) T ⊆ I.domain) : |
| 33 | ∃ τ₀ : ℝ, 0 < τ₀ ∧ τ₀ ≤ δ ∧ |
| 34 | ∀ Z ∈ B, ∀ τ ∈ Ioc 0 τ₀, |
| 35 | ∃ hs : (Z, Real.sqrt τ) ∈ E.domain, |
| 36 | Function.Bijective (E.differential Z (Real.sqrt τ) hs) := by |
| 37 | obtain ⟨τS, hτS, _, hsurv⟩ := compact_initial_survival_and_capture E hB |
| 38 | (K := univ) ⟨univ, isOpen_univ, mem_univ _, Subset.rfl⟩ hδ hwindow |
| 39 | let A : Set (G.Horizontal x × ℝ) := {z | z.2 ≤ 0 ∨ |
| 40 | ∃ hs : z ∈ E.domain, Function.Bijective (E.differential z.1 z.2 hs)} |
| 41 | let O := interior A |
| 42 | have hBO : B ×ˢ {(0 : ℝ)} ⊆ O := by |
| 43 | rintro ⟨Z, s⟩ ⟨hZ, hs⟩ |
| 44 | rcases mem_singleton_iff.mp hs with rfl |
| 45 | have hZS := (hsurv Z hZ τS ⟨hτS.le, le_rfl⟩).1 |
| 46 | obtain ⟨V, hV, hZV, d, hd, _, hgood⟩ := |
| 47 | exists_open_smallTime_differential_bijective E (Real.sqrt_pos.mpr hτS) hZS |
| 48 | have hrect : V ×ˢ Iio d ⊆ A := by |
| 49 | intro z hz |
| 50 | by_cases hnon : z.2 ≤ 0 |
| 51 | · exact Or.inl hnon |
| 52 | · exact Or.inr (hgood z.1 hz.1 z.2 ⟨lt_of_not_ge hnon, hz.2.le⟩) |
| 53 | apply mem_interior_iff_mem_nhds.mpr |
| 54 | exact Filter.mem_of_superset ((hV.prod isOpen_Iio).mem_nhds ⟨hZV, hd⟩) hrect |
| 55 | obtain ⟨V, W, _, hW, hBV, hzeroW, hVW⟩ := |
| 56 | generalized_tube_lemma hB isCompact_singleton isOpen_interior hBO |
| 57 | obtain ⟨ε, hε, hεW⟩ := Metric.mem_nhds_iff.mp |
| 58 | (hW.mem_nhds (hzeroW (mem_singleton 0))) |
| 59 | let τ₀ := min δ ((ε / 2) ^ 2) |
| 60 | have hτ₀ : 0 < τ₀ := lt_min hδ (sq_pos_of_pos (half_pos hε)) |
| 61 | refine ⟨τ₀, hτ₀, min_le_left _ _, ?_⟩ |
| 62 | intro Z hZ τ hτ |
| 63 | have hsqrt : Real.sqrt τ ≤ ε / 2 := |
| 64 | Real.sqrt_le_iff.mpr ⟨(half_pos hε).le, hτ.2.trans (min_le_right _ _)⟩ |
| 65 | have hball : Real.sqrt τ ∈ Metric.ball (0 : ℝ) ε := by |
| 66 | simpa only [Metric.mem_ball, Real.dist_eq, sub_zero, |
| 67 | abs_of_nonneg (Real.sqrt_nonneg _)] using hsqrt.trans_lt (half_lt_self hε) |
| 68 | have hO : (Z, Real.sqrt τ) ∈ O := hVW ⟨hBV hZ, hεW hball⟩ |
| 69 | exact (interior_subset hO).resolve_left (not_le_of_gt (Real.sqrt_pos.mpr hτ.1)) |
| 70 | |
| 71 | end PoincareMT.M14 |