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.AssembledSlowBase |
| 2 | |
| 3 | /-! |
| 4 | # Stress confinement for the coherent repaired slow sequence |
| 5 | |
| 6 | The five rows constructed by `GlobalSlowProfiles` imply the two actual |
| 7 | conservative residual integrals vanish. Their negative radial primitives |
| 8 | therefore vanish past the same outer radius, uniformly over positive orders |
| 9 | `n ≥ 2`. The preceding angular coefficient then has an ordinary repaired |
| 10 | moment; no renormalized order-zero moment is used in this module. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open Set Filter Function MeasureTheory |
| 16 | open scoped ContDiff Topology BigOperators |
| 17 | |
| 18 | namespace NavierStokes.GlobalStressSupport |
| 19 | |
| 20 | open GlobalSlowProfiles |
| 21 | |
| 22 | /-- The actual axial coefficients pulled back from `X` to signed radius. -/ |
| 23 | noncomputable def axialHistory {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) (n : ℕ) : Field := |
| 24 | SlowResidualMatching.toRadius ((asSlowProfiles s).axial n) |
| 25 | |
| 26 | /-- The actual angular velocity coefficients in signed radius. -/ |
| 27 | noncomputable def angularHistory {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) (n : ℕ) : Field := |
| 28 | SlowResidualMatching.swirlRadius C ((asSlowProfiles s).phi n) |
| 29 | |
| 30 | /-- The divergence variable is `V = X β = R² β/2`. -/ |
| 31 | noncomputable def fluxHistory {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) (n : ℕ) : Field := |
| 32 | SlowResidualMatching.toRadius ((asSlowProfiles s).flux n) |
| 33 | |
| 34 | noncomputable def pressureField {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) (n : ℕ) : Field := |
| 35 | SlowResidualMatching.toRadius ((asSlowProfiles s).pressure n) |
| 36 | |
| 37 | /-- The full preceding radial residual, including both viscous terms. -/ |
| 38 | noncomputable def previousOmega {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) (n : ℕ) |
| 39 | (w : ℝ × ℝ) : ℝ := |
| 40 | w.1 ^ 2 / 2 * previousOmegaDivX s.domain |
| 41 | (fun j => (profiles s j).axial) (fun j => (profiles s j).beta) n w |
| 42 | |
| 43 | theorem toRadius_xProfile {S : Set ℝ} (f : EvenProfile S) {w : ℝ × ℝ} |
| 44 | (hw : w.2 ∈ S) : SlowResidualMatching.toRadius (xProfile f) w = f w := by |
| 45 | change f (Real.sqrt (2 * (w.1 ^ 2 / 2)), w.2) = f (w.1, w.2) |
| 46 | rw [show 2 * (w.1 ^ 2 / 2) = w.1 ^ 2 by ring, Real.sqrt_sq_eq_abs] |
| 47 | rcases le_total 0 w.1 with hp | hn |
| 48 | · rw [abs_of_nonneg hp] |
| 49 | · rw [abs_of_nonpos hn, f.even hw] |
| 50 | |
| 51 | theorem axialHistory_eq {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) (n : ℕ) |
| 52 | {w : ℝ × ℝ} (hw : w.2 ∈ S) : axialHistory s n w = (profiles s n).axial w := |
| 53 | toRadius_xProfile _ hw |
| 54 | |
| 55 | theorem angularHistory_eq {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) (n : ℕ) |
| 56 | {w : ℝ × ℝ} (hw : w.2 ∈ S) : angularHistory s n w = angularField C (profiles s n).phi w := by |
| 57 | change w.1 / C * SlowResidualMatching.toRadius (xProfile (profiles s n).phi) w = _ |
| 58 | rw [toRadius_xProfile _ hw] |
| 59 | rfl |
| 60 | |
| 61 | theorem fluxHistory_eq {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) (n : ℕ) |
| 62 | {w : ℝ × ℝ} (hw : w.2 ∈ S) : fluxHistory s n w = w.1 ^ 2 / 2 * (profiles s n).beta w := by |
| 63 | change w.1 ^ 2 / 2 * SlowResidualMatching.toRadius (xProfile (profiles s n).beta) w = _ |
| 64 | rw [toRadius_xProfile _ hw] |
| 65 | |
| 66 | theorem pressureField_eq {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) (n : ℕ) |
| 67 | {w : ℝ × ℝ} (hw : w.2 ∈ S) : pressureField s n w = (profiles s n).pressure w := |
| 68 | toRadius_xProfile _ hw |
| 69 | |
| 70 | theorem axialHistory_smooth {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) (n : ℕ) : |
| 71 | Smooth S (axialHistory s n) := |
| 72 | (profiles s n).axial.smooth.congr (fun _ hw => axialHistory_eq s n hw.2) |
| 73 | |
| 74 | theorem angularHistory_smooth {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) (n : ℕ) : |
| 75 | Smooth S (angularHistory s n) := |
| 76 | (angularField_smooth C (profiles s n).phi).congr |
| 77 | (fun _ hw => angularHistory_eq s n hw.2) |
| 78 | |
| 79 | theorem fluxHistory_smooth {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) (n : ℕ) : |
| 80 | Smooth S (fluxHistory s n) := |
| 81 | (((contDiffOn_fst.pow 2).div_const 2).mul (profiles s n).beta.smooth).congr |
| 82 | (fun _ hw => fluxHistory_eq s n hw.2) |
| 83 | |
| 84 | theorem pressureField_smooth {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) (n : ℕ) : |
| 85 | Smooth S (pressureField s n) := |
| 86 | (profiles s n).pressure.smooth.congr (fun _ hw => pressureField_eq s n hw.2) |
| 87 | |
| 88 | theorem axialHistory_exterior {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) (n : ℕ) : |
| 89 | SlowStressSupport.exterior s.B S (axialHistory s n) := by |
| 90 | intro eta heta R hR |
| 91 | rw [axialHistory_eq s n heta] |
| 92 | exact profiles_axial_exterior s n eta heta R hR |
| 93 | |
| 94 | theorem angularHistory_exterior {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) |
| 95 | {n : ℕ} (hn : 0 < n) : SlowStressSupport.exterior s.B S (angularHistory s n) := by |
| 96 | intro eta heta R hR |
| 97 | rw [angularHistory_eq s n heta] |
| 98 | simp only [angularField, profiles_phi_exterior s hn eta heta R hR, mul_zero] |
| 99 | |
| 100 | theorem fluxHistory_exterior {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) (n : ℕ) : |
| 101 | SlowStressSupport.exterior s.B S (fluxHistory s n) := by |
| 102 | intro eta heta R hR |
| 103 | rw [fluxHistory_eq s n heta, profiles_beta_exterior s n eta heta R hR, mul_zero] |
| 104 | |
| 105 | theorem pressureField_exterior {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) |
| 106 | {n : ℕ} (hn : 0 < n) : SlowStressSupport.exterior s.B S (pressureField s n) := by |
| 107 | intro eta heta R hR |
| 108 | rw [pressureField_eq s n heta] |
| 109 | exact profiles_pressure_exterior s hn eta heta R hR |
| 110 | |
| 111 | theorem previousOmega_exterior {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) (n : ℕ) : |
| 112 | SlowStressSupport.exterior s.B S (previousOmega s n) := by |
| 113 | intro eta heta R hR |
| 114 | have hz := exterior_previousOmegaDivX s.domain |
| 115 | (fun j => (profiles s j).axial) (fun j => (profiles s j).beta) n s.B_pos |
| 116 | (fun j _ => profiles_beta_exterior s j) eta heta R hR |
| 117 | simp only [previousOmega, hz, mul_zero] |
| 118 | |
| 119 | theorem pressureGradient_eq {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) (n : ℕ) |
| 120 | {w : ℝ × ℝ} (hw : w.2 ∈ S) : |
| 121 | PositiveOrderMoments.jointPressureGradient n (angularHistory s) (previousOmega s n) w = |
| 122 | PositiveOrderMoments.jointPressureGradient n |
| 123 | (fun j => angularField C (profiles s j).phi) (previousOmega s n) w := by |
| 124 | simp only [PositiveOrderMoments.jointPressureGradient, PositiveOrderMoments.pressureGradient, |
| 125 | PositiveOrderMoments.cauchy, PositiveAxisSystem.convolution, PositiveOrderMoments.slice, |
| 126 | angularHistory_eq s _ hw] |
| 127 | |
| 128 | theorem pressureGradient_smooth {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) (n : ℕ) : |
| 129 | Smooth S (PositiveOrderMoments.jointPressureGradient n (angularHistory s) (previousOmega s n)) := |
| 130 | (actual_pressureGradient_smooth C (fun j => (profiles s j).phi) |
| 131 | (previousOmegaDivX s.domain (fun j => (profiles s j).axial) (fun j => (profiles s j).beta) n) n).congr |
| 132 | (fun _ hw => pressureGradient_eq s n hw.2) |
| 133 | |
| 134 | theorem pressureField_eq_primitive {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) |
| 135 | {n : ℕ} (hn : 0 < n) {w : ℝ × ℝ} (hw : w.2 ∈ S) : |
| 136 | pressureField s n w = PositiveOrderMoments.pressureHistory n (angularHistory s) (previousOmega s n) w := by |
| 137 | rw [pressureField_eq s n hw] |
| 138 | have he := congrFun (profiles_pressureHistory s hn) w |
| 139 | rw [he] |
| 140 | apply intervalIntegral.integral_congr |
| 141 | intro R _ |
| 142 | exact (pressureGradient_eq s n (w := (R, w.2)) hw).symm |
| 143 | |
| 144 | /-- These are the five rows of the constructed sequence, with its actual |
| 145 | preceding radial residual. -/ |
| 146 | theorem moments_zero {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) {n : ℕ} |
| 147 | (hn : 0 < n) {eta : ℝ} (heta : eta ∈ S) : |
| 148 | PositiveOrderMoments.moments n (PositiveOrderMoments.slice (axialHistory s) eta) |
| 149 | (PositiveOrderMoments.slice (angularHistory s) eta) (fun R => previousOmega s n (R, eta)) = 0 := by |
| 150 | rw [← profiles_moments s hn heta] |
| 151 | apply moments_congr_positive |
| 152 | · intro R _ j |
| 153 | exact axialHistory_eq s j heta |
| 154 | · intro R _ j |
| 155 | exact angularHistory_eq s j heta |
| 156 | · intro R _ |
| 157 | rfl |
| 158 | |
| 159 | theorem rowDensity_exterior {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) {n : ℕ} |
| 160 | (hn : 0 < n) {eta : ℝ} (heta : eta ∈ S) {R : ℝ} (hR : s.B ≤ R) : |
| 161 | PositiveOrderMoments.jointRowDensity n (axialHistory s) (angularHistory s) |
| 162 | (previousOmega s n) (R, eta) = 0 := |
| 163 | PositiveOrderMoments.jointRowDensity_exterior hn _ _ _ _ |
| 164 | (fun j _ => axialHistory_exterior s j eta heta R hR) |
| 165 | (fun _ hj _ => angularHistory_exterior s hj eta heta R hR) |
| 166 | (previousOmega_exterior s n eta heta R hR) |
| 167 | |
| 168 | /-- In particular, pressure integration by parts converts the fifth repaired |
| 169 | row into the actual axial pressure/transport flux moment. -/ |
| 170 | theorem conservative_moments_zero {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) {n : ℕ} |
| 171 | (hn : 0 < n) {eta : ℝ} (heta : eta ∈ S) : |
| 172 | SlowStressSupport.moment s.B 1 (axialHistory s n) eta = 0 ∧ |
| 173 | SlowStressSupport.moment s.B 2 (angularHistory s n) eta = 0 ∧ |
| 174 | SlowStressSupport.moment s.B 2 (SlowStressSupport.conv n (axialHistory s) (angularHistory s)) eta = 0 ∧ |
| 175 | SlowStressSupport.moment s.B 1 |
| 176 | (fun w => SlowStressSupport.conv n (axialHistory s) (axialHistory s) w + pressureField s n w) eta = 0 := by |
| 177 | have hm := SlowStressSupport.repaired_moment_data s.domain.isOpen |
| 178 | (fun j _ => axialHistory_smooth s j) (pressureGradient_smooth s n) s.B_pos.le |
| 179 | (fun _ he _ hr => rowDensity_exterior s hn he hr) |
| 180 | (fun _ he => moments_zero s hn he) heta |
| 181 | refine ⟨hm.1, hm.2.1, hm.2.2.1, ?_⟩ |
| 182 | rw [← hm.2.2.2] |
| 183 | apply intervalIntegral.integral_congr |
| 184 | intro R _ |
| 185 | dsimp only |
| 186 | rw [pressureField_eq_primitive s hn (w := (R, eta)) heta] |
| 187 | |
| 188 | theorem fluxHistory_axis {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) (n : ℕ) |
| 189 | {eta : ℝ} (heta : eta ∈ S) : fluxHistory s n (0, eta) = 0 := by |
| 190 | rw [fluxHistory_eq s n (w := (0, eta)) heta] |
| 191 | simp only [zero_pow (by decide : 2 ≠ 0), zero_div, zero_mul] |
| 192 | |
| 193 | /-- The angular conservative residual has zero actual radial integral. |
| 194 | Differentiation of the zero moments and radial integration by parts are |
| 195 | performed by the imported balance theorem. -/ |
| 196 | theorem angularDensity_moment_zero {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) |
| 197 | {n : ℕ} (hn : 2 ≤ n) {eta : ℝ} (heta : eta ∈ S) : |
| 198 | SlowStressSupport.moment s.B 0 |
| 199 | (SlowStressSupport.angularDensity h n (fluxHistory s) (axialHistory s) (angularHistory s)) eta = 0 := by |
| 200 | have hn0 : 0 < n := by omega |
| 201 | have hprev : 0 < n - 1 := by omega |
| 202 | exact SlowStressSupport.angular_integral_zero s.domain.isOpen |
| 203 | (fun j _ => fluxHistory_smooth s j) (fun j _ => axialHistory_smooth s j) |
| 204 | (fun j _ => angularHistory_smooth s j) h s.B s.domain.denominator |
| 205 | (angularHistory_exterior s hn0) (fun j _ => fluxHistory_exterior s j) |
| 206 | (fun _ he => (conservative_moments_zero s hn0 he).2.1) |
| 207 | (fun _ he => (conservative_moments_zero s hn0 he).2.2.1) |
| 208 | (SlowStressSupport.exterior_conv_left (fun j _ => axialHistory_exterior s j)) |
| 209 | (angularHistory_exterior s hprev) |
| 210 | (fun _ he => (conservative_moments_zero s hprev he).2.1) heta |
| 211 | |
| 212 | theorem axialDensity_moment_zero {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) |
| 213 | {n : ℕ} (hn : 2 ≤ n) {eta : ℝ} (heta : eta ∈ S) : |
| 214 | SlowStressSupport.moment s.B 0 |
| 215 | (SlowStressSupport.axialDensity h n (fluxHistory s) (axialHistory s) (pressureField s n)) eta = 0 := by |
| 216 | have hn0 : 0 < n := by omega |
| 217 | have hprev : 0 < n - 1 := by omega |
| 218 | apply SlowStressSupport.axial_integral_zero s.domain.isOpen |
| 219 | (fun j _ => fluxHistory_smooth s j) (fun j _ => axialHistory_smooth s j) |
| 220 | (pressureField_smooth s n) h s.B s.domain.denominator |
| 221 | (axialHistory_exterior s n) (fun j _ => fluxHistory_exterior s j) |
| 222 | · intro z hz |
| 223 | simp only [SlowStressSupport.conv, fluxHistory_axis s _ hz, zero_mul, Finset.sum_const_zero] |
| 224 | · exact fun _ he => (conservative_moments_zero s hn0 he).1 |
| 225 | · exact fun _ he => (conservative_moments_zero s hn0 he).2.2.2 |
| 226 | · intro z hz |
| 227 | rw [SlowStressSupport.exterior_conv_left (fun j _ => axialHistory_exterior s j) z hz s.B le_rfl, |
| 228 | pressureField_exterior s hn0 z hz s.B le_rfl, zero_add] |
| 229 | · exact axialHistory_exterior s (n - 1) |
| 230 | · exact fun _ he => (conservative_moments_zero s hprev he).1 |
| 231 | · exact heta |
| 232 | |
| 233 | theorem angularDensity_exterior {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) |
| 234 | {n : ℕ} (hn : 2 ≤ n) : |
| 235 | SlowStressSupport.exterior s.B S |
| 236 | (SlowStressSupport.angularDensity h n (fluxHistory s) (axialHistory s) (angularHistory s)) := by |
| 237 | have hn0 : 0 < n := by omega |
| 238 | have hprev : 0 < n - 1 := by omega |
| 239 | exact SlowStressSupport.exterior_angularDensity s.domain.isOpen |
| 240 | (fun j _ => fluxHistory_smooth s j) (fun j _ => axialHistory_smooth s j) |
| 241 | (fun j _ => angularHistory_smooth s j) h s.B |
| 242 | (fun j _ => fluxHistory_exterior s j) (fun j _ => axialHistory_exterior s j) |
| 243 | (angularHistory_exterior s hn0) |
| 244 | (SlowStressSupport.exterior_axialOp2 s.domain.isOpen (angularHistory_smooth s (n - 1)) |
| 245 | (angularHistory_exterior s hprev) h _ s.domain.denominator) |
| 246 | |
| 247 | theorem axialDensity_exterior {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) |
| 248 | {n : ℕ} (hn : 2 ≤ n) : |
| 249 | SlowStressSupport.exterior s.B S |
| 250 | (SlowStressSupport.axialDensity h n (fluxHistory s) (axialHistory s) (pressureField s n)) := by |
| 251 | have hn0 : 0 < n := by omega |
| 252 | exact SlowStressSupport.exterior_axialDensity s.domain.isOpen |
| 253 | (fun j _ => fluxHistory_smooth s j) (fun j _ => axialHistory_smooth s j) |
| 254 | (pressureField_smooth s n) h s.B |
| 255 | (fun j _ => fluxHistory_exterior s j) (fun j _ => axialHistory_exterior s j) |
| 256 | (pressureField_exterior s hn0) |
| 257 | (SlowStressSupport.exterior_axialOp2 s.domain.isOpen (axialHistory_smooth s (n - 1)) |
| 258 | (axialHistory_exterior s (n - 1)) h _ s.domain.denominator) |
| 259 | |
| 260 | /-- At order zero the same divergence reconstruction is the only additional |
| 261 | generic input. At every positive order it is part of the proved recursion. -/ |
| 262 | theorem radial_divergence {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) |
| 263 | (hbase : s.base.beta = betaFromU s.domain 0 s.base.axial) (n : ℕ) |
| 264 | {w : ℝ × ℝ} (hw : w.2 ∈ S) : |
| 265 | SlowStressSupport.dr (fluxHistory s n) w = |
| 266 | -w.1 * SlowStressSupport.axialOp h (SlowStressSupport.orderExponent h n) (axialHistory s n) w := by |
| 267 | have hb : (profiles s n).beta = |
| 268 | betaFromU s.domain (AxisSourceRegularity.slowOrder h n) (profiles s n).axial := by |
| 269 | rcases Nat.eq_zero_or_pos n with rfl | hn |
| 270 | · simpa only [profiles_zero, AxisSourceRegularity.slowOrder, Nat.cast_zero, mul_zero, zero_mul] |
| 271 | using hbase |
| 272 | · exact profiles_beta_eq s hn |
| 273 | have hd := reconstructed_flux_derivative s.domain (AxisSourceRegularity.slowOrder h n) |
| 274 | (profiles s n).axial (R := w.1) hw |
| 275 | rw [← hb] at hd |
| 276 | have hg := SlowStressSupport.radial_hasDerivAt s.domain.isOpen (fluxHistory_smooth s n) hw |
| 277 | have he : (fun R => fluxHistory s n (R, w.2)) = |
| 278 | fun R => R ^ 2 / 2 * (profiles s n).beta (R, w.2) := |
| 279 | funext (fun R => fluxHistory_eq s n (w := (R, w.2)) hw) |
| 280 | rw [he] at hg |
| 281 | rw [hg.unique hd] |
| 282 | have hu : axialHistory s n =ᶠ[𝓝 w] ((profiles s n).axial : Field) := by |
| 283 | filter_upwards [(isOpen_univ.prod s.domain.isOpen).mem_nhds ⟨mem_univ _, hw⟩] with p hp |
| 284 | exact axialHistory_eq s n hp.2 |
| 285 | rw [SlowResidualMatching.axialOp_congr_germ h _ hu] |
| 286 | rfl |
| 287 | |
| 288 | theorem thetaDensity_eq {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) |
| 289 | (hbase : s.base.beta = betaFromU s.domain 0 s.base.axial) {n : ℕ} (hn : 0 < n) : |
| 290 | EqOn (SlowResidualMatching.thetaDensity h C (asSlowProfiles s) n) |
| 291 | (SlowStressSupport.angularDensity h n (fluxHistory s) (axialHistory s) (angularHistory s)) |
| 292 | (region S) := by |
| 293 | apply SlowResidualMatching.thetaDensity_eq_angularDensity s.domain.isOpen h C s.nonzero_scale |
| 294 | (asSlowProfiles s) hn |
| 295 | · exact fun j _ => fluxHistory_smooth s j |
| 296 | · exact fun j _ => axialHistory_smooth s j |
| 297 | · exact fun j _ => angularHistory_smooth s j |
| 298 | · intro w hw hR j _ |
| 299 | exact (xProfile_contDiffAt s.domain.isOpen (profiles s j).phi (w := SlowResidualMatching.radiusPoint w) |
| 300 | (div_pos (sq_pos_of_ne_zero hR) (by norm_num)) hw).of_le |
| 301 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2) |
| 302 | · exact s.domain.denominator |
| 303 | · exact fun _ hw j _ => radial_divergence s hbase j hw |
| 304 | |
| 305 | theorem zDensity_eq {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) |
| 306 | (hbase : s.base.beta = betaFromU s.domain 0 s.base.axial) {n : ℕ} (hn : 0 < n) : |
| 307 | EqOn (SlowResidualMatching.zDensity h (asSlowProfiles s) n) |
| 308 | (SlowStressSupport.axialDensity h n (fluxHistory s) (axialHistory s) (pressureField s n)) |
| 309 | (region S) := by |
| 310 | apply SlowResidualMatching.zDensity_eq_axialDensity s.domain.isOpen h (asSlowProfiles s) hn |
| 311 | · exact fun j _ => fluxHistory_smooth s j |
| 312 | · exact fun j _ => axialHistory_smooth s j |
| 313 | · exact pressureField_smooth s n |
| 314 | · intro w hw hR j _ |
| 315 | exact (xProfile_contDiffAt s.domain.isOpen (profiles s j).axial (w := SlowResidualMatching.radiusPoint w) |
| 316 | (div_pos (sq_pos_of_ne_zero hR) (by norm_num)) hw).of_le |
| 317 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2) |
| 318 | · intro w hw hR |
| 319 | exact (xProfile_contDiffAt s.domain.isOpen (profiles s n).pressure (w := SlowResidualMatching.radiusPoint w) |
| 320 | (div_pos (sq_pos_of_ne_zero hR) (by norm_num)) hw).differentiableAt (by simp) |
| 321 | · exact s.domain.denominator |
| 322 | · exact fun _ hw j _ => radial_divergence s hbase j hw |
| 323 | |
| 324 | theorem thetaDensity_smooth {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) |
| 325 | (hbase : s.base.beta = betaFromU s.domain 0 s.base.axial) {n : ℕ} (hn : 0 < n) : |
| 326 | Smooth S (SlowResidualMatching.thetaDensity h C (asSlowProfiles s) n) := |
| 327 | (SlowStressSupport.smooth_angularDensity s.domain.isOpen |
| 328 | (fun j _ => fluxHistory_smooth s j) (fun j _ => axialHistory_smooth s j) |
| 329 | (fun j _ => angularHistory_smooth s j) h s.domain.denominator).congr (thetaDensity_eq s hbase hn) |
| 330 | |
| 331 | theorem zDensity_smooth {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) |
| 332 | (hbase : s.base.beta = betaFromU s.domain 0 s.base.axial) {n : ℕ} (hn : 0 < n) : |
| 333 | Smooth S (SlowResidualMatching.zDensity h (asSlowProfiles s) n) := |
| 334 | (SlowStressSupport.smooth_axialDensity s.domain.isOpen |
| 335 | (fun j _ => fluxHistory_smooth s j) (fun j _ => axialHistory_smooth s j) |
| 336 | (pressureField_smooth s n) h s.domain.denominator).congr (zDensity_eq s hbase hn) |
| 337 | |
| 338 | /-- Cancellation of the actual coefficient density, not an assumed moment |
| 339 | of an abstract source. -/ |
| 340 | theorem thetaDensity_moment_zero {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) |
| 341 | (hbase : s.base.beta = betaFromU s.domain 0 s.base.axial) {n : ℕ} (hn : 2 ≤ n) |
| 342 | {eta : ℝ} (heta : eta ∈ S) : |
| 343 | SlowStressSupport.moment s.B 0 (SlowResidualMatching.thetaDensity h C (asSlowProfiles s) n) eta = 0 := by |
| 344 | rw [← angularDensity_moment_zero s hn heta] |
| 345 | apply intervalIntegral.integral_congr |
| 346 | intro R _ |
| 347 | dsimp only |
| 348 | rw [thetaDensity_eq s hbase (by omega : 0 < n) ⟨mem_univ R, heta⟩] |
| 349 | |
| 350 | theorem zDensity_moment_zero {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) |
| 351 | (hbase : s.base.beta = betaFromU s.domain 0 s.base.axial) {n : ℕ} (hn : 2 ≤ n) |
| 352 | {eta : ℝ} (heta : eta ∈ S) : |
| 353 | SlowStressSupport.moment s.B 0 (SlowResidualMatching.zDensity h (asSlowProfiles s) n) eta = 0 := by |
| 354 | rw [← axialDensity_moment_zero s hn heta] |
| 355 | apply intervalIntegral.integral_congr |
| 356 | intro R _ |
| 357 | dsimp only |
| 358 | rw [zDensity_eq s hbase (by omega : 0 < n) ⟨mem_univ R, heta⟩] |
| 359 | |
| 360 | theorem thetaDensity_exterior {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) |
| 361 | (hbase : s.base.beta = betaFromU s.domain 0 s.base.axial) {n : ℕ} (hn : 2 ≤ n) : |
| 362 | SlowStressSupport.exterior s.B S (SlowResidualMatching.thetaDensity h C (asSlowProfiles s) n) := by |
| 363 | intro eta heta R hR |
| 364 | rw [thetaDensity_eq s hbase (by omega : 0 < n) ⟨mem_univ R, heta⟩] |
| 365 | exact angularDensity_exterior s hn eta heta R hR |
| 366 | |
| 367 | theorem zDensity_exterior {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) |
| 368 | (hbase : s.base.beta = betaFromU s.domain 0 s.base.axial) {n : ℕ} (hn : 2 ≤ n) : |
| 369 | SlowStressSupport.exterior s.B S (SlowResidualMatching.zDensity h (asSlowProfiles s) n) := by |
| 370 | intro eta heta R hR |
| 371 | rw [zDensity_eq s hbase (by omega : 0 < n) ⟨mem_univ R, heta⟩] |
| 372 | exact axialDensity_exterior s hn eta heta R hR |
| 373 | |
| 374 | theorem thetaDensity_integrableOn {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) |
| 375 | (hbase : s.base.beta = betaFromU s.domain 0 s.base.axial) {n : ℕ} (hn : 2 ≤ n) |
| 376 | {eta : ℝ} (heta : eta ∈ S) : |
| 377 | IntegrableOn (fun R => SlowResidualMatching.thetaDensity h C (asSlowProfiles s) n (R, eta)) (Ioi 0) := |
| 378 | PositiveOrderMoments.positive_integrableOn_of_compact |
| 379 | (SlowStressSupport.slice_smooth (thetaDensity_smooth s hbase (by omega : 0 < n)) heta).continuous.continuousOn |
| 380 | (thetaDensity_exterior s hbase hn eta heta) |
| 381 | |
| 382 | theorem zDensity_integrableOn {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) |
| 383 | (hbase : s.base.beta = betaFromU s.domain 0 s.base.axial) {n : ℕ} (hn : 2 ≤ n) |
| 384 | {eta : ℝ} (heta : eta ∈ S) : |
| 385 | IntegrableOn (fun R => SlowResidualMatching.zDensity h (asSlowProfiles s) n (R, eta)) (Ioi 0) := |
| 386 | PositiveOrderMoments.positive_integrableOn_of_compact |
| 387 | (SlowStressSupport.slice_smooth (zDensity_smooth s hbase (by omega : 0 < n)) heta).continuous.continuousOn |
| 388 | (zDensity_exterior s hbase hn eta heta) |
| 389 | |
| 390 | theorem thetaDensity_positive_integral_zero {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) |
| 391 | (hbase : s.base.beta = betaFromU s.domain 0 s.base.axial) {n : ℕ} (hn : 2 ≤ n) |
| 392 | {eta : ℝ} (heta : eta ∈ S) : |
| 393 | (∫ R in Ioi (0 : ℝ), SlowResidualMatching.thetaDensity h C (asSlowProfiles s) n (R, eta)) = 0 := by |
| 394 | have he := SlowStressSupport.moment_eq_positive s.B_pos.le (thetaDensity_exterior s hbase hn) heta 0 |
| 395 | simp only [pow_zero, one_mul, thetaDensity_moment_zero s hbase hn heta] at he |
| 396 | exact he.symm |
| 397 | |
| 398 | theorem zDensity_positive_integral_zero {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) |
| 399 | (hbase : s.base.beta = betaFromU s.domain 0 s.base.axial) {n : ℕ} (hn : 2 ≤ n) |
| 400 | {eta : ℝ} (heta : eta ∈ S) : |
| 401 | (∫ R in Ioi (0 : ℝ), SlowResidualMatching.zDensity h (asSlowProfiles s) n (R, eta)) = 0 := by |
| 402 | have he := SlowStressSupport.moment_eq_positive s.B_pos.le (zDensity_exterior s hbase hn) heta 0 |
| 403 | simp only [pow_zero, one_mul, zDensity_moment_zero s hbase hn heta] at he |
| 404 | exact he.symm |
| 405 | |
| 406 | /-- Both canonical negative radial primitives have the same exterior |
| 407 | radius for all `n ≥ 2`. There is no output-support hypothesis. -/ |
| 408 | theorem raw_stresses_exterior {S : Set ℝ} {h C : ℝ} (s : Scheme S h C) |
| 409 | (hbase : s.base.beta = betaFromU s.domain 0 s.base.axial) {n : ℕ} (hn : 2 ≤ n) : |
| 410 | Exterior s.B S (SlowStressSupport.stress 2 (SlowResidualMatching.thetaDensity h C (asSlowProfiles s) n)) ∧ |
| 411 | Exterior s.B S (SlowStressSupport.stress 1 (SlowResidualMatching.zDensity h (asSlowProfiles s) n)) := by |
| 412 | constructor |
| 413 | · intro eta heta R hR |
| 414 | exact SlowStressSupport.stress_exterior 2 s.B_pos.le (thetaDensity_exterior s hbase hn) |
| 415 | (fun _ he => thetaDensity_moment_zero s hbase hn he) hR heta |
| 416 | · intro eta heta R hR |
| 417 | exact SlowStressSupport.stress_exterior 1 s.B_pos.le (zDensity_exterior s hbase hn) |
| 418 | (fun _ he => zDensity_moment_zero s hbase hn he) hR heta |
| 419 | |
| 420 | section Nominal |
| 421 | |
| 422 | open AssembledSlowBase |
| 423 | |
| 424 | variable {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 425 | |
| 426 | /-- The nominal scheme uses the actual mass reconstruction already at |
| 427 | order zero, so the generic extra input is discharged definitionally. -/ |
| 428 | theorem nominal_base_beta : (nominalScheme W).base.beta = |
| 429 | betaFromU (nominalScheme W).domain 0 (nominalScheme W).base.axial := rfl |
| 430 | |
| 431 | theorem nominal_stresses_exterior {n : ℕ} (hn : 2 ≤ n) : |
| 432 | Exterior (nominalOuterRadius W) (nominalParameters W) |
| 433 | (SlowStressSupport.stress 2 (SlowResidualMatching.thetaDensity F.data.h W.axis.normalization |
| 434 | (asSlowProfiles (nominalScheme W)) n)) ∧ |
| 435 | Exterior (nominalOuterRadius W) (nominalParameters W) |
| 436 | (SlowStressSupport.stress 1 (SlowResidualMatching.zDensity F.data.h |
| 437 | (asSlowProfiles (nominalScheme W)) n)) := |
| 438 | raw_stresses_exterior (nominalScheme W) (nominal_base_beta W) hn |
| 439 | |
| 440 | theorem nominal_density_integrals_zero {n : ℕ} (hn : 2 ≤ n) |
| 441 | {eta : ℝ} (heta : eta ∈ nominalParameters W) : |
| 442 | (∫ R in Ioi (0 : ℝ), SlowResidualMatching.thetaDensity F.data.h W.axis.normalization |
| 443 | (asSlowProfiles (nominalScheme W)) n (R, eta)) = 0 ∧ |
| 444 | (∫ R in Ioi (0 : ℝ), SlowResidualMatching.zDensity F.data.h |
| 445 | (asSlowProfiles (nominalScheme W)) n (R, eta)) = 0 := |
| 446 | ⟨thetaDensity_positive_integral_zero (nominalScheme W) (nominal_base_beta W) hn heta, |
| 447 | zDensity_positive_integral_zero (nominalScheme W) (nominal_base_beta W) hn heta⟩ |
| 448 | |
| 449 | /-- The actual globally smooth coefficients vanish outside the fixed outer |
| 450 | radius for every parameter, including outside the physical parameter strip. -/ |
| 451 | theorem nominalCoefficients_stress_zero_right {n : ℕ} (hn : 2 ≤ n) |
| 452 | {p : ℝ × ℝ} (hX : nominalOuterX W ≤ p.1) : |
| 453 | (nominalCoefficients W).stressTheta n p = 0 ∧ (nominalCoefficients W).stressAxial n p = 0 := by |
| 454 | have hs := nominal_stresses_exterior W hn |
| 455 | apply coefficients_stress_zero_right (nominalLocalization W) (nominalBaseAgreement W) |
| 456 | (nominalZeroOrder W) (nominalParameters_contains W) n (nominalOuterRadius_pos W).le hs.1 hs.2 |
| 457 | simpa only [nominalOuterRadius_square] using hX |
| 458 | |
| 459 | /-- One compact rectangle contains both stress supports for the entire |
| 460 | higher-order family. Its radial lower edge is strictly positive. -/ |
| 461 | theorem nominalCoefficients_stress_support {n : ℕ} (hn : 2 ≤ n) : |
| 462 | tsupport (fun p => ((nominalCoefficients W).stressTheta n p, |
| 463 | (nominalCoefficients W).stressAxial n p)) ⊆ |
| 464 | Icc (nominalInner W / 8) (nominalOuterX W) ×ˢ |
| 465 | Icc (-(commonWindow (nominalScheme W) (nominalParameters_contains W)).outer) |
| 466 | (commonWindow (nominalScheme W) (nominalParameters_contains W)).outer := by |
| 467 | have hs := nominal_stresses_exterior W hn |
| 468 | have h := coefficients_stress_support (nominalLocalization W) (nominalBaseAgreement W) |
| 469 | (nominalZeroOrder W) (nominalParameters_contains W) n (nominalOuterRadius_pos W).le hs.1 hs.2 |
| 470 | simp only [nominalOuterRadius_square] at h |
| 471 | exact h |
| 472 | |
| 473 | theorem nominalCoefficients_stress_compactSupport {n : ℕ} (hn : 2 ≤ n) : |
| 474 | HasCompactSupport (fun p => ((nominalCoefficients W).stressTheta n p, |
| 475 | (nominalCoefficients W).stressAxial n p)) := |
| 476 | (isCompact_Icc.prod isCompact_Icc).of_isClosed_subset isClosed_closure |
| 477 | (nominalCoefficients_stress_support W hn) |
| 478 | |
| 479 | end Nominal |
| 480 | |
| 481 | end NavierStokes.GlobalStressSupport |