Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

| 1 | import NavierStokes.ActivationCone |
| 2 | import NavierStokes.FlatCutoff |
| 3 | import NavierStokes.UniformCone |
| 4 | import NavierStokes.EdgeWeightJets |
| 5 | import NavierStokes.TerminalEdgeFactor |
| 6 | import Mathlib.Analysis.Calculus.IteratedDeriv.Lemmas |
| 7 | import Mathlib.Topology.Separation.Hausdorff |
| 8 | |
| 9 | /-! |
| 10 | # One flat weight on the active annulus |
| 11 | |
| 12 | The logarithmic edge distances carry their actual exponential coefficients. |
| 13 | The global estimates are obtained from smooth edge factors and compactness. |
| 14 | -/ |
| 15 | |
| 16 | noncomputable section |
| 17 | |
| 18 | namespace NavierStokes.ActiveAnnulusWeight |
| 19 | |
| 20 | open Set Filter Metric |
| 21 | open scoped Topology ContDiff |
| 22 | |
| 23 | noncomputable def weight (c a b y : ℝ) : ℝ := FlatCutoff.edge c (y-a) * FlatCutoff.edge 4 (b-y) |
| 24 | |
| 25 | noncomputable def edgeDistance (a b y : ℝ) : ℝ := min 1 (min (y-a) (b-y)) |
| 26 | |
| 27 | noncomputable def radialWeight (c a b X : ℝ) : ℝ := if 0 < X then weight c a b (Real.log X) else 0 |
| 28 | |
| 29 | theorem edge_le_one {c : ℝ} (hc : 0 ≤ c) (x : ℝ) : FlatCutoff.edge c x ≤ 1 := by |
| 30 | by_cases hx : x ≤ 0 |
| 31 | · simp [FlatCutoff.edge_of_nonpos c hx] |
| 32 | · rw [FlatCutoff.edge_of_pos c (lt_of_not_ge hx)] |
| 33 | apply Real.exp_le_one_iff.mpr |
| 34 | exact div_nonpos_of_nonpos_of_nonneg (neg_nonpos.mpr hc) (sq_nonneg x) |
| 35 | |
| 36 | theorem edge_mono_pos {c x y : ℝ} (hc : 0 ≤ c) (hx : 0 < x) (hxy : x ≤ y) : |
| 37 | FlatCutoff.edge c x ≤ FlatCutoff.edge c y := by |
| 38 | rw [FlatCutoff.edge_of_pos c hx,FlatCutoff.edge_of_pos c (hx.trans_le hxy)] |
| 39 | apply Real.exp_le_exp.mpr |
| 40 | have hs : x^2 ≤ y^2 := by nlinarith |
| 41 | have hd := div_le_div_of_nonneg_left hc (sq_pos_of_pos hx) hs |
| 42 | simpa only [neg_div] using neg_le_neg hd |
| 43 | |
| 44 | theorem weight_nonneg (c a b y : ℝ) : 0 ≤ weight c a b y := |
| 45 | mul_nonneg (FlatCutoff.edge_nonneg _ _) (FlatCutoff.edge_nonneg _ _) |
| 46 | |
| 47 | theorem weight_pos {c a b y : ℝ} (hy : y ∈ Ioo a b) : 0 < weight c a b y := |
| 48 | mul_pos (FlatCutoff.edge_pos _ (sub_pos.mpr hy.1)) (FlatCutoff.edge_pos _ (sub_pos.mpr hy.2)) |
| 49 | |
| 50 | theorem weight_zero_left (c b : ℝ) {a y : ℝ} (hy : y ≤ a) : weight c a b y = 0 := by |
| 51 | simp only [weight,FlatCutoff.edge_of_nonpos c (sub_nonpos.mpr hy),zero_mul] |
| 52 | |
| 53 | theorem weight_zero_right (c a : ℝ) {b y : ℝ} (hy : b ≤ y) : weight c a b y = 0 := by |
| 54 | simp only [weight,FlatCutoff.edge_of_nonpos 4 (sub_nonpos.mpr hy),mul_zero] |
| 55 | |
| 56 | theorem weight_le_left (c a b y : ℝ) : weight c a b y ≤ FlatCutoff.edge c (y-a) := |
| 57 | mul_le_of_le_one_right (FlatCutoff.edge_nonneg _ _) (edge_le_one (by norm_num) _) |
| 58 | |
| 59 | theorem weight_le_right {c : ℝ} (hc : 0 ≤ c) (a b y : ℝ) : |
| 60 | weight c a b y ≤ FlatCutoff.edge 4 (b-y) := |
| 61 | mul_le_of_le_one_left (FlatCutoff.edge_nonneg _ _) (edge_le_one hc _) |
| 62 | |
| 63 | theorem weight_le_one {c : ℝ} (hc : 0 ≤ c) (a b y : ℝ) : weight c a b y ≤ 1 := |
| 64 | (weight_le_left c a b y).trans (edge_le_one hc _) |
| 65 | |
| 66 | theorem weight_smooth {c : ℝ} (hc : 0 < c) (a b : ℝ) : ContDiff ℝ ∞ (weight c a b) := |
| 67 | ((FlatCutoff.edge_contDiff hc).comp (contDiff_id.sub contDiff_const)).mul |
| 68 | ((FlatCutoff.edge_contDiff (by norm_num : (0 : ℝ) < 4)).comp (contDiff_const.sub contDiff_id)) |
| 69 | |
| 70 | theorem edgeDistance_pos {a b y : ℝ} (hy : y ∈ Ioo a b) : 0 < edgeDistance a b y := |
| 71 | lt_min zero_lt_one (lt_min (sub_pos.mpr hy.1) (sub_pos.mpr hy.2)) |
| 72 | |
| 73 | theorem edgeDistance_le_one (a b y : ℝ) : edgeDistance a b y ≤ 1 := min_le_left _ _ |
| 74 | theorem edgeDistance_le_left (a b y : ℝ) : edgeDistance a b y ≤ y-a := |
| 75 | (min_le_right _ _).trans (min_le_left _ _) |
| 76 | theorem edgeDistance_le_right (a b y : ℝ) : edgeDistance a b y ≤ b-y := |
| 77 | (min_le_right _ _).trans (min_le_right _ _) |
| 78 | |
| 79 | theorem radialWeight_zero_left (c b : ℝ) {a X : ℝ} (hX : X ≤ Real.exp a) : radialWeight c a b X = 0 := by |
| 80 | by_cases hx : 0 < X |
| 81 | · rw [radialWeight,ite_eq_left hx] |
| 82 | exact weight_zero_left c b ((Real.log_le_iff_le_exp hx).2 hX) |
| 83 | · exact ite_eq_right hx |
| 84 | |
| 85 | theorem radialWeight_zero_right (c a : ℝ) {b X : ℝ} (hX : Real.exp b ≤ X) : radialWeight c a b X = 0 := by |
| 86 | have hx : 0 < X := (Real.exp_pos b).trans_le hX |
| 87 | rw [radialWeight,ite_eq_left hx] |
| 88 | exact weight_zero_right c a ((Real.le_log_iff_exp_le hx).2 hX) |
| 89 | |
| 90 | theorem radialWeight_pos {c a b X : ℝ} (hX : X ∈ Ioo (Real.exp a) (Real.exp b)) : |
| 91 | 0 < radialWeight c a b X := by |
| 92 | have hx : 0 < X := (Real.exp_pos a).trans hX.1 |
| 93 | rw [radialWeight,ite_eq_left hx] |
| 94 | exact weight_pos ⟨(Real.lt_log_iff_exp_lt hx).2 hX.1,(Real.log_lt_iff_lt_exp hx).2 hX.2⟩ |
| 95 | |
| 96 | theorem radialWeight_smooth {c : ℝ} (hc : 0 < c) (a b : ℝ) : ContDiff ℝ ∞ (radialWeight c a b) := by |
| 97 | apply contDiff_iff_contDiffAt.mpr |
| 98 | intro X |
| 99 | by_cases hx : 0 < X |
| 100 | · have hs := (weight_smooth hc a b).contDiffAt.comp X (Real.contDiffAt_log.mpr hx.ne') |
| 101 | have he : radialWeight c a b =ᶠ[𝓝 X] (fun x => weight c a b (Real.log x)) := by |
| 102 | filter_upwards [Ioi_mem_nhds hx] with x hxp |
| 103 | exact ite_eq_left hxp |
| 104 | exact hs.congr_of_eventuallyEq he |
| 105 | · have hlow : X < Real.exp a := (le_of_not_gt hx).trans_lt (Real.exp_pos a) |
| 106 | have he : radialWeight c a b =ᶠ[𝓝 X] (fun _ => 0) := by |
| 107 | filter_upwards [Iio_mem_nhds hlow] with x hxp |
| 108 | exact radialWeight_zero_left c b hxp.le |
| 109 | exact contDiffAt_const.congr_of_eventuallyEq he |
| 110 | |
| 111 | theorem weight_lower_middle {c a b d y : ℝ} (hc : 0 ≤ c) (hd : 0 < d) |
| 112 | (hy : y ∈ Icc (a+d) (b-d)) : |
| 113 | FlatCutoff.edge c d * FlatCutoff.edge 4 d ≤ weight c a b y := by |
| 114 | apply mul_le_mul |
| 115 | · exact edge_mono_pos hc hd (by linarith [hy.1]) |
| 116 | · exact edge_mono_pos (by norm_num) hd (by linarith [hy.2]) |
| 117 | · exact FlatCutoff.edge_nonneg _ _ |
| 118 | · exact FlatCutoff.edge_nonneg _ _ |
| 119 | |
| 120 | theorem weight_compare_left {c a b d y : ℝ} (hd : 0 < b-a-d) (hy : y ≤ a+d) : |
| 121 | FlatCutoff.edge c (y-a) ≤ weight c a b y / FlatCutoff.edge 4 (b-a-d) := by |
| 122 | apply (le_div_iff₀ (FlatCutoff.edge_pos 4 hd)).2 |
| 123 | change FlatCutoff.edge c (y-a) * FlatCutoff.edge 4 (b-a-d) ≤ |
| 124 | FlatCutoff.edge c (y-a) * FlatCutoff.edge 4 (b-y) |
| 125 | exact mul_le_mul_of_nonneg_left |
| 126 | (edge_mono_pos (c := 4) (by norm_num) hd (by linarith)) (FlatCutoff.edge_nonneg _ _) |
| 127 | |
| 128 | theorem weight_compare_right {c a b d y : ℝ} (hc : 0 ≤ c) (hd : 0 < b-a-d) (hy : b-d ≤ y) : |
| 129 | FlatCutoff.edge 4 (b-y) ≤ weight c a b y / FlatCutoff.edge c (b-a-d) := by |
| 130 | apply (le_div_iff₀ (FlatCutoff.edge_pos c hd)).2 |
| 131 | rw [mul_comm] |
| 132 | exact mul_le_mul_of_nonneg_right |
| 133 | (edge_mono_pos hc hd (by linarith)) (FlatCutoff.edge_nonneg _ _) |
| 134 | |
| 135 | theorem distance_power_le_left {a b y : ℝ} (hy : y ∈ Ioo a b) {n N : ℕ} (hn : n ≤ N) : |
| 136 | edgeDistance a b y ^ N ≤ (y-a)^n := by |
| 137 | calc |
| 138 | _ ≤ edgeDistance a b y ^ n := |
| 139 | pow_le_pow_of_le_one (edgeDistance_pos hy).le (edgeDistance_le_one _ _ _) hn |
| 140 | _ ≤ _ := pow_le_pow_left₀ (edgeDistance_pos hy).le (edgeDistance_le_left _ _ _) n |
| 141 | |
| 142 | theorem distance_power_le_right {a b y : ℝ} (hy : y ∈ Ioo a b) {n N : ℕ} (hn : n ≤ N) : |
| 143 | edgeDistance a b y ^ N ≤ (b-y)^n := by |
| 144 | calc |
| 145 | _ ≤ edgeDistance a b y ^ n := |
| 146 | pow_le_pow_of_le_one (edgeDistance_pos hy).le (edgeDistance_le_one _ _ _) hn |
| 147 | _ ≤ _ := pow_le_pow_left₀ (edgeDistance_pos hy).le (edgeDistance_le_right _ _ _) n |
| 148 | |
| 149 | theorem left_bound_to_weight {c a b d y C : ℝ} (hC : 0 ≤ C) |
| 150 | (hd : 0 < b-a-d) (hy : y ∈ Ioo a b) (hyl : y ≤ a+d) |
| 151 | {n N : ℕ} (hn : n ≤ N) : |
| 152 | C * FlatCutoff.edge c (y-a) / (y-a)^n ≤ |
| 153 | (C / FlatCutoff.edge 4 (b-a-d)) * weight c a b y / edgeDistance a b y ^ N := by |
| 154 | calc |
| 155 | _ ≤ C * FlatCutoff.edge c (y-a) / edgeDistance a b y ^ N := |
| 156 | div_le_div_of_nonneg_left (mul_nonneg hC (FlatCutoff.edge_nonneg _ _)) |
| 157 | (pow_pos (edgeDistance_pos hy) _) (distance_power_le_left hy hn) |
| 158 | _ ≤ _ := div_le_div_of_nonneg_right (by |
| 159 | calc |
| 160 | C * FlatCutoff.edge c (y-a) ≤ C * (weight c a b y / FlatCutoff.edge 4 (b-a-d)) := |
| 161 | mul_le_mul_of_nonneg_left (weight_compare_left hd hyl) hC |
| 162 | _ = _ := by ring) (pow_nonneg (edgeDistance_pos hy).le _) |
| 163 | |
| 164 | theorem right_bound_to_weight {c a b d y C : ℝ} (hc : 0 ≤ c) (hC : 0 ≤ C) |
| 165 | (hd : 0 < b-a-d) (hy : y ∈ Ioo a b) (hyr : b-d ≤ y) |
| 166 | {n N : ℕ} (hn : n ≤ N) : |
| 167 | C * FlatCutoff.edge 4 (b-y) / (b-y)^n ≤ |
| 168 | (C / FlatCutoff.edge c (b-a-d)) * weight c a b y / edgeDistance a b y ^ N := by |
| 169 | calc |
| 170 | _ ≤ C * FlatCutoff.edge 4 (b-y) / edgeDistance a b y ^ N := |
| 171 | div_le_div_of_nonneg_left (mul_nonneg hC (FlatCutoff.edge_nonneg _ _)) |
| 172 | (pow_pos (edgeDistance_pos hy) _) (distance_power_le_right hy hn) |
| 173 | _ ≤ _ := div_le_div_of_nonneg_right (by |
| 174 | calc |
| 175 | C * FlatCutoff.edge 4 (b-y) ≤ C * (weight c a b y / FlatCutoff.edge c (b-a-d)) := |
| 176 | mul_le_mul_of_nonneg_left (weight_compare_right hc hd hyr) hC |
| 177 | _ = _ := by ring) (pow_nonneg (edgeDistance_pos hy).le _) |
| 178 | |
| 179 | theorem interior_bound_to_weight {c a b d y C : ℝ} (hc : 0 ≤ c) (hC : 0 ≤ C) |
| 180 | (hd : 0 < d) (hy : y ∈ Ioo a b) (hym : y ∈ Icc (a+d) (b-d)) (N : ℕ) : |
| 181 | C ≤ (C / (FlatCutoff.edge c d * FlatCutoff.edge 4 d)) * |
| 182 | weight c a b y / edgeDistance a b y ^ N := by |
| 183 | have he : 0 < FlatCutoff.edge c d * FlatCutoff.edge 4 d := |
| 184 | mul_pos (FlatCutoff.edge_pos _ hd) (FlatCutoff.edge_pos _ hd) |
| 185 | have hfirst : C ≤ C / (FlatCutoff.edge c d * FlatCutoff.edge 4 d) * weight c a b y := by |
| 186 | calc |
| 187 | C = (C / (FlatCutoff.edge c d * FlatCutoff.edge 4 d)) * |
| 188 | (FlatCutoff.edge c d * FlatCutoff.edge 4 d) := by |
| 189 | symm |
| 190 | exact div_mul_cancel₀ C he.ne' |
| 191 | _ ≤ _ := mul_le_mul_of_nonneg_left (weight_lower_middle hc hd hym) (div_nonneg hC he.le) |
| 192 | exact hfirst.trans ((le_div_iff₀ (pow_pos (edgeDistance_pos hy) N)).2 |
| 193 | (mul_le_of_le_one_right |
| 194 | (mul_nonneg (div_nonneg hC he.le) (weight_nonneg _ _ _ _)) |
| 195 | (pow_le_one₀ (edgeDistance_pos hy).le (edgeDistance_le_one _ _ _)))) |
| 196 | |
| 197 | section CompactFamilies |
| 198 | |
| 199 | variable {E V : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 200 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 201 | |
| 202 | /-- An actual local edge identity and a smooth coefficient. No weighted |
| 203 | derivative bound is included in these data. -/ |
| 204 | structure EdgeFactor (K : Set E) (c : ℝ) (T : E × ℝ → V) where |
| 205 | coefficient : E × ℝ → V |
| 206 | order : ℕ |
| 207 | width : ℝ |
| 208 | width_pos : 0 < width |
| 209 | domain : Set (E × ℝ) |
| 210 | domain_open : IsOpen domain |
| 211 | boundary_mem : K ×ˢ ({0} : Set ℝ) ⊆ domain |
| 212 | smooth : ContDiffOn ℝ ∞ coefficient domain |
| 213 | boundary_ne_zero : ∀ p ∈ K, coefficient (p,0) ≠ 0 |
| 214 | identity : ∀ p ∈ K, ∀ x : ℝ, 0 < x → x < width → |
| 215 | T (p,x) = (FlatCutoff.edge c x / x ^ order) • coefficient (p,x) |
| 216 | |
| 217 | /-- Exact local equality transports an edge model to a joined stress. -/ |
| 218 | noncomputable def EdgeFactor.transfer {K : Set E} {c : ℝ} {T S : E × ℝ → V} |
| 219 | (F : EdgeFactor K c T) {w : ℝ} (hw : 0 < w) (hww : w ≤ F.width) |
| 220 | (he : ∀ p ∈ K, ∀ x : ℝ, 0 < x → x < w → S (p,x) = T (p,x)) : |
| 221 | EdgeFactor K c S where |
| 222 | coefficient := F.coefficient |
| 223 | order := F.order |
| 224 | width := w |
| 225 | width_pos := hw |
| 226 | domain := F.domain |
| 227 | domain_open := F.domain_open |
| 228 | boundary_mem := F.boundary_mem |
| 229 | smooth := F.smooth |
| 230 | boundary_ne_zero := F.boundary_ne_zero |
| 231 | identity := fun p hp x hx hxw => (he p hp x hx hxw).trans |
| 232 | (F.identity p hp x hx (hxw.trans_le hww)) |
| 233 | |
| 234 | omit [NormedSpace ℝ E] [NormedSpace ℝ V] in |
| 235 | theorem compact_nonzero_collar {K : Set E} (hK : IsCompact K) {B : E × ℝ → V} |
| 236 | {O : Set (E × ℝ)} (hO : IsOpen O) (hB : ContinuousOn B O) |
| 237 | (hK0 : K ×ˢ ({0} : Set ℝ) ⊆ O) (hne : ∀ p ∈ K, B (p,0) ≠ 0) : |
| 238 | ∃ d c : ℝ, 0 < d ∧ 0 < c ∧ K ×ˢ Icc (0 : ℝ) d ⊆ O ∧ |
| 239 | ∀ p ∈ K, ∀ x ∈ Icc (0 : ℝ) d, c ≤ ‖B (p,x)‖ := by |
| 240 | have hnorm : ContinuousOn (fun p => ‖B (p,0)‖) K := |
| 241 | hB.norm.comp (continuous_id.prodMk continuous_const).continuousOn (fun p hp => hK0 ⟨hp,rfl⟩) |
| 242 | obtain ⟨m,hm,hmb⟩ := UniformCone.positive_uniform_margin hK hnorm |
| 243 | (fun p hp => norm_pos_iff.mpr (hne p hp)) |
| 244 | let W : Set (E × ℝ) := {q | q ∈ O ∧ m/2 < ‖B q‖} |
| 245 | have hW : IsOpen W := by |
| 246 | apply isOpen_iff_mem_nhds.mpr |
| 247 | intro q hq |
| 248 | filter_upwards [hO.mem_nhds hq.1, |
| 249 | (hB.continuousAt (hO.mem_nhds hq.1)).norm.eventually (Ioi_mem_nhds hq.2)] with r hr hrr |
| 250 | exact ⟨hr,hrr⟩ |
| 251 | have hKW : K ×ˢ ({0} : Set ℝ) ⊆ W := by |
| 252 | rintro ⟨p,x⟩ ⟨hp,hx⟩ |
| 253 | have hx0 : x = 0 := hx |
| 254 | subst x |
| 255 | exact ⟨hK0 ⟨hp,rfl⟩,lt_of_lt_of_le (by linarith) (hmb p hp)⟩ |
| 256 | obtain ⟨d,hd,hdW⟩ := (hK.prod isCompact_singleton).exists_cthickening_subset_open hW hKW |
| 257 | have hin (p : E) (hp : p ∈ K) (x : ℝ) (hx : x ∈ Icc (0 : ℝ) (d/2)) : (p,x) ∈ W := by |
| 258 | apply hdW |
| 259 | apply closedBall_subset_cthickening (show (p,(0 : ℝ)) ∈ K ×ˢ ({0} : Set ℝ) from ⟨hp,rfl⟩) d |
| 260 | change dist (p,x) (p,(0 : ℝ)) ≤ d |
| 261 | simp only [Prod.dist_eq,dist_self,Real.dist_eq,sub_zero,abs_of_nonneg hx.1,max_eq_right hx.1] |
| 262 | linarith [hx.2] |
| 263 | exact ⟨d/2,m/2,by positivity,by positivity, |
| 264 | fun q hq => (hin q.1 hq.1 q.2 hq.2).1, |
| 265 | fun p hp x hx => (hin p hp x hx).2.le⟩ |
| 266 | |
| 267 | theorem EdgeFactor.collar {K : Set E} (hK : IsCompact K) {c : ℝ} {T : E × ℝ → V} |
| 268 | (F : EdgeFactor K c T) : |
| 269 | ∃ d m : ℝ, 0 < d ∧ d < F.width ∧ d ≤ 1 ∧ 0 < m ∧ |
| 270 | K ×ˢ Icc (0 : ℝ) d ⊆ F.domain ∧ |
| 271 | ∀ p ∈ K, ∀ x : ℝ, 0 < x → x ≤ d → m * FlatCutoff.edge c x ≤ ‖T (p,x)‖ := by |
| 272 | obtain ⟨d0,m,hd0,hm,hdom,hbound⟩ := compact_nonzero_collar hK F.domain_open F.smooth.continuousOn |
| 273 | F.boundary_mem F.boundary_ne_zero |
| 274 | let d := min d0 (min (F.width/2) 1) |
| 275 | have hd : 0 < d := lt_min hd0 (lt_min (half_pos F.width_pos) zero_lt_one) |
| 276 | have hd0' : d ≤ d0 := min_le_left _ _ |
| 277 | have hdw : d < F.width := lt_of_le_of_lt ((min_le_right _ _).trans (min_le_left _ _)) |
| 278 | (half_lt_self F.width_pos) |
| 279 | have hd1 : d ≤ 1 := (min_le_right _ _).trans (min_le_right _ _) |
| 280 | refine ⟨d,m,hd,hdw,hd1,hm,?_,?_⟩ |
| 281 | · exact Set.prod_mono Subset.rfl (Icc_subset_Icc_right hd0') |>.trans hdom |
| 282 | · intro p hp x hx hxd |
| 283 | have hx1 : x ≤ 1 := hxd.trans hd1 |
| 284 | have he := FlatCutoff.edge_nonneg c x |
| 285 | have hpw : 0 < x ^ F.order := pow_pos hx _ |
| 286 | have hpp : x ^ F.order ≤ 1 := pow_le_one₀ hx.le hx1 |
| 287 | have hdiv : FlatCutoff.edge c x ≤ FlatCutoff.edge c x / x ^ F.order := |
| 288 | (le_div_iff₀ hpw).2 (mul_le_of_le_one_right he hpp) |
| 289 | rw [F.identity p hp x hx (hxd.trans_lt hdw),norm_smul,Real.norm_eq_abs, |
| 290 | abs_of_nonneg (div_nonneg he hpw.le)] |
| 291 | calc |
| 292 | m * FlatCutoff.edge c x ≤ ‖F.coefficient (p,x)‖ * FlatCutoff.edge c x := |
| 293 | mul_le_mul_of_nonneg_right (hbound p hp x ⟨hx.le,hxd.trans hd0'⟩) he |
| 294 | _ ≤ ‖F.coefficient (p,x)‖ * (FlatCutoff.edge c x / x ^ F.order) := |
| 295 | mul_le_mul_of_nonneg_left hdiv (norm_nonneg _) |
| 296 | _ = _ := mul_comm _ _ |
| 297 | |
| 298 | noncomputable def leftChart (a : ℝ) (T : E × ℝ → V) (q : E × ℝ) : V := T (q.1,a+q.2) |
| 299 | noncomputable def rightChart (b : ℝ) (T : E × ℝ → V) (q : E × ℝ) : V := T (q.1,b-q.2) |
| 300 | |
| 301 | noncomputable def radialReflection : (E × ℝ) ≃ₗᵢ[ℝ] (E × ℝ) := |
| 302 | { (LinearEquiv.refl ℝ E).prodCongr (LinearEquiv.neg ℝ) with |
| 303 | norm_map' := by intro q; simp [Prod.norm_def] } |
| 304 | |
| 305 | theorem iteratedFDeriv_leftChart (a : ℝ) (T : E × ℝ → V) (n : ℕ) (q : E × ℝ) : |
| 306 | iteratedFDeriv ℝ n (leftChart a T) q = iteratedFDeriv ℝ n T (q.1,a+q.2) := by |
| 307 | have he : leftChart a T = fun q => T (q + (0,a)) := by |
| 308 | ext ⟨p,x⟩ |
| 309 | simp [leftChart,add_comm] |
| 310 | rw [he,iteratedFDeriv_comp_add_right] |
| 311 | rcases q with ⟨p,x⟩ |
| 312 | simp only [Prod.mk_add_mk,add_zero,add_comm x a] |
| 313 | |
| 314 | theorem norm_iteratedFDeriv_rightChart (b : ℝ) (T : E × ℝ → V) (n : ℕ) (q : E × ℝ) : |
| 315 | ‖iteratedFDeriv ℝ n (rightChart b T) q‖ = ‖iteratedFDeriv ℝ n T (q.1,b-q.2)‖ := by |
| 316 | let G : E × ℝ → V := fun q => T (q + (0,b)) |
| 317 | have he : rightChart b T = G ∘ radialReflection := by |
| 318 | ext q |
| 319 | simp [rightChart,G,radialReflection,sub_eq_add_neg,add_comm] |
| 320 | rw [he,(radialReflection (E := E)).norm_iteratedFDeriv_comp_right G q n] |
| 321 | rcases q with ⟨p,x⟩ |
| 322 | simp [G,iteratedFDeriv_comp_add_right,radialReflection,sub_eq_add_neg,add_comm] |
| 323 | |
| 324 | theorem iteratedFDeriv_eq_of_eqOn {S : Set (E × ℝ)} (hS : UniqueDiffOn ℝ S) |
| 325 | {f g : E × ℝ → V} (he : EqOn f g S) {q : E × ℝ} (hq : q ∈ S) |
| 326 | (hf : ContDiffAt ℝ ∞ f q) (hg : ContDiffAt ℝ ∞ g q) (n : ℕ) : |
| 327 | iteratedFDeriv ℝ n f q = iteratedFDeriv ℝ n g q := by |
| 328 | rw [← iteratedFDerivWithin_eq_iteratedFDeriv hS (hf.of_le (EdgeWeightJets.nat_le_infty n)) hq, |
| 329 | ← iteratedFDerivWithin_eq_iteratedFDeriv hS (hg.of_le (EdgeWeightJets.nat_le_infty n)) hq] |
| 330 | exact iteratedFDerivWithin_congr he hq n |
| 331 | |
| 332 | /-- The local derivative estimates are consequences of the actual factor |
| 333 | identity. Unique differentiability of the compact parameter set also covers |
| 334 | its endpoints. -/ |
| 335 | theorem EdgeFactor.derivative_bound {K : Set E} (hK : IsCompact K) |
| 336 | (hKd : UniqueDiffOn ℝ K) {c : ℝ} (hc : 0 < c) {T : E × ℝ → V} |
| 337 | (F : EdgeFactor K c T) (n : ℕ) {d : ℝ} (hd : 0 < d) (hdw : d < F.width) |
| 338 | (hdom : K ×ˢ Icc (0 : ℝ) d ⊆ F.domain) |
| 339 | (hT : ∀ p ∈ K, ∀ x : ℝ, 0 < x → x ≤ d → ContDiffAt ℝ ∞ T (p,x)) : |
| 340 | ∃ C : ℝ, 0 < C ∧ ∃ N : ℕ, ∀ i ≤ n, ∀ p ∈ K, |
| 341 | ∀ x : ℝ, 0 < x → x ≤ d → |
| 342 | ‖iteratedFDeriv ℝ i T (p,x)‖ ≤ C * FlatCutoff.edge c x / x^N := by |
| 343 | obtain ⟨C,hC,N,hbound⟩ := EdgeWeightJets.edge_smul_iteratedFDeriv_bound_on hc F.order |
| 344 | F.domain_open F.smooth hK n hd hdom |
| 345 | refine ⟨C,hC,N,?_⟩ |
| 346 | intro i hi p hp x hx hxd |
| 347 | let G : E × ℝ → V := fun q => (FlatCutoff.edge c q.2 / q.2^F.order) • F.coefficient q |
| 348 | have he : EqOn T G (K ×ˢ Ioo (0 : ℝ) F.width) := by |
| 349 | rintro ⟨q,y⟩ ⟨hq,hy⟩ |
| 350 | exact F.identity q hq y hy.1 hy.2 |
| 351 | have hG : ContDiffAt ℝ ∞ G (p,x) := |
| 352 | (((FlatCutoff.edge_div_pow_contDiff hc F.order).comp contDiff_snd).contDiffAt).smul |
| 353 | (F.smooth.contDiffAt (F.domain_open.mem_nhds (hdom ⟨hp,hx.le,hxd⟩))) |
| 354 | rw [iteratedFDeriv_eq_of_eqOn (hKd.prod isOpen_Ioo.uniqueDiffOn) he |
| 355 | ⟨hp,hx,hxd.trans_lt hdw⟩ (hT p hp x hx hxd) hG i] |
| 356 | exact hbound i hi p hp x hx hxd |
| 357 | |
| 358 | theorem compact_jets_bound {O S : Set (E × ℝ)} (hO : IsOpen O) |
| 359 | {T : E × ℝ → V} (hT : ContDiffOn ℝ ∞ T O) (hS : IsCompact S) |
| 360 | (hSO : S ⊆ O) (n : ℕ) : |
| 361 | ∃ C : ℝ, 0 < C ∧ ∀ i ≤ n, ∀ q ∈ S, ‖iteratedFDeriv ℝ i T q‖ ≤ C := by |
| 362 | have hb : ∀ i : ℕ, ∃ C : ℝ, 0 ≤ C ∧ ∀ q ∈ S, ‖iteratedFDeriv ℝ i T q‖ ≤ C := by |
| 363 | intro i |
| 364 | have hcont : ContinuousOn (iteratedFDeriv ℝ i T) O := by |
| 365 | intro q hq |
| 366 | have hi : ContDiffAt ℝ ∞ (iteratedFDeriv ℝ i T) q := |
| 367 | (hT.contDiffAt (hO.mem_nhds hq)).iteratedFDeriv_right (WithTop.coe_le_coe.mpr le_top) |
| 368 | exact hi.continuousAt.continuousWithinAt |
| 369 | obtain ⟨C,hC⟩ := hS.exists_bound_of_continuousOn (hcont.mono hSO) |
| 370 | exact ⟨max C 0,le_max_right _ _,fun q hq => (hC q hq).trans (le_max_left _ _)⟩ |
| 371 | choose C hC hb using hb |
| 372 | refine ⟨1 + ∑ i ∈ Finset.range (n+1),C i,?_,?_⟩ |
| 373 | · have hs := Finset.sum_nonneg (s := Finset.range (n+1)) (fun i _ => hC i) |
| 374 | linarith |
| 375 | · intro i hi q hq |
| 376 | have hs := Finset.single_le_sum (fun j _ => hC j) (Finset.mem_range.mpr (Nat.lt_succ_of_le hi)) |
| 377 | exact (hb i q hq).trans (by linarith) |
| 378 | |
| 379 | /-- Positivity inside and genuine nonzero edge factors give one global |
| 380 | positive lower constant for the explicit product weight. -/ |
| 381 | theorem exists_global_lower_bound {K : Set E} (hK : IsCompact K) |
| 382 | {a b c : ℝ} (hab : a < b) (hc : 0 < c) {T : E × ℝ → V} |
| 383 | (hT : ContinuousOn T (K ×ˢ Icc a b)) |
| 384 | (hinterior : ∀ p ∈ K, ∀ y ∈ Ioo a b, T (p,y) ≠ 0) |
| 385 | (FL : EdgeFactor K c (leftChart a T)) (FR : EdgeFactor K 4 (rightChart b T)) : |
| 386 | ∃ m : ℝ, 0 < m ∧ ∀ p ∈ K, ∀ y ∈ Ioo a b, m * weight c a b y ≤ ‖T (p,y)‖ := by |
| 387 | obtain ⟨dl,ml,hdl,hdlwidth,hdl1,hml,hdldom,hl⟩ := FL.collar hK |
| 388 | obtain ⟨dr,mr,hdr,hdrwidth,hdr1,hmr,hdrdom,hr⟩ := FR.collar hK |
| 389 | let d := min dl (min dr ((b-a)/3)) |
| 390 | have hd : 0 < d := lt_min hdl (lt_min hdr (div_pos (sub_pos.mpr hab) (by norm_num))) |
| 391 | have hdl' : d ≤ dl := min_le_left _ _ |
| 392 | have hdr' : d ≤ dr := (min_le_right _ _).trans (min_le_left _ _) |
| 393 | have hmid : K ×ˢ Icc (a+d) (b-d) ⊆ K ×ˢ Icc a b := by |
| 394 | intro q hq |
| 395 | exact ⟨hq.1,by constructor <;> linarith [hq.2.1,hq.2.2]⟩ |
| 396 | obtain ⟨mm,hmm,hmb⟩ := UniformCone.positive_uniform_margin (hK.prod isCompact_Icc) |
| 397 | ((hT.mono hmid).norm) (by |
| 398 | rintro ⟨p,y⟩ ⟨hp,hy⟩ |
| 399 | exact norm_pos_iff.mpr (hinterior p hp y ⟨by linarith [hy.1],by linarith [hy.2]⟩)) |
| 400 | let m := min ml (min mr mm) |
| 401 | have hm : 0 < m := lt_min hml (lt_min hmr hmm) |
| 402 | have hml' : m ≤ ml := min_le_left _ _ |
| 403 | have hmr' : m ≤ mr := (min_le_right _ _).trans (min_le_left _ _) |
| 404 | have hmm' : m ≤ mm := (min_le_right _ _).trans (min_le_right _ _) |
| 405 | refine ⟨m,hm,?_⟩ |
| 406 | intro p hp y hy |
| 407 | by_cases hleft : y-a ≤ d |
| 408 | · have hh := hl p hp (y-a) (sub_pos.mpr hy.1) (hleft.trans hdl') |
| 409 | have he : leftChart a T (p,y-a) = T (p,y) := by unfold leftChart; congr 1; simp |
| 410 | rw [he] at hh |
| 411 | exact ((mul_le_mul_of_nonneg_left (weight_le_left c a b y) hm.le).trans |
| 412 | (mul_le_mul_of_nonneg_right hml' (FlatCutoff.edge_nonneg c (y-a)))).trans hh |
| 413 | · by_cases hright : b-y ≤ d |
| 414 | · have hh := hr p hp (b-y) (sub_pos.mpr hy.2) (hright.trans hdr') |
| 415 | have he : rightChart b T (p,b-y) = T (p,y) := by unfold rightChart; congr 1; simp |
| 416 | rw [he] at hh |
| 417 | exact ((mul_le_mul_of_nonneg_left (weight_le_right hc.le a b y) hm.le).trans |
| 418 | (mul_le_mul_of_nonneg_right hmr' (FlatCutoff.edge_nonneg 4 (b-y)))).trans hh |
| 419 | · have hyM : y ∈ Icc (a+d) (b-d) := by constructor <;> linarith [lt_of_not_ge hleft,lt_of_not_ge hright] |
| 420 | exact (mul_le_of_le_one_right hm.le (weight_le_one hc.le a b y)).trans |
| 421 | (hmm'.trans (hmb (p,y) ⟨hp,hyM⟩)) |
| 422 | |
| 423 | /-- All fixed full derivative tensors share the same explicit flat weight. |
| 424 | The constants come from actual smooth coefficient jets and compactness. -/ |
| 425 | theorem exists_global_derivative_bound {K : Set E} (hK : IsCompact K) |
| 426 | (hKd : UniqueDiffOn ℝ K) {a b c : ℝ} (hab : a < b) (hc : 0 < c) |
| 427 | {T : E × ℝ → V} {O : Set (E × ℝ)} (hO : IsOpen O) |
| 428 | (hT : ContDiffOn ℝ ∞ T O) (hKO : K ×ˢ Icc a b ⊆ O) |
| 429 | (FL : EdgeFactor K c (leftChart a T)) (FR : EdgeFactor K 4 (rightChart b T)) |
| 430 | (n : ℕ) : ∃ C : ℝ, 0 < C ∧ ∃ N : ℕ, ∀ i ≤ n, ∀ p ∈ K, |
| 431 | ∀ y ∈ Ioo a b, ‖iteratedFDeriv ℝ i T (p,y)‖ ≤ |
| 432 | C * weight c a b y / edgeDistance a b y ^ N := by |
| 433 | obtain ⟨dl,ml,hdl,hdlw,hdl1,hml,hdlo,hlower⟩ := FL.collar hK |
| 434 | obtain ⟨dr,mr,hdr,hdrw,hdr1,hmr,hdro,hrlower⟩ := FR.collar hK |
| 435 | let d := min dl (min dr ((b-a)/3)) |
| 436 | have hd : 0 < d := lt_min hdl (lt_min hdr (div_pos (sub_pos.mpr hab) (by norm_num))) |
| 437 | have hdl' : d ≤ dl := min_le_left _ _ |
| 438 | have hdr' : d ≤ dr := (min_le_right _ _).trans (min_le_left _ _) |
| 439 | have hdgap : d ≤ (b-a)/3 := (min_le_right _ _).trans (min_le_right _ _) |
| 440 | have hgap : 0 < b-a-d := by linarith |
| 441 | have hleftSmooth : ∀ p ∈ K, ∀ x : ℝ, 0 < x → x ≤ d → |
| 442 | ContDiffAt ℝ ∞ (leftChart a T) (p,x) := by |
| 443 | intro p hp x hx hxd |
| 444 | have hh : (p,a+x) ∈ O := hKO ⟨hp,by change a ≤ a+x ∧ a+x ≤ b; constructor <;> linarith⟩ |
| 445 | have hm : ContDiffAt ℝ ∞ (fun q : E × ℝ => (q.1,a+q.2)) (p,x) := |
| 446 | contDiffAt_fst.prodMk (contDiffAt_const.add contDiffAt_snd) |
| 447 | exact (hT.contDiffAt (hO.mem_nhds hh)).comp (p,x) hm |
| 448 | have hrightSmooth : ∀ p ∈ K, ∀ x : ℝ, 0 < x → x ≤ d → |
| 449 | ContDiffAt ℝ ∞ (rightChart b T) (p,x) := by |
| 450 | intro p hp x hx hxd |
| 451 | have hh : (p,b-x) ∈ O := hKO ⟨hp,by change a ≤ b-x ∧ b-x ≤ b; constructor <;> linarith⟩ |
| 452 | have hm : ContDiffAt ℝ ∞ (fun q : E × ℝ => (q.1,b-q.2)) (p,x) := |
| 453 | contDiffAt_fst.prodMk (contDiffAt_const.sub contDiffAt_snd) |
| 454 | exact (hT.contDiffAt (hO.mem_nhds hh)).comp (p,x) hm |
| 455 | obtain ⟨CL,hCL,NL,hL⟩ := FL.derivative_bound hK hKd hc n hd (hdl'.trans_lt hdlw) |
| 456 | ((Set.prod_mono Subset.rfl (Icc_subset_Icc_right hdl')).trans hdlo) hleftSmooth |
| 457 | obtain ⟨CR,hCR,NR,hR⟩ := FR.derivative_bound hK hKd (by norm_num) n hd (hdr'.trans_lt hdrw) |
| 458 | ((Set.prod_mono Subset.rfl (Icc_subset_Icc_right hdr')).trans hdro) hrightSmooth |
| 459 | have hmiddle : K ×ˢ Icc (a+d) (b-d) ⊆ O := by |
| 460 | intro q hq |
| 461 | apply hKO |
| 462 | exact ⟨hq.1,by constructor <;> linarith [hq.2.1,hq.2.2]⟩ |
| 463 | obtain ⟨CM,hCM,hM⟩ := compact_jets_bound hO hT (hK.prod isCompact_Icc) hmiddle n |
| 464 | let AL := CL / FlatCutoff.edge 4 (b-a-d) |
| 465 | let AR := CR / FlatCutoff.edge c (b-a-d) |
| 466 | let AM := CM / (FlatCutoff.edge c d * FlatCutoff.edge 4 d) |
| 467 | have hAL : 0 < AL := div_pos hCL (FlatCutoff.edge_pos _ hgap) |
| 468 | have hAR : 0 < AR := div_pos hCR (FlatCutoff.edge_pos _ hgap) |
| 469 | have hAM : 0 < AM := div_pos hCM (mul_pos (FlatCutoff.edge_pos _ hd) (FlatCutoff.edge_pos _ hd)) |
| 470 | let C := AL + AR + AM |
| 471 | have hC : 0 < C := by dsimp [C]; positivity |
| 472 | have hALC : AL ≤ C := by dsimp [C]; linarith |
| 473 | have hARC : AR ≤ C := by dsimp [C]; linarith |
| 474 | have hAMC : AM ≤ C := by dsimp [C]; linarith |
| 475 | refine ⟨C,hC,NL+NR,?_⟩ |
| 476 | intro i hi p hp y hy |
| 477 | have hmono (B : ℝ) (hB : B ≤ C) : |
| 478 | B * weight c a b y / edgeDistance a b y ^ (NL+NR) ≤ |
| 479 | C * weight c a b y / edgeDistance a b y ^ (NL+NR) := |
| 480 | div_le_div_of_nonneg_right (mul_le_mul_of_nonneg_right hB (weight_nonneg _ _ _ _)) |
| 481 | (pow_nonneg (edgeDistance_pos hy).le _) |
| 482 | by_cases hleft : y-a ≤ d |
| 483 | · have hh := hL i hi p hp (y-a) (sub_pos.mpr hy.1) hleft |
| 484 | rw [iteratedFDeriv_leftChart,show a+(y-a)=y by ring] at hh |
| 485 | exact hh.trans ((left_bound_to_weight hCL.le hgap hy (by linarith) (Nat.le_add_right _ _)).trans |
| 486 | (hmono AL hALC)) |
| 487 | · by_cases hright : b-y ≤ d |
| 488 | · have hh := hR i hi p hp (b-y) (sub_pos.mpr hy.2) hright |
| 489 | rw [norm_iteratedFDeriv_rightChart,show b-(b-y)=y by ring] at hh |
| 490 | exact hh.trans ((right_bound_to_weight hc.le hCR.le hgap hy (by linarith) |
| 491 | (Nat.le_add_left _ _)).trans (hmono AR hARC)) |
| 492 | · have hym : y ∈ Icc (a+d) (b-d) := by |
| 493 | constructor <;> linarith [lt_of_not_ge hleft,lt_of_not_ge hright] |
| 494 | exact (hM i hi (p,y) ⟨hp,hym⟩).trans |
| 495 | ((interior_bound_to_weight hc.le hCM.le hd hy hym (NL+NR)).trans (hmono AM hAMC)) |
| 496 | |
| 497 | /-- Equation (20), for actual derivative tensors in the fixed logarithmic |
| 498 | profile chart. The lower constant and the weight are independent of order. -/ |
| 499 | theorem global_weighted_bounds {K : Set E} (hK : IsCompact K) |
| 500 | (hKd : UniqueDiffOn ℝ K) {a b c : ℝ} (hab : a < b) (hc : 0 < c) |
| 501 | {T : E × ℝ → V} {O : Set (E × ℝ)} (hO : IsOpen O) |
| 502 | (hT : ContDiffOn ℝ ∞ T O) (hKO : K ×ˢ Icc a b ⊆ O) |
| 503 | (hinterior : ∀ p ∈ K, ∀ y ∈ Ioo a b, T (p,y) ≠ 0) |
| 504 | (FL : EdgeFactor K c (leftChart a T)) (FR : EdgeFactor K 4 (rightChart b T)) : |
| 505 | (∃ m : ℝ, 0 < m ∧ ∀ p ∈ K, ∀ y ∈ Ioo a b, m * weight c a b y ≤ ‖T (p,y)‖) ∧ |
| 506 | ∀ n : ℕ, ∃ C : ℝ, 0 < C ∧ ∃ N : ℕ, ∀ i ≤ n, ∀ p ∈ K, |
| 507 | ∀ y ∈ Ioo a b, ‖iteratedFDeriv ℝ i T (p,y)‖ ≤ |
| 508 | C * weight c a b y / edgeDistance a b y ^ N := |
| 509 | ⟨exists_global_lower_bound hK hab hc (hT.continuousOn.mono hKO) hinterior FL FR, |
| 510 | exists_global_derivative_bound hK hKd hab hc hO hT hKO FL FR⟩ |
| 511 | |
| 512 | end CompactFamilies |
| 513 | |
| 514 | section RadialChart |
| 515 | |
| 516 | variable {E V : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 517 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 518 | |
| 519 | noncomputable def logChart (q : E × ℝ) : E × ℝ := (q.1,Real.log q.2) |
| 520 | noncomputable def radialPullback (T : E × ℝ → V) (q : E × ℝ) : V := T (logChart q) |
| 521 | |
| 522 | theorem logChart_smooth : ContDiffOn ℝ ∞ (logChart (E := E)) |
| 523 | ((univ : Set E) ×ˢ Ioi (0 : ℝ)) := by |
| 524 | intro q hq |
| 525 | exact (contDiffAt_fst.prodMk (contDiffAt_snd.log hq.2.ne')).contDiffWithinAt |
| 526 | |
| 527 | /-- The same weight controls genuine derivatives in `X`, not just in `log X`. |
| 528 | The change-of-variable constants are bounded on the fixed positive annulus. -/ |
| 529 | theorem exists_radial_derivative_bound {K : Set E} (hK : IsCompact K) |
| 530 | (hKd : UniqueDiffOn ℝ K) {a b c : ℝ} (hab : a < b) (hc : 0 < c) |
| 531 | {T : E × ℝ → V} {O : Set (E × ℝ)} (hO : IsOpen O) |
| 532 | (hT : ContDiffOn ℝ ∞ T O) (hKO : K ×ˢ Icc a b ⊆ O) |
| 533 | (FL : EdgeFactor K c (leftChart a T)) (FR : EdgeFactor K 4 (rightChart b T)) |
| 534 | (n : ℕ) : ∃ C : ℝ, 0 < C ∧ ∃ N : ℕ, ∀ p ∈ K, |
| 535 | ∀ X ∈ Ioo (Real.exp a) (Real.exp b), |
| 536 | ‖iteratedFDeriv ℝ n (radialPullback T) (p,X)‖ ≤ |
| 537 | C * radialWeight c a b X / edgeDistance a b (Real.log X)^N := by |
| 538 | obtain ⟨A,hA,N,hbound⟩ := exists_global_derivative_bound hK hKd hab hc hO hT hKO FL FR n |
| 539 | let P := (univ : Set E) ×ˢ Ioi (0 : ℝ) |
| 540 | have hP : IsOpen P := isOpen_univ.prod isOpen_Ioi |
| 541 | have hlog : ContDiffOn ℝ ∞ (logChart (E := E)) P := logChart_smooth |
| 542 | have hpos : K ×ˢ Icc (Real.exp a) (Real.exp b) ⊆ P := by |
| 543 | intro q hq |
| 544 | exact ⟨mem_univ _,(Real.exp_pos a).trans_le hq.2.1⟩ |
| 545 | obtain ⟨B,hB,hjets⟩ := compact_jets_bound hP hlog (hK.prod isCompact_Icc) hpos n |
| 546 | let D := max 1 B |
| 547 | have hD : 1 ≤ D := le_max_left _ _ |
| 548 | have hBD : B ≤ D := le_max_right _ _ |
| 549 | let C := (n.factorial : ℝ) * A * D^n |
| 550 | have hC : 0 < C := mul_pos (mul_pos (Nat.cast_pos.mpr (Nat.factorial_pos n)) hA) |
| 551 | (pow_pos (zero_lt_one.trans_le hD) _) |
| 552 | let Q := P ∩ (logChart (E := E)) ⁻¹' O |
| 553 | have hQ : IsOpen Q := by |
| 554 | apply isOpen_iff_mem_nhds.mpr |
| 555 | intro q hq |
| 556 | filter_upwards [hP.mem_nhds hq.1, |
| 557 | (hlog.contDiffAt (hP.mem_nhds hq.1)).continuousAt.eventually (hO.mem_nhds hq.2)] with r hr hrO |
| 558 | exact ⟨hr,hrO⟩ |
| 559 | have hmap : MapsTo (logChart (E := E)) Q O := fun _ hq => hq.2 |
| 560 | refine ⟨C,hC,N,?_⟩ |
| 561 | intro p hp X hX |
| 562 | have hXp : 0 < X := (Real.exp_pos a).trans hX.1 |
| 563 | have hy : Real.log X ∈ Ioo a b := |
| 564 | ⟨(Real.lt_log_iff_exp_lt hXp).2 hX.1,(Real.log_lt_iff_lt_exp hXp).2 hX.2⟩ |
| 565 | have hqx : (p,X) ∈ Q := ⟨⟨mem_univ _,hXp⟩,hKO ⟨hp,hy.1.le,hy.2.le⟩⟩ |
| 566 | have houter : ∀ i, i ≤ n → |
| 567 | ‖iteratedFDerivWithin ℝ i T O (logChart (p,X))‖ ≤ |
| 568 | A * weight c a b (Real.log X) / edgeDistance a b (Real.log X)^N := by |
| 569 | intro i hi |
| 570 | rw [iteratedFDerivWithin_of_isOpen i hO (hmap hqx)] |
| 571 | exact hbound i hi p hp (Real.log X) hy |
| 572 | have hinner : ∀ i, 1 ≤ i → i ≤ n → |
| 573 | ‖iteratedFDerivWithin ℝ i (logChart (E := E)) Q (p,X)‖ ≤ D^i := by |
| 574 | intro i hi hin |
| 575 | rw [iteratedFDerivWithin_of_isOpen i hQ hqx] |
| 576 | exact (hjets i hin (p,X) ⟨hp,hX.1.le,hX.2.le⟩).trans |
| 577 | (hBD.trans (by simpa only [pow_one] using pow_le_pow_right₀ hD hi)) |
| 578 | have hh := norm_iteratedFDerivWithin_comp_le hT (hlog.mono inter_subset_left) |
| 579 | (EdgeWeightJets.nat_le_infty n) hO.uniqueDiffOn hQ.uniqueDiffOn hmap hqx houter hinner |
| 580 | rw [iteratedFDerivWithin_of_isOpen n hQ hqx] at hh |
| 581 | calc |
| 582 | ‖iteratedFDeriv ℝ n (radialPullback T) (p,X)‖ ≤ |
| 583 | (n.factorial : ℝ) * (A * weight c a b (Real.log X) / |
| 584 | edgeDistance a b (Real.log X)^N) * D^n := hh |
| 585 | _ = C * radialWeight c a b X / edgeDistance a b (Real.log X)^N := by |
| 586 | rw [radialWeight,ite_eq_left hXp] |
| 587 | dsimp [C] |
| 588 | ring |
| 589 | |
| 590 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedSpace ℝ V] in |
| 591 | theorem radial_lower_bound {K : Set E} {a b c m : ℝ} {T : E × ℝ → V} |
| 592 | (hlower : ∀ p ∈ K, ∀ y ∈ Ioo a b, m * weight c a b y ≤ ‖T (p,y)‖) |
| 593 | {p : E} (hp : p ∈ K) {X : ℝ} (hX : X ∈ Ioo (Real.exp a) (Real.exp b)) : |
| 594 | m * radialWeight c a b X ≤ ‖radialPullback T (p,X)‖ := by |
| 595 | have hXp : 0 < X := (Real.exp_pos a).trans hX.1 |
| 596 | rw [radialWeight,ite_eq_left hXp] |
| 597 | exact hlower p hp (Real.log X) |
| 598 | ⟨(Real.lt_log_iff_exp_lt hXp).2 hX.1,(Real.log_lt_iff_lt_exp hXp).2 hX.2⟩ |
| 599 | |
| 600 | /-- The complete estimates in both fixed profile charts. -/ |
| 601 | noncomputable def WeightedBounds (K : Set E) (c a b : ℝ) (T : E × ℝ → V) : Prop := |
| 602 | (∃ m : ℝ, 0 < m ∧ ∀ p ∈ K, ∀ y ∈ Ioo a b, m * weight c a b y ≤ ‖T (p,y)‖) ∧ |
| 603 | (∀ n : ℕ, ∃ C : ℝ, 0 < C ∧ ∃ N : ℕ, ∀ i ≤ n, ∀ p ∈ K, |
| 604 | ∀ y ∈ Ioo a b, ‖iteratedFDeriv ℝ i T (p,y)‖ ≤ |
| 605 | C * weight c a b y / edgeDistance a b y ^ N) ∧ |
| 606 | (∀ n : ℕ, ∃ C : ℝ, 0 < C ∧ ∃ N : ℕ, ∀ p ∈ K, |
| 607 | ∀ X ∈ Ioo (Real.exp a) (Real.exp b), |
| 608 | ‖iteratedFDeriv ℝ n (radialPullback T) (p,X)‖ ≤ |
| 609 | C * radialWeight c a b X / edgeDistance a b (Real.log X)^N) |
| 610 | |
| 611 | theorem weightedBounds_of_edge_factors {K : Set E} (hK : IsCompact K) |
| 612 | (hKd : UniqueDiffOn ℝ K) {a b c : ℝ} (hab : a < b) (hc : 0 < c) |
| 613 | {T : E × ℝ → V} {O : Set (E × ℝ)} (hO : IsOpen O) |
| 614 | (hT : ContDiffOn ℝ ∞ T O) (hKO : K ×ˢ Icc a b ⊆ O) |
| 615 | (hinterior : ∀ p ∈ K, ∀ y ∈ Ioo a b, T (p,y) ≠ 0) |
| 616 | (FL : EdgeFactor K c (leftChart a T)) (FR : EdgeFactor K 4 (rightChart b T)) : |
| 617 | WeightedBounds K c a b T := |
| 618 | ⟨exists_global_lower_bound hK hab hc (hT.continuousOn.mono hKO) hinterior FL FR, |
| 619 | exists_global_derivative_bound hK hKd hab hc hO hT hKO FL FR, |
| 620 | exists_radial_derivative_bound hK hKd hab hc hO hT hKO FL FR⟩ |
| 621 | |
| 622 | end RadialChart |
| 623 | |
| 624 | section Directions |
| 625 | |
| 626 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 627 | |
| 628 | noncomputable def tilt (v : ℝ × ℝ) : ℝ := v.2 / v.1 |
| 629 | |
| 630 | noncomputable def unitOfTilt (t : ℝ) : ℝ × ℝ := |
| 631 | ((Real.sqrt (1+t^2))⁻¹,t / Real.sqrt (1+t^2)) |
| 632 | |
| 633 | /-- Euclidean unit direction with positive angular component. -/ |
| 634 | noncomputable def direction (v : ℝ × ℝ) : ℝ × ℝ := unitOfTilt (tilt v) |
| 635 | |
| 636 | theorem unitOfTilt_smooth : ContDiff ℝ ∞ unitOfTilt := by |
| 637 | have hs : ContDiff ℝ ∞ (fun t : ℝ => Real.sqrt (1+t^2)) := |
| 638 | (contDiff_const.add (contDiff_id.pow 2)).sqrt (fun t => by positivity) |
| 639 | have hne (t : ℝ) : Real.sqrt (1+t^2) ≠ 0 := (Real.sqrt_pos.2 (by positivity)).ne' |
| 640 | exact (hs.inv hne).prodMk (contDiff_id.div hs hne) |
| 641 | |
| 642 | theorem tilt_smul {r : ℝ} (hr : r ≠ 0) (v : ℝ × ℝ) : tilt (r • v) = tilt v := by |
| 643 | simp only [tilt,Prod.smul_fst,Prod.smul_snd,smul_eq_mul] |
| 644 | exact mul_div_mul_left _ _ hr |
| 645 | |
| 646 | theorem direction_smul {r : ℝ} (hr : r ≠ 0) (v : ℝ × ℝ) : direction (r • v) = direction v := by |
| 647 | simp only [direction,tilt_smul hr] |
| 648 | |
| 649 | theorem direction_smooth {O : Set (E × ℝ)} {B : E × ℝ → ℝ × ℝ} |
| 650 | (hB : ContDiffOn ℝ ∞ B O) (hne : ∀ q ∈ O, (B q).1 ≠ 0) : |
| 651 | ContDiffOn ℝ ∞ (fun q => direction (B q)) O := |
| 652 | unitOfTilt_smooth.comp_contDiffOn (hB.snd.div hB.fst hne) |
| 653 | |
| 654 | omit [NormedSpace ℝ E] in |
| 655 | theorem positive_domain_open {O : Set (E × ℝ)} (hO : IsOpen O) {g : E × ℝ → ℝ} |
| 656 | (hg : ContinuousOn g O) : IsOpen {q | q ∈ O ∧ 0 < g q} := by |
| 657 | apply isOpen_iff_mem_nhds.mpr |
| 658 | intro q hq |
| 659 | filter_upwards [hO.mem_nhds hq.1, |
| 660 | (hg.continuousAt (hO.mem_nhds hq.1)).eventually (Ioi_mem_nhds hq.2)] with p hp hgp |
| 661 | exact ⟨hp,hgp⟩ |
| 662 | |
| 663 | omit [NormedSpace ℝ E] in |
| 664 | theorem compact_positive_collar {K : Set E} (hK : IsCompact K) |
| 665 | {O : Set (E × ℝ)} (hO : IsOpen O) {g : E × ℝ → ℝ} (hg : ContinuousOn g O) |
| 666 | (hK0 : K ×ˢ ({0} : Set ℝ) ⊆ O) (hpos : ∀ p ∈ K, 0 < g (p,0)) : |
| 667 | ∃ d ε : ℝ, 0 < d ∧ 0 < ε ∧ K ×ˢ Icc (0 : ℝ) d ⊆ O ∧ |
| 668 | ∀ p ∈ K, ∀ x ∈ Icc (0 : ℝ) d, ε ≤ g (p,x) := by |
| 669 | let W := {q | q ∈ O ∧ 0 < g q} |
| 670 | have hW : IsOpen W := positive_domain_open hO hg |
| 671 | have hKW : K ×ˢ ({0} : Set ℝ) ⊆ W := by |
| 672 | rintro ⟨p,x⟩ ⟨hp,hx⟩ |
| 673 | have hx0 : x = 0 := hx |
| 674 | subst x |
| 675 | exact ⟨hK0 ⟨hp,rfl⟩,hpos p hp⟩ |
| 676 | obtain ⟨d,ε,hd,hε,hdom,hbound⟩ := compact_nonzero_collar hK hW |
| 677 | (hg.mono (fun _ hq => hq.1)) hKW (fun p hp => (hpos p hp).ne') |
| 678 | refine ⟨d,ε,hd,hε,fun q hq => (hdom hq).1,?_⟩ |
| 679 | intro p hp x hx |
| 680 | have hh := hbound p hp x hx |
| 681 | have hpos : 0 < g (p,x) := (hdom (show (p,x) ∈ K ×ˢ Icc (0 : ℝ) d from ⟨hp,hx⟩)).2 |
| 682 | simpa only [Real.norm_eq_abs,abs_of_pos hpos] using hh |
| 683 | |
| 684 | /-- A positive angular edge factor yields a genuine smooth unit direction |
| 685 | for the stress, even where the stress itself vanishes at the edge. -/ |
| 686 | theorem EdgeFactor.direction_collar {K : Set E} (hK : IsCompact K) {c : ℝ} |
| 687 | {T : E × ℝ → ℝ × ℝ} (F : EdgeFactor K c T) |
| 688 | (hfirst : ∀ p ∈ K, 0 < (F.coefficient (p,0)).1) : |
| 689 | ∃ d : ℝ, ∃ W : Set (E × ℝ), 0 < d ∧ d < F.width ∧ IsOpen W ∧ |
| 690 | K ×ˢ Icc (0 : ℝ) d ⊆ W ∧ |
| 691 | ContDiffOn ℝ ∞ (fun q => direction (F.coefficient q)) W ∧ |
| 692 | (∀ p ∈ K, ∀ x : ℝ, 0 < x → x ≤ d → |
| 693 | direction (T (p,x)) = direction (F.coefficient (p,x))) ∧ |
| 694 | (∀ p ∈ K, ∀ x : ℝ, 0 < x → x ≤ d → 0 < (T (p,x)).1) := by |
| 695 | obtain ⟨d0,ε,hd0,hε,hdom,hbound⟩ := compact_positive_collar hK F.domain_open |
| 696 | F.smooth.fst.continuousOn F.boundary_mem hfirst |
| 697 | let W := {q | q ∈ F.domain ∧ 0 < (F.coefficient q).1} |
| 698 | let d := min d0 (F.width/2) |
| 699 | have hd : 0 < d := lt_min hd0 (half_pos F.width_pos) |
| 700 | have hdd : d ≤ d0 := min_le_left _ _ |
| 701 | have hdw : d < F.width := (min_le_right _ _).trans_lt (half_lt_self F.width_pos) |
| 702 | have hpos (p : E) (hp : p ∈ K) (x : ℝ) (hx : x ∈ Icc (0 : ℝ) d) : |
| 703 | 0 < (F.coefficient (p,x)).1 := hε.trans_le (hbound p hp x ⟨hx.1,hx.2.trans hdd⟩) |
| 704 | refine ⟨d,W,hd,hdw,positive_domain_open F.domain_open F.smooth.fst.continuousOn,?_,?_,?_,?_⟩ |
| 705 | · exact fun q hq => ⟨hdom ⟨hq.1,hq.2.1,hq.2.2.trans hdd⟩,hpos q.1 hq.1 q.2 hq.2⟩ |
| 706 | · exact direction_smooth (F.smooth.mono (fun _ hq => hq.1)) (fun _ hq => hq.2.ne') |
| 707 | · intro p hp x hx hxd |
| 708 | rw [F.identity p hp x hx (hxd.trans_lt hdw)] |
| 709 | exact direction_smul (div_pos (FlatCutoff.edge_pos _ hx) (pow_pos hx _)).ne' _ |
| 710 | · intro p hp x hx hxd |
| 711 | rw [F.identity p hp x hx (hxd.trans_lt hdw),Prod.smul_fst,smul_eq_mul] |
| 712 | exact mul_pos (div_pos (FlatCutoff.edge_pos _ hx) (pow_pos hx _)) (hpos p hp x ⟨hx.le,hxd⟩) |
| 713 | |
| 714 | noncomputable def directionProjection (s t : ℝ) : ℝ := 1+s*t |
| 715 | noncomputable def directionGap (v s t : ℝ) : ℝ := 2*(directionProjection s t)^2 - (v-2)*(t-s)^2 |
| 716 | |
| 717 | theorem aligned_direction_margin (v s : ℝ) : |
| 718 | 0 < directionProjection s s ∧ 0 < directionGap v s s := by |
| 719 | have hs : 0 < 1+s*s := by nlinarith [sq_nonneg s] |
| 720 | constructor |
| 721 | · exact hs |
| 722 | · simpa only [directionGap,directionProjection,sub_self,zero_pow (by norm_num : 2 ≠ 0), |
| 723 | mul_zero,sub_zero] using mul_pos (by norm_num : (0 : ℝ) < 2) (sq_pos_of_pos hs) |
| 724 | |
| 725 | omit [NormedSpace ℝ E] in |
| 726 | /-- Equality of the boundary direction with the shear direction gives a |
| 727 | strict cone margin on one uniform collar by continuity and compactness. -/ |
| 728 | theorem aligned_direction_collar {K : Set E} (hK : IsCompact K) |
| 729 | {O : Set (E × ℝ)} (hO : IsOpen O) (hK0 : K ×ˢ ({0} : Set ℝ) ⊆ O) |
| 730 | {v s t : E × ℝ → ℝ} (hv : ContinuousOn v O) (hs : ContinuousOn s O) |
| 731 | (ht : ContinuousOn t O) (halign : ∀ p ∈ K, t (p,0) = s (p,0)) : |
| 732 | ∃ d ε : ℝ, 0 < d ∧ 0 < ε ∧ K ×ˢ Icc (0 : ℝ) d ⊆ O ∧ |
| 733 | ∀ p ∈ K, ∀ x ∈ Icc (0 : ℝ) d, |
| 734 | ε ≤ directionProjection (s (p,x)) (t (p,x)) ∧ |
| 735 | ε ≤ directionGap (v (p,x)) (s (p,x)) (t (p,x)) := by |
| 736 | have hp : ContinuousOn (fun q => directionProjection (s q) (t q)) O := |
| 737 | continuousOn_const.add (hs.mul ht) |
| 738 | have hg : ContinuousOn (fun q => directionGap (v q) (s q) (t q)) O := |
| 739 | (continuousOn_const.mul (hp.pow 2)).sub ((hv.sub continuousOn_const).mul ((ht.sub hs).pow 2)) |
| 740 | obtain ⟨dp,ep,hdp,hep,hop,hpbound⟩ := compact_positive_collar hK hO hp hK0 (by |
| 741 | intro p hp |
| 742 | rw [halign p hp] |
| 743 | exact (aligned_direction_margin (v (p,0)) (s (p,0))).1) |
| 744 | obtain ⟨dg,eg,hdg,heg,hog,hgbound⟩ := compact_positive_collar hK hO hg hK0 (by |
| 745 | intro p hp |
| 746 | rw [halign p hp] |
| 747 | exact (aligned_direction_margin (v (p,0)) (s (p,0))).2) |
| 748 | refine ⟨min dp dg,min ep eg,lt_min hdp hdg,lt_min hep heg,?_,?_⟩ |
| 749 | · exact fun q hq => hop ⟨hq.1,hq.2.1,hq.2.2.trans (min_le_left _ _)⟩ |
| 750 | · intro p hp x hx |
| 751 | exact ⟨(min_le_left _ _).trans (hpbound p hp x ⟨hx.1,hx.2.trans (min_le_left _ _)⟩), |
| 752 | (min_le_right _ _).trans (hgbound p hp x ⟨hx.1,hx.2.trans (min_le_right _ _)⟩)⟩ |
| 753 | |
| 754 | /-- The actual stress direction has a smooth extension and a uniform strict |
| 755 | cone margin when the genuine edge factor is aligned with the limiting shear. -/ |
| 756 | theorem EdgeFactor.aligned_collar {K : Set E} (hK : IsCompact K) {c : ℝ} |
| 757 | {T : E × ℝ → ℝ × ℝ} (F : EdgeFactor K c T) |
| 758 | (hfirst : ∀ p ∈ K, 0 < (F.coefficient (p,0)).1) |
| 759 | {O : Set (E × ℝ)} (hO : IsOpen O) (hK0 : K ×ˢ ({0} : Set ℝ) ⊆ O) |
| 760 | {v s : E × ℝ → ℝ} (hv : ContinuousOn v O) (hs : ContinuousOn s O) |
| 761 | (halign : ∀ p ∈ K, tilt (F.coefficient (p,0)) = s (p,0)) : |
| 762 | ∃ d ε : ℝ, ∃ W : Set (E × ℝ), 0 < d ∧ d < F.width ∧ 0 < ε ∧ IsOpen W ∧ |
| 763 | K ×ˢ Icc (0 : ℝ) d ⊆ W ∧ |
| 764 | ContDiffOn ℝ ∞ (fun q => direction (F.coefficient q)) W ∧ |
| 765 | (∀ p ∈ K, ∀ x ∈ Icc (0 : ℝ) d, |
| 766 | ε ≤ directionProjection (s (p,x)) (tilt (F.coefficient (p,x))) ∧ |
| 767 | ε ≤ directionGap (v (p,x)) (s (p,x)) (tilt (F.coefficient (p,x)))) ∧ |
| 768 | (∀ p ∈ K, ∀ x : ℝ, 0 < x → x ≤ d → |
| 769 | direction (T (p,x)) = direction (F.coefficient (p,x)) ∧ |
| 770 | ε ≤ directionProjection (s (p,x)) (tilt (T (p,x))) ∧ |
| 771 | ε ≤ directionGap (v (p,x)) (s (p,x)) (tilt (T (p,x)))) := by |
| 772 | let W := {q | q ∈ F.domain ∩ O ∧ 0 < (F.coefficient q).1} |
| 773 | have hW : IsOpen W := positive_domain_open (F.domain_open.inter hO) |
| 774 | (F.smooth.fst.continuousOn.mono inter_subset_left) |
| 775 | have hKW : K ×ˢ ({0} : Set ℝ) ⊆ W := by |
| 776 | rintro ⟨p,x⟩ ⟨hp,hx⟩ |
| 777 | have hx0 : x = 0 := hx |
| 778 | subst x |
| 779 | exact ⟨⟨F.boundary_mem ⟨hp,rfl⟩,hK0 ⟨hp,rfl⟩⟩,hfirst p hp⟩ |
| 780 | have hBW : ContDiffOn ℝ ∞ F.coefficient W := F.smooth.mono (fun _ hq => hq.1.1) |
| 781 | have ht : ContinuousOn (fun q => tilt (F.coefficient q)) W := |
| 782 | (hBW.snd.div hBW.fst (fun _ hq => hq.2.ne')).continuousOn |
| 783 | obtain ⟨d0,ε,hd0,hε,hdom,hmargin⟩ := aligned_direction_collar hK hW hKW |
| 784 | (hv.mono (fun _ hq => hq.1.2)) (hs.mono (fun _ hq => hq.1.2)) ht halign |
| 785 | let d := min d0 (F.width/2) |
| 786 | have hd : 0 < d := lt_min hd0 (half_pos F.width_pos) |
| 787 | have hdd : d ≤ d0 := min_le_left _ _ |
| 788 | have hdw : d < F.width := (min_le_right _ _).trans_lt (half_lt_self F.width_pos) |
| 789 | refine ⟨d,ε,W,hd,hdw,hε,hW,?_,direction_smooth hBW (fun _ hq => hq.2.ne'),?_,?_⟩ |
| 790 | · exact fun q hq => hdom ⟨hq.1,hq.2.1,hq.2.2.trans hdd⟩ |
| 791 | · exact fun p hp x hx => hmargin p hp x ⟨hx.1,hx.2.trans hdd⟩ |
| 792 | · intro p hp x hx hxd |
| 793 | have he : tilt (T (p,x)) = tilt (F.coefficient (p,x)) := by |
| 794 | rw [F.identity p hp x hx (hxd.trans_lt hdw)] |
| 795 | exact tilt_smul (div_pos (FlatCutoff.edge_pos _ hx) (pow_pos hx _)).ne' _ |
| 796 | refine ⟨?_,?_⟩ |
| 797 | · exact congrArg unitOfTilt he |
| 798 | · rw [he] |
| 799 | exact hmargin p hp x ⟨hx.le,hxd.trans hdd⟩ |
| 800 | |
| 801 | /-- A smooth extension of the actual unit direction, with strict margins |
| 802 | for the true homogeneous cone inequalities on a full closed edge collar. -/ |
| 803 | noncomputable def HasStrictDirectionCollar (K : Set E) (T B : E × ℝ → ℝ × ℝ) |
| 804 | (v s : E × ℝ → ℝ) (width : ℝ) : Prop := |
| 805 | ∃ d ε : ℝ, ∃ W : Set (E × ℝ), 0 < d ∧ d < width ∧ 0 < ε ∧ IsOpen W ∧ |
| 806 | K ×ˢ Icc (0 : ℝ) d ⊆ W ∧ |
| 807 | ContDiffOn ℝ ∞ (fun q => direction (B q)) W ∧ |
| 808 | (∀ p ∈ K, ∀ x ∈ Icc (0 : ℝ) d, |
| 809 | ε ≤ directionProjection (s (p,x)) (tilt (B (p,x))) ∧ |
| 810 | ε ≤ directionGap (v (p,x)) (s (p,x)) (tilt (B (p,x)))) ∧ |
| 811 | (∀ p ∈ K, ∀ x : ℝ, 0 < x → x ≤ d → |
| 812 | direction (T (p,x)) = direction (B (p,x)) ∧ |
| 813 | ε ≤ directionProjection (s (p,x)) (tilt (T (p,x))) ∧ |
| 814 | ε ≤ directionGap (v (p,x)) (s (p,x)) (tilt (T (p,x)))) |
| 815 | |
| 816 | /-- The directional certificate together with the speed condition `v_s > 2` |
| 817 | on one common positive-width collar. -/ |
| 818 | noncomputable def HasTrueDirectionCollar (K : Set E) (T B : E × ℝ → ℝ × ℝ) |
| 819 | (v s : E × ℝ → ℝ) (width : ℝ) : Prop := |
| 820 | HasStrictDirectionCollar K T B v s width ∧ |
| 821 | ∃ d ε : ℝ, 0 < d ∧ d < width ∧ 0 < ε ∧ |
| 822 | ∀ p ∈ K, ∀ x : ℝ, 0 < x → x ≤ d → |
| 823 | ε ≤ v (p,x)-2 ∧ |
| 824 | ε ≤ directionProjection (s (p,x)) (tilt (T (p,x))) ∧ |
| 825 | ε ≤ directionGap (v (p,x)) (s (p,x)) (tilt (T (p,x))) |
| 826 | |
| 827 | theorem HasStrictDirectionCollar.true_of_speed {K : Set E} (hK : IsCompact K) |
| 828 | {T B : E × ℝ → ℝ × ℝ} {v s : E × ℝ → ℝ} {width : ℝ} |
| 829 | (hdir : HasStrictDirectionCollar K T B v s width) |
| 830 | {O : Set (E × ℝ)} (hO : IsOpen O) (hK0 : K ×ˢ ({0} : Set ℝ) ⊆ O) |
| 831 | (hv : ContinuousOn v O) (hvs : ∀ p ∈ K, 2 < v (p,0)) : |
| 832 | HasTrueDirectionCollar K T B v s width := by |
| 833 | refine ⟨hdir,?_⟩ |
| 834 | obtain ⟨d1,e1,W,hd1,hdw,he1,hW,hKW,hsm,hbd,hactual⟩ := hdir |
| 835 | obtain ⟨d2,e2,hd2,he2,hKO,hvbd⟩ := compact_positive_collar hK hO |
| 836 | (hv.sub continuousOn_const) hK0 (fun p hp => sub_pos.mpr (hvs p hp)) |
| 837 | refine ⟨min d1 d2,min e1 e2,lt_min hd1 hd2,(min_le_left _ _).trans_lt hdw, |
| 838 | lt_min he1 he2,?_⟩ |
| 839 | intro p hp x hx hxd |
| 840 | obtain ⟨_,hproj,hgap⟩ := hactual p hp x hx (hxd.trans (min_le_left _ _)) |
| 841 | exact ⟨(min_le_right _ _).trans (hvbd p hp x ⟨hx.le,hxd.trans (min_le_right _ _)⟩), |
| 842 | (min_le_left _ _).trans hproj,(min_le_left _ _).trans hgap⟩ |
| 843 | |
| 844 | end Directions |
| 845 | |
| 846 | section ActualActivation |
| 847 | |
| 848 | open ProfileHistories StressActivation ActivationCone |
| 849 | |
| 850 | theorem actual_shear_coordinates_smooth (T κ : ℝ) {X0 : ℝ} (hX0 : 0 < X0) |
| 851 | {J : Set ℝ} (hJ : IsOpen J) {L U : Field} |
| 852 | (hL : ContDiffOn ℝ ∞ L (logDomain J hJ).carrier) |
| 853 | (hU : ContDiffOn ℝ ∞ U (logDomain J hJ).carrier) : |
| 854 | ContDiffOn ℝ ∞ (actualP1 T κ L) (logDomain J hJ).carrier ∧ |
| 855 | ContDiffOn ℝ ∞ (actualP2 T κ X0 L U) (logDomain J hJ).carrier := by |
| 856 | obtain ⟨hA,hB⟩ := reference_coordinates_smooth hX0 hJ hL hU |
| 857 | have hD : ContDiffOn ℝ ∞ (fun p : Point => damping T κ p.1) (logDomain J hJ).carrier := |
| 858 | ((damping_smooth T κ).comp contDiff_fst).contDiffOn |
| 859 | have hR := hL.exp.div (activatedAngular_smooth T κ hJ hL) |
| 860 | (fun q _ => (activatedAngular_pos T κ L q).ne') |
| 861 | refine ⟨(hD.mul hA).congr ?_,((hD.mul hB).mul hR).congr ?_⟩ |
| 862 | · rintro ⟨y,η⟩ hη |
| 863 | exact actualP1_eq T κ hJ hL y hη.2 |
| 864 | · rintro ⟨y,η⟩ hη |
| 865 | exact actualP2_eq T κ hX0 hJ hU y hη.2 |
| 866 | |
| 867 | theorem actual_shear_coordinates_zero {T : ℝ} (hT : 0 < T) (κ : ℝ) |
| 868 | {X0 : ℝ} (hX0 : 0 < X0) {J : Set ℝ} (hJ : IsOpen J) {L U : Field} |
| 869 | (hL : ContDiffOn ℝ ∞ L (logDomain J hJ).carrier) |
| 870 | (hU : ContDiffOn ℝ ∞ U (logDomain J hJ).carrier) {η : ℝ} (hη : η ∈ J) : |
| 871 | actualP1 T κ L (0,η) = referenceP1 L (0,η) ∧ |
| 872 | actualP2 T κ X0 L U (0,η) = referenceP2 X0 L U (0,η) := by |
| 873 | have hD : damping T κ 0 = 1 := by rw [damping,activation_zero hT κ le_rfl]; ring |
| 874 | have hF : activatedAngular T κ L (0,η) = referenceAngular L (0,η) := by |
| 875 | simp [activatedAngular,controlled,primitive,referenceAngular] |
| 876 | rw [actualP1_eq T κ hJ hL 0 hη,actualP2_eq T κ hX0 hJ hU 0 hη,hD,hF] |
| 877 | simp [(Real.exp_pos (L (0,η))).ne',referenceAngular] |
| 878 | |
| 879 | theorem actual_shear_domain {T : ℝ} (hT : 0 < T) (κ : ℝ) |
| 880 | {X0 : ℝ} (hX0 : 0 < X0) {J K : Set ℝ} (hJ : IsOpen J) (hKJ : K ⊆ J) |
| 881 | {L U : Field} (hL : ContDiffOn ℝ ∞ L (logDomain J hJ).carrier) |
| 882 | (hU : ContDiffOn ℝ ∞ U (logDomain J hJ).carrier) |
| 883 | (hA0 : ∀ η ∈ K, 0 < referenceP1 L (0,η)) : |
| 884 | ∃ O : Set (ℝ × ℝ), IsOpen O ∧ K ×ˢ ({0} : Set ℝ) ⊆ O ∧ |
| 885 | ContDiffOn ℝ ∞ (fun q : ℝ × ℝ => shearSize T κ X0 L U (q.2,q.1)) O ∧ |
| 886 | ContDiffOn ℝ ∞ (fun q : ℝ × ℝ => shearSlope T κ X0 L U (q.2,q.1)) O := by |
| 887 | obtain ⟨hA,hB⟩ := actual_shear_coordinates_smooth T κ hX0 hJ hL hU |
| 888 | have hm : MapsTo (fun q : ℝ × ℝ => (q.2,q.1)) (J ×ˢ (univ : Set ℝ)) |
| 889 | (logDomain J hJ).carrier := fun q hq => ⟨mem_univ _,hq.1⟩ |
| 890 | have hAs := hA.comp (contDiff_snd.prodMk contDiff_fst).contDiffOn hm |
| 891 | have hBs := hB.comp (contDiff_snd.prodMk contDiff_fst).contDiffOn hm |
| 892 | let O := {q : ℝ × ℝ | q ∈ J ×ˢ (univ : Set ℝ) ∧ 0 < actualP1 T κ L (q.2,q.1)} |
| 893 | have hO : IsOpen O := positive_domain_open (hJ.prod isOpen_univ) hAs.continuousOn |
| 894 | have hAO := hAs.mono (show O ⊆ J ×ˢ (univ : Set ℝ) from fun _ hq => hq.1) |
| 895 | have hBO := hBs.mono (show O ⊆ J ×ˢ (univ : Set ℝ) from fun _ hq => hq.1) |
| 896 | have hn : ∀ q ∈ O, actualP1 T κ L (q.2,q.1) ≠ 0 := fun q hq => hq.2.ne' |
| 897 | refine ⟨O,hO,?_,hAO.add ((hBO.pow 2).div hAO hn),hBO.div hAO hn⟩ |
| 898 | rintro ⟨η,x⟩ ⟨hη,hx⟩ |
| 899 | have hx0 : x = 0 := hx |
| 900 | subst x |
| 901 | refine ⟨⟨hKJ hη,mem_univ _⟩,?_⟩ |
| 902 | rw [(actual_shear_coordinates_zero hT κ hX0 hJ hL hU (hKJ hη)).1] |
| 903 | exact hA0 η hη |
| 904 | |
| 905 | /-- Fixed activation parameters expose the actual Gaussian coefficient `T²`. |
| 906 | The coefficient is smooth through the attachment. -/ |
| 907 | noncomputable def activationCoefficient (T κ : ℝ) (D : ActivationBounds.ScaledPoint → ℝ × ℝ) |
| 908 | (q : ℝ × ℝ) : ℝ × ℝ := |
| 909 | ((1-κ) / stepDenominator T q.2) • D ((κ,T),(q.2/T,q.1)) |
| 910 | |
| 911 | theorem activationCoefficient_smooth {J : Set ℝ} (T κ : ℝ) |
| 912 | {D : ActivationBounds.ScaledPoint → ℝ × ℝ} |
| 913 | (hD : ContDiffOn ℝ ∞ D (ActivationBounds.scaledDomain J)) : |
| 914 | ContDiffOn ℝ ∞ (activationCoefficient T κ D) (J ×ˢ (univ : Set ℝ)) := by |
| 915 | have hm : ContDiff ℝ ∞ (fun q : ℝ × ℝ => ((κ,T),(q.2/T,q.1))) := |
| 916 | contDiff_const.prodMk ((contDiff_snd.div_const T).prodMk contDiff_fst) |
| 917 | have hmap : MapsTo (fun q : ℝ × ℝ => ((κ,T),(q.2/T,q.1))) |
| 918 | (J ×ˢ (univ : Set ℝ)) (ActivationBounds.scaledDomain J) := |
| 919 | fun q hq => ⟨mem_univ _,mem_univ _,hq.1⟩ |
| 920 | have hb := hD.comp hm.contDiffOn hmap |
| 921 | exact (contDiffOn_const.div ((stepDenominator_smooth T).comp contDiff_snd).contDiffOn |
| 922 | (fun q _ => (stepDenominator_pos T q.2).ne')).smul hb |
| 923 | |
| 924 | theorem activationCoefficient_edge {T κ : ℝ} |
| 925 | {D : ActivationBounds.ScaledPoint → ℝ × ℝ} (η : ℝ) : |
| 926 | activationCoefficient T κ D (η,0) = ((1-κ) / stepDenominator T 0) • D ((κ,T),(0,η)) := by |
| 927 | simp only [activationCoefficient,zero_div] |
| 928 | |
| 929 | /-- This is the factor in the actual activation stress identity, after its |
| 930 | scaled coordinate is converted back to the logarithmic edge distance. -/ |
| 931 | noncomputable def activationEdgeFactor {J K : Set ℝ} (hJ : IsOpen J) (hKJ : K ⊆ J) |
| 932 | {T κ d : ℝ} (hT : 0 < T) (hκ : κ < 1) (hd : 0 < d) |
| 933 | {D : ActivationBounds.ScaledPoint → ℝ × ℝ} |
| 934 | (hD : ContDiffOn ℝ ∞ D (ActivationBounds.scaledDomain J)) |
| 935 | (hD0 : ∀ η ∈ K, D ((κ,T),(0,η)) ≠ 0) {S : ℝ × ℝ → ℝ × ℝ} |
| 936 | (hfactor : ∀ u η : ℝ, T*u ∈ Icc (0 : ℝ) d → η ∈ K → |
| 937 | S (T*u,η) = (activation 1 κ u * (D ((κ,T),(u,η))).1, |
| 938 | activation 1 κ u * (D ((κ,T),(u,η))).2)) : |
| 939 | EdgeFactor K (T^2) (fun q => S (q.2,q.1)) where |
| 940 | coefficient := activationCoefficient T κ D |
| 941 | order := 0 |
| 942 | width := d |
| 943 | width_pos := hd |
| 944 | domain := J ×ˢ (univ : Set ℝ) |
| 945 | domain_open := hJ.prod isOpen_univ |
| 946 | boundary_mem := fun q hq => ⟨hKJ hq.1,mem_univ _⟩ |
| 947 | smooth := activationCoefficient_smooth T κ hD |
| 948 | boundary_ne_zero := by |
| 949 | intro η hη |
| 950 | rw [activationCoefficient_edge] |
| 951 | exact smul_ne_zero (div_pos (sub_pos.mpr hκ) (stepDenominator_pos T 0)).ne' (hD0 η hη) |
| 952 | identity := by |
| 953 | intro η hη x hx hxd |
| 954 | have hTx : T*(x/T)=x := by field_simp |
| 955 | have hf := hfactor (x/T) η (by rw [hTx]; exact ⟨hx.le,hxd.le⟩) hη |
| 956 | rw [hTx] at hf |
| 957 | have ha : activation 1 κ (x/T) = activation T κ x := by |
| 958 | rw [← ActivationBounds.activation_scaled hT.ne',hTx] |
| 959 | rw [ha,activation_flat_form hT] at hf |
| 960 | rw [hf] |
| 961 | ext <;> simp only [activationCoefficient,pow_zero,div_one,Prod.smul_fst,Prod.smul_snd,smul_eq_mul] |
| 962 | <;> ring |
| 963 | |
| 964 | theorem exists_natural_activation_factor {h j σ Λ C : ℝ} {P0 : ℝ → ℝ} |
| 965 | {d : NaturalAxisCoefficients.AnalyticInputs h j σ P0} |
| 966 | (hΛ : 0 < Λ) (F : NaturalEntrance.EntranceProfile d Λ C) |
| 967 | (hP0 : ContDiff ℝ ∞ P0) (hsmall : NaturalAxisData.SmallParameters h j) |
| 968 | {δ : ℝ} (hδ : 0 < δ) (hδlim : 2*δ < ReferencePath.rampLimit) |
| 969 | {T κ : ℝ} (hT : 0 < T) (hκ : κ < 1) : |
| 970 | let N := ReferencePath.Input.ofNatural hΛ F.profile.family |
| 971 | let L := FromReference.refLog N δ |
| 972 | let U := FromReference.refAxial N δ |
| 973 | let I := ActivationStocks.FromReference.initial N hδ hδlim P0 hP0 |
| 974 | Nonempty (EdgeFactor (Icc (-1 : ℝ) 1) (T^2) |
| 975 | (fun q => activatedStress h N.endpoint I L U T κ (q.2,q.1))) := by |
| 976 | dsimp only |
| 977 | obtain ⟨D,ε,hD,hε,hbound,hfactor⟩ := natural_activation_direction hΛ F hP0 hsmall hδ hδlim |
| 978 | refine ⟨activationEdgeFactor ReferencePath.parameterInterval_open |
| 979 | NaturalAxisCoefficients.original_interval_interior hT hκ hδ hD ?_ (hfactor T hT κ)⟩ |
| 980 | intro η hη he |
| 981 | have hh := (hbound κ T η hη).1 |
| 982 | rw [he] at hh |
| 983 | change ε ≤ 0 at hh |
| 984 | linarith |
| 985 | |
| 986 | /-- The coefficient is constructed from the actual reference histories. Its |
| 987 | boundary tilt is exactly the reference shear tilt, rather than an assumed |
| 988 | directional estimate. -/ |
| 989 | theorem exists_natural_activation_factor_aligned {h j σ Λ C : ℝ} {P0 : ℝ → ℝ} |
| 990 | {d : NaturalAxisCoefficients.AnalyticInputs h j σ P0} |
| 991 | (hΛ : 0 < Λ) (F : NaturalEntrance.EntranceProfile d Λ C) |
| 992 | (hP0 : ContDiff ℝ ∞ P0) (hsmall : NaturalAxisData.SmallParameters h j) |
| 993 | {δ : ℝ} (hδ : 0 < δ) (hδlim : 2*δ < ReferencePath.rampLimit) |
| 994 | {T κ : ℝ} (hT : 0 < T) (hκ : κ < 1) : |
| 995 | let N := ReferencePath.Input.ofNatural hΛ F.profile.family |
| 996 | let L := FromReference.refLog N δ |
| 997 | let U := FromReference.refAxial N δ |
| 998 | let I := ActivationStocks.FromReference.initial N hδ hδlim P0 hP0 |
| 999 | ∃ G : EdgeFactor (Icc (-1 : ℝ) 1) (T^2) |
| 1000 | (fun q => activatedStress h N.endpoint I L U T κ (q.2,q.1)), |
| 1001 | (∀ η ∈ Icc (-1 : ℝ) 1, 0 < (G.coefficient (η,0)).1) ∧ |
| 1002 | ∀ η ∈ Icc (-1 : ℝ) 1, tilt (G.coefficient (η,0)) = |
| 1003 | referenceP2 N.endpoint L U (0,η) / referenceP1 L (0,η) := by |
| 1004 | let N := ReferencePath.Input.ofNatural hΛ F.profile.family |
| 1005 | let L := FromReference.refLog N δ |
| 1006 | let U := FromReference.refAxial N δ |
| 1007 | let I := ActivationStocks.FromReference.initial N hδ hδlim P0 hP0 |
| 1008 | have hL := FromReference.refLog_smooth N hδ hδlim |
| 1009 | have hU := FromReference.refAxial_smooth N hδ hδlim |
| 1010 | have hi := ActivationStocks.FromReference.initial_smooth N hδ hδlim P0 hP0 |
| 1011 | have hKJ : Icc (-1 : ℝ) 1 ⊆ ReferencePath.parameterInterval := |
| 1012 | NaturalAxisCoefficients.original_interval_interior |
| 1013 | have hcoef : ∀ η ∈ ReferencePath.parameterInterval, NaturalAxisData.L h η ≠ 0 := by |
| 1014 | intro η hη |
| 1015 | exact (NaturalAxisCoefficients.L_pos_on_window (NaturalAxisRange.ofSmall hsmall) ⟨hη.1.le,hη.2.le⟩).ne' |
| 1016 | have hm : ∀ y ∈ Icc (0 : ℝ) δ, ∀ η ∈ Icc (-1 : ℝ) 1, |
| 1017 | ActivationStocks.logViewOne h N.endpoint (referenceAngular L) |
| 1018 | (logHistory N.endpoint I (referenceAngular L) U) (y,η) = referenceP1 L (y,η) ∧ |
| 1019 | ActivationStocks.logViewTwo h N.endpoint (referenceAngular L) U |
| 1020 | (logHistory N.endpoint I (referenceAngular L) U) (y,η) = referenceP2 N.endpoint L U (y,η) := by |
| 1021 | intro y hy η hη |
| 1022 | exact natural_reference_log_match hΛ F.profile.family hP0 hsmall hδ hδlim hy.2 hη |
| 1023 | obtain ⟨D,hD,hedge,hfactor⟩ := exists_actual_stress_direction h N.endpoint_pos I |
| 1024 | ReferencePath.parameterInterval_open hKJ hL hU hi hcoef hm |
| 1025 | obtain ⟨τ,α,M,hτ,_,hα,_,hb⟩ := natural_reference_bounds hΛ F hδ hδlim |
| 1026 | have hApos : ∀ η ∈ Icc (-1 : ℝ) 1, 0 < referenceP1 L (0,η) := by |
| 1027 | intro η hη |
| 1028 | exact hα.trans_le (hb 0 ⟨le_rfl,hτ.le⟩ η hη).1 |
| 1029 | have hDfirst : ∀ η ∈ Icc (-1 : ℝ) 1, 0 < (D ((κ,T),(0,η))).1 := by |
| 1030 | intro η hη |
| 1031 | rw [hedge] |
| 1032 | exact mul_pos (Real.exp_pos _) (hApos η hη) |
| 1033 | have hD0 : ∀ η ∈ Icc (-1 : ℝ) 1, D ((κ,T),(0,η)) ≠ 0 := by |
| 1034 | intro η hη he |
| 1035 | have hh := hDfirst η hη |
| 1036 | rw [he] at hh |
| 1037 | exact lt_irrefl 0 hh |
| 1038 | let G := activationEdgeFactor ReferencePath.parameterInterval_open hKJ hT hκ hδ hD hD0 |
| 1039 | (hfactor T hT κ) |
| 1040 | refine ⟨G,?_,?_⟩ |
| 1041 | · intro η hη |
| 1042 | change 0 < (activationCoefficient T κ D (η,0)).1 |
| 1043 | rw [activationCoefficient_edge,Prod.smul_fst,smul_eq_mul] |
| 1044 | exact mul_pos (div_pos (sub_pos.mpr hκ) (stepDenominator_pos T 0)) (hDfirst η hη) |
| 1045 | · intro η hη |
| 1046 | change tilt (activationCoefficient T κ D (η,0)) = _ |
| 1047 | rw [activationCoefficient_edge,tilt_smul |
| 1048 | (div_pos (sub_pos.mpr hκ) (stepDenominator_pos T 0)).ne',hedge] |
| 1049 | exact mul_div_mul_left _ _ (Real.exp_pos _).ne' |
| 1050 | |
| 1051 | /-- The initial ACT stress has a genuine smooth unit-direction extension and |
| 1052 | a strict cone margin relative to its actual shear. -/ |
| 1053 | theorem natural_activation_strict_direction {h j σ Λ C : ℝ} {P0 : ℝ → ℝ} |
| 1054 | {d : NaturalAxisCoefficients.AnalyticInputs h j σ P0} |
| 1055 | (hΛ : 0 < Λ) (F : NaturalEntrance.EntranceProfile d Λ C) |
| 1056 | (hP0 : ContDiff ℝ ∞ P0) (hsmall : NaturalAxisData.SmallParameters h j) |
| 1057 | {δ : ℝ} (hδ : 0 < δ) (hδlim : 2*δ < ReferencePath.rampLimit) |
| 1058 | {T κ : ℝ} (hT : 0 < T) (hκ : κ < 1) : |
| 1059 | let N := ReferencePath.Input.ofNatural hΛ F.profile.family |
| 1060 | let L := FromReference.refLog N δ |
| 1061 | let U := FromReference.refAxial N δ |
| 1062 | let I := ActivationStocks.FromReference.initial N hδ hδlim P0 hP0 |
| 1063 | let S := fun q : ℝ × ℝ => activatedStress h N.endpoint I L U T κ (q.2,q.1) |
| 1064 | ∃ G : EdgeFactor (Icc (-1 : ℝ) 1) (T^2) S, |
| 1065 | HasStrictDirectionCollar (Icc (-1 : ℝ) 1) S G.coefficient |
| 1066 | (fun q => shearSize T κ N.endpoint L U (q.2,q.1)) |
| 1067 | (fun q => shearSlope T κ N.endpoint L U (q.2,q.1)) G.width := by |
| 1068 | let N := ReferencePath.Input.ofNatural hΛ F.profile.family |
| 1069 | let L := FromReference.refLog N δ |
| 1070 | let U := FromReference.refAxial N δ |
| 1071 | have hL := FromReference.refLog_smooth N hδ hδlim |
| 1072 | have hU := FromReference.refAxial_smooth N hδ hδlim |
| 1073 | have hKJ : Icc (-1 : ℝ) 1 ⊆ ReferencePath.parameterInterval := |
| 1074 | NaturalAxisCoefficients.original_interval_interior |
| 1075 | obtain ⟨G,hGfirst,hGalign⟩ := exists_natural_activation_factor_aligned hΛ F hP0 hsmall hδ hδlim hT hκ |
| 1076 | obtain ⟨τ,α,M,hτ,_,hα,_,hb⟩ := natural_reference_bounds hΛ F hδ hδlim |
| 1077 | have hA0 : ∀ η ∈ Icc (-1 : ℝ) 1, 0 < referenceP1 L (0,η) := by |
| 1078 | intro η hη |
| 1079 | exact hα.trans_le (hb 0 ⟨le_rfl,hτ.le⟩ η hη).1 |
| 1080 | obtain ⟨O,hO,hKO,hv,hs⟩ := actual_shear_domain hT κ N.endpoint_pos |
| 1081 | ReferencePath.parameterInterval_open hKJ hL hU hA0 |
| 1082 | refine ⟨G,G.aligned_collar isCompact_Icc hGfirst hO hKO hv.continuousOn hs.continuousOn ?_⟩ |
| 1083 | intro η hη |
| 1084 | obtain ⟨hAz,hBz⟩ := actual_shear_coordinates_zero hT κ N.endpoint_pos |
| 1085 | ReferencePath.parameterInterval_open hL hU (hKJ hη) |
| 1086 | rw [hGalign η hη] |
| 1087 | change referenceP2 N.endpoint L U (0,η) / referenceP1 L (0,η) = |
| 1088 | actualP2 T κ N.endpoint L U (0,η) / actualP1 T κ L (0,η) |
| 1089 | rw [hAz,hBz] |
| 1090 | |
| 1091 | theorem natural_activation_true_direction {h j σ Λ C : ℝ} {P0 : ℝ → ℝ} |
| 1092 | {d : NaturalAxisCoefficients.AnalyticInputs h j σ P0} |
| 1093 | (hΛ : 0 < Λ) (F : NaturalEntrance.EntranceProfile d Λ C) |
| 1094 | (hP0 : ContDiff ℝ ∞ P0) (hsmall : NaturalAxisData.SmallParameters h j) |
| 1095 | {δ : ℝ} (hδ : 0 < δ) (hδlim : 2*δ < ReferencePath.rampLimit) |
| 1096 | {T κ : ℝ} (hT : 0 < T) (hκ : κ < 1) : |
| 1097 | let N := ReferencePath.Input.ofNatural hΛ F.profile.family |
| 1098 | let L := FromReference.refLog N δ |
| 1099 | let U := FromReference.refAxial N δ |
| 1100 | let I := ActivationStocks.FromReference.initial N hδ hδlim P0 hP0 |
| 1101 | let S := fun q : ℝ × ℝ => activatedStress h N.endpoint I L U T κ (q.2,q.1) |
| 1102 | ∃ G : EdgeFactor (Icc (-1 : ℝ) 1) (T^2) S, |
| 1103 | HasTrueDirectionCollar (Icc (-1 : ℝ) 1) S G.coefficient |
| 1104 | (fun q => shearSize T κ N.endpoint L U (q.2,q.1)) |
| 1105 | (fun q => shearSlope T κ N.endpoint L U (q.2,q.1)) G.width := by |
| 1106 | let N := ReferencePath.Input.ofNatural hΛ F.profile.family |
| 1107 | let L := FromReference.refLog N δ |
| 1108 | let U := FromReference.refAxial N δ |
| 1109 | have hL := FromReference.refLog_smooth N hδ hδlim |
| 1110 | have hU := FromReference.refAxial_smooth N hδ hδlim |
| 1111 | have hKJ : Icc (-1 : ℝ) 1 ⊆ ReferencePath.parameterInterval := |
| 1112 | NaturalAxisCoefficients.original_interval_interior |
| 1113 | obtain ⟨G,hdir⟩ := natural_activation_strict_direction hΛ F hP0 hsmall hδ hδlim hT hκ |
| 1114 | obtain ⟨τ,α,M,hτ,_,hα,_,hb⟩ := natural_reference_bounds hΛ F hδ hδlim |
| 1115 | have hA0 : ∀ η ∈ Icc (-1 : ℝ) 1, 0 < referenceP1 L (0,η) := by |
| 1116 | intro η hη |
| 1117 | exact hα.trans_le (hb 0 ⟨le_rfl,hτ.le⟩ η hη).1 |
| 1118 | obtain ⟨O,hO,hKO,hv,hs⟩ := actual_shear_domain hT κ N.endpoint_pos |
| 1119 | ReferencePath.parameterInterval_open hKJ hL hU hA0 |
| 1120 | refine ⟨G,hdir.true_of_speed isCompact_Icc hO hKO hv.continuousOn ?_⟩ |
| 1121 | intro η hη |
| 1122 | obtain ⟨hAz,hBz⟩ := actual_shear_coordinates_zero hT κ N.endpoint_pos |
| 1123 | ReferencePath.parameterInterval_open hL hU (hKJ hη) |
| 1124 | change 2 < shearSize T κ N.endpoint L U (0,η) |
| 1125 | unfold shearSize |
| 1126 | rw [hAz,hBz] |
| 1127 | have hh := (hb 0 ⟨le_rfl,hτ.le⟩ η hη).2.1 |
| 1128 | linarith |
| 1129 | |
| 1130 | end ActualActivation |
| 1131 | |
| 1132 | section ActualTerminal |
| 1133 | |
| 1134 | open TerminalEdgeFactor OutgoingTail |
| 1135 | |
| 1136 | /-- The actual terminal stress uses coefficient `4` and inverse-cubic order. |
| 1137 | The smooth factor is defined through the closed parameter endpoints. -/ |
| 1138 | noncomputable def terminalEdgeFactor {C : ℝ} (hC : 0 < C) (d : TailData) (y0 w : ℝ) (hw : 0 < w) : |
| 1139 | EdgeFactor (Icc (-1 : ℝ) 1) 4 (profileStress C d y0) where |
| 1140 | coefficient := profileStressFactor C d y0 |
| 1141 | order := 3 |
| 1142 | width := w |
| 1143 | width_pos := hw |
| 1144 | domain := univ |
| 1145 | domain_open := isOpen_univ |
| 1146 | boundary_mem := subset_univ _ |
| 1147 | smooth := (profileStressFactor_contDiff C d y0).contDiffOn |
| 1148 | boundary_ne_zero := fun _ hη => profileStressFactor_zero_ne hC d y0 hη |
| 1149 | identity := fun η _ x _ _ => profileStress_factorization C d y0 (η,x) |
| 1150 | |
| 1151 | theorem terminal_strict_direction {C : ℝ} (hC : 0 < C) (d : TailData) (y0 : ℝ) : |
| 1152 | HasStrictDirectionCollar (Icc (-1 : ℝ) 1) (profileStress C d y0) |
| 1153 | (profileStressFactor C d y0) (profileSpeed C d y0) (fun _ => 0) 1 := by |
| 1154 | let F := terminalEdgeFactor hC d y0 1 zero_lt_one |
| 1155 | have hfirst : ∀ η ∈ Icc (-1 : ℝ) 1, 0 < (F.coefficient (η,0)).1 := by |
| 1156 | intro η hη |
| 1157 | exact profileAngularFactor_zero_pos hC d y0 hη |
| 1158 | have hK0 : Icc (-1 : ℝ) 1 ×ˢ ({0} : Set ℝ) ⊆ profileDomain C d y0 := |
| 1159 | fun q hq => profileDomain_contains_closed hC d y0 ⟨hq.1,mem_univ _⟩ |
| 1160 | apply F.aligned_collar isCompact_Icc hfirst (profileDomain_open C d y0) hK0 |
| 1161 | (profileSpeed_contDiffOn C d y0).continuousOn continuousOn_const |
| 1162 | intro η hη |
| 1163 | change tilt (profileStressFactor C d y0 (η,0)) = 0 |
| 1164 | rw [profileStressFactor_zero] |
| 1165 | exact zero_div _ |
| 1166 | |
| 1167 | theorem terminal_true_direction {C : ℝ} (hC : 0 < C) (d : TailData) (y0 : ℝ) : |
| 1168 | HasTrueDirectionCollar (Icc (-1 : ℝ) 1) (profileStress C d y0) |
| 1169 | (profileStressFactor C d y0) (profileSpeed C d y0) (fun _ => 0) 1 := |
| 1170 | (terminal_strict_direction hC d y0).true_of_speed isCompact_Icc (profileDomain_open C d y0) |
| 1171 | (fun _ hq => profileDomain_contains_closed hC d y0 ⟨hq.1,mem_univ _⟩) |
| 1172 | (profileSpeed_contDiffOn C d y0).continuousOn |
| 1173 | (fun _ hη => profileSpeed_zero_gt_two hC d y0 hη) |
| 1174 | |
| 1175 | end ActualTerminal |
| 1176 | |
| 1177 | section ActualJoin |
| 1178 | |
| 1179 | open ProfileHistories StressActivation ActivationCone TerminalEdgeFactor OutgoingTail |
| 1180 | |
| 1181 | /-- Equation (20) for a joined nominal stress with exact ACT and terminal |
| 1182 | edge identities. The only remaining global inputs are genuine smoothness |
| 1183 | and interior nonvanishing of that joined stress. -/ |
| 1184 | theorem actual_edge_join {h j σ Λ C : ℝ} {P0 : ℝ → ℝ} |
| 1185 | {d : NaturalAxisCoefficients.AnalyticInputs h j σ P0} |
| 1186 | (hΛ : 0 < Λ) (F : NaturalEntrance.EntranceProfile d Λ C) |
| 1187 | (hP0 : ContDiff ℝ ∞ P0) (hsmall : NaturalAxisData.SmallParameters h j) |
| 1188 | {δ : ℝ} (hδ : 0 < δ) (hδlim : 2*δ < ReferencePath.rampLimit) |
| 1189 | {T κ : ℝ} (hT : 0 < T) (hκ : κ < 1) |
| 1190 | {Ct : ℝ} (hCt : 0 < Ct) (dt : TailData) (y0 : ℝ) |
| 1191 | {a b : ℝ} (hab : a < b) {S : ℝ × ℝ → ℝ × ℝ} {O : Set (ℝ × ℝ)} |
| 1192 | (hO : IsOpen O) (hS : ContDiffOn ℝ ∞ S O) |
| 1193 | (hSO : Icc (-1 : ℝ) 1 ×ˢ Icc a b ⊆ O) |
| 1194 | (hinterior : ∀ η ∈ Icc (-1 : ℝ) 1, ∀ y ∈ Ioo a b, S (η,y) ≠ 0) |
| 1195 | {wL wR : ℝ} (hwL : 0 < wL) (hwR : 0 < wR) : |
| 1196 | let N := ReferencePath.Input.ofNatural hΛ F.profile.family |
| 1197 | let L := FromReference.refLog N δ |
| 1198 | let U := FromReference.refAxial N δ |
| 1199 | let I := ActivationStocks.FromReference.initial N hδ hδlim P0 hP0 |
| 1200 | (∀ η ∈ Icc (-1 : ℝ) 1, ∀ x : ℝ, 0 < x → x < wL → |
| 1201 | leftChart a S (η,x) = activatedStress h N.endpoint I L U T κ (x,η)) → |
| 1202 | (∀ η ∈ Icc (-1 : ℝ) 1, ∀ x : ℝ, 0 < x → x < wR → |
| 1203 | rightChart b S (η,x) = profileStress Ct dt y0 (η,x)) → |
| 1204 | WeightedBounds (Icc (-1 : ℝ) 1) (T^2) a b S := by |
| 1205 | dsimp only |
| 1206 | intro hleft hright |
| 1207 | obtain ⟨FL0⟩ := exists_natural_activation_factor hΛ F hP0 hsmall hδ hδlim hT hκ |
| 1208 | let FL : EdgeFactor (Icc (-1 : ℝ) 1) (T^2) (leftChart a S) := |
| 1209 | FL0.transfer (lt_min hwL FL0.width_pos) (min_le_right wL FL0.width) |
| 1210 | (fun η hη x hx hxw => hleft η hη x hx (hxw.trans_le (min_le_left _ _))) |
| 1211 | let FR0 := terminalEdgeFactor hCt dt y0 wR hwR |
| 1212 | let FR : EdgeFactor (Icc (-1 : ℝ) 1) 4 (rightChart b S) := FR0.transfer hwR le_rfl hright |
| 1213 | exact weightedBounds_of_edge_factors isCompact_Icc (uniqueDiffOn_Icc (by norm_num)) |
| 1214 | hab (sq_pos_of_pos hT) hO hS hSO hinterior FL FR |
| 1215 | |
| 1216 | end ActualJoin |
| 1217 | |
| 1218 | end NavierStokes.ActiveAnnulusWeight |
| 1219 | |
| 1220 | end |