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

chore(NavierStokes/Radial): delete 42 declarations nothing uses
Browse filesPart of #10. Deletes 39 of the unit's 42 declarations (379 lines) from the six NavierStokes/Radial* files. Three stay back: energy_moment_weight, whose docstring cites equation (13) of the Navier-Stokes paper, and the two definitions it uses, radiusProfile and angularVelocityProfile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+0 −59 NavierStokes/RadialAlias.lean View file
| @@ -179,15 +179,6 @@ theorem sourceJet_succ (J : (ℝ × E → F) → (ℝ × E → F)) (f : ℝ × E | ||
| 179 | 179 | sourceJet J f (p + 1) = slowDeriv (J (sourceJet J f p)) := by |
| 180 | 180 | simp only [sourceJet, Function.iterate_succ_apply', Function.comp_apply] |
| 181 | 181 | |
| 182 | -/-- When the inverse commutes with slow differentiation, these are literally | |
| 183 | -`∂u^p (J^p f)`, as in the manuscript. -/ | |
| 184 | -theorem sourceJet_eq_deriv_inverse_iterate | |
| 185 | - (J : (ℝ × E → F) → (ℝ × E → F)) (f : ℝ × E → F) (p : ℕ) | |
| 186 | - (hcomm : Function.Commute slowDeriv J) : | |
| 187 | - sourceJet J f p = slowDeriv^[p] (J^[p] f) := by | |
| 188 | - rw [sourceJet, hcomm.comp_iterate] | |
| 189 | - rfl | |
| 190 | - | |
| 191 | 182 | /-- Arbitrarily many integrations by parts. The hypotheses concern actual |
| 192 | 183 | directional derivatives, smoothness and support; no integral estimate is assumed. -/ |
| 193 | 184 | theorem wholeAlias_sourceJet [CompleteSpace F] {a b M : ℝ} {v Y : E} |
| @@ -211,28 +202,6 @@ theorem wholeAlias_sourceJet [CompleteSpace F] {a b M : ℝ} {v Y : E} | ||
| 211 | 202 | rw [hr p (Nat.lt_succ_self p), ← sourceJet_succ] at hstep |
| 212 | 203 | rw [hp, hstep, smul_smul, ← pow_succ] |
| 213 | 204 | |
| 214 | -/-- The manuscript's literal `∂u^p J^p` form, with the sign displayed. -/ | |
| 215 | -theorem wholeAlias_inverse_iterate [CompleteSpace F] {a b M : ℝ} {v Y : E} | |
| 216 | - (J : (ℝ × E → F) → (ℝ × E → F)) (f : ℝ × E → F) (p : ℕ) (hM : M ≠ 0) | |
| 217 | - (hcomm : Function.Commute slowDeriv J) | |
| 218 | - (hJ : ∀ n < p, ContDiff ℝ 1 (J (sourceJet J f n))) | |
| 219 | - (hs : ∀ n < p, RadiallySupported a b (J (sourceJet J f n))) | |
| 220 | - (hr : ∀ n < p, directionalDeriv v (J (sourceJet J f n)) = sourceJet J f n) : | |
| 221 | - wholeAlias M v Y f = (-M⁻¹) ^ p • | |
| 222 | - wholeAlias M v Y (slowDeriv^[p] (J^[p] f)) := by | |
| 223 | - rw [← sourceJet_eq_deriv_inverse_iterate J f p hcomm] | |
| 224 | - exact wholeAlias_sourceJet J f p hM hJ hs hr | |
| 225 | - | |
| 226 | -theorem sourceJet_continuous | |
| 227 | - (J : (ℝ × E → F) → (ℝ × E → F)) (f : ℝ × E → F) (p : ℕ) | |
| 228 | - (hf : Continuous f) (hJ : ∀ n < p, ContDiff ℝ 1 (J (sourceJet J f n))) : | |
| 229 | - Continuous (sourceJet J f p) := by | |
| 230 | - cases p with | |
| 231 | - | zero => exact hf | |
| 232 | - | succ p => | |
| 233 | - rw [sourceJet_succ] | |
| 234 | - exact slowDeriv_continuous (hJ p (Nat.lt_succ_self p)) | |
| 235 | - | |
| 236 | 205 | theorem sourceJet_radiallySupported {a b : ℝ} |
| 237 | 206 | (J : (ℝ × E → F) → (ℝ × E → F)) (f : ℝ × E → F) (p : ℕ) |
| 238 | 207 | (hf : RadiallySupported a b f) |
| @@ -244,32 +213,4 @@ theorem sourceJet_radiallySupported {a b : ℝ} | ||
| 244 | 213 | rw [sourceJet_succ] |
| 245 | 214 | exact radialSupport_slowDeriv (hs p (Nat.lt_succ_self p)) |
| 246 | 215 | |
| 247 | -theorem wholeAlias_norm_le {a b M C : ℝ} {v Y : E} {f : ℝ × E → F} | |
| 248 | - (hab : a ≤ b) (hf : Continuous f) (hs : RadiallySupported a b f) | |
| 249 | - (hbound : ∀ u ∈ Icc a b, ∀ Z : E, ‖f (u, Z)‖ ≤ C) : | |
| 250 | - ‖wholeAlias M v Y f‖ ≤ C * |b - a| := by | |
| 251 | - rw [← aliasIntegral_eq_wholeAlias hf hs] | |
| 252 | - apply intervalIntegral.norm_integral_le_of_norm_le_const | |
| 253 | - intro u hu | |
| 254 | - have hu' : u ∈ Icc a b := by | |
| 255 | - simpa only [uIcc_of_le hab] using uIoc_subset_uIcc hu | |
| 256 | - exact hbound u hu' _ | |
| 257 | - | |
| 258 | -/-- The all-order gain has a constant uniform in the translation parameter Y | |
| 259 | -and in M whenever the last source-jet bound is uniform. -/ | |
| 260 | -theorem wholeAlias_sourceJet_norm_le [CompleteSpace F] {a b M C : ℝ} {v Y : E} | |
| 261 | - (J : (ℝ × E → F) → (ℝ × E → F)) (f : ℝ × E → F) (p : ℕ) | |
| 262 | - (hab : a ≤ b) (hM : M ≠ 0) (hf : Continuous f) (hfs : RadiallySupported a b f) | |
| 263 | - (hJ : ∀ n < p, ContDiff ℝ 1 (J (sourceJet J f n))) | |
| 264 | - (hs : ∀ n < p, RadiallySupported a b (J (sourceJet J f n))) | |
| 265 | - (hr : ∀ n < p, directionalDeriv v (J (sourceJet J f n)) = sourceJet J f n) | |
| 266 | - (hbound : ∀ u ∈ Icc a b, ∀ Z : E, ‖sourceJet J f p (u, Z)‖ ≤ C) : | |
| 267 | - ‖wholeAlias M v Y f‖ ≤ (|M|⁻¹) ^ p * (C * |b - a|) := by | |
| 268 | - rw [wholeAlias_sourceJet J f p hM hJ hs hr, norm_smul, Real.norm_eq_abs, | |
| 269 | - abs_pow, abs_neg, abs_inv] | |
| 270 | - exact mul_le_mul_of_nonneg_left | |
| 271 | - (wholeAlias_norm_le hab (sourceJet_continuous J f p hf hJ) | |
| 272 | - (sourceJet_radiallySupported J f p hfs hs) hbound) | |
| 273 | - (pow_nonneg (inv_nonneg.mpr (abs_nonneg M)) p) | |
| 274 | - | |
| 275 | 216 | end NavierStokes.RadialAlias |
+0 −21 NavierStokes/RadialFluxResidual.lean View file
| @@ -225,27 +225,6 @@ theorem residualRadial_radialB {V : Profile} (F U P : Profile) {p : ProfilePoint | ||
| 225 | 225 | unfold fluxResidual radialB |
| 226 | 226 | field_simp [hne] ; ring |
| 227 | 227 | |
| 228 | -/-- The actual physical radial residual multiplied by `r`, expressed | |
| 229 | -without introducing a square root or a radial unit vector. All regularity | |
| 230 | -hypotheses are local at the evaluated point with `s > 0`. -/ | |
| 231 | -theorem physical_radial_flux_residual {V F U P : Profile} {t : ℝ} {x : Space} | |
| 232 | - (hV : ContDiffAt ℝ 2 V (profilePoint t x)) | |
| 233 | - (hF : ContDiffAt ℝ 2 F (profilePoint t x)) | |
| 234 | - (hU : ContDiffAt ℝ 2 U (profilePoint t x)) | |
| 235 | - (hP : DifferentiableAt ℝ P (profilePoint t x)) (hs : 0 < radialEnergy x) : | |
| 236 | - x 0 * navierStokesResidual (AxisymmetricResidual.velocity (radialB V) F U) | |
| 237 | - (pressure P) t x 0 + | |
| 238 | - x 1 * navierStokesResidual (AxisymmetricResidual.velocity (radialB V) F U) | |
| 239 | - (pressure P) t x 1 = fluxResidual V F U P (profilePoint t x) := by | |
| 240 | - have hB := contDiffAt_radialB hV (ne_of_gt hs) | |
| 241 | - have hR := LocalAxisymmetricResidual.navierStokesResidual_velocity hB hF hU hP | |
| 242 | - simp only [hR, pack_zero, pack_one] | |
| 243 | - calc | |
| 244 | - _ = 2 * radialEnergy x * residualRadial (radialB V) F U P (profilePoint t x) := by | |
| 245 | - unfold radialEnergy | |
| 246 | - ring | |
| 247 | - _ = _ := residualRadial_radialB F U P hV hs | |
| 248 | - | |
| 249 | 228 | end |
| 250 | 229 | |
| 251 | 230 | end NavierStokes.RadialFluxResidual |
+0 −30 NavierStokes/RadialHeatProfile.lean View file
| @@ -238,15 +238,6 @@ theorem profile_derivative_bound {a : ℝ} (ha : 1 < a) (n : ℕ) {z : ℝ} (hz | ||
| 238 | 238 | abs_of_pos (moment_pos ha n hz)] |
| 239 | 239 | exact mul_le_mul_of_nonneg_left (moment_le_gamma ha n hz) (abs_nonneg _) |
| 240 | 240 | |
| 241 | -theorem iteratedDeriv_profile {a z : ℝ} (ha : 1 < a) (n : ℕ) (hz : 0 < z) : | |
| 242 | - iteratedDeriv n (profile a) z = profileJet a n z := by | |
| 243 | - have hc : ContDiffAt ℝ n (profile a) z := | |
| 244 | - ((profile_contDiffOn ha).contDiffAt (Ici_mem_nhds hz)).of_le | |
| 245 | - (WithTop.coe_le_coe.mpr le_top) | |
| 246 | - have he := iteratedFDerivWithin_eq_iteratedFDeriv (uniqueDiffOn_Ici 0) hc hz.le | |
| 247 | - simpa only [iteratedDerivWithin, iteratedDeriv, he] using | |
| 248 | - iteratedDerivWithin_profile ha n hz.le | |
| 249 | - | |
| 250 | 241 | /-! ## The vanishing boundary term and the actual ODE -/ |
| 251 | 242 | |
| 252 | 243 | def boundaryTerm (a z v : ℝ) : ℝ := |
| @@ -344,22 +335,6 @@ theorem profileJet_ode {a z : ℝ} (ha : 1 < a) (hz : 0 ≤ z) : | ||
| 344 | 335 | ring |
| 345 | 336 | _ = 0 := by rw [moment_ode ha hz, mul_zero] |
| 346 | 337 | |
| 347 | -/-- The stated ODE holds at the endpoint with derivatives within the half-line. -/ | |
| 348 | -theorem profile_ode_within {a z : ℝ} (ha : 1 < a) (hz : 0 ≤ z) : | |
| 349 | - z ^ 2 * iteratedDerivWithin 2 (profile a) (Ici 0) z + | |
| 350 | - (1 + 2 * a * z) * derivWithin (profile a) (Ici 0) z + | |
| 351 | - a * (a - 1) * profile a z = 0 := by | |
| 352 | - rw [← iteratedDerivWithin_one, iteratedDerivWithin_profile ha 1 hz, | |
| 353 | - iteratedDerivWithin_profile ha 2 hz] | |
| 354 | - exact profileJet_ode ha hz | |
| 355 | - | |
| 356 | -/-- On the open half-line these are the ordinary first and second derivatives. -/ | |
| 357 | -theorem profile_ode {a z : ℝ} (ha : 1 < a) (hz : 0 < z) : | |
| 358 | - z ^ 2 * iteratedDeriv 2 (profile a) z + (1 + 2 * a * z) * deriv (profile a) z + | |
| 359 | - a * (a - 1) * profile a z = 0 := by | |
| 360 | - rw [← iteratedDeriv_one, iteratedDeriv_profile ha 1 hz, iteratedDeriv_profile ha 2 hz] | |
| 361 | - exact profileJet_ode ha hz.le | |
| 362 | - | |
| 363 | 338 | /-! ## Strict slope control and a quantitative first-order estimate -/ |
| 364 | 339 | |
| 365 | 340 | theorem kernel_slope_gap_pos (a : ℝ) {z v : ℝ} (hz : 0 ≤ z) (hv : 0 < v) : |
| @@ -415,11 +390,6 @@ theorem profile_derivWithin {a z : ℝ} (ha : 1 < a) (hz : 0 ≤ z) : | ||
| 415 | 390 | simpa [profileJet, derivativeCoeff] using |
| 416 | 391 | (profile_hasDerivWithinAt ha hz).derivWithin ((uniqueDiffOn_Ici 0) z hz) |
| 417 | 392 | |
| 418 | -theorem profile_deriv {a z : ℝ} (ha : 1 < a) (hz : 0 < z) : | |
| 419 | - deriv (profile a) z = (Real.Gamma a)⁻¹ * (1 - a) * moment a 1 z := by | |
| 420 | - simpa [profileJet, derivativeCoeff] using | |
| 421 | - ((profile_hasDerivWithinAt ha hz.le).hasDerivAt (Ici_mem_nhds hz)).deriv | |
| 422 | - | |
| 423 | 393 | theorem profile_derivWithin_neg {a z : ℝ} (ha : 1 < a) (hz : 0 ≤ z) : |
| 424 | 394 | derivWithin (profile a) (Ici 0) z < 0 := by |
| 425 | 395 | rw [profile_derivWithin ha hz] |
+0 −99 NavierStokes/RadialModulation.lean View file
| @@ -33,7 +33,6 @@ abbrev PrimitiveProfile := PhasePoint → ℝ | ||
| 33 | 33 | |
| 34 | 34 | def phasePoint (n X η : ℝ) : PhasePoint := (X, η, n * Real.log X) |
| 35 | 35 | def partialX (A : PrimitiveProfile) (z : PhasePoint) : ℝ := fderiv ℝ A z (1, 0, 0) |
| 36 | -def partialEta (A : PrimitiveProfile) (z : PhasePoint) : ℝ := fderiv ℝ A z (0, 1, 0) | |
| 37 | 36 | def partialTheta (A : PrimitiveProfile) (z : PhasePoint) : ℝ := fderiv ℝ A z (0, 0, 1) |
| 38 | 37 | |
| 39 | 38 | def modulatedE (n : ℝ) (E : BaseProfile) (A : PrimitiveProfile) (X η : ℝ) : ℝ := |
| @@ -78,16 +77,6 @@ theorem phase_hasDerivAt_X | ||
| 78 | 77 | rw [hv, map_add, map_smul] at hc |
| 79 | 78 | simpa only [id_eq, phasePoint, Function.comp_def, partialX, partialTheta, smul_eq_mul] using hc |
| 80 | 79 | |
| 81 | -/-- The rapid phase is independent of η, so no frequency enters this derivative. -/ | |
| 82 | -theorem phase_hasDerivAt_eta | |
| 83 | - (A : PrimitiveProfile) (n X η : ℝ) | |
| 84 | - (hA : DifferentiableAt ℝ A (phasePoint n X η)) : | |
| 85 | - HasDerivAt (fun e => A (phasePoint n X e)) | |
| 86 | - (partialEta A (phasePoint n X η)) η := by | |
| 87 | - have hg := (hasDerivAt_const η X).prodMk | |
| 88 | - ((hasDerivAt_id η).prodMk (hasDerivAt_const η (n * Real.log X))) | |
| 89 | - exact hA.hasFDerivAt.comp_hasDerivAt η hg | |
| 90 | - | |
| 91 | 80 | /-- Exact radial derivative of the multiplicative angular modulation. -/ |
| 92 | 81 | theorem modulatedE_hasDerivAt_X |
| 93 | 82 | (E : BaseProfile) (A : PrimitiveProfile) (n X η : ℝ) (hn : n ≠ 0) (hX : X ≠ 0) |
| @@ -113,24 +102,6 @@ theorem modulatedU_hasDerivAt_X | ||
| 113 | 102 | apply hd.congr_deriv |
| 114 | 103 | field_simp; ring |
| 115 | 104 | |
| 116 | -theorem modulatedE_hasDerivAt_eta | |
| 117 | - (E : BaseProfile) (A : PrimitiveProfile) (n X η : ℝ) | |
| 118 | - (hE : DifferentiableAt ℝ (E X) η) | |
| 119 | - (hA : DifferentiableAt ℝ A (phasePoint n X η)) : | |
| 120 | - HasDerivAt (modulatedE n E A X) | |
| 121 | - (deriv (E X) η * Real.exp (A (phasePoint n X η) / n) + | |
| 122 | - E X η * (Real.exp (A (phasePoint n X η) / n) * | |
| 123 | - (partialEta A (phasePoint n X η) / n))) η := by | |
| 124 | - exact hE.hasDerivAt.mul (((phase_hasDerivAt_eta A n X η hA).div_const n).exp) | |
| 125 | - | |
| 126 | -theorem modulatedU_hasDerivAt_eta | |
| 127 | - (U : BaseProfile) (B : PrimitiveProfile) (n X η : ℝ) | |
| 128 | - (hU : DifferentiableAt ℝ (U X) η) | |
| 129 | - (hB : DifferentiableAt ℝ B (phasePoint n X η)) : | |
| 130 | - HasDerivAt (modulatedU n U B X) | |
| 131 | - (deriv (U X) η + partialEta B (phasePoint n X η) / n) η := by | |
| 132 | - exact hU.hasDerivAt.add ((phase_hasDerivAt_eta B n X η hB).div_const n) | |
| 133 | - | |
| 134 | 105 | /-- Exact angular shear: the only error after the primitive prescription is |
| 135 | 106 | the slow radial derivative of `A`, divided by frequency. -/ |
| 136 | 107 | theorem angular_shear_exact |
| @@ -164,34 +135,6 @@ theorem axial_shear_exact | ||
| 164 | 135 | rw [hprescribed] |
| 165 | 136 | field_simp [Real.exp_ne_zero]; ring |
| 166 | 137 | |
| 167 | -/-- Explicit uniform value estimate once the frequency exceeds the bound on A. -/ | |
| 168 | -theorem angular_value_bound | |
| 169 | - (E A n CE CA : ℝ) (hn : 0 < n) (hE : |E| ≤ CE) (hA : |A| ≤ CA) (hCA : CA ≤ n) : | |
| 170 | - |E * Real.exp (A / n) - E| ≤ 2 * CE * CA / n := by | |
| 171 | - have hCE : 0 ≤ CE := (abs_nonneg E).trans hE | |
| 172 | - have hCA0 : 0 ≤ CA := (abs_nonneg A).trans hA | |
| 173 | - have hsmall : |A / n| ≤ 1 := by | |
| 174 | - rw [abs_div, abs_of_pos hn] | |
| 175 | - exact (div_le_one hn).mpr (hA.trans hCA) | |
| 176 | - calc | |
| 177 | - |E * Real.exp (A / n) - E| = |E| * |Real.exp (A / n) - 1| := by | |
| 178 | - rw [← abs_mul] | |
| 179 | - congr 1 | |
| 180 | - ring | |
| 181 | - _ ≤ CE * (2 * |A / n|) := | |
| 182 | - mul_le_mul hE (Real.abs_exp_sub_one_le hsmall) (abs_nonneg _) hCE | |
| 183 | - _ ≤ CE * (2 * (CA / n)) := by | |
| 184 | - rw [abs_div, abs_of_pos hn] | |
| 185 | - gcongr | |
| 186 | - _ = 2 * CE * CA / n := by ring | |
| 187 | - | |
| 188 | -theorem axial_value_bound | |
| 189 | - (U B n CB : ℝ) (hn : 0 < n) (hB : |B| ≤ CB) : | |
| 190 | - |U + B / n - U| ≤ CB / n := by | |
| 191 | - have heq : U + B / n - U = B / n := by ring | |
| 192 | - rw [heq, abs_div, abs_of_pos hn] | |
| 193 | - exact div_le_div_of_nonneg_right hB hn.le | |
| 194 | - | |
| 195 | 138 | /-- The primitive is an actual interval integral. -/ |
| 196 | 139 | def periodicPrimitive (q : ℝ → ℝ) (θ : ℝ) : ℝ := intervalIntegral q 0 θ volume |
| 197 | 140 | |
| @@ -210,14 +153,6 @@ theorem periodicPrimitive_periodic | ||
| 210 | 153 | simpa only [periodicPrimitive, zero_add, hzero, add_zero] using |
| 211 | 154 | hperiodic.intervalIntegral_add_eq_add 0 θ (fun a b => hq.intervalIntegrable a b) |
| 212 | 155 | |
| 213 | -/-- The integral primitive inherits all finite smoothness orders from q. -/ | |
| 214 | -theorem periodicPrimitive_contDiff | |
| 215 | - (q : ℝ → ℝ) (hq : ContDiff ℝ ∞ q) : ContDiff ℝ ∞ (periodicPrimitive q) := by | |
| 216 | - apply contDiff_infty_iff_deriv.mpr | |
| 217 | - have hd : deriv (periodicPrimitive q) = q := | |
| 218 | - funext (fun θ => (periodicPrimitive_hasDerivAt q hq.continuous θ).deriv) | |
| 219 | - exact ⟨fun θ => (periodicPrimitive_hasDerivAt q hq.continuous θ).differentiableAt, hd.symm ▸ hq⟩ | |
| 220 | - | |
| 221 | 156 | /-- Subtracting the primitive's mean fixes the zero-mean normalization. -/ |
| 222 | 157 | def zeroMeanPrimitive (q : ℝ → ℝ) (θ : ℝ) : ℝ := |
| 223 | 158 | periodicPrimitive q θ - intervalIntegral (periodicPrimitive q) 0 1 volume |
| @@ -238,40 +173,6 @@ theorem zeroMeanPrimitive_integral | ||
| 238 | 173 | (continuous_const.intervalIntegrable 0 1)] |
| 239 | 174 | simp |
| 240 | 175 | |
| 241 | -/-- Every smooth period-one, mean-zero source has an actual smooth period-one, | |
| 242 | -mean-zero primitive, with its derivative proved by the fundamental theorem. -/ | |
| 243 | -theorem exists_smooth_periodic_zeroMean_primitive | |
| 244 | - (q : ℝ → ℝ) (hq : ContDiff ℝ ∞ q) (hperiodic : Function.Periodic q 1) | |
| 245 | - (hzero : intervalIntegral q 0 1 volume = 0) : | |
| 246 | - ∃ A : ℝ → ℝ, ContDiff ℝ ∞ A ∧ Function.Periodic A 1 ∧ | |
| 247 | - intervalIntegral A 0 1 volume = 0 ∧ ∀ θ, HasDerivAt A (q θ) θ := by | |
| 248 | - refine ⟨zeroMeanPrimitive q, (periodicPrimitive_contDiff q hq).sub contDiff_const, ?_, | |
| 249 | - zeroMeanPrimitive_integral q hq.continuous, zeroMeanPrimitive_hasDerivAt q hq.continuous⟩ | |
| 250 | - intro θ | |
| 251 | - unfold zeroMeanPrimitive | |
| 252 | - rw [periodicPrimitive_periodic q hq.continuous hperiodic hzero θ] | |
| 253 | - | |
| 254 | -/-- Interface for a loop with prescribed mean: subtract the nominal shear and | |
| 255 | -scale it, then construct its normalized primitive. Choosing `c = -1/2` gives | |
| 256 | -the angular primitive; `c = E/2` gives the axial primitive. -/ | |
| 257 | -theorem exists_primitive_of_prescribed_mean | |
| 258 | - (f : ℝ → ℝ) (hf : ContDiff ℝ ∞ f) (hperiodic : Function.Periodic f 1) | |
| 259 | - (m c : ℝ) (hmean : intervalIntegral f 0 1 volume = m) : | |
| 260 | - ∃ A : ℝ → ℝ, ContDiff ℝ ∞ A ∧ Function.Periodic A 1 ∧ | |
| 261 | - intervalIntegral A 0 1 volume = 0 ∧ ∀ θ, HasDerivAt A (c * (f θ - m)) θ := by | |
| 262 | - have hq : ContDiff ℝ ∞ (fun θ => c * (f θ - m)) := | |
| 263 | - contDiff_const.mul (hf.sub contDiff_const) | |
| 264 | - have hp : Function.Periodic (fun θ => c * (f θ - m)) 1 := by | |
| 265 | - intro θ | |
| 266 | - change c * (f (θ + 1) - m) = c * (f θ - m) | |
| 267 | - rw [hperiodic θ] | |
| 268 | - have hz : intervalIntegral (fun θ => c * (f θ - m)) 0 1 volume = 0 := by | |
| 269 | - rw [intervalIntegral.integral_const_mul, | |
| 270 | - intervalIntegral.integral_sub (hf.continuous.intervalIntegrable 0 1) | |
| 271 | - (continuous_const.intervalIntegrable 0 1)] | |
| 272 | - simp [hmean] | |
| 273 | - exact exists_smooth_periodic_zeroMean_primitive (fun θ => c * (f θ - m)) hq hp hz | |
| 274 | - | |
| 275 | 176 | /-! ### Uniform bounds for every fixed parameter jet -/ |
| 276 | 177 | |
| 277 | 178 | /-- Coordinates are amplitude, radius, parameter, periodic angle. -/ |
+0 −52 NavierStokes/RadialPullback.lean View file
| @@ -79,9 +79,6 @@ theorem inverseChart_contDiff {a : ℝ} (ha : 0 < a) (d : ℝ) : | ||
| 79 | 79 | (positiveRadius_contDiff (a ^ d / 4)).rpow_const_of_ne |
| 80 | 80 | (fun U => (positiveRadius_pos (div_pos (Real.rpow_pos_of_pos ha d) (by norm_num)) U).ne') |
| 81 | 81 | |
| 82 | -theorem powerChart_pos {a : ℝ} (ha : 0 < a) (d R : ℝ) : 0 < powerChart d a R := | |
| 83 | - Real.rpow_pos_of_pos (positiveRadius_pos (by positivity) R) d | |
| 84 | - | |
| 85 | 82 | theorem inverseChart_pos {a : ℝ} (ha : 0 < a) (d U : ℝ) : 0 < inverseChart d a U := |
| 86 | 83 | Real.rpow_pos_of_pos |
| 87 | 84 | (positiveRadius_pos (div_pos (Real.rpow_pos_of_pos ha d) (by norm_num)) U) d⁻¹ |
| @@ -104,16 +101,6 @@ theorem inverseChart_power {a R d : ℝ} (ha : 0 < a) (hd : 0 < d) (hR : a ≤ R | ||
| 104 | 101 | have hRU : a ^ d ≤ R ^ d := Real.rpow_le_rpow ha.le hR hd.le |
| 105 | 102 | rw [inverseChart_eq ha d (by linarith), Real.rpow_rpow_inv (ha.le.trans hR) hd.ne'] |
| 106 | 103 | |
| 107 | -theorem powerChart_inverse {a U d : ℝ} (ha : 0 < a) (hd : 0 < d) (hU : a ^ d ≤ U) : | |
| 108 | - powerChart d a (inverseChart d a U) = U := by | |
| 109 | - have haU : 0 < a ^ d := Real.rpow_pos_of_pos ha d | |
| 110 | - have hUp : 0 < U := haU.trans_le hU | |
| 111 | - have hR : a ≤ U ^ d⁻¹ := by | |
| 112 | - have h := Real.rpow_le_rpow haU.le hU (inv_pos.mpr hd).le | |
| 113 | - simpa only [Real.rpow_rpow_inv ha.le hd.ne'] using h | |
| 114 | - rw [inverseChart_eq ha d (by linarith), powerChart_eq ha (by linarith) d, | |
| 115 | - Real.rpow_inv_rpow hUp.le hd.ne'] | |
| 116 | - | |
| 117 | 104 | theorem inverseChart_rpow {a U d : ℝ} (ha : 0 < a) (hd : 0 < d) (hU : a ^ d ≤ U) : |
| 118 | 105 | (inverseChart d a U) ^ d = U := by |
| 119 | 106 | have haU := Real.rpow_pos_of_pos ha d |
| @@ -276,18 +263,6 @@ theorem physicalGraphDeriv_pullback {a d M : ℝ} (ha : 0 < a) (v : E) | ||
| 276 | 263 | rw [hv, map_smul] |
| 277 | 264 | rfl |
| 278 | 265 | |
| 279 | -/-- Pure auxiliary derivatives are unchanged by the radial coordinate map. -/ | |
| 280 | -theorem auxiliaryDeriv_pullback {a d : ℝ} (ha : 0 < a) (w : E) | |
| 281 | - {F : ℝ × E → V} (z : ℝ × E) (hz : a / 2 < z.1) | |
| 282 | - (hF : DifferentiableAt ℝ F (liftChart (powerChart d a) z)) : | |
| 283 | - TransportPrimitive.fixedDeriv (0, w) (pullback d a F) z = | |
| 284 | - TransportPrimitive.fixedDeriv (0, w) F (liftChart (powerChart d a) z) := by | |
| 285 | - have h := hF.hasFDerivAt.comp z (liftChart_hasFDerivAt z (powerChart_hasDerivAt ha hz d)) | |
| 286 | - unfold TransportPrimitive.fixedDeriv pullback | |
| 287 | - rw [h.fderiv, ContinuousLinearMap.comp_apply] | |
| 288 | - congr 1 | |
| 289 | - ext <;> simp | |
| 290 | - | |
| 291 | 266 | /-- The positive power substitution includes the actual radial Jacobian. -/ |
| 292 | 267 | theorem power_substitution {a R d : ℝ} (ha : 0 < a) (hR : a ≤ R) |
| 293 | 268 | (F : ℝ → V) (hF : Continuous F) : |
| @@ -321,18 +296,6 @@ theorem normalized_radial_integral {a R d : ℝ} (ha : 0 < a) (hd : 0 < d) (hR : | ||
| 321 | 296 | rw [normalizeSource_at_power ha hd has, smul_smul, |
| 322 | 297 | mul_inv_cancel₀ (radialJacobian_pos hd (ha.trans_le has)).ne', one_smul] |
| 323 | 298 | |
| 324 | -/-- The total transformed integral has exactly the original physical radial | |
| 325 | -measure. In particular no Jacobian remains when taking a torus mean later. -/ | |
| 326 | -theorem total_normalized_eq_radialIntegral {a b d : ℝ} | |
| 327 | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) {g : ℝ × E → V} | |
| 328 | - (hg : ContDiff ℝ ∞ g) (hs : RadialAlias.RadiallySupported a b g) | |
| 329 | - (M U : ℝ) (v Y : E) : | |
| 330 | - TransportPrimitive.totalIntegral M v (normalizeSource d a g) (U, Y) = | |
| 331 | - ∫ s in a..b, g (s, Y + (M * (s ^ d - U)) • v) := by | |
| 332 | - rw [TransportPrimitive.totalIntegral_eq_radialInterval (normalizeSource_contDiff ha hd hg).continuous | |
| 333 | - (normalizeSource_supported ha hab hd hs)] | |
| 334 | - exact normalized_radial_integral ha hd hab.le hg M U v Y | |
| 335 | - | |
| 336 | 299 | noncomputable def physicalCompact (d a b M : ℝ) (v : E) (g : ℝ × E → V) : ℝ × E → V := |
| 337 | 300 | pullback d a (TransportPrimitive.compactIntegral |
| 338 | 301 | (TransportPrimitive.interiorCutoff (a ^ d) (b ^ d)) M v (normalizeSource d a g)) |
| @@ -840,21 +803,6 @@ theorem meanClass_physicalCompact {a b d cL cR : ℝ} | ||
| 840 | 803 | rw [logStrip_majorant_eq ha hcL hcR ε S hε hεone hS α (K * C) p n z hz] |
| 841 | 804 | simpa only [mul_assoc] using hout |
| 842 | 805 | |
| 843 | -theorem supported_meanClass_physicalCompact {a b d cL cR : ℝ} | |
| 844 | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) | |
| 845 | - (ε S : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hS : ∀ n, 1 ≤ S n) | |
| 846 | - (α : ℝ) (M : ℕ → ℝ) (v : ℕ → E) (g : ℕ → ℝ × E → V) | |
| 847 | - (hg : ∀ n, ContDiff ℝ ∞ (g n)) (hs : ∀ n, RadialAlias.RadiallySupported a b (g n)) | |
| 848 | - (hclass : WeightedClasses.MeanClass | |
| 849 | - (logStripData a b cL cR ha hcL hcR ε S hε hεone hS) α g) : | |
| 850 | - let F := fun n => physicalCompact d a b (M n) (v n) (g n) | |
| 851 | - (∀ n, ContDiff ℝ ∞ (F n)) ∧ | |
| 852 | - (∀ n, RadialAlias.RadiallySupported a b (F n)) ∧ | |
| 853 | - WeightedClasses.MeanClass (logStripData a b cL cR ha hcL hcR ε S hε hεone hS) α F := by | |
| 854 | - refine ⟨?_, ?_, meanClass_physicalCompact ha hab hd hcL hcR ε S hε hεone hS α M v g hg hs hclass⟩ | |
| 855 | - · exact fun n => physicalCompact_contDiff ha hab hd (hg n) (hs n) (M n) (v n) | |
| 856 | - · exact fun n => physicalCompact_supported ha hab hd (hg n) (hs n) (M n) (v n) | |
| 857 | - | |
| 858 | 806 | end Weighted |
| 859 | 807 | |
| 860 | 808 | end NavierStokes.RadialPullback |
+0 −118 NavierStokes/RadialSchedule.lean View file
| @@ -38,13 +38,6 @@ def idealTransport (h η : ℝ) : ℝ := | ||
| 38 | 38 | /-- The logarithmic shape derivative of `(1 + η²)⁻¹`. -/ |
| 39 | 39 | def logShapeDerivative (η : ℝ) : ℝ := -(2 * η / (1 + η ^ 2)) |
| 40 | 40 | |
| 41 | -theorem log_shape_hasDerivAt (η : ℝ) : | |
| 42 | - HasDerivAt (fun x : ℝ => -Real.log (1 + x ^ 2)) (logShapeDerivative η) η := by | |
| 43 | - have hp : 1 + η ^ 2 ≠ 0 := by positivity | |
| 44 | - have hd := (((hasDerivAt_id η).pow 2).const_add 1).log hp | |
| 45 | - convert! hd.neg using 1 | |
| 46 | - simp [logShapeDerivative] | |
| 47 | - | |
| 48 | 41 | def idealSource (h η : ℝ) : ℝ := |
| 49 | 42 | -(3 / 5) * idealTransport h η - h * (1 - 2 * η * idealAxialVelocity η) - |
| 50 | 43 | (axialExponent h * η + axialShape η * idealAxialVelocity η) * |
| @@ -86,44 +79,11 @@ theorem ideal_lag_ge_one {h η : ℝ} | ||
| 86 | 79 | rw [ideal_source_positive_decomposition] |
| 87 | 80 | linarith |
| 88 | 81 | |
| 89 | -/-- The profile equation is satisfied by the constant particular solution. -/ | |
| 90 | -theorem ideal_lag_equation (h η : ℝ) : | |
| 91 | - (1 + (3 / 5 : ℝ)) * idealLag h η = idealSource h η := by | |
| 92 | - unfold idealLag | |
| 93 | - ring | |
| 94 | - | |
| 95 | 82 | def radiusProfile (X₀ y : ℝ) : ℝ := X₀ * Real.exp y |
| 96 | 83 | |
| 97 | 84 | def angularVelocityProfile (e₀ lam y : ℝ) : ℝ := |
| 98 | 85 | e₀ * Real.exp (-(1 / 2 + lam) * y) |
| 99 | 86 | |
| 100 | -def angularMomentumProfile (H₀ lam y : ℝ) : ℝ := | |
| 101 | - H₀ * Real.exp (-lam * y) | |
| 102 | - | |
| 103 | -/-- Weight of `R` in `dM/dy = X E R`. -/ | |
| 104 | -theorem first_axial_moment_weight (X₀ e₀ lam y : ℝ) : | |
| 105 | - radiusProfile X₀ y * angularVelocityProfile e₀ lam y = | |
| 106 | - (X₀ * e₀) * Real.exp ((1 / 2 - lam) * y) := by | |
| 107 | - unfold radiusProfile angularVelocityProfile | |
| 108 | - calc | |
| 109 | - _ = (X₀ * e₀) * Real.exp (y + -(1 / 2 + lam) * y) := by | |
| 110 | - rw [Real.exp_add] | |
| 111 | - ring | |
| 112 | - _ = _ := by congr 2; ring | |
| 113 | - | |
| 114 | -/-- Weight of `R` in `dJ/dy = X E H R`. -/ | |
| 115 | -theorem second_axial_moment_weight (X₀ e₀ H₀ lam y : ℝ) : | |
| 116 | - radiusProfile X₀ y * angularVelocityProfile e₀ lam y * | |
| 117 | - angularMomentumProfile H₀ lam y = | |
| 118 | - (X₀ * e₀ * H₀) * Real.exp ((1 / 2 - 2 * lam) * y) := by | |
| 119 | - rw [first_axial_moment_weight] | |
| 120 | - unfold angularMomentumProfile | |
| 121 | - calc | |
| 122 | - _ = (X₀ * e₀ * H₀) * Real.exp ((1 / 2 - lam) * y + -lam * y) := by | |
| 123 | - rw [Real.exp_add] | |
| 124 | - ring | |
| 125 | - _ = _ := by congr 2; ring | |
| 126 | - | |
| 127 | 87 | /-- The common energy weight used to rescale the pulse in equation (13). -/ |
| 128 | 88 | theorem energy_moment_weight (X₀ e₀ lam y : ℝ) : |
| 129 | 89 | radiusProfile X₀ y * angularVelocityProfile e₀ lam y ^ 2 = |
| @@ -136,34 +96,6 @@ theorem energy_moment_weight (X₀ e₀ lam y : ℝ) : | ||
| 136 | 96 | ring |
| 137 | 97 | _ = _ := by congr 2; ring |
| 138 | 98 | |
| 139 | -/-- The two axial slopes differ whenever `lam > 0`, as do their translated weights. -/ | |
| 140 | -theorem axial_weight_gap_neg {lam δ : ℝ} (hlam : 0 < lam) (hδ : 0 < δ) : | |
| 141 | - Real.exp ((1 / 2 - 2 * lam) * δ) - | |
| 142 | - Real.exp ((1 / 2 - lam) * δ) < 0 := by | |
| 143 | - have hgap : (1 / 2 - 2 * lam) * δ < (1 / 2 - lam) * δ := by | |
| 144 | - nlinarith [mul_pos hlam hδ] | |
| 145 | - exact sub_neg.mpr (Real.exp_lt_exp.mpr hgap) | |
| 146 | - | |
| 147 | -/-- Determinant of the moment matrix for two equal bumps separated by `δ`. -/ | |
| 148 | -theorem axial_moment_determinant_neg {lam δ c₁ c₂ : ℝ} | |
| 149 | - (hlam : 0 < lam) (hδ : 0 < δ) (hc₁ : 0 < c₁) (hc₂ : 0 < c₂) : | |
| 150 | - c₁ * (c₂ * Real.exp ((1 / 2 - 2 * lam) * δ)) - | |
| 151 | - (c₁ * Real.exp ((1 / 2 - lam) * δ)) * c₂ < 0 := by | |
| 152 | - have h := mul_neg_of_pos_of_neg (mul_pos hc₁ hc₂) (axial_weight_gap_neg hlam hδ) | |
| 153 | - nlinarith | |
| 154 | - | |
| 155 | -/-- Explicit algebraic reset for arbitrary debts in the two normalized moment rows. | |
| 156 | -The theorem does not assert bounds on these coefficients or construct smooth bumps. -/ | |
| 157 | -theorem two_moment_reset {r₁ r₂ : ℝ} (hgap : r₂ ≠ r₁) (debt₁ debt₂ : ℝ) : | |
| 158 | - let b := (debt₁ - debt₂) / (r₂ - r₁) | |
| 159 | - let a := -debt₁ - r₁ * b | |
| 160 | - debt₁ + a + r₁ * b = 0 ∧ debt₂ + a + r₂ * b = 0 := by | |
| 161 | - dsimp | |
| 162 | - constructor | |
| 163 | - · ring | |
| 164 | - · field_simp [sub_ne_zero.mpr hgap] | |
| 165 | - ring | |
| 166 | - | |
| 167 | 99 | /-- The exact negative part of the scaled pulse energy in equation (13). -/ |
| 168 | 100 | theorem pulse_negative_energy_integral : |
| 169 | 101 | (∫ z in (0 : ℝ)..13, (1 / 2 : ℝ) * Real.exp (-2 * z)) = |
| @@ -200,54 +132,4 @@ theorem pulse_amplitude_endpoint_signs {K error₀ error₁ : ℝ} | ||
| 200 | 132 | rcases abs_le.mp herror₁ with ⟨he₁lo, he₁hi⟩ |
| 201 | 133 | constructor <;> nlinarith |
| 202 | 134 | |
| 203 | -/-- A continuous error bounded by `1/100` gives an amplitude in the manuscript's | |
| 204 | -bracket. No monotonicity, uniqueness, smooth dependence, or asymptotic error | |
| 205 | -estimate is inferred from this theorem. -/ | |
| 206 | -theorem pulse_amplitude_root {K : ℝ} (error : ℝ → ℝ) | |
| 207 | - (hKlo : 1 / 5 ≤ K) (hKhi : K ≤ 1 / 4) | |
| 208 | - (hcontinuous : ContinuousOn error (Set.Icc (9 / 10 : ℝ) (6 / 5))) | |
| 209 | - (herror : ∀ A ∈ Set.Icc (9 / 10 : ℝ) (6 / 5), |error A| ≤ 1 / 100) : | |
| 210 | - ∃ A ∈ Set.Icc (9 / 10 : ℝ) (6 / 5), | |
| 211 | - K * A ^ 2 - pulseEnergyDebt + error A = 0 := by | |
| 212 | - let F : ℝ → ℝ := fun A => K * A ^ 2 - pulseEnergyDebt + error A | |
| 213 | - have hF : ContinuousOn F (Set.Icc (9 / 10 : ℝ) (6 / 5)) := by | |
| 214 | - apply ContinuousOn.add _ hcontinuous | |
| 215 | - exact ((continuous_const.mul (continuous_id.pow 2)).sub continuous_const).continuousOn | |
| 216 | - have hlo := herror (9 / 10) (by constructor <;> norm_num) | |
| 217 | - have hhi := herror (6 / 5) (by constructor <;> norm_num) | |
| 218 | - have hsign := pulse_amplitude_endpoint_signs hKlo hKhi hlo hhi | |
| 219 | - have hzero : 0 ∈ F '' Set.Icc (9 / 10 : ℝ) (6 / 5) := | |
| 220 | - intermediate_value_Icc (by norm_num) hF ⟨hsign.1.le, hsign.2.le⟩ | |
| 221 | - exact hzero | |
| 222 | - | |
| 223 | -/-- Constant-source lag solution, written in a form that also specifies its initial value. -/ | |
| 224 | -def lagSolution (a c q₀ y : ℝ) : ℝ := | |
| 225 | - c / a + (q₀ - c / a) * Real.exp (-a * y) | |
| 226 | - | |
| 227 | -theorem lag_solution_initial (a c q₀ : ℝ) : lagSolution a c q₀ 0 = q₀ := by | |
| 228 | - simp [lagSolution] | |
| 229 | - | |
| 230 | -theorem lag_solution_hasDerivAt (a c q₀ y : ℝ) : | |
| 231 | - HasDerivAt (lagSolution a c q₀) | |
| 232 | - (-(a * (q₀ - c / a) * Real.exp (-a * y))) y := by | |
| 233 | - have he := ((hasDerivAt_id y).const_mul (-a)).exp | |
| 234 | - convert! (he.const_mul (q₀ - c / a)).const_add (c / a) using 1 | |
| 235 | - simp only [mul_one, id_eq] | |
| 236 | - ring | |
| 237 | - | |
| 238 | -theorem lag_solution_equation {a : ℝ} (ha : a ≠ 0) (c q₀ y : ℝ) : | |
| 239 | - deriv (lagSolution a c q₀) y + a * lagSolution a c q₀ y = c := by | |
| 240 | - rw [(lag_solution_hasDerivAt a c q₀ y).deriv] | |
| 241 | - unfold lagSolution | |
| 242 | - field_simp [ha]; ring | |
| 243 | - | |
| 244 | -/-- The release initial lag follows algebraically from the angular moment reset. -/ | |
| 245 | -theorem release_initial_lag {lam : ℝ} (hlam : lam ≠ 1) (h : ℝ) : | |
| 246 | - -1 + (1 - h) / (1 - lam) = (lam - h) / (1 - lam) := by | |
| 247 | - field_simp [sub_ne_zero.mpr (Ne.symm hlam)]; ring | |
| 248 | - | |
| 249 | -theorem release_initial_lag_positive {lam h : ℝ} (hhlam : h < lam) (hlam : lam < 1) : | |
| 250 | - 0 < (lam - h) / (1 - lam) := | |
| 251 | - div_pos (sub_pos.mpr hhlam) (sub_pos.mpr hlam) | |
| 252 | - | |
| 253 | 135 | end NavierStokes.RadialSchedule |
+20 −0 routes/s1-ns-radial-1/README.md added View file
| @@ -0,0 +1,20 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-radial-1 | |
| 6 | + | |
| 7 | +One declarations unit of S-1 (issue #10), family `NavierStokes/Radial*`: deletes 39 declarations | |
| 8 | +(379 lines) from `RadialAlias.lean`, `RadialFluxResidual.lean`, `RadialHeatProfile.lean`, | |
| 9 | +`RadialModulation.lean`, `RadialPullback.lean` and `RadialSchedule.lean`, none of which anything | |
| 10 | +in the tree names any more (`git grep -n -w <name>`, docstrings included). The unit listed 42 | |
| 11 | +declarations; three stay back and are not part of this pull request: `energy_moment_weight`, whose | |
| 12 | +docstring cites equation (13) of the Navier–Stokes paper, and the two definitions it uses, | |
| 13 | +`radiusProfile` and `angularVelocityProfile`, all in `NavierStokes/RadialSchedule.lean`. | |
| 14 | +No statement that stays is changed; the diff is deletions only. | |
| 15 | + | |
| 16 | +## Next | |
| 17 | + | |
| 18 | +The maintainer's review after `challenge` and `build`; the three kept declarations need a unit of | |
| 19 | +their own, or a note that the paper's equation (13) is already represented by | |
| 20 | +`pulse_negative_energy_integral`. | |