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.Manifold.Flow.TimeDependent.Continuation |
| 2 | import PoincareLib.Geometry.Manifold.Flow.TimeDependent.Uniform |
| 3 | |
| 4 | /-! |
| 5 | # Global time-dependent evolution from compact confinement |
| 6 | |
| 7 | Finite-slab confinement and uniform local existence extend jointly smooth |
| 8 | initial-value families across any compact interval in the time domain. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set Filter Bundle |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | namespace Poincare.Manifold |
| 19 | |
| 20 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] [T2Space M] |
| 21 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 22 | {X : ℝ → (x : M) → TangentSpace (𝓡 n) x} |
| 23 | |
| 24 | /-- Compact confinement extends a jointly smooth initial-value family across |
| 25 | a prescribed finite time interval, on a neighborhood of its initial point. -/ |
| 26 | theorem exists_smooth_local_timeDependentFlow_on_interval |
| 27 | {J : Set ℝ} (hJ : IsOpen J) |
| 28 | (hX : ContMDiffOn (𝓘(ℝ, ℝ).prod (𝓡 n)) ((𝓡 n).prod (𝓡 n)) ∞ |
| 29 | (fun tx : ℝ × M => (⟨tx.2, X tx.1 tx.2⟩ : TangentBundle (𝓡 n) M)) |
| 30 | (J ×ˢ univ)) |
| 31 | {a b s : ℝ} (hs : s ∈ Ioo a b) (habJ : Icc a b ⊆ J) (x : M) |
| 32 | (hconf : ∃ K : Set M, IsCompact K ∧ ∀ (I : Set ℝ), |
| 33 | IsOpen I → Convex ℝ I → s ∈ I → ∀ (γ : ℝ → M), γ s = x → |
| 34 | ContMDiffOn 𝓘(ℝ, ℝ) (𝓡 n) ∞ γ I → |
| 35 | (∀ t ∈ I, HasMFDerivAt 𝓘(ℝ, ℝ) (𝓡 n) γ t |
| 36 | ((1 : ℝ →L[ℝ] ℝ).smulRight (X t (γ t)))) → |
| 37 | ∀ t ∈ I ∩ Icc a b, γ t ∈ K) : |
| 38 | ∃ (V : Set M) (Φ : ℝ × M → M), IsOpen V ∧ x ∈ V ∧ |
| 39 | SmoothTimeDependentIntegralFamily X V (Ioo a b) Φ ∧ |
| 40 | ∀ y ∈ V, Φ (s, y) = y := by |
| 41 | let L := s - a |
| 42 | let R := b - s |
| 43 | have hL : 0 < L := sub_pos.mpr hs.1 |
| 44 | have hR : 0 < R := sub_pos.mpr hs.2 |
| 45 | let T := fun r : ℝ => Ioo (s - r * L) (s + r * R) |
| 46 | let S : Set ℝ := {r | 0 < r ∧ T r ⊆ J ∧ ∃ (V : Set M) (Φ : ℝ × M → M), |
| 47 | IsOpen V ∧ x ∈ V ∧ SmoothTimeDependentIntegralFamily X V (T r) Φ ∧ |
| 48 | ∀ y ∈ V, Φ (s, y) = y} |
| 49 | have hsT {r : ℝ} (hr : 0 < r) : s ∈ T r := by |
| 50 | constructor <;> nlinarith [mul_pos hr hL, mul_pos hr hR] |
| 51 | obtain ⟨V₀, δ₀, Φ₀, hV₀, hxV₀, hδ₀, hδ₀J, hΦ₀, hi₀, hd₀⟩ := |
| 52 | exists_smooth_local_timeDependentFlow hJ hX (habJ (Ioo_subset_Icc_self hs)) x |
| 53 | let ε := δ₀ / (L + R + 1) |
| 54 | have hden : 0 < L + R + 1 := by linarith |
| 55 | have hε : 0 < ε := div_pos hδ₀ hden |
| 56 | have heq : ε * (L + R + 1) = δ₀ := div_mul_cancel₀ _ hden.ne' |
| 57 | have hεL : ε * L < δ₀ := by nlinarith [mul_pos hε hR] |
| 58 | have hεR : ε * R < δ₀ := by nlinarith [mul_pos hε hL] |
| 59 | have hεsub : T ε ⊆ Ioo (s - δ₀) (s + δ₀) := by |
| 60 | intro t ht |
| 61 | constructor <;> linarith [ht.1, ht.2] |
| 62 | have hεS : ε ∈ S := ⟨hε, hεsub.trans hδ₀J, V₀, Φ₀, hV₀, hxV₀, |
| 63 | (show SmoothTimeDependentIntegralFamily X V₀ (Ioo (s - δ₀) (s + δ₀)) Φ₀ from |
| 64 | ⟨hΦ₀, hd₀⟩).mono subset_rfl hεsub, hi₀⟩ |
| 65 | have hSne : S.Nonempty := ⟨ε, hεS⟩ |
| 66 | have hex : ∃ r ∈ S, 1 < r := by |
| 67 | by_contra! hstop |
| 68 | have hbounded : BddAbove S := ⟨1, hstop⟩ |
| 69 | let B := sSup S |
| 70 | have hεB : ε ≤ B := le_csSup hbounded hεS |
| 71 | have hB : 0 < B := hε.trans_le hεB |
| 72 | have hB1 : B ≤ 1 := csSup_le hSne hstop |
| 73 | obtain ⟨K, hK, hconfK⟩ := hconf |
| 74 | obtain ⟨δ, hδ, hlocal⟩ := exists_uniform_smooth_local_timeDependentFlows hJ hX |
| 75 | (isCompact_Icc.prod hK) (prod_mono habJ (subset_univ K)) |
| 76 | let η := min (B / 2) (δ / (4 * (L + R + 1))) |
| 77 | have hη : 0 < η := lt_min (half_pos hB) (div_pos hδ (by positivity)) |
| 78 | have hηB : η ≤ B / 2 := min_le_left _ _ |
| 79 | have hηδ : η * (4 * (L + R + 1)) ≤ δ := |
| 80 | (le_div_iff₀ (by positivity)).mp (min_le_right _ _) |
| 81 | have hηL : 2 * η * L < δ := by nlinarith [mul_pos hη hL, mul_pos hη hR] |
| 82 | have hηR : 2 * η * R < δ := by nlinarith [mul_pos hη hL, mul_pos hη hR] |
| 83 | obtain ⟨r, hrS, hnear⟩ := Real.add_neg_lt_sSup hSne (ε := -η) (by linarith) |
| 84 | have hrB : r ≤ B := le_csSup hbounded hrS |
| 85 | obtain ⟨hr, hrJ, V, Φ, hV, hxV, hΦ, hiΦ⟩ := hrS |
| 86 | let u := B - η |
| 87 | let q := B + η |
| 88 | let l := s - u * L |
| 89 | let v := s + u * R |
| 90 | have hu : 0 < u := by dsimp [u]; linarith |
| 91 | have hur : u < r := by simpa only [u, sub_eq_add_neg] using hnear |
| 92 | have hu1 : u ≤ 1 := by dsimp [u]; linarith |
| 93 | have hlT : l ∈ T r := by |
| 94 | dsimp [l, T] |
| 95 | constructor <;> nlinarith [mul_pos hu hL, mul_pos hr hR] |
| 96 | have hvT : v ∈ T r := by |
| 97 | dsimp [v, T] |
| 98 | constructor <;> nlinarith [mul_pos hr hL, mul_pos hu hR] |
| 99 | have hlab : l ∈ Icc a b := by |
| 100 | dsimp [l, L, R] at * |
| 101 | constructor <;> nlinarith |
| 102 | have hvab : v ∈ Icc a b := by |
| 103 | dsimp [v, L, R] at * |
| 104 | constructor <;> nlinarith |
| 105 | have hcurveK : ∀ t ∈ T r ∩ Icc a b, Φ (t, x) ∈ K := |
| 106 | hconfK (T r) isOpen_Ioo (convex_Ioo _ _) (hsT hr) (fun t => Φ (t, x)) |
| 107 | (hiΦ x hxV) (hΦ.smooth_orbit hxV) (hΦ.orbit x hxV) |
| 108 | obtain ⟨Wl, Ψl, hWl, hxWl, hlJ, hΨls, hil, hΨld⟩ := |
| 109 | hlocal (l, Φ (l, x)) ⟨hlab, hcurveK l ⟨hlT, hlab⟩⟩ |
| 110 | obtain ⟨Wr, Ψr, hWr, hxWr, hvJ, hΨrs, hir, hΨrd⟩ := |
| 111 | hlocal (v, Φ (v, x)) ⟨hvab, hcurveK v ⟨hvT, hvab⟩⟩ |
| 112 | have hΨl : SmoothTimeDependentIntegralFamily X Wl (Ioo (l - δ) (l + δ)) Ψl := |
| 113 | ⟨hΨls, hΨld⟩ |
| 114 | have hΨr : SmoothTimeDependentIntegralFamily X Wr (Ioo (v - δ) (v + δ)) Ψr := |
| 115 | ⟨hΨrs, hΨrd⟩ |
| 116 | let Vl := V ∩ (fun y => Φ (l, y)) ⁻¹' Wl |
| 117 | let Vr := V ∩ (fun y => Φ (v, y)) ⁻¹' Wr |
| 118 | let W := Vl ∩ Vr |
| 119 | obtain ⟨hVl, hleft⟩ := hΦ.restart hV hWl isOpen_Ioo isOpen_Ioo hlT hΨl |
| 120 | obtain ⟨hVr, hright⟩ := hΦ.restart hV hWr isOpen_Ioo isOpen_Ioo hvT hΨr |
| 121 | have hW : IsOpen W := hVl.inter hVr |
| 122 | have hxW : x ∈ W := ⟨⟨hxV, hxWl⟩, ⟨hxV, hxWr⟩⟩ |
| 123 | have hWV : W ⊆ V := fun _ hy => hy.1.1 |
| 124 | have hX₁ := hX.of_le (show (1 : ℕ∞ω) ≤ ∞ by simp) |
| 125 | obtain ⟨Θ, hΘ, heΘ, _⟩ := (hΦ.mono hWV subset_rfl).glue hX₁ |
| 126 | isOpen_Ioo (convex_Ioo _ _) hrJ isOpen_Ioo (convex_Ioo _ _) hW |
| 127 | (hleft.mono inter_subset_left subset_rfl) |
| 128 | (show l ∈ T r ∩ Ioo (l - δ) (l + δ) from |
| 129 | ⟨hlT, ⟨by linarith, by linarith⟩⟩) (fun y hy => (hil _ hy.1.2).symm) |
| 130 | have hsubL : Ioo (s - q * L) (s + r * R) ⊆ T r ∪ Ioo (l - δ) (l + δ) := by |
| 131 | intro t ht |
| 132 | by_cases hlo : s - r * L < t |
| 133 | · exact Or.inl ⟨hlo, ht.2⟩ |
| 134 | · right |
| 135 | dsimp [l, u, q] at * |
| 136 | constructor <;> nlinarith [ht.1, ht.2] |
| 137 | have hvL : v ∈ Ioo (s - q * L) (s + r * R) := by |
| 138 | dsimp [v, q] |
| 139 | constructor <;> nlinarith [mul_pos hu hR, mul_pos hB hL, mul_pos hη hL] |
| 140 | have hLJ : Ioo (s - q * L) (s + r * R) ⊆ J := |
| 141 | hsubL.trans (union_subset hrJ hlJ) |
| 142 | obtain ⟨Ξ, hΞ, heΞ, _⟩ := (hΘ.mono subset_rfl hsubL).glue hX₁ |
| 143 | isOpen_Ioo (convex_Ioo _ _) hLJ isOpen_Ioo (convex_Ioo _ _) hW |
| 144 | (hright.mono inter_subset_right subset_rfl) |
| 145 | (show v ∈ Ioo (s - q * L) (s + r * R) ∩ Ioo (v - δ) (v + δ) from |
| 146 | ⟨hvL, ⟨by linarith, by linarith⟩⟩) |
| 147 | (fun y hy => (heΘ ⟨hvT, hy⟩).trans (hir _ hy.2.2).symm) |
| 148 | have hsubR : T q ⊆ Ioo (s - q * L) (s + r * R) ∪ Ioo (v - δ) (v + δ) := by |
| 149 | intro t ht |
| 150 | by_cases hhi : t < s + r * R |
| 151 | · exact Or.inl ⟨ht.1, hhi⟩ |
| 152 | · right |
| 153 | dsimp [v, u, q, T] at * |
| 154 | constructor <;> nlinarith [ht.1, ht.2] |
| 155 | have hq : 0 < q := by dsimp [q]; positivity |
| 156 | have hsL : s ∈ Ioo (s - q * L) (s + r * R) := by |
| 157 | constructor <;> nlinarith [mul_pos hq hL, mul_pos hr hR] |
| 158 | have hqS : q ∈ S := by |
| 159 | refine ⟨hq, hsubR.trans (union_subset hLJ hvJ), W, Ξ, hW, hxW, |
| 160 | hΞ.mono subset_rfl hsubR, ?_⟩ |
| 161 | intro y hy |
| 162 | exact (heΞ ⟨hsL, hy⟩).trans ((heΘ ⟨hsT hr, hy⟩).trans (hiΦ y (hWV hy))) |
| 163 | have hqB := le_csSup hbounded hqS |
| 164 | dsimp [q] at hqB |
| 165 | linarith |
| 166 | obtain ⟨r, ⟨_, _, V, Φ, hV, hxV, hΦ, hiΦ⟩, hr⟩ := hex |
| 167 | refine ⟨V, Φ, hV, hxV, hΦ.mono subset_rfl ?_, hiΦ⟩ |
| 168 | intro t ht |
| 169 | dsimp [T, L, R] |
| 170 | constructor <;> nlinarith [ht.1, ht.2] |
| 171 | |
| 172 | private theorem exists_Ioo_containing_pair {J : Set ℝ} (hJ : IsOpen J) |
| 173 | (hcJ : Convex ℝ J) {s t : ℝ} (hs : s ∈ J) (ht : t ∈ J) : |
| 174 | ∃ a b : ℝ, s ∈ Ioo a b ∧ t ∈ Ioo a b ∧ Icc a b ⊆ J := by |
| 175 | have hlo : min s t ∈ J := by rcases le_total s t with h | h <;> simp [h, hs, ht] |
| 176 | have hhi : max s t ∈ J := by rcases le_total s t with h | h <;> simp [h, hs, ht] |
| 177 | obtain ⟨l, r, hlr, hsub⟩ := mem_nhds_iff_exists_Ioo_subset.mp (hJ.mem_nhds hlo) |
| 178 | obtain ⟨l', r', hlr', hsub'⟩ := mem_nhds_iff_exists_Ioo_subset.mp (hJ.mem_nhds hhi) |
| 179 | let a := (l + min s t) / 2 |
| 180 | let b := (max s t + r') / 2 |
| 181 | have ha : a < min s t := by dsimp [a]; linarith [hlr.1] |
| 182 | have hb : max s t < b := by dsimp [b]; linarith [hlr'.2] |
| 183 | have haJ : a ∈ J := hsub ⟨by dsimp [a]; linarith [hlr.1], ha.trans hlr.2⟩ |
| 184 | have hbJ : b ∈ J := hsub' ⟨hlr'.1.trans hb, by dsimp [b]; linarith [hlr'.2]⟩ |
| 185 | exact ⟨a, b, ⟨ha.trans_le (min_le_left _ _), (le_max_left _ _).trans_lt hb⟩, |
| 186 | ⟨ha.trans_le (min_le_right _ _), (le_max_right _ _).trans_lt hb⟩, |
| 187 | hcJ.ordConnected.out haJ hbJ⟩ |
| 188 | |
| 189 | /-- Confinement on finite slabs produces a jointly smooth evolution from a |
| 190 | fixed initial time throughout its open convex time domain. -/ |
| 191 | theorem exists_smooth_timeDependentFlow_from_anchor_of_compact_confinement |
| 192 | {J : Set ℝ} (hJ : IsOpen J) (hcJ : Convex ℝ J) |
| 193 | (hX : ContMDiffOn (𝓘(ℝ, ℝ).prod (𝓡 n)) ((𝓡 n).prod (𝓡 n)) ∞ |
| 194 | (fun tx : ℝ × M => (⟨tx.2, X tx.1 tx.2⟩ : TangentBundle (𝓡 n) M)) |
| 195 | (J ×ˢ univ)) |
| 196 | {s : ℝ} (hs : s ∈ J) |
| 197 | (hconf : ∀ (x : M) (a b : ℝ), s ∈ Icc a b → Icc a b ⊆ J → |
| 198 | ∃ K : Set M, IsCompact K ∧ ∀ (I : Set ℝ), |
| 199 | IsOpen I → Convex ℝ I → s ∈ I → ∀ (γ : ℝ → M), γ s = x → |
| 200 | ContMDiffOn 𝓘(ℝ, ℝ) (𝓡 n) ∞ γ I → |
| 201 | (∀ t ∈ I, HasMFDerivAt 𝓘(ℝ, ℝ) (𝓡 n) γ t |
| 202 | ((1 : ℝ →L[ℝ] ℝ).smulRight (X t (γ t)))) → |
| 203 | ∀ t ∈ I ∩ Icc a b, γ t ∈ K) : |
| 204 | ∃ Φ : ℝ × M → M, (∀ x, Φ (s, x) = x) ∧ |
| 205 | SmoothTimeDependentIntegralFamily X univ J Φ := by |
| 206 | classical |
| 207 | have hinterval (t : J) := exists_Ioo_containing_pair hJ hcJ hs t.property |
| 208 | choose a b hsa hta hab using hinterval |
| 209 | have hfamily (t : J) (x : M) : |
| 210 | ∃ (V : Set M) (Φ : ℝ × M → M), IsOpen V ∧ x ∈ V ∧ |
| 211 | SmoothTimeDependentIntegralFamily X V (Ioo (a t) (b t)) Φ ∧ |
| 212 | ∀ y ∈ V, Φ (s, y) = y := |
| 213 | exists_smooth_local_timeDependentFlow_on_interval hJ hX (hsa t) (hab t) x |
| 214 | (hconf x (a t) (b t) (Ioo_subset_Icc_self (hsa t)) (hab t)) |
| 215 | choose V Ψ hV hxV hΨ hiΨ using hfamily |
| 216 | let Φ : ℝ × M → M := fun p => if ht : p.1 ∈ J then Ψ ⟨p.1, ht⟩ p.2 p else p.2 |
| 217 | have hX₁ := hX.of_le (show (1 : ℕ∞ω) ≤ ∞ by simp) |
| 218 | have he (t : J) (x : M) : EqOn Φ (Ψ t x) (Ioo (a t) (b t) ×ˢ V t x) := by |
| 219 | rintro ⟨r, y⟩ ⟨hr, hy⟩ |
| 220 | have hrJ : r ∈ J := hab t (Ioo_subset_Icc_self hr) |
| 221 | change (if h : r ∈ J then Ψ ⟨r, h⟩ y (r, y) else y) = Ψ t x (r, y) |
| 222 | rw [dif_pos hrJ] |
| 223 | exact timeDependent_integralCurve_eqOn (isOpen_Ioo.inter isOpen_Ioo) |
| 224 | ((convex_Ioo (a ⟨r, hrJ⟩) (b ⟨r, hrJ⟩)).inter (convex_Ioo (a t) (b t))).isPreconnected |
| 225 | (hX₁.mono (prod_mono (inter_subset_right.trans |
| 226 | (Ioo_subset_Icc_self.trans (hab t))) subset_rfl)) |
| 227 | (fun u hu => (hΨ ⟨r, hrJ⟩ y).orbit y (hxV _ _) u hu.1) |
| 228 | (fun u hu => (hΨ t x).orbit y hy u hu.2) |
| 229 | ⟨hsa _, hsa _⟩ ((hiΨ _ _ y (hxV _ _)).trans (hiΨ t x y hy).symm) |
| 230 | ⟨hta _, hr⟩ |
| 231 | refine ⟨Φ, ?_, ⟨?_, ?_⟩⟩ |
| 232 | · intro x |
| 233 | change (if h : s ∈ J then Ψ ⟨s, h⟩ x (s, x) else x) = x |
| 234 | rw [dif_pos hs] |
| 235 | exact hiΨ _ _ x (hxV _ _) |
| 236 | · rintro ⟨t, x⟩ ⟨ht, _⟩ |
| 237 | have hmem : (t, x) ∈ Ioo (a ⟨t, ht⟩) (b ⟨t, ht⟩) ×ˢ V ⟨t, ht⟩ x := |
| 238 | ⟨hta _, hxV _ _⟩ |
| 239 | have hev : Φ =ᶠ[𝓝 (t, x)] Ψ ⟨t, ht⟩ x := |
| 240 | Filter.Eventually.mono ((isOpen_Ioo.prod (hV _ _)).mem_nhds hmem) |
| 241 | (fun _ hp => he _ _ hp) |
| 242 | exact (((hΨ _ _).smooth.contMDiffAt |
| 243 | ((isOpen_Ioo.prod (hV _ _)).mem_nhds hmem)).congr_of_eventuallyEq hev).contMDiffWithinAt |
| 244 | · intro x _ t ht |
| 245 | have hev : (fun r => Φ (r, x)) =ᶠ[𝓝 t] (fun r => Ψ ⟨t, ht⟩ x (r, x)) := |
| 246 | Filter.Eventually.mono (isOpen_Ioo.mem_nhds (hta ⟨t, ht⟩)) |
| 247 | (fun r hr => he _ _ ⟨hr, hxV _ _⟩) |
| 248 | have heval : Φ (t, x) = Ψ ⟨t, ht⟩ x (t, x) := he _ _ ⟨hta _, hxV _ _⟩ |
| 249 | apply (((hΨ ⟨t, ht⟩ x).orbit x (hxV _ _) t (hta _)).congr_of_eventuallyEq hev).congr_mfderiv |
| 250 | rw [heval] |
| 251 | |
| 252 | /-- Finite-slab confinement constructs the evolution between arbitrary start |
| 253 | and end times. Its composition law supplies inverse slices by reversing the |
| 254 | two times. -/ |
| 255 | theorem exists_smooth_global_timeDependentFlow_of_compact_confinement |
| 256 | {J : Set ℝ} (hJ : IsOpen J) (hcJ : Convex ℝ J) |
| 257 | (hX : ContMDiffOn (𝓘(ℝ, ℝ).prod (𝓡 n)) ((𝓡 n).prod (𝓡 n)) ∞ |
| 258 | (fun tx : ℝ × M => (⟨tx.2, X tx.1 tx.2⟩ : TangentBundle (𝓡 n) M)) |
| 259 | (J ×ˢ univ)) |
| 260 | (hconf : ∀ (s : ℝ), s ∈ J → ∀ (x : M) (a b : ℝ), |
| 261 | s ∈ Icc a b → Icc a b ⊆ J → ∃ K : Set M, IsCompact K ∧ ∀ (I : Set ℝ), |
| 262 | IsOpen I → Convex ℝ I → s ∈ I → ∀ (γ : ℝ → M), γ s = x → |
| 263 | ContMDiffOn 𝓘(ℝ, ℝ) (𝓡 n) ∞ γ I → |
| 264 | (∀ t ∈ I, HasMFDerivAt 𝓘(ℝ, ℝ) (𝓡 n) γ t |
| 265 | ((1 : ℝ →L[ℝ] ℝ).smulRight (X t (γ t)))) → |
| 266 | ∀ t ∈ I ∩ Icc a b, γ t ∈ K) : |
| 267 | ∃ E : ℝ → ℝ → M → M, |
| 268 | (∀ s ∈ J, ∀ x, E s s x = x) ∧ |
| 269 | (∀ s ∈ J, ContMDiffOn (𝓘(ℝ, ℝ).prod (𝓡 n)) (𝓡 n) ∞ |
| 270 | (fun p : ℝ × M => E s p.1 p.2) (J ×ˢ univ)) ∧ |
| 271 | (∀ s ∈ J, ∀ x, ∀ t ∈ J, HasMFDerivAt 𝓘(ℝ, ℝ) (𝓡 n) (fun r => E s r x) t |
| 272 | ((1 : ℝ →L[ℝ] ℝ).smulRight (X t (E s t x)))) ∧ |
| 273 | (∀ s ∈ J, ∀ t ∈ J, ∀ r ∈ J, ∀ x, E t r (E s t x) = E s r x) ∧ |
| 274 | (∀ s ∈ J, ∀ t ∈ J, Function.LeftInverse (E t s) (E s t) ∧ |
| 275 | Function.RightInverse (E t s) (E s t)) := by |
| 276 | classical |
| 277 | have hex (s : J) := exists_smooth_timeDependentFlow_from_anchor_of_compact_confinement |
| 278 | hJ hcJ hX s.property (hconf s s.property) |
| 279 | choose Φ hi hΦ using hex |
| 280 | let E : ℝ → ℝ → M → M := fun s t x => if hs : s ∈ J then Φ ⟨s, hs⟩ (t, x) else x |
| 281 | have hinit : ∀ s ∈ J, ∀ x, E s s x = x := by |
| 282 | intro s hs x |
| 283 | simpa only [E, dif_pos hs] using hi ⟨s, hs⟩ x |
| 284 | have hsmooth : ∀ s ∈ J, ContMDiffOn (𝓘(ℝ, ℝ).prod (𝓡 n)) (𝓡 n) ∞ |
| 285 | (fun p : ℝ × M => E s p.1 p.2) (J ×ˢ univ) := by |
| 286 | intro s hs |
| 287 | simpa only [E, dif_pos hs] using (hΦ ⟨s, hs⟩).smooth |
| 288 | have horbit : ∀ s ∈ J, ∀ x, ∀ t ∈ J, HasMFDerivAt 𝓘(ℝ, ℝ) (𝓡 n) |
| 289 | (fun r => E s r x) t ((1 : ℝ →L[ℝ] ℝ).smulRight (X t (E s t x))) := by |
| 290 | intro s hs x t ht |
| 291 | have hE : E s = fun r y => Φ ⟨s, hs⟩ (r, y) := by |
| 292 | funext r y |
| 293 | exact dif_pos hs |
| 294 | rw [hE] |
| 295 | exact (hΦ ⟨s, hs⟩).orbit x (mem_univ x) t ht |
| 296 | have hcomp : ∀ s ∈ J, ∀ t ∈ J, ∀ r ∈ J, ∀ x, E t r (E s t x) = E s r x := by |
| 297 | intro s hs t ht r hr x |
| 298 | exact timeDependent_integralCurve_eqOn hJ hcJ.isPreconnected |
| 299 | (hX.of_le (show (1 : ℕ∞ω) ≤ ∞ by simp)) |
| 300 | (horbit t ht (E s t x)) (horbit s hs x) ht (hinit t ht _) hr |
| 301 | refine ⟨E, hinit, hsmooth, horbit, hcomp, ?_⟩ |
| 302 | intro s hs t ht |
| 303 | exact ⟨fun x => (hcomp s hs t ht s hs x).trans (hinit s hs x), |
| 304 | fun x => (hcomp t ht s hs t ht x).trans (hinit t ht x)⟩ |
| 305 | |
| 306 | end Poincare.Manifold |