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 Mathlib.Analysis.Calculus.FDeriv.Mul |
| 2 | import Mathlib.Analysis.Calculus.Deriv.Mul |
| 3 | import Mathlib.Analysis.Calculus.ContDiff.Comp |
| 4 | import Mathlib.Analysis.Calculus.ContDiff.Operations |
| 5 | import Mathlib.Analysis.InnerProductSpace.PiL2 |
| 6 | import Mathlib.Analysis.SpecialFunctions.ExpDeriv |
| 7 | import Mathlib.Analysis.SpecialFunctions.Trigonometric.Basic |
| 8 | import Mathlib.Tactic.FieldSimp |
| 9 | import Mathlib.Tactic.FinCases |
| 10 | import Mathlib.Tactic.Linarith |
| 11 | import Mathlib.Tactic.Ring |
| 12 | |
| 13 | /-! |
| 14 | # The actual slot phase and its material defect |
| 15 | |
| 16 | This module uses the phase in equation (26), with independent slot coordinates |
| 17 | `((R,(Z,T)),(θ,v))`. The base frequencies `F,G` depend on the slow coordinates |
| 18 | `(R,Z,T)`. All derivatives of these functions below are actual Fréchet derivatives. |
| 19 | The primary material operator uses the manuscript's backward-time convention |
| 20 | `∂v - ε ∂T` from equation (25). |
| 21 | -/ |
| 22 | |
| 23 | noncomputable section |
| 24 | |
| 25 | namespace NavierStokes.PhaseCalculus |
| 26 | |
| 27 | open scoped ContDiff |
| 28 | |
| 29 | abbrev Slow := ℝ × (ℝ × ℝ) |
| 30 | abbrev Slot := Slow × (ℝ × ℝ) |
| 31 | abbrev Vec3 := EuclideanSpace ℝ (Fin 3) |
| 32 | |
| 33 | def eR : Slot := ((1, (0, 0)), (0, 0)) |
| 34 | def eZ : Slot := ((0, (1, 0)), (0, 0)) |
| 35 | def eT : Slot := ((0, (0, 1)), (0, 0)) |
| 36 | def eTheta : Slot := ((0, (0, 0)), (1, 0)) |
| 37 | def eV : Slot := ((0, (0, 0)), (0, 1)) |
| 38 | |
| 39 | def slowR (F : Slow → ℝ) (s : Slow) : ℝ := fderiv ℝ F s (1, (0, 0)) |
| 40 | def slowZ (F : Slow → ℝ) (s : Slow) : ℝ := fderiv ℝ F s (0, (1, 0)) |
| 41 | def slowT (F : Slow → ℝ) (s : Slow) : ℝ := fderiv ℝ F s (0, (0, 1)) |
| 42 | |
| 43 | /-- Equation (26). The axial term `(pz/ε)*Z` equals `pz*Z/ε`. -/ |
| 44 | def phase (ε p pz x0 : ℝ) (F G : Slow → ℝ) (q : Slot) : ℝ := |
| 45 | p * q.2.1 + (pz / ε) * q.1.2.1 + x0 * q.1.1 - |
| 46 | q.2.2 * (p * F q.1 + pz * G q.1) |
| 47 | |
| 48 | /-- The full differential of the phase, with no abstract derivative variables. -/ |
| 49 | theorem fderiv_phase_apply (ε p pz x0 : ℝ) (F G : Slow → ℝ) (q w : Slot) |
| 50 | (hF : DifferentiableAt ℝ F q.1) (hG : DifferentiableAt ℝ G q.1) : |
| 51 | fderiv ℝ (phase ε p pz x0 F G) q w = |
| 52 | p * w.2.1 + (pz / ε) * w.1.2.1 + x0 * w.1.1 - |
| 53 | (w.2.2 * (p * F q.1 + pz * G q.1) + |
| 54 | q.2.2 * (p * fderiv ℝ F q.1 w.1 + pz * fderiv ℝ G q.1 w.1)) := by |
| 55 | have hi := hasFDerivAt_id (𝕜 := ℝ) q |
| 56 | have hFl := hF.hasFDerivAt.comp q hi.fst |
| 57 | have hGl := hG.hasFDerivAt.comp q hi.fst |
| 58 | have hd := (((hi.snd.fst.const_mul p).fun_add |
| 59 | (hi.fst.snd.fst.const_mul (pz / ε))).fun_add (hi.fst.fst.const_mul x0)).fun_sub |
| 60 | (hi.snd.snd.fun_mul ((hFl.const_mul p).fun_add (hGl.const_mul pz))) |
| 61 | dsimp only [id_eq, Function.comp_apply] at hd |
| 62 | unfold phase |
| 63 | rw [hd.fderiv] |
| 64 | simp only [_root_.sub_apply, _root_.add_apply, |
| 65 | _root_.smul_apply, ContinuousLinearMap.comp_apply, |
| 66 | ContinuousLinearMap.id_apply, smul_eq_mul] |
| 67 | dsimp |
| 68 | ring |
| 69 | |
| 70 | theorem phase_dR (ε p pz x0 : ℝ) (F G : Slow → ℝ) (q : Slot) |
| 71 | (hF : DifferentiableAt ℝ F q.1) (hG : DifferentiableAt ℝ G q.1) : |
| 72 | fderiv ℝ (phase ε p pz x0 F G) q eR = |
| 73 | x0 - q.2.2 * (p * slowR F q.1 + pz * slowR G q.1) := by |
| 74 | simpa [eR, slowR] using fderiv_phase_apply ε p pz x0 F G q eR hF hG |
| 75 | |
| 76 | theorem phase_dTheta (ε p pz x0 : ℝ) (F G : Slow → ℝ) (q : Slot) |
| 77 | (hF : DifferentiableAt ℝ F q.1) (hG : DifferentiableAt ℝ G q.1) : |
| 78 | fderiv ℝ (phase ε p pz x0 F G) q eTheta = p := by |
| 79 | have hzeroF : fderiv ℝ F q.1 (0, 0, 0) = 0 := map_zero _ |
| 80 | have hzeroG : fderiv ℝ G q.1 (0, 0, 0) = 0 := map_zero _ |
| 81 | simpa [eTheta, hzeroF, hzeroG] using fderiv_phase_apply ε p pz x0 F G q eTheta hF hG |
| 82 | |
| 83 | theorem phase_dZ (ε p pz x0 : ℝ) (F G : Slow → ℝ) (q : Slot) |
| 84 | (hF : DifferentiableAt ℝ F q.1) (hG : DifferentiableAt ℝ G q.1) : |
| 85 | fderiv ℝ (phase ε p pz x0 F G) q eZ = |
| 86 | pz / ε - q.2.2 * (p * slowZ F q.1 + pz * slowZ G q.1) := by |
| 87 | simpa [eZ, slowZ] using fderiv_phase_apply ε p pz x0 F G q eZ hF hG |
| 88 | |
| 89 | theorem phase_dT (ε p pz x0 : ℝ) (F G : Slow → ℝ) (q : Slot) |
| 90 | (hF : DifferentiableAt ℝ F q.1) (hG : DifferentiableAt ℝ G q.1) : |
| 91 | fderiv ℝ (phase ε p pz x0 F G) q eT = |
| 92 | -q.2.2 * (p * slowT F q.1 + pz * slowT G q.1) := by |
| 93 | simpa [eT, slowT] using fderiv_phase_apply ε p pz x0 F G q eT hF hG |
| 94 | |
| 95 | theorem phase_dV (ε p pz x0 : ℝ) (F G : Slow → ℝ) (q : Slot) |
| 96 | (hF : DifferentiableAt ℝ F q.1) (hG : DifferentiableAt ℝ G q.1) : |
| 97 | fderiv ℝ (phase ε p pz x0 F G) q eV = -(p * F q.1 + pz * G q.1) := by |
| 98 | have hzeroF : fderiv ℝ F q.1 (0, 0, 0) = 0 := map_zero _ |
| 99 | have hzeroG : fderiv ℝ G q.1 (0, 0, 0) = 0 := map_zero _ |
| 100 | simpa [eV, hzeroF, hzeroG] using fderiv_phase_apply ε p pz x0 F G q eV hF hG |
| 101 | |
| 102 | /-- The cylindrical chart gradient `(∂R Φ, R⁻¹∂θ Φ, ε∂Z Φ)`. -/ |
| 103 | def phaseNormal (ε p pz x0 : ℝ) (F G : Slow → ℝ) (q : Slot) : Vec3 := |
| 104 | !₂[fderiv ℝ (phase ε p pz x0 F G) q eR, |
| 105 | fderiv ℝ (phase ε p pz x0 F G) q eTheta / q.1.1, |
| 106 | ε * fderiv ℝ (phase ε p pz x0 F G) q eZ] |
| 107 | |
| 108 | /-- The exact normal vector in equation (26), derived from the actual phase. -/ |
| 109 | theorem phaseNormal_formula (ε p pz x0 : ℝ) (F G : Slow → ℝ) (q : Slot) |
| 110 | (hε : ε ≠ 0) (hF : DifferentiableAt ℝ F q.1) (hG : DifferentiableAt ℝ G q.1) : |
| 111 | phaseNormal ε p pz x0 F G q = |
| 112 | !₂[x0 - q.2.2 * (p * slowR F q.1 + pz * slowR G q.1), |
| 113 | p / q.1.1, |
| 114 | pz - ε * q.2.2 * (p * slowZ F q.1 + pz * slowZ G q.1)] := by |
| 115 | ext i |
| 116 | fin_cases i |
| 117 | · simp [phaseNormal, phase_dR ε p pz x0 F G q hF hG] |
| 118 | · simp [phaseNormal, phase_dTheta ε p pz x0 F G q hF hG] |
| 119 | · simp [phaseNormal, phase_dZ ε p pz x0 F G q hF hG] |
| 120 | field_simp |
| 121 | |
| 122 | /-- Joint regularity in every slot coordinate, at any differentiability order. -/ |
| 123 | theorem contDiff_phase {n : WithTop ℕ∞} (ε p pz x0 : ℝ) (F G : Slow → ℝ) |
| 124 | (hF : ContDiff ℝ n F) (hG : ContDiff ℝ n G) : |
| 125 | ContDiff ℝ n (phase ε p pz x0 F G) := by |
| 126 | unfold phase |
| 127 | exact (((contDiff_const.mul contDiff_snd.fst).add |
| 128 | (contDiff_const.mul contDiff_fst.snd.fst)).add |
| 129 | (contDiff_const.mul contDiff_fst.fst)).sub |
| 130 | (contDiff_snd.snd.mul |
| 131 | ((contDiff_const.mul (hF.comp contDiff_fst)).add |
| 132 | (contDiff_const.mul (hG.comp contDiff_fst)))) |
| 133 | |
| 134 | /-- The chart angular velocity is `V = R F`. -/ |
| 135 | def baseV (F : Slow → ℝ) (s : Slow) : ℝ := s.1 * F s |
| 136 | |
| 137 | /-- `σ=-1` is the backward slow-time convention of (25); `σ=1` describes |
| 138 | the forward slow-time convention. The differential operators are real ones. -/ |
| 139 | def signedMaterialOp (σ ε : ℝ) (b F G : Slow → ℝ) (f : Slot → ℝ) (q : Slot) : ℝ := |
| 140 | fderiv ℝ f q eV + σ * ε * fderiv ℝ f q eT + |
| 141 | b q.1 * fderiv ℝ f q eR + (baseV F q.1 / q.1.1) * fderiv ℝ f q eTheta + |
| 142 | ε * G q.1 * fderiv ℝ f q eZ |
| 143 | |
| 144 | def backwardMaterialOp (ε : ℝ) (b F G : Slow → ℝ) (f : Slot → ℝ) (q : Slot) : ℝ := |
| 145 | signedMaterialOp (-1) ε b F G f q |
| 146 | |
| 147 | /-- Exact cancellation of the fast-time and leading angular/axial terms. -/ |
| 148 | theorem signedMaterialOp_phase (σ ε p pz x0 : ℝ) (b F G : Slow → ℝ) (q : Slot) |
| 149 | (hε : ε ≠ 0) (hR : 0 < q.1.1) |
| 150 | (hF : DifferentiableAt ℝ F q.1) (hG : DifferentiableAt ℝ G q.1) : |
| 151 | signedMaterialOp σ ε b F G (phase ε p pz x0 F G) q = |
| 152 | b q.1 * x0 - q.2.2 * |
| 153 | (b q.1 * (p * slowR F q.1 + pz * slowR G q.1) + |
| 154 | σ * ε * (p * slowT F q.1 + pz * slowT G q.1) + |
| 155 | ε * G q.1 * (p * slowZ F q.1 + pz * slowZ G q.1)) := by |
| 156 | unfold signedMaterialOp |
| 157 | rw [phase_dV ε p pz x0 F G q hF hG, phase_dT ε p pz x0 F G q hF hG, |
| 158 | phase_dR ε p pz x0 F G q hF hG, phase_dTheta ε p pz x0 F G q hF hG, |
| 159 | phase_dZ ε p pz x0 F G q hF hG] |
| 160 | unfold baseV |
| 161 | field_simp [hε, ne_of_gt hR] ; ring |
| 162 | |
| 163 | /-- The manuscript convention `t* = ∂v - ε∂T` gives the MINUS sign |
| 164 | inside the slow-time part of the bracket (equivalently a positive term |
| 165 | `+ ε v (p F_T + pz G_T)` after expansion). -/ |
| 166 | theorem backwardMaterialOp_phase (ε p pz x0 : ℝ) (b F G : Slow → ℝ) (q : Slot) |
| 167 | (hε : ε ≠ 0) (hR : 0 < q.1.1) |
| 168 | (hF : DifferentiableAt ℝ F q.1) (hG : DifferentiableAt ℝ G q.1) : |
| 169 | backwardMaterialOp ε b F G (phase ε p pz x0 F G) q = |
| 170 | b q.1 * x0 - q.2.2 * |
| 171 | (b q.1 * (p * slowR F q.1 + pz * slowR G q.1) - |
| 172 | ε * (p * slowT F q.1 + pz * slowT G q.1) + |
| 173 | ε * G q.1 * (p * slowZ F q.1 + pz * slowZ G q.1)) := by |
| 174 | unfold backwardMaterialOp |
| 175 | rw [signedMaterialOp_phase (-1) ε p pz x0 b F G q hε hR hF hG] |
| 176 | ring |
| 177 | |
| 178 | def angularShift (h : ℝ) (q : Slot) : Slot := (q.1, (q.2.1 + h, q.2.2)) |
| 179 | |
| 180 | theorem phase_angularShift (ε p pz x0 h : ℝ) (F G : Slow → ℝ) (q : Slot) : |
| 181 | phase ε p pz x0 F G (angularShift h q) = phase ε p pz x0 F G q + p * h := by |
| 182 | unfold phase angularShift |
| 183 | dsimp |
| 184 | ring |
| 185 | |
| 186 | /-- The actual complex carrier `exp(i k j Φ)`, with integer harmonic `j`. -/ |
| 187 | def harmonic (k : ℝ) (j : ℤ) (ε p pz x0 : ℝ) (F G : Slow → ℝ) (q : Slot) : ℂ := |
| 188 | Complex.exp ((↑(k * (j : ℝ) * phase ε p pz x0 F G q) : ℂ) * Complex.I) |
| 189 | |
| 190 | /-- Rounding `k*p` to an integer makes every integer harmonic single-valued |
| 191 | under one full turn of the angular coordinate. -/ |
| 192 | theorem harmonic_angularShift_two_pi (k : ℝ) (j m : ℤ) (ε p pz x0 : ℝ) |
| 193 | (F G : Slow → ℝ) (q : Slot) (hkp : k * p = (m : ℝ)) : |
| 194 | harmonic k j ε p pz x0 F G (angularShift (2 * Real.pi) q) = |
| 195 | harmonic k j ε p pz x0 F G q := by |
| 196 | have ha : k * (j : ℝ) * phase ε p pz x0 F G (angularShift (2 * Real.pi) q) = |
| 197 | k * (j : ℝ) * phase ε p pz x0 F G q + ((j * m : ℤ) : ℝ) * (2 * Real.pi) := by |
| 198 | rw [phase_angularShift] |
| 199 | calc |
| 200 | k * (j : ℝ) * (phase ε p pz x0 F G q + p * (2 * Real.pi)) = |
| 201 | k * (j : ℝ) * phase ε p pz x0 F G q + (j : ℝ) * (k * p) * (2 * Real.pi) := by |
| 202 | ring |
| 203 | _ = _ := by rw [hkp, Int.cast_mul] |
| 204 | unfold harmonic |
| 205 | rw [ha, Complex.ofReal_add, add_mul, Complex.exp_add] |
| 206 | have hexp : Complex.exp |
| 207 | ((↑(((j * m : ℤ) : ℝ) * (2 * Real.pi)) : ℂ) * Complex.I) = 1 := by |
| 208 | simpa only [Complex.ofReal_mul, Complex.ofReal_intCast, Complex.ofReal_ofNat, |
| 209 | mul_assoc] using Complex.exp_int_mul_two_pi_mul_I (j * m) |
| 210 | rw [hexp, mul_one] |
| 211 | |
| 212 | theorem harmonic_theta_periodic (k : ℝ) (j m : ℤ) (ε p pz x0 : ℝ) |
| 213 | (F G : Slow → ℝ) (s : Slow) (v : ℝ) (hkp : k * p = (m : ℝ)) : |
| 214 | Function.Periodic (fun θ => harmonic k j ε p pz x0 F G (s, (θ, v))) (2 * Real.pi) := by |
| 215 | intro θ |
| 216 | exact harmonic_angularShift_two_pi k j m ε p pz x0 F G (s, (θ, v)) hkp |
| 217 | |
| 218 | /-- The complex harmonic is jointly smooth whenever the base frequencies are. -/ |
| 219 | theorem contDiff_harmonic {n : WithTop ℕ∞} (k : ℝ) (j : ℤ) (ε p pz x0 : ℝ) |
| 220 | (F G : Slow → ℝ) (hF : ContDiff ℝ n F) (hG : ContDiff ℝ n G) : |
| 221 | ContDiff ℝ n (harmonic k j ε p pz x0 F G) := by |
| 222 | unfold harmonic |
| 223 | exact ((Complex.ofRealCLM.contDiff.comp |
| 224 | (contDiff_const.mul (contDiff_phase ε p pz x0 F G hF hG))).mul contDiff_const).cexp |
| 225 | |
| 226 | /-- The actual cylindrical normal is jointly `C∞` away from the axis. -/ |
| 227 | theorem contDiffAt_phaseNormal (ε p pz x0 : ℝ) (F G : Slow → ℝ) (q : Slot) |
| 228 | (hR : q.1.1 ≠ 0) (hF : ContDiff ℝ ∞ F) (hG : ContDiff ℝ ∞ G) : |
| 229 | ContDiffAt ℝ ∞ (phaseNormal ε p pz x0 F G) q := by |
| 230 | have hD : ContDiff ℝ ∞ (fderiv ℝ (phase ε p pz x0 F G)) := |
| 231 | (contDiff_phase ε p pz x0 F G hF hG).fderiv_right (by simp) |
| 232 | have hp (w : Slot) : ContDiff ℝ ∞ (fun z => fderiv ℝ (phase ε p pz x0 F G) z w) := |
| 233 | hD.clm_apply contDiff_const |
| 234 | apply (EuclideanSpace.equiv (Fin 3) ℝ).comp_contDiffAt_iff.mp |
| 235 | apply contDiffAt_pi.mpr |
| 236 | intro i |
| 237 | fin_cases i |
| 238 | · change ContDiffAt ℝ ∞ (fun z => fderiv ℝ (phase ε p pz x0 F G) z eR) q |
| 239 | exact (hp eR).contDiffAt |
| 240 | · change ContDiffAt ℝ ∞ (fun z => fderiv ℝ (phase ε p pz x0 F G) z eTheta / z.1.1) q |
| 241 | exact (hp eTheta).contDiffAt.div contDiffAt_fst.fst hR |
| 242 | · change ContDiffAt ℝ ∞ (fun z => ε * fderiv ℝ (phase ε p pz x0 F G) z eZ) q |
| 243 | exact contDiffAt_const.mul (hp eZ).contDiffAt |
| 244 | |
| 245 | /-- The exact fast-slot derivative of `nΦ` used by the tangent ODE. -/ |
| 246 | def normalSlotDerivative (ε p pz : ℝ) (F G : Slow → ℝ) (s : Slow) : Vec3 := |
| 247 | !₂[-(p * slowR F s + pz * slowR G s), 0, |
| 248 | -ε * (p * slowZ F s + pz * slowZ G s)] |
| 249 | |
| 250 | theorem hasDerivAt_phaseNormal_slot (ε p pz x0 θ v : ℝ) (F G : Slow → ℝ) (s : Slow) |
| 251 | (hε : ε ≠ 0) (hF : DifferentiableAt ℝ F s) (hG : DifferentiableAt ℝ G s) : |
| 252 | HasDerivAt (fun w => phaseNormal ε p pz x0 F G (s, (θ, w))) |
| 253 | (normalSlotDerivative ε p pz F G s) v := by |
| 254 | let n0 : Vec3 := !₂[x0, p / s.1, pz] |
| 255 | have heq : (fun w => phaseNormal ε p pz x0 F G (s, (θ, w))) = |
| 256 | (fun w => n0 + w • normalSlotDerivative ε p pz F G s) := by |
| 257 | funext w |
| 258 | rw [phaseNormal_formula ε p pz x0 F G (s, (θ, w)) hε hF hG] |
| 259 | ext i |
| 260 | fin_cases i <;> simp [n0, normalSlotDerivative] <;> ring |
| 261 | rw [heq] |
| 262 | simpa only [one_smul, zero_add, id_eq] using (hasDerivAt_const v n0).fun_add |
| 263 | ((hasDerivAt_id v).smul_const (normalSlotDerivative ε p pz F G s)) |
| 264 | |
| 265 | /-- The comparison vector `B (s,K)` used after equation (26). -/ |
| 266 | def referenceNormal (B s Kθ Kz : ℝ) : Vec3 := !₂[B * s, B * Kθ, B * Kz] |
| 267 | |
| 268 | theorem vec3_norm_sq (w : Vec3) : |
| 269 | ‖w‖ ^ 2 = (w 0) ^ 2 + (w 1) ^ 2 + (w 2) ^ 2 := by |
| 270 | simp only [EuclideanSpace.real_norm_sq_eq, Fin.sum_univ_three] |
| 271 | |
| 272 | /-- A unit tangential direction forces the reference vector to have norm at least `B`. -/ |
| 273 | theorem referenceNormal_norm_ge (B s Kθ Kz : ℝ) |
| 274 | (hK : Kθ ^ 2 + Kz ^ 2 = 1) : |
| 275 | B ≤ ‖referenceNormal B s Kθ Kz‖ := by |
| 276 | have hn : ‖referenceNormal B s Kθ Kz‖ ^ 2 = |
| 277 | (B * s) ^ 2 + (B * Kθ) ^ 2 + (B * Kz) ^ 2 := by |
| 278 | simpa [referenceNormal] using vec3_norm_sq (referenceNormal B s Kθ Kz) |
| 279 | have htan : (B * Kθ) ^ 2 + (B * Kz) ^ 2 = B ^ 2 := by |
| 280 | calc |
| 281 | (B * Kθ) ^ 2 + (B * Kz) ^ 2 = B ^ 2 * (Kθ ^ 2 + Kz ^ 2) := by ring |
| 282 | _ = B ^ 2 := by rw [hK, mul_one] |
| 283 | have hsq : B ^ 2 ≤ ‖referenceNormal B s Kθ Kz‖ ^ 2 := by |
| 284 | nlinarith [sq_nonneg (B * s)] |
| 285 | nlinarith [norm_nonneg (referenceNormal B s Kθ Kz)] |
| 286 | |
| 287 | /-- An explicit reference-vector error bound gives a quantitative lower bound |
| 288 | for the actual phase normal. The comparison estimate itself is a hypothesis. -/ |
| 289 | theorem phaseNormal_norm_lower (ε p pz x0 B s Kθ Kz δ : ℝ) |
| 290 | (F G : Slow → ℝ) (q : Slot) (hK : Kθ ^ 2 + Kz ^ 2 = 1) |
| 291 | (hclose : ‖phaseNormal ε p pz x0 F G q - referenceNormal B s Kθ Kz‖ ≤ δ) : |
| 292 | B - δ ≤ ‖phaseNormal ε p pz x0 F G q‖ := by |
| 293 | have href := referenceNormal_norm_ge B s Kθ Kz hK |
| 294 | have htriangle := norm_sub_norm_le (referenceNormal B s Kθ Kz) |
| 295 | (phaseNormal ε p pz x0 F G q) |
| 296 | rw [norm_sub_rev] at htriangle |
| 297 | linarith |
| 298 | |
| 299 | /-- Half-scale closeness ensures the denominator in the projected pulse |
| 300 | equation is nonzero for this actual phase normal. -/ |
| 301 | theorem phaseNormal_ne_zero_of_close (ε p pz x0 B s Kθ Kz : ℝ) |
| 302 | (F G : Slow → ℝ) (q : Slot) (hB : 0 < B) (hK : Kθ ^ 2 + Kz ^ 2 = 1) |
| 303 | (hclose : ‖phaseNormal ε p pz x0 F G q - referenceNormal B s Kθ Kz‖ ≤ B / 2) : |
| 304 | phaseNormal ε p pz x0 F G q ≠ 0 := by |
| 305 | have hlow := phaseNormal_norm_lower ε p pz x0 B s Kθ Kz (B / 2) F G q hK hclose |
| 306 | intro hz |
| 307 | rw [hz, norm_zero] at hlow |
| 308 | linarith |
| 309 | |
| 310 | end NavierStokes.PhaseCalculus |