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 | import NavierStokes.LeadingStress |
| 3 | |
| 4 | /-! |
| 5 | # The canonical zeroth stress is the explicit leading stress |
| 6 | |
| 7 | The weighted stresses have regular primitives through the axis. Their actual |
| 8 | derivatives are the negative weighted residuals, so the lower integration |
| 9 | endpoint fixes the constant and identifies the constructed stress. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace NavierStokes.ZerothStressIdentity |
| 15 | |
| 16 | open Set Filter MeasureTheory ProfileHistories |
| 17 | open SimilarityProfile (InnerPoint InnerProfile partialX partialEta T Z) |
| 18 | open SlowExpansionResidual |
| 19 | open scoped Topology ContDiff BigOperators |
| 20 | |
| 21 | |
| 22 | variable {Ω : RadialDomain} (P : Profiles Ω) |
| 23 | |
| 24 | noncomputable def leadingProfiles (h C : ℝ) : SlowProfiles where |
| 25 | phi := NaturalCoefficientBridge.zeroSequence (fun w => C * P.f w) |
| 26 | axial := NaturalCoefficientBridge.zeroSequence P.U |
| 27 | flux := NaturalCoefficientBridge.zeroSequence (SlowDivergence.radialFlux h 0 P.U) |
| 28 | pressure := NaturalCoefficientBridge.zeroSequence P.pressure |
| 29 | |
| 30 | theorem T_const_mul (h b C : ℝ) {f : InnerProfile} {w : InnerPoint} |
| 31 | (hf : DifferentiableAt ℝ f w) : T h b (fun p => C * f p) w = C * T h b f w := by |
| 32 | simp only [T, CoordinateAlgebra.timeCoeff, |
| 33 | NaturalCoefficientBridge.partialX_const_mul C hf, |
| 34 | NaturalCoefficientBridge.partialEta_const_mul C hf] |
| 35 | ring |
| 36 | |
| 37 | theorem Z_const_mul (h b C : ℝ) {f : InnerProfile} {w : InnerPoint} |
| 38 | (hf : DifferentiableAt ℝ f w) : Z h b (fun p => C * f p) w = C * Z h b f w := by |
| 39 | simp only [Z, CoordinateAlgebra.axialCoeff, |
| 40 | NaturalCoefficientBridge.partialX_const_mul C hf, |
| 41 | NaturalCoefficientBridge.partialEta_const_mul C hf] |
| 42 | ring |
| 43 | |
| 44 | theorem leading_angular_coefficient (h C : ℝ) {w : InnerPoint} (hw : w ∈ Ω.carrier) |
| 45 | (hX : w.1 ≠ 0) (hf : P.f w ≠ 0) (hL : CoordinateAlgebra.L h w.2 ≠ 0) : |
| 46 | angularCoefficient h (leadingProfiles P h C) 0 w = |
| 47 | C * (-P.f w * LeadingStress.sourceTheta P h w / CoordinateAlgebra.L h w.2 - |
| 48 | 2 * (w.1 * partialX (partialX P.f) w + 2 * partialX P.f w)) := by |
| 49 | have hs := P.f_smooth.contDiffAt (Ω.isOpen.mem_nhds hw) |
| 50 | have hd := hs.differentiableAt (by simp) |
| 51 | rw [NaturalCoefficientBridge.angular_zero_formula] |
| 52 | simp only [leadingProfiles, NaturalCoefficientBridge.zeroSequence, ↓reduceIte, |
| 53 | T_const_mul h (angularExponent h) C hd, Z_const_mul h (angularExponent h) C hd, |
| 54 | NaturalCoefficientBridge.partialX_const_mul C hd, NaturalCoefficientBridge.secondX_const_mul C hs] |
| 55 | have he := LeadingStress.theta_transport_coefficient P h hw hX hf hL |
| 56 | simp only [angularExponent] at ⊢ |
| 57 | linear_combination C * he |
| 58 | |
| 59 | theorem leading_axial_coefficient (h C : ℝ) {w : InnerPoint} (hw : w ∈ Ω.carrier) |
| 60 | (hL : CoordinateAlgebra.L h w.2 ≠ 0) : |
| 61 | axialCoefficient h (leadingProfiles P h C) 0 w = |
| 62 | -LeadingStress.sourceAxial P h w / CoordinateAlgebra.L h w.2 - |
| 63 | 2 * (w.1 * partialX (partialX P.U) w + partialX P.U w) := by |
| 64 | rw [NaturalCoefficientBridge.axial_zero_formula] |
| 65 | simp only [leadingProfiles, NaturalCoefficientBridge.zeroSequence, ↓reduceIte] |
| 66 | have he := LeadingStress.axial_transport_coefficient P h hw hL |
| 67 | simp only [axialExponent, pressureExponent] at ⊢ |
| 68 | linear_combination he |
| 69 | |
| 70 | /-- Regular formula for R² times the angular stress, with no inverse X. -/ |
| 71 | noncomputable def weightedTheta (h R eta : ℝ) : ℝ := |
| 72 | primitive (P.angularSource h) (R ^ 2 / 2, eta) / CoordinateAlgebra.L h eta + |
| 73 | R ^ 4 * partialX P.f (R ^ 2 / 2, eta) |
| 74 | |
| 75 | /-- Regular formula for R times the axial stress. -/ |
| 76 | noncomputable def weightedAxial (h R eta : ℝ) : ℝ := |
| 77 | primitive (P.axialSource h) (R ^ 2 / 2, eta) / CoordinateAlgebra.L h eta + |
| 78 | R ^ 2 * partialX P.U (R ^ 2 / 2, eta) |
| 79 | |
| 80 | @[simp] theorem weightedTheta_zero (h eta : ℝ) : weightedTheta P h 0 eta = 0 := by |
| 81 | simp [weightedTheta, primitive_at_axis] |
| 82 | |
| 83 | @[simp] theorem weightedAxial_zero (h eta : ℝ) : weightedAxial P h 0 eta = 0 := by |
| 84 | simp [weightedAxial, primitive_at_axis] |
| 85 | |
| 86 | theorem square_half_hasDerivAt (R : ℝ) : HasDerivAt (fun r : ℝ => r ^ 2 / 2) R R := by |
| 87 | convert! ((hasDerivAt_id R).pow 2).div_const 2 using 1 |
| 88 | simp only [id_eq] |
| 89 | ring |
| 90 | |
| 91 | theorem weightedTheta_hasDerivAt (h : ℝ) {R eta : ℝ} |
| 92 | (hw : (R ^ 2 / 2, eta) ∈ Ω.carrier) : |
| 93 | HasDerivAt (fun r => weightedTheta P h r eta) |
| 94 | (R * P.angularSource h (R ^ 2 / 2, eta) / CoordinateAlgebra.L h eta + |
| 95 | 4 * R ^ 3 * partialX P.f (R ^ 2 / 2, eta) + |
| 96 | R ^ 5 * partialX (partialX P.f) (R ^ 2 / 2, eta)) R := by |
| 97 | have hprim := (primitive_hasDerivAt Ω (P.angularSource_smooth h) hw).comp R (square_half_hasDerivAt R) |
| 98 | have hfx := (LeadingStress.partialX_hasDerivAt |
| 99 | (((radialPartial_smooth Ω P.f_smooth).contDiffAt (Ω.isOpen.mem_nhds hw)).differentiableAt (by simp))).comp R |
| 100 | (square_half_hasDerivAt R) |
| 101 | change HasDerivAt ((fun x => partialX P.f (x, eta)) ∘ fun r => r ^ 2 / 2) |
| 102 | (partialX (partialX P.f) (R ^ 2 / 2, eta) * R) R at hfx |
| 103 | have hd := (hprim.div_const (CoordinateAlgebra.L h eta)).add (((hasDerivAt_id R).pow 4).mul hfx) |
| 104 | convert! hd using 1 |
| 105 | dsimp [weightedTheta, Function.comp_def] |
| 106 | ring |
| 107 | |
| 108 | theorem weightedAxial_hasDerivAt (h : ℝ) {R eta : ℝ} |
| 109 | (hw : (R ^ 2 / 2, eta) ∈ Ω.carrier) : |
| 110 | HasDerivAt (fun r => weightedAxial P h r eta) |
| 111 | (R * P.axialSource h (R ^ 2 / 2, eta) / CoordinateAlgebra.L h eta + |
| 112 | 2 * R * partialX P.U (R ^ 2 / 2, eta) + |
| 113 | R ^ 3 * partialX (partialX P.U) (R ^ 2 / 2, eta)) R := by |
| 114 | have hprim := (primitive_hasDerivAt Ω (P.axialSource_smooth h) hw).comp R (square_half_hasDerivAt R) |
| 115 | have hux := (LeadingStress.partialX_hasDerivAt |
| 116 | (((radialPartial_smooth Ω P.U_smooth).contDiffAt (Ω.isOpen.mem_nhds hw)).differentiableAt (by simp))).comp R |
| 117 | (square_half_hasDerivAt R) |
| 118 | change HasDerivAt ((fun x => partialX P.U (x, eta)) ∘ fun r => r ^ 2 / 2) |
| 119 | (partialX (partialX P.U) (R ^ 2 / 2, eta) * R) R at hux |
| 120 | have hd := (hprim.div_const (CoordinateAlgebra.L h eta)).add (((hasDerivAt_id R).pow 2).mul hux) |
| 121 | convert! hd using 1 |
| 122 | dsimp [weightedAxial, Function.comp_def] |
| 123 | ring |
| 124 | |
| 125 | theorem weightedTheta_eq (h : ℝ) {R eta : ℝ} (hR : 0 < R) |
| 126 | (hf : P.f (R ^ 2 / 2, eta) ≠ 0) (hL : CoordinateAlgebra.L h eta ≠ 0) : |
| 127 | weightedTheta P h R eta = R ^ 2 * LeadingStress.theta P h (R ^ 2 / 2, eta) := by |
| 128 | unfold weightedTheta LeadingStress.theta Profiles.angularLag Profiles.H |
| 129 | dsimp only |
| 130 | field_simp |
| 131 | |
| 132 | theorem weightedAxial_eq (h : ℝ) {R eta : ℝ} (hR : 0 < R) |
| 133 | (hL : CoordinateAlgebra.L h eta ≠ 0) : |
| 134 | weightedAxial P h R eta = R * LeadingStress.axial P h (R ^ 2 / 2, eta) := by |
| 135 | unfold weightedAxial LeadingStress.axial Profiles.axialLag |
| 136 | dsimp only |
| 137 | rw [show 2 * (R ^ 2 / 2) = R ^ 2 by ring, Real.sqrt_sq hR.le] |
| 138 | field_simp ; ring |
| 139 | |
| 140 | theorem leading_thetaDensity (h C : ℝ) (hC : C ≠ 0) {R eta : ℝ} (hR : 0 < R) |
| 141 | (hw : (R ^ 2 / 2, eta) ∈ Ω.carrier) (hf : P.f (R ^ 2 / 2, eta) ≠ 0) |
| 142 | (hL : CoordinateAlgebra.L h eta ≠ 0) : |
| 143 | SlowResidualMatching.thetaDensity h C (leadingProfiles P h C) 0 (R, eta) = |
| 144 | -(R * P.angularSource h (R ^ 2 / 2, eta) / CoordinateAlgebra.L h eta + |
| 145 | 4 * R ^ 3 * partialX P.f (R ^ 2 / 2, eta) + |
| 146 | R ^ 5 * partialX (partialX P.f) (R ^ 2 / 2, eta)) := by |
| 147 | unfold SlowResidualMatching.thetaDensity SlowResidualMatching.radiusPoint |
| 148 | rw [leading_angular_coefficient P h C hw (by positivity) hf hL] |
| 149 | unfold LeadingStress.sourceTheta Profiles.H |
| 150 | dsimp only |
| 151 | field_simp ; ring |
| 152 | |
| 153 | theorem leading_zDensity (h C : ℝ) {R eta : ℝ} |
| 154 | (hw : (R ^ 2 / 2, eta) ∈ Ω.carrier) (hL : CoordinateAlgebra.L h eta ≠ 0) : |
| 155 | SlowResidualMatching.zDensity h (leadingProfiles P h C) 0 (R, eta) = |
| 156 | -(R * P.axialSource h (R ^ 2 / 2, eta) / CoordinateAlgebra.L h eta + |
| 157 | 2 * R * partialX P.U (R ^ 2 / 2, eta) + |
| 158 | R ^ 3 * partialX (partialX P.U) (R ^ 2 / 2, eta)) := by |
| 159 | unfold SlowResidualMatching.zDensity SlowResidualMatching.radiusPoint |
| 160 | rw [leading_axial_coefficient P h C hw hL] |
| 161 | unfold LeadingStress.sourceAxial |
| 162 | dsimp only |
| 163 | ring |
| 164 | |
| 165 | /-- FTC determines the constant of the canonical negative primitive from |
| 166 | the actual zero-axis value of the weighted potential. -/ |
| 167 | theorem stress_eq_of_weighted_derivative (m : ℕ) (F : InnerProfile) (G : ℝ → ℝ) |
| 168 | {R eta : ℝ} (hR : 0 < R) (hG : ContinuousOn G (Icc 0 R)) (hG0 : G 0 = 0) |
| 169 | (hD : ∀ r ∈ Ioo 0 R, HasDerivAt G (-F (r, eta)) r) |
| 170 | (hF : IntervalIntegrable (fun r => F (r, eta)) volume 0 R) : |
| 171 | SlowStressSupport.stress m F (R, eta) = G R / R ^ m := by |
| 172 | have hi := intervalIntegral.integral_eq_sub_of_hasDerivAt_of_le hR.le hG hD hF.neg |
| 173 | rw [intervalIntegral.integral_neg, hG0, sub_zero] at hi |
| 174 | rw [SlowStressSupport.stress_of_pos m F hR] |
| 175 | change -(∫ r in (0 : ℝ)..R, F (r, eta)) / R ^ m = _ |
| 176 | rw [hi] |
| 177 | |
| 178 | theorem weightedTheta_continuous (h : ℝ) {eta : ℝ} |
| 179 | (hD : ∀ X, 0 ≤ X → (X, eta) ∈ Ω.carrier) : |
| 180 | Continuous (fun R => weightedTheta P h R eta) := by |
| 181 | apply continuous_iff_continuousAt.mpr |
| 182 | intro R |
| 183 | exact (weightedTheta_hasDerivAt P h (hD (R ^ 2 / 2) (by positivity))).continuousAt |
| 184 | |
| 185 | theorem weightedAxial_continuous (h : ℝ) {eta : ℝ} |
| 186 | (hD : ∀ X, 0 ≤ X → (X, eta) ∈ Ω.carrier) : |
| 187 | Continuous (fun R => weightedAxial P h R eta) := by |
| 188 | apply continuous_iff_continuousAt.mpr |
| 189 | intro R |
| 190 | exact (weightedAxial_hasDerivAt P h (hD (R ^ 2 / 2) (by positivity))).continuousAt |
| 191 | |
| 192 | /-! ## A scheme whose actual order-zero fields come from P -/ |
| 193 | |
| 194 | theorem scheme_leading_germs {S : Set ℝ} {h C : ℝ} |
| 195 | (s : GlobalSlowProfiles.Scheme S h C) |
| 196 | (hD : ∀ X, 0 ≤ X → ∀ eta ∈ S, (X, eta) ∈ Ω.carrier) |
| 197 | (hbase : s.base = AssembledSlowBase.baseFields s.domain C P hD) |
| 198 | {p : InnerPoint} (hX : 0 < p.1) (heta : p.2 ∈ S) : |
| 199 | (GlobalSlowProfiles.asSlowProfiles s).phi 0 =ᶠ[𝓝 p] (leadingProfiles P h C).phi 0 ∧ |
| 200 | (GlobalSlowProfiles.asSlowProfiles s).axial 0 =ᶠ[𝓝 p] (leadingProfiles P h C).axial 0 ∧ |
| 201 | (GlobalSlowProfiles.asSlowProfiles s).flux 0 =ᶠ[𝓝 p] (leadingProfiles P h C).flux 0 ∧ |
| 202 | (GlobalSlowProfiles.asSlowProfiles s).pressure 0 =ᶠ[𝓝 p] (leadingProfiles P h C).pressure 0 := by |
| 203 | have hn := (isOpen_Ioi.prod s.domain.isOpen).mem_nhds (show p ∈ Ioi 0 ×ˢ S from ⟨hX, heta⟩) |
| 204 | refine ⟨?_, ?_, ?_, ?_⟩ |
| 205 | · filter_upwards [hn] with q hq |
| 206 | change GlobalSlowProfiles.xProfile (GlobalSlowProfiles.profiles s 0).phi q = C * P.f q |
| 207 | rw [GlobalSlowProfiles.profiles_zero, hbase] |
| 208 | exact AssembledSlowBase.baseFields_phi s.domain C P hD hq.1.le |
| 209 | · filter_upwards [hn] with q hq |
| 210 | change GlobalSlowProfiles.xProfile (GlobalSlowProfiles.profiles s 0).axial q = P.U q |
| 211 | rw [GlobalSlowProfiles.profiles_zero, hbase] |
| 212 | exact AssembledSlowBase.baseFields_axial s.domain C P hD hq.1.le |
| 213 | · filter_upwards [hn] with q hq |
| 214 | change q.1 * GlobalSlowProfiles.xProfile (GlobalSlowProfiles.profiles s 0).beta q = |
| 215 | SlowDivergence.radialFlux h 0 P.U q |
| 216 | rw [GlobalSlowProfiles.profiles_zero, hbase, |
| 217 | AssembledSlowBase.baseFields_beta_value s.domain C P hD hq.1 hq.2] |
| 218 | have hqX : 0 < q.1 := hq.1 |
| 219 | field_simp [hqX.ne'] |
| 220 | · filter_upwards [hn] with q hq |
| 221 | change GlobalSlowProfiles.xProfile (GlobalSlowProfiles.profiles s 0).pressure q = P.pressure q |
| 222 | rw [GlobalSlowProfiles.profiles_zero, hbase] |
| 223 | exact AssembledSlowBase.baseFields_pressure s.domain C P hD hq.1.le |
| 224 | |
| 225 | theorem scheme_zero_coefficients_eq {S : Set ℝ} {h C : ℝ} |
| 226 | (s : GlobalSlowProfiles.Scheme S h C) |
| 227 | (hD : ∀ X, 0 ≤ X → ∀ eta ∈ S, (X, eta) ∈ Ω.carrier) |
| 228 | (hbase : s.base = AssembledSlowBase.baseFields s.domain C P hD) |
| 229 | {p : InnerPoint} (hX : 0 < p.1) (heta : p.2 ∈ S) : |
| 230 | angularCoefficient h (GlobalSlowProfiles.asSlowProfiles s) 0 p = |
| 231 | angularCoefficient h (leadingProfiles P h C) 0 p ∧ |
| 232 | axialCoefficient h (GlobalSlowProfiles.asSlowProfiles s) 0 p = |
| 233 | axialCoefficient h (leadingProfiles P h C) 0 p := by |
| 234 | have he := scheme_leading_germs P s hD hbase hX heta |
| 235 | have hphi : ∀ j ≤ 0, (GlobalSlowProfiles.asSlowProfiles s).phi j =ᶠ[𝓝 p] |
| 236 | (leadingProfiles P h C).phi j := by |
| 237 | intro j hj |
| 238 | have hj0 : j = 0 := Nat.eq_zero_of_le_zero hj |
| 239 | simpa only [hj0] using he.1 |
| 240 | have hu : ∀ j ≤ 0, (GlobalSlowProfiles.asSlowProfiles s).axial j =ᶠ[𝓝 p] |
| 241 | (leadingProfiles P h C).axial j := by |
| 242 | intro j hj |
| 243 | have hj0 : j = 0 := Nat.eq_zero_of_le_zero hj |
| 244 | simpa only [hj0] using he.2.1 |
| 245 | have hv : ∀ j ≤ 0, (GlobalSlowProfiles.asSlowProfiles s).flux j =ᶠ[𝓝 p] |
| 246 | (leadingProfiles P h C).flux j := by |
| 247 | intro j hj |
| 248 | have hj0 : j = 0 := Nat.eq_zero_of_le_zero hj |
| 249 | simpa only [hj0] using he.2.2.1 |
| 250 | exact ⟨SlowResidualMatching.angularCoefficient_congr_germ h 0 hv hu hphi, |
| 251 | SlowResidualMatching.axialCoefficient_congr_germ h 0 hv hu he.2.2.2⟩ |
| 252 | |
| 253 | theorem scheme_zero_densities_eq {S : Set ℝ} {h C : ℝ} |
| 254 | (s : GlobalSlowProfiles.Scheme S h C) |
| 255 | (hD : ∀ X, 0 ≤ X → ∀ eta ∈ S, (X, eta) ∈ Ω.carrier) |
| 256 | (hbase : s.base = AssembledSlowBase.baseFields s.domain C P hD) |
| 257 | (R : ℝ) {eta : ℝ} (heta : eta ∈ S) : |
| 258 | SlowResidualMatching.thetaDensity h C (GlobalSlowProfiles.asSlowProfiles s) 0 (R, eta) = |
| 259 | SlowResidualMatching.thetaDensity h C (leadingProfiles P h C) 0 (R, eta) ∧ |
| 260 | SlowResidualMatching.zDensity h (GlobalSlowProfiles.asSlowProfiles s) 0 (R, eta) = |
| 261 | SlowResidualMatching.zDensity h (leadingProfiles P h C) 0 (R, eta) := by |
| 262 | by_cases hR : R = 0 |
| 263 | · subst R |
| 264 | simp [SlowResidualMatching.thetaDensity, SlowResidualMatching.zDensity] |
| 265 | have he := scheme_zero_coefficients_eq P s hD hbase (p := (R ^ 2 / 2, eta)) |
| 266 | (div_pos (sq_pos_of_ne_zero hR) (by norm_num)) heta |
| 267 | simp only [SlowResidualMatching.thetaDensity, SlowResidualMatching.zDensity, |
| 268 | SlowResidualMatching.radiusPoint, he.1, he.2, and_self] |
| 269 | |
| 270 | section Canonical |
| 271 | |
| 272 | variable {S : Set ℝ} {h C rho core : ℝ} {U : Set ℂ} |
| 273 | {base : Fin 5 → InnerProfile} {s : GlobalSlowProfiles.Scheme S h C} |
| 274 | {A : SlowRecursion.LocalHierarchy rho U h C base} |
| 275 | (L : GlobalSlowProfiles.Localization s A core) |
| 276 | (B0 : GlobalSlowProfiles.BaseAgreement s A core) |
| 277 | (Z0 : AssembledSlowBase.ZeroOrderSolved s core) |
| 278 | |
| 279 | include L B0 Z0 |
| 280 | |
| 281 | theorem raw_stresses_eq |
| 282 | (hD : ∀ X, 0 ≤ X → ∀ eta ∈ S, (X, eta) ∈ Ω.carrier) |
| 283 | (hbase : s.base = AssembledSlowBase.baseFields s.domain C P hD) |
| 284 | {R eta : ℝ} (hR : 0 < R) (heta : eta ∈ S) |
| 285 | (hf : ∀ X, 0 < X → X ≤ R ^ 2 / 2 → P.f (X, eta) ≠ 0) : |
| 286 | SlowStressSupport.stress 2 |
| 287 | (SlowResidualMatching.thetaDensity h C (GlobalSlowProfiles.asSlowProfiles s) 0) (R, eta) = |
| 288 | LeadingStress.theta P h (R ^ 2 / 2, eta) ∧ |
| 289 | SlowStressSupport.stress 1 |
| 290 | (SlowResidualMatching.zDensity h (GlobalSlowProfiles.asSlowProfiles s) 0) (R, eta) = |
| 291 | LeadingStress.axial P h (R ^ 2 / 2, eta) := by |
| 292 | have hL : CoordinateAlgebra.L h eta ≠ 0 := s.domain.denominator eta heta |
| 293 | have hslice : ∀ X, 0 ≤ X → (X, eta) ∈ Ω.carrier := fun X hX => hD X hX eta heta |
| 294 | constructor |
| 295 | · have hd : ∀ r ∈ Ioo 0 R, HasDerivAt (fun t => weightedTheta P h t eta) |
| 296 | (-SlowResidualMatching.thetaDensity h C (GlobalSlowProfiles.asSlowProfiles s) 0 (r, eta)) r := by |
| 297 | intro r hr |
| 298 | have hrpos : 0 < r := hr.1 |
| 299 | have hxr : r ^ 2 / 2 ≤ R ^ 2 / 2 := |
| 300 | div_le_div_of_nonneg_right ((sq_le_sq₀ hr.1.le hR.le).2 hr.2.le) (by norm_num) |
| 301 | have hden := (scheme_zero_densities_eq P s hD hbase r heta).1.trans |
| 302 | (leading_thetaDensity P h C s.nonzero_scale hr.1 |
| 303 | (hslice _ (by positivity)) (hf _ (by positivity) hxr) hL) |
| 304 | rw [hden, neg_neg] |
| 305 | exact weightedTheta_hasDerivAt P h (hslice _ (by positivity)) |
| 306 | have he := stress_eq_of_weighted_derivative 2 |
| 307 | (SlowResidualMatching.thetaDensity h C (GlobalSlowProfiles.asSlowProfiles s) 0) |
| 308 | (fun r => weightedTheta P h r eta) hR |
| 309 | (weightedTheta_continuous P h hslice).continuousOn (weightedTheta_zero P h eta) hd |
| 310 | ((SlowStressSupport.slice_smooth (AssembledSlowBase.thetaDensity_smooth L B0 Z0 0) heta).continuous.intervalIntegrable 0 R) |
| 311 | rw [he] |
| 312 | change weightedTheta P h R eta / R ^ 2 = _ |
| 313 | rw [weightedTheta_eq P h hR (hf _ (by positivity) le_rfl) hL] |
| 314 | field_simp |
| 315 | · have hd : ∀ r ∈ Ioo 0 R, HasDerivAt (fun t => weightedAxial P h t eta) |
| 316 | (-SlowResidualMatching.zDensity h (GlobalSlowProfiles.asSlowProfiles s) 0 (r, eta)) r := by |
| 317 | intro r hr |
| 318 | have hden := (scheme_zero_densities_eq P s hD hbase r heta).2.trans |
| 319 | (leading_zDensity P h C (hslice _ (by positivity)) hL) |
| 320 | rw [hden, neg_neg] |
| 321 | exact weightedAxial_hasDerivAt P h (hslice _ (by positivity)) |
| 322 | have he := stress_eq_of_weighted_derivative 1 |
| 323 | (SlowResidualMatching.zDensity h (GlobalSlowProfiles.asSlowProfiles s) 0) |
| 324 | (fun r => weightedAxial P h r eta) hR |
| 325 | (weightedAxial_continuous P h hslice).continuousOn (weightedAxial_zero P h eta) hd |
| 326 | ((SlowStressSupport.slice_smooth (AssembledSlowBase.zDensity_smooth L B0 Z0 0) heta).continuous.intervalIntegrable 0 R) |
| 327 | rw [he] |
| 328 | change weightedAxial P h R eta / R ^ 1 = _ |
| 329 | rw [weightedAxial_eq P h hR hL] |
| 330 | field_simp |
| 331 | |
| 332 | /-- The actual extended stress slots equal the literal leading stress pair. |
| 333 | The only nonvanishing condition is on the fixed radial slice being evaluated. -/ |
| 334 | theorem coefficients_stress_zero_eq (hI : Icc (-1 : ℝ) 1 ⊆ S) |
| 335 | (hD : ∀ X, 0 ≤ X → ∀ eta ∈ S, (X, eta) ∈ Ω.carrier) |
| 336 | (hbase : s.base = AssembledSlowBase.baseFields s.domain C P hD) |
| 337 | {p : InnerPoint} (hX : 0 ≤ p.1) (heta : |p.2| ≤ 1) |
| 338 | (hf : ∀ X, 0 < X → X ≤ p.1 → P.f (X, p.2) ≠ 0) : |
| 339 | (AssembledSlowBase.coefficients L B0 Z0 hI).stressTheta 0 p = LeadingStress.theta P h p ∧ |
| 340 | (AssembledSlowBase.coefficients L B0 Z0 hI).stressAxial 0 p = LeadingStress.axial P h p := by |
| 341 | have hc := AssembledSlowBase.coefficients_stress_eq L B0 Z0 hI 0 hX heta |
| 342 | rcases p with ⟨X, eta⟩ |
| 343 | dsimp only at hX heta hf hc ⊢ |
| 344 | by_cases hzero : X = 0 |
| 345 | · subst X |
| 346 | constructor |
| 347 | · rw [hc.1] |
| 348 | simp [SlowResidualMatching.thetaStress, SlowResidualMatching.fromRadius, |
| 349 | SlowStressSupport.stress, LeadingStress.theta] |
| 350 | · rw [hc.2] |
| 351 | simp [SlowResidualMatching.zStress, SlowResidualMatching.fromRadius, |
| 352 | SlowStressSupport.stress, LeadingStress.axial] |
| 353 | have hXp : 0 < X := lt_of_le_of_ne hX (Ne.symm hzero) |
| 354 | let R := Real.sqrt (2 * X) |
| 355 | have hR : 0 < R := Real.sqrt_pos.mpr (by positivity) |
| 356 | have hR2 : R ^ 2 / 2 = X := by |
| 357 | rw [Real.sq_sqrt (by positivity)] |
| 358 | ring |
| 359 | have hs := raw_stresses_eq P L B0 Z0 hD hbase hR (hI (abs_le.mp heta)) |
| 360 | (fun Y hY hYX => hf Y hY (by simpa only [hR2] using hYX)) |
| 361 | constructor |
| 362 | · rw [hc.1] |
| 363 | change SlowStressSupport.stress 2 _ (R, eta) = _ |
| 364 | simpa only [hR2] using hs.1 |
| 365 | · rw [hc.2] |
| 366 | change SlowStressSupport.stress 1 _ (R, eta) = _ |
| 367 | simpa only [hR2] using hs.2 |
| 368 | |
| 369 | end Canonical |
| 370 | |
| 371 | end NavierStokes.ZerothStressIdentity |