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.ParticularWaveBounds |
| 2 | import NavierStokes.NormalScaling |
| 3 | |
| 4 | /-! |
| 5 | # Normal and clock transport of the actual tangent inverse |
| 6 | |
| 7 | The native clock, its zero-entry anchor, the normal and the source are |
| 8 | transported together. Velocity and pressure below are outputs of the |
| 9 | actual copy-path Volterra inverse, with no output compatibility hypothesis. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace NavierStokes.ScaledTangentTransport |
| 15 | |
| 16 | open Set Function CommonCoverSolve TorusInverse ParticularWaveBounds HarmonicCalculus |
| 17 | open scoped Topology ContDiff InnerProductSpace |
| 18 | |
| 19 | |
| 20 | section Geometry |
| 21 | |
| 22 | theorem coordinates_transport (g : Geometry) (gap : ℕ) (shift rate : ℝ) |
| 23 | (hrate : rate ≠ 0) (copy : Frequency) (Y : Plane) : |
| 24 | CopySolveCompatibility.nativeTimeMap shift rate |
| 25 | ((CopySolveCompatibility.transportGeometry g gap shift rate hrate).coordinates copy Y) = |
| 26 | g.coordinates copy (coverPower gap Y) := by |
| 27 | rw [CopySolveCompatibility.transportGeometry, CopySolveCompatibility.coordinates_refine, CopySolveCompatibility.coordinates_timeGeometry] |
| 28 | |
| 29 | theorem slotDirection_transport (g : Geometry) (gap : ℕ) (shift rate : ℝ) |
| 30 | (hrate : rate ≠ 0) : |
| 31 | coverPower gap (slotDirection (CopySolveCompatibility.transportGeometry g gap shift rate hrate)) = |
| 32 | rate • slotDirection g := by |
| 33 | apply (coverPower g.gap).injective |
| 34 | change coverPower g.gap |
| 35 | (coverPower gap ((coverPower (g.gap + gap)).symm |
| 36 | ((CommonCoverClass.scaledBasis g.basis rate hrate) (0, 1)))) = _ |
| 37 | rw [← CopySolveCompatibility.coverPower_add, ContinuousLinearEquiv.apply_symm_apply, |
| 38 | CommonCoverClass.scaledBasis_transverse] |
| 39 | simp only [slotDirection, map_smul, ContinuousLinearEquiv.apply_symm_apply] |
| 40 | |
| 41 | theorem current_slot_iff (g : Geometry) (gap : ℕ) (shift rate : ℝ) |
| 42 | (hrate : 0 < rate) (copy : Frequency) (Y : Plane) (a b : ℝ) : |
| 43 | ((CopySolveCompatibility.transportGeometry g gap shift rate hrate.ne').coordinates copy Y).2 ∈ Icc a b ↔ |
| 44 | (g.coordinates copy (coverPower gap Y)).2 ∈ |
| 45 | Icc (shift + rate * a) (shift + rate * b) := by |
| 46 | have he := congrArg Prod.snd (coordinates_transport g gap shift rate hrate.ne' copy Y) |
| 47 | change shift + rate * _ = _ at he |
| 48 | rw [← he] |
| 49 | constructor |
| 50 | · intro h |
| 51 | exact ⟨CopySolveCompatibility.time_interval_mono shift hrate h.1, |
| 52 | CopySolveCompatibility.time_interval_mono shift hrate h.2⟩ |
| 53 | · intro h |
| 54 | constructor <;> nlinarith [h.1, h.2] |
| 55 | |
| 56 | end Geometry |
| 57 | |
| 58 | section Inputs |
| 59 | |
| 60 | variable {P Q H : Type} [NormedAddCommGroup H] [InnerProductSpace ℝ H] |
| 61 | |
| 62 | /-- The velocity scale is `amplitude`. The actual source scale is |
| 63 | `rate * amplitude`, and the moving normal acquires both normal and clock |
| 64 | scales in its slot derivative. -/ |
| 65 | noncomputable def transportTangent (t : TangentData P H) (parameter : Q → P) |
| 66 | (gap : ℕ) (shift rate amplitude normalScale : ℝ) : TangentData Q H where |
| 67 | normal z := normalScale • t.normal (parameter z.1, CopySolveCompatibility.nativeTimeMap shift rate z.2) |
| 68 | normalDot z := (normalScale * rate) • |
| 69 | t.normalDot (parameter z.1, CopySolveCompatibility.nativeTimeMap shift rate z.2) |
| 70 | action z := rate • t.action (parameter z.1, CopySolveCompatibility.nativeTimeMap shift rate z.2) |
| 71 | damping z := rate * t.damping (parameter z.1, CopySolveCompatibility.nativeTimeMap shift rate z.2) |
| 72 | source z := (rate * amplitude) • t.source (parameter z.1, coverPower gap z.2) |
| 73 | |
| 74 | /-- The ambient complex source undergoes the same rate and velocity |
| 75 | scalings as the real tangent source. -/ |
| 76 | noncomputable def transportSource (f : P × Plane → ComplexVector) (parameter : Q → P) |
| 77 | (gap : ℕ) (rate amplitude : ℝ) : Q × Plane → ComplexVector := |
| 78 | fun z => (rate * amplitude) • f (parameter z.1, coverPower gap z.2) |
| 79 | |
| 80 | end Inputs |
| 81 | |
| 82 | section CopyInputCompatibility |
| 83 | |
| 84 | variable {P Q V H : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 85 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 86 | [NormedAddCommGroup H] [NormedSpace ℝ H] [CompleteSpace H] |
| 87 | |
| 88 | /-- Copy-level counterpart of `CopySolveCompatibility.commonSolve_of_compatibleInputs`. |
| 89 | The condition compares only native coefficients and converted sources. -/ |
| 90 | theorem copySolve_of_compatibleInputs (d : LinearData P V H) (e : LinearData Q V H) |
| 91 | (parameter : Q → P) (g : Geometry) {a b : ℝ} (hab : a ≤ b) |
| 92 | (gap : ℕ) (shift rate amplitude : ℝ) (hrate : 0 < rate) |
| 93 | {U : Set P} (hA : ContinuousOn d.coefficient (U ×ˢ univ)) |
| 94 | (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) |
| 95 | (hf : ContinuousOn d.source (U ×ˢ univ)) (q : Q) (hq : parameter q ∈ U) |
| 96 | (hi : CopySolveCompatibility.SameInputsAt e (CopySolveCompatibility.transportData d parameter gap shift rate amplitude) q) |
| 97 | (copy : Frequency) (Y : Plane) |
| 98 | (hslot : ((CopySolveCompatibility.transportGeometry g gap shift rate hrate.ne').coordinates copy Y).2 ∈ |
| 99 | Icc a b) : |
| 100 | e.copySolve (CopySolveCompatibility.transportGeometry g gap shift rate hrate.ne') hab copy (q, Y) = |
| 101 | amplitude • d.copySolve g (CopySolveCompatibility.time_interval_mono shift hrate hab) copy |
| 102 | (parameter q, coverPower gap Y) := by |
| 103 | have he : e.copySolve (CopySolveCompatibility.transportGeometry g gap shift rate hrate.ne') hab copy (q, Y) = |
| 104 | (CopySolveCompatibility.transportData d parameter gap shift rate amplitude).copySolve |
| 105 | (CopySolveCompatibility.transportGeometry g gap shift rate hrate.ne') hab copy (q, Y) := by |
| 106 | exact CopySolveCompatibility.anchoredSolve_eq_of_sameInputs _ _ _ hab q hi copy Y _ |
| 107 | rw [he] |
| 108 | unfold CopySolveCompatibility.transportData CopySolveCompatibility.transportGeometry |
| 109 | rw [CopySolveCompatibility.copySolve_scaleSource, CopySolveCompatibility.copySolve_transform] |
| 110 | congr 1 |
| 111 | apply CopySolveCompatibility.copySolve_timeData d g shift rate hrate hab hA hB hf copy hq |
| 112 | simpa only [CopySolveCompatibility.transportGeometry, CopySolveCompatibility.coordinates_refine] using hslot |
| 113 | |
| 114 | end CopyInputCompatibility |
| 115 | |
| 116 | section TangentTransport |
| 117 | |
| 118 | variable {P Q H : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 119 | [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] |
| 120 | |
| 121 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] [CompleteSpace H] in |
| 122 | /-- Normal scaling changes neither tangent projection nor the resulting |
| 123 | ODE. Moving the clock factor from the forcing map into the source |
| 124 | preserves its actual converted forcing. -/ |
| 125 | theorem transportTangent_sameInputs (t : TangentData P H) (parameter : Q → P) |
| 126 | (gap : ℕ) (shift rate amplitude normalScale : ℝ) (hnormal : normalScale ≠ 0) (q : Q) : |
| 127 | CopySolveCompatibility.SameInputsAt |
| 128 | (transportTangent t parameter gap shift rate amplitude normalScale).linearData |
| 129 | (CopySolveCompatibility.transportData t.linearData parameter gap shift rate amplitude) q := by |
| 130 | constructor |
| 131 | · intro z |
| 132 | exact NormalScaling.projectedOperator_rescale _ _ _ rate _ hnormal |
| 133 | · intro z Y |
| 134 | change negativeTangentProjection (normalScale • t.normal |
| 135 | (parameter q, CopySolveCompatibility.nativeTimeMap shift rate z)) |
| 136 | ((rate * amplitude) • t.source (parameter q, coverPower gap Y)) = |
| 137 | (rate • negativeTangentProjection (t.normal |
| 138 | (parameter q, CopySolveCompatibility.nativeTimeMap shift rate z))) |
| 139 | (amplitude • t.source (parameter q, coverPower gap Y)) |
| 140 | rw [NormalScaling.negativeTangentProjection_smul _ hnormal] |
| 141 | simp only [_root_.smul_apply, map_smul, smul_smul, mul_comm rate amplitude] |
| 142 | |
| 143 | theorem copySolve_transport (t : TangentData P H) (parameter : Q → P) |
| 144 | (g : Geometry) {a b : ℝ} (hab : a ≤ b) (gap : ℕ) |
| 145 | (shift rate amplitude normalScale : ℝ) (hrate : 0 < rate) (hnormal : normalScale ≠ 0) |
| 146 | {U : Set P} (hA : ContinuousOn t.linearData.coefficient (U ×ˢ univ)) |
| 147 | (hB : ContinuousOn t.linearData.forcingMap (U ×ˢ univ)) |
| 148 | (hf : ContinuousOn t.source (U ×ˢ univ)) (q : Q) (hq : parameter q ∈ U) |
| 149 | (copy : Frequency) (Y : Plane) |
| 150 | (hslot : ((CopySolveCompatibility.transportGeometry g gap shift rate hrate.ne').coordinates |
| 151 | copy Y).2 ∈ Icc a b) : |
| 152 | (transportTangent t parameter gap shift rate amplitude normalScale).linearData.copySolve |
| 153 | (CopySolveCompatibility.transportGeometry g gap shift rate hrate.ne') hab copy (q, Y) = |
| 154 | amplitude • t.linearData.copySolve g |
| 155 | (CopySolveCompatibility.time_interval_mono shift hrate hab) copy |
| 156 | (parameter q, coverPower gap Y) := |
| 157 | copySolve_of_compatibleInputs t.linearData _ parameter g hab gap shift rate amplitude hrate |
| 158 | hA hB hf q hq (transportTangent_sameInputs t parameter gap shift rate amplitude normalScale |
| 159 | hnormal q) copy Y hslot |
| 160 | |
| 161 | theorem copyPressureReal_transport (t : TangentData P H) (parameter : Q → P) |
| 162 | (g : Geometry) {a b : ℝ} (hab : a ≤ b) (gap : ℕ) |
| 163 | (shift rate amplitude normalScale : ℝ) (hrate : 0 < rate) (hnormal : normalScale ≠ 0) |
| 164 | {U : Set P} (hA : ContinuousOn t.linearData.coefficient (U ×ˢ univ)) |
| 165 | (hB : ContinuousOn t.linearData.forcingMap (U ×ˢ univ)) |
| 166 | (hf : ContinuousOn t.source (U ×ˢ univ)) (q : Q) (hq : parameter q ∈ U) |
| 167 | (copy : Frequency) (Y : Plane) |
| 168 | (hslot : ((CopySolveCompatibility.transportGeometry g gap shift rate hrate.ne').coordinates |
| 169 | copy Y).2 ∈ Icc a b) : |
| 170 | copyPressureReal (transportTangent t parameter gap shift rate amplitude normalScale) |
| 171 | (CopySolveCompatibility.transportGeometry g gap shift rate hrate.ne') hab copy (q, Y) = |
| 172 | (rate * amplitude / normalScale) * copyPressureReal t g |
| 173 | (CopySolveCompatibility.time_interval_mono shift hrate hab) copy |
| 174 | (parameter q, coverPower gap Y) := by |
| 175 | simp only [copyPressureReal] |
| 176 | rw [copySolve_transport t parameter g hab gap shift rate amplitude normalScale hrate hnormal |
| 177 | hA hB hf q hq copy Y hslot] |
| 178 | simp only [transportTangent, nativePoint, coordinates_transport, |
| 179 | _root_.smul_apply, map_smul, smul_smul] |
| 180 | rw [mul_comm amplitude rate] |
| 181 | exact NormalScaling.pressureCoefficient_rescale (H := H) _ _ _ _ _ rate amplitude hnormal |
| 182 | |
| 183 | /-- Pressure includes the inverse frequency of the band in which it is |
| 184 | realized, in addition to the derived clock/normal factor. -/ |
| 185 | theorem copyPressure_transport (t : TangentData P H) (parameter : Q → P) |
| 186 | (g : Geometry) {a b : ℝ} (hab : a ≤ b) (gap : ℕ) |
| 187 | (shift rate amplitude normalScale referenceFrequency frequency : ℝ) |
| 188 | (hrate : 0 < rate) (hnormal : normalScale ≠ 0) |
| 189 | (hreference : referenceFrequency ≠ 0) (hfrequency : frequency ≠ 0) |
| 190 | {U : Set P} (hA : ContinuousOn t.linearData.coefficient (U ×ˢ univ)) |
| 191 | (hB : ContinuousOn t.linearData.forcingMap (U ×ˢ univ)) |
| 192 | (hf : ContinuousOn t.source (U ×ˢ univ)) (q : Q) (hq : parameter q ∈ U) |
| 193 | (copy : Frequency) (Y : Plane) |
| 194 | (hslot : ((CopySolveCompatibility.transportGeometry g gap shift rate hrate.ne').coordinates |
| 195 | copy Y).2 ∈ Icc a b) : |
| 196 | copyPressure (transportTangent t parameter gap shift rate amplitude normalScale) |
| 197 | (CopySolveCompatibility.transportGeometry g gap shift rate hrate.ne') hab copy frequency |
| 198 | (q, Y) = |
| 199 | ((rate * amplitude / normalScale) * (referenceFrequency / frequency)) • |
| 200 | copyPressure t g (CopySolveCompatibility.time_interval_mono shift hrate hab) |
| 201 | copy referenceFrequency (parameter q, coverPower gap Y) := by |
| 202 | have hr : (referenceFrequency : ℂ) ≠ 0 := by exact_mod_cast hreference |
| 203 | have hk : (frequency : ℂ) ≠ 0 := by exact_mod_cast hfrequency |
| 204 | have hs : (normalScale : ℂ) ≠ 0 := by exact_mod_cast hnormal |
| 205 | simp only [copyPressure, copyPressureReal_transport t parameter g hab gap shift rate amplitude |
| 206 | normalScale hrate hnormal hA hB hf q hq copy Y hslot, |
| 207 | Complex.ofReal_mul, Complex.ofReal_div, Complex.real_smul] |
| 208 | field_simp |
| 209 | |
| 210 | end TangentTransport |
| 211 | |
| 212 | section LocalizedTransport |
| 213 | |
| 214 | variable {P Q E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 215 | |
| 216 | omit [CompleteSpace E] in |
| 217 | /-- A transported periodization only uses copy identities on the active |
| 218 | native interval. In particular no equality of extended solves outside |
| 219 | that interval is required. -/ |
| 220 | theorem periodizedCopies_transport_of_active (g : Geometry) (parameter : Q → P) |
| 221 | {a b : ℝ} (gap : ℕ) (shift rate scale : ℝ) (hrate : 0 < rate) |
| 222 | (cutoff : Plane → ℝ) |
| 223 | (hcutoff : support cutoff ⊆ univ ×ˢ Icc (shift + rate * a) (shift + rate * b)) |
| 224 | (F : Frequency → Q × Plane → E) (G : Frequency → P × Plane → E) |
| 225 | (q : Q) (Y : Plane) |
| 226 | (hcopy : ∀ copy, |
| 227 | ((CopySolveCompatibility.transportGeometry g gap shift rate hrate.ne').coordinates |
| 228 | copy Y).2 ∈ Icc a b → |
| 229 | F copy (q, Y) = scale • G copy (parameter q, coverPower gap Y)) : |
| 230 | periodizedCopies (CopySolveCompatibility.transportGeometry g gap shift rate hrate.ne') |
| 231 | (cutoff ∘ CopySolveCompatibility.nativeTimeMap shift rate) F (q, Y) = |
| 232 | scale • periodizedCopies g cutoff G (parameter q, coverPower gap Y) := by |
| 233 | unfold periodizedCopies |
| 234 | calc |
| 235 | _ = ∑' copy : Frequency, scale • |
| 236 | (cutoff (g.coordinates copy (coverPower gap Y)) • |
| 237 | G copy (parameter q, coverPower gap Y)) := by |
| 238 | apply tsum_congr |
| 239 | intro copy |
| 240 | simp only [Function.comp_apply, coordinates_transport] |
| 241 | by_cases hz : cutoff (g.coordinates copy (coverPower gap Y)) = 0 |
| 242 | · simp only [hz, zero_smul, smul_zero] |
| 243 | · have hs : ((CopySolveCompatibility.transportGeometry g gap shift rate hrate.ne').coordinates |
| 244 | copy Y).2 ∈ Icc a b := |
| 245 | (current_slot_iff g gap shift rate hrate copy Y a b).mpr (hcutoff hz).2 |
| 246 | rw [hcopy copy hs, smul_comm] |
| 247 | _ = _ := tsum_const_smul'' scale |
| 248 | |
| 249 | end LocalizedTransport |
| 250 | |
| 251 | section ComplexTransport |
| 252 | |
| 253 | variable {P Q : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 254 | [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 255 | |
| 256 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedAddCommGroup Q] [NormedSpace ℝ Q] in |
| 257 | theorem realData_transport (t : TangentData P ProblemStatement.Space) |
| 258 | (f : P × Plane → ComplexVector) (parameter : Q → P) (gap : ℕ) |
| 259 | (shift rate amplitude normalScale : ℝ) : |
| 260 | realData (transportTangent t parameter gap shift rate amplitude normalScale) |
| 261 | (transportSource f parameter gap rate amplitude) = |
| 262 | transportTangent (realData t f) parameter gap shift rate amplitude normalScale := by |
| 263 | unfold realData transportTangent transportSource |
| 264 | congr 1 |
| 265 | funext z |
| 266 | exact map_smul realPart (rate * amplitude) _ |
| 267 | |
| 268 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedAddCommGroup Q] [NormedSpace ℝ Q] in |
| 269 | theorem imagData_transport (t : TangentData P ProblemStatement.Space) |
| 270 | (f : P × Plane → ComplexVector) (parameter : Q → P) (gap : ℕ) |
| 271 | (shift rate amplitude normalScale : ℝ) : |
| 272 | imagData (transportTangent t parameter gap shift rate amplitude normalScale) |
| 273 | (transportSource f parameter gap rate amplitude) = |
| 274 | transportTangent (imagData t f) parameter gap shift rate amplitude normalScale := by |
| 275 | unfold imagData transportTangent transportSource |
| 276 | congr 1 |
| 277 | funext z |
| 278 | exact map_smul imagPart (rate * amplitude) _ |
| 279 | |
| 280 | omit [NormedAddCommGroup Q] [NormedSpace ℝ Q] in |
| 281 | theorem copyVelocity_transport (t : TangentData P ProblemStatement.Space) |
| 282 | (parameter : Q → P) (g : Geometry) {a b : ℝ} (hab : a ≤ b) (gap : ℕ) |
| 283 | (shift rate amplitude normalScale : ℝ) (hrate : 0 < rate) (hnormal : normalScale ≠ 0) |
| 284 | {U : Set P} (hA : ContinuousOn t.linearData.coefficient (U ×ˢ univ)) |
| 285 | (hB : ContinuousOn t.linearData.forcingMap (U ×ˢ univ)) |
| 286 | (hf : ContinuousOn t.source (U ×ˢ univ)) (q : Q) (hq : parameter q ∈ U) |
| 287 | (copy : Frequency) (Y : Plane) |
| 288 | (hslot : ((CopySolveCompatibility.transportGeometry g gap shift rate hrate.ne').coordinates |
| 289 | copy Y).2 ∈ Icc a b) : |
| 290 | copyVelocity (transportTangent t parameter gap shift rate amplitude normalScale) |
| 291 | (CopySolveCompatibility.transportGeometry g gap shift rate hrate.ne') hab copy (q, Y) = |
| 292 | amplitude • copyVelocity t g (CopySolveCompatibility.time_interval_mono shift hrate hab) |
| 293 | copy (parameter q, coverPower gap Y) := by |
| 294 | unfold copyVelocity |
| 295 | rw [copySolve_transport t parameter g hab gap shift rate amplitude normalScale hrate hnormal |
| 296 | hA hB hf q hq copy Y hslot, map_smul] |
| 297 | |
| 298 | omit [NormedAddCommGroup Q] [NormedSpace ℝ Q] in |
| 299 | theorem complexCopyVelocity_transport (t : TangentData P ProblemStatement.Space) |
| 300 | (f : P × Plane → ComplexVector) (parameter : Q → P) |
| 301 | (g : Geometry) {a b : ℝ} (hab : a ≤ b) (gap : ℕ) |
| 302 | (shift rate amplitude normalScale : ℝ) (hrate : 0 < rate) (hnormal : normalScale ≠ 0) |
| 303 | {U : Set P} (hA : ContinuousOn t.linearData.coefficient (U ×ˢ univ)) |
| 304 | (hB : ContinuousOn t.linearData.forcingMap (U ×ˢ univ)) |
| 305 | (hf : ContinuousOn f (U ×ˢ univ)) (q : Q) (hq : parameter q ∈ U) |
| 306 | (copy : Frequency) (Y : Plane) |
| 307 | (hslot : ((CopySolveCompatibility.transportGeometry g gap shift rate hrate.ne').coordinates |
| 308 | copy Y).2 ∈ Icc a b) : |
| 309 | complexCopyVelocity (transportTangent t parameter gap shift rate amplitude normalScale) |
| 310 | (transportSource f parameter gap rate amplitude) |
| 311 | (CopySolveCompatibility.transportGeometry g gap shift rate hrate.ne') hab copy (q, Y) = |
| 312 | amplitude • complexCopyVelocity t f g |
| 313 | (CopySolveCompatibility.time_interval_mono shift hrate hab) |
| 314 | copy (parameter q, coverPower gap Y) := by |
| 315 | have hr : ContinuousOn (realData t f).source (U ×ˢ univ) := |
| 316 | realPart.continuous.comp_continuousOn hf |
| 317 | have hi : ContinuousOn (imagData t f).source (U ×ˢ univ) := |
| 318 | imagPart.continuous.comp_continuousOn hf |
| 319 | simp only [complexCopyVelocity, realData_transport, imagData_transport] |
| 320 | rw [copyVelocity_transport (realData t f) parameter g hab gap shift rate amplitude normalScale |
| 321 | hrate hnormal hA hB hr q hq copy Y hslot, |
| 322 | copyVelocity_transport (imagData t f) parameter g hab gap shift rate amplitude normalScale |
| 323 | hrate hnormal hA hB hi q hq copy Y hslot] |
| 324 | simp only [smul_add, smul_comm Complex.I amplitude] |
| 325 | |
| 326 | omit [NormedAddCommGroup Q] [NormedSpace ℝ Q] in |
| 327 | theorem complexCopyPressure_transport (t : TangentData P ProblemStatement.Space) |
| 328 | (f : P × Plane → ComplexVector) (parameter : Q → P) |
| 329 | (g : Geometry) {a b : ℝ} (hab : a ≤ b) (gap : ℕ) |
| 330 | (shift rate amplitude normalScale referenceFrequency frequency : ℝ) |
| 331 | (hrate : 0 < rate) (hnormal : normalScale ≠ 0) |
| 332 | (hreference : referenceFrequency ≠ 0) (hfrequency : frequency ≠ 0) |
| 333 | {U : Set P} (hA : ContinuousOn t.linearData.coefficient (U ×ˢ univ)) |
| 334 | (hB : ContinuousOn t.linearData.forcingMap (U ×ˢ univ)) |
| 335 | (hf : ContinuousOn f (U ×ˢ univ)) (q : Q) (hq : parameter q ∈ U) |
| 336 | (copy : Frequency) (Y : Plane) |
| 337 | (hslot : ((CopySolveCompatibility.transportGeometry g gap shift rate hrate.ne').coordinates |
| 338 | copy Y).2 ∈ Icc a b) : |
| 339 | complexCopyPressure (transportTangent t parameter gap shift rate amplitude normalScale) |
| 340 | (transportSource f parameter gap rate amplitude) |
| 341 | (CopySolveCompatibility.transportGeometry g gap shift rate hrate.ne') hab copy frequency |
| 342 | (q, Y) = |
| 343 | ((rate * amplitude / normalScale) * (referenceFrequency / frequency)) • |
| 344 | complexCopyPressure t f g (CopySolveCompatibility.time_interval_mono shift hrate hab) |
| 345 | copy referenceFrequency (parameter q, coverPower gap Y) := by |
| 346 | have hr : ContinuousOn (realData t f).source (U ×ˢ univ) := |
| 347 | realPart.continuous.comp_continuousOn hf |
| 348 | have hi : ContinuousOn (imagData t f).source (U ×ˢ univ) := |
| 349 | imagPart.continuous.comp_continuousOn hf |
| 350 | simp only [complexCopyPressure, realData_transport, imagData_transport] |
| 351 | rw [copyPressure_transport (realData t f) parameter g hab gap shift rate amplitude normalScale |
| 352 | referenceFrequency frequency hrate hnormal hreference hfrequency hA hB hr q hq copy Y hslot, |
| 353 | copyPressure_transport (imagData t f) parameter g hab gap shift rate amplitude normalScale |
| 354 | referenceFrequency frequency hrate hnormal hreference hfrequency hA hB hi q hq copy Y hslot] |
| 355 | simp only [smul_add, Complex.real_smul] |
| 356 | ring |
| 357 | |
| 358 | omit [NormedAddCommGroup Q] [NormedSpace ℝ Q] in |
| 359 | /-- One actual reference velocity supplies every transported band view. -/ |
| 360 | theorem commonVelocity_transport (t : TangentData P ProblemStatement.Space) |
| 361 | (f : P × Plane → ComplexVector) (parameter : Q → P) |
| 362 | (g : Geometry) {a b : ℝ} (hab : a ≤ b) (gap : ℕ) |
| 363 | (shift rate amplitude normalScale : ℝ) (hrate : 0 < rate) (hnormal : normalScale ≠ 0) |
| 364 | {U : Set P} (hA : ContinuousOn t.linearData.coefficient (U ×ˢ univ)) |
| 365 | (hB : ContinuousOn t.linearData.forcingMap (U ×ˢ univ)) |
| 366 | (hf : ContinuousOn f (U ×ˢ univ)) |
| 367 | (cutoff : Plane → ℝ) |
| 368 | (hcutoff : support cutoff ⊆ univ ×ˢ Icc (shift + rate * a) (shift + rate * b)) |
| 369 | (q : Q) (hq : parameter q ∈ U) (Y : Plane) : |
| 370 | commonVelocity (transportTangent t parameter gap shift rate amplitude normalScale) |
| 371 | (transportSource f parameter gap rate amplitude) |
| 372 | (CopySolveCompatibility.transportGeometry g gap shift rate hrate.ne') hab |
| 373 | (cutoff ∘ CopySolveCompatibility.nativeTimeMap shift rate) (q, Y) = |
| 374 | amplitude • commonVelocity t f g (CopySolveCompatibility.time_interval_mono shift hrate hab) |
| 375 | cutoff (parameter q, coverPower gap Y) := by |
| 376 | unfold commonVelocity |
| 377 | apply periodizedCopies_transport_of_active g parameter gap shift rate amplitude hrate |
| 378 | cutoff hcutoff |
| 379 | intro copy hslot |
| 380 | exact complexCopyVelocity_transport t f parameter g hab gap shift rate amplitude normalScale |
| 381 | hrate hnormal hA hB hf q hq copy Y hslot |
| 382 | |
| 383 | omit [NormedAddCommGroup Q] [NormedSpace ℝ Q] in |
| 384 | /-- The actual common pressure has the derived clock, normal and carrier |
| 385 | frequency factors. It is not assigned the velocity's scaling weight. -/ |
| 386 | theorem commonPressure_transport (t : TangentData P ProblemStatement.Space) |
| 387 | (f : P × Plane → ComplexVector) (parameter : Q → P) |
| 388 | (g : Geometry) {a b : ℝ} (hab : a ≤ b) (gap : ℕ) |
| 389 | (shift rate amplitude normalScale referenceFrequency frequency : ℝ) |
| 390 | (hrate : 0 < rate) (hnormal : normalScale ≠ 0) |
| 391 | (hreference : referenceFrequency ≠ 0) (hfrequency : frequency ≠ 0) |
| 392 | {U : Set P} (hA : ContinuousOn t.linearData.coefficient (U ×ˢ univ)) |
| 393 | (hB : ContinuousOn t.linearData.forcingMap (U ×ˢ univ)) |
| 394 | (hf : ContinuousOn f (U ×ˢ univ)) |
| 395 | (cutoff : Plane → ℝ) |
| 396 | (hcutoff : support cutoff ⊆ univ ×ˢ Icc (shift + rate * a) (shift + rate * b)) |
| 397 | (q : Q) (hq : parameter q ∈ U) (Y : Plane) : |
| 398 | commonPressure (transportTangent t parameter gap shift rate amplitude normalScale) |
| 399 | (transportSource f parameter gap rate amplitude) |
| 400 | (CopySolveCompatibility.transportGeometry g gap shift rate hrate.ne') hab |
| 401 | (cutoff ∘ CopySolveCompatibility.nativeTimeMap shift rate) frequency (q, Y) = |
| 402 | ((rate * amplitude / normalScale) * (referenceFrequency / frequency)) • |
| 403 | commonPressure t f g (CopySolveCompatibility.time_interval_mono shift hrate hab) |
| 404 | cutoff referenceFrequency (parameter q, coverPower gap Y) := by |
| 405 | unfold commonPressure |
| 406 | apply periodizedCopies_transport_of_active g parameter gap shift rate |
| 407 | ((rate * amplitude / normalScale) * (referenceFrequency / frequency)) hrate cutoff hcutoff |
| 408 | intro copy hslot |
| 409 | exact complexCopyPressure_transport t f parameter g hab gap shift rate amplitude normalScale |
| 410 | referenceFrequency frequency hrate hnormal hreference hfrequency hA hB hf q hq copy Y hslot |
| 411 | |
| 412 | end ComplexTransport |
| 413 | |
| 414 | section ZeroEntry |
| 415 | |
| 416 | variable {P Q : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 417 | [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 418 | |
| 419 | private theorem interval_congr {E : Type} (F : (a b : ℝ) → a ≤ b → E) |
| 420 | {a b c d : ℝ} (hab : a ≤ b) (hcd : c ≤ d) (ha : a = c) (hb : b = d) : |
| 421 | F a b hab = F c d hcd := by |
| 422 | subst c |
| 423 | subst d |
| 424 | rfl |
| 425 | |
| 426 | omit [NormedAddCommGroup Q] [NormedSpace ℝ Q] in |
| 427 | /-- A reference interval `[0,L]` corresponds to the band interval |
| 428 | `[0,L/rate]`. Keeping the same numerical length would change the anchor |
| 429 | problem; this specialization retains the actual common reference solve. -/ |
| 430 | theorem commonVelocity_zeroEntry (t : TangentData P ProblemStatement.Space) |
| 431 | (f : P × Plane → ComplexVector) (parameter : Q → P) |
| 432 | (g : Geometry) (gap : ℕ) (L rate amplitude normalScale : ℝ) |
| 433 | (hL : 0 < L) (hrate : 0 < rate) (hnormal : normalScale ≠ 0) |
| 434 | {U : Set P} (hA : ContinuousOn t.linearData.coefficient (U ×ˢ univ)) |
| 435 | (hB : ContinuousOn t.linearData.forcingMap (U ×ˢ univ)) |
| 436 | (hf : ContinuousOn f (U ×ˢ univ)) |
| 437 | (cutoff : Plane → ℝ) (hcutoff : support cutoff ⊆ univ ×ˢ Icc 0 L) |
| 438 | (q : Q) (hq : parameter q ∈ U) (Y : Plane) : |
| 439 | commonVelocity (transportTangent t parameter gap 0 rate amplitude normalScale) |
| 440 | (transportSource f parameter gap rate amplitude) |
| 441 | (CopySolveCompatibility.transportGeometry g gap 0 rate hrate.ne') |
| 442 | (div_pos hL hrate).le (cutoff ∘ CopySolveCompatibility.nativeTimeMap 0 rate) (q, Y) = |
| 443 | amplitude • commonVelocity t f g hL.le cutoff (parameter q, coverPower gap Y) := by |
| 444 | have hlen : rate * (L / rate) = L := by field_simp |
| 445 | have hs : support cutoff ⊆ univ ×ˢ Icc (0 + rate * 0) (0 + rate * (L / rate)) := by |
| 446 | simpa only [mul_zero, zero_add, hlen] using hcutoff |
| 447 | have h := commonVelocity_transport t f parameter g (div_pos hL hrate).le gap 0 rate |
| 448 | amplitude normalScale hrate hnormal hA hB hf cutoff hs q hq Y |
| 449 | refine h.trans (congrArg (fun z : ComplexVector => amplitude • z) ?_) |
| 450 | exact interval_congr (fun a b hh => commonVelocity t f g (a := a) (b := b) hh cutoff |
| 451 | (parameter q, coverPower gap Y)) _ _ (by ring) (by simpa only [zero_add] using hlen) |
| 452 | |
| 453 | omit [NormedAddCommGroup Q] [NormedSpace ℝ Q] in |
| 454 | theorem commonPressure_zeroEntry (t : TangentData P ProblemStatement.Space) |
| 455 | (f : P × Plane → ComplexVector) (parameter : Q → P) |
| 456 | (g : Geometry) (gap : ℕ) (L rate amplitude normalScale referenceFrequency frequency : ℝ) |
| 457 | (hL : 0 < L) (hrate : 0 < rate) (hnormal : normalScale ≠ 0) |
| 458 | (hreference : referenceFrequency ≠ 0) (hfrequency : frequency ≠ 0) |
| 459 | {U : Set P} (hA : ContinuousOn t.linearData.coefficient (U ×ˢ univ)) |
| 460 | (hB : ContinuousOn t.linearData.forcingMap (U ×ˢ univ)) |
| 461 | (hf : ContinuousOn f (U ×ˢ univ)) |
| 462 | (cutoff : Plane → ℝ) (hcutoff : support cutoff ⊆ univ ×ˢ Icc 0 L) |
| 463 | (q : Q) (hq : parameter q ∈ U) (Y : Plane) : |
| 464 | commonPressure (transportTangent t parameter gap 0 rate amplitude normalScale) |
| 465 | (transportSource f parameter gap rate amplitude) |
| 466 | (CopySolveCompatibility.transportGeometry g gap 0 rate hrate.ne') |
| 467 | (div_pos hL hrate).le (cutoff ∘ CopySolveCompatibility.nativeTimeMap 0 rate) frequency |
| 468 | (q, Y) = |
| 469 | ((rate * amplitude / normalScale) * (referenceFrequency / frequency)) • |
| 470 | commonPressure t f g hL.le cutoff referenceFrequency (parameter q, coverPower gap Y) := by |
| 471 | have hlen : rate * (L / rate) = L := by field_simp |
| 472 | have hs : support cutoff ⊆ univ ×ˢ Icc (0 + rate * 0) (0 + rate * (L / rate)) := by |
| 473 | simpa only [mul_zero, zero_add, hlen] using hcutoff |
| 474 | have h := commonPressure_transport t f parameter g (div_pos hL hrate).le gap 0 rate |
| 475 | amplitude normalScale referenceFrequency frequency hrate hnormal hreference hfrequency |
| 476 | hA hB hf cutoff hs q hq Y |
| 477 | refine h.trans (congrArg (fun z : ℂ => |
| 478 | ((rate * amplitude / normalScale) * (referenceFrequency / frequency)) • z) ?_) |
| 479 | exact interval_congr (fun a b hh => commonPressure t f g (a := a) (b := b) hh cutoff |
| 480 | referenceFrequency (parameter q, coverPower gap Y)) _ _ (by ring) |
| 481 | (by simpa only [zero_add] using hlen) |
| 482 | |
| 483 | end ZeroEntry |
| 484 | |
| 485 | end NavierStokes.ScaledTangentTransport |