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.Spacetime.Rescaling.Atlas.Construction |
| 2 | import Mathlib.Analysis.Real.Sqrt |
| 3 | import Mathlib.Order.Interval.Set.OrderIso |
| 4 | import Mathlib.Tactic.Ring |
| 5 | |
| 6 | /-! Adapted from Mapher06/Poincare-MorganTian, `PoincareMT/Proofs/M13/Time.lean`, |
| 7 | revision `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See `references/ricci-flow/mapher/rescaling-import.json`. -/ |
| 8 | |
| 9 | /-! |
| 10 | # Exact affine time-domain identities |
| 11 | |
| 12 | These identities provide the temporal parts of M13's compatible-domain and |
| 13 | ball-neighborhood calculus. They retain the actual interval image, including |
| 14 | the distinct closed and half-open conventions in Morgan-Tian Definitions |
| 15 | 3.41 and 9.1, pp. 61-62 and 180. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open scoped Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.ParabolicRescaling |
| 25 | |
| 26 | /-- Relative openness of supplied time restrictions is an exact equivalence. -/ |
| 27 | theorem relative_time_open_iff (Q : ℝ) (hQ : 0 < Q) (a : ℝ) |
| 28 | (K L : SpacetimeInterval) : |
| 29 | IsOpen {s : (parabolicInterval Q hQ a K).domain | |
| 30 | s.val ∈ (parabolicInterval Q hQ a L).domain} ↔ |
| 31 | IsOpen {t : K.domain | t.val ∈ L.domain} := by |
| 32 | rw [← (timeHomeomorph Q hQ a K).isOpen_preimage] |
| 33 | change IsOpen {t : K.domain | |
| 34 | parabolicTime Q a t.val ∈ (parabolicInterval Q hQ a L).domain} ↔ _ |
| 35 | simp only [parabolicTime_mem_parabolicInterval_iff] |
| 36 | |
| 37 | /-- The same index set covers precisely the corresponding interval points. -/ |
| 38 | theorem time_cover_iff (Q : ℝ) (hQ : 0 < Q) (a : ℝ) |
| 39 | (K : SpacetimeInterval) (B : Type u) (J : B → SpacetimeInterval) : |
| 40 | (∀ s : (parabolicInterval Q hQ a K).domain, |
| 41 | ∃ b : B, s.val ∈ (parabolicInterval Q hQ a (J b)).domain) ↔ |
| 42 | ∀ t : K.domain, ∃ b : B, t.val ∈ (J b).domain := by |
| 43 | constructor |
| 44 | · intro h t |
| 45 | obtain ⟨b, hb⟩ := h (timeHomeomorph Q hQ a K t) |
| 46 | exact ⟨b, (parabolicTime_mem_parabolicInterval_iff Q hQ a (J b) t.val).1 hb⟩ |
| 47 | · intro h s |
| 48 | obtain ⟨b, hb⟩ := h ((timeHomeomorph Q hQ a K).symm s) |
| 49 | exact ⟨b, (mem_parabolicInterval_iff Q hQ a (J b) s.val).2 hb⟩ |
| 50 | |
| 51 | /-- Equality to a closed time interval is reflected as well as preserved. -/ |
| 52 | theorem closed_time_iff (Q : ℝ) (hQ : 0 < Q) (a : ℝ) |
| 53 | (K : SpacetimeInterval) (b c : ℝ) : |
| 54 | (parabolicInterval Q hQ a K).domain = |
| 55 | Set.Icc (parabolicTime Q a b) (parabolicTime Q a c) ↔ |
| 56 | K.domain = Set.Icc b c := by |
| 57 | change (parabolicTimeOrderIso Q hQ a) '' K.domain = |
| 58 | Set.Icc ((parabolicTimeOrderIso Q hQ a) b) ((parabolicTimeOrderIso Q hQ a) c) ↔ _ |
| 59 | rw [← (parabolicTimeOrderIso Q hQ a).image_Icc b c] |
| 60 | exact (Set.image_injective.mpr (parabolicTimeOrderIso Q hQ a).injective).eq_iff |
| 61 | |
| 62 | /-- The squared scaled radius is exactly the scaled elapsed time. -/ |
| 63 | theorem backward_parabolic_time_iff (Q : ℝ) (hQ : 0 < Q) (a : ℝ) |
| 64 | (K : SpacetimeInterval) (t r : ℝ) : |
| 65 | (parabolicInterval Q hQ a K).domain = |
| 66 | Set.Ioc (parabolicTime Q a t - (Real.sqrt Q * r) ^ 2) (parabolicTime Q a t) ↔ |
| 67 | K.domain = Set.Ioc (t - r ^ 2) t := by |
| 68 | have hleft : parabolicTime Q a (t - r ^ 2) = |
| 69 | parabolicTime Q a t - (Real.sqrt Q * r) ^ 2 := by |
| 70 | rw [mul_pow, Real.sq_sqrt hQ.le] |
| 71 | simp only [parabolicTime] |
| 72 | ring |
| 73 | rw [← hleft] |
| 74 | change (parabolicTimeOrderIso Q hQ a) '' K.domain = |
| 75 | Set.Ioc ((parabolicTimeOrderIso Q hQ a) (t - r ^ 2)) |
| 76 | ((parabolicTimeOrderIso Q hQ a) t) ↔ _ |
| 77 | rw [← (parabolicTimeOrderIso Q hQ a).image_Ioc (t - r ^ 2) t] |
| 78 | exact (Set.image_injective.mpr (parabolicTimeOrderIso Q hQ a).injective).eq_iff |
| 79 | |
| 80 | end PoincareMT.ParabolicRescaling |