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.ModulatedCone |
| 2 | |
| 3 | noncomputable section |
| 4 | |
| 5 | namespace NavierStokes.ModulatedProfileJetRates |
| 6 | |
| 7 | open Set Filter Function ModulatedHistories |
| 8 | open scoped Topology ContDiff BigOperators |
| 9 | |
| 10 | /-- One coefficient family and one local inverse branch serve all derivative |
| 11 | orders. Only the asymptotic threshold and constant may depend on the order. -/ |
| 12 | structure SmoothRepairFamily (P : FiveProfileMoments.Patch) (b : ℝ) |
| 13 | (A G : ℝ → ℝ) (d : ℝ → ℝ → Debt) (S : Set ℝ) where |
| 14 | coefficients : ℝ → ℝ → Coeff |
| 15 | smooth : ∀ N, ContDiff ℝ ∞ (coefficients N) |
| 16 | region : ℝ → Set ℝ |
| 17 | region_open : ∀ N, IsOpen (region N) |
| 18 | threshold : ℝ |
| 19 | threshold_ge_one : 1 ≤ threshold |
| 20 | contains : ∀ N, threshold ≤ N → S ⊆ region N |
| 21 | solves : ∀ N eta, eta ∈ region N → |
| 22 | FiveProfileMoments.physicalMoments P b (A eta) (G eta) (coefficients N eta) = d N eta |
| 23 | positive : ∀ N eta, eta ∈ region N → ∀ X, 0 < X → |
| 24 | 0 < FiveProfileMoments.physicalE P b (A eta) (coefficients N eta) X |
| 25 | rates : ∀ q : ℕ, ∃ Nq C : ℝ, 1 ≤ Nq ∧ 0 < C ∧ ∀ N : ℝ, Nq ≤ N → |
| 26 | JetBounds.FiniteJetBound q (coefficients N) S (C / N) |
| 27 | |
| 28 | /-- Finite-jet estimates for composition with a single fixed smooth solver. |
| 29 | The solver is chosen before the derivative order, frequency, and constant. -/ |
| 30 | theorem fixed_solver_all_rates {g : Coeff → Coeff} {r C : ℝ} |
| 31 | (hr : 0 < r) (hC : 0 < C) (hg : ContDiff ℝ ∞ g) |
| 32 | (hvalue : ∀ z ∈ Metric.ball (0 : Coeff) r, ‖g z‖ ≤ C * ‖z‖) |
| 33 | {S : Set ℝ} (v : ℝ → ℝ → Coeff) (hv : ∀ N, ContDiff ℝ ∞ (v N)) |
| 34 | (hvr : ∀ q : ℕ, ∃ D : ℝ, 0 < D ∧ ∀ N : ℝ, 1 ≤ N → |
| 35 | JetBounds.FiniteJetBound q (v N) S (D / N)) : |
| 36 | ∀ q : ℕ, ∃ Nq K : ℝ, 1 ≤ Nq ∧ 0 < K ∧ ∀ N : ℝ, Nq ≤ N → |
| 37 | JetBounds.FiniteJetBound q (g ∘ v N) S (K / N) := by |
| 38 | intro q |
| 39 | obtain ⟨D, hD, hvb⟩ := hvr q |
| 40 | obtain ⟨J, hJ, hj⟩ := smooth_solver_linear_jets hr hC hg.contDiffOn hvalue q |
| 41 | let delta : ℝ := min 1 (r / 2) |
| 42 | have hd : 0 < delta := lt_min zero_lt_one (by positivity) |
| 43 | refine ⟨max 1 (D / delta), J * D, le_max_left _ _, mul_pos hJ hD, ?_⟩ |
| 44 | intro N hN |
| 45 | have hN1 : 1 ≤ N := (le_max_left _ _).trans hN |
| 46 | have hNp : 0 < N := zero_lt_one.trans_le hN1 |
| 47 | have he : D / N ≤ delta := by |
| 48 | apply (div_le_iff₀ hNp).mpr |
| 49 | have ht := (div_le_iff₀ hd).mp ((le_max_right _ _).trans hN) |
| 50 | nlinarith |
| 51 | intro k hk eta heta |
| 52 | have hb := hj (v N) (hv N) (D / N) eta (div_pos hD hNp) he |
| 53 | (fun i hi => hvb N hN1 i hi eta heta) k hk |
| 54 | convert hb using 1 |
| 55 | ring |
| 56 | |
| 57 | theorem exists_smooth_repair_family (P : FiveProfileMoments.Patch) (b : ℝ) |
| 58 | (hb : FiveProfileMoments.GoodExponent b) (S : Set ℝ) (hS : IsCompact S) |
| 59 | (A G : ℝ → ℝ) (hA : ContDiff ℝ ∞ A) (hG : ContDiff ℝ ∞ G) |
| 60 | (hApos : ∀ eta, 0 < A eta) (d : ℝ → ℝ → Debt) |
| 61 | (hd : ∀ N, ContDiff ℝ ∞ (d N)) |
| 62 | (hdr : ∀ q : ℕ, ∃ D : ℝ, 0 < D ∧ ∀ N : ℝ, 1 ≤ N → |
| 63 | JetBounds.FiniteJetBound q (d N) S (D / N)) : |
| 64 | Nonempty (SmoothRepairFamily P b A G d S) := by |
| 65 | obtain ⟨g, r, C0, hr, hC0, hg, _, hbranch⟩ := FiveProfileMoments.exists_normalized_repair P b hb |
| 66 | obtain ⟨gext, hgext, hext⟩ := smooth_extension_ball hr hg |
| 67 | let v : ℝ → ℝ → Coeff := fun N eta => FiveProfileMoments.normalizedDebt (A eta) (G eta) (d N eta) |
| 68 | have hv : ∀ N, ContDiff ℝ ∞ (v N) := fun N => |
| 69 | FiveProfileMoments.normalizedDebt_contDiff hA hG (hd N) (fun eta => (hApos eta).ne') |
| 70 | have hvr : ∀ q : ℕ, ∃ D : ℝ, 0 < D ∧ ∀ N : ℝ, 1 ≤ N → |
| 71 | JetBounds.FiniteJetBound q (v N) S (D / N) := by |
| 72 | intro q |
| 73 | obtain ⟨D, hD, hdb⟩ := hdr q |
| 74 | obtain ⟨B0, hB0, hnormal⟩ := FiveProfileMoments.compact_normalizedDebt_jets |
| 75 | S hS hA hG (fun eta => (hApos eta).ne') q |
| 76 | refine ⟨B0 * D, mul_pos hB0 hD, ?_⟩ |
| 77 | intro N hN |
| 78 | convert hnormal (d N) (hd N) (D / N) (div_nonneg hD.le (zero_lt_one.trans_le hN).le) |
| 79 | (hdb N hN) using 1 |
| 80 | ring |
| 81 | have hvalue : ∀ z ∈ Metric.ball (0 : Coeff) (r / 2), ‖gext z‖ ≤ C0 * ‖z‖ := by |
| 82 | intro z hz |
| 83 | rw [hext hz] |
| 84 | exact (hbranch z ((Metric.ball_subset_ball (by linarith : r / 2 ≤ r)) hz)).2.1 |
| 85 | obtain ⟨D0, hD0, hv0⟩ := hvr 0 |
| 86 | let N0 := max 1 (4 * D0 / r) |
| 87 | let V : ℝ → Set ℝ := fun N => v N ⁻¹' Metric.ball 0 (r / 2) |
| 88 | have hSV : ∀ N, N0 ≤ N → S ⊆ V N := by |
| 89 | intro N hN eta heta |
| 90 | have hN1 : 1 ≤ N := (le_max_left _ _).trans hN |
| 91 | have hNp : 0 < N := zero_lt_one.trans_le hN1 |
| 92 | have hsmall : D0 / N ≤ r / 4 := by |
| 93 | apply (div_le_iff₀ hNp).mpr |
| 94 | have he := (div_le_iff₀ hr).mp ((le_max_right _ _).trans hN) |
| 95 | nlinarith |
| 96 | change ‖v N eta - 0‖ < r / 2 |
| 97 | rw [sub_zero] |
| 98 | exact ((hv0 N hN1).norm_le heta).trans_lt (hsmall.trans_lt (by linarith)) |
| 99 | refine ⟨⟨fun N => gext ∘ v N, fun N => hgext.comp (hv N), V, |
| 100 | fun N => Metric.isOpen_ball.preimage (hv N).continuous, N0, le_max_left _ _, hSV, |
| 101 | ?_, ?_, fixed_solver_all_rates (by positivity : 0 < r / 2) hC0 hgext hvalue v hv hvr⟩⟩ |
| 102 | · intro N eta heta |
| 103 | have hlocal := hbranch (v N eta) ((Metric.ball_subset_ball (by linarith : r / 2 ≤ r)) heta) |
| 104 | change FiveProfileMoments.physicalMoments P b (A eta) (G eta) (gext (v N eta)) = _ |
| 105 | rw [hext heta, FiveProfileMoments.physicalMoments_eq P b (A eta) (G eta) (hApos eta).ne', hlocal.1] |
| 106 | exact FiveProfileMoments.physical_normalized_debt (A eta) (G eta) (hApos eta).ne' (d N eta) |
| 107 | · intro N eta heta X hX |
| 108 | have hlocal := hbranch (v N eta) ((Metric.ball_subset_ball (by linarith : r / 2 ≤ r)) heta) |
| 109 | change 0 < A eta * (X ^ b + FiveProfileMoments.e P (gext (v N eta)) X) |
| 110 | rw [hext heta] |
| 111 | exact mul_pos (hApos eta) (hlocal.2.2.2 X hX) |
| 112 | |
| 113 | variable {a m p₁ p₂ : Point → ℝ} {K B : Set Point} |
| 114 | |
| 115 | /-- Applied to the actual integral debt, this selects one repaired-profile |
| 116 | sequence with all fixed parameter derivative rates. -/ |
| 117 | theorem exists_actual_repair_family_all_jets (W : Window) |
| 118 | (r : ParametricModulation.TrueConeRealization a m p₁ p₂ K B) (f E U : Field) |
| 119 | (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) |
| 120 | (hf : ContDiff ℝ ∞ f) (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) |
| 121 | (P : FiveProfileMoments.Patch) (b : ℝ) (hb : FiveProfileMoments.GoodExponent b) |
| 122 | (S : Set ℝ) (hS : IsCompact S) (A G : ℝ → ℝ) |
| 123 | (hA : ContDiff ℝ ∞ A) (hG : ContDiff ℝ ∞ G) (hApos : ∀ eta, 0 < A eta) : |
| 124 | Nonempty (SmoothRepairFamily P b A G (repairDebt W r f E U) S) := by |
| 125 | apply exists_smooth_repair_family P b hb S hS A G hA hG hApos (repairDebt W r f E U) |
| 126 | (fun N => (historyDifference_smooth W r f E U ha hm hp₂ hf hE hU N W.right).neg) |
| 127 | intro q |
| 128 | obtain ⟨D, hD, hdb⟩ := historyDifference_jets W r f E U ha hm hp₂ hf hE hU S hS q |
| 129 | refine ⟨D, hD, ?_⟩ |
| 130 | intro N hN j hj eta heta |
| 131 | change ‖iteratedFDeriv ℝ j (-(historyDifference W r f E U N W.right)) eta‖ ≤ _ |
| 132 | rw [iteratedFDeriv_neg_apply, norm_neg] |
| 133 | exact hdb N hN W.right j hj eta heta |
| 134 | |
| 135 | theorem localized_profile_eta_rates (W : Window) |
| 136 | (r : ParametricModulation.TrueConeRealization a m p₁ p₂ K B) (f E U : Field) |
| 137 | (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) |
| 138 | (hf : ContDiff ℝ ∞ f) (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) |
| 139 | (S : Set ℝ) (hS : IsCompact S) (q : ℕ) : |
| 140 | ∃ CF CU : ℝ, 0 ≤ CF ∧ 0 ≤ CU ∧ ∀ N : ℝ, 1 ≤ N → ∀ X eta : ℝ, eta ∈ S → |
| 141 | |iteratedDeriv q (fun e => localizedF W r f N (X, e)) eta - |
| 142 | iteratedDeriv q (fun e => f (X, e)) eta| ≤ CF / N ∧ |
| 143 | |iteratedDeriv q (fun e => localizedU W r E U N (X, e)) eta - |
| 144 | iteratedDeriv q (fun e => U (X, e)) eta| ≤ CU / N := by |
| 145 | obtain ⟨CF, _, hCF, _, hbF⟩ := ParametricModulation.realized_profiles_uniform_eta_jets |
| 146 | r f U ha hm hp₂ hf hU (Icc W.left W.right) S isCompact_Icc hS q |
| 147 | obtain ⟨_, CU, _, hCU, hbU⟩ := ParametricModulation.realized_profiles_uniform_eta_jets |
| 148 | r E U ha hm hp₂ hE hU (Icc W.left W.right) S isCompact_Icc hS q |
| 149 | refine ⟨CF, CU, hCF, hCU, ?_⟩ |
| 150 | intro N hN X eta heta |
| 151 | by_cases hX : X ∈ Ioc W.left W.right |
| 152 | · have heF : (fun e => localizedF W r f N (X, e)) = ParametricModulation.realizedE r f N X := by |
| 153 | funext e |
| 154 | simp only [localizedF, splice, hX, ite_true, rawF] |
| 155 | have heU : (fun e => localizedU W r E U N (X, e)) = ParametricModulation.realizedU r E U N X := by |
| 156 | funext e |
| 157 | simp only [localizedU, splice, hX, ite_true, rawU] |
| 158 | rw [heF, heU] |
| 159 | exact ⟨(hbF N hN X ⟨hX.1.le, hX.2⟩ eta heta).1, (hbU N hN X ⟨hX.1.le, hX.2⟩ eta heta).2⟩ |
| 160 | · have heF : (fun e => localizedF W r f N (X, e)) = (fun e => f (X, e)) := by |
| 161 | funext e |
| 162 | simp only [localizedF, splice, hX, ite_false] |
| 163 | have heU : (fun e => localizedU W r E U N (X, e)) = (fun e => U (X, e)) := by |
| 164 | funext e |
| 165 | simp only [localizedU, splice, hX, ite_false] |
| 166 | rw [heF, heU] |
| 167 | simpa only [sub_self, abs_zero] using |
| 168 | And.intro (div_nonneg hCF (zero_lt_one.trans_le hN).le) (div_nonneg hCU (zero_lt_one.trans_le hN).le) |
| 169 | |
| 170 | theorem localized_profile_eta_smooth (W : Window) |
| 171 | (r : ParametricModulation.TrueConeRealization a m p₁ p₂ K B) (f E U : Field) |
| 172 | (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) |
| 173 | (hf : ContDiff ℝ ∞ f) (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) (N X : ℝ) : |
| 174 | ContDiff ℝ ∞ (fun e => localizedF W r f N (X, e)) ∧ |
| 175 | ContDiff ℝ ∞ (fun e => localizedU W r E U N (X, e)) := by |
| 176 | have hbase : ContDiff ℝ ∞ (fun e : ℝ => (X, e)) := contDiff_const.prodMk contDiff_id |
| 177 | by_cases hX : X ∈ Ioc W.left W.right |
| 178 | · have heF : (fun e => localizedF W r f N (X, e)) = fun e => |
| 179 | f (X, e) * Real.exp (r.angularPrimitive ((X, e), N * Real.log X) / N) := by |
| 180 | funext e |
| 181 | simp only [localizedF, splice, hX, ite_true, rawF, ParametricModulation.realizedE, |
| 182 | RadialModulation.modulatedE, RadialModulation.phasePoint, ParametricModulation.asRadialPrimitive] |
| 183 | have heU : (fun e => localizedU W r E U N (X, e)) = fun e => |
| 184 | U (X, e) + r.axialPrimitive E ((X, e), N * Real.log X) / N := by |
| 185 | funext e |
| 186 | simp only [localizedU, splice, hX, ite_true, rawU, ParametricModulation.realizedU, |
| 187 | RadialModulation.modulatedU, RadialModulation.phasePoint, ParametricModulation.asRadialPrimitive] |
| 188 | rw [heF, heU] |
| 189 | have hp := r.primitives_smooth E ha hm hp₂ hE |
| 190 | have hz : ContDiff ℝ ∞ (fun e : ℝ => ((X, e), N * Real.log X)) := hbase.prodMk contDiff_const |
| 191 | exact ⟨(hf.comp hbase).mul (((hp.1.comp hz).div_const N).exp), |
| 192 | (hU.comp hbase).add ((hp.2.comp hz).div_const N)⟩ |
| 193 | · have heF : (fun e => localizedF W r f N (X, e)) = fun e => f (X, e) := by |
| 194 | funext e |
| 195 | simp only [localizedF, splice, hX, ite_false] |
| 196 | have heU : (fun e => localizedU W r E U N (X, e)) = fun e => U (X, e) := by |
| 197 | funext e |
| 198 | simp only [localizedU, splice, hX, ite_false] |
| 199 | rw [heF, heU] |
| 200 | exact ⟨hf.comp hbase, hU.comp hbase⟩ |
| 201 | |
| 202 | /-- Every fixed parameter derivative of the actual repaired profiles has |
| 203 | the same inverse-frequency rate, for one previously selected repair family. -/ |
| 204 | theorem SmoothRepairFamily.profile_eta_rates |
| 205 | (W : Window) (r : ParametricModulation.TrueConeRealization a m p₁ p₂ K B) (f E U : Field) |
| 206 | (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) |
| 207 | (hf : ContDiff ℝ ∞ f) (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) |
| 208 | {P : FiveProfileMoments.Patch} {b : ℝ} {A G : ℝ → ℝ} {d : ℝ → ℝ → Debt} {S : Set ℝ} |
| 209 | (H : SmoothRepairFamily P b A G d S) (hS : IsCompact S) (hA : ContDiff ℝ ∞ A) (q : ℕ) : |
| 210 | ∃ Nq C : ℝ, 1 ≤ Nq ∧ 0 < C ∧ ∀ N : ℝ, Nq ≤ N → ∀ X eta : ℝ, eta ∈ S → |
| 211 | |iteratedDeriv q (fun e => applyRepairF P A (H.coefficients N) (localizedF W r f N) (X, e)) eta - |
| 212 | iteratedDeriv q (fun e => f (X, e)) eta| ≤ C / N ∧ |
| 213 | |iteratedDeriv q (fun e => applyRepairU P A (H.coefficients N) (localizedU W r E U N) (X, e)) eta - |
| 214 | iteratedDeriv q (fun e => U (X, e)) eta| ≤ C / N := by |
| 215 | obtain ⟨Nq, Cc, hNq, hCc, hcb⟩ := H.rates q |
| 216 | obtain ⟨CF, CU, hCF, hCU, hmod⟩ := localized_profile_eta_rates W r f E U ha hm hp₂ hf hE hU S hS q |
| 217 | obtain ⟨Ce, hCe, hedit⟩ := normalized_edits_eta_bound P S hS A hA q |
| 218 | refine ⟨Nq, 1 + CF + CU + Ce * Cc, hNq, by positivity, ?_⟩ |
| 219 | intro N hN X eta heta |
| 220 | have hN1 := hNq.trans hN |
| 221 | have hNp := zero_lt_one.trans_le hN1 |
| 222 | have hmodb := hmod N hN1 X eta heta |
| 223 | have heditb := hedit (H.coefficients N) (H.smooth N) (Cc / N) (div_nonneg hCc.le hNp.le) |
| 224 | (hcb N hN) eta heta q le_rfl X |
| 225 | have hs := localized_profile_eta_smooth W r f E U ha hm hp₂ hf hE hU N X |
| 226 | have heF : ContDiff ℝ ∞ (fun e => editF P A (H.coefficients N) (X, e)) := |
| 227 | (editF_contDiff P A (H.coefficients N) hA (H.smooth N)).comp (contDiff_const.prodMk contDiff_id) |
| 228 | have heU : ContDiff ℝ ∞ (fun e => editU P A (H.coefficients N) (X, e)) := |
| 229 | (editU_contDiff P A (H.coefficients N) hA (H.smooth N)).comp (contDiff_const.prodMk contDiff_id) |
| 230 | have horder : (q : WithTop ℕ∞) ≤ ∞ := WithTop.coe_le_coe.mpr le_top |
| 231 | constructor |
| 232 | · change |iteratedDeriv q (fun e => localizedF W r f N (X, e) + editF P A (H.coefficients N) (X, e)) eta - _| ≤ _ |
| 233 | rw [iteratedDeriv_fun_add (hs.1.of_le horder).contDiffAt (heF.of_le horder).contDiffAt] |
| 234 | calc |
| 235 | _ = |(iteratedDeriv q (fun e => localizedF W r f N (X, e)) eta - |
| 236 | iteratedDeriv q (fun e => f (X, e)) eta) + iteratedDeriv q (fun e => editF P A (H.coefficients N) (X, e)) eta| := by congr 1; ring |
| 237 | _ ≤ _ := (abs_add_le _ _).trans ((add_le_add hmodb.1 heditb.1).trans (by |
| 238 | calc |
| 239 | CF / N + Ce * (Cc / N) = (CF + Ce * Cc) / N := by ring |
| 240 | _ ≤ _ := div_le_div_of_nonneg_right (by linarith) hNp.le)) |
| 241 | · change |iteratedDeriv q (fun e => localizedU W r E U N (X, e) + editU P A (H.coefficients N) (X, e)) eta - _| ≤ _ |
| 242 | rw [iteratedDeriv_fun_add (hs.2.of_le horder).contDiffAt (heU.of_le horder).contDiffAt] |
| 243 | calc |
| 244 | _ = |(iteratedDeriv q (fun e => localizedU W r E U N (X, e)) eta - |
| 245 | iteratedDeriv q (fun e => U (X, e)) eta) + iteratedDeriv q (fun e => editU P A (H.coefficients N) (X, e)) eta| := by congr 1; ring |
| 246 | _ ≤ _ := (abs_add_le _ _).trans ((add_le_add hmodb.2 heditb.2).trans (by |
| 247 | calc |
| 248 | CU / N + Ce * (Cc / N) = (CU + Ce * Cc) / N := by ring |
| 249 | _ ≤ _ := div_le_div_of_nonneg_right (by linarith) hNp.le)) |
| 250 | |
| 251 | /-- All five actual integral histories share that same repaired family and |
| 252 | the same inverse-frequency rate, uniformly in every upper radial endpoint. -/ |
| 253 | theorem SmoothRepairFamily.history_eta_rates |
| 254 | (W : Window) (r : ParametricModulation.TrueConeRealization a m p₁ p₂ K B) (f E U : Field) |
| 255 | (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) |
| 256 | (hf : ContDiff ℝ ∞ f) (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) |
| 257 | {P : FiveProfileMoments.Patch} (hWP : W.right < P.left) {b : ℝ} {A G : ℝ → ℝ} |
| 258 | {d : ℝ → ℝ → Debt} {S : Set ℝ} (H : SmoothRepairFamily P b A G d S) |
| 259 | (hS : IsCompact S) (hA : ContDiff ℝ ∞ A) (q : ℕ) : |
| 260 | ∃ Nq C : ℝ, 1 ≤ Nq ∧ 0 < C ∧ ∀ N : ℝ, Nq ≤ N → ∀ X : ℝ, 0 ≤ X → |
| 261 | JetBounds.FiniteJetBound q (fun eta => |
| 262 | axisHistory (applyRepairF P A (H.coefficients N) (localizedF W r f N)) |
| 263 | (applyRepairU P A (H.coefficients N) (localizedU W r E U N)) (X, eta) - axisHistory f U (X, eta)) |
| 264 | S (C / N) := by |
| 265 | obtain ⟨Nc, Cc, hNc, hCc, hcb⟩ := H.rates q |
| 266 | obtain ⟨delta, C1, C2, hd, hC1, hC2, hb⟩ := repaired_axisHistory_jets |
| 267 | W r f E U ha hm hp₂ hf hE hU P hWP A hA S hS q |
| 268 | refine ⟨max Nc (Cc / delta), C1 + C2 * Cc, hNc.trans (le_max_left _ _), by positivity, ?_⟩ |
| 269 | intro N hN X hX |
| 270 | have hnc : Nc ≤ N := (le_max_left _ _).trans hN |
| 271 | have hN1 := hNc.trans hnc |
| 272 | have hNp := zero_lt_one.trans_le hN1 |
| 273 | have he : Cc / N ≤ delta := by |
| 274 | apply (div_le_iff₀ hNp).mpr |
| 275 | have ht := (div_le_iff₀ hd).mp ((le_max_right _ _).trans hN) |
| 276 | nlinarith |
| 277 | convert hb N hN1 (H.coefficients N) (H.smooth N) (Cc / N) |
| 278 | (div_nonneg hCc.le hNp.le) he (hcb N hnc) X hX using 1 |
| 279 | ring |
| 280 | |
| 281 | /-- The parameter estimates apply to the physical angular field, axial field, |
| 282 | and all five profile rows (including pressure) of the same repaired profiles. -/ |
| 283 | theorem SmoothRepairFamily.repaired_profiles_eta_rates |
| 284 | (W : Window) (r : ParametricModulation.TrueConeRealization a m p₁ p₂ K B) (f E U : Field) |
| 285 | (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hp₂ : ContDiff ℝ ∞ p₂) |
| 286 | (hf : ContDiff ℝ ∞ f) (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) |
| 287 | {patch : FiveProfileMoments.Patch} (hgap : W.right < patch.left) |
| 288 | {b : ℝ} {A G : ℝ → ℝ} {d : ℝ → ℝ → Debt} {S : Set ℝ} |
| 289 | (H : SmoothRepairFamily patch b A G d S) (hS : IsCompact S) (hA : ContDiff ℝ ∞ A) |
| 290 | {D D' : ProfileHistories.RadialDomain} |
| 291 | (R : ℝ → ProfileHistories.Profiles D) (Q : ProfileHistories.Profiles D') |
| 292 | (hRf : ∀ N, (R N).f = applyRepairF patch A (H.coefficients N) (localizedF W r f N)) |
| 293 | (hRU : ∀ N, (R N).U = applyRepairU patch A (H.coefficients N) (localizedU W r E U N)) |
| 294 | (hQf : Q.f = f) (hQU : Q.U = U) (hP0 : ∀ N, (R N).pressure0 = Q.pressure0) |
| 295 | (Xmax : ℝ) (q : ℕ) : |
| 296 | ∃ Nq C : ℝ, 1 ≤ Nq ∧ 0 < C ∧ ∀ N : ℝ, Nq ≤ N → |
| 297 | (∀ X eta : ℝ, X ≤ Xmax → eta ∈ S → |
| 298 | |iteratedDeriv q (fun e => (R N).E (X, e)) eta - |
| 299 | iteratedDeriv q (fun e => Q.E (X, e)) eta| ≤ C / N ∧ |
| 300 | |iteratedDeriv q (fun e => (R N).U (X, e)) eta - |
| 301 | iteratedDeriv q (fun e => Q.U (X, e)) eta| ≤ C / N) ∧ |
| 302 | (∀ X : ℝ, 0 ≤ X → JetBounds.FiniteJetBound q |
| 303 | (fun eta => profileRows (R N) (X, eta) - profileRows Q (X, eta)) S (C / N)) := by |
| 304 | obtain ⟨Np, Cp, hNp, hCp, hp⟩ := H.profile_eta_rates W r f E U ha hm hp₂ hf hE hU hS hA q |
| 305 | obtain ⟨Nh, Ch, hNh, hCh, hh⟩ := H.history_eta_rates W r f E U ha hm hp₂ hf hE hU hgap hS hA q |
| 306 | let C := (1 + Real.sqrt (2 * Xmax)) * Cp + Ch |
| 307 | have hC : 0 < C := by dsimp [C]; positivity |
| 308 | refine ⟨max Np Nh, C, hNp.trans (le_max_left _ _), hC, ?_⟩ |
| 309 | intro N hN |
| 310 | have hnp := (le_max_left _ _).trans hN |
| 311 | have hnh := (le_max_right _ _).trans hN |
| 312 | have hNpos := zero_lt_one.trans_le (hNp.trans hnp) |
| 313 | have hCpC : Cp ≤ C := by dsimp [C]; nlinarith [Real.sqrt_nonneg (2 * Xmax)] |
| 314 | have hChC : Ch ≤ C := by dsimp [C]; nlinarith [Real.sqrt_nonneg (2 * Xmax)] |
| 315 | constructor |
| 316 | · intro X eta hX heta |
| 317 | have hb := hp N hnp X eta heta |
| 318 | constructor |
| 319 | · simp only [ProfileHistories.Profiles.E, hRf N, hQf, |
| 320 | iteratedDeriv_const_mul_field, ← mul_sub, abs_mul, |
| 321 | abs_of_nonneg (Real.sqrt_nonneg (2 * X))] |
| 322 | calc |
| 323 | _ ≤ Real.sqrt (2 * X) * (Cp / N) := mul_le_mul_of_nonneg_left hb.1 (Real.sqrt_nonneg _) |
| 324 | _ ≤ Real.sqrt (2 * Xmax) * (Cp / N) := |
| 325 | mul_le_mul_of_nonneg_right (Real.sqrt_le_sqrt (by linarith)) (div_nonneg hCp.le hNpos.le) |
| 326 | _ = (Real.sqrt (2 * Xmax) * Cp) / N := by ring |
| 327 | _ ≤ C / N := div_le_div_of_nonneg_right (by dsimp [C]; nlinarith) hNpos.le |
| 328 | · rw [hRU N, hQU] |
| 329 | exact hb.2.trans (div_le_div_of_nonneg_right hCpC hNpos.le) |
| 330 | · intro X hX |
| 331 | have heq : (fun eta => profileRows (R N) (X, eta) - profileRows Q (X, eta)) = |
| 332 | (fun eta => axisHistory (applyRepairF patch A (H.coefficients N) (localizedF W r f N)) |
| 333 | (applyRepairU patch A (H.coefficients N) (localizedU W r E U N)) (X, eta) - |
| 334 | axisHistory f U (X, eta)) := by |
| 335 | funext eta |
| 336 | rw [profileRows_sub (R N) Q (hP0 N), hRf N, hRU N, hQf, hQU] |
| 337 | rw [heq] |
| 338 | intro eta heta j hj |
| 339 | exact (hh N hnh X hX eta heta j hj).trans (div_le_div_of_nonneg_right hChC hNpos.le) |
| 340 | |
| 341 | open ProfileHistories (RadialDomain Profiles) |
| 342 | open ParametricModulation ModulatedCone ModulatedCone.Repaired |
| 343 | |
| 344 | /-- One actual smooth repaired family satisfies the true cone and exact exterior |
| 345 | restoration for all sufficiently large integer frequencies; every fixed parameter |
| 346 | jet of this same family has the inverse-frequency bound. -/ |
| 347 | theorem exists_with_moment_repair_all_jets {D D' : RadialDomain} |
| 348 | (W : ModulatedHistories.Window) (r : TrueConeRealization a m p₁ p₂ K B) (f E U : Field) |
| 349 | (hK : IsCompact K) (hKW : ∀ p ∈ K, p.1 ∈ Icc W.left W.right) |
| 350 | (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) |
| 351 | (hp₁ : ContDiff ℝ ∞ p₁) (hp₂ : ContDiff ℝ ∞ p₂) |
| 352 | (hf : ContDiff ℝ ∞ f) (hE : ContDiff ℝ ∞ E) (hU : ContDiff ℝ ∞ U) |
| 353 | (haK : ∀ p ∈ K, 0 < a p) |
| 354 | (S : Set Point) (hS : IsCompact S) (hSW : ∀ p ∈ S, W.right ≤ p.1) |
| 355 | (haNom : ∀ p ∈ K ∪ S, a p = angularShear E p) |
| 356 | (hbNom : ∀ p ∈ K ∪ S, a p * m p = signedAxialShear E U p) |
| 357 | (hrelaxed : ∀ p ∈ K, TrueConeLoop.nominalSpeed (a p) (m p) < |
| 358 | ConeAlgebra.coneBound (p₁ p + p₂ p * m p) (p₂ p - p₁ p * m p)) |
| 359 | (hScone : ∀ p ∈ S, TrueConeLoop.InTrueCone (p₁ p) (p₂ p) (a p) (a p * m p)) |
| 360 | (P : ℝ → Profiles D) (Q : Profiles D') |
| 361 | (hPf : ∀ n, (P n).f = ModulatedHistories.localizedF W r f n) |
| 362 | (hPU : ∀ n, (P n).U = ModulatedHistories.localizedU W r E U n) |
| 363 | (hQf : Q.f = f) (hQU : Q.U = U) (hP0 : ∀ n, (P n).pressure0 = Q.pressure0) |
| 364 | (J : Set ℝ) (hJ : IsCompact J) (hTJ : ∀ p ∈ K ∪ S, p.2 ∈ J) |
| 365 | (hTD : K ∪ S ⊆ D.carrier) (hTD' : K ∪ S ⊆ D'.carrier) |
| 366 | (h : ℝ) (hL : ∀ p ∈ K ∪ S, NaturalAxisData.L h p.2 ≠ 0) |
| 367 | (hpos : ∀ p ∈ K ∪ S, 0 < Q.f p) |
| 368 | (hstock₁ : ∀ p ∈ K ∪ S, p₁ p = ActivationStocks.profileStockOne Q h p) |
| 369 | (hstock₂ : ∀ p ∈ K ∪ S, p₂ p = ActivationStocks.profileStockTwo Q h p) |
| 370 | (hBK : B ⊆ K) (hends : ∀ η ∈ J, (W.left, η) ∈ B ∧ (W.right, η) ∈ B) |
| 371 | (hphys : ∀ p ∈ K ∪ S, E =ᶠ[𝓝 p] fun q => Real.sqrt (2 * q.1) * f q) |
| 372 | (patch : FiveProfileMoments.Patch) (hgap : W.right < patch.left) |
| 373 | (A G : ℝ → ℝ) (hA : ContDiff ℝ ∞ A) (hG : ContDiff ℝ ∞ G) (hApos : ∀ η, 0 < A η) |
| 374 | (hwindow : Icc W.left W.right ×ˢ J ⊆ K) |
| 375 | (hfollowing : Icc W.right patch.right ×ˢ J ⊆ S) |
| 376 | (b : ℝ) (hb : FiveProfileMoments.GoodExponent b) |
| 377 | (hpatchU : ∀ η ∈ J, ∀ X ∈ Ioo patch.left patch.right, U (X, η) = G η) |
| 378 | (hpatchE : ∀ η ∈ J, ∀ X ∈ Ioo patch.left patch.right, |
| 379 | Real.sqrt (2 * X) * f (X, η) = A η * X ^ b) : |
| 380 | ∃ H : SmoothRepairFamily patch b A G (repairDebt W r f E U) J, |
| 381 | ∃ N : ℕ, 0 < N ∧ |
| 382 | (∀ n : ℕ, N ≤ n → |
| 383 | let R := profileRepair (P n) patch A (H.coefficients n) hA (H.smooth n) |
| 384 | (∀ p ∈ Icc W.left patch.right ×ˢ J, 0 < R.f p ∧ |
| 385 | TrueConeLoop.InTrueCone (ActivationStocks.profileStockOne R h p) |
| 386 | (ActivationStocks.profileStockTwo R h p) (angularShear R.E p) (signedAxialShear R.E R.U p)) ∧ |
| 387 | (∀ eta ∈ J, ∀ X : ℝ, patch.right ≤ X → profileRows R (X, eta) = profileRows Q (X, eta)) ∧ |
| 388 | (∀ p : Point, p.1 ∉ Ioo patch.left patch.right → |
| 389 | R.E p = (P n).E p ∧ R.U p = (P n).U p ∧ |
| 390 | angularShear R.E p = angularShear (P n).E p ∧ |
| 391 | signedAxialShear R.E R.U p = signedAxialShear (P n).E (P n).U p ∧ |
| 392 | ((fun X => R.E (X, p.2)) =ᶠ[𝓝 p.1] fun X => (P n).E (X, p.2)) ∧ |
| 393 | ((fun X => R.U (X, p.2)) =ᶠ[𝓝 p.1] fun X => (P n).U (X, p.2)))) ∧ |
| 394 | (∀ q : ℕ, ∃ Nq C : ℝ, 1 ≤ Nq ∧ 0 < C ∧ ∀ n : ℝ, Nq ≤ n → |
| 395 | let R := profileRepair (P n) patch A (H.coefficients n) hA (H.smooth n) |
| 396 | (∀ X eta : ℝ, X ≤ patch.right → eta ∈ J → |
| 397 | |iteratedDeriv q (fun e => R.E (X, e)) eta - iteratedDeriv q (fun e => Q.E (X, e)) eta| ≤ C / n ∧ |
| 398 | |iteratedDeriv q (fun e => R.U (X, e)) eta - iteratedDeriv q (fun e => Q.U (X, e)) eta| ≤ C / n) ∧ |
| 399 | (∀ X : ℝ, 0 ≤ X → JetBounds.FiniteJetBound q |
| 400 | (fun eta => profileRows R (X, eta) - profileRows Q (X, eta)) J (C / n))) := by |
| 401 | classical |
| 402 | obtain ⟨H⟩ := exists_actual_repair_family_all_jets W r f E U ha hm hp₂ hf hE hU |
| 403 | patch b hb J hJ A G hA hG hApos |
| 404 | obtain ⟨N₀, Cc, hN₀, hCc, hcoeff⟩ := H.rates 1 |
| 405 | obtain ⟨Nc, hNc, hcone⟩ := profiles_trueCone W r f E U hK hKW ha hm hp₁ hp₂ hf hE hU haK |
| 406 | S hS hSW haNom hbNom hrelaxed hScone P Q hPf hPU hQf hQU hP0 J hJ hTJ hTD hTD' |
| 407 | h hL hpos hstock₁ hstock₂ hBK hends hphys patch hgap A hA H.coefficients H.smooth |
| 408 | N₀ Cc hCc.le (fun n hn _ => hcoeff n hn) |
| 409 | obtain ⟨Nr, hNr⟩ := exists_nat_gt H.threshold |
| 410 | refine ⟨H, max Nc Nr, hNc.trans_le (le_max_left _ _), ?_, ?_⟩ |
| 411 | · intro n hn |
| 412 | have hcn : Nc ≤ n := (le_max_left _ _).trans hn |
| 413 | have hrn : H.threshold ≤ (n : ℝ) := hNr.le.trans (by exact_mod_cast (le_trans (le_max_right Nc Nr) hn)) |
| 414 | refine ⟨?_, ?_, ?_⟩ |
| 415 | · intro p hp |
| 416 | have hpt : p ∈ K ∪ S := by |
| 417 | by_cases hr : p.1 ≤ W.right |
| 418 | · exact Or.inl (hwindow ⟨⟨hp.1.1, hr⟩, hp.2⟩) |
| 419 | · exact Or.inr (hfollowing ⟨⟨(lt_of_not_ge hr).le, hp.1.2⟩, hp.2⟩) |
| 420 | exact hcone n hcn p hpt |
| 421 | · intro eta heta X hX |
| 422 | have hmom := H.solves n eta (H.contains n hrn heta) |
| 423 | have hs := actual_histories_restored W r f E U ha hm hp₂ hf hE hU |
| 424 | patch hgap b A G (H.coefficients n) n eta X hX (hApos eta).ne' |
| 425 | (hpatchU eta heta) (hpatchE eta heta) hmom |
| 426 | apply sub_eq_zero.mp |
| 427 | rw [profileRows_sub (profileRepair (P n) patch A (H.coefficients n) hA (H.smooth n)) Q (hP0 n)] |
| 428 | change axisHistory (applyRepairF patch A (H.coefficients n) (P n).f) |
| 429 | (applyRepairU patch A (H.coefficients n) (P n).U) (X, eta) - axisHistory Q.f Q.U (X, eta) = 0 |
| 430 | rw [hPf n, hPU n, hQf, hQU, hs, sub_self] |
| 431 | · intro p hp |
| 432 | have hs := shears_unchanged_outside |
| 433 | (profileRepair (P n) patch A (H.coefficients n) hA (H.smooth n)) |
| 434 | (P n) patch A (H.coefficients n) rfl rfl hp |
| 435 | exact ⟨hs.1, hs.2.1, hs.2.2.1, hs.2.2.2, |
| 436 | profileRepair_radial_germs (P n) patch A (H.coefficients n) hA (H.smooth n) hp⟩ |
| 437 | · intro q |
| 438 | exact H.repaired_profiles_eta_rates W r f E U ha hm hp₂ hf hE hU hgap hJ hA |
| 439 | (fun n => profileRepair (P n) patch A (H.coefficients n) hA (H.smooth n)) Q |
| 440 | (fun n => by simp only [profileRepair, hPf n]) |
| 441 | (fun n => by simp only [profileRepair, hPU n]) hQf hQU hP0 patch.right q |
| 442 | |
| 443 | end NavierStokes.ModulatedProfileJetRates |