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.StressActivation |
| 2 | |
| 3 | /-! |
| 4 | # Bounds for a shrinking activation ramp |
| 5 | |
| 6 | The clock `u = y / T` keeps the cutoff fixed while the width tends to zero. |
| 7 | All error factors below are actual transformed integrals and are smooth at |
| 8 | `T = 0`. Compactness therefore gives width-uniform parameter-jet estimates. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace NavierStokes.ActivationBounds |
| 14 | |
| 15 | open Set Filter MeasureTheory Metric ProfileHistories StressActivation |
| 16 | open scoped Topology ContDiff |
| 17 | |
| 18 | section ParameterFactor |
| 19 | |
| 20 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 21 | |
| 22 | noncomputable def parameterCoefficient (B : E × Point → ℝ) (q : (E × ℝ) × ℝ) : ℝ := |
| 23 | B (q.1.1, (q.2, q.1.2)) / stepDenominator 1 q.2 |
| 24 | |
| 25 | noncomputable def parameterFactor (B : E × Point → ℝ) (q : E × Point) : ℝ := |
| 26 | q.2.1 ^ 2 * stepDenominator 1 q.2.1 * |
| 27 | ParametricFlatFactor.factor 1 0 (parameterCoefficient B) ((q.1, q.2.2), q.2.1) |
| 28 | |
| 29 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] in |
| 30 | theorem parameterFactor_eq (B : E × Point → ℝ) (q : E) (p : Point) : |
| 31 | parameterFactor B (q, p) = primitiveFactor 1 (fun z => B (q, z)) p := by |
| 32 | simp only [parameterFactor, primitiveFactor, one_pow] |
| 33 | rfl |
| 34 | |
| 35 | theorem parameterFactor_smooth {S : Set E} (hS : IsOpen S) {J : Set ℝ} (hJ : IsOpen J) |
| 36 | {B : E × Point → ℝ} (hB : ContDiffOn ℝ ∞ B (S ×ˢ (univ ×ˢ J))) : |
| 37 | ContDiffOn ℝ ∞ (parameterFactor B) (S ×ˢ (univ ×ˢ J)) := by |
| 38 | have hb : ContDiffOn ℝ ∞ (parameterCoefficient B) ((S ×ˢ J) ×ˢ (univ : Set ℝ)) := |
| 39 | (hB.comp (contDiff_fst.fst.prodMk (contDiff_snd.prodMk contDiff_fst.snd)).contDiffOn |
| 40 | (fun _ hp => ⟨hp.1.1, mem_univ _, hp.1.2⟩)).div |
| 41 | ((stepDenominator_smooth 1).comp contDiff_snd).contDiffOn |
| 42 | (fun q _ => (stepDenominator_pos 1 q.2).ne') |
| 43 | have hf := flatFactor_local (by norm_num : (0 : ℝ) < 1) 0 (hS.prod hJ) hb |
| 44 | exact ((contDiff_snd.fst.pow 2).mul |
| 45 | ((stepDenominator_smooth 1).comp contDiff_snd.fst)).contDiffOn.mul |
| 46 | (hf.comp ((contDiff_fst.prodMk contDiff_snd.snd).prodMk contDiff_snd.fst).contDiffOn |
| 47 | (fun _ hp => ⟨⟨hp.1, hp.2.2⟩, mem_univ _⟩)) |
| 48 | |
| 49 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] in |
| 50 | @[simp] theorem parameterFactor_zero (B : E × Point → ℝ) (q : E) (η : ℝ) : |
| 51 | parameterFactor B (q, (0, η)) = 0 := by simp [parameterFactor] |
| 52 | |
| 53 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] in |
| 54 | theorem parameterFactor_identity (B : E × Point → ℝ) (q : E) (κ : ℝ) (p : Point) : |
| 55 | weightedPrimitive 1 κ (fun z => B (q, z)) p = |
| 56 | p.1 * activation 1 κ p.1 * parameterFactor B (q, p) := by |
| 57 | rw [parameterFactor_eq] |
| 58 | exact weightedPrimitive_factorization (by norm_num) κ _ p |
| 59 | |
| 60 | omit [FiniteDimensional ℝ E] in |
| 61 | /-- A compact family bounds genuine parameter derivatives, with no restriction |
| 62 | on the number of auxiliary parameters. -/ |
| 63 | theorem compact_parameter_jet_bound {S Q : Set E} (hS : IsOpen S) (hQ : IsCompact Q) |
| 64 | (hQS : Q ⊆ S) {J K : Set ℝ} (hJ : IsOpen J) (hK : IsCompact K) (hKJ : K ⊆ J) |
| 65 | {H : E × Point → ℝ} (hH : ContDiffOn ℝ ∞ H (S ×ˢ (univ ×ˢ J))) (n : ℕ) : |
| 66 | ∃ M : ℝ, 0 ≤ M ∧ ∀ q ∈ Q, ∀ u ∈ Icc (0 : ℝ) 1, ∀ η ∈ K, |
| 67 | |iteratedDeriv n (fun ξ => H (q, (u, ξ))) η| ≤ M := by |
| 68 | have hc : ContinuousOn |
| 69 | (fun z : E × Point => iteratedFDeriv ℝ n (fun ξ => H (z.1, (z.2.1, ξ))) z.2.2) |
| 70 | (S ×ˢ (univ ×ˢ J)) := by |
| 71 | intro z hz |
| 72 | have hp : ContDiffAt ℝ ∞ (fun w : (E × ℝ) × ℝ => H (w.1.1, (w.1.2, w.2))) |
| 73 | ((z.1, z.2.1), z.2.2) := |
| 74 | (hH.contDiffAt ((hS.prod (isOpen_univ.prod hJ)).mem_nhds hz)).comp _ |
| 75 | (contDiffAt_fst.fst.prodMk (contDiffAt_fst.snd.prodMk contDiffAt_snd)) |
| 76 | have hd := ParametricFlatFactor.contDiffAt_partial_iteratedFDeriv |
| 77 | (fun (v : E × ℝ) ξ => H (v.1, (v.2, ξ))) n (z.1, z.2.1) z.2.2 hp |
| 78 | exact ((hd.comp z ((contDiffAt_fst.prodMk contDiffAt_snd.fst).prodMk |
| 79 | contDiffAt_snd.snd)).continuousAt).continuousWithinAt |
| 80 | obtain ⟨M, hM⟩ := (hQ.prod (isCompact_Icc.prod hK)).exists_bound_of_continuousOn |
| 81 | (hc.mono (fun z hz => ⟨hQS hz.1, mem_univ _, hKJ hz.2.2⟩)) |
| 82 | refine ⟨max M 0, le_max_right _ _, ?_⟩ |
| 83 | intro q hq u hu η hη |
| 84 | have hb := hM (q, (u, η)) ⟨hq, hu, hη⟩ |
| 85 | rw [norm_iteratedFDeriv_eq_norm_iteratedDeriv, Real.norm_eq_abs] at hb |
| 86 | exact hb.trans (le_max_left _ _) |
| 87 | |
| 88 | end ParameterFactor |
| 89 | |
| 90 | abbrev ScaledPoint := (ℝ × ℝ) × Point |
| 91 | |
| 92 | noncomputable def scaledDomain (J : Set ℝ) : Set ScaledPoint := univ ×ˢ (univ ×ˢ J) |
| 93 | |
| 94 | theorem scaledDomain_open {J : Set ℝ} (hJ : IsOpen J) : IsOpen (scaledDomain J) := |
| 95 | isOpen_univ.prod (isOpen_univ.prod hJ) |
| 96 | |
| 97 | /-- The auxiliary parameters are `(κ,T)` and the point is `(u,η)`. -/ |
| 98 | noncomputable def rescale (F : Field) (q : ScaledPoint) : ℝ := |
| 99 | F (q.1.2 * q.2.1, q.2.2) |
| 100 | |
| 101 | theorem rescale_smooth {J : Set ℝ} (hJ : IsOpen J) {F : Field} |
| 102 | (hF : ContDiffOn ℝ ∞ F (logDomain J hJ).carrier) : |
| 103 | ContDiffOn ℝ ∞ (rescale F) (scaledDomain J) := |
| 104 | hF.comp ((contDiff_fst.snd.mul contDiff_snd.fst).prodMk contDiff_snd.snd).contDiffOn |
| 105 | (fun _ hp => ⟨mem_univ _, hp.2.2⟩) |
| 106 | |
| 107 | noncomputable def scaledDistance (q : ScaledPoint) : ℝ := |
| 108 | q.1.2 * q.2.1 * activation 1 q.1.1 q.2.1 |
| 109 | |
| 110 | theorem scaledDistance_smooth : ContDiff ℝ ∞ scaledDistance := by |
| 111 | exact (contDiff_fst.snd.mul contDiff_snd.fst).mul |
| 112 | ((contDiff_const.sub contDiff_fst.fst).mul |
| 113 | (OutgoingSchedule.sigma_contDiff.comp (contDiff_snd.fst.div_const 1))) |
| 114 | |
| 115 | theorem activation_scaled {T : ℝ} (hT : T ≠ 0) (κ u : ℝ) : |
| 116 | activation T κ (T * u) = activation 1 κ u := by |
| 117 | simp [activation, mul_div_cancel_left₀ u hT] |
| 118 | |
| 119 | theorem primitive_rescaled (T : ℝ) (F : Field) (u η : ℝ) : |
| 120 | primitive F (T * u, η) = T * primitive (fun p => F (T * p.1, p.2)) (u, η) := by |
| 121 | have ha : ProfileHistories.average F (T * u, η) = |
| 122 | ProfileHistories.average (fun p => F (T * p.1, p.2)) (u, η) := by |
| 123 | unfold ProfileHistories.average |
| 124 | apply intervalIntegral.integral_congr |
| 125 | intro v _ |
| 126 | dsimp only |
| 127 | congr 1 |
| 128 | ring_nf |
| 129 | rw [primitive_eq_mul_average, primitive_eq_mul_average] |
| 130 | dsimp only |
| 131 | rw [ha] |
| 132 | ring |
| 133 | |
| 134 | theorem weightedPrimitive_rescaled {T : ℝ} (hT : T ≠ 0) (κ : ℝ) (B : Field) (u η : ℝ) : |
| 135 | weightedPrimitive T κ B (T * u, η) = |
| 136 | T * weightedPrimitive 1 κ (fun p => B (T * p.1, p.2)) (u, η) := by |
| 137 | unfold weightedPrimitive |
| 138 | rw [primitive_rescaled] |
| 139 | congr 1 |
| 140 | congr 1 |
| 141 | funext p |
| 142 | dsimp only [weightedField] |
| 143 | rw [activation_scaled hT] |
| 144 | |
| 145 | noncomputable def primitiveErrorFactor (B : Field) : ScaledPoint → ℝ := |
| 146 | parameterFactor (rescale B) |
| 147 | |
| 148 | theorem primitiveErrorFactor_smooth {J : Set ℝ} (hJ : IsOpen J) {B : Field} |
| 149 | (hB : ContDiffOn ℝ ∞ B (logDomain J hJ).carrier) : |
| 150 | ContDiffOn ℝ ∞ (primitiveErrorFactor B) (scaledDomain J) := |
| 151 | parameterFactor_smooth isOpen_univ hJ (rescale_smooth hJ hB) |
| 152 | |
| 153 | theorem weightedPrimitive_scaled_factor {T : ℝ} (hT : T ≠ 0) (κ : ℝ) (B : Field) (u η : ℝ) : |
| 154 | weightedPrimitive T κ B (T * u, η) = |
| 155 | scaledDistance ((κ, T), (u, η)) * primitiveErrorFactor B ((κ, T), (u, η)) := by |
| 156 | rw [weightedPrimitive_rescaled hT] |
| 157 | change T * weightedPrimitive 1 κ (fun p => rescale B ((κ, T), p)) (u, η) = _ |
| 158 | rw [parameterFactor_identity] |
| 159 | dsimp only [scaledDistance, primitiveErrorFactor] |
| 160 | ring |
| 161 | |
| 162 | noncomputable def controlledErrorFactor (F : Field) : ScaledPoint → ℝ := |
| 163 | fun q => -primitiveErrorFactor (radialPartial F) q |
| 164 | |
| 165 | theorem controlledErrorFactor_smooth {J : Set ℝ} (hJ : IsOpen J) {F : Field} |
| 166 | (hF : ContDiffOn ℝ ∞ F (logDomain J hJ).carrier) : |
| 167 | ContDiffOn ℝ ∞ (controlledErrorFactor F) (scaledDomain J) := |
| 168 | (primitiveErrorFactor_smooth hJ (radialPartial_smooth (logDomain J hJ) hF)).neg |
| 169 | |
| 170 | theorem controlled_scaled_factor {T : ℝ} (hT : T ≠ 0) (κ : ℝ) |
| 171 | {J : Set ℝ} (hJ : IsOpen J) {F : Field} |
| 172 | (hF : ContDiffOn ℝ ∞ F (logDomain J hJ).carrier) (u : ℝ) {η : ℝ} (hη : η ∈ J) : |
| 173 | controlled T κ F (T * u, η) - F (T * u, η) = |
| 174 | scaledDistance ((κ, T), (u, η)) * controlledErrorFactor F ((κ, T), (u, η)) := by |
| 175 | rw [controlled_sub T κ hJ hF _ hη, weightedPrimitive_scaled_factor hT] |
| 176 | dsimp only [controlledErrorFactor] |
| 177 | ring |
| 178 | |
| 179 | noncomputable def controlledValue (F : Field) (q : ScaledPoint) : ℝ := |
| 180 | rescale F q + scaledDistance q * controlledErrorFactor F q |
| 181 | |
| 182 | theorem controlledValue_smooth {J : Set ℝ} (hJ : IsOpen J) {F : Field} |
| 183 | (hF : ContDiffOn ℝ ∞ F (logDomain J hJ).carrier) : |
| 184 | ContDiffOn ℝ ∞ (controlledValue F) (scaledDomain J) := |
| 185 | (rescale_smooth hJ hF).add (scaledDistance_smooth.contDiffOn.mul (controlledErrorFactor_smooth hJ hF)) |
| 186 | |
| 187 | theorem controlledValue_eq {T : ℝ} (hT : T ≠ 0) (κ : ℝ) |
| 188 | {J : Set ℝ} (hJ : IsOpen J) {F : Field} |
| 189 | (hF : ContDiffOn ℝ ∞ F (logDomain J hJ).carrier) (u : ℝ) {η : ℝ} (hη : η ∈ J) : |
| 190 | controlledValue F ((κ, T), (u, η)) = controlled T κ F (T * u, η) := by |
| 191 | have h := controlled_scaled_factor hT κ hJ hF u hη |
| 192 | dsimp only [controlledValue, rescale] |
| 193 | linarith |
| 194 | |
| 195 | noncomputable def angularValue (L : Field) : ScaledPoint → ℝ := |
| 196 | fun q => Real.exp (controlledValue L q) |
| 197 | |
| 198 | noncomputable def relativeErrorFactor (L : Field) (q : ScaledPoint) : ℝ := |
| 199 | controlledErrorFactor L q * meanExp (scaledDistance q * controlledErrorFactor L q) |
| 200 | |
| 201 | theorem relativeErrorFactor_smooth {J : Set ℝ} (hJ : IsOpen J) {L : Field} |
| 202 | (hL : ContDiffOn ℝ ∞ L (logDomain J hJ).carrier) : |
| 203 | ContDiffOn ℝ ∞ (relativeErrorFactor L) (scaledDomain J) := |
| 204 | (controlledErrorFactor_smooth hJ hL).mul |
| 205 | (meanExp_smooth.comp_contDiffOn (scaledDistance_smooth.contDiffOn.mul |
| 206 | (controlledErrorFactor_smooth hJ hL))) |
| 207 | |
| 208 | theorem angular_relative_scaled_factor {T : ℝ} (hT : T ≠ 0) (κ : ℝ) |
| 209 | {J : Set ℝ} (hJ : IsOpen J) {L : Field} |
| 210 | (hL : ContDiffOn ℝ ∞ L (logDomain J hJ).carrier) (u : ℝ) {η : ℝ} (hη : η ∈ J) : |
| 211 | activatedAngular T κ L (T * u, η) / referenceAngular L (T * u, η) - 1 = |
| 212 | scaledDistance ((κ, T), (u, η)) * relativeErrorFactor L ((κ, T), (u, η)) := by |
| 213 | rw [activatedAngular, referenceAngular, ← Real.exp_sub, controlled_scaled_factor hT κ hJ hL u hη, |
| 214 | exp_sub_one] |
| 215 | dsimp only [relativeErrorFactor] |
| 216 | ring |
| 217 | |
| 218 | noncomputable def angularErrorFactor (L : Field) (q : ScaledPoint) : ℝ := |
| 219 | Real.exp (rescale L q) * relativeErrorFactor L q |
| 220 | |
| 221 | theorem angularErrorFactor_smooth {J : Set ℝ} (hJ : IsOpen J) {L : Field} |
| 222 | (hL : ContDiffOn ℝ ∞ L (logDomain J hJ).carrier) : |
| 223 | ContDiffOn ℝ ∞ (angularErrorFactor L) (scaledDomain J) := |
| 224 | (rescale_smooth hJ hL).exp.mul (relativeErrorFactor_smooth hJ hL) |
| 225 | |
| 226 | theorem angular_scaled_factor {T : ℝ} (hT : T ≠ 0) (κ : ℝ) |
| 227 | {J : Set ℝ} (hJ : IsOpen J) {L : Field} |
| 228 | (hL : ContDiffOn ℝ ∞ L (logDomain J hJ).carrier) (u : ℝ) {η : ℝ} (hη : η ∈ J) : |
| 229 | activatedAngular T κ L (T * u, η) - referenceAngular L (T * u, η) = |
| 230 | scaledDistance ((κ, T), (u, η)) * angularErrorFactor L ((κ, T), (u, η)) := by |
| 231 | have hn : referenceAngular L (T * u, η) ≠ 0 := (Real.exp_pos _).ne' |
| 232 | calc |
| 233 | _ = referenceAngular L (T * u, η) * |
| 234 | (activatedAngular T κ L (T * u, η) / referenceAngular L (T * u, η) - 1) := by |
| 235 | field_simp |
| 236 | _ = _ := by |
| 237 | rw [angular_relative_scaled_factor hT κ hJ hL u hη] |
| 238 | dsimp only [angularErrorFactor, referenceAngular, rescale] |
| 239 | ring |
| 240 | |
| 241 | /-- A smooth fixed-clock factor gives one constant for every positive ramp |
| 242 | width up to `T0`, including widths arbitrarily close to zero. -/ |
| 243 | theorem width_uniform_jet_bound {J K : Set ℝ} (hJ : IsOpen J) (hK : IsCompact K) |
| 244 | (hKJ : K ⊆ J) {H : ScaledPoint → ℝ} |
| 245 | (hH : ContDiffOn ℝ ∞ H (scaledDomain J)) |
| 246 | {E : ℝ → ℝ → ℝ → ℝ → ℝ} |
| 247 | (hE : ∀ κ T, 0 < T → ∀ u η, η ∈ J → |
| 248 | E κ T (T * u) η = scaledDistance ((κ, T), (u, η)) * H ((κ, T), (u, η))) |
| 249 | (T0 : ℝ) (n : ℕ) : |
| 250 | ∃ M : ℝ, 0 ≤ M ∧ ∀ T ∈ Ioc (0 : ℝ) T0, ∀ κ ∈ Icc (0 : ℝ) 1, |
| 251 | ∀ y ∈ Icc (0 : ℝ) T, ∀ η ∈ K, |
| 252 | |iteratedDeriv n (E κ T y) η| ≤ M * y * activation T κ y := by |
| 253 | obtain ⟨M, hM, hb⟩ := compact_parameter_jet_bound isOpen_univ |
| 254 | (isCompact_Icc.prod isCompact_Icc) |
| 255 | (subset_univ (Icc (0 : ℝ) 1 ×ˢ Icc (0 : ℝ) T0)) hJ hK hKJ hH n |
| 256 | refine ⟨M, hM, ?_⟩ |
| 257 | intro T hT κ hκ y hy η hη |
| 258 | let u := y / T |
| 259 | have hu : u ∈ Icc (0 : ℝ) 1 := |
| 260 | ⟨div_nonneg hy.1 hT.1.le, (div_le_one hT.1).2 hy.2⟩ |
| 261 | have hTu : T * u = y := by dsimp only [u]; field_simp [hT.1.ne'] |
| 262 | have hs : scaledDistance ((κ, T), (u, η)) = y * activation T κ y := by |
| 263 | dsimp only [scaledDistance] |
| 264 | rw [← activation_scaled hT.1.ne' κ u, hTu] |
| 265 | have heq : E κ T y =ᶠ[𝓝 η] |
| 266 | (fun ξ => scaledDistance ((κ, T), (u, η)) * H ((κ, T), (u, ξ))) := by |
| 267 | filter_upwards [hJ.mem_nhds (hKJ hη)] with ξ hξ |
| 268 | rw [← hTu] |
| 269 | exact hE κ T hT.1 u ξ hξ |
| 270 | rw [heq.iteratedDeriv_eq n] |
| 271 | have hh : ContDiffAt ℝ ∞ (fun ξ => H ((κ, T), (u, ξ))) η := |
| 272 | (hH.contDiffAt ((scaledDomain_open hJ).mem_nhds |
| 273 | ⟨mem_univ _, mem_univ _, hKJ hη⟩)).comp η |
| 274 | (contDiffAt_const.prodMk (contDiffAt_const.prodMk contDiffAt_id)) |
| 275 | rw [iteratedDeriv_const_mul (n := n) _ (hh.of_le (WithTop.coe_le_coe.mpr le_top)), |
| 276 | abs_mul, hs, abs_of_nonneg (mul_nonneg hy.1 (activation_nonneg T κ y hκ.2))] |
| 277 | have hm := mul_le_mul_of_nonneg_left |
| 278 | (hb (κ, T) ⟨hκ, hT.1.le, hT.2⟩ u hu η hη) |
| 279 | (mul_nonneg hy.1 (activation_nonneg T κ y hκ.2)) |
| 280 | nlinarith |
| 281 | |
| 282 | theorem weightedPrimitive_uniform_jets {J K : Set ℝ} (hJ : IsOpen J) (hK : IsCompact K) |
| 283 | (hKJ : K ⊆ J) {B : Field} (hB : ContDiffOn ℝ ∞ B (logDomain J hJ).carrier) |
| 284 | (T0 : ℝ) (n : ℕ) : |
| 285 | ∃ M : ℝ, 0 ≤ M ∧ ∀ T ∈ Ioc (0 : ℝ) T0, ∀ κ ∈ Icc (0 : ℝ) 1, |
| 286 | ∀ y ∈ Icc (0 : ℝ) T, ∀ η ∈ K, |
| 287 | |iteratedDeriv n (fun ξ => weightedPrimitive T κ B (y, ξ)) η| ≤ |
| 288 | M * y * activation T κ y := by |
| 289 | apply width_uniform_jet_bound hJ hK hKJ (primitiveErrorFactor_smooth hJ hB) |
| 290 | intro κ T hT u η _ |
| 291 | exact weightedPrimitive_scaled_factor hT.ne' κ B u η |
| 292 | |
| 293 | theorem controlled_uniform_jets {J K : Set ℝ} (hJ : IsOpen J) (hK : IsCompact K) |
| 294 | (hKJ : K ⊆ J) {F : Field} (hF : ContDiffOn ℝ ∞ F (logDomain J hJ).carrier) |
| 295 | (T0 : ℝ) (n : ℕ) : |
| 296 | ∃ M : ℝ, 0 ≤ M ∧ ∀ T ∈ Ioc (0 : ℝ) T0, ∀ κ ∈ Icc (0 : ℝ) 1, |
| 297 | ∀ y ∈ Icc (0 : ℝ) T, ∀ η ∈ K, |
| 298 | |iteratedDeriv n (fun ξ => controlled T κ F (y, ξ) - F (y, ξ)) η| ≤ |
| 299 | M * y * activation T κ y := by |
| 300 | apply width_uniform_jet_bound hJ hK hKJ (controlledErrorFactor_smooth hJ hF) |
| 301 | intro κ T hT u η hη |
| 302 | exact controlled_scaled_factor hT.ne' κ hJ hF u hη |
| 303 | |
| 304 | theorem angular_relative_uniform_jets {J K : Set ℝ} (hJ : IsOpen J) (hK : IsCompact K) |
| 305 | (hKJ : K ⊆ J) {L : Field} (hL : ContDiffOn ℝ ∞ L (logDomain J hJ).carrier) |
| 306 | (T0 : ℝ) (n : ℕ) : |
| 307 | ∃ M : ℝ, 0 ≤ M ∧ ∀ T ∈ Ioc (0 : ℝ) T0, ∀ κ ∈ Icc (0 : ℝ) 1, |
| 308 | ∀ y ∈ Icc (0 : ℝ) T, ∀ η ∈ K, |
| 309 | |iteratedDeriv n (fun ξ => |
| 310 | activatedAngular T κ L (y, ξ) / referenceAngular L (y, ξ) - 1) η| ≤ |
| 311 | M * y * activation T κ y := by |
| 312 | apply width_uniform_jet_bound hJ hK hKJ (relativeErrorFactor_smooth hJ hL) |
| 313 | intro κ T hT u η hη |
| 314 | exact angular_relative_scaled_factor hT.ne' κ hJ hL u hη |
| 315 | |
| 316 | theorem angular_uniform_jets {J K : Set ℝ} (hJ : IsOpen J) (hK : IsCompact K) |
| 317 | (hKJ : K ⊆ J) {L : Field} (hL : ContDiffOn ℝ ∞ L (logDomain J hJ).carrier) |
| 318 | (T0 : ℝ) (n : ℕ) : |
| 319 | ∃ M : ℝ, 0 ≤ M ∧ ∀ T ∈ Ioc (0 : ℝ) T0, ∀ κ ∈ Icc (0 : ℝ) 1, |
| 320 | ∀ y ∈ Icc (0 : ℝ) T, ∀ η ∈ K, |
| 321 | |iteratedDeriv n (fun ξ => |
| 322 | activatedAngular T κ L (y, ξ) - referenceAngular L (y, ξ)) η| ≤ |
| 323 | M * y * activation T κ y := by |
| 324 | apply width_uniform_jet_bound hJ hK hKJ (angularErrorFactor_smooth hJ hL) |
| 325 | intro κ T hT u η hη |
| 326 | exact angular_scaled_factor hT.ne' κ hJ hL u hη |
| 327 | |
| 328 | /-! ## Width-uniform factors for the actual five histories -/ |
| 329 | |
| 330 | noncomputable def densityErrorFactor (X0 : ℝ) (L U : Field) |
| 331 | (r : HistoryRow) (q : ScaledPoint) : ℝ := |
| 332 | let x := radius X0 (q.1.2 * q.2.1) |
| 333 | let df := angularErrorFactor L q |
| 334 | let du := controlledErrorFactor U q |
| 335 | let fa := angularValue L q |
| 336 | let fr := Real.exp (rescale L q) |
| 337 | let ua := controlledValue U q |
| 338 | let ur := rescale U q |
| 339 | match r with |
| 340 | | .mass => x * du |
| 341 | | .angular => 2 * x ^ 2 * df |
| 342 | | .transport => 2 * x ^ 2 * (df * ua + fr * du) |
| 343 | | .energy => x * (du * (ua + ur) - x * df * (fa + fr)) |
| 344 | | .pressure => x * df * (fa + fr) |
| 345 | |
| 346 | theorem densityErrorFactor_smooth (X0 : ℝ) {J : Set ℝ} (hJ : IsOpen J) {L U : Field} |
| 347 | (hL : ContDiffOn ℝ ∞ L (logDomain J hJ).carrier) |
| 348 | (hU : ContDiffOn ℝ ∞ U (logDomain J hJ).carrier) (r : HistoryRow) : |
| 349 | ContDiffOn ℝ ∞ (densityErrorFactor X0 L U r) (scaledDomain J) := by |
| 350 | have hx := ((radius_smooth X0).comp (contDiff_fst.snd.mul contDiff_snd.fst)).contDiffOn |
| 351 | (s := scaledDomain J) |
| 352 | have hdf := angularErrorFactor_smooth hJ hL |
| 353 | have hdu := controlledErrorFactor_smooth hJ hU |
| 354 | have hfa := (controlledValue_smooth hJ hL).exp |
| 355 | have hfr := (rescale_smooth hJ hL).exp |
| 356 | have hua := controlledValue_smooth hJ hU |
| 357 | have hur := rescale_smooth hJ hU |
| 358 | cases r with |
| 359 | | mass => exact hx.mul hdu |
| 360 | | angular => exact (contDiffOn_const.mul (hx.pow 2)).mul hdf |
| 361 | | transport => |
| 362 | exact (contDiffOn_const.mul (hx.pow 2)).mul ((hdf.mul hua).add (hfr.mul hdu)) |
| 363 | | energy => exact hx.mul ((hdu.mul (hua.add hur)).sub ((hx.mul hdf).mul (hfa.add hfr))) |
| 364 | | pressure => exact (hx.mul hdf).mul (hfa.add hfr) |
| 365 | |
| 366 | theorem density_scaled_factor {T : ℝ} (hT : T ≠ 0) (κ X0 : ℝ) |
| 367 | {J : Set ℝ} (hJ : IsOpen J) {L U : Field} |
| 368 | (hL : ContDiffOn ℝ ∞ L (logDomain J hJ).carrier) |
| 369 | (hU : ContDiffOn ℝ ∞ U (logDomain J hJ).carrier) |
| 370 | (r : HistoryRow) (u : ℝ) {η : ℝ} (hη : η ∈ J) : |
| 371 | logDensity X0 (activatedAngular T κ L) (controlled T κ U) r (T * u, η) - |
| 372 | logDensity X0 (referenceAngular L) U r (T * u, η) = |
| 373 | scaledDistance ((κ, T), (u, η)) * densityErrorFactor X0 L U r ((κ, T), (u, η)) := by |
| 374 | have hf := angular_scaled_factor hT κ hJ hL u hη |
| 375 | have hu := controlled_scaled_factor hT κ hJ hU u hη |
| 376 | have hfa : angularValue L ((κ, T), (u, η)) = activatedAngular T κ L (T * u, η) := by |
| 377 | rw [angularValue, controlledValue_eq hT κ hJ hL u hη] |
| 378 | rfl |
| 379 | have hua := controlledValue_eq hT κ hJ hU u hη |
| 380 | have hf' : angularValue L ((κ, T), (u, η)) = Real.exp (rescale L ((κ, T), (u, η))) + |
| 381 | scaledDistance ((κ, T), (u, η)) * angularErrorFactor L ((κ, T), (u, η)) := by |
| 382 | rw [hfa] |
| 383 | dsimp only [rescale, referenceAngular] at hf ⊢ |
| 384 | linarith |
| 385 | have hu' : controlledValue U ((κ, T), (u, η)) = rescale U ((κ, T), (u, η)) + |
| 386 | scaledDistance ((κ, T), (u, η)) * controlledErrorFactor U ((κ, T), (u, η)) := rfl |
| 387 | change radius X0 (T * u) * radialDensity r (radius X0 (T * u)) |
| 388 | (activatedAngular T κ L (T * u, η)) (controlled T κ U (T * u, η)) - |
| 389 | radius X0 (T * u) * radialDensity r (radius X0 (T * u)) |
| 390 | (Real.exp (rescale L ((κ, T), (u, η)))) (rescale U ((κ, T), (u, η))) = _ |
| 391 | rw [← hfa, ← hua] |
| 392 | cases r <;> dsimp only [radialDensity, densityErrorFactor] <;> |
| 393 | simp only [hf', hu'] <;> ring |
| 394 | |
| 395 | noncomputable def historyCoefficient (X0 : ℝ) (L U : Field) |
| 396 | (r : HistoryRow) (q : ScaledPoint) : ℝ := |
| 397 | q.1.2 * q.2.1 * densityErrorFactor X0 L U r q |
| 398 | |
| 399 | noncomputable def historyErrorFactor (X0 : ℝ) (L U : Field) |
| 400 | (r : HistoryRow) : ScaledPoint → ℝ := |
| 401 | parameterFactor (historyCoefficient X0 L U r) |
| 402 | |
| 403 | theorem historyErrorFactor_smooth (X0 : ℝ) {J : Set ℝ} (hJ : IsOpen J) {L U : Field} |
| 404 | (hL : ContDiffOn ℝ ∞ L (logDomain J hJ).carrier) |
| 405 | (hU : ContDiffOn ℝ ∞ U (logDomain J hJ).carrier) (r : HistoryRow) : |
| 406 | ContDiffOn ℝ ∞ (historyErrorFactor X0 L U r) (scaledDomain J) := |
| 407 | parameterFactor_smooth isOpen_univ hJ |
| 408 | ((contDiffOn_fst.snd.mul contDiffOn_snd.fst).mul (densityErrorFactor_smooth X0 hJ hL hU r)) |
| 409 | |
| 410 | @[simp] theorem historyErrorFactor_zero (X0 : ℝ) (L U : Field) |
| 411 | (r : HistoryRow) (κ T η : ℝ) : historyErrorFactor X0 L U r ((κ, T), (0, η)) = 0 := by |
| 412 | exact parameterFactor_zero _ _ _ |
| 413 | |
| 414 | theorem history_scaled_factor {T : ℝ} (hT : T ≠ 0) (κ X0 : ℝ) |
| 415 | (initial : HistoryRow → ℝ → ℝ) {J : Set ℝ} (hJ : IsOpen J) {L U : Field} |
| 416 | (hL : ContDiffOn ℝ ∞ L (logDomain J hJ).carrier) |
| 417 | (hU : ContDiffOn ℝ ∞ U (logDomain J hJ).carrier) |
| 418 | (r : HistoryRow) (u : ℝ) {η : ℝ} (hη : η ∈ J) : |
| 419 | logHistory X0 initial (activatedAngular T κ L) (controlled T κ U) r (T * u, η) - |
| 420 | logHistory X0 initial (referenceAngular L) U r (T * u, η) = |
| 421 | scaledDistance ((κ, T), (u, η)) * historyErrorFactor X0 L U r ((κ, T), (u, η)) := by |
| 422 | let D : Field := fun p => logDensity X0 (activatedAngular T κ L) (controlled T κ U) r p - |
| 423 | logDensity X0 (referenceAngular L) U r p |
| 424 | have ha := radial_slice_intervalIntegrable (logDomain J hJ) |
| 425 | (logDensity_smooth X0 hJ (activatedAngular_smooth T κ hJ hL) |
| 426 | (controlled_smooth T κ hJ hU) r) (p := (T * u, η)) ⟨mem_univ _, hη⟩ |
| 427 | have hr := radial_slice_intervalIntegrable (logDomain J hJ) |
| 428 | (logDensity_smooth X0 hJ hL.exp hU r) (p := (T * u, η)) ⟨mem_univ _, hη⟩ |
| 429 | change IntervalIntegrable |
| 430 | (fun t => logDensity X0 (activatedAngular T κ L) (controlled T κ U) r (t, η)) volume 0 (T * u) at ha |
| 431 | change IntervalIntegrable |
| 432 | (fun t => logDensity X0 (referenceAngular L) U r (t, η)) volume 0 (T * u) at hr |
| 433 | have hsub : logHistory X0 initial (activatedAngular T κ L) (controlled T κ U) r (T * u, η) - |
| 434 | logHistory X0 initial (referenceAngular L) U r (T * u, η) = primitive D (T * u, η) := by |
| 435 | dsimp only [logHistory, primitive, D] |
| 436 | rw [add_sub_add_left_eq_sub, intervalIntegral.integral_sub ha hr] |
| 437 | rw [hsub, primitive_rescaled] |
| 438 | calc |
| 439 | T * primitive (fun p => D (T * p.1, p.2)) (u, η) = |
| 440 | T * weightedPrimitive 1 κ (fun p => historyCoefficient X0 L U r ((κ, T), p)) (u, η) := by |
| 441 | congr 1 |
| 442 | apply intervalIntegral.integral_congr |
| 443 | intro v _ |
| 444 | dsimp only [D, weightedField] |
| 445 | rw [density_scaled_factor hT κ X0 hJ hL hU r v hη] |
| 446 | dsimp only [scaledDistance, historyCoefficient] |
| 447 | ring |
| 448 | _ = _ := by |
| 449 | rw [parameterFactor_identity] |
| 450 | dsimp only [scaledDistance, historyErrorFactor] |
| 451 | ring |
| 452 | |
| 453 | theorem history_uniform_jets (X0 : ℝ) (initial : HistoryRow → ℝ → ℝ) |
| 454 | {J K : Set ℝ} (hJ : IsOpen J) (hK : IsCompact K) (hKJ : K ⊆ J) {L U : Field} |
| 455 | (hL : ContDiffOn ℝ ∞ L (logDomain J hJ).carrier) |
| 456 | (hU : ContDiffOn ℝ ∞ U (logDomain J hJ).carrier) |
| 457 | (T0 : ℝ) (r : HistoryRow) (n : ℕ) : |
| 458 | ∃ M : ℝ, 0 ≤ M ∧ ∀ T ∈ Ioc (0 : ℝ) T0, ∀ κ ∈ Icc (0 : ℝ) 1, |
| 459 | ∀ y ∈ Icc (0 : ℝ) T, ∀ η ∈ K, |
| 460 | |iteratedDeriv n (fun ξ => |
| 461 | logHistory X0 initial (activatedAngular T κ L) (controlled T κ U) r (y, ξ) - |
| 462 | logHistory X0 initial (referenceAngular L) U r (y, ξ)) η| ≤ |
| 463 | M * y * activation T κ y := by |
| 464 | apply width_uniform_jet_bound hJ hK hKJ (historyErrorFactor_smooth X0 hJ hL hU r) |
| 465 | intro κ T hT u η hη |
| 466 | exact history_scaled_factor hT.ne' κ X0 initial hJ hL hU r u hη |
| 467 | |
| 468 | /-! ## Genuine parameter differentiation of the scaled factors -/ |
| 469 | |
| 470 | noncomputable def etaD (H : ScaledPoint → ℝ) (q : ScaledPoint) : ℝ := |
| 471 | deriv (fun ξ => H (q.1, (q.2.1, ξ))) q.2.2 |
| 472 | |
| 473 | noncomputable def etaLinear (H : ScaledPoint → ℝ) (q : ScaledPoint) : ℝ := |
| 474 | fderiv ℝ H q ((0, 0), (0, 1)) |
| 475 | |
| 476 | theorem etaLinear_hasDerivAt {J : Set ℝ} (hJ : IsOpen J) {H : ScaledPoint → ℝ} |
| 477 | (hH : ContDiffOn ℝ ∞ H (scaledDomain J)) {q : ScaledPoint} (hq : q ∈ scaledDomain J) : |
| 478 | HasDerivAt (fun ξ => H (q.1, (q.2.1, ξ))) (etaLinear H q) q.2.2 := by |
| 479 | have hd := (hH.contDiffAt ((scaledDomain_open hJ).mem_nhds hq)).differentiableAt (by simp) |
| 480 | have h := hd.hasFDerivAt.comp_hasDerivAt q.2.2 |
| 481 | ((hasDerivAt_const q.2.2 q.1).prodMk |
| 482 | ((hasDerivAt_const q.2.2 q.2.1).prodMk (hasDerivAt_id q.2.2))) |
| 483 | simp only [Function.comp_def, id_eq] at h |
| 484 | exact h |
| 485 | |
| 486 | theorem etaD_eq_etaLinear {J : Set ℝ} (hJ : IsOpen J) {H : ScaledPoint → ℝ} |
| 487 | (hH : ContDiffOn ℝ ∞ H (scaledDomain J)) {q : ScaledPoint} (hq : q ∈ scaledDomain J) : |
| 488 | etaD H q = etaLinear H q := (etaLinear_hasDerivAt hJ hH hq).deriv |
| 489 | |
| 490 | theorem etaD_smooth {J : Set ℝ} (hJ : IsOpen J) {H : ScaledPoint → ℝ} |
| 491 | (hH : ContDiffOn ℝ ∞ H (scaledDomain J)) : |
| 492 | ContDiffOn ℝ ∞ (etaD H) (scaledDomain J) := by |
| 493 | have hl : ContDiffOn ℝ ∞ (etaLinear H) (scaledDomain J) := |
| 494 | (hH.fderiv_of_isOpen (scaledDomain_open hJ) (by simp)).clm_apply contDiffOn_const |
| 495 | exact hl.congr (fun _ hq => etaD_eq_etaLinear hJ hH hq) |
| 496 | |
| 497 | theorem etaD_hasDerivAt {J : Set ℝ} (hJ : IsOpen J) {H : ScaledPoint → ℝ} |
| 498 | (hH : ContDiffOn ℝ ∞ H (scaledDomain J)) {q : ScaledPoint} (hq : q ∈ scaledDomain J) : |
| 499 | HasDerivAt (fun ξ => H (q.1, (q.2.1, ξ))) (etaD H q) q.2.2 := by |
| 500 | rw [etaD_eq_etaLinear hJ hH hq] |
| 501 | exact etaLinear_hasDerivAt hJ hH hq |
| 502 | |
| 503 | theorem etaD_scaledDistance_mul (H : ScaledPoint → ℝ) (q : ScaledPoint) : |
| 504 | etaD (fun z => scaledDistance z * H z) q = scaledDistance q * etaD H q := by |
| 505 | exact deriv_const_mul_field (scaledDistance q) |
| 506 | |
| 507 | theorem etaD_rescale {J : Set ℝ} (hJ : IsOpen J) {F : Field} |
| 508 | (hF : ContDiffOn ℝ ∞ F (logDomain J hJ).carrier) {q : ScaledPoint} |
| 509 | (hq : q ∈ scaledDomain J) : etaD (rescale F) q = rescale (parameterPartial F) q := |
| 510 | (parameterPartial_hasDerivAt (logDomain J hJ) hF |
| 511 | (p := (q.1.2 * q.2.1, q.2.2)) ⟨mem_univ _, hq.2.2⟩).deriv |
| 512 | |
| 513 | theorem etaD_congr {J : Set ℝ} (hJ : IsOpen J) {H G : ScaledPoint → ℝ} |
| 514 | (h : ∀ q ∈ scaledDomain J, H q = G q) {q : ScaledPoint} (hq : q ∈ scaledDomain J) : |
| 515 | etaD H q = etaD G q := by |
| 516 | apply Filter.EventuallyEq.deriv_eq |
| 517 | filter_upwards [hJ.mem_nhds hq.2.2] with ξ hξ |
| 518 | exact h (q.1, (q.2.1, ξ)) ⟨hq.1, hq.2.1, hξ⟩ |
| 519 | |
| 520 | /-! ## Independence of the continuation length on the natural overlap -/ |
| 521 | |
| 522 | theorem continuation_radialPartial {R δ : ℝ} (hR : 0 < R) (hδ : 0 < δ) |
| 523 | (hδR : 2 * δ < R) {J : Set ℝ} (hJ : IsOpen J) {G : Field} |
| 524 | (hG : ContDiffOn ℝ ∞ G (ReferencePath.earlyStrip R hR J hJ).carrier) |
| 525 | {p : Point} (hη : p.2 ∈ J) : |
| 526 | radialPartial (ReferencePath.continuation δ G) p = |
| 527 | ReferencePath.slopeCutoff δ p.1 * radialPartial G p := |
| 528 | (radialPartial_hasDerivAt (ReferencePath.fullStrip J hJ) |
| 529 | (ReferencePath.continuation_smooth hR hδ hδR hJ hG) (p := p) ⟨mem_univ _, hη⟩).unique |
| 530 | (ReferencePath.continuation_hasDerivAt hR hδ hδR hJ hG (p := p) hη) |
| 531 | |
| 532 | theorem controlled_continuation_independent {R δ₁ δ₂ : ℝ} (hR : 0 < R) |
| 533 | (hδ₁ : 0 < δ₁) (hδ₁R : 2 * δ₁ < R) (hδ₂ : 0 < δ₂) (hδ₂R : 2 * δ₂ < R) |
| 534 | {J : Set ℝ} (hJ : IsOpen J) {G : Field} |
| 535 | (hG : ContDiffOn ℝ ∞ G (ReferencePath.earlyStrip R hR J hJ).carrier) |
| 536 | (T κ : ℝ) {p : Point} (hη : p.2 ∈ J) (hp₁ : p.1 ≤ δ₁) (hp₂ : p.1 ≤ δ₂) : |
| 537 | controlled T κ (ReferencePath.continuation δ₁ G) p = |
| 538 | controlled T κ (ReferencePath.continuation δ₂ G) p := by |
| 539 | have hzero₁ := ReferencePath.continuation_eq_natural hR hδ₁ hδ₁R hJ hG |
| 540 | (p := (0, p.2)) hη hδ₁.le |
| 541 | have hzero₂ := ReferencePath.continuation_eq_natural hR hδ₂ hδ₂R hJ hG |
| 542 | (p := (0, p.2)) hη hδ₂.le |
| 543 | unfold controlled |
| 544 | rw [hzero₁, hzero₂] |
| 545 | congr 1 |
| 546 | apply intervalIntegral.integral_congr |
| 547 | intro t ht |
| 548 | have ht₁ : t ≤ δ₁ := (mem_uIcc.mp ht).elim |
| 549 | (fun h => h.2.trans hp₁) (fun h => h.2.trans hδ₁.le) |
| 550 | have ht₂ : t ≤ δ₂ := (mem_uIcc.mp ht).elim |
| 551 | (fun h => h.2.trans hp₂) (fun h => h.2.trans hδ₂.le) |
| 552 | dsimp only |
| 553 | rw [continuation_radialPartial hR hδ₁ hδ₁R hJ hG (p := (t, p.2)) hη, |
| 554 | continuation_radialPartial hR hδ₂ hδ₂R hJ hG (p := (t, p.2)) hη, |
| 555 | ReferencePath.slopeCutoff_one hδ₁ ht₁, ReferencePath.slopeCutoff_one hδ₂ ht₂] |
| 556 | |
| 557 | theorem profileInitial_congr {D : RadialDomain} (P Q : Profiles D) |
| 558 | (h0 : ∀ η, P.pressure0 η = Q.pressure0 η) (r : HistoryRow) (η : ℝ) : |
| 559 | profileInitial P r η = profileInitial Q r η := by |
| 560 | cases r <;> simp only [profileInitial] |
| 561 | exact h0 η |
| 562 | |
| 563 | namespace NaturalOverlap |
| 564 | |
| 565 | open ReferencePath |
| 566 | |
| 567 | variable (N : ReferencePath.Input) |
| 568 | |
| 569 | theorem f_independent {T δ₁ δ₂ : ℝ} (hT : 0 < T) |
| 570 | (hδ₁ : 0 < δ₁) (hδ₁R : 2 * δ₁ < rampLimit) |
| 571 | (hδ₂ : 0 < δ₂) (hδ₂R : 2 * δ₂ < rampLimit) (κ : ℝ) |
| 572 | {p : Point} (hη : p.2 ∈ parameterInterval) |
| 573 | (hp₁ : p.1 ≤ radius N.endpoint δ₁) (hp₂ : p.1 ≤ radius N.endpoint δ₂) : |
| 574 | FromReference.f N T κ δ₁ p = FromReference.f N T κ δ₂ p := by |
| 575 | by_cases hx : p.1 ≤ N.endpoint |
| 576 | · rw [FromReference.f_eq_reference N T κ δ₁ hx, FromReference.f_eq_reference N T κ δ₂ hx, |
| 577 | N.refF_eq_natural_initial δ₁ hx, N.refF_eq_natural_initial δ₂ hx] |
| 578 | · have hX : 0 < p.1 := N.endpoint_pos.trans (lt_of_not_ge hx) |
| 579 | rw [FromReference.f_eq_logtime N hT hδ₁ hδ₁R κ hη hX, |
| 580 | FromReference.f_eq_logtime N hT hδ₂ hδ₂R κ hη hX] |
| 581 | unfold activatedAngular FromReference.refLog |
| 582 | congr 1 |
| 583 | exact controlled_continuation_independent rampLimit_pos hδ₁ hδ₁R hδ₂ hδ₂R |
| 584 | parameterInterval_open N.logF_smooth T κ (p := (N.logTime p.1, p.2)) hη |
| 585 | ((N.logTime_le_iff hX).2 hp₁) ((N.logTime_le_iff hX).2 hp₂) |
| 586 | |
| 587 | theorem U_independent {T δ₁ δ₂ : ℝ} (hT : 0 < T) |
| 588 | (hδ₁ : 0 < δ₁) (hδ₁R : 2 * δ₁ < rampLimit) |
| 589 | (hδ₂ : 0 < δ₂) (hδ₂R : 2 * δ₂ < rampLimit) (κ : ℝ) |
| 590 | {p : Point} (hη : p.2 ∈ parameterInterval) |
| 591 | (hp₁ : p.1 ≤ radius N.endpoint δ₁) (hp₂ : p.1 ≤ radius N.endpoint δ₂) : |
| 592 | FromReference.U N T κ δ₁ p = FromReference.U N T κ δ₂ p := by |
| 593 | by_cases hx : p.1 ≤ N.endpoint |
| 594 | · rw [FromReference.U_eq_reference N T κ δ₁ hx, FromReference.U_eq_reference N T κ δ₂ hx, |
| 595 | N.refU_eq_natural_initial δ₁ hx, N.refU_eq_natural_initial δ₂ hx] |
| 596 | · have hX : 0 < p.1 := N.endpoint_pos.trans (lt_of_not_ge hx) |
| 597 | rw [FromReference.U_eq_logtime N hT hδ₁ hδ₁R κ hη hX, |
| 598 | FromReference.U_eq_logtime N hT hδ₂ hδ₂R κ hη hX] |
| 599 | exact controlled_continuation_independent rampLimit_pos hδ₁ hδ₁R hδ₂ hδ₂R |
| 600 | parameterInterval_open N.logU_smooth T κ (p := (N.logTime p.1, p.2)) hη |
| 601 | ((N.logTime_le_iff hX).2 hp₁) ((N.logTime_le_iff hX).2 hp₂) |
| 602 | |
| 603 | /-- Equality is from the axis up to the comparison radius, so all recomputed |
| 604 | histories are equal, not just their endpoint fields. -/ |
| 605 | theorem histories_independent {T δ₁ δ₂ : ℝ} (hT : 0 < T) |
| 606 | (hδ₁ : 0 < δ₁) (hδ₁R : 2 * δ₁ < rampLimit) |
| 607 | (hδ₂ : 0 < δ₂) (hδ₂R : 2 * δ₂ < rampLimit) (κ : ℝ) |
| 608 | (P0 : ℝ → ℝ) (hP0 : ContDiff ℝ ∞ P0) (r : HistoryRow) |
| 609 | {p : Point} (hη : p.2 ∈ parameterInterval) (hX : 0 ≤ p.1) |
| 610 | (hp₁ : p.1 ≤ radius N.endpoint δ₁) (hp₂ : p.1 ≤ radius N.endpoint δ₂) : |
| 611 | profileHistory (FromReference.histories N hT hδ₁ hδ₁R κ P0 hP0) r p = |
| 612 | profileHistory (FromReference.histories N hT hδ₂ hδ₂R κ P0 hP0) r p := by |
| 613 | let A := FromReference.histories N hT hδ₁ hδ₁R κ P0 hP0 |
| 614 | let B := FromReference.histories N hT hδ₂ hδ₂R κ P0 hP0 |
| 615 | have h0 : profileInitial A r p.2 = profileInitial B r p.2 := |
| 616 | profileInitial_congr A B (fun _ => rfl) r p.2 |
| 617 | have hf : ∀ x ∈ Icc (0 : ℝ) p.1, A.f (x, p.2) = B.f (x, p.2) := by |
| 618 | intro x hx |
| 619 | exact f_independent N hT hδ₁ hδ₁R hδ₂ hδ₂R κ (p := (x, p.2)) hη |
| 620 | (hx.2.trans hp₁) (hx.2.trans hp₂) |
| 621 | have hu : ∀ x ∈ Icc (0 : ℝ) p.1, A.U (x, p.2) = B.U (x, p.2) := by |
| 622 | intro x hx |
| 623 | exact U_independent N hT hδ₁ hδ₁R hδ₂ hδ₂R κ (p := (x, p.2)) hη |
| 624 | (hx.2.trans hp₁) (hx.2.trans hp₂) |
| 625 | exact profileHistory_congr_up_to A B r hX h0 hf hu |
| 626 | |
| 627 | theorem reference_histories_independent {δ₁ δ₂ : ℝ} |
| 628 | (hδ₁ : 0 < δ₁) (hδ₁R : 2 * δ₁ < rampLimit) |
| 629 | (hδ₂ : 0 < δ₂) (hδ₂R : 2 * δ₂ < rampLimit) |
| 630 | (P0 : ℝ → ℝ) (hP0 : ContDiff ℝ ∞ P0) (r : HistoryRow) |
| 631 | {p : Point} (hη : p.2 ∈ parameterInterval) (hX : 0 ≤ p.1) |
| 632 | (hp₁ : p.1 ≤ radius N.endpoint δ₁) (hp₂ : p.1 ≤ radius N.endpoint δ₂) : |
| 633 | profileHistory (N.histories hδ₁ hδ₁R P0 hP0) r p = |
| 634 | profileHistory (N.histories hδ₂ hδ₂R P0 hP0) r p := by |
| 635 | let A := N.histories hδ₁ hδ₁R P0 hP0 |
| 636 | let B := N.histories hδ₂ hδ₂R P0 hP0 |
| 637 | have h0 : profileInitial A r p.2 = profileInitial B r p.2 := |
| 638 | profileInitial_congr A B (fun _ => rfl) r p.2 |
| 639 | have hf : ∀ x ∈ Icc (0 : ℝ) p.1, A.f (x, p.2) = B.f (x, p.2) := by |
| 640 | intro x hx |
| 641 | exact (N.refF_eq_natural hδ₁ hδ₁R (p := (x, p.2)) hη (hx.2.trans hp₁)).trans |
| 642 | (N.refF_eq_natural hδ₂ hδ₂R (p := (x, p.2)) hη (hx.2.trans hp₂)).symm |
| 643 | have hu : ∀ x ∈ Icc (0 : ℝ) p.1, A.U (x, p.2) = B.U (x, p.2) := by |
| 644 | intro x hx |
| 645 | exact (N.refU_eq_natural hδ₁ hδ₁R (p := (x, p.2)) hη (hx.2.trans hp₁)).trans |
| 646 | (N.refU_eq_natural hδ₂ hδ₂R (p := (x, p.2)) hη (hx.2.trans hp₂)).symm |
| 647 | exact profileHistory_congr_up_to A B r hX h0 hf hu |
| 648 | |
| 649 | theorem radius_mono {s t : ℝ} (hst : s ≤ t) : radius N.endpoint s ≤ radius N.endpoint t := |
| 650 | mul_le_mul_of_nonneg_left (Real.exp_le_exp.mpr hst) N.endpoint_pos.le |
| 651 | |
| 652 | theorem fixed_history_scaled_factor {T δ : ℝ} (hT : 0 < T) |
| 653 | (hδ : 0 < δ) (hδR : 2 * δ < rampLimit) (κ : ℝ) |
| 654 | (P0 : ℝ → ℝ) (hP0 : ContDiff ℝ ∞ P0) (r : HistoryRow) |
| 655 | (u : ℝ) {η : ℝ} (hη : η ∈ parameterInterval) : |
| 656 | profileHistory (FromReference.histories N hT hδ hδR κ P0 hP0) r |
| 657 | (radius N.endpoint (T * u), η) - |
| 658 | profileHistory (N.histories hδ hδR P0 hP0) r (radius N.endpoint (T * u), η) = |
| 659 | scaledDistance ((κ, T), (u, η)) * |
| 660 | historyErrorFactor N.endpoint (FromReference.refLog N δ) (FromReference.refAxial N δ) r |
| 661 | ((κ, T), (u, η)) := by |
| 662 | rw [FromReference.histories_log_formula N hT hδ hδR κ P0 hP0 r (T * u) hη, |
| 663 | FromReference.reference_histories_log_formula N hδ hδR P0 hP0 r (T * u) hη] |
| 664 | exact history_scaled_factor hT.ne' κ N.endpoint _ parameterInterval_open |
| 665 | (FromReference.refLog_smooth N hδ hδR) (FromReference.refAxial_smooth N hδ hδR) r u hη |
| 666 | |
| 667 | /-- The manuscript uses the same width for ACT and REF. Its first-ramp |
| 668 | histories have the fixed-reference factors whenever `T ≤ δ0`. -/ |
| 669 | theorem diagonal_history_scaled_factor {T δ0 : ℝ} (hT : 0 < T) |
| 670 | (hTR : 2 * T < rampLimit) (hδ0 : 0 < δ0) (hδ0R : 2 * δ0 < rampLimit) |
| 671 | (hTδ0 : T ≤ δ0) (κ : ℝ) (P0 : ℝ → ℝ) (hP0 : ContDiff ℝ ∞ P0) |
| 672 | (r : HistoryRow) {u η : ℝ} (hu : u ∈ Icc (0 : ℝ) 1) (hη : η ∈ parameterInterval) : |
| 673 | profileHistory (FromReference.histories N hT hT hTR κ P0 hP0) r |
| 674 | (radius N.endpoint (T * u), η) - |
| 675 | profileHistory (N.histories hT hTR P0 hP0) r (radius N.endpoint (T * u), η) = |
| 676 | scaledDistance ((κ, T), (u, η)) * |
| 677 | historyErrorFactor N.endpoint (FromReference.refLog N δ0) (FromReference.refAxial N δ0) r |
| 678 | ((κ, T), (u, η)) := by |
| 679 | have hy : T * u ≤ T := mul_le_of_le_one_right hT.le hu.2 |
| 680 | have hx : 0 ≤ radius N.endpoint (T * u) := (mul_pos N.endpoint_pos (Real.exp_pos _)).le |
| 681 | have hxT := radius_mono N hy |
| 682 | have hxδ0 := radius_mono N (hy.trans hTδ0) |
| 683 | rw [histories_independent N hT hT hTR hδ0 hδ0R κ P0 hP0 r hη hx hxT hxδ0, |
| 684 | reference_histories_independent N hT hTR hδ0 hδ0R P0 hP0 r hη hx hxT hxδ0] |
| 685 | exact fixed_history_scaled_factor N hT hδ0 hδ0R κ P0 hP0 r u hη |
| 686 | |
| 687 | theorem diagonal_histories_uniform_jets {δ0 : ℝ} (hδ0 : 0 < δ0) |
| 688 | (hδ0R : 2 * δ0 < rampLimit) (P0 : ℝ → ℝ) (hP0 : ContDiff ℝ ∞ P0) |
| 689 | {K : Set ℝ} (hK : IsCompact K) (hKJ : K ⊆ parameterInterval) (r : HistoryRow) (n : ℕ) : |
| 690 | ∃ M : ℝ, 0 ≤ M ∧ ∀ T (hT : T ∈ Ioc (0 : ℝ) δ0) (hTR : 2 * T < rampLimit), |
| 691 | ∀ κ ∈ Icc (0 : ℝ) 1, ∀ y ∈ Icc (0 : ℝ) T, ∀ η ∈ K, |
| 692 | |iteratedDeriv n (fun ξ => |
| 693 | profileHistory (FromReference.histories N hT.1 hT.1 hTR κ P0 hP0) r (radius N.endpoint y, ξ) - |
| 694 | profileHistory (N.histories hT.1 hTR P0 hP0) r (radius N.endpoint y, ξ)) η| ≤ |
| 695 | M * y * activation T κ y := by |
| 696 | obtain ⟨M, hM, hb⟩ := history_uniform_jets N.endpoint (fun _ _ => 0) |
| 697 | parameterInterval_open hK hKJ (FromReference.refLog_smooth N hδ0 hδ0R) |
| 698 | (FromReference.refAxial_smooth N hδ0 hδ0R) δ0 r n |
| 699 | refine ⟨M, hM, ?_⟩ |
| 700 | intro T hT hTR κ hκ y hy η hη |
| 701 | let u := y / T |
| 702 | have hu : u ∈ Icc (0 : ℝ) 1 := |
| 703 | ⟨div_nonneg hy.1 hT.1.le, (div_le_one hT.1).2 hy.2⟩ |
| 704 | have hTu : T * u = y := by dsimp only [u]; field_simp [hT.1.ne'] |
| 705 | have heq : (fun ξ => |
| 706 | profileHistory (FromReference.histories N hT.1 hT.1 hTR κ P0 hP0) r (radius N.endpoint y, ξ) - |
| 707 | profileHistory (N.histories hT.1 hTR P0 hP0) r (radius N.endpoint y, ξ)) =ᶠ[𝓝 η] |
| 708 | (fun ξ => logHistory N.endpoint (fun _ _ => 0) |
| 709 | (activatedAngular T κ (FromReference.refLog N δ0)) |
| 710 | (controlled T κ (FromReference.refAxial N δ0)) r (y, ξ) - |
| 711 | logHistory N.endpoint (fun _ _ => 0) (referenceAngular (FromReference.refLog N δ0)) |
| 712 | (FromReference.refAxial N δ0) r (y, ξ)) := by |
| 713 | filter_upwards [parameterInterval_open.mem_nhds (hKJ hη)] with ξ hξ |
| 714 | rw [← hTu] |
| 715 | exact (diagonal_history_scaled_factor N hT.1 hTR hδ0 hδ0R hT.2 κ P0 hP0 r hu hξ).trans |
| 716 | (history_scaled_factor hT.1.ne' κ N.endpoint (fun _ _ => 0) parameterInterval_open |
| 717 | (FromReference.refLog_smooth N hδ0 hδ0R) (FromReference.refAxial_smooth N hδ0 hδ0R) r u hξ).symm |
| 718 | rw [heq.iteratedDeriv_eq n] |
| 719 | exact hb T hT κ hκ y hy η hη |
| 720 | |
| 721 | end NaturalOverlap |
| 722 | |
| 723 | end NavierStokes.ActivationBounds |