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.ActivationStocks |
| 2 | import NavierStokes.JetBounds |
| 3 | import Mathlib.Analysis.Calculus.MeanValue |
| 4 | import Mathlib.Analysis.Normed.Group.Bounded |
| 5 | |
| 6 | /-! |
| 7 | # Quantitative stock bounds from actual field and history data |
| 8 | |
| 9 | The two stock maps below are the exact integrated lag formulas. Their |
| 10 | Lipschitz constants are derived from smoothness and compactness on sets with |
| 11 | positive angular field and radius. No stock error estimate is assumed. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace NavierStokes.ModulatedStockBounds |
| 17 | |
| 18 | open Set Filter ProfileHistories |
| 19 | open scoped Topology ContDiff |
| 20 | |
| 21 | abbrev StockData := Fin 12 → ℝ |
| 22 | abbrev StockArgument := Point × StockData |
| 23 | |
| 24 | /-- The field values followed by the actual five histories and their first |
| 25 | parameter derivatives. Pressure includes its prescribed value on the axis. -/ |
| 26 | noncomputable def profileData {D : RadialDomain} (P : Profiles D) (p : Point) : StockData := |
| 27 | ![P.f p, P.U p, P.M p, parameterPartial P.M p, P.I p, parameterPartial P.I p, |
| 28 | P.J p, parameterPartial P.J p, P.S p, parameterPartial P.S p, |
| 29 | P.pressure p, parameterPartial P.pressure p] |
| 30 | |
| 31 | noncomputable def stockMap (h : ℝ) (q : StockArgument) : ℝ × ℝ := |
| 32 | (ActivationStocks.stockOne h q.1.1 q.1.2 (q.2 0) (q.2 2) (q.2 3) |
| 33 | (q.2 4) (q.2 5) (q.2 6) (q.2 7), |
| 34 | ActivationStocks.stockTwo h q.1.1 q.1.2 (q.2 0) (q.2 1) (q.2 2) (q.2 3) |
| 35 | (q.2 8) (q.2 9) (q.2 10) (q.2 11)) |
| 36 | |
| 37 | theorem profileData_coordinates {D : RadialDomain} (P : Profiles D) (h : ℝ) |
| 38 | {p : Point} (hp : p ∈ D.carrier) (hX : 0 < p.1) (hf : P.f p ≠ 0) : |
| 39 | stockMap h (p, profileData P p) = |
| 40 | (ActivationStocks.profileStockOne P h p, ActivationStocks.profileStockTwo P h p) := by |
| 41 | apply Prod.ext |
| 42 | · exact (ActivationStocks.profileStockOne_eq P h hp hX.ne' hf).symm |
| 43 | · exact (ActivationStocks.profileStockTwo_eq P h hp hX).symm |
| 44 | |
| 45 | theorem profileData_smooth {D : RadialDomain} (P : Profiles D) : |
| 46 | ContDiffOn ℝ ∞ (profileData P) D.carrier := by |
| 47 | apply contDiffOn_pi.mpr |
| 48 | intro i |
| 49 | fin_cases i |
| 50 | · exact P.f_smooth |
| 51 | · exact P.U_smooth |
| 52 | · exact P.M_smooth |
| 53 | · exact parameterPartial_smooth D P.M_smooth |
| 54 | · exact P.I_smooth |
| 55 | · exact parameterPartial_smooth D P.I_smooth |
| 56 | · exact P.J_smooth |
| 57 | · exact parameterPartial_smooth D P.J_smooth |
| 58 | · exact P.S_smooth |
| 59 | · exact parameterPartial_smooth D P.S_smooth |
| 60 | · exact P.pressure_smooth |
| 61 | · exact parameterPartial_smooth D P.pressure_smooth |
| 62 | |
| 63 | noncomputable def stockDomain (h : ℝ) : Set StockArgument := |
| 64 | {q | 0 < q.1.1 ∧ NaturalAxisData.L h q.1.2 ≠ 0 ∧ 0 < q.2 0} |
| 65 | |
| 66 | theorem isOpen_stockDomain (h : ℝ) : IsOpen (stockDomain h) := by |
| 67 | have hL : Continuous (fun q : StockArgument => NaturalAxisData.L h q.1.2) := by |
| 68 | unfold NaturalAxisData.L |
| 69 | fun_prop |
| 70 | exact (isOpen_lt continuous_const (continuous_fst.comp continuous_fst)).inter |
| 71 | ((isOpen_ne_fun hL continuous_const).inter |
| 72 | (isOpen_lt continuous_const ((continuous_apply 0).comp continuous_snd))) |
| 73 | |
| 74 | theorem stockMap_smooth (h : ℝ) : ContDiffOn ℝ ∞ (stockMap h) (stockDomain h) := by |
| 75 | intro q hq |
| 76 | apply ContDiffAt.contDiffWithinAt |
| 77 | have hX : q.1.1 ≠ 0 := hq.1.ne' |
| 78 | have hf : q.2 0 ≠ 0 := hq.2.2.ne' |
| 79 | have hs : Real.sqrt (2 * q.1.1) ≠ 0 := |
| 80 | (Real.sqrt_pos.mpr (mul_pos (by norm_num) hq.1)).ne' |
| 81 | have hL : NaturalAxisData.L h q.1.2 ≠ 0 := hq.2.1 |
| 82 | have hxc : ContDiffAt ℝ ∞ (fun q : StockArgument => q.1.1) q := contDiffAt_fst.fst |
| 83 | have hη : ContDiffAt ℝ ∞ (fun q : StockArgument => q.1.2) q := contDiffAt_fst.snd |
| 84 | have hz (i : Fin 12) : ContDiffAt ℝ ∞ (fun q : StockArgument => q.2 i) q := |
| 85 | ((contDiff_apply ℝ ℝ i).comp contDiff_snd).contDiffAt |
| 86 | have hd : ContDiffAt ℝ ∞ (fun q : StockArgument => NaturalAxisData.d q.1.2) q := |
| 87 | contDiffAt_const.sub (hη.pow 2) |
| 88 | have hLc : ContDiffAt ℝ ∞ (fun q : StockArgument => NaturalAxisData.L h q.1.2) q := |
| 89 | contDiffAt_const.sub (contDiffAt_const.mul (hη.pow 2)) |
| 90 | have hmass : ContDiffAt ℝ ∞ (fun q : StockArgument => |
| 91 | ActivationStocks.massFlux h q.1.1 q.1.2 (q.2 2) (q.2 3)) q := |
| 92 | (hxc.sub ((contDiffAt_const.mul hη).mul (hz 2))).sub (hd.mul (hz 3)) |
| 93 | have hrem : ContDiffAt ℝ ∞ (fun q : StockArgument => |
| 94 | ActivationStocks.angularRemainder h q.1.2 (q.2 4) (q.2 5) (q.2 6) (q.2 7)) q := |
| 95 | (((contDiffAt_const.mul (hz 4)).sub ((contDiffAt_const.mul hη).mul (hz 5))).sub |
| 96 | (hd.mul (hz 7))).add ((contDiffAt_const.mul hη).mul (hz 6)) |
| 97 | have hA : ContDiffAt ℝ ∞ (fun q : StockArgument => |
| 98 | ActivationStocks.stockOne h q.1.1 q.1.2 (q.2 0) (q.2 2) (q.2 3) |
| 99 | (q.2 4) (q.2 5) (q.2 6) (q.2 7)) q := by |
| 100 | exact (hmass.neg.add (hrem.div ((contDiffAt_const.mul hxc).mul (hz 0)) |
| 101 | (mul_ne_zero (mul_ne_zero (by norm_num) hX) hf))).div hLc hL |
| 102 | have hC : ContDiffAt ℝ ∞ (fun q : StockArgument => |
| 103 | ActivationStocks.stockTwo h q.1.1 q.1.2 (q.2 0) (q.2 1) (q.2 2) (q.2 3) |
| 104 | (q.2 8) (q.2 9) (q.2 10) (q.2 11)) q := by |
| 105 | have hroot : ContDiffAt ℝ ∞ (fun q : StockArgument => Real.sqrt (2 * q.1.1)) q := |
| 106 | (contDiffAt_const.mul hxc).sqrt (mul_ne_zero (by norm_num) hX) |
| 107 | exact ((((hmass.neg.mul (hz 1)).add |
| 108 | (contDiffAt_const.mul ((hz 2).sub (hη.mul (hz 3))))).add |
| 109 | ((contDiffAt_const.mul hη).mul (hz 8))).sub (hd.mul (hz 9)) |>.add |
| 110 | (hxc.mul (((contDiffAt_const.mul hη).mul (hz 10)).sub (hd.mul (hz 11))))).div |
| 111 | ((hLc.mul hroot).mul (hz 0)) (mul_ne_zero (mul_ne_zero hL hs) hf) |
| 112 | exact hA.prodMk hC |
| 113 | |
| 114 | noncomputable def dataSet (μ R : ℝ) : Set StockData := |
| 115 | Metric.closedBall 0 R ∩ {z | μ ≤ z 0} |
| 116 | |
| 117 | theorem isCompact_dataSet (μ R : ℝ) : IsCompact (dataSet μ R) := |
| 118 | (isCompact_closedBall (0 : StockData) R).inter_right |
| 119 | (isClosed_le continuous_const (continuous_apply 0)) |
| 120 | |
| 121 | theorem convex_dataSet (μ R : ℝ) : Convex ℝ (dataSet μ R) := by |
| 122 | have hh : Convex ℝ {z : StockData | μ ≤ z 0} := by |
| 123 | intro x hx y hy a b ha hb hab |
| 124 | change μ ≤ a * x 0 + b * y 0 |
| 125 | have hax := mul_le_mul_of_nonneg_left hx ha |
| 126 | have hby := mul_le_mul_of_nonneg_left hy hb |
| 127 | calc |
| 128 | μ = (a + b) * μ := by rw [hab]; ring |
| 129 | _ = a * μ + b * μ := by ring |
| 130 | _ ≤ a * x 0 + b * y 0 := add_le_add hax hby |
| 131 | exact (convex_closedBall (0 : StockData) R).inter hh |
| 132 | |
| 133 | /-- Uniform Lipschitz continuity in all field/history data on a compact |
| 134 | positive-radius set. Only the reference coefficients depend on position. -/ |
| 135 | theorem stockMap_lipschitz_on_dataSet (h μ R : ℝ) (hμ : 0 < μ) |
| 136 | {S : Set Point} (hS : IsCompact S) (hX : ∀ p ∈ S, 0 < p.1) |
| 137 | (hL : ∀ p ∈ S, NaturalAxisData.L h p.2 ≠ 0) : |
| 138 | ∃ C : ℝ, 0 ≤ C ∧ ∀ p ∈ S, ∀ z ∈ dataSet μ R, ∀ w ∈ dataSet μ R, |
| 139 | ‖stockMap h (p, w) - stockMap h (p, z)‖ ≤ C * ‖w - z‖ := by |
| 140 | have hsub : S ×ˢ dataSet μ R ⊆ stockDomain h := by |
| 141 | intro q hq |
| 142 | exact ⟨hX q.1 hq.1, hL q.1 hq.1, hμ.trans_le hq.2.2⟩ |
| 143 | have hds : ContDiffOn ℝ ∞ (fderiv ℝ (stockMap h)) (stockDomain h) := |
| 144 | (stockMap_smooth h).fderiv_of_isOpen (isOpen_stockDomain h) (by simp) |
| 145 | have hd := hds.continuousOn |
| 146 | obtain ⟨C, hC⟩ := (hS.prod (isCompact_dataSet μ R)).exists_bound_of_continuousOn (hd.mono hsub) |
| 147 | refine ⟨max C 0, le_max_right _ _, ?_⟩ |
| 148 | intro p hp z hz w hw |
| 149 | have hconv : Convex ℝ ({p} ×ˢ dataSet μ R) := (convex_singleton p).prod (convex_dataSet μ R) |
| 150 | have hderiv : ∀ q ∈ ({p} ×ˢ dataSet μ R), |
| 151 | HasFDerivWithinAt (stockMap h) (fderiv ℝ (stockMap h) q) ({p} ×ˢ dataSet μ R) q := by |
| 152 | intro q hq |
| 153 | have hqp : q.1 = p := hq.1 |
| 154 | have hqS : q ∈ S ×ˢ dataSet μ R := ⟨hqp.symm ▸ hp, hq.2⟩ |
| 155 | exact (((stockMap_smooth h).contDiffAt ((isOpen_stockDomain h).mem_nhds (hsub hqS))).differentiableAt |
| 156 | (by simp)).hasFDerivAt.hasFDerivWithinAt |
| 157 | have hbound : ∀ q ∈ ({p} ×ˢ dataSet μ R), ‖fderiv ℝ (stockMap h) q‖ ≤ max C 0 := by |
| 158 | intro q hq |
| 159 | have hqp : q.1 = p := hq.1 |
| 160 | exact (hC q ⟨hqp.symm ▸ hp, hq.2⟩).trans (le_max_left _ _) |
| 161 | have hm := Convex.norm_image_sub_le_of_norm_hasFDerivWithin_le hderiv hbound hconv |
| 162 | (show (p, z) ∈ ({p} ×ˢ dataSet μ R) from ⟨rfl, hz⟩) |
| 163 | (show (p, w) ∈ ({p} ×ˢ dataSet μ R) from ⟨rfl, hw⟩) |
| 164 | simpa only [Prod.mk_sub_mk, sub_self, Prod.norm_def, norm_zero, |
| 165 | max_eq_right (norm_nonneg (w - z))] using hm |
| 166 | |
| 167 | /-- A small data perturbation automatically retains a positive angular |
| 168 | field, and its exact stock error is bounded linearly by the data error. -/ |
| 169 | theorem stockMap_small_perturbation (h μ B : ℝ) (hμ : 0 < μ) |
| 170 | {S : Set Point} (hS : IsCompact S) (hX : ∀ p ∈ S, 0 < p.1) |
| 171 | (hL : ∀ p ∈ S, NaturalAxisData.L h p.2 ≠ 0) : |
| 172 | ∃ C : ℝ, 0 ≤ C ∧ ∀ p ∈ S, ∀ z w : StockData, |
| 173 | ‖z‖ ≤ B → 2 * μ ≤ z 0 → ‖w - z‖ ≤ min 1 μ → |
| 174 | μ ≤ w 0 ∧ ‖stockMap h (p, w) - stockMap h (p, z)‖ ≤ C * ‖w - z‖ := by |
| 175 | obtain ⟨C, hC, hb⟩ := stockMap_lipschitz_on_dataSet h μ (B + 1) hμ hS hX hL |
| 176 | refine ⟨C, hC, ?_⟩ |
| 177 | intro p hp z w hz hz0 hclose |
| 178 | have hcomp : |w 0 - z 0| ≤ ‖w - z‖ := by |
| 179 | simpa only [Pi.sub_apply, Real.norm_eq_abs] using norm_le_pi_norm (w - z) (0 : Fin 12) |
| 180 | have hw0 : μ ≤ w 0 := by |
| 181 | have := (abs_le.mp (hcomp.trans (hclose.trans (min_le_right _ _)))).1 |
| 182 | linarith |
| 183 | have hzmem : z ∈ dataSet μ (B + 1) := by |
| 184 | refine ⟨?_, ?_⟩ |
| 185 | simpa only [Metric.mem_closedBall, dist_zero_right] using (hz.trans (by linarith : B ≤ B + 1)) |
| 186 | change μ ≤ z 0 |
| 187 | linarith |
| 188 | have hwmem : w ∈ dataSet μ (B + 1) := by |
| 189 | refine ⟨?_, hw0⟩ |
| 190 | have hw : ‖w‖ ≤ ‖w - z‖ + ‖z‖ := by |
| 191 | simpa only [sub_add_cancel] using norm_add_le (w - z) z |
| 192 | have hn : ‖w‖ ≤ B + 1 := by linarith [hclose.trans (min_le_left _ _)] |
| 193 | simpa only [Metric.mem_closedBall, dist_zero_right] using hn |
| 194 | exact ⟨hw0, hb p hp z hzmem w hwmem⟩ |
| 195 | |
| 196 | /-- Coordinatewise bounds on genuine field/history data give the required |
| 197 | norm bound; all first history derivatives are actual parameter derivatives. -/ |
| 198 | theorem profileData_error_bound {D D' : RadialDomain} (P : Profiles D) (Q : Profiles D') |
| 199 | (p : Point) {ε : ℝ} (hε : 0 ≤ ε) |
| 200 | (hf : |P.f p - Q.f p| ≤ ε) (hU : |P.U p - Q.U p| ≤ ε) |
| 201 | (hH : ∀ r : StressActivation.HistoryRow, |
| 202 | |StressActivation.profileHistory P r p - StressActivation.profileHistory Q r p| ≤ ε ∧ |
| 203 | |parameterPartial (StressActivation.profileHistory P r) p - |
| 204 | parameterPartial (StressActivation.profileHistory Q r) p| ≤ ε) : |
| 205 | ‖profileData P p - profileData Q p‖ ≤ ε := by |
| 206 | apply (pi_norm_le_iff_of_nonneg hε).mpr |
| 207 | intro i |
| 208 | simp only [Pi.sub_apply, Real.norm_eq_abs] |
| 209 | fin_cases i |
| 210 | · exact hf |
| 211 | · exact hU |
| 212 | · exact (hH .mass).1 |
| 213 | · exact (hH .mass).2 |
| 214 | · exact (hH .angular).1 |
| 215 | · exact (hH .angular).2 |
| 216 | · exact (hH .transport).1 |
| 217 | · exact (hH .transport).2 |
| 218 | · exact (hH .energy).1 |
| 219 | · exact (hH .energy).2 |
| 220 | · exact (hH .pressure).1 |
| 221 | · exact (hH .pressure).2 |
| 222 | |
| 223 | /-- Uniform quantitative stability of both actual profile stocks, around |
| 224 | a fixed smooth positive nominal profile on a compact set. -/ |
| 225 | theorem profile_stocks_lipschitz {D : RadialDomain} (Q : Profiles D) (h : ℝ) |
| 226 | {S : Set Point} (hS : IsCompact S) (hSD : S ⊆ D.carrier) |
| 227 | (hX : ∀ p ∈ S, 0 < p.1) (hL : ∀ p ∈ S, NaturalAxisData.L h p.2 ≠ 0) |
| 228 | (hpos : ∀ p ∈ S, 0 < Q.f p) : |
| 229 | ∃ δ C : ℝ, 0 < δ ∧ 0 ≤ C ∧ ∀ {D' : RadialDomain} (P : Profiles D'), |
| 230 | ∀ p ∈ S, p ∈ D'.carrier → ‖profileData P p - profileData Q p‖ ≤ δ → |
| 231 | 0 < P.f p ∧ |
| 232 | |ActivationStocks.profileStockOne P h p - ActivationStocks.profileStockOne Q h p| ≤ |
| 233 | C * ‖profileData P p - profileData Q p‖ ∧ |
| 234 | |ActivationStocks.profileStockTwo P h p - ActivationStocks.profileStockTwo Q h p| ≤ |
| 235 | C * ‖profileData P p - profileData Q p‖ := by |
| 236 | obtain ⟨fmin, hfmin, hmin⟩ := hS.exists_forall_le' (Q.f_smooth.continuousOn.mono hSD) hpos |
| 237 | obtain ⟨B, hB⟩ := hS.exists_bound_of_continuousOn ((profileData_smooth Q).continuousOn.mono hSD) |
| 238 | have hμ : 0 < fmin / 2 := by positivity |
| 239 | obtain ⟨C, hC, hbound⟩ := stockMap_small_perturbation h (fmin / 2) B hμ hS hX hL |
| 240 | refine ⟨min 1 (fmin / 2), C, lt_min zero_lt_one hμ, hC, ?_⟩ |
| 241 | intro D' P p hp hpD hclose |
| 242 | have hbase : 2 * (fmin / 2) ≤ profileData Q p 0 := by |
| 243 | change 2 * (fmin / 2) ≤ Q.f p |
| 244 | linarith [hmin p hp] |
| 245 | obtain ⟨hnew, hpair⟩ := hbound p hp (profileData Q p) (profileData P p) (hB p hp) hbase hclose |
| 246 | have hPpos : 0 < P.f p := hμ.trans_le hnew |
| 247 | rw [profileData_coordinates P h hpD (hX p hp) hPpos.ne', |
| 248 | profileData_coordinates Q h (hSD hp) (hX p hp) (hpos p hp).ne'] at hpair |
| 249 | have hcoords : |
| 250 | |ActivationStocks.profileStockOne P h p - ActivationStocks.profileStockOne Q h p| ≤ |
| 251 | C * ‖profileData P p - profileData Q p‖ ∧ |
| 252 | |ActivationStocks.profileStockTwo P h p - ActivationStocks.profileStockTwo Q h p| ≤ |
| 253 | C * ‖profileData P p - profileData Q p‖ := by |
| 254 | simpa only [Prod.mk_sub_mk, Prod.norm_def, Real.norm_eq_abs, max_le_iff] using hpair |
| 255 | exact ⟨hPpos, hcoords⟩ |
| 256 | |
| 257 | /-- The actual stock difference is bounded linearly by a common bound for |
| 258 | the two field values and the five history values/first parameter derivatives. -/ |
| 259 | theorem profile_stocks_from_history_bounds {D : RadialDomain} (Q : Profiles D) (h : ℝ) |
| 260 | {S : Set Point} (hS : IsCompact S) (hSD : S ⊆ D.carrier) |
| 261 | (hX : ∀ p ∈ S, 0 < p.1) (hL : ∀ p ∈ S, NaturalAxisData.L h p.2 ≠ 0) |
| 262 | (hpos : ∀ p ∈ S, 0 < Q.f p) : |
| 263 | ∃ δ C : ℝ, 0 < δ ∧ 0 ≤ C ∧ ∀ {D' : RadialDomain} (P : Profiles D'), |
| 264 | ∀ p ∈ S, p ∈ D'.carrier → ∀ ε : ℝ, 0 ≤ ε → ε ≤ δ → |
| 265 | |P.f p - Q.f p| ≤ ε → |P.U p - Q.U p| ≤ ε → |
| 266 | (∀ r : StressActivation.HistoryRow, |
| 267 | |StressActivation.profileHistory P r p - StressActivation.profileHistory Q r p| ≤ ε ∧ |
| 268 | |parameterPartial (StressActivation.profileHistory P r) p - |
| 269 | parameterPartial (StressActivation.profileHistory Q r) p| ≤ ε) → |
| 270 | 0 < P.f p ∧ |
| 271 | |ActivationStocks.profileStockOne P h p - ActivationStocks.profileStockOne Q h p| ≤ C * ε ∧ |
| 272 | |ActivationStocks.profileStockTwo P h p - ActivationStocks.profileStockTwo Q h p| ≤ C * ε := by |
| 273 | obtain ⟨δ, C, hδ, hC, hb⟩ := profile_stocks_lipschitz Q h hS hSD hX hL hpos |
| 274 | refine ⟨δ, C, hδ, hC, ?_⟩ |
| 275 | intro D' P p hp hpD ε hε hεδ hf hU hH |
| 276 | have hd := profileData_error_bound P Q p hε hf hU hH |
| 277 | obtain ⟨hPpos, hb₁, hb₂⟩ := hb P p hp hpD (hd.trans hεδ) |
| 278 | exact ⟨hPpos, hb₁.trans (mul_le_mul_of_nonneg_left hd hC), |
| 279 | hb₂.trans (mul_le_mul_of_nonneg_left hd hC)⟩ |
| 280 | |
| 281 | /-- A first parameter-jet bound on an actual history difference supplies |
| 282 | exactly the value/derivative estimates used by the stock adapter. -/ |
| 283 | theorem profileHistory_first_jet_bound {D D' : RadialDomain} |
| 284 | (P : Profiles D) (Q : Profiles D') (r : StressActivation.HistoryRow) |
| 285 | {p : Point} (hp : p ∈ D.carrier) (hp' : p ∈ D'.carrier) |
| 286 | {J : Set ℝ} {ε : ℝ} |
| 287 | (hjet : JetBounds.FiniteJetBound 1 (fun η => |
| 288 | StressActivation.profileHistory P r (p.1, η) - |
| 289 | StressActivation.profileHistory Q r (p.1, η)) J ε) (hη : p.2 ∈ J) : |
| 290 | |StressActivation.profileHistory P r p - StressActivation.profileHistory Q r p| ≤ ε ∧ |
| 291 | |parameterPartial (StressActivation.profileHistory P r) p - |
| 292 | parameterPartial (StressActivation.profileHistory Q r) p| ≤ ε := by |
| 293 | have hd := (parameterPartial_hasDerivAt D (StressActivation.profileHistory_smooth P r) hp).fun_sub |
| 294 | (parameterPartial_hasDerivAt D' (StressActivation.profileHistory_smooth Q r) hp') |
| 295 | constructor |
| 296 | · simpa only [Real.norm_eq_abs, Prod.eta] using hjet.norm_le hη |
| 297 | · simpa only [norm_iteratedFDeriv_eq_norm_iteratedDeriv, iteratedDeriv_one, |
| 298 | hd.deriv, Real.norm_eq_abs] using hjet 1 le_rfl p.2 hη |
| 299 | |
| 300 | /-- Actual field and five-row history estimates of order `1/n` imply an |
| 301 | eventual uniform `1/n` estimate for both actual lag stocks. The integer |
| 302 | threshold and the stock constant are conclusions. -/ |
| 303 | theorem profile_stocks_rate {D D' : RadialDomain} (Q : Profiles D) (h : ℝ) |
| 304 | (P : ℝ → Profiles D') {S : Set Point} (hS : IsCompact S) |
| 305 | (hSD : S ⊆ D.carrier) (hSD' : S ⊆ D'.carrier) |
| 306 | (hX : ∀ p ∈ S, 0 < p.1) (hL : ∀ p ∈ S, NaturalAxisData.L h p.2 ≠ 0) |
| 307 | (hpos : ∀ p ∈ S, 0 < Q.f p) |
| 308 | (n₀ Cdata : ℝ) (hCdata : 0 ≤ Cdata) |
| 309 | (hdata : ∀ n : ℝ, n₀ ≤ n → 1 ≤ n → ∀ p ∈ S, |
| 310 | |(P n).f p - Q.f p| ≤ Cdata / n ∧ |(P n).U p - Q.U p| ≤ Cdata / n ∧ |
| 311 | ∀ r : StressActivation.HistoryRow, |
| 312 | |StressActivation.profileHistory (P n) r p - StressActivation.profileHistory Q r p| ≤ Cdata / n ∧ |
| 313 | |parameterPartial (StressActivation.profileHistory (P n) r) p - |
| 314 | parameterPartial (StressActivation.profileHistory Q r) p| ≤ Cdata / n) : |
| 315 | ∃ N : ℕ, ∃ C : ℝ, 0 < N ∧ 0 ≤ C ∧ ∀ n : ℝ, (N : ℝ) ≤ n → ∀ p ∈ S, |
| 316 | 0 < (P n).f p ∧ |
| 317 | |ActivationStocks.profileStockOne (P n) h p - ActivationStocks.profileStockOne Q h p| ≤ C / n ∧ |
| 318 | |ActivationStocks.profileStockTwo (P n) h p - ActivationStocks.profileStockTwo Q h p| ≤ C / n := by |
| 319 | obtain ⟨δ, C, hδ, hC, hb⟩ := profile_stocks_from_history_bounds Q h hS hSD hX hL hpos |
| 320 | obtain ⟨N, hN⟩ := exists_nat_gt (max 1 (max n₀ (Cdata / δ))) |
| 321 | have hN1 : (1 : ℝ) < N := (le_max_left _ _).trans_lt hN |
| 322 | refine ⟨N, C * Cdata, by exact_mod_cast (lt_trans zero_lt_one hN1), mul_nonneg hC hCdata, ?_⟩ |
| 323 | intro n hn p hp |
| 324 | have hn1 : 1 ≤ n := hN1.le.trans hn |
| 325 | have hnpos : 0 < n := lt_of_lt_of_le zero_lt_one hn1 |
| 326 | have hn₀ : n₀ ≤ n := ((le_max_left _ _).trans (le_max_right _ _)).trans (hN.le.trans hn) |
| 327 | have hδn : Cdata / δ ≤ n := |
| 328 | ((le_max_right _ _).trans (le_max_right _ _)).trans (hN.le.trans hn) |
| 329 | have hsmall : Cdata / n ≤ δ := by |
| 330 | apply (div_le_iff₀ hnpos).mpr |
| 331 | have := (div_le_iff₀ hδ).mp hδn |
| 332 | nlinarith |
| 333 | obtain ⟨hf, hU, hH⟩ := hdata n hn₀ hn1 p hp |
| 334 | obtain ⟨hPpos, hs₁, hs₂⟩ := hb (P n) p hp (hSD' hp) (Cdata / n) |
| 335 | (div_nonneg hCdata hnpos.le) hsmall hf hU hH |
| 336 | exact ⟨hPpos, by simpa only [mul_div_assoc] using hs₁, by simpa only [mul_div_assoc] using hs₂⟩ |
| 337 | |
| 338 | end NavierStokes.ModulatedStockBounds |