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 | /- |
| 2 | Provenance and modification notice (recorded 2026-09-29). |
| 3 | Source: https://github.com/qinz1yang/differential-geometry |
| 4 | DifferentialGeometry/Analysis/ODE/Flow/HigherRegularity/VariationalSuccessorWitness.lean |
| 5 | Comparison revision: 1b535dd102b94cc42b107cca27059687888f08b3. |
| 6 | Changes: Imports, module paths, and namespaces were adapted to the subject-organized PoincareLib library. |
| 7 | License: Apache-2.0. Source licenses and notices are retained under |
| 8 | PoincareConjecture/provenance/2026-09-29/licenses/. |
| 9 | See PoincareConjecture/MODIFICATIONS.md for the reviewed source mapping. |
| 10 | -/ |
| 11 | |
| 12 | /- |
| 13 | Copyright (c) 2026 The DifferentialGeometry contributors. |
| 14 | Released under Apache 2.0 license. |
| 15 | |
| 16 | Adapted from DifferentialGeometry/Analysis/ODE/Flow/HigherRegularity/VariationalSuccessorWitness.lean |
| 17 | at revision 1b535dd102b94cc42b107cca27059687888f08b3. |
| 18 | Original SHA-256: c6f1205268fd417dee60d73a37ef18abe5f0a954445c7909f099563e26bf3db1 |
| 19 | Changes: library paths and namespaces. |
| 20 | -/ |
| 21 | import PoincareLib.Analysis.ODE.LocalFlow.HigherRegularity.VariationalLevelOneWitness |
| 22 | |
| 23 | |
| 24 | noncomputable section |
| 25 | |
| 26 | open Set Function Filter Metric Asymptotics Real |
| 27 | open scoped Topology NNReal |
| 28 | |
| 29 | namespace Poincare.ODE.LocalFlow |
| 30 | |
| 31 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 32 | |
| 33 | attribute [local instance] variationalAugmentedEndNormedAddCommGroup |
| 34 | |
| 35 | section SuccStepWitness |
| 36 | |
| 37 | variable {f : ℝ → E → E} {t₀ : ℝ} {x₀ : E} {r : ℝ≥0} {tmin tmax : ℝ} {Φ : E × ℝ → E} |
| 38 | |
| 39 | theorem exists_isVariationalFlowProjection_succ_C_step |
| 40 | [FiniteDimensional ℝ E] |
| 41 | (hΦ : IsLocalFlow f t₀ x₀ r tmin tmax Φ) |
| 42 | (ht₀_Ioo : t₀ ∈ Ioo tmin tmax) |
| 43 | (hr_pos : (0 : ℝ) < (r : ℝ)) |
| 44 | (n : ℕ) |
| 45 | (hf_C : ContDiffOn ℝ ((n : ℕ∞) + 2) (uncurry f) (Set.univ : Set (ℝ × E))) |
| 46 | {R_aug : ℝ≥0} {tmin_a tmax_a : ℝ} |
| 47 | {aΦ : (E × (E →L[ℝ] E)) × ℝ → E × (E →L[ℝ] E)} |
| 48 | (haΦ : IsLocalFlow (augmentedVectorField f) t₀ (x₀, ContinuousLinearMap.id ℝ E) R_aug |
| 49 | tmin_a tmax_a aΦ) |
| 50 | (ht₀_a_Ioo : t₀ ∈ Ioo tmin_a tmax_a) |
| 51 | (hR_aug_pos : (0 : ℝ) < (R_aug : ℝ)) |
| 52 | {T_ih : ℝ} {ρ_ih : ℝ≥0} |
| 53 | {Y_ih : (E × (E →L[ℝ] E)) × ℝ → ((E × (E →L[ℝ] E)) →L[ℝ] (E × (E →L[ℝ] E)))} |
| 54 | (_hT_ih_pos : 0 < T_ih) (_hρ_ih_pos : 0 < (ρ_ih : ℝ)) |
| 55 | (hY_ih : IsVariationalFlowProjection haΦ T_ih ρ_ih Y_ih (n : ℕ∞)) : |
| 56 | ∃ (T : ℝ) (ρ : ℝ≥0) (_hT : 0 < T) (_hρ : 0 < (ρ : ℝ)) |
| 57 | (Y : E × ℝ → (E →L[ℝ] E)), |
| 58 | IsVariationalFlowProjection hΦ T ρ Y ((n : ℕ∞) + 1) := by |
| 59 | classical |
| 60 | set p₀ : E × (E →L[ℝ] E) := (x₀, ContinuousLinearMap.id ℝ E) with hp₀_def |
| 61 | have hf_C1 : ContDiffOn ℝ 1 (uncurry f) (Set.univ : Set (ℝ × E)) := by |
| 62 | refine hf_C.of_le ?_ |
| 63 | have h1 : (1 : WithTop ℕ∞) ≤ ((n : ℕ∞) : WithTop ℕ∞) + 2 := by |
| 64 | have h2 : (1 : WithTop ℕ∞) ≤ 2 := by decide |
| 65 | have h3 : (2 : WithTop ℕ∞) ≤ ((n : ℕ∞) : WithTop ℕ∞) + 2 := le_add_self |
| 66 | exact le_trans h2 h3 |
| 67 | exact h1 |
| 68 | have hf_Cn_plus_2_as_succ : ContDiffOn ℝ (((n : ℕ∞) + 1) + 1) (uncurry f) |
| 69 | (Set.univ : Set (ℝ × E)) := by |
| 70 | have h_eq_wt : |
| 71 | ((((n : ℕ∞) : WithTop ℕ∞) + 1) + 1 : WithTop ℕ∞) = |
| 72 | (((n : ℕ∞) : WithTop ℕ∞) + 2 : WithTop ℕ∞) := by |
| 73 | have h2 : ((2 : WithTop ℕ∞) = 1 + 1) := by decide |
| 74 | rw [h2, ← add_assoc] |
| 75 | rw [h_eq_wt] |
| 76 | exact hf_C |
| 77 | have h_augVF_Cn_plus_1 : ContDiffOn ℝ ((n : ℕ∞) + 1) (uncurry (augmentedVectorField f)) |
| 78 | (Set.univ : Set (ℝ × (E × (E →L[ℝ] E)))) := |
| 79 | augVF_uncurry_contDiff (k := ((n : ℕ∞) + 1)) hf_Cn_plus_2_as_succ |
| 80 | have ht₀_minus_tmin_a : 0 < t₀ - tmin_a := by linarith [ht₀_a_Ioo.1] |
| 81 | have htmax_a_minus_t₀ : 0 < tmax_a - t₀ := by linarith [ht₀_a_Ioo.2] |
| 82 | set T_a_out : ℝ := min (t₀ - tmin_a) (tmax_a - t₀) / 2 with hT_a_out_def |
| 83 | have hT_a_out_pos : 0 < T_a_out := by |
| 84 | rw [hT_a_out_def]; refine div_pos (lt_min ht₀_minus_tmin_a htmax_a_minus_t₀) (by norm_num) |
| 85 | have hT_a_out_le_tmin_a_half : T_a_out ≤ (t₀ - tmin_a) / 2 := by |
| 86 | rw [hT_a_out_def] |
| 87 | have : min (t₀ - tmin_a) (tmax_a - t₀) ≤ t₀ - tmin_a := min_le_left _ _ |
| 88 | linarith |
| 89 | have hT_a_out_le_tmax_a_half : T_a_out ≤ (tmax_a - t₀) / 2 := by |
| 90 | rw [hT_a_out_def] |
| 91 | have : min (t₀ - tmin_a) (tmax_a - t₀) ≤ tmax_a - t₀ := min_le_right _ _ |
| 92 | linarith |
| 93 | have hsub_T_a_out_aug : Icc (t₀ - T_a_out) (t₀ + T_a_out) ⊆ Icc tmin_a tmax_a := |
| 94 | Icc_subset_Icc (by linarith) (by linarith) |
| 95 | set R_a_out : ℝ := (R_aug : ℝ) / 2 with hR_a_out_def |
| 96 | have hR_a_out_pos : 0 < R_a_out := by rw [hR_a_out_def]; linarith |
| 97 | have hR_a_out_lt : R_a_out < (R_aug : ℝ) := by rw [hR_a_out_def]; linarith |
| 98 | set R_a_mid : ℝ := R_a_out * 3 / 4 with hR_a_mid_def |
| 99 | have hR_a_mid_pos : 0 < R_a_mid := by rw [hR_a_mid_def]; positivity |
| 100 | have hR_a_mid_lt_out : R_a_mid < R_a_out := by rw [hR_a_mid_def]; linarith |
| 101 | set R_a : ℝ := min R_a_mid (ρ_ih : ℝ) / 2 with hR_a_def |
| 102 | have hR_a_pos : 0 < R_a := by |
| 103 | rw [hR_a_def]; refine div_pos (lt_min hR_a_mid_pos _hρ_ih_pos) (by norm_num) |
| 104 | have hR_a_lt_mid : R_a < R_a_mid := by |
| 105 | rw [hR_a_def] |
| 106 | have : min R_a_mid (ρ_ih : ℝ) ≤ R_a_mid := min_le_left _ _ |
| 107 | linarith |
| 108 | have hR_a_le_ρ_ih : R_a ≤ (ρ_ih : ℝ) := by |
| 109 | rw [hR_a_def] |
| 110 | have : min R_a_mid (ρ_ih : ℝ) ≤ (ρ_ih : ℝ) := min_le_right _ _ |
| 111 | linarith |
| 112 | set R_aN : ℝ≥0 := ⟨R_a, le_of_lt hR_a_pos⟩ |
| 113 | set R_a_midN : ℝ≥0 := ⟨R_a_mid, le_of_lt hR_a_mid_pos⟩ |
| 114 | set R_a_outN : ℝ≥0 := ⟨R_a_out, le_of_lt hR_a_out_pos⟩ |
| 115 | set r'a : ℝ≥0 := ⟨R_aug / 8, by positivity⟩ |
| 116 | have hr'a_pos : (0 : ℝ) < (r'a : ℝ) := by |
| 117 | change 0 < (R_aug : ℝ) / 8; linarith |
| 118 | have hR_aN_eq : (R_aN : ℝ) = R_a := rfl |
| 119 | have hR_a_midN_eq : (R_a_midN : ℝ) = R_a_mid := rfl |
| 120 | have hR_a_outN_eq : (R_a_outN : ℝ) = R_a_out := rfl |
| 121 | have hρρ_aux : (R_a_midN : ℝ) + (r'a : ℝ) ≤ (R_aug : ℝ) := by |
| 122 | rw [hR_a_midN_eq, hR_a_mid_def, hR_a_out_def] |
| 123 | change (R_aug : ℝ) / 2 * 3 / 4 + (R_aug : ℝ) / 8 ≤ (R_aug : ℝ) |
| 124 | linarith |
| 125 | have hR_a_out_le_R_aug : (R_a_outN : ℝ) ≤ (R_aug : ℝ) := by |
| 126 | rw [hR_a_outN_eq, hR_a_out_def]; linarith |
| 127 | set Slab_a : Set ((E × (E →L[ℝ] E)) × ℝ) := |
| 128 | closedBall p₀ R_a_out ×ˢ Icc (t₀ - T_a_out) (t₀ + T_a_out) |
| 129 | have hSlab_a_cpt : IsCompact Slab_a := |
| 130 | (isCompact_closedBall (p₀ : E × (E →L[ℝ] E)) R_a_out).prod isCompact_Icc |
| 131 | have hSlab_a_ne : Slab_a.Nonempty := |
| 132 | ⟨(p₀, t₀), Metric.mem_closedBall_self (le_of_lt hR_a_out_pos), |
| 133 | ⟨by linarith, by linarith⟩⟩ |
| 134 | have hslab_a_sub_full : Slab_a ⊆ closedBall p₀ (R_aug : ℝ) ×ˢ Icc tmin_a tmax_a := by |
| 135 | refine Set.prod_mono ?_ ?_ |
| 136 | · exact closedBall_subset_closedBall (le_of_lt hR_a_out_lt) |
| 137 | · exact hsub_T_a_out_aug |
| 138 | have haΦ_cont : ContinuousOn aΦ Slab_a := haΦ.continuousOn.mono hslab_a_sub_full |
| 139 | have hpartial_a : ContDiffOn ℝ 0 (fun p : ℝ × (E × (E →L[ℝ] E)) => |
| 140 | fderiv ℝ (augmentedVectorField f p.1) p.2) (Set.univ : Set (ℝ × (E × (E →L[ℝ] E)))) := by |
| 141 | have h_augVF_C1 : ContDiffOn ℝ 1 (uncurry (augmentedVectorField f)) |
| 142 | (Set.univ : Set (ℝ × (E × (E →L[ℝ] E)))) := by |
| 143 | refine h_augVF_Cn_plus_1.of_le ?_ |
| 144 | have h1 : (1 : ℕ∞) ≤ (n : ℕ∞) + 1 := le_add_self |
| 145 | exact_mod_cast h1 |
| 146 | exact contDiffOn_partial_fderiv_of_succ (f := augmentedVectorField f) (k := (0 : ℕ∞)) |
| 147 | (by simpa using h_augVF_C1) |
| 148 | have hpartial_a_cont : ContinuousOn (fun p : ℝ × (E × (E →L[ℝ] E)) => |
| 149 | fderiv ℝ (augmentedVectorField f p.1) p.2) (Set.univ : Set (ℝ × (E × (E →L[ℝ] E)))) := |
| 150 | hpartial_a.continuousOn |
| 151 | have h_pair_cont_a : ContinuousOn (fun q : (E × (E →L[ℝ] E)) × ℝ => (q.2, aΦ q)) Slab_a := |
| 152 | ContinuousOn.prodMk continuous_snd.continuousOn haΦ_cont |
| 153 | have h_fderiv_a_cont : ContinuousOn |
| 154 | (fun q : (E × (E →L[ℝ] E)) × ℝ => fderiv ℝ (augmentedVectorField f q.2) (aΦ q)) Slab_a := by |
| 155 | have hmaps : MapsTo (fun q : (E × (E →L[ℝ] E)) × ℝ => (q.2, aΦ q)) |
| 156 | Slab_a (Set.univ : Set (ℝ × (E × (E →L[ℝ] E)))) := fun _ _ => mem_univ _ |
| 157 | exact hpartial_a_cont.comp h_pair_cont_a hmaps |
| 158 | have h_norm_cont_a : ContinuousOn |
| 159 | (fun q : (E × (E →L[ℝ] E)) × ℝ => ‖fderiv ℝ (augmentedVectorField f q.2) (aΦ q)‖) Slab_a := by |
| 160 | have hnorm : Continuous |
| 161 | (fun A : (E × (E →L[ℝ] E)) →L[ℝ] (E × (E →L[ℝ] E)) => ‖A‖) := |
| 162 | continuous_norm |
| 163 | exact hnorm.comp_continuousOn h_fderiv_a_cont |
| 164 | rcases hSlab_a_cpt.exists_isMaxOn hSlab_a_ne h_norm_cont_a with ⟨qmax, _, hqmax⟩ |
| 165 | set M_aug_pre : ℝ := ‖fderiv ℝ (augmentedVectorField f qmax.2) (aΦ qmax)‖ with hM_aug_pre_def |
| 166 | have hM_aug_pre_nn : 0 ≤ M_aug_pre := norm_nonneg _ |
| 167 | have hM_aug_pre_bd : ∀ q ∈ Slab_a, ‖fderiv ℝ (augmentedVectorField f q.2) (aΦ q)‖ ≤ M_aug_pre := |
| 168 | fun q hq => hqmax hq |
| 169 | set M_aug : ℝ := M_aug_pre + 1 with hM_aug_def |
| 170 | have hM_aug_nn : 0 ≤ M_aug := by rw [hM_aug_def]; linarith |
| 171 | have hM_aug_pos : 0 < M_aug := by rw [hM_aug_def]; linarith |
| 172 | set T_a_mid : ℝ := min (T_a_out * 3 / 4) (1 / (2 * M_aug)) with hT_a_mid_def |
| 173 | have hT_a_mid_pos : 0 < T_a_mid := by |
| 174 | refine lt_min ?_ ?_ |
| 175 | · positivity |
| 176 | · have : 0 < 2 * M_aug := by linarith |
| 177 | positivity |
| 178 | have hT_a_mid_lt_out : T_a_mid < T_a_out := by |
| 179 | have h1 : T_a_mid ≤ T_a_out * 3 / 4 := min_le_left _ _ |
| 180 | linarith |
| 181 | have hMTa_mid : M_aug * T_a_mid < 1 := by |
| 182 | have h1 : T_a_mid ≤ 1 / (2 * M_aug) := min_le_right _ _ |
| 183 | have h2 : M_aug * T_a_mid ≤ M_aug * (1 / (2 * M_aug)) := |
| 184 | mul_le_mul_of_nonneg_left h1 hM_aug_nn |
| 185 | have h3 : M_aug * (1 / (2 * M_aug)) = 1 / 2 := by field_simp |
| 186 | linarith |
| 187 | set T_a : ℝ := min T_a_mid T_ih / 2 with hT_a_def |
| 188 | have hT_a_pos : 0 < T_a := by |
| 189 | rw [hT_a_def]; refine div_pos (lt_min hT_a_mid_pos _hT_ih_pos) (by norm_num) |
| 190 | have hT_a_lt_mid : T_a < T_a_mid := by |
| 191 | rw [hT_a_def] |
| 192 | have : min T_a_mid T_ih ≤ T_a_mid := min_le_left _ _ |
| 193 | linarith |
| 194 | have hT_a_le_T_ih : T_a ≤ T_ih := by |
| 195 | rw [hT_a_def] |
| 196 | have h1 : min T_a_mid T_ih ≤ T_ih := min_le_right _ _ |
| 197 | linarith |
| 198 | have hA_bd_a : ∀ p ∈ closedBall p₀ (R_a_outN : ℝ), |
| 199 | ∀ τ ∈ Icc (t₀ - T_a_out) (t₀ + T_a_out), |
| 200 | ‖fderiv ℝ (augmentedVectorField f τ) (aΦ ⟨p, τ⟩)‖ ≤ M_aug := by |
| 201 | intro p hp τ hτ |
| 202 | have hq_in : ((p, τ) : (E × (E →L[ℝ] E)) × ℝ) ∈ Slab_a := by |
| 203 | refine ⟨?_, hτ⟩ |
| 204 | rw [hR_a_outN_eq] at hp; exact hp |
| 205 | have h_pre : ‖fderiv ℝ (augmentedVectorField f τ) (aΦ ⟨p, τ⟩)‖ ≤ M_aug_pre := |
| 206 | hM_aug_pre_bd ((p, τ) : (E × (E →L[ℝ] E)) × ℝ) hq_in |
| 207 | rw [hM_aug_def] |
| 208 | exact h_pre.trans (le_add_of_nonneg_right zero_le_one) |
| 209 | have hR_aN_le_ρ_ih : (R_aN : ℝ) ≤ (ρ_ih : ℝ) := by rw [hR_aN_eq]; exact hR_a_le_ρ_ih |
| 210 | have h_shrink_sub : (ball p₀ (R_aN : ℝ)) ×ˢ Ioo (t₀ - T_a) (t₀ + T_a) |
| 211 | ⊆ (ball p₀ (ρ_ih : ℝ)) ×ˢ Ioo (t₀ - T_ih) (t₀ + T_ih) := by |
| 212 | refine Set.prod_mono ?_ ?_ |
| 213 | · intro y hy |
| 214 | rw [mem_ball] at hy ⊢ |
| 215 | exact lt_of_lt_of_le hy hR_aN_le_ρ_ih |
| 216 | · intro s hs |
| 217 | rcases hs with ⟨h1, h2⟩ |
| 218 | refine ⟨?_, ?_⟩ <;> linarith |
| 219 | have hY_ih_shrunk : IsVariationalFlowProjection haΦ T_a R_aN Y_ih (n : ℕ∞) := by |
| 220 | refine |
| 221 | { contDiffOn := hY_ih.contDiffOn.mono h_shrink_sub, |
| 222 | fderiv_eq := fun q hq => hY_ih.fderiv_eq q (h_shrink_sub hq) } |
| 223 | have hk_pos : (1 : ℕ) ≤ n + 1 := by omega |
| 224 | have hk_minus_one : ((n + 1 - 1 : ℕ) : ℕ∞) = (n : ℕ∞) := by |
| 225 | have : n + 1 - 1 = n := by omega |
| 226 | rw [this] |
| 227 | have hY_ih_at_top : IsVariationalFlowProjection haΦ T_a R_aN Y_ih |
| 228 | ((n + 1 - 1 : ℕ) : ℕ∞) := by rw [hk_minus_one]; exact hY_ih_shrunk |
| 229 | have h_aug_Cn_plus_1 : ContDiffOn ℝ ((n + 1 : ℕ) : ℕ∞) aΦ |
| 230 | ((ball p₀ (R_aN : ℝ)) ×ˢ Ioo (t₀ - T_a) (t₀ + T_a)) := by |
| 231 | refine contDiffOn_flow_of_isVariationalFlowProjection_top |
| 232 | (f := augmentedVectorField f) (t₀ := t₀) (x₀ := p₀) (r := R_aug) (tmin := tmin_a) |
| 233 | (tmax := tmax_a) |
| 234 | (Φ := aΦ) haΦ hT_a_pos hT_a_lt_mid hT_a_mid_lt_out hM_aug_nn hMTa_mid hsub_T_a_out_aug |
| 235 | (ρ_out := R_a_outN) (ρ_mid := R_a_midN) (ρ := R_aN) hr'a_pos ?_ ?_ ?_ ?_ hA_bd_a |
| 236 | (n + 1) hk_pos ?_ hY_ih_at_top |
| 237 | · rw [hR_aN_eq, hR_a_midN_eq]; linarith |
| 238 | · rw [hR_a_midN_eq, hR_a_outN_eq]; linarith |
| 239 | · exact hρρ_aux |
| 240 | · exact hR_a_out_le_R_aug |
| 241 | · have h_eq_succ : (((n + 1 : ℕ) : ℕ∞) : WithTop ℕ∞) = |
| 242 | ((n : ℕ∞) : WithTop ℕ∞) + 1 := by push_cast; ring |
| 243 | rw [h_eq_succ] |
| 244 | exact h_augVF_Cn_plus_1 |
| 245 | have h_aug_Cn_plus_1' : ContDiffOn ℝ ((n : ℕ∞) + 1) aΦ |
| 246 | ((ball p₀ (R_aN : ℝ)) ×ˢ Ioo (t₀ - T_a) (t₀ + T_a)) := by |
| 247 | have h_eq_succ : (((n + 1 : ℕ) : ℕ∞) : WithTop ℕ∞) = |
| 248 | ((n : ℕ∞) : WithTop ℕ∞) + 1 := by push_cast; ring |
| 249 | rw [← h_eq_succ] |
| 250 | exact h_aug_Cn_plus_1 |
| 251 | set U_E : Set (E × ℝ) := ball x₀ (R_aN : ℝ) ×ˢ Ioo (t₀ - T_a) (t₀ + T_a) with hU_E_def |
| 252 | set U_a : Set ((E × (E →L[ℝ] E)) × ℝ) := |
| 253 | ball p₀ (R_aN : ℝ) ×ˢ Ioo (t₀ - T_a) (t₀ + T_a) with hU_a_def |
| 254 | have hmap : MapsTo (fun q : E × ℝ => ((q.1, ContinuousLinearMap.id ℝ E), q.2)) U_E U_a := by |
| 255 | intro q hq |
| 256 | rcases hq with ⟨hq_x, hq_t⟩ |
| 257 | refine ⟨?_, hq_t⟩ |
| 258 | rw [mem_ball] at hq_x ⊢ |
| 259 | have hd : dist ((q.1, ContinuousLinearMap.id ℝ E) : E × (E →L[ℝ] E)) p₀ |
| 260 | = dist q.1 x₀ := by |
| 261 | change max (dist q.1 x₀) (dist (ContinuousLinearMap.id ℝ E) |
| 262 | (ContinuousLinearMap.id ℝ E)) = dist q.1 x₀ |
| 263 | rw [dist_self, max_eq_left dist_nonneg] |
| 264 | rw [hd]; exact hq_x |
| 265 | have h_Y_smooth : ContDiffOn ℝ ((n : ℕ∞) + 1) (fromAugFlow aΦ) U_E := |
| 266 | contDiffOn_fromAugFlow (k := ((n : ℕ∞) + 1)) (Ω := U_a) (U := U_E) |
| 267 | h_aug_Cn_plus_1' hmap |
| 268 | obtain ⟨T_help, ρ_help, hT_help_pos, hρ_help_pos, h_help⟩ := |
| 269 | fderiv_Phi_eq_coprod_fromAugFlow_aux (Φ := Φ) hΦ hf_C1 ht₀_Ioo hr_pos haΦ ht₀_a_Ioo hR_aug_pos |
| 270 | set T_eff : ℝ := min T_a T_help with hT_eff_def |
| 271 | have hT_eff_pos : 0 < T_eff := lt_min hT_a_pos hT_help_pos |
| 272 | have hT_eff_le_T_a : T_eff ≤ T_a := min_le_left _ _ |
| 273 | have hT_eff_le_T_help : T_eff ≤ T_help := min_le_right _ _ |
| 274 | set ρ_eff : ℝ := min (R_aN : ℝ) (ρ_help : ℝ) with hρ_eff_def |
| 275 | have hρ_eff_pos : 0 < ρ_eff := lt_min hR_a_pos hρ_help_pos |
| 276 | set ρ_effN : ℝ≥0 := ⟨ρ_eff, le_of_lt hρ_eff_pos⟩ |
| 277 | have hρ_effN_eq : (ρ_effN : ℝ) = ρ_eff := rfl |
| 278 | have hρ_eff_le_R_a : ρ_eff ≤ (R_aN : ℝ) := min_le_left _ _ |
| 279 | have hρ_eff_le_help : ρ_eff ≤ (ρ_help : ℝ) := min_le_right _ _ |
| 280 | have hρ_effN_le_R_a : (ρ_effN : ℝ) ≤ (R_aN : ℝ) := by rw [hρ_effN_eq]; exact hρ_eff_le_R_a |
| 281 | have hρ_effN_le_help : (ρ_effN : ℝ) ≤ (ρ_help : ℝ) := by rw [hρ_effN_eq]; exact hρ_eff_le_help |
| 282 | have h_eff_sub_smooth : (ball x₀ (ρ_effN : ℝ)) ×ˢ Ioo (t₀ - T_eff) (t₀ + T_eff) ⊆ U_E := by |
| 283 | rw [hU_E_def] |
| 284 | refine Set.prod_mono ?_ ?_ |
| 285 | · intro y hy |
| 286 | rw [mem_ball] at hy ⊢ |
| 287 | exact lt_of_lt_of_le hy hρ_effN_le_R_a |
| 288 | · intro s hs |
| 289 | rcases hs with ⟨h1, h2⟩ |
| 290 | refine ⟨?_, ?_⟩ <;> linarith |
| 291 | have h_eff_sub_help : (ball x₀ (ρ_effN : ℝ)) ×ˢ Ioo (t₀ - T_eff) (t₀ + T_eff) |
| 292 | ⊆ (ball x₀ (ρ_help : ℝ)) ×ˢ Ioo (t₀ - T_help) (t₀ + T_help) := by |
| 293 | refine Set.prod_mono ?_ ?_ |
| 294 | · intro y hy |
| 295 | rw [mem_ball] at hy ⊢ |
| 296 | exact lt_of_lt_of_le hy hρ_effN_le_help |
| 297 | · intro s hs |
| 298 | rcases hs with ⟨h1, h2⟩ |
| 299 | refine ⟨?_, ?_⟩ <;> linarith |
| 300 | refine ⟨T_eff, ρ_effN, hT_eff_pos, hρ_eff_pos, fromAugFlow aΦ, ?_⟩ |
| 301 | refine { contDiffOn := h_Y_smooth.mono h_eff_sub_smooth, fderiv_eq := ?_ } |
| 302 | intro q hq |
| 303 | exact h_help q (h_eff_sub_help hq) |
| 304 | |
| 305 | end SuccStepWitness |
| 306 | |
| 307 | end Poincare.ODE.LocalFlow |
| 308 | |
| 309 | end |