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.LocalizedMomentRepair |
| 2 | import Mathlib.Tactic.FinCases |
| 3 | |
| 4 | /-! |
| 5 | # The five-row rank repair on an unaltered power-law patch |
| 6 | |
| 7 | For `V(R) = C R^(-1 - 2 lam)` and `G = 0`, the five linear rows of |
| 8 | the manuscript are solved by two concrete smooth compactly supported functions. |
| 9 | The three angular and two axial powers are proved distinct when `lam > 0`. |
| 10 | No nonsingularity or preimage is assumed: the profiles use the constructed |
| 11 | localized moment inverse. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open scoped BigOperators ContDiff |
| 17 | open Set Function MeasureTheory |
| 18 | |
| 19 | namespace NavierStokes.FiveRowRank |
| 20 | |
| 21 | /-- The three debts, in the order `(P, Jθ, Jz)`. -/ |
| 22 | abbrev Debt := Fin 3 → ℝ |
| 23 | |
| 24 | /-- A positive mesh with unused gaps between the correction intervals. -/ |
| 25 | def cellStep (a b : ℝ) (n : ℕ) : ℝ := (b - a) / (2 * (n : ℝ) + 1) |
| 26 | |
| 27 | def cellLower {n : ℕ} (a b : ℝ) (j : Fin n) : ℝ := |
| 28 | a + (2 * (j.val : ℝ) + 1) * cellStep a b n |
| 29 | |
| 30 | def cellUpper {n : ℕ} (a b : ℝ) (j : Fin n) : ℝ := |
| 31 | a + (2 * (j.val : ℝ) + 2) * cellStep a b n |
| 32 | |
| 33 | theorem cellStep_pos (a b : ℝ) (hab : a < b) (n : ℕ) : 0 < cellStep a b n := by |
| 34 | apply div_pos (sub_pos.mpr hab) |
| 35 | positivity |
| 36 | |
| 37 | theorem cellStep_mul (a b : ℝ) (n : ℕ) : |
| 38 | (2 * (n : ℝ) + 1) * cellStep a b n = b - a := by |
| 39 | unfold cellStep |
| 40 | have hn : 2 * (n : ℝ) + 1 ≠ 0 := by positivity |
| 41 | field_simp |
| 42 | |
| 43 | theorem cellLower_gt {n : ℕ} (a b : ℝ) (hab : a < b) (j : Fin n) : |
| 44 | a < cellLower a b j := by |
| 45 | have hj : (0 : ℝ) ≤ j.val := Nat.cast_nonneg _ |
| 46 | have hd := cellStep_pos a b hab n |
| 47 | unfold cellLower |
| 48 | nlinarith |
| 49 | |
| 50 | theorem cell_lower_lt_upper {n : ℕ} (a b : ℝ) (hab : a < b) (j : Fin n) : |
| 51 | cellLower a b j < cellUpper a b j := by |
| 52 | have hd := cellStep_pos a b hab n |
| 53 | unfold cellLower cellUpper |
| 54 | nlinarith |
| 55 | |
| 56 | theorem cellUpper_lt {n : ℕ} (a b : ℝ) (hab : a < b) (j : Fin n) : |
| 57 | cellUpper a b j < b := by |
| 58 | have hj : (j.val : ℝ) + 1 ≤ n := by exact_mod_cast j.isLt |
| 59 | have hd := cellStep_pos a b hab n |
| 60 | have hm := cellStep_mul a b n |
| 61 | unfold cellUpper |
| 62 | nlinarith |
| 63 | |
| 64 | theorem cell_separated {n : ℕ} (a b : ℝ) (hab : a < b) |
| 65 | (i j : Fin n) (hij : i < j) : cellUpper a b i ≤ cellLower a b j := by |
| 66 | have hij' : (i.val : ℝ) + 1 ≤ j.val := by exact_mod_cast hij |
| 67 | have hd := cellStep_pos a b hab n |
| 68 | unfold cellUpper cellLower |
| 69 | nlinarith |
| 70 | |
| 71 | theorem cell_positive {n : ℕ} (a b : ℝ) (ha : 0 < a) (hab : a < b) |
| 72 | (j : Fin n) : 0 < cellLower a b j := |
| 73 | ha.trans (cellLower_gt a b hab j) |
| 74 | |
| 75 | theorem cell_union_subset {n : ℕ} (a b : ℝ) (hab : a < b) : |
| 76 | (⋃ j : Fin n, Ioo (cellLower a b j) (cellUpper a b j)) ⊆ Ioo a b := by |
| 77 | intro R hR |
| 78 | obtain ⟨j, hj⟩ := mem_iUnion.mp hR |
| 79 | exact ⟨(cellLower_gt a b hab j).trans hj.1, hj.2.trans (cellUpper_lt a b hab j)⟩ |
| 80 | |
| 81 | def angularPowers (lam : ℝ) : Fin 3 → ℝ := ![2, -2 - 2 * lam, -2 * lam] |
| 82 | def axialPowers (lam : ℝ) : Fin 2 → ℝ := ![1, 1 - 2 * lam] |
| 83 | |
| 84 | theorem angularPowers_injective (lam : ℝ) (hlam : 0 < lam) : Injective (angularPowers lam) := by |
| 85 | intro i j hij |
| 86 | fin_cases i <;> fin_cases j <;> simp_all [angularPowers] <;> linarith |
| 87 | |
| 88 | theorem axialPowers_injective (lam : ℝ) (hlam : 0 < lam) : Injective (axialPowers lam) := by |
| 89 | intro i j hij |
| 90 | fin_cases i <;> fin_cases j <;> simp_all [axialPowers] |
| 91 | linarith |
| 92 | |
| 93 | /-- Normalized angular moments, including the signs of the pressure and axial rows. -/ |
| 94 | def angularDebt (C : ℝ) (d : Debt) : Fin 3 → ℝ := ![0, -(d 0) / (2 * C), d 2 / C] |
| 95 | |
| 96 | /-- Normalized axial moments. -/ |
| 97 | def axialDebt (C : ℝ) (d : Debt) : Fin 2 → ℝ := ![0, -(d 1) / C] |
| 98 | |
| 99 | /-- The angular increment `∆v_m`, constructed from three separated smooth bumps. -/ |
| 100 | def deltaV (lam C a b : ℝ) (d : Debt) : ℝ → ℝ := |
| 101 | LocalizedMomentRepair.repair (angularPowers lam) (cellLower a b) (cellUpper a b) |
| 102 | (angularDebt C d) |
| 103 | |
| 104 | /-- The desired axial increment `γ_d`, constructed from two separated smooth bumps. -/ |
| 105 | def gamma (lam C a b : ℝ) (d : Debt) : ℝ → ℝ := |
| 106 | LocalizedMomentRepair.repair (axialPowers lam) (cellLower a b) (cellUpper a b) |
| 107 | (axialDebt C d) |
| 108 | |
| 109 | /-- The unaltered power-law angular mean on the repair patch. -/ |
| 110 | def background (lam C R : ℝ) : ℝ := C * R ^ (-1 - 2 * lam) |
| 111 | |
| 112 | theorem deltaV_contDiff (lam C a b : ℝ) (d : Debt) : ContDiff ℝ ∞ (deltaV lam C a b d) := |
| 113 | LocalizedMomentRepair.repair_contDiff _ _ _ _ |
| 114 | |
| 115 | theorem gamma_contDiff (lam C a b : ℝ) (d : Debt) : ContDiff ℝ ∞ (gamma lam C a b d) := |
| 116 | LocalizedMomentRepair.repair_contDiff _ _ _ _ |
| 117 | |
| 118 | theorem deltaV_tsupport_subset (lam C a b : ℝ) (d : Debt) (hab : a < b) : |
| 119 | tsupport (deltaV lam C a b d) ⊆ Ioo a b := |
| 120 | (LocalizedMomentRepair.repair_tsupport_subset_open _ _ _ _ |
| 121 | (cell_lower_lt_upper a b hab)).trans (cell_union_subset a b hab) |
| 122 | |
| 123 | theorem gamma_tsupport_subset (lam C a b : ℝ) (d : Debt) (hab : a < b) : |
| 124 | tsupport (gamma lam C a b d) ⊆ Ioo a b := |
| 125 | (LocalizedMomentRepair.repair_tsupport_subset_open _ _ _ _ |
| 126 | (cell_lower_lt_upper a b hab)).trans (cell_union_subset a b hab) |
| 127 | |
| 128 | theorem deltaV_eq_zero_of_not_mem (lam C a b : ℝ) (d : Debt) (hab : a < b) |
| 129 | {R : ℝ} (hR : R ∉ Ioo a b) : deltaV lam C a b d R = 0 := by |
| 130 | by_contra hn |
| 131 | exact hR (deltaV_tsupport_subset lam C a b d hab (subset_closure hn)) |
| 132 | |
| 133 | theorem gamma_eq_zero_of_not_mem (lam C a b : ℝ) (d : Debt) (hab : a < b) |
| 134 | {R : ℝ} (hR : R ∉ Ioo a b) : gamma lam C a b d R = 0 := by |
| 135 | by_contra hn |
| 136 | exact hR (gamma_tsupport_subset lam C a b d hab (subset_closure hn)) |
| 137 | |
| 138 | theorem angular_moments (lam C a b : ℝ) (d : Debt) (hlam : 0 < lam) |
| 139 | (ha : 0 < a) (hab : a < b) (i : Fin 3) : |
| 140 | (∫ R, R ^ angularPowers lam i * deltaV lam C a b d R) = angularDebt C d i := |
| 141 | LocalizedMomentRepair.repair_exact _ _ _ _ (angularPowers_injective lam hlam) |
| 142 | (cell_positive a b ha hab) (cell_lower_lt_upper a b hab) (cell_separated a b hab) i |
| 143 | |
| 144 | theorem axial_moments (lam C a b : ℝ) (d : Debt) (hlam : 0 < lam) |
| 145 | (ha : 0 < a) (hab : a < b) (i : Fin 2) : |
| 146 | (∫ R, R ^ axialPowers lam i * gamma lam C a b d R) = axialDebt C d i := |
| 147 | LocalizedMomentRepair.repair_exact _ _ _ _ (axialPowers_injective lam hlam) |
| 148 | (cell_positive a b ha hab) (cell_lower_lt_upper a b hab) (cell_separated a b hab) i |
| 149 | |
| 150 | theorem angular_mass_zero (lam C a b : ℝ) (d : Debt) (hlam : 0 < lam) |
| 151 | (ha : 0 < a) (hab : a < b) : (∫ R, R ^ (2 : ℕ) * deltaV lam C a b d R) = 0 := by |
| 152 | simpa [angularPowers, angularDebt, Real.rpow_natCast] using |
| 153 | angular_moments lam C a b d hlam ha hab 0 |
| 154 | |
| 155 | theorem axial_mass_zero (lam C a b : ℝ) (d : Debt) (hlam : 0 < lam) |
| 156 | (ha : 0 < a) (hab : a < b) : (∫ R, R * gamma lam C a b d R) = 0 := by |
| 157 | simpa [axialPowers, axialDebt] using axial_moments lam C a b d hlam ha hab 0 |
| 158 | |
| 159 | theorem pressure_weight (lam C R : ℝ) (hR : 0 < R) : |
| 160 | 2 * background lam C R / R = (2 * C) * R ^ (-2 - 2 * lam) := by |
| 161 | have hp : R ^ (-2 - 2 * lam) = R ^ (-1 - 2 * lam) / R := by |
| 162 | rw [show -2 - 2 * lam = (-1 - 2 * lam) - 1 by ring, Real.rpow_sub hR, Real.rpow_one] |
| 163 | rw [hp, background] |
| 164 | ring |
| 165 | |
| 166 | theorem angular_weight (lam C R : ℝ) (hR : 0 < R) : |
| 167 | R ^ (2 : ℕ) * background lam C R = C * R ^ (1 - 2 * lam) := by |
| 168 | have hp : R ^ (1 - 2 * lam) = R ^ (2 : ℕ) * R ^ (-1 - 2 * lam) := by |
| 169 | rw [show 1 - 2 * lam = (2 : ℝ) + (-1 - 2 * lam) by ring, Real.rpow_add hR] |
| 170 | norm_num |
| 171 | rw [hp, background] |
| 172 | ring |
| 173 | |
| 174 | theorem axial_weight (lam C R : ℝ) (hR : 0 < R) : |
| 175 | -(R * background lam C R) = (-C) * R ^ (-2 * lam) := by |
| 176 | have hp : R ^ (-2 * lam) = R * R ^ (-1 - 2 * lam) := by |
| 177 | rw [show -2 * lam = (1 : ℝ) + (-1 - 2 * lam) by ring, Real.rpow_add hR, Real.rpow_one] |
| 178 | rw [hp, background] |
| 179 | ring |
| 180 | |
| 181 | theorem pressure_row (lam C a b : ℝ) (d : Debt) (hlam : 0 < lam) (hC : C ≠ 0) |
| 182 | (ha : 0 < a) (hab : a < b) : |
| 183 | (∫ R, (2 * background lam C R / R) * deltaV lam C a b d R) = -(d 0) := by |
| 184 | have hi : (fun R => (2 * background lam C R / R) * deltaV lam C a b d R) = |
| 185 | (fun R => (2 * C) * (R ^ (-2 - 2 * lam) * deltaV lam C a b d R)) := by |
| 186 | funext R |
| 187 | by_cases hR : 0 < R |
| 188 | · rw [pressure_weight lam C R hR, mul_assoc] |
| 189 | · have hz := deltaV_eq_zero_of_not_mem lam C a b d hab |
| 190 | (show R ∉ Ioo a b from fun h => hR (ha.trans h.1)) |
| 191 | simp only [hz, mul_zero] |
| 192 | rw [hi, integral_const_mul] |
| 193 | have hm := angular_moments lam C a b d hlam ha hab 1 |
| 194 | simp [angularPowers, angularDebt] at hm |
| 195 | rw [hm] |
| 196 | field_simp |
| 197 | |
| 198 | theorem angular_row (lam C a b : ℝ) (d : Debt) (hlam : 0 < lam) (hC : C ≠ 0) |
| 199 | (ha : 0 < a) (hab : a < b) : |
| 200 | (∫ R, (R ^ (2 : ℕ) * background lam C R) * gamma lam C a b d R) = -(d 1) := by |
| 201 | have hi : (fun R => (R ^ (2 : ℕ) * background lam C R) * gamma lam C a b d R) = |
| 202 | (fun R => C * (R ^ (1 - 2 * lam) * gamma lam C a b d R)) := by |
| 203 | funext R |
| 204 | by_cases hR : 0 < R |
| 205 | · rw [angular_weight lam C R hR, mul_assoc] |
| 206 | · have hz := gamma_eq_zero_of_not_mem lam C a b d hab |
| 207 | (show R ∉ Ioo a b from fun h => hR (ha.trans h.1)) |
| 208 | simp only [hz, mul_zero] |
| 209 | rw [hi, integral_const_mul] |
| 210 | have hm := axial_moments lam C a b d hlam ha hab 1 |
| 211 | simp [axialPowers, axialDebt] at hm |
| 212 | rw [hm] |
| 213 | field_simp |
| 214 | |
| 215 | theorem axial_row (lam C a b : ℝ) (d : Debt) (hlam : 0 < lam) (hC : C ≠ 0) |
| 216 | (ha : 0 < a) (hab : a < b) : |
| 217 | (∫ R, -(R * background lam C R) * deltaV lam C a b d R) = -(d 2) := by |
| 218 | have hi : (fun R => -(R * background lam C R) * deltaV lam C a b d R) = |
| 219 | (fun R => (-C) * (R ^ (-2 * lam) * deltaV lam C a b d R)) := by |
| 220 | funext R |
| 221 | by_cases hR : 0 < R |
| 222 | · rw [axial_weight lam C R hR, mul_assoc] |
| 223 | · have hz := deltaV_eq_zero_of_not_mem lam C a b d hab |
| 224 | (show R ∉ Ioo a b from fun h => hR (ha.trans h.1)) |
| 225 | simp only [hz, mul_zero] |
| 226 | rw [hi, integral_const_mul] |
| 227 | have hm : (∫ R, R ^ (-2 * lam) * deltaV lam C a b d R) = d 2 / C := |
| 228 | angular_moments lam C a b d hlam ha hab 2 |
| 229 | rw [hm] |
| 230 | field_simp |
| 231 | |
| 232 | /-- The five linear equations (35), retaining the general background fields. -/ |
| 233 | def FiveRows (V G : ℝ → ℝ) (d : Debt) (dv ga : ℝ → ℝ) : Prop := |
| 234 | (∫ R, R ^ (2 : ℕ) * dv R) = 0 ∧ |
| 235 | (∫ R, R * ga R) = 0 ∧ |
| 236 | (∫ R, (2 * V R / R) * dv R) = -(d 0) ∧ |
| 237 | (∫ R, R ^ (2 : ℕ) * (G R * dv R + V R * ga R)) = -(d 1) ∧ |
| 238 | (∫ R, 2 * R * G R * ga R - R * V R * dv R) = -(d 2) |
| 239 | |
| 240 | /-- Only the values of the background fields on the patch are used. -/ |
| 241 | theorem five_rows_on_patch (lam C a b : ℝ) (d : Debt) (hlam : 0 < lam) (hC : C ≠ 0) |
| 242 | (ha : 0 < a) (hab : a < b) (V G : ℝ → ℝ) |
| 243 | (hV : ∀ R ∈ Ioo a b, V R = background lam C R) |
| 244 | (hG : ∀ R ∈ Ioo a b, G R = 0) : |
| 245 | FiveRows V G d (deltaV lam C a b d) (gamma lam C a b d) := by |
| 246 | refine ⟨angular_mass_zero lam C a b d hlam ha hab, |
| 247 | axial_mass_zero lam C a b d hlam ha hab, ?_, ?_, ?_⟩ |
| 248 | · rw [← pressure_row lam C a b d hlam hC ha hab] |
| 249 | apply integral_congr_ae |
| 250 | filter_upwards [] with R |
| 251 | by_cases hR : R ∈ Ioo a b |
| 252 | · rw [hV R hR] |
| 253 | · simp only [deltaV_eq_zero_of_not_mem lam C a b d hab hR, mul_zero] |
| 254 | · rw [← angular_row lam C a b d hlam hC ha hab] |
| 255 | apply integral_congr_ae |
| 256 | filter_upwards [] with R |
| 257 | by_cases hR : R ∈ Ioo a b |
| 258 | · rw [hV R hR, hG R hR] |
| 259 | ring |
| 260 | · simp only [deltaV_eq_zero_of_not_mem lam C a b d hab hR, |
| 261 | gamma_eq_zero_of_not_mem lam C a b d hab hR, mul_zero, add_zero] |
| 262 | · rw [← axial_row lam C a b d hlam hC ha hab] |
| 263 | apply integral_congr_ae |
| 264 | filter_upwards [] with R |
| 265 | by_cases hR : R ∈ Ioo a b |
| 266 | · rw [hV R hR, hG R hR] |
| 267 | ring |
| 268 | · simp only [deltaV_eq_zero_of_not_mem lam C a b d hab hR, |
| 269 | gamma_eq_zero_of_not_mem lam C a b d hab hR, mul_zero, sub_zero] |
| 270 | |
| 271 | /-- In particular the concrete unaltered background supports all five rows. -/ |
| 272 | theorem five_rows (lam C a b : ℝ) (d : Debt) (hlam : 0 < lam) (hC : C ≠ 0) |
| 273 | (ha : 0 < a) (hab : a < b) : |
| 274 | FiveRows (background lam C) (fun _ => 0) d |
| 275 | (deltaV lam C a b d) (gamma lam C a b d) := |
| 276 | five_rows_on_patch lam C a b d hlam hC ha hab _ _ (fun _ _ => rfl) (fun _ _ => rfl) |
| 277 | |
| 278 | theorem integrable_power_mul_of_patch (p a b : ℝ) (f : ℝ → ℝ) (ha : 0 < a) |
| 279 | (hf : Continuous f) (hs : support f ⊆ Ioo a b) : |
| 280 | Integrable (fun R => R ^ p * f R) := by |
| 281 | have hprod : support (fun R => R ^ p * f R) ⊆ Icc a b := by |
| 282 | intro R hR |
| 283 | have hne : f R ≠ 0 := by intro hz; exact hR (by simp [hz]) |
| 284 | exact Ioo_subset_Icc_self (hs hne) |
| 285 | apply (integrableOn_iff_integrable_of_support_subset hprod).mp |
| 286 | apply ContinuousOn.integrableOn_Icc |
| 287 | apply ContinuousOn.mul _ hf.continuousOn |
| 288 | apply continuousOn_id.rpow_const |
| 289 | intro R hR |
| 290 | exact Or.inl (ne_of_gt (lt_of_lt_of_le ha hR.1)) |
| 291 | |
| 292 | section Linearity |
| 293 | |
| 294 | def angularDebtLinearMap (C : ℝ) : Debt →ₗ[ℝ] (Fin 3 → ℝ) where |
| 295 | toFun := angularDebt C |
| 296 | map_add' d e := by |
| 297 | ext i |
| 298 | fin_cases i <;> simp [angularDebt, Pi.add_apply] <;> ring |
| 299 | map_smul' r d := by |
| 300 | ext i |
| 301 | fin_cases i <;> simp [angularDebt, Pi.smul_apply, smul_eq_mul] <;> ring |
| 302 | |
| 303 | def axialDebtLinearMap (C : ℝ) : Debt →ₗ[ℝ] (Fin 2 → ℝ) where |
| 304 | toFun := axialDebt C |
| 305 | map_add' d e := by |
| 306 | ext i |
| 307 | fin_cases i <;> simp [axialDebt, Pi.add_apply] |
| 308 | ring |
| 309 | map_smul' r d := by |
| 310 | ext i |
| 311 | fin_cases i <;> simp [axialDebt, Pi.smul_apply, smul_eq_mul] |
| 312 | ring |
| 313 | |
| 314 | /-- The concrete angular correction as a linear map in `(P,Jθ,Jz)`. -/ |
| 315 | def deltaVLinearMap (lam C a b : ℝ) : Debt →ₗ[ℝ] (ℝ → ℝ) := |
| 316 | (LocalizedMomentRepair.repairLinearMap (angularPowers lam) (cellLower a b) (cellUpper a b)).comp |
| 317 | (angularDebtLinearMap C) |
| 318 | |
| 319 | /-- The concrete axial correction as a linear map in `(P,Jθ,Jz)`. -/ |
| 320 | def gammaLinearMap (lam C a b : ℝ) : Debt →ₗ[ℝ] (ℝ → ℝ) := |
| 321 | (LocalizedMomentRepair.repairLinearMap (axialPowers lam) (cellLower a b) (cellUpper a b)).comp |
| 322 | (axialDebtLinearMap C) |
| 323 | |
| 324 | @[simp] theorem deltaVLinearMap_apply (lam C a b : ℝ) (d : Debt) : |
| 325 | deltaVLinearMap lam C a b d = deltaV lam C a b d := rfl |
| 326 | |
| 327 | @[simp] theorem gammaLinearMap_apply (lam C a b : ℝ) (d : Debt) : |
| 328 | gammaLinearMap lam C a b d = gamma lam C a b d := rfl |
| 329 | |
| 330 | @[simp] theorem deltaV_zero (lam C a b : ℝ) : deltaV lam C a b 0 = 0 := |
| 331 | (deltaVLinearMap lam C a b).map_zero |
| 332 | |
| 333 | @[simp] theorem gamma_zero (lam C a b : ℝ) : gamma lam C a b 0 = 0 := |
| 334 | (gammaLinearMap lam C a b).map_zero |
| 335 | |
| 336 | end Linearity |
| 337 | |
| 338 | section JetBounds |
| 339 | |
| 340 | end JetBounds |
| 341 | |
| 342 | section SmoothParameters |
| 343 | |
| 344 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 345 | |
| 346 | /-- Smooth debts give joint smoothness of a fixed localized repair in the |
| 347 | parameter and spatial variables. This uses the actual finite coordinate family. -/ |
| 348 | theorem repair_joint_contDiffOn {n : ℕ} (a l u : Fin n → ℝ) {S : Set E} |
| 349 | {d : E → Fin n → ℝ} (hd : ContDiffOn ℝ ∞ d S) : |
| 350 | ContDiffOn ℝ ∞ (fun z : E × ℝ => LocalizedMomentRepair.repair a l u (d z.1) z.2) |
| 351 | (S ×ˢ univ) := by |
| 352 | have hfun : (fun z : E × ℝ => LocalizedMomentRepair.repair a l u (d z.1) z.2) = |
| 353 | (fun z : E × ℝ => ∑ j, d z.1 j * |
| 354 | LocalizedMomentRepair.repair a l u (Pi.single j 1) z.2) := by |
| 355 | funext z |
| 356 | exact congrFun (LocalizedMomentRepair.repair_eq_sum_coordinate a l u (d z.1)) z.2 |
| 357 | rw [hfun] |
| 358 | apply ContDiffOn.sum |
| 359 | intro j _ |
| 360 | exact ((contDiffOn_pi.mp hd j).comp contDiffOn_fst (fun _ hz => hz.1)).mul |
| 361 | ((LocalizedMomentRepair.repair_contDiff a l u (Pi.single j 1)).comp contDiff_snd).contDiffOn |
| 362 | |
| 363 | theorem angularDebt_contDiffOn {S : Set E} {C : E → ℝ} {d : E → Debt} |
| 364 | (hC : ContDiffOn ℝ ∞ C S) (hd : ContDiffOn ℝ ∞ d S) |
| 365 | (hCn : ∀ p ∈ S, C p ≠ 0) : |
| 366 | ContDiffOn ℝ ∞ (fun p => angularDebt (C p) (d p)) S := by |
| 367 | apply contDiffOn_pi.mpr |
| 368 | intro i |
| 369 | fin_cases i |
| 370 | · exact contDiffOn_const |
| 371 | · change ContDiffOn ℝ ∞ (fun p => -(d p 0) / (2 * C p)) S |
| 372 | exact (contDiffOn_pi.mp hd 0).neg.div (contDiffOn_const.mul hC) |
| 373 | (fun p hp => mul_ne_zero (by norm_num) (hCn p hp)) |
| 374 | · change ContDiffOn ℝ ∞ (fun p => d p 2 / C p) S |
| 375 | exact (contDiffOn_pi.mp hd 2).div hC hCn |
| 376 | |
| 377 | theorem axialDebt_contDiffOn {S : Set E} {C : E → ℝ} {d : E → Debt} |
| 378 | (hC : ContDiffOn ℝ ∞ C S) (hd : ContDiffOn ℝ ∞ d S) |
| 379 | (hCn : ∀ p ∈ S, C p ≠ 0) : |
| 380 | ContDiffOn ℝ ∞ (fun p => axialDebt (C p) (d p)) S := by |
| 381 | apply contDiffOn_pi.mpr |
| 382 | intro i |
| 383 | fin_cases i |
| 384 | · exact contDiffOn_const |
| 385 | · change ContDiffOn ℝ ∞ (fun p => -(d p 1) / C p) S |
| 386 | exact (contDiffOn_pi.mp hd 1).neg.div hC hCn |
| 387 | |
| 388 | /-- Joint smoothness in every auxiliary parameter and the radial coordinate, |
| 389 | for any smooth nonvanishing amplitude and smooth debt vector. -/ |
| 390 | theorem deltaV_joint_contDiffOn (lam a b : ℝ) {S : Set E} {C : E → ℝ} {d : E → Debt} |
| 391 | (hC : ContDiffOn ℝ ∞ C S) (hd : ContDiffOn ℝ ∞ d S) |
| 392 | (hCn : ∀ p ∈ S, C p ≠ 0) : |
| 393 | ContDiffOn ℝ ∞ (fun z : E × ℝ => deltaV lam (C z.1) a b (d z.1) z.2) |
| 394 | (S ×ˢ univ) := |
| 395 | repair_joint_contDiffOn (E := E) (n := 3) |
| 396 | (angularPowers lam) (cellLower a b) (cellUpper a b) |
| 397 | (S := S) (d := fun p => angularDebt (C p) (d p)) |
| 398 | (angularDebt_contDiffOn (E := E) (S := S) (C := C) (d := d) hC hd hCn) |
| 399 | |
| 400 | theorem gamma_joint_contDiffOn (lam a b : ℝ) {S : Set E} {C : E → ℝ} {d : E → Debt} |
| 401 | (hC : ContDiffOn ℝ ∞ C S) (hd : ContDiffOn ℝ ∞ d S) |
| 402 | (hCn : ∀ p ∈ S, C p ≠ 0) : |
| 403 | ContDiffOn ℝ ∞ (fun z : E × ℝ => gamma lam (C z.1) a b (d z.1) z.2) |
| 404 | (S ×ˢ univ) := |
| 405 | repair_joint_contDiffOn (E := E) (n := 2) |
| 406 | (axialPowers lam) (cellLower a b) (cellUpper a b) |
| 407 | (S := S) (d := fun p => axialDebt (C p) (d p)) |
| 408 | (axialDebt_contDiffOn (E := E) (S := S) (C := C) (d := d) hC hd hCn) |
| 409 | |
| 410 | end SmoothParameters |
| 411 | |
| 412 | end NavierStokes.FiveRowRank |