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.NaturalEntrance |
| 2 | import NavierStokes.ReferencePath |
| 3 | |
| 4 | /-! |
| 5 | # Ordered jet bounds for the actual reference path |
| 6 | |
| 7 | Coefficient-space norm bounds first give constants independent of the |
| 8 | normalization C. Only afterwards is the short REF transition chosen. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace NavierStokes.ReferenceJetBounds |
| 14 | |
| 15 | private local instance (ε : ℝ) : NormedAddCommGroup (NaturalEntrance.CoefficientPair ε) := |
| 16 | inferInstance |
| 17 | |
| 18 | open Set Filter MeasureTheory |
| 19 | open scoped Topology ContDiff |
| 20 | open ProfileHistories NaturalAxisCoefficients NaturalAxisBridge NaturalProfile NaturalEntrance |
| 21 | |
| 22 | |
| 23 | theorem parameter_deriv {F : ProfileHistories.Field} {p : Point} (hF : ContDiffAt ℝ ∞ F p) : |
| 24 | HasDerivAt (fun η => F (p.1, η)) (parameterPartial F p) p.2 := by |
| 25 | simpa only [parameterPartial, Function.comp_def, id_eq, Prod.eta] using |
| 26 | (hF.differentiableAt (by simp)).hasFDerivAt.comp_hasDerivAt p.2 |
| 27 | ((hasDerivAt_const p.2 p.1).prodMk (hasDerivAt_id p.2)) |
| 28 | |
| 29 | theorem radial_deriv {F : ProfileHistories.Field} {p : Point} (hF : ContDiffAt ℝ ∞ F p) : |
| 30 | HasDerivAt (fun X => F (X, p.2)) (radialPartial F p) p.1 := by |
| 31 | simpa only [radialPartial, Function.comp_def, id_eq, Prod.eta] using |
| 32 | (hF.differentiableAt (by simp)).hasFDerivAt.comp_hasDerivAt p.1 |
| 33 | ((hasDerivAt_id p.1).prodMk (hasDerivAt_const p.1 p.2)) |
| 34 | |
| 35 | theorem parameterPartial_eq_partialEta {F : ProfileHistories.Field} {p : Point} (hF : ContDiffAt ℝ ∞ F p) : |
| 36 | parameterPartial F p = NaturalAxisBridge.partialEta F p := (parameter_deriv hF).deriv.symm |
| 37 | |
| 38 | theorem radialPartial_eq_partialY {F : ProfileHistories.Field} {p : Point} (hF : ContDiffAt ℝ ∞ F p) : |
| 39 | radialPartial F p = NaturalAxisBridge.partialY F p := (radial_deriv hF).deriv.symm |
| 40 | |
| 41 | def jetConstant {h j σ : ℝ} {P0 : ℝ → ℝ} (v : CoefficientFamily h j σ P0) (k m : ℕ) : ℝ := |
| 42 | AxisEvaluation.jetBound v.epsilon 5 k m * (‖referencePair v‖ + 1) |
| 43 | |
| 44 | theorem jetConstant_nonneg {h j σ : ℝ} {P0 : ℝ → ℝ} |
| 45 | (v : CoefficientFamily h j σ P0) (k m : ℕ) : 0 ≤ jetConstant v k m := by |
| 46 | exact mul_nonneg (AxisEvaluation.jetBound_nonneg v.epsilon_pos (by norm_num) k m) |
| 47 | (by positivity) |
| 48 | |
| 49 | theorem norm_pair_le {h j σ : ℝ} {P0 : ℝ → ℝ} |
| 50 | (v : CoefficientFamily h j σ P0) (x : CoefficientPair v.epsilon) |
| 51 | (hx : ‖x - referencePair v‖ ≤ 1) : ‖x‖ ≤ ‖referencePair v‖ + 1 := by |
| 52 | calc |
| 53 | ‖x‖ = ‖(x - referencePair v) + referencePair v‖ := by rw [sub_add_cancel] |
| 54 | _ ≤ ‖x - referencePair v‖ + ‖referencePair v‖ := norm_add_le _ _ |
| 55 | _ ≤ _ := by linarith |
| 56 | |
| 57 | theorem coefficient_jet_bound {h j σ : ℝ} {P0 : ℝ → ℝ} |
| 58 | (v : CoefficientFamily h j σ P0) (x : CoefficientPair v.epsilon) |
| 59 | (hx : ‖x - referencePair v‖ ≤ 1) (k m : ℕ) {p : Point} (hp : |p.1| ≤ 5) : |
| 60 | |AxisEvaluation.mixedSeries window v.epsilon x.1 k m p| ≤ jetConstant v k m ∧ |
| 61 | |AxisEvaluation.mixedSeries window v.epsilon x.2 k m p| ≤ jetConstant v k m := by |
| 62 | have hb (A : AxisCoefficientSpace.AxisSpace window v.epsilon) (hA : ‖A‖ ≤ ‖x‖) : |
| 63 | |AxisEvaluation.mixedSeries window v.epsilon A k m p| ≤ jetConstant v k m := by |
| 64 | have h := AxisEvaluation.mixedSeries_bound window v.epsilon_pos (by norm_num) (by norm_num) A k m hp |
| 65 | rw [Real.norm_eq_abs] at h |
| 66 | exact h.trans (mul_le_mul_of_nonneg_left (hA.trans (norm_pair_le v x hx)) |
| 67 | (AxisEvaluation.jetBound_nonneg v.epsilon_pos (by norm_num) k m)) |
| 68 | exact ⟨hb x.1 (norm_fst_le x), hb x.2 (norm_snd_le x)⟩ |
| 69 | |
| 70 | section Natural |
| 71 | |
| 72 | variable {h j σ Λ C : ℝ} {P0 : ℝ → ℝ} {d : AnalyticInputs h j σ P0} |
| 73 | variable (F : CoefficientProfile d Λ C) |
| 74 | |
| 75 | theorem natural_U_value (hΛ : Λ ≠ 0) (p : Point) : |
| 76 | Λ * (F.family.U p - NaturalAxisData.U j p.2) = |
| 77 | AxisEvaluation.profile window d.coefficients.epsilon F.coefficients.2 (rescalePoint Λ p) := by |
| 78 | rw [F.U_eq] |
| 79 | dsimp [axialField, affineProfile, pullback] |
| 80 | field_simp ; ring |
| 81 | |
| 82 | theorem natural_U_parameter (hΛ : Λ ≠ 0) {p : Point} (hp : p ∈ domain Λ) : |
| 83 | Λ * (parameterPartial F.family.U p - 4) = |
| 84 | NaturalAxisBridge.partialEta (AxisEvaluation.profile window d.coefficients.epsilon F.coefficients.2) |
| 85 | (rescalePoint Λ p) := by |
| 86 | have hpart : parameterPartial F.family.U p = NaturalAxisBridge.partialEta F.family.U p := |
| 87 | parameterPartial_eq_partialEta (F.family.natural.U_smooth.contDiffAt ((domain_isOpen Λ).mem_nhds hp)) |
| 88 | rw [hpart, F.U_eq] |
| 89 | rw [axialField, affineProfile_partialEta |
| 90 | (AxisEvaluation.profile_smooth window d.coefficients.epsilon_pos F.coefficients.2) |
| 91 | (1 / Λ) Λ hp (uStar_hasDerivAt j p.2)] |
| 92 | field_simp ; ring |
| 93 | |
| 94 | theorem natural_U_radial (hΛ : Λ ≠ 0) {p : Point} (hp : p ∈ domain Λ) : |
| 95 | Λ * p.1 * radialPartial F.family.U p = (rescalePoint Λ p).1 * |
| 96 | NaturalAxisBridge.partialY (AxisEvaluation.profile window d.coefficients.epsilon F.coefficients.2) |
| 97 | (rescalePoint Λ p) := by |
| 98 | have hpart : radialPartial F.family.U p = NaturalAxisBridge.partialY F.family.U p := |
| 99 | radialPartial_eq_partialY (F.family.natural.U_smooth.contDiffAt ((domain_isOpen Λ).mem_nhds hp)) |
| 100 | rw [hpart, F.U_eq, axialField_partialY d.coefficients.epsilon_pos hΛ F.coefficients hp] |
| 101 | rfl |
| 102 | |
| 103 | theorem natural_log_parameter (_ : 0 < Λ) (hC : 0 < C) {p : Point} (hp : p ∈ domain Λ) |
| 104 | (hφ : AxisEvaluation.profile window d.coefficients.epsilon F.coefficients.1 (rescalePoint Λ p) ≠ 0) : |
| 105 | parameterPartial F.family.f p / F.family.f p - Λ * realGradient h j σ p.2 = |
| 106 | NaturalAxisBridge.partialEta (AxisEvaluation.profile window d.coefficients.epsilon F.coefficients.1) |
| 107 | (rescalePoint Λ p) / |
| 108 | AxisEvaluation.profile window d.coefficients.epsilon F.coefficients.1 (rescalePoint Λ p) := by |
| 109 | have hpart : parameterPartial F.family.f p = NaturalAxisBridge.partialEta F.family.f p := |
| 110 | parameterPartial_eq_partialEta (F.family.natural.f_smooth.contDiffAt ((domain_isOpen Λ).mem_nhds hp)) |
| 111 | rw [hpart, F.f_eq] |
| 112 | rw [angularField, angularProfile_parameter_log_derivative |
| 113 | (AxisEvaluation.profile_smooth window d.coefficients.epsilon_pos F.coefficients.1) hp |
| 114 | (realAmplitude_pos h j σ Λ hC p.2).ne' hφ |
| 115 | (d.realAmplitude_hasDerivAt Λ C ⟨hp.2.1.le, hp.2.2.le⟩)] |
| 116 | ring |
| 117 | |
| 118 | theorem natural_log_radial (hC : 0 < C) {p : Point} (hp : p ∈ domain Λ) |
| 119 | (hφ : AxisEvaluation.profile window d.coefficients.epsilon F.coefficients.1 (rescalePoint Λ p) ≠ 0) : |
| 120 | p.1 * radialPartial F.family.f p / F.family.f p = |
| 121 | (rescalePoint Λ p).1 * |
| 122 | NaturalAxisBridge.partialY (AxisEvaluation.profile window d.coefficients.epsilon F.coefficients.1) |
| 123 | (rescalePoint Λ p) / |
| 124 | AxisEvaluation.profile window d.coefficients.epsilon F.coefficients.1 (rescalePoint Λ p) := by |
| 125 | have hpart : radialPartial F.family.f p = NaturalAxisBridge.partialY F.family.f p := |
| 126 | radialPartial_eq_partialY (F.family.natural.f_smooth.contDiffAt ((domain_isOpen Λ).mem_nhds hp)) |
| 127 | rw [hpart, F.f_eq] |
| 128 | exact angularProfile_radial_log_derivative |
| 129 | (AxisEvaluation.profile_smooth window d.coefficients.epsilon_pos F.coefficients.1) hp |
| 130 | (realAmplitude_pos h j σ Λ hC p.2).ne' hφ |
| 131 | |
| 132 | theorem natural_U_bounds (hΛ : 0 < Λ) {p : Point} (hp : rescalePoint Λ p ∈ entranceSet) : |
| 133 | |Λ * (F.family.U p - NaturalAxisData.U j p.2)| ≤ jetConstant d.coefficients 0 0 ∧ |
| 134 | |Λ * (parameterPartial F.family.U p - 4)| ≤ jetConstant d.coefficients 0 1 ∧ |
| 135 | |Λ * p.1 * radialPartial F.family.U p| ≤ 5 * jetConstant d.coefficients 1 0 := by |
| 136 | have hdom : p ∈ domain Λ := entrance_mem_strip hp |
| 137 | have h0 := (coefficient_jet_bound d.coefficients F.coefficients F.norm_ball 0 0 (entrance_abs_le_five hp)).2 |
| 138 | have hη := (coefficient_jet_bound d.coefficients F.coefficients F.norm_ball 0 1 (entrance_abs_le_five hp)).2 |
| 139 | have hx := (coefficient_jet_bound d.coefficients F.coefficients F.norm_ball 1 0 (entrance_abs_le_five hp)).2 |
| 140 | rw [AxisEvaluation.mixedSeries_zero] at h0 |
| 141 | rw [natural_U_value F hΛ.ne', natural_U_parameter F hΛ.ne' hdom, |
| 142 | natural_U_radial F hΛ.ne' hdom] |
| 143 | rw [partialEta_profile window d.coefficients.epsilon_pos _ (entrance_mem_strip hp), |
| 144 | partialY_profile window d.coefficients.epsilon_pos _ (entrance_mem_strip hp)] |
| 145 | refine ⟨h0, hη, ?_⟩ |
| 146 | rw [abs_mul] |
| 147 | exact mul_le_mul (entrance_abs_le_five hp) hx (abs_nonneg _) |
| 148 | (by norm_num) |
| 149 | |
| 150 | theorem natural_log_bound (hσ : 0 < σ) (hΛ : 0 < Λ) (hC : 0 < C) |
| 151 | (hscale : AxisReference.stabilityScale d.coefficients.epsilon (profileErrorConstant d) ≤ Λ) |
| 152 | {p : Point} (hp : rescalePoint Λ p ∈ entranceSet) : |
| 153 | |parameterPartial F.family.f p / F.family.f p - Λ * realGradient h j σ p.2| ≤ |
| 154 | 8 * jetConstant d.coefficients 0 1 := by |
| 155 | have hφ := coefficient_phi_lower d.coefficients hσ (profileErrorConstant_nonneg d) |
| 156 | hscale F.coefficients F.norm_error hp.1.1 hp.1.2 (original_interval_interior hp.2) |
| 157 | have hφpos : 0 < AxisEvaluation.profile window d.coefficients.epsilon F.coefficients.1 (rescalePoint Λ p) := |
| 158 | lt_trans (by norm_num) hφ |
| 159 | rw [natural_log_parameter F hΛ hC (entrance_mem_strip hp) hφpos.ne', abs_div, abs_of_pos hφpos] |
| 160 | have hη := (coefficient_jet_bound d.coefficients F.coefficients F.norm_ball 0 1 (entrance_abs_le_five hp)).1 |
| 161 | rw [partialEta_profile window d.coefficients.epsilon_pos _ (entrance_mem_strip hp)] |
| 162 | apply (div_le_iff₀ hφpos).2 |
| 163 | have hE := jetConstant_nonneg d.coefficients 0 1 |
| 164 | nlinarith |
| 165 | |
| 166 | def amplitudeConstant (d : AnalyticInputs h j σ P0) (Λ G : ℝ) : ℝ := |
| 167 | d.normalizationThreshold Λ * jetConstant d.coefficients 0 0 * |
| 168 | (1 + Λ * G + 8 * jetConstant d.coefficients 0 1) |
| 169 | |
| 170 | theorem amplitudeConstant_nonneg (hΛ : 0 ≤ Λ) {G : ℝ} (hG : 0 ≤ G) : |
| 171 | 0 ≤ amplitudeConstant d Λ G := by |
| 172 | exact mul_nonneg (mul_nonneg (Real.exp_pos _).le (jetConstant_nonneg d.coefficients 0 0)) |
| 173 | (by have := jetConstant_nonneg d.coefficients 0 1; positivity) |
| 174 | |
| 175 | theorem natural_amplitude_bounds (hσ : 0 < σ) (hΛ : 0 < Λ) (hC : 0 < C) |
| 176 | (hscale : AxisReference.stabilityScale d.coefficients.epsilon (profileErrorConstant d) ≤ Λ) |
| 177 | {G : ℝ} (hG : 0 ≤ G) {p : Point} (hp : rescalePoint Λ p ∈ entranceSet) |
| 178 | (hgrad : |realGradient h j σ p.2| ≤ G) : |
| 179 | |F.family.f p| ≤ amplitudeConstant d Λ G / C ∧ |
| 180 | |parameterPartial F.family.f p| ≤ amplitudeConstant d Λ G / C := by |
| 181 | have hE0 := jetConstant_nonneg d.coefficients 0 0 |
| 182 | have hE1 := jetConstant_nonneg d.coefficients 0 1 |
| 183 | have hT : 0 < d.normalizationThreshold Λ := Real.exp_pos _ |
| 184 | have hbase : 0 ≤ d.normalizationThreshold Λ * jetConstant d.coefficients 0 0 / C := by positivity |
| 185 | have hφ := (coefficient_jet_bound d.coefficients F.coefficients F.norm_ball 0 0 (entrance_abs_le_five hp)).1 |
| 186 | rw [AxisEvaluation.mixedSeries_zero] at hφ |
| 187 | have ha := realAmplitude_le_threshold d hΛ.le hC |
| 188 | (show p.2 ∈ window.interval from ⟨(original_interval_interior hp.2).1.le, (original_interval_interior hp.2).2.le⟩) |
| 189 | have hf0 : |F.family.f p| ≤ d.normalizationThreshold Λ * jetConstant d.coefficients 0 0 / C := by |
| 190 | rw [F.f_eq] |
| 191 | change |realAmplitude h j σ Λ C p.2 * |
| 192 | AxisEvaluation.profile window d.coefficients.epsilon F.coefficients.1 (rescalePoint Λ p)| ≤ _ |
| 193 | rw [abs_mul, abs_of_pos (realAmplitude_pos h j σ Λ hC p.2)] |
| 194 | calc |
| 195 | _ ≤ (d.normalizationThreshold Λ / C) * jetConstant d.coefficients 0 0 := |
| 196 | mul_le_mul ha hφ (abs_nonneg _) (div_nonneg hT.le hC.le) |
| 197 | _ = _ := by ring |
| 198 | have hfp : 0 < F.family.f p := F.family.positive p (entrance_mem_strip hp) hp.1.1 hp.1.2 |
| 199 | have hl := natural_log_bound F hσ hΛ hC hscale hp |
| 200 | have hlg : |parameterPartial F.family.f p / F.family.f p| ≤ Λ * G + 8 * jetConstant d.coefficients 0 1 := by |
| 201 | calc |
| 202 | _ = |(parameterPartial F.family.f p / F.family.f p - Λ * realGradient h j σ p.2) + |
| 203 | Λ * realGradient h j σ p.2| := by ring_nf |
| 204 | _ ≤ |parameterPartial F.family.f p / F.family.f p - Λ * realGradient h j σ p.2| + |
| 205 | |Λ * realGradient h j σ p.2| := abs_add_le _ _ |
| 206 | _ ≤ 8 * jetConstant d.coefficients 0 1 + Λ * G := by |
| 207 | rw [abs_mul, abs_of_pos hΛ] |
| 208 | exact add_le_add hl (mul_le_mul_of_nonneg_left hgrad hΛ.le) |
| 209 | _ = _ := by ring |
| 210 | have hfη : |parameterPartial F.family.f p| ≤ |
| 211 | (d.normalizationThreshold Λ * jetConstant d.coefficients 0 0 / C) * |
| 212 | (Λ * G + 8 * jetConstant d.coefficients 0 1) := by |
| 213 | calc |
| 214 | _ = |F.family.f p| * |parameterPartial F.family.f p / F.family.f p| := by |
| 215 | rw [← abs_mul, mul_div_cancel₀ _ hfp.ne'] |
| 216 | _ ≤ _ := mul_le_mul hf0 hlg (abs_nonneg _) hbase |
| 217 | constructor |
| 218 | · apply hf0.trans |
| 219 | have hb := mul_le_mul_of_nonneg_left |
| 220 | (show (1 : ℝ) ≤ 1 + Λ * G + 8 * jetConstant d.coefficients 0 1 by |
| 221 | nlinarith [mul_nonneg hΛ.le hG]) hbase |
| 222 | simpa only [mul_one, amplitudeConstant, mul_div_assoc, div_mul_eq_mul_div, mul_assoc] using hb |
| 223 | · apply hfη.trans |
| 224 | have hb := mul_le_mul_of_nonneg_left |
| 225 | (show Λ * G + 8 * jetConstant d.coefficients 0 1 ≤ |
| 226 | 1 + Λ * G + 8 * jetConstant d.coefficients 0 1 by linarith) hbase |
| 227 | simpa only [amplitudeConstant, mul_div_assoc, div_mul_eq_mul_div, mul_assoc] using hb |
| 228 | |
| 229 | end Natural |
| 230 | |
| 231 | def holdSet : Set Point := Icc (0 : ℝ) 110 ×ˢ Icc (-1 : ℝ) 1 |
| 232 | |
| 233 | theorem reference_mem (N : ReferencePath.Input) {p : Point} (hX : 0 ≤ p.1) |
| 234 | (hη : p.2 ∈ Icc (-1 : ℝ) 1) : p ∈ N.radialDomain.carrier := by |
| 235 | change -20 < N.scale * p.1 ∧ p.2 ∈ ReferencePath.parameterInterval |
| 236 | exact ⟨lt_of_lt_of_le (by norm_num) (mul_nonneg N.scale_pos.le hX), original_interval_interior hη⟩ |
| 237 | |
| 238 | theorem endpoint_mem (N : ReferencePath.Input) {η : ℝ} (hη : η ∈ Icc (-1 : ℝ) 1) : |
| 239 | (N.endpoint, η) ∈ domain N.scale := by |
| 240 | change (-20 < N.scale * N.endpoint ∧ N.scale * N.endpoint < 20) ∧ |
| 241 | η ∈ ReferencePath.parameterInterval |
| 242 | rw [N.scale_endpoint] |
| 243 | exact ⟨by norm_num, original_interval_interior hη⟩ |
| 244 | |
| 245 | theorem first_parameter_difference {F G : ProfileHistories.Field} {x y η : ℝ} |
| 246 | (hF : ContDiffAt ℝ ∞ F (x, η)) (hG : ContDiffAt ℝ ∞ G (y, η)) : |
| 247 | iteratedDeriv 1 (fun z => F (x, z) - G (y, z)) η = |
| 248 | parameterPartial F (x, η) - parameterPartial G (y, η) := by |
| 249 | rw [iteratedDeriv_one] |
| 250 | have hdF : HasDerivAt (fun z => F (x, z)) (parameterPartial F (x, η)) η := parameter_deriv hF |
| 251 | have hdG : HasDerivAt (fun z => G (y, z)) (parameterPartial G (y, η)) η := parameter_deriv hG |
| 252 | exact (hdF.sub hdG).deriv |
| 253 | |
| 254 | theorem first_log_difference {F G : ProfileHistories.Field} {x y η : ℝ} |
| 255 | (hF : ContDiffAt ℝ ∞ F (x, η)) (hG : ContDiffAt ℝ ∞ G (y, η)) |
| 256 | (hFn : F (x, η) ≠ 0) (hGn : G (y, η) ≠ 0) : |
| 257 | iteratedDeriv 1 (fun z => Real.log (F (x, z)) - Real.log (G (y, z))) η = |
| 258 | parameterPartial F (x, η) / F (x, η) - parameterPartial G (y, η) / G (y, η) := by |
| 259 | rw [iteratedDeriv_one] |
| 260 | exact (((parameter_deriv hF).log hFn).sub ((parameter_deriv hG).log hGn)).deriv |
| 261 | |
| 262 | structure TransitionControl (N : ReferencePath.Input) (δ εU εF : ℝ) : Prop where |
| 263 | length_pos : 0 < δ |
| 264 | length_bound : 2 * δ < ReferencePath.rampLimit |
| 265 | U_value : ∀ p : Point, N.endpoint ≤ p.1 → p.2 ∈ Icc (-1 : ℝ) 1 → |
| 266 | |N.refU δ p - N.U (N.endpoint, p.2)| < εU |
| 267 | U_parameter : ∀ p : Point, N.endpoint ≤ p.1 → p.2 ∈ Icc (-1 : ℝ) 1 → |
| 268 | |parameterPartial (N.refU δ) p - parameterPartial N.U (N.endpoint, p.2)| < εU |
| 269 | log_parameter : ∀ p : Point, N.endpoint ≤ p.1 → p.2 ∈ Icc (-1 : ℝ) 1 → |
| 270 | |parameterPartial (N.refF δ) p / N.refF δ p - |
| 271 | parameterPartial N.f (N.endpoint, p.2) / N.f (N.endpoint, p.2)| < 1 |
| 272 | f_value : ∀ p : Point, N.endpoint ≤ p.1 → p.2 ∈ Icc (-1 : ℝ) 1 → |
| 273 | |N.refF δ p - N.f (N.endpoint, p.2)| < εF |
| 274 | f_parameter : ∀ p : Point, N.endpoint ≤ p.1 → p.2 ∈ Icc (-1 : ℝ) 1 → |
| 275 | |parameterPartial (N.refF δ) p - parameterPartial N.f (N.endpoint, p.2)| < εF |
| 276 | |
| 277 | /-- One actual cutoff length works for all required low-order reference jets. |
| 278 | The tolerances may be chosen only after the fixed input profile is known. -/ |
| 279 | theorem exists_transition_control (N : ReferencePath.Input) {εU εF : ℝ} |
| 280 | (hεU : 0 < εU) (hεF : 0 < εF) : |
| 281 | ∃ r > 0, ∀ δ, 0 < δ → δ < r → TransitionControl N δ εU εF := by |
| 282 | obtain ⟨u0, hu0, hU0⟩ := N.ref_U_error_jet_close isCompact_Icc original_interval_interior 0 hεU |
| 283 | obtain ⟨u1, hu1, hU1⟩ := N.ref_U_error_jet_close isCompact_Icc original_interval_interior 1 hεU |
| 284 | obtain ⟨l1, hl1, hL1⟩ := N.ref_log_error_jet_close isCompact_Icc original_interval_interior 1 zero_lt_one |
| 285 | obtain ⟨f0, hf0, hF0⟩ := N.ref_field_error_jet_close isCompact_Icc original_interval_interior 0 hεF |
| 286 | obtain ⟨f1, hf1, hF1⟩ := N.ref_field_error_jet_close isCompact_Icc original_interval_interior 1 hεF |
| 287 | let r := min (ReferencePath.rampLimit / 4) (min u0 (min u1 (min l1 (min f0 f1)))) |
| 288 | have hr : 0 < r := lt_min (div_pos ReferencePath.rampLimit_pos (by norm_num)) |
| 289 | (lt_min hu0 (lt_min hu1 (lt_min hl1 (lt_min hf0 hf1)))) |
| 290 | refine ⟨r, hr, ?_⟩ |
| 291 | intro δ hδ hδr |
| 292 | have hlim : δ < ReferencePath.rampLimit / 4 := hδr.trans_le (min_le_left _ _) |
| 293 | have htail := hδr.trans_le (min_le_right _ _) |
| 294 | have hδu0 : δ < u0 := htail.trans_le (min_le_left _ _) |
| 295 | have htail1 := htail.trans_le (min_le_right _ _) |
| 296 | have hδu1 : δ < u1 := htail1.trans_le (min_le_left _ _) |
| 297 | have htail2 := htail1.trans_le (min_le_right _ _) |
| 298 | have hδl1 : δ < l1 := htail2.trans_le (min_le_left _ _) |
| 299 | have htail3 := htail2.trans_le (min_le_right _ _) |
| 300 | have hδf0 : δ < f0 := htail3.trans_le (min_le_left _ _) |
| 301 | have hδf1 : δ < f1 := htail3.trans_le (min_le_right _ _) |
| 302 | have hδT : 2 * δ < ReferencePath.rampLimit := by linarith |
| 303 | refine ⟨hδ, hδT, ?_, ?_, ?_, ?_, ?_⟩ |
| 304 | · intro p hX hη |
| 305 | simpa only [iteratedDeriv_zero, Prod.eta] using hU0 δ hδ hδu0 p.1 hX p.2 hη |
| 306 | · intro p hX hη |
| 307 | have hmem := reference_mem N (N.endpoint_pos.le.trans hX) hη |
| 308 | have hrU := (N.refU_smooth hδ hδT).contDiffAt (N.radialDomain.isOpen.mem_nhds hmem) |
| 309 | have hnU := N.U_smooth.contDiffAt ((domain_isOpen N.scale).mem_nhds (endpoint_mem N hη)) |
| 310 | have hc := hU1 δ hδ hδu1 p.1 hX p.2 hη |
| 311 | rw [first_parameter_difference hrU hnU] at hc |
| 312 | exact hc |
| 313 | · intro p hX hη |
| 314 | have hXp := N.endpoint_pos.le.trans hX |
| 315 | have hmem := reference_mem N hXp hη |
| 316 | have hrF := (N.refF_smooth hδ hδT).contDiffAt (N.radialDomain.isOpen.mem_nhds hmem) |
| 317 | have hnF := N.f_smooth.contDiffAt ((domain_isOpen N.scale).mem_nhds (endpoint_mem N hη)) |
| 318 | have hc := hL1 δ hδ hδl1 p.1 hX p.2 hη |
| 319 | rw [first_log_difference hrF hnF (N.refF_pos δ hmem hXp).ne' |
| 320 | (N.endpoint_f_pos (original_interval_interior hη)).ne'] at hc |
| 321 | exact hc |
| 322 | · intro p hX hη |
| 323 | simpa only [iteratedDeriv_zero, Prod.eta] using hF0 δ hδ hδf0 p.1 hX p.2 hη |
| 324 | · intro p hX hη |
| 325 | have hmem := reference_mem N (N.endpoint_pos.le.trans hX) hη |
| 326 | have hrF := (N.refF_smooth hδ hδT).contDiffAt (N.radialDomain.isOpen.mem_nhds hmem) |
| 327 | have hnF := N.f_smooth.contDiffAt ((domain_isOpen N.scale).mem_nhds (endpoint_mem N hη)) |
| 328 | have hc := hF1 δ hδ hδf1 p.1 hX p.2 hη |
| 329 | rw [first_parameter_difference hrF hnF] at hc |
| 330 | exact hc |
| 331 | |
| 332 | theorem reference_initial_eventually (N : ReferencePath.Input) {δ : ℝ} |
| 333 | (hδ : 0 < δ) (hδT : 2 * δ < ReferencePath.rampLimit) {p : Point} |
| 334 | (hX : p.1 ≤ N.endpoint) (hη : p.2 ∈ Icc (-1 : ℝ) 1) : |
| 335 | (N.refF δ =ᶠ[𝓝 p] N.f) ∧ (N.refU δ =ᶠ[𝓝 p] N.U) := by |
| 336 | have he : 1 < Real.exp δ := Real.one_lt_exp_iff.mpr hδ |
| 337 | have hm : p.1 < N.endpoint * Real.exp δ := by nlinarith [N.endpoint_pos] |
| 338 | have hn : ∀ᶠ q in 𝓝 p, q.1 < N.endpoint * Real.exp δ ∧ q.2 ∈ ReferencePath.parameterInterval := |
| 339 | (continuousAt_fst.eventually (Iio_mem_nhds hm)).and |
| 340 | (continuousAt_snd.eventually (ReferencePath.parameterInterval_open.mem_nhds (original_interval_interior hη))) |
| 341 | constructor |
| 342 | · filter_upwards [hn] with q hq |
| 343 | exact N.refF_eq_natural hδ hδT hq.2 hq.1.le |
| 344 | · filter_upwards [hn] with q hq |
| 345 | exact N.refU_eq_natural hδ hδT hq.2 hq.1.le |
| 346 | |
| 347 | theorem reference_initial_partials (N : ReferencePath.Input) {δ : ℝ} |
| 348 | (hδ : 0 < δ) (hδT : 2 * δ < ReferencePath.rampLimit) {p : Point} |
| 349 | (hX : p.1 ≤ N.endpoint) (hη : p.2 ∈ Icc (-1 : ℝ) 1) : |
| 350 | parameterPartial (N.refF δ) p = parameterPartial N.f p ∧ |
| 351 | parameterPartial (N.refU δ) p = parameterPartial N.U p ∧ |
| 352 | radialPartial (N.refU δ) p = radialPartial N.U p := by |
| 353 | obtain ⟨hF, hU⟩ := reference_initial_eventually N hδ hδT hX hη |
| 354 | unfold parameterPartial radialPartial |
| 355 | rw [hF.fderiv_eq, hU.fderiv_eq] |
| 356 | exact ⟨rfl, rfl, rfl⟩ |
| 357 | |
| 358 | theorem initial_entrance {Λ : ℝ} (hΛ : 0 < Λ) {p : Point} |
| 359 | (hX : 0 ≤ p.1) (hupper : p.1 ≤ 4 / Λ) (hη : p.2 ∈ Icc (-1 : ℝ) 1) : |
| 360 | rescalePoint Λ p ∈ entranceSet := by |
| 361 | change (0 ≤ Λ * p.1 ∧ Λ * p.1 ≤ 41 / 10) ∧ p.2 ∈ Icc (-1 : ℝ) 1 |
| 362 | have hh := mul_le_mul_of_nonneg_left hupper hΛ.le |
| 363 | have he : Λ * (4 / Λ) = 4 := by field_simp |
| 364 | rw [he] at hh |
| 365 | exact ⟨⟨mul_nonneg hΛ.le hX, by linarith⟩, hη⟩ |
| 366 | |
| 367 | theorem logtime_entrance (N : ReferencePath.Input) {p : Point} (hX : 0 < p.1) |
| 368 | (hη : p.2 ∈ Icc (-1 : ℝ) 1) (ht : N.logTime p.1 < ReferencePath.rampLimit) : |
| 369 | rescalePoint N.scale p ∈ entranceSet := by |
| 370 | have he : Real.exp (N.logTime p.1) < 41 / 40 := by |
| 371 | simpa only [ReferencePath.rampLimit, Real.exp_log (by norm_num : (0 : ℝ) < 41 / 40)] |
| 372 | using Real.exp_lt_exp.mpr ht |
| 373 | have hs := N.fromLog_scaled (N.logTime p.1, p.2) |
| 374 | rw [N.fromLog_logTime hX] at hs |
| 375 | change (0 ≤ N.scale * p.1 ∧ N.scale * p.1 ≤ 41 / 10) ∧ p.2 ∈ Icc (-1 : ℝ) 1 |
| 376 | refine ⟨⟨(mul_pos N.scale_pos hX).le, ?_⟩, hη⟩ |
| 377 | dsimp only at hs |
| 378 | rw [hs] |
| 379 | linarith |
| 380 | |
| 381 | def uniformBound {h j σ : ℝ} {P0 : ℝ → ℝ} (v : CoefficientFamily h j σ P0) : ℝ := |
| 382 | 2 + jetConstant v 0 0 + 9 * jetConstant v 0 1 + 5 * jetConstant v 1 0 |
| 383 | |
| 384 | theorem uniformBound_controls {h j σ : ℝ} {P0 : ℝ → ℝ} (v : CoefficientFamily h j σ P0) : |
| 385 | 1 < uniformBound v ∧ 1 + jetConstant v 0 0 ≤ uniformBound v ∧ |
| 386 | 1 + jetConstant v 0 1 ≤ uniformBound v ∧ 5 * jetConstant v 1 0 ≤ uniformBound v ∧ |
| 387 | 1 + 8 * jetConstant v 0 1 ≤ uniformBound v := by |
| 388 | have h0 := jetConstant_nonneg v 0 0 |
| 389 | have h1 := jetConstant_nonneg v 0 1 |
| 390 | have hx := jetConstant_nonneg v 1 0 |
| 391 | dsimp [uniformBound] |
| 392 | constructor |
| 393 | · linarith |
| 394 | constructor |
| 395 | · linarith |
| 396 | constructor |
| 397 | · linarith |
| 398 | constructor <;> linarith |
| 399 | |
| 400 | structure JetBounds (h j σ Λ C B K : ℝ) (f U : ProfileHistories.Field) : Prop where |
| 401 | axial_value : ∀ p ∈ holdSet, |Λ * (U p - NaturalAxisData.U j p.2)| ≤ B |
| 402 | axial_parameter : ∀ p ∈ holdSet, |Λ * (parameterPartial U p - 4)| ≤ B |
| 403 | axial_radial : ∀ p ∈ holdSet, |Λ * p.1 * radialPartial U p| ≤ B |
| 404 | log_parameter : ∀ p ∈ holdSet, |
| 405 | |parameterPartial f p / f p - Λ * realGradient h j σ p.2| ≤ B |
| 406 | angular_value : ∀ p ∈ holdSet, |f p| ≤ K / C |
| 407 | angular_parameter : ∀ p ∈ holdSet, |parameterPartial f p| ≤ K / C |
| 408 | |
| 409 | section ReferenceEstimates |
| 410 | |
| 411 | variable {h j σ Λ C : ℝ} {P0 : ℝ → ℝ} {d : AnalyticInputs h j σ P0} |
| 412 | variable (F : CoefficientProfile d Λ C) (hΛ : 0 < Λ) |
| 413 | |
| 414 | abbrev referenceInput : ReferencePath.Input := ReferencePath.Input.ofNatural hΛ F.family |
| 415 | |
| 416 | theorem reference_U_radial_bound {δ : ℝ} (hδ : 0 < δ) |
| 417 | (hδT : 2 * δ < ReferencePath.rampLimit) {p : Point} (hp : p ∈ holdSet) : |
| 418 | |Λ * p.1 * radialPartial ((referenceInput F hΛ).refU δ) p| ≤ |
| 419 | 5 * jetConstant d.coefficients 1 0 := by |
| 420 | let N := referenceInput F hΛ |
| 421 | have hE := jetConstant_nonneg d.coefficients 1 0 |
| 422 | by_cases hz : p.1 = 0 |
| 423 | · simp only [hz, mul_zero, zero_mul, abs_zero] |
| 424 | positivity |
| 425 | have hX : 0 < p.1 := lt_of_le_of_ne hp.1.1 (Ne.symm hz) |
| 426 | have hm := reference_mem N hp.1.1 hp.2 |
| 427 | have hd : deriv (fun X => N.refU δ (X, p.2)) p.1 = radialPartial (N.refU δ) p := |
| 428 | (radial_deriv ((N.refU_smooth hδ hδT).contDiffAt (N.radialDomain.isOpen.mem_nhds hm))).deriv |
| 429 | by_cases ht : N.logTime p.1 < ReferencePath.rampLimit |
| 430 | · have hs := N.same_radius_U_slope hδ hδT (original_interval_interior hp.2) hX ht |
| 431 | rw [hd] at hs |
| 432 | have heq : Λ * p.1 * radialPartial (N.refU δ) p = |
| 433 | ReferencePath.slopeCutoff δ (N.logTime p.1) * (Λ * p.1 * radialPartial F.family.U p) := by |
| 434 | calc |
| 435 | _ = Λ * (p.1 * radialPartial (N.refU δ) p) := by ring |
| 436 | _ = _ := by |
| 437 | rw [hs] |
| 438 | change Λ * (ReferencePath.slopeCutoff δ (N.logTime p.1) * (p.1 * radialPartial F.family.U p)) = _ |
| 439 | ring |
| 440 | rw [heq, abs_mul, abs_of_nonneg (ReferencePath.slopeCutoff_mem δ (N.logTime p.1)).1] |
| 441 | have hb := (natural_U_bounds F hΛ (logtime_entrance N hX hp.2 ht)).2.2 |
| 442 | exact (mul_le_mul_of_nonneg_left hb (ReferencePath.slopeCutoff_mem δ (N.logTime p.1)).1).trans |
| 443 | (mul_le_of_le_one_left (by positivity) (ReferencePath.slopeCutoff_mem δ (N.logTime p.1)).2) |
| 444 | · have hzcut := ReferencePath.slopeCutoff_zero hδ (hδT.le.trans (le_of_not_gt ht)) |
| 445 | have hs := (N.refU_hasDerivAt hδ hδT (original_interval_interior hp.2) hX).deriv |
| 446 | rw [hd, hzcut, zero_mul, zero_div] at hs |
| 447 | change |Λ * p.1 * radialPartial (N.refU δ) p| ≤ _ |
| 448 | rw [hs, mul_zero, abs_zero] |
| 449 | positivity |
| 450 | |
| 451 | theorem scaled_transfer (hpos : 0 < Λ) {a b c s : ℝ} (hclose : |a - b| ≤ 1 / Λ) |
| 452 | (hbase : |Λ * (b - c)| ≤ s) : |Λ * (a - c)| ≤ 1 + s := by |
| 453 | calc |
| 454 | _ = |Λ * (a - b) + Λ * (b - c)| := by congr 1; ring |
| 455 | _ ≤ |Λ * (a - b)| + |Λ * (b - c)| := abs_add_le _ _ |
| 456 | _ ≤ Λ * (1 / Λ) + s := by |
| 457 | rw [abs_mul, abs_of_pos hpos] |
| 458 | exact add_le_add (mul_le_mul_of_nonneg_left hclose hpos.le) hbase |
| 459 | _ = _ := by field_simp |
| 460 | |
| 461 | theorem transfer_difference {a b c r s : ℝ} (hclose : |a - b| ≤ r) (hbase : |b - c| ≤ s) : |
| 462 | |a - c| ≤ r + s := by |
| 463 | calc |
| 464 | _ = |(a - b) + (b - c)| := by ring_nf |
| 465 | _ ≤ |a - b| + |b - c| := abs_add_le _ _ |
| 466 | _ ≤ _ := add_le_add hclose hbase |
| 467 | |
| 468 | theorem transfer_absolute {a b r s : ℝ} (hclose : |a - b| ≤ r) (hbase : |b| ≤ s) : |
| 469 | |a| ≤ r + s := by |
| 470 | simpa only [sub_zero] using transfer_difference (c := (0 : ℝ)) hclose (by simpa only [sub_zero] using hbase) |
| 471 | |
| 472 | /-- The qualitative REF convergence has now been used only after Λ and C |
| 473 | were fixed, with explicit tolerances 1/Λ, 1, and 1/C. -/ |
| 474 | theorem bounds_of_control (hσ : 0 < σ) (hC : 0 < C) |
| 475 | (hscale : AxisReference.stabilityScale d.coefficients.epsilon (profileErrorConstant d) ≤ Λ) |
| 476 | {G : ℝ} (hG : 0 ≤ G) (hgrad : ∀ η ∈ Icc (-1 : ℝ) 1, |realGradient h j σ η| ≤ G) |
| 477 | {δ : ℝ} (hc : TransitionControl (referenceInput F hΛ) δ (1 / Λ) (1 / C)) : |
| 478 | JetBounds h j σ Λ C (uniformBound d.coefficients) (1 + amplitudeConstant d Λ G) |
| 479 | ((referenceInput F hΛ).refF δ) ((referenceInput F hΛ).refU δ) := by |
| 480 | let N := referenceInput F hΛ |
| 481 | have hB := uniformBound_controls d.coefficients |
| 482 | have hE0 := jetConstant_nonneg d.coefficients 0 0 |
| 483 | have hE1 := jetConstant_nonneg d.coefficients 0 1 |
| 484 | have hE10 := jetConstant_nonneg d.coefficients 1 0 |
| 485 | have hinit (p : Point) (hp : p ∈ holdSet) (hx : p.1 ≤ N.endpoint) : |
| 486 | rescalePoint Λ p ∈ entranceSet := initial_entrance hΛ hp.1.1 hx hp.2 |
| 487 | have hend (η : ℝ) (hη : η ∈ Icc (-1 : ℝ) 1) : |
| 488 | rescalePoint Λ (N.endpoint, η) ∈ entranceSet := |
| 489 | initial_entrance hΛ N.endpoint_pos.le le_rfl hη |
| 490 | have hKle : amplitudeConstant d Λ G / C ≤ (1 + amplitudeConstant d Λ G) / C := |
| 491 | div_le_div_of_nonneg_right (by linarith) hC.le |
| 492 | change JetBounds h j σ Λ C (uniformBound d.coefficients) (1 + amplitudeConstant d Λ G) |
| 493 | (N.refF δ) (N.refU δ) |
| 494 | refine ⟨?_, ?_, ?_, ?_, ?_, ?_⟩ |
| 495 | · intro p hp |
| 496 | by_cases hx : p.1 ≤ N.endpoint |
| 497 | · rw [N.refU_eq_natural_initial δ hx] |
| 498 | exact (natural_U_bounds F hΛ (hinit p hp hx)).1.trans (by linarith [hB.2.1]) |
| 499 | · have hxe := (lt_of_not_ge hx).le |
| 500 | have hb := (natural_U_bounds F hΛ (hend p.2 hp.2)).1 |
| 501 | exact (scaled_transfer hΛ (hc.U_value p hxe hp.2).le hb).trans hB.2.1 |
| 502 | · intro p hp |
| 503 | by_cases hx : p.1 ≤ N.endpoint |
| 504 | · rw [(reference_initial_partials N hc.length_pos hc.length_bound hx hp.2).2.1] |
| 505 | exact (natural_U_bounds F hΛ (hinit p hp hx)).2.1.trans (by linarith [hB.2.2.1]) |
| 506 | · have hxe := (lt_of_not_ge hx).le |
| 507 | have hb := (natural_U_bounds F hΛ (hend p.2 hp.2)).2.1 |
| 508 | exact (scaled_transfer hΛ (hc.U_parameter p hxe hp.2).le hb).trans hB.2.2.1 |
| 509 | · intro p hp |
| 510 | exact (reference_U_radial_bound F hΛ hc.length_pos hc.length_bound hp).trans hB.2.2.2.1 |
| 511 | · intro p hp |
| 512 | by_cases hx : p.1 ≤ N.endpoint |
| 513 | · rw [N.refF_eq_natural_initial δ hx, |
| 514 | (reference_initial_partials N hc.length_pos hc.length_bound hx hp.2).1] |
| 515 | exact (natural_log_bound F hσ hΛ hC hscale (hinit p hp hx)).trans (by linarith [hB.2.2.2.2]) |
| 516 | · have hxe := (lt_of_not_ge hx).le |
| 517 | have hb := natural_log_bound F hσ hΛ hC hscale (hend p.2 hp.2) |
| 518 | exact (transfer_difference (hc.log_parameter p hxe hp.2).le hb).trans hB.2.2.2.2 |
| 519 | · intro p hp |
| 520 | by_cases hx : p.1 ≤ N.endpoint |
| 521 | · rw [N.refF_eq_natural_initial δ hx] |
| 522 | exact (natural_amplitude_bounds F hσ hΛ hC hscale hG (hinit p hp hx) (hgrad p.2 hp.2)).1.trans hKle |
| 523 | · have hxe := (lt_of_not_ge hx).le |
| 524 | have hb := (natural_amplitude_bounds F hσ hΛ hC hscale hG (hend p.2 hp.2) (hgrad p.2 hp.2)).1 |
| 525 | have hb' := transfer_absolute (hc.f_value p hxe hp.2).le hb |
| 526 | convert! hb' using 1 ; ring |
| 527 | · intro p hp |
| 528 | by_cases hx : p.1 ≤ N.endpoint |
| 529 | · rw [(reference_initial_partials N hc.length_pos hc.length_bound hx hp.2).1] |
| 530 | exact (natural_amplitude_bounds F hσ hΛ hC hscale hG (hinit p hp hx) (hgrad p.2 hp.2)).2.trans hKle |
| 531 | · have hxe := (lt_of_not_ge hx).le |
| 532 | have hb := (natural_amplitude_bounds F hσ hΛ hC hscale hG (hend p.2 hp.2) (hgrad p.2 hp.2)).2 |
| 533 | have hb' := transfer_absolute (hc.f_parameter p hxe hp.2).le hb |
| 534 | convert! hb' using 1 ; ring |
| 535 | |
| 536 | end ReferenceEstimates |
| 537 | |
| 538 | def radialErrorConstant {h j σ : ℝ} {P0 : ℝ → ℝ} (d : AnalyticInputs h j σ P0) : ℝ := |
| 539 | AxisEvaluation.jetBound d.coefficients.epsilon 5 1 0 * profileErrorConstant d |
| 540 | |
| 541 | theorem radialErrorConstant_nonneg {h j σ : ℝ} {P0 : ℝ → ℝ} (d : AnalyticInputs h j σ P0) : |
| 542 | 0 ≤ radialErrorConstant d := |
| 543 | mul_nonneg (AxisEvaluation.jetBound_nonneg d.coefficients.epsilon_pos (by norm_num) 1 0) |
| 544 | (profileErrorConstant_nonneg d) |
| 545 | |
| 546 | theorem natural_radial_jet_error {h j σ Λ C : ℝ} {P0 : ℝ → ℝ} {d : AnalyticInputs h j σ P0} |
| 547 | (F : CoefficientProfile d Λ C) (hΛ : 0 < Λ) {p : Point} (hp : p ∈ entranceSet) : |
| 548 | |NaturalAxisBridge.partialY (AxisEvaluation.profile window d.coefficients.epsilon F.coefficients.1) p - |
| 549 | sourceJets d.coefficients.epsilon_pos (referencePair d.coefficients) p 1| ≤ radialErrorConstant d / Λ := by |
| 550 | rw [partialY_profile window d.coefficients.epsilon_pos _ (entrance_mem_strip hp)] |
| 551 | change |AxisEvaluation.mixedSeries window d.coefficients.epsilon F.coefficients.1 1 0 p - |
| 552 | AxisEvaluation.mixedSeries window d.coefficients.epsilon (referencePair d.coefficients).1 1 0 p| ≤ _ |
| 553 | have hb := AxisEvaluation.mixedSeries_sub_bound window d.coefficients.epsilon_pos |
| 554 | (by norm_num) (by norm_num) F.coefficients.1 (referencePair d.coefficients).1 1 0 |
| 555 | (entrance_abs_le_five hp) |
| 556 | have hn := (norm_fst_le (F.coefficients - referencePair d.coefficients)).trans F.norm_error |
| 557 | have hj := AxisEvaluation.jetBound_nonneg d.coefficients.epsilon_pos (by norm_num : (1 : ℝ) ≤ 5) 1 0 |
| 558 | have hk := profileErrorConstant_nonneg d |
| 559 | rw [Real.norm_eq_abs] at hb |
| 560 | apply hb.trans |
| 561 | apply (mul_le_mul_of_nonneg_left hn hj).trans |
| 562 | have he : AxisEvaluation.jetBound d.coefficients.epsilon 5 1 0 * |
| 563 | (profileErrorConstant d / (2 * Λ)) = radialErrorConstant d / Λ / 2 := by |
| 564 | dsimp [radialErrorConstant] |
| 565 | field_simp [hΛ.ne'] |
| 566 | rw [he] |
| 567 | have hnn : 0 ≤ radialErrorConstant d / Λ := div_nonneg (radialErrorConstant_nonneg d) hΛ.le |
| 568 | linarith |
| 569 | |
| 570 | /-- A genuine finite-dimensional source sample, with the radial jet error |
| 571 | still controlled by the coefficient norm. -/ |
| 572 | structure SlopeSample {h j σ : ℝ} {P0 : ℝ → ℝ} (d : AnalyticInputs h j σ P0) |
| 573 | (Λ B Kerr : ℝ) (f : ProfileHistories.Field) (p : Point) where |
| 574 | Y : ℝ |
| 575 | theta : ℝ |
| 576 | phi : ℝ |
| 577 | error : ℝ |
| 578 | point_mem : (Y, p.2) ∈ entranceSet |
| 579 | theta_mem : theta ∈ Icc (0 : ℝ) 1 |
| 580 | phi_lower : 1 / 8 ≤ phi |
| 581 | phi_upper : phi ≤ B |
| 582 | error_bound : |error| ≤ Kerr / Λ |
| 583 | slope_eq : p.1 * radialPartial f p / f p = theta * Y * |
| 584 | (sourceJets d.coefficients.epsilon_pos (referencePair d.coefficients) (Y, p.2) 1 + error) / phi |
| 585 | |
| 586 | theorem reference_slope_sample {h j σ Λ C : ℝ} {P0 : ℝ → ℝ} {d : AnalyticInputs h j σ P0} |
| 587 | (F : CoefficientProfile d Λ C) (hΛ : 0 < Λ) (hσ : 0 < σ) (hC : 0 < C) |
| 588 | (hscale : AxisReference.stabilityScale d.coefficients.epsilon (profileErrorConstant d) ≤ Λ) |
| 589 | {δ : ℝ} (hδ : 0 < δ) (hδT : 2 * δ < ReferencePath.rampLimit) |
| 590 | {p : Point} (hX : (referenceInput F hΛ).endpoint ≤ p.1) (hη : p.2 ∈ Icc (-1 : ℝ) 1) : |
| 591 | Nonempty (SlopeSample d Λ (uniformBound d.coefficients) (radialErrorConstant d) |
| 592 | ((referenceInput F hΛ).refF δ) p) := by |
| 593 | let N := referenceInput F hΛ |
| 594 | have hXp : 0 < p.1 := N.endpoint_pos.trans_le hX |
| 595 | have hmem := reference_mem N hXp.le hη |
| 596 | have hfpos := N.refF_pos δ hmem hXp.le |
| 597 | have hd : deriv (fun X => Real.log (N.refF δ (X, p.2))) p.1 = |
| 598 | radialPartial (N.refF δ) p / N.refF δ p := |
| 599 | ((radial_deriv ((N.refF_smooth hδ hδT).contDiffAt (N.radialDomain.isOpen.mem_nhds hmem))).log hfpos.ne').deriv |
| 600 | by_cases ht : N.logTime p.1 < ReferencePath.rampLimit |
| 601 | · have hp := logtime_entrance N hXp hη ht |
| 602 | have hφ := coefficient_phi_lower d.coefficients hσ (profileErrorConstant_nonneg d) |
| 603 | hscale F.coefficients F.norm_error hp.1.1 hp.1.2 (original_interval_interior hη) |
| 604 | have hφpos : 0 < AxisEvaluation.profile window d.coefficients.epsilon F.coefficients.1 (rescalePoint Λ p) := |
| 605 | lt_trans (by norm_num) hφ |
| 606 | let φ := AxisEvaluation.profile window d.coefficients.epsilon F.coefficients.1 (rescalePoint Λ p) |
| 607 | let e := NaturalAxisBridge.partialY (AxisEvaluation.profile window d.coefficients.epsilon F.coefficients.1) |
| 608 | (rescalePoint Λ p) - sourceJets d.coefficients.epsilon_pos (referencePair d.coefficients) (rescalePoint Λ p) 1 |
| 609 | refine ⟨{ |
| 610 | Y := Λ * p.1 |
| 611 | theta := ReferencePath.slopeCutoff δ (N.logTime p.1) |
| 612 | phi := φ |
| 613 | error := e |
| 614 | point_mem := hp |
| 615 | theta_mem := ReferencePath.slopeCutoff_mem δ (N.logTime p.1) |
| 616 | phi_lower := hφ.le |
| 617 | phi_upper := ?_ |
| 618 | error_bound := natural_radial_jet_error F hΛ hp |
| 619 | slope_eq := ?_ }⟩ |
| 620 | · have hb := (coefficient_jet_bound d.coefficients F.coefficients F.norm_ball 0 0 (entrance_abs_le_five hp)).1 |
| 621 | rw [AxisEvaluation.mixedSeries_zero] at hb |
| 622 | exact (le_abs_self φ).trans (hb.trans (by linarith [(uniformBound_controls d.coefficients).2.1])) |
| 623 | · have hs := N.same_radius_log_slope hδ hδT (original_interval_interior hη) hXp ht |
| 624 | rw [hd] at hs |
| 625 | change p.1 * (radialPartial (N.refF δ) p / N.refF δ p) = |
| 626 | ReferencePath.slopeCutoff δ (N.logTime p.1) * (p.1 * radialPartial F.family.f p / F.family.f p) at hs |
| 627 | rw [natural_log_radial F hC (entrance_mem_strip hp) hφpos.ne'] at hs |
| 628 | dsimp [e, φ] |
| 629 | simpa only [add_sub_cancel, rescalePoint, mul_div_assoc, mul_assoc] using hs |
| 630 | · have hcut := ReferencePath.slopeCutoff_zero hδ (hδT.le.trans (le_of_not_gt ht)) |
| 631 | have hz := (N.log_refF_hasDerivAt hδ hδT (original_interval_interior hη) hXp).deriv |
| 632 | rw [hd, hcut, zero_mul, zero_div] at hz |
| 633 | refine ⟨{ |
| 634 | Y := 0 |
| 635 | theta := 0 |
| 636 | phi := 1 |
| 637 | error := 0 |
| 638 | point_mem := ⟨by norm_num, hη⟩ |
| 639 | theta_mem := ⟨le_rfl, zero_le_one⟩ |
| 640 | phi_lower := by norm_num |
| 641 | phi_upper := (uniformBound_controls d.coefficients).1.le |
| 642 | error_bound := by simpa only [abs_zero] using div_nonneg (radialErrorConstant_nonneg d) hΛ.le |
| 643 | slope_eq := ?_ }⟩ |
| 644 | rw [mul_div_assoc, hz] |
| 645 | simp only [mul_zero, zero_mul, zero_div] |
| 646 | |
| 647 | theorem exists_gradient_bound (h j : ℝ) {σ : ℝ} (hσ : 0 < σ) : |
| 648 | ∃ G > 0, ∀ η ∈ Icc (-1 : ℝ) 1, |realGradient h j σ η| ≤ G := by |
| 649 | obtain ⟨R, hR⟩ := isCompact_Icc.exists_bound_of_continuousOn |
| 650 | (NaturalEntrance.realGradient_continuous h j hσ).continuousOn |
| 651 | refine ⟨1 + |R|, by positivity, ?_⟩ |
| 652 | intro η hη |
| 653 | have hb := hR η hη |
| 654 | rw [Real.norm_eq_abs] at hb |
| 655 | linarith [le_abs_self R] |
| 656 | |
| 657 | /-- All constants used to choose C precede C. The actual short transition |
| 658 | is selected only after C and the actual natural coefficient profile. -/ |
| 659 | theorem ordered_reference_bounds {h j σ : ℝ} {P0 : ℝ → ℝ} |
| 660 | (d : AnalyticInputs h j σ P0) (hσ : 0 < σ) : |
| 661 | ∃ B M Kerr : ℝ, 1 < B ∧ 0 < M ∧ 0 ≤ Kerr ∧ |
| 662 | ∀ Λ : ℝ, ∀ hΛ : 0 < Λ, M ≤ Λ → ∃ KΛ > 0, |
| 663 | ∀ C : ℝ, d.normalizationThreshold Λ ≤ C → ∀ F : CoefficientProfile d Λ C, |
| 664 | ∃ r > 0, ∀ δ : ℝ, 0 < δ → δ < r → |
| 665 | TransitionControl (referenceInput F hΛ) δ (1 / Λ) (1 / C) ∧ |
| 666 | JetBounds h j σ Λ C B KΛ ((referenceInput F hΛ).refF δ) ((referenceInput F hΛ).refU δ) ∧ |
| 667 | ∀ p ∈ holdSet, (referenceInput F hΛ).endpoint ≤ p.1 → |
| 668 | Nonempty (SlopeSample d Λ B Kerr ((referenceInput F hΛ).refF δ) p) := by |
| 669 | obtain ⟨G, hG, hgrad⟩ := exists_gradient_bound h j hσ |
| 670 | let M := max 1 (AxisReference.stabilityScale d.coefficients.epsilon (profileErrorConstant d)) |
| 671 | refine ⟨uniformBound d.coefficients, M, radialErrorConstant d, |
| 672 | (uniformBound_controls d.coefficients).1, lt_of_lt_of_le zero_lt_one (le_max_left _ _), |
| 673 | radialErrorConstant_nonneg d, ?_⟩ |
| 674 | intro Λ hΛ hM |
| 675 | have hscale : AxisReference.stabilityScale d.coefficients.epsilon (profileErrorConstant d) ≤ Λ := |
| 676 | (le_max_right _ _).trans hM |
| 677 | refine ⟨1 + amplitudeConstant d Λ G, ?_, ?_⟩ |
| 678 | · have hb := amplitudeConstant_nonneg (d := d) hΛ.le hG.le |
| 679 | linarith |
| 680 | intro C hC F |
| 681 | have hCp : 0 < C := (Real.exp_pos _).trans_le hC |
| 682 | obtain ⟨r, hr, hc⟩ := exists_transition_control (referenceInput F hΛ) |
| 683 | (one_div_pos.mpr hΛ) (one_div_pos.mpr hCp) |
| 684 | refine ⟨r, hr, ?_⟩ |
| 685 | intro δ hδ hδr |
| 686 | have hcon := hc δ hδ hδr |
| 687 | refine ⟨hcon, bounds_of_control F hΛ hσ hCp hscale hG.le hgrad hcon, ?_⟩ |
| 688 | intro p hp hX |
| 689 | exact reference_slope_sample F hΛ hσ hCp hscale hcon.length_pos hcon.length_bound hX hp.2 |
| 690 | |
| 691 | end NavierStokes.ReferenceJetBounds |
| 692 | |
| 693 | end |