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

Merge pull request #269 from s1-ns-smooth-1
Browse fileschore(NavierStokes/Smooth): delete 74 declarations nothing uses
main s1-euler-all-2 s1-euler-base-2 s1-euler-bounded-2 s1-euler-child-2 s1-euler-common-2 s1-euler-constant-2 s1-euler-continuous-2 s1-euler-correction-2 s1-euler-cylinder-2 s1-euler-euler-1 s1-euler-euler-2 s1-euler-field-2 s1-euler-flow-2 s1-euler-frozen-2 s1-euler-general-2 s1-euler-heat-2 s1-euler-isometric-2 s1-euler-lp-2 s1-euler-mean-2 s1-euler-packet-2 s1-euler-parent-2 s1-euler-quadratic-2 s1-euler-resolvent-2 s1-euler-separating-2 s1-euler-smooth-2 s1-euler-sobolev-2 s1-euler-time-2 s1-euler-transverse-2 s1-euler-vorticity-2 s1-euler-weighted-2 s1-ns-activation-2 s1-ns-active-2 s1-ns-actual-2 s1-ns-aligned-2 s1-ns-angular-2 s1-ns-assembled-2 s1-ns-axis-2 s1-ns-axisymmetric-2 s1-ns-band-2 s1-ns-base-1 s1-ns-base-2 s1-ns-borel-2 s1-ns-boundary-2 s1-ns-cauchy-2 s1-ns-closed-2 s1-ns-common-2 s1-ns-compact-2 s1-ns-constructed-2 s1-ns-correction-2 s1-ns-curl-2 s1-ns-cycle-2 s1-ns-defect-2 s1-ns-direct-2 s1-ns-entrance-2 s1-ns-error-2 s1-ns-even-2 s1-ns-exponent-2 s1-ns-final-2 s1-ns-first-2 s1-ns-flat-2 s1-ns-flatness-2 s1-ns-fourier-2 s1-ns-future-2 s1-ns-gauge-2 s1-ns-gaussian-2 s1-ns-global-2 s1-ns-heat-2 s1-ns-initialized-2 s1-ns-joint-2 s1-ns-linear-2 s1-ns-local-2 s1-ns-localized-2 s1-ns-maximal-2 s1-ns-mean-2 s1-ns-mixed-2 s1-ns-native-2 s1-ns-natural-1 s1-ns-natural-2 s1-ns-nilpotent-2 s1-ns-offplane-1 s1-ns-offplane-2 s1-ns-oscillatory-2 s1-ns-parametric-2 s1-ns-particular-2 s1-ns-past-2 s1-ns-periodic-2 s1-ns-periodized-2 s1-ns-phase-2 s1-ns-physical-2 s1-ns-positive-2 s1-ns-pressure-2 s1-ns-primary-2 s1-ns-pulse-2 s1-ns-r3-2 s1-ns-radial-2 s1-ns-reference-2 s1-ns-regular-2 s1-ns-renormalized-2 s1-ns-residual-2 s1-ns-scaling-2 s1-ns-schedule-2 s1-ns-sharp-2 s1-ns-signed-2 s1-ns-similarity-2 s1-ns-slot-2 s1-ns-slow-2 s1-ns-smooth-2 s1-ns-solenoidal-2 s1-ns-spatial-2 s1-ns-squared-2 s1-ns-state-2 s1-ns-subcover-2 s1-ns-tail-2 s1-ns-temporal-2 s1-ns-terminal-1 s1-ns-time-2 s1-ns-torus-2 s1-ns-transition-2 s1-ns-transport-2 s1-ns-true-1 s1-ns-uniform-2 s1-ns-variable-2 s1-ns-volterra-2 s1-ns-wave-2 s1-ns-weighted-2 s1-ns-within-2
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+0 −71 NavierStokes/SmoothCovariance.lean View file
| @@ -167,53 +167,6 @@ theorem contDiffOn_amplitudes | ||
| 167 | 167 | (contDiffOn_weights hH hT (fun x hx => (hcone x hx).det_ne_zero) i).sqrt |
| 168 | 168 | (fun x hx => ne_of_gt ((hcone x hx).weights_pos i)) |
| 169 | 169 | |
| 170 | -/-- The complete amplitude vector, not only its coordinates, is smooth. -/ | |
| 171 | -theorem contDiffOn_amplitude_vector | |
| 172 | - (hH : ∀ i j, ContDiffOn ℝ ∞ (fun x => H x i j) s) | |
| 173 | - (hT : ∀ i, ContDiffOn ℝ ∞ (fun x => T x i) s) | |
| 174 | - (hcone : ∀ x ∈ s, StrictCone (H x) (T x)) : | |
| 175 | - ContDiffOn ℝ ∞ (fun x => amplitudes (H x) (T x)) s := | |
| 176 | - contDiffOn_pi.mpr (contDiffOn_amplitudes hH hT hcone) | |
| 177 | - | |
| 178 | -/-- Smooth dependence of the coefficients as named in the original exact | |
| 179 | -signed-slot module. All six scalar input functions are genuinely smooth. -/ | |
| 180 | -theorem contDiffOn_signed_coefficients {a b sm sp m t : E → ℝ} | |
| 181 | - (ha : ContDiffOn ℝ ∞ a s) (hb : ContDiffOn ℝ ∞ b s) | |
| 182 | - (hsm : ContDiffOn ℝ ∞ sm s) (hsp : ContDiffOn ℝ ∞ sp s) | |
| 183 | - (hm : ContDiffOn ℝ ∞ m s) (ht : ContDiffOn ℝ ∞ t s) | |
| 184 | - (hpos : ∀ x ∈ s, 0 < a x ∧ 0 < b x ∧ 0 < sm x ∧ 0 < sp x) | |
| 185 | - (i : Fin 2) : | |
| 186 | - ContDiffOn ℝ ∞ | |
| 187 | - (fun x => Covariance.coefficients (a x) (b x) (sm x) (sp x) (m x) (t x) i) s := by | |
| 188 | - fin_cases i | |
| 189 | - · change ContDiffOn ℝ ∞ | |
| 190 | - (fun x => (b x * m x - a x * t x) / (2 * a x * b x * sm x)) s | |
| 191 | - apply ((hb.mul hm).sub (ha.mul ht)).div | |
| 192 | - (((contDiffOn_const.mul ha).mul hb).mul hsm) | |
| 193 | - intro x hx | |
| 194 | - rcases hpos x hx with ⟨hap, hbp, hsmp, hspp⟩ | |
| 195 | - exact ne_of_gt (by positivity) | |
| 196 | - · change ContDiffOn ℝ ∞ | |
| 197 | - (fun x => (b x * m x + a x * t x) / (2 * a x * b x * sp x)) s | |
| 198 | - apply ((hb.mul hm).add (ha.mul ht)).div | |
| 199 | - (((contDiffOn_const.mul ha).mul hb).mul hsp) | |
| 200 | - intro x hx | |
| 201 | - rcases hpos x hx with ⟨hap, hbp, hsmp, hspp⟩ | |
| 202 | - exact ne_of_gt (by positivity) | |
| 203 | - | |
| 204 | -theorem contDiffOn_signed_amplitudes {a b sm sp m t : E → ℝ} | |
| 205 | - (ha : ContDiffOn ℝ ∞ a s) (hb : ContDiffOn ℝ ∞ b s) | |
| 206 | - (hsm : ContDiffOn ℝ ∞ sm s) (hsp : ContDiffOn ℝ ∞ sp s) | |
| 207 | - (hm : ContDiffOn ℝ ∞ m s) (ht : ContDiffOn ℝ ∞ t s) | |
| 208 | - (hpos : ∀ x ∈ s, 0 < a x ∧ 0 < b x ∧ 0 < sm x ∧ 0 < sp x) | |
| 209 | - (hcone : ∀ x ∈ s, |a x * t x| < b x * m x) (i : Fin 2) : | |
| 210 | - ContDiffOn ℝ ∞ | |
| 211 | - (fun x => Covariance.amplitudes (a x) (b x) (sm x) (sp x) (m x) (t x) i) s := by | |
| 212 | - apply (contDiffOn_signed_coefficients ha hb hsm hsp hm ht hpos i).sqrt | |
| 213 | - intro x hx | |
| 214 | - rcases hpos x hx with ⟨hap, hbp, hsmp, hspp⟩ | |
| 215 | - exact ne_of_gt (Covariance.coefficients_pos hap hbp hsmp hspp (hcone x hx) i) | |
| 216 | - | |
| 217 | 170 | end Smooth |
| 218 | 171 | |
| 219 | 172 | section Compact |
| @@ -306,30 +259,6 @@ theorem isOpen_strictConeRegion : IsOpen strictConeRegion := by | ||
| 306 | 259 | exact (isOpen_lt continuous_const ((hn 0).fun_mul hd)).inter |
| 307 | 260 | (isOpen_lt continuous_const ((hn 1).fun_mul hd)) |
| 308 | 261 | |
| 309 | -/-- The solution map itself is C-infinity on the open set of admissible | |
| 310 | -matrix-target data, without a prechosen parameterization. -/ | |
| 311 | -theorem contDiffOn_universal_weights : | |
| 312 | - ContDiffOn ℝ ∞ (fun z : Datum => weights z.1 z.2) strictConeRegion := by | |
| 313 | - apply contDiffOn_pi.mpr | |
| 314 | - apply contDiffOn_weights | |
| 315 | - · intro i j | |
| 316 | - exact ((contDiff_apply_apply ℝ ℝ i j).comp contDiff_fst).contDiffOn | |
| 317 | - · intro i | |
| 318 | - exact ((contDiff_apply ℝ ℝ i).comp contDiff_snd).contDiffOn | |
| 319 | - · intro z hz | |
| 320 | - exact StrictCone.det_ne_zero hz | |
| 321 | - | |
| 322 | -/-- The positive square-root solution is C-infinity on that same open set. -/ | |
| 323 | -theorem contDiffOn_universal_amplitudes : | |
| 324 | - ContDiffOn ℝ ∞ (fun z : Datum => amplitudes z.1 z.2) strictConeRegion := by | |
| 325 | - apply contDiffOn_amplitude_vector | |
| 326 | - · intro i j | |
| 327 | - exact ((contDiff_apply_apply ℝ ℝ i j).comp contDiff_fst).contDiffOn | |
| 328 | - · intro i | |
| 329 | - exact ((contDiff_apply ℝ ℝ i).comp contDiff_snd).contDiffOn | |
| 330 | - · intro z hz | |
| 331 | - exact hz | |
| 332 | - | |
| 333 | 262 | /-- A single positive perturbation radius works for every datum in a compact |
| 334 | 263 | subset of the strict cone. The perturbed data may be arbitrary actual matrices. -/ |
| 335 | 264 | theorem compact_perturbation_stability {S : Set Datum} (hS : IsCompact S) |
+0 −46 NavierStokes/SmoothCutoffs.lean View file
| @@ -75,9 +75,6 @@ theorem cutoff_eventually_zero {x : ℝ} (hx : 1 < |x|) : | ||
| 75 | 75 | intro hmem |
| 76 | 76 | exact (not_le_of_gt hx) (abs_le.mpr hmem) |
| 77 | 77 | |
| 78 | -theorem cutoff_eventually_one_at_zero : cutoff =ᶠ[𝓝 0] (fun _ => 1) := | |
| 79 | - cutoff_eventually_one (by norm_num) | |
| 80 | - | |
| 81 | 78 | theorem iteratedDeriv_const_succ (n : ℕ) (c : ℝ) : |
| 82 | 79 | iteratedDeriv (n + 1) (fun _ : ℝ => c) = (fun _ => 0) := by |
| 83 | 80 | induction n with |
| @@ -108,12 +105,6 @@ theorem cutoff_iteratedDeriv_support (n : ℕ) : | ||
| 108 | 105 | · by_contra h |
| 109 | 106 | exact hx (cutoff_iteratedDeriv_zero_outside n (lt_of_not_ge h)) |
| 110 | 107 | |
| 111 | -theorem cutoff_iteratedDeriv_tsupport (n : ℕ) : | |
| 112 | - tsupport (iteratedDeriv (n + 1) cutoff) ⊆ {x : ℝ | 1 / 2 ≤ |x| ∧ |x| ≤ 1} := by | |
| 113 | - apply closure_minimal (cutoff_iteratedDeriv_support n) | |
| 114 | - exact (isClosed_le continuous_const continuous_abs).inter | |
| 115 | - (isClosed_le continuous_abs continuous_const) | |
| 116 | - | |
| 117 | 108 | theorem cutoff_iteratedDeriv_hasCompactSupport (n : ℕ) : |
| 118 | 109 | HasCompactSupport (iteratedDeriv n cutoff) := by |
| 119 | 110 | induction n with |
| @@ -151,13 +142,6 @@ theorem scaledCutoff_zero_of_inv_le {a q : ℝ} (ha : 0 < a) (hq : 1 / a ≤ q) | ||
| 151 | 142 | have hprod := (div_le_iff₀ ha).mp hq |
| 152 | 143 | nlinarith |
| 153 | 144 | |
| 154 | -theorem scaledCutoff_hasCompactSupport {a : ℝ} (ha : a ≠ 0) : | |
| 155 | - HasCompactSupport (scaledCutoff a) := by | |
| 156 | - change HasCompactSupport (fun x => cutoff (a * x)) | |
| 157 | - have hc : HasCompactSupport (fun x : ℝ => cutoff (a • x)) := | |
| 158 | - cutoff_hasCompactSupport.comp_smul (G₀ := ℝ) (c := a) ha | |
| 159 | - simpa only [smul_eq_mul] using hc | |
| 160 | - | |
| 161 | 145 | theorem scaledCutoff_eventually_one {a q : ℝ} (hq : |a * q| < 1 / 2) : |
| 162 | 146 | scaledCutoff a =ᶠ[𝓝 q] (fun _ => 1) := |
| 163 | 147 | (cutoff_eventually_one hq).comp_tendsto |
| @@ -276,34 +260,4 @@ theorem timeSwitch_eventually_one {t : ℝ} (ht : 3 / 4 < t) : | ||
| 276 | 260 | filter_upwards [scaledCutoff_eventually_zero hs] with s hs |
| 277 | 261 | simp [timeSwitch, hs] |
| 278 | 262 | |
| 279 | -theorem timeSwitch_iteratedDeriv_at_zero (n : ℕ) : | |
| 280 | - iteratedDeriv (n + 1) timeSwitch 0 = 0 := by | |
| 281 | - rw [timeSwitch_eventually_zero.iteratedDeriv_eq (n + 1), iteratedDeriv_const_succ] | |
| 282 | - | |
| 283 | -theorem timeSwitch_iteratedDeriv_late (n : ℕ) {t : ℝ} (ht : 3 / 4 < t) : | |
| 284 | - iteratedDeriv (n + 1) timeSwitch t = 0 := by | |
| 285 | - rw [(timeSwitch_eventually_one ht).iteratedDeriv_eq (n + 1), iteratedDeriv_const_succ] | |
| 286 | - | |
| 287 | -theorem timeSwitch_iteratedDeriv_formula (n : ℕ) (t : ℝ) : | |
| 288 | - iteratedDeriv (n + 1) timeSwitch t = | |
| 289 | - -((4 / 3 : ℝ) ^ (n + 1) * iteratedDeriv (n + 1) cutoff ((4 / 3) * t)) := by | |
| 290 | - unfold timeSwitch | |
| 291 | - rw [iteratedDeriv_const_sub (Nat.succ_pos n) (1 : ℝ)] | |
| 292 | - change iteratedDeriv (n + 1) (fun s => -(scaledCutoff (4 / 3) s)) t = _ | |
| 293 | - rw [iteratedDeriv_fun_neg, scaledCutoff_iteratedDeriv] | |
| 294 | - | |
| 295 | -/-- On the physical half-line, all nonzero positive derivatives lie in `[3/8,3/4]`. -/ | |
| 296 | -theorem timeSwitch_iteratedDeriv_support_nonneg (n : ℕ) {t : ℝ} (ht : 0 ≤ t) | |
| 297 | - (hs : iteratedDeriv (n + 1) timeSwitch t ≠ 0) : | |
| 298 | - 3 / 8 ≤ t ∧ t ≤ 3 / 4 := by | |
| 299 | - have hcut : iteratedDeriv (n + 1) cutoff ((4 / 3) * t) ≠ 0 := by | |
| 300 | - intro hz | |
| 301 | - apply hs | |
| 302 | - rw [timeSwitch_iteratedDeriv_formula, hz] | |
| 303 | - simp | |
| 304 | - have hb := cutoff_iteratedDeriv_support n hcut | |
| 305 | - change 1 / 2 ≤ |(4 / 3 : ℝ) * t| ∧ |(4 / 3 : ℝ) * t| ≤ 1 at hb | |
| 306 | - rw [abs_of_nonneg (by positivity : (0 : ℝ) ≤ (4 / 3) * t)] at hb | |
| 307 | - constructor <;> linarith [hb.1, hb.2] | |
| 308 | - | |
| 309 | 263 | end NavierStokes.SmoothCutoffs |
+0 −67 NavierStokes/SmoothExponentialMomentMatrix.lean View file
| @@ -40,72 +40,5 @@ namespace Family | ||
| 40 | 40 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 41 | 41 | {n : ℕ} {U : Set E} (D : Family E n U) |
| 42 | 42 | |
| 43 | -/-- Actual integrated exponential weights against the given bump profiles. -/ | |
| 44 | -def matrix (p : E) : Matrix (Fin n) (Fin n) ℝ := | |
| 45 | - ExponentialMomentMatrix.expBumpMomentMatrix (D.exponent p) (D.bump p) | |
| 46 | - | |
| 47 | -theorem integrand_contDiffOn (i j : Fin n) : | |
| 48 | - ContDiffOn ℝ ∞ | |
| 49 | - (fun z : E × ℝ => Real.exp (D.exponent z.1 i * z.2) * D.bump z.1 j z.2) | |
| 50 | - (U ×ˢ univ) := by | |
| 51 | - have he : ContDiffOn ℝ ∞ (fun z : E × ℝ => D.exponent z.1 i) (U ×ˢ univ) := | |
| 52 | - (D.exponent_smooth i).comp contDiffOn_fst (fun z hz => hz.1) | |
| 53 | - exact (he.mul contDiffOn_snd).exp.mul (D.bump_smooth j) | |
| 54 | - | |
| 55 | -theorem matrix_contDiffOn [ProperSpace E] (hU : IsOpen U) : | |
| 56 | - ContDiffOn ℝ ∞ D.matrix U := by | |
| 57 | - apply contDiffOn_pi.mpr | |
| 58 | - intro i | |
| 59 | - apply contDiffOn_pi.mpr | |
| 60 | - intro j | |
| 61 | - apply SmoothPowerMomentMatrix.integral_contDiffOn_of_moving_support U hU _ | |
| 62 | - (D.integrand_contDiffOn i j) (fun p => D.lower p j) (fun p => D.upper p j) | |
| 63 | - (D.lower_continuous j) (D.upper_continuous j) | |
| 64 | - intro p hp t ht | |
| 65 | - apply D.bump_support p hp j | |
| 66 | - intro hb | |
| 67 | - exact ht (by dsimp only; rw [hb, mul_zero]) | |
| 68 | - | |
| 69 | -theorem matrix_det_ne_zero (p : E) (hp : p ∈ U) : (D.matrix p).det ≠ 0 := by | |
| 70 | - apply ExponentialMomentMatrix.expBumpMomentMatrix_det_ne_zero | |
| 71 | - (D.exponent p) (D.lower p) (D.upper p) (D.bump p) | |
| 72 | - (D.exponent_injective p hp) (D.separated p hp) | |
| 73 | - · intro j | |
| 74 | - exact contDiffOn_univ.mp ((D.bump_smooth j).comp | |
| 75 | - (contDiff_const.prodMk contDiff_id).contDiffOn (fun t _ => ⟨hp, mem_univ t⟩)) |>.continuous | |
| 76 | - · exact D.bump_nonnegative p hp | |
| 77 | - · exact D.bump_nonzero p hp | |
| 78 | - · exact D.bump_support p hp | |
| 79 | - | |
| 80 | -theorem matrix_inverse_contDiffOn [ProperSpace E] (hU : IsOpen U) : | |
| 81 | - ContDiffOn ℝ ∞ (fun p => (D.matrix p)⁻¹) U := | |
| 82 | - SmoothPowerMomentMatrix.inverse_contDiffOn D.matrix | |
| 83 | - (D.matrix_contDiffOn hU) D.matrix_det_ne_zero | |
| 84 | - | |
| 85 | -/-- Every full parameter jet of the actual inverse has a uniform compact bound. -/ | |
| 86 | -theorem compact_inverse_jet_bound [ProperSpace E] (hU : IsOpen U) | |
| 87 | - (K : Set E) (hK : IsCompact K) (hKU : K ⊆ U) (m : ℕ) : | |
| 88 | - ∃ C ≥ 0, ∀ p ∈ K, | |
| 89 | - ‖iteratedFDeriv ℝ m (fun q => (D.matrix q)⁻¹) p‖ ≤ C := by | |
| 90 | - have hj : ContinuousOn (iteratedFDeriv ℝ m (fun q => (D.matrix q)⁻¹)) U := by | |
| 91 | - intro p hp | |
| 92 | - exact (((D.matrix_inverse_contDiffOn hU).contDiffAt (hU.mem_nhds hp)).iteratedFDeriv_right | |
| 93 | - (m := 0) (by simp)).continuousAt.continuousWithinAt | |
| 94 | - obtain ⟨C, hC⟩ := hK.exists_bound_of_continuousOn (hj.mono hKU) | |
| 95 | - exact ⟨max C 0, le_max_right _ _, fun p hp => (hC p hp).trans (le_max_left _ _)⟩ | |
| 96 | - | |
| 97 | -/-- One common constant controls all inverse derivatives up to a fixed order. -/ | |
| 98 | -theorem compact_inverse_jets_bound [ProperSpace E] (hU : IsOpen U) | |
| 99 | - (K : Set E) (hK : IsCompact K) (hKU : K ⊆ U) (m : ℕ) : | |
| 100 | - ∃ C ≥ 0, ∀ k ≤ m, ∀ p ∈ K, | |
| 101 | - ‖iteratedFDeriv ℝ k (fun q => (D.matrix q)⁻¹) p‖ ≤ C := by | |
| 102 | - choose C hC hbound using fun k : Fin (m + 1) => | |
| 103 | - D.compact_inverse_jet_bound hU K hK hKU k.val | |
| 104 | - refine ⟨∑ k, C k, Finset.sum_nonneg (fun k _ => hC k), ?_⟩ | |
| 105 | - intro k hk p hp | |
| 106 | - exact (hbound ⟨k, by omega⟩ p hp).trans | |
| 107 | - (Finset.single_le_sum (fun t _ => hC t) | |
| 108 | - (Finset.mem_univ (⟨k, by omega⟩ : Fin (m + 1)))) | |
| 109 | - | |
| 110 | 43 | end Family |
| 111 | 44 | end NavierStokes.SmoothExponentialMomentMatrix |
+0 −265 NavierStokes/SmoothFamilyTorusInverse.lean View file
| @@ -42,9 +42,6 @@ noncomputable def fixedPartial (v : Point P) (f : Source P) (z : Point P) : ℂ | ||
| 42 | 42 | noncomputable def parameterPartial (v : P) (f : Source P) : Source P := |
| 43 | 43 | fixedPartial (v, 0) f |
| 44 | 44 | |
| 45 | -noncomputable def parameterDerivative (f : Source P) (z : Point P) : P →L[ℝ] ℂ := | |
| 46 | - (fderiv ℝ f z).comp (ContinuousLinearMap.inl ℝ P Plane) | |
| 47 | - | |
| 48 | 45 | noncomputable def torusXJet (n : ℕ) (f : Source P) : Source P := |
| 49 | 46 | (fixedPartial (0, (1, 0)))^[n] f |
| 50 | 47 | |
| @@ -62,10 +59,6 @@ theorem fixedPartial_smooth {f : Source P} (hf : ContDiff ℝ ∞ f) (v : Point | ||
| 62 | 59 | theorem parameterPartial_smooth {f : Source P} (hf : ContDiff ℝ ∞ f) (v : P) : |
| 63 | 60 | ContDiff ℝ ∞ (parameterPartial v f) := fixedPartial_smooth hf (v, 0) |
| 64 | 61 | |
| 65 | -theorem parameterDerivative_smooth {f : Source P} (hf : ContDiff ℝ ∞ f) : | |
| 66 | - ContDiff ℝ ∞ (parameterDerivative f) := | |
| 67 | - (hf.fderiv_right (by simp)).clm_comp contDiff_const | |
| 68 | - | |
| 69 | 62 | theorem fixedPartial_periodic {f : Source P} (hp : Periodic f) (v : Point P) : |
| 70 | 63 | Periodic (fixedPartial v f) := by |
| 71 | 64 | intro p Y k |
| @@ -99,11 +92,6 @@ theorem slice_hasFDerivAt {f : Source P} (hf : ContDiff ℝ ∞ f) (p : P) (Y : | ||
| 99 | 92 | ((hf.differentiable (by simp)) (p, Y)).hasFDerivAt.comp Y |
| 100 | 93 | ((hasFDerivAt_const p Y).prodMk (hasFDerivAt_id Y)) |
| 101 | 94 | |
| 102 | -theorem parameter_hasFDerivAt {f : Source P} (hf : ContDiff ℝ ∞ f) (p : P) (Y : Plane) : | |
| 103 | - HasFDerivAt (fun q => f (q, Y)) (parameterDerivative f (p, Y)) p := | |
| 104 | - ((hf.differentiable (by simp)) (p, Y)).hasFDerivAt.comp p | |
| 105 | - ((hasFDerivAt_id p).prodMk (hasFDerivAt_const Y p)) | |
| 106 | - | |
| 107 | 95 | theorem slice_torusXJet {f : Source P} (hf : ContDiff ℝ ∞ f) (n : ℕ) (p : P) : |
| 108 | 96 | slice (torusXJet n f) p = SmoothFourierData.xJet n (slice f p) := by |
| 109 | 97 | induction n with |
| @@ -297,51 +285,8 @@ section TorusWords | ||
| 297 | 285 | variable {G H : Type} [NormedAddCommGroup G] [NormedSpace ℝ G] |
| 298 | 286 | [NormedAddCommGroup H] [NormedSpace ℝ H] |
| 299 | 287 | |
| 300 | -noncomputable def tensorTorusWord : List Bool → (Plane → G) → Plane → G | |
| 301 | - | [], g => g | |
| 302 | - | b :: w, g => fun Y => fderiv ℝ (tensorTorusWord w g) Y | |
| 303 | - (if b then (0, 1) else (1, 0)) | |
| 304 | - | |
| 305 | -theorem tensorTorusWord_smooth {g : Plane → G} (hg : ContDiff ℝ ∞ g) (w : List Bool) : | |
| 306 | - ContDiff ℝ ∞ (tensorTorusWord w g) := by | |
| 307 | - induction w with | |
| 308 | - | nil => exact hg | |
| 309 | - | cons b w ih => | |
| 310 | - have hd : ContDiff ℝ ∞ (fderiv ℝ (tensorTorusWord w g)) := | |
| 311 | - ih.fderiv_right (by simp) | |
| 312 | - exact (ContinuousLinearMap.apply ℝ G (if b then (0, 1) else (1, 0))).contDiff.comp | |
| 313 | - hd | |
| 314 | - | |
| 315 | -theorem tensorTorusWord_map (L : G →L[ℝ] H) {g : Plane → G} | |
| 316 | - (hg : ContDiff ℝ ∞ g) (w : List Bool) : | |
| 317 | - tensorTorusWord w (fun Y => L (g Y)) = fun Y => L (tensorTorusWord w g Y) := by | |
| 318 | - induction w with | |
| 319 | - | nil => rfl | |
| 320 | - | cons b w ih => | |
| 321 | - funext Y | |
| 322 | - simp only [tensorTorusWord, ih] | |
| 323 | - have hd := L.hasFDerivAt.comp Y | |
| 324 | - (((tensorTorusWord_smooth hg w).differentiable (by simp)) Y).hasFDerivAt | |
| 325 | - exact congrArg (fun M : Plane →L[ℝ] H => M (if b then (0, 1) else (1, 0))) hd.fderiv | |
| 326 | - | |
| 327 | 288 | end TorusWords |
| 328 | 289 | |
| 329 | -theorem tensorTorusWord_scalar (g : Plane → ℂ) (w : List Bool) : | |
| 330 | - tensorTorusWord w g = derivativeWord w g := by | |
| 331 | - induction w with | |
| 332 | - | nil => rfl | |
| 333 | - | cons b w ih => | |
| 334 | - simp only [tensorTorusWord, derivativeWord, ih] | |
| 335 | - rfl | |
| 336 | - | |
| 337 | -theorem tensorTorusWord_replicate (g : Plane → ℂ) (n : ℕ) : | |
| 338 | - tensorTorusWord (List.replicate n false) g = SmoothFourierData.xJet n g := by | |
| 339 | - induction n with | |
| 340 | - | zero => rfl | |
| 341 | - | succ n ih => | |
| 342 | - rw [List.replicate_succ, tensorTorusWord, SmoothFourierData.xJet_succ, ih] | |
| 343 | - rfl | |
| 344 | - | |
| 345 | 290 | |
| 346 | 291 | section FiniteDimensional |
| 347 | 292 | |
| @@ -624,29 +569,6 @@ theorem inverse_preserves_parameter_support (d : Direction) (f : Source P) (S : | ||
| 624 | 569 | simp only [coefficient, SmoothFourierData.coefficient_eq_doubleIntegral, slice, |
| 625 | 570 | hs p hp, mul_zero, intervalIntegral.integral_zero] |
| 626 | 571 | |
| 627 | -theorem parameterPartial_applyMultiplier {m : Frequency → ℂ} (hm : PolynomialGrowth m) | |
| 628 | - {f : Source P} (hf : ContDiff ℝ ∞ f) (hp : Periodic f) (v : P) : | |
| 629 | - parameterPartial v (applyMultiplier m f) = applyMultiplier m (parameterPartial v f) := by | |
| 630 | - funext z | |
| 631 | - have hlp : ParametricTorusInverse.Periodic (lineSource f z.1 v) := | |
| 632 | - fun t => hp (z.1 + t • v) | |
| 633 | - have hh := congrFun (ParametricTorusInverse.parameterPartial_applyMultiplier hm | |
| 634 | - (lineSource_smooth hf z.1 v) hlp) (0, z.2) | |
| 635 | - change ParametricTorusInverse.parameterPartial | |
| 636 | - (lineSource (applyMultiplier m f) z.1 v) (0, z.2) = | |
| 637 | - ParametricTorusInverse.applyMultiplier m | |
| 638 | - (ParametricTorusInverse.parameterPartial (lineSource f z.1 v)) (0, z.2) at hh | |
| 639 | - rw [parameterPartial_lineSource (applyMultiplier_smooth hm hf hp) z.1 v, | |
| 640 | - parameterPartial_lineSource hf z.1 v] at hh | |
| 641 | - change parameterPartial v (applyMultiplier m f) (z.1 + (0 : ℝ) • v, z.2) = | |
| 642 | - applyMultiplier m (parameterPartial v f) (z.1 + (0 : ℝ) • v, z.2) at hh | |
| 643 | - simpa only [zero_smul, add_zero] using hh | |
| 644 | - | |
| 645 | -theorem parameterPartial_inverse (d : Direction) {f : Source P} (hf : ContDiff ℝ ∞ f) | |
| 646 | - (hp : Periodic f) (v : P) : | |
| 647 | - parameterPartial v (inverse d f) = inverse d (parameterPartial v f) := | |
| 648 | - parameterPartial_applyMultiplier (ParametricTorusInverse.inverseMultiplier_growth d) hf hp v | |
| 649 | - | |
| 650 | 572 | /-- A prefix of actual full joint Fréchet-jet bounds on a parameter set. |
| 651 | 573 | The torus argument ranges over the whole universal cover. -/ |
| 652 | 574 | def JetBound (f : Source P) (S : Set P) (n : ℕ) (C : ℝ) : Prop := |
| @@ -874,85 +796,6 @@ theorem inverse_finiteJets (d : Direction) (n : ℕ) : | ||
| 874 | 796 | f S C hf hp hC (by simpa only [Nat.add_assoc] using h) |
| 875 | 797 | exact hh |
| 876 | 798 | |
| 877 | -noncomputable def parameterJet (q : ℕ) (f : Source P) (z : Point P) : | |
| 878 | - ContinuousMultilinearMap ℝ (fun _ : Fin q => P) ℂ := | |
| 879 | - (iteratedFDeriv ℝ q f z).compContinuousLinearMap | |
| 880 | - (fun _ => ContinuousLinearMap.inl ℝ P Plane) | |
| 881 | - | |
| 882 | -noncomputable def parameterJetApply (q : ℕ) (v : Fin q → P) (f : Source P) : Source P := | |
| 883 | - fun z => parameterJet q f z v | |
| 884 | - | |
| 885 | -omit [FiniteDimensional ℝ P] in | |
| 886 | -theorem parameterJet_smooth {f : Source P} (hf : ContDiff ℝ ∞ f) (q : ℕ) : | |
| 887 | - ContDiff ℝ ∞ (parameterJet q f) := by | |
| 888 | - have hq : ContDiff ℝ ∞ (iteratedFDeriv ℝ q f) := | |
| 889 | - hf.iteratedFDeriv_right (by exact_mod_cast (le_top : (⊤ : ℕ∞) + (q : ℕ∞) ≤ ⊤)) | |
| 890 | - exact (ContinuousMultilinearMap.compContinuousLinearMapL | |
| 891 | - (fun _ : Fin q => ContinuousLinearMap.inl ℝ P Plane)).contDiff.comp | |
| 892 | - hq | |
| 893 | - | |
| 894 | -omit [FiniteDimensional ℝ P] in | |
| 895 | -theorem parameterJetApply_smooth {f : Source P} (hf : ContDiff ℝ ∞ f) | |
| 896 | - (q : ℕ) (v : Fin q → P) : ContDiff ℝ ∞ (parameterJetApply q v f) := | |
| 897 | - (ContinuousMultilinearMap.apply ℝ (fun _ : Fin q => P) ℂ v).contDiff.comp | |
| 898 | - (parameterJet_smooth hf q) | |
| 899 | - | |
| 900 | -omit [FiniteDimensional ℝ P] in | |
| 901 | -theorem parameterJet_eq_slice {f : Source P} (hf : ContDiff ℝ ∞ f) | |
| 902 | - (q : ℕ) (p : P) (Y : Plane) : | |
| 903 | - parameterJet q f (p, Y) = iteratedFDeriv ℝ q (fun t => f (t, Y)) p := by | |
| 904 | - let L : P →L[ℝ] Point P := ContinuousLinearMap.inl ℝ P Plane | |
| 905 | - let g : Point P → ℂ := fun z => f (z + (0, Y)) | |
| 906 | - have hg : ContDiff ℝ ∞ g := hf.comp (contDiff_id.add contDiff_const) | |
| 907 | - have he : (fun t => f (t, Y)) = g ∘ L := by ext t; simp [g, L] | |
| 908 | - rw [he, L.iteratedFDeriv_comp_right hg p (by exact_mod_cast le_top : (q : WithTop ℕ∞) ≤ ∞)] | |
| 909 | - change (iteratedFDeriv ℝ q f (p, Y)).compContinuousLinearMap _ = | |
| 910 | - (iteratedFDeriv ℝ q (fun z => f (z + (0, Y))) (p, 0)).compContinuousLinearMap _ | |
| 911 | - rw [iteratedFDeriv_comp_add_right] | |
| 912 | - simp only [Prod.mk_add_mk, add_zero, zero_add] | |
| 913 | - rfl | |
| 914 | - | |
| 915 | -omit [FiniteDimensional ℝ P] in | |
| 916 | -theorem parameterJetApply_succ {f : Source P} (hf : ContDiff ℝ ∞ f) | |
| 917 | - (q : ℕ) (v : Fin (q + 1) → P) : | |
| 918 | - parameterJetApply (q + 1) v f = | |
| 919 | - parameterPartial (v 0) (parameterJetApply q (Fin.tail v) f) := by | |
| 920 | - funext z | |
| 921 | - change iteratedFDeriv ℝ (q + 1) f z (fun i => (v i, 0)) = | |
| 922 | - fderiv ℝ (fun x => iteratedFDeriv ℝ q f x (fun i => (Fin.tail v i, 0))) z (v 0, 0) | |
| 923 | - have hq : ContDiff ℝ ∞ (iteratedFDeriv ℝ q f) := | |
| 924 | - hf.iteratedFDeriv_right (by exact_mod_cast (le_top : (⊤ : ℕ∞) + (q : ℕ∞) ≤ ⊤)) | |
| 925 | - rw [iteratedFDeriv_succ_apply_left, | |
| 926 | - fderiv_continuousMultilinear_apply_const_apply | |
| 927 | - (hq.differentiable (by simp) z)] | |
| 928 | - rfl | |
| 929 | - | |
| 930 | -omit [FiniteDimensional ℝ P] in | |
| 931 | -theorem parameterJetApply_periodic {f : Source P} (hf : ContDiff ℝ ∞ f) | |
| 932 | - (hp : Periodic f) (q : ℕ) (v : Fin q → P) : Periodic (parameterJetApply q v f) := by | |
| 933 | - induction q with | |
| 934 | - | zero => exact hp | |
| 935 | - | succ q ih => | |
| 936 | - rw [parameterJetApply_succ hf] | |
| 937 | - exact parameterPartial_periodic (ih (Fin.tail v)) (v 0) | |
| 938 | - | |
| 939 | -theorem parameterJetApply_inverse (d : Direction) {f : Source P} | |
| 940 | - (hf : ContDiff ℝ ∞ f) (hp : Periodic f) (q : ℕ) (v : Fin q → P) : | |
| 941 | - parameterJetApply q v (inverse d f) = inverse d (parameterJetApply q v f) := by | |
| 942 | - induction q with | |
| 943 | - | zero => rfl | |
| 944 | - | succ q ih => | |
| 945 | - rw [parameterJetApply_succ (inverse_smooth d hf hp), ih, | |
| 946 | - parameterPartial_inverse d (parameterJetApply_smooth hf q (Fin.tail v)) | |
| 947 | - (parameterJetApply_periodic hf hp q (Fin.tail v)), | |
| 948 | - parameterJetApply_succ hf] | |
| 949 | - | |
| 950 | -theorem parameterJet_inverse (d : Direction) {f : Source P} | |
| 951 | - (hf : ContDiff ℝ ∞ f) (hp : Periodic f) (q : ℕ) (z : Point P) (v : Fin q → P) : | |
| 952 | - parameterJet q (inverse d f) z v = | |
| 953 | - inverse d (fun w => parameterJet q f w v) z := | |
| 954 | - congrFun (parameterJetApply_inverse d hf hp q v) z | |
| 955 | - | |
| 956 | 799 | noncomputable def nonzeroMultiplier (k : Frequency) : ℂ := if k = 0 then 0 else 1 |
| 957 | 800 | |
| 958 | 801 | theorem nonzeroMultiplier_growth : ParametricTorusInverse.PolynomialGrowth nonzeroMultiplier := by |
| @@ -997,12 +840,6 @@ theorem nonbarPart_smooth {f : Source P} (hf : ContDiff ℝ ∞ f) | ||
| 997 | 840 | rw [nonbarPart_eq_applyMultiplier hf hp] |
| 998 | 841 | exact applyMultiplier_smooth nonzeroMultiplier_growth hf hp |
| 999 | 842 | |
| 1000 | -omit [FiniteDimensional ℝ P] [NormedAddCommGroup P] [NormedSpace ℝ P] in | |
| 1001 | -theorem nonbarPart_periodic {f : Source P} (hp : Periodic f) : Periodic (nonbarPart f) := by | |
| 1002 | - intro p Y k | |
| 1003 | - change f (p, Y + ((k.1 : ℝ), (k.2 : ℝ))) - mean f p = f (p, Y) - mean f p | |
| 1004 | - rw [show f (p, Y + ((k.1 : ℝ), (k.2 : ℝ))) = f (p, Y) from hp p Y k] | |
| 1005 | - | |
| 1006 | 843 | omit [FiniteDimensional ℝ P] in |
| 1007 | 844 | theorem nonbarPart_zeroMean {f : Source P} (hf : ContDiff ℝ ∞ f) |
| 1008 | 845 | (hp : Periodic f) : ZeroMean (nonbarPart f) := by |
| @@ -1011,12 +848,6 @@ theorem nonbarPart_zeroMean {f : Source P} (hf : ContDiff ℝ ∞ f) | ||
| 1011 | 848 | rw [mean_applyMultiplier nonzeroMultiplier_growth hf hp p] |
| 1012 | 849 | simp [nonzeroMultiplier] |
| 1013 | 850 | |
| 1014 | -theorem centered_inverse_solves (d : Direction) {f : Source P} | |
| 1015 | - (hf : ContDiff ℝ ∞ f) (hp : Periodic f) : | |
| 1016 | - directionalPartial d (inverse d (nonbarPart f)) = nonbarPart f := | |
| 1017 | - inverse_solves d (nonbarPart_smooth hf hp) (nonbarPart_periodic hp) | |
| 1018 | - (nonbarPart_zeroMean hf hp) | |
| 1019 | - | |
| 1020 | 851 | theorem nonbarPart_finiteJets (n : ℕ) : |
| 1021 | 852 | ∃ K : ℝ, 0 ≤ K ∧ ∀ (f : Source P) (S : Set P) (C : ℝ), |
| 1022 | 853 | ContDiff ℝ ∞ f → Periodic f → 0 ≤ C → |
| @@ -1039,102 +870,6 @@ theorem nonbarPart_preserves_parameter_support (f : Source P) (S : Set P) | ||
| 1039 | 870 | rw [nonbarPart, hs p hp Y, mean_eq_integral] |
| 1040 | 871 | simp only [hs p hp, intervalIntegral.integral_zero, sub_zero] |
| 1041 | 872 | |
| 1042 | -noncomputable def mixedJet (q : ℕ) (w : List Bool) (f : Source P) (z : Point P) : | |
| 1043 | - ContinuousMultilinearMap ℝ (fun _ : Fin q => P) ℂ := | |
| 1044 | - tensorTorusWord w (fun Y => parameterJet q f (z.1, Y)) z.2 | |
| 1045 | - | |
| 1046 | -omit [FiniteDimensional ℝ P] in | |
| 1047 | -theorem mixedJet_apply {f : Source P} (hf : ContDiff ℝ ∞ f) | |
| 1048 | - (q : ℕ) (w : List Bool) (z : Point P) (v : Fin q → P) : | |
| 1049 | - mixedJet q w f z v = | |
| 1050 | - derivativeWord w (slice (parameterJetApply q v f) z.1) z.2 := by | |
| 1051 | - have hg : ContDiff ℝ ∞ (fun Y => parameterJet q f (z.1, Y)) := | |
| 1052 | - (parameterJet_smooth hf q).comp (contDiff_const.prodMk contDiff_id) | |
| 1053 | - have h := congrFun (tensorTorusWord_map | |
| 1054 | - (ContinuousMultilinearMap.apply ℝ (fun _ : Fin q => P) ℂ v) hg w) z.2 | |
| 1055 | - rw [tensorTorusWord_scalar] at h | |
| 1056 | - exact h.symm | |
| 1057 | - | |
| 1058 | -omit [FiniteDimensional ℝ P] in | |
| 1059 | -theorem norm_derivativeWord_inverse_le (d : Direction) {f : Source P} | |
| 1060 | - (hf : ContDiff ℝ ∞ f) (hp : Periodic f) (w : List Bool) (p : P) (Y : Plane) {C : ℝ} | |
| 1061 | - (hzero : ∀ x ∈ Icc (0 : ℝ) 1, ∀ y ∈ Icc (0 : ℝ) 1, ‖f (p, (x, y))‖ ≤ C) | |
| 1062 | - (hfirst : ∀ x ∈ Icc (0 : ℝ) 1, ∀ y ∈ Icc (0 : ℝ) 1, | |
| 1063 | - ‖SmoothFourierData.xJet (w.length + 5) (slice f p) (x, y)‖ ≤ C) | |
| 1064 | - (hsecond : ∀ x ∈ Icc (0 : ℝ) 1, ∀ y ∈ Icc (0 : ℝ) 1, | |
| 1065 | - ‖SmoothFourierData.xJet (w.length + 5) | |
| 1066 | - (SmoothFourierData.swapFunction (slice f p)) (x, y)‖ ≤ C) : | |
| 1067 | - ‖derivativeWord w (slice (inverse d f) p) Y‖ ≤ | |
| 1068 | - ParametricTorusInverse.mixedLossConstant w.length * C := by | |
| 1069 | - have hbound := SmoothFourierData.coefficient_seminorm_bound (slice_smooth hf p) (hp p) | |
| 1070 | - (w.length + 1) hzero (by simpa only [Nat.add_assoc] using hfirst) | |
| 1071 | - (by simpa only [Nat.add_assoc] using hsecond) | |
| 1072 | - calc | |
| 1073 | - _ ≤ ((6 * ‖omega⁻¹‖) * ‖omega‖ ^ w.length) * | |
| 1074 | - coeffSeminorm (w.length + 1) (coefficient f p) := | |
| 1075 | - inverse_derivativeWord_bound d | |
| 1076 | - (SmoothFourierData.rapid_coefficient (slice_smooth hf p) (hp p)) w Y | |
| 1077 | - _ ≤ ((6 * ‖omega⁻¹‖) * ‖omega‖ ^ w.length) * | |
| 1078 | - ((3 ^ ((w.length + 1) + 4) * C) * ∑' k : Frequency, (weight k ^ 4)⁻¹) := | |
| 1079 | - mul_le_mul_of_nonneg_left hbound (by positivity) | |
| 1080 | - _ = _ := by simp only [ParametricTorusInverse.mixedLossConstant, Nat.add_assoc]; ring | |
| 1081 | - | |
| 1082 | -theorem mixedJet_inverse_bound (d : Direction) {f : Source P} | |
| 1083 | - (hf : ContDiff ℝ ∞ f) (hp : Periodic f) (q : ℕ) (w : List Bool) | |
| 1084 | - (S : Set P) {C : ℝ} (hC : 0 ≤ C) | |
| 1085 | - (hzero : ∀ p ∈ S, ∀ x ∈ Icc (0 : ℝ) 1, ∀ y ∈ Icc (0 : ℝ) 1, | |
| 1086 | - ‖parameterJet q f (p, (x, y))‖ ≤ C) | |
| 1087 | - (hfirst : ∀ p ∈ S, ∀ x ∈ Icc (0 : ℝ) 1, ∀ y ∈ Icc (0 : ℝ) 1, | |
| 1088 | - ‖tensorTorusWord (List.replicate (w.length + 5) false) | |
| 1089 | - (fun Y => parameterJet q f (p, Y)) (x, y)‖ ≤ C) | |
| 1090 | - (hsecond : ∀ p ∈ S, ∀ x ∈ Icc (0 : ℝ) 1, ∀ y ∈ Icc (0 : ℝ) 1, | |
| 1091 | - ‖tensorTorusWord (List.replicate (w.length + 5) false) | |
| 1092 | - (fun Y => parameterJet q f (p, (Y.2, Y.1))) (x, y)‖ ≤ C) | |
| 1093 | - (p : P) (hps : p ∈ S) (Y : Plane) : | |
| 1094 | - ‖mixedJet q w (inverse d f) (p, Y)‖ ≤ | |
| 1095 | - ParametricTorusInverse.mixedLossConstant w.length * C := by | |
| 1096 | - apply ContinuousMultilinearMap.opNorm_le_bound | |
| 1097 | - (mul_nonneg (ParametricTorusInverse.mixedLossConstant_nonneg w.length) hC) | |
| 1098 | - intro v | |
| 1099 | - rw [mixedJet_apply (inverse_smooth d hf hp), | |
| 1100 | - parameterJetApply_inverse d hf hp] | |
| 1101 | - have hg : ContDiff ℝ ∞ (fun Y => parameterJet q f (p, Y)) := | |
| 1102 | - (parameterJet_smooth hf q).comp (contDiff_const.prodMk contDiff_id) | |
| 1103 | - have hgs : ContDiff ℝ ∞ (fun Y : Plane => parameterJet q f (p, (Y.2, Y.1))) := | |
| 1104 | - hg.comp (contDiff_snd.prodMk contDiff_fst) | |
| 1105 | - let L := ContinuousMultilinearMap.apply ℝ (fun _ : Fin q => P) ℂ v | |
| 1106 | - have hb0 : ∀ x ∈ Icc (0 : ℝ) 1, ∀ y ∈ Icc (0 : ℝ) 1, | |
| 1107 | - ‖parameterJetApply q v f (p, (x, y))‖ ≤ C * ∏ i, ‖v i‖ := by | |
| 1108 | - intro x hx y hy | |
| 1109 | - exact ContinuousMultilinearMap.le_of_opNorm_le (hzero p hps x hx y hy) v | |
| 1110 | - have hb1 : ∀ x ∈ Icc (0 : ℝ) 1, ∀ y ∈ Icc (0 : ℝ) 1, | |
| 1111 | - ‖SmoothFourierData.xJet (w.length + 5) (slice (parameterJetApply q v f) p) (x, y)‖ ≤ | |
| 1112 | - C * ∏ i, ‖v i‖ := by | |
| 1113 | - intro x hx y hy | |
| 1114 | - have he := congrFun (tensorTorusWord_map L hg (List.replicate (w.length + 5) false)) (x, y) | |
| 1115 | - rw [tensorTorusWord_replicate] at he | |
| 1116 | - change SmoothFourierData.xJet (w.length + 5) | |
| 1117 | - (slice (parameterJetApply q v f) p) (x, y) = | |
| 1118 | - (tensorTorusWord (List.replicate (w.length + 5) false) | |
| 1119 | - (fun Y => parameterJet q f (p, Y)) (x, y)) v at he | |
| 1120 | - rw [he] | |
| 1121 | - exact ContinuousMultilinearMap.le_of_opNorm_le (hfirst p hps x hx y hy) v | |
| 1122 | - have hb2 : ∀ x ∈ Icc (0 : ℝ) 1, ∀ y ∈ Icc (0 : ℝ) 1, | |
| 1123 | - ‖SmoothFourierData.xJet (w.length + 5) | |
| 1124 | - (SmoothFourierData.swapFunction (slice (parameterJetApply q v f) p)) (x, y)‖ ≤ | |
| 1125 | - C * ∏ i, ‖v i‖ := by | |
| 1126 | - intro x hx y hy | |
| 1127 | - have he := congrFun (tensorTorusWord_map L hgs (List.replicate (w.length + 5) false)) (x, y) | |
| 1128 | - rw [tensorTorusWord_replicate] at he | |
| 1129 | - change SmoothFourierData.xJet (w.length + 5) | |
| 1130 | - (SmoothFourierData.swapFunction (slice (parameterJetApply q v f) p)) (x, y) = | |
| 1131 | - (tensorTorusWord (List.replicate (w.length + 5) false) | |
| 1132 | - (fun Y => parameterJet q f (p, (Y.2, Y.1))) (x, y)) v at he | |
| 1133 | - rw [he] | |
| 1134 | - exact ContinuousMultilinearMap.le_of_opNorm_le (hsecond p hps x hx y hy) v | |
| 1135 | - exact (norm_derivativeWord_inverse_le d (parameterJetApply_smooth hf q v) | |
| 1136 | - (parameterJetApply_periodic hf hp q v) w p Y hb0 hb1 hb2).trans_eq (by ring) | |
| 1137 | - | |
| 1138 | 873 | |
| 1139 | 874 | end FiniteDimensional |
| 1140 | 875 | end NavierStokes.SmoothFamilyTorusInverse |
+0 −31 NavierStokes/SmoothFourierData.lean View file
| @@ -138,14 +138,6 @@ theorem coefficient_xJet {f : Plane → ℂ} (hf : ContDiff ℝ ∞ f) | ||
| 138 | 138 | rw [ih, coefficient_partialX (xJet_smooth hf p) (xJet_periodic hp p) hk, |
| 139 | 139 | xJet_succ, pow_succ, mul_assoc] |
| 140 | 140 | |
| 141 | -/-- A coefficient-decay estimate obtained from a bound on an actual derivative. -/ | |
| 142 | -theorem coefficient_decay_first {f : Plane → ℂ} (hf : ContDiff ℝ ∞ f) | |
| 143 | - (hp : UnitPeriodic f) {k : Frequency} (hk : k.1 ≠ 0) (p : ℕ) {C : ℝ} | |
| 144 | - (hb : ∀ x ∈ Icc (0 : ℝ) 1, ∀ y ∈ Icc (0 : ℝ) 1, ‖xJet p f (x, y)‖ ≤ C) : | |
| 145 | - ‖coefficient f k‖ ≤ ‖(omega * (k.1 : ℂ))⁻¹‖ ^ p * C := by | |
| 146 | - rw [coefficient_xJet hf hp hk p, norm_mul, norm_pow] | |
| 147 | - exact mul_le_mul_of_nonneg_left (coefficient_norm_le k hb) (pow_nonneg (norm_nonneg _) p) | |
| 148 | - | |
| 149 | 141 | /-- The negative Fourier character on the unit square. -/ |
| 150 | 142 | def kernel (k : Frequency) (z : Plane) : ℂ := |
| 151 | 143 | fourier (-k.1) (z.1 : UnitAddCircle) * fourier (-k.2) (z.2 : UnitAddCircle) |
| @@ -200,14 +192,6 @@ theorem coefficient_swap {f : Plane → ℂ} (hf : Continuous f) (k : Frequency) | ||
| 200 | 192 | unfold kernel swapFunction |
| 201 | 193 | ring |
| 202 | 194 | |
| 203 | -theorem coefficient_decay_second {f : Plane → ℂ} (hf : ContDiff ℝ ∞ f) | |
| 204 | - (hp : UnitPeriodic f) {k : Frequency} (hk : k.2 ≠ 0) (p : ℕ) {C : ℝ} | |
| 205 | - (hb : ∀ x ∈ Icc (0 : ℝ) 1, ∀ y ∈ Icc (0 : ℝ) 1, | |
| 206 | - ‖xJet p (swapFunction f) (x, y)‖ ≤ C) : | |
| 207 | - ‖coefficient f k‖ ≤ ‖(omega * (k.2 : ℂ))⁻¹‖ ^ p * C := by | |
| 208 | - rw [coefficient_swap hf.continuous k] | |
| 209 | - exact coefficient_decay_first (swapFunction_smooth hf) (swapFunction_periodic hp) hk p hb | |
| 210 | - | |
| 211 | 195 | theorem norm_omega_ge_one : 1 ≤ ‖omega‖ := by |
| 212 | 196 | have hnorm : ‖omega‖ = 2 * Real.pi := by |
| 213 | 197 | simp [omega, Complex.norm_real, Real.norm_eq_abs, abs_of_pos Real.pi_pos] |
| @@ -490,16 +474,6 @@ theorem coefficient_zero_eq_mean (f : C(Torus, ℂ)) : | ||
| 490 | 474 | rw [coefficient_lift_eq_torus] |
| 491 | 475 | simp [torusCoefficient, torusMode] |
| 492 | 476 | |
| 493 | -/-- The constructed inverse now solves the equation for an arbitrary smooth | |
| 494 | -zero-mean torus function, not only for a preassigned coefficient sequence. -/ | |
| 495 | -theorem inverse_solves_smooth_torus (d : Direction) (f : C(Torus, ℂ)) | |
| 496 | - (hf : ContDiff ℝ ∞ (torusLift f)) (hmean : (∫ z, f z ∂torusMeasure) = 0) (x : Plane) : | |
| 497 | - fderiv ℝ (directionalInverse d (coefficient (torusLift f))) x (vector d) = | |
| 498 | - torusLift f x := by | |
| 499 | - have ha := rapid_coefficient hf (torusLift_periodic f) | |
| 500 | - have hz : coefficient (torusLift f) 0 = 0 := by rw [coefficient_zero_eq_mean, hmean] | |
| 501 | - rw [directionalInverse_solves d ha hz, series_coefficient_lift f hf] | |
| 502 | - | |
| 503 | 477 | /-! ## Descent of an arbitrary periodic function on the plane -/ |
| 504 | 478 | |
| 505 | 479 | theorem unitPeriodic_first {f : Plane → ℂ} (hp : UnitPeriodic f) (y : ℝ) : |
| @@ -557,11 +531,6 @@ theorem coefficient_zero_eq_integral (f : Plane → ℂ) : | ||
| 557 | 531 | rw [coefficient_eq_doubleIntegral] |
| 558 | 532 | simp [kernel] |
| 559 | 533 | |
| 560 | -/-- The final coefficient bridge to the existing inverse construction. -/ | |
| 561 | -theorem smooth_periodic_fourier_data {f : Plane → ℂ} (hf : ContDiff ℝ ∞ f) | |
| 562 | - (hp : UnitPeriodic f) : Rapid (coefficient f) ∧ series (coefficient f) = f := | |
| 563 | - ⟨rapid_coefficient hf hp, funext (series_coefficient hf hp)⟩ | |
| 564 | - | |
| 565 | 534 | theorem inverse_solves_smooth_periodic (d : Direction) {f : Plane → ℂ} |
| 566 | 535 | (hf : ContDiff ℝ ∞ f) (hp : UnitPeriodic f) |
| 567 | 536 | (hmean : (∫ y in (0 : ℝ)..1, ∫ x in (0 : ℝ)..1, f (x, y)) = 0) (x : Plane) : |
+0 −169 NavierStokes/SmoothLoop.lean View file
| @@ -91,12 +91,6 @@ theorem cosineTilt_contDiff (m amplitude : ℝ) : | ||
| 91 | 91 | ContDiff ℝ (∞ : WithTop ℕ∞) (cosineTilt m amplitude) := by |
| 92 | 92 | exact contDiff_const.add (contDiff_const.mul Real.contDiff_cos) |
| 93 | 93 | |
| 94 | -/-- Joint smoothness in mean, amplitude, and angle. -/ | |
| 95 | -theorem cosineTilt_joint_contDiff : | |
| 96 | - ContDiff ℝ (∞ : WithTop ℕ∞) (fun x : (ℝ × ℝ) × ℝ => | |
| 97 | - cosineTilt x.1.1 x.1.2 x.2) := by | |
| 98 | - exact (contDiff_fst.fst).add ((contDiff_fst.snd).mul (Real.contDiff_cos.comp contDiff_snd)) | |
| 99 | - | |
| 100 | 94 | theorem cosineTilt_mean (m amplitude : ℝ) : angularMean (cosineTilt m amplitude) = m := by |
| 101 | 95 | unfold cosineTilt |
| 102 | 96 | rw [angularMean_add _ _ continuous_const (continuous_const.fun_mul Real.continuous_cos), |
| @@ -113,61 +107,6 @@ theorem cosineTilt_variance (m amplitude : ℝ) : | ||
| 113 | 107 | rw [heq, angularMean_const_mul, angularMean_cos_sq] |
| 114 | 108 | ring |
| 115 | 109 | |
| 116 | -/-- Actual smooth periodic functions realize every nonnegative variance. -/ | |
| 117 | -theorem exists_cosine_moments (m V : ℝ) (hV : 0 ≤ V) : | |
| 118 | - ∃ t : ℝ → ℝ, ContDiff ℝ (∞ : WithTop ℕ∞) t ∧ | |
| 119 | - Function.Periodic t (2 * Real.pi) ∧ angularMean t = m ∧ | |
| 120 | - angularMean (fun θ => (t θ - m) ^ 2) = V := by | |
| 121 | - refine ⟨cosineTilt m (Real.sqrt (2 * V)), cosineTilt_contDiff _ _, | |
| 122 | - cosineTilt_periodic _ _, cosineTilt_mean _ _, ?_⟩ | |
| 123 | - rw [cosineTilt_variance, Real.sq_sqrt (mul_nonneg (by norm_num) hV)] | |
| 124 | - ring | |
| 125 | - | |
| 126 | -/-- The full range is controlled by the amplitude, uniformly in the angle. -/ | |
| 127 | -theorem cosineTilt_projection_bound (p₁ p₂ m amplitude θ : ℝ) : | |
| 128 | - p₁ + p₂ * m - |p₂ * amplitude| ≤ p₁ + p₂ * cosineTilt m amplitude θ := by | |
| 129 | - have habs : |(p₂ * amplitude) * Real.cos θ| ≤ |p₂ * amplitude| := by | |
| 130 | - calc | |
| 131 | - |(p₂ * amplitude) * Real.cos θ| = |p₂ * amplitude| * |Real.cos θ| := abs_mul _ _ | |
| 132 | - _ ≤ |p₂ * amplitude| * 1 := | |
| 133 | - mul_le_mul_of_nonneg_left (Real.abs_cos_le_one θ) (abs_nonneg _) | |
| 134 | - _ = |p₂ * amplitude| := mul_one _ | |
| 135 | - have hlow := (abs_le.mp habs).1 | |
| 136 | - dsimp [cosineTilt] | |
| 137 | - nlinarith | |
| 138 | - | |
| 139 | -theorem cosineTilt_stress_positive (p₁ p₂ m amplitude : ℝ) | |
| 140 | - (hmargin : 2 + |p₂ * amplitude| < p₁ + p₂ * m) : | |
| 141 | - ∀ θ, 2 < p₁ + p₂ * cosineTilt m amplitude θ := by | |
| 142 | - intro θ | |
| 143 | - have hbound := cosineTilt_projection_bound p₁ p₂ m amplitude θ | |
| 144 | - linarith | |
| 145 | - | |
| 146 | -/-- Sufficient projection margin for the explicit prescribed-variance loop. | |
| 147 | -The margin is an additional hypothesis, not a consequence of `P>2`. -/ | |
| 148 | -theorem exists_cosine_moments_with_projection (p₁ p₂ m V : ℝ) (hV : 0 ≤ V) | |
| 149 | - (hmargin : 2 + |p₂ * Real.sqrt (2 * V)| < p₁ + p₂ * m) : | |
| 150 | - ∃ t : ℝ → ℝ, ContDiff ℝ (∞ : WithTop ℕ∞) t ∧ | |
| 151 | - Function.Periodic t (2 * Real.pi) ∧ angularMean t = m ∧ | |
| 152 | - angularMean (fun θ => (t θ - m) ^ 2) = V ∧ | |
| 153 | - ∀ θ, 2 < p₁ + p₂ * t θ := by | |
| 154 | - refine ⟨cosineTilt m (Real.sqrt (2 * V)), cosineTilt_contDiff _ _, | |
| 155 | - cosineTilt_periodic _ _, cosineTilt_mean _ _, ?_, | |
| 156 | - cosineTilt_stress_positive p₁ p₂ m _ hmargin⟩ | |
| 157 | - rw [cosineTilt_variance, Real.sq_sqrt (mul_nonneg (by norm_num) hV)] | |
| 158 | - ring | |
| 159 | - | |
| 160 | -/-- Smooth parameter data remain smooth when the chosen signed amplitude is | |
| 161 | -smooth. In particular, a smooth square root of a variance correction can be | |
| 162 | -used without asserting that square root is smooth on all of `[0,∞)`. -/ | |
| 163 | -theorem cosineTilt_smooth_family {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 164 | - (m amplitude : E → ℝ) | |
| 165 | - (hm : ContDiff ℝ (∞ : WithTop ℕ∞) m) | |
| 166 | - (hamp : ContDiff ℝ (∞ : WithTop ℕ∞) amplitude) : | |
| 167 | - ContDiff ℝ (∞ : WithTop ℕ∞) (fun x : E × ℝ => cosineTilt (m x.1) (amplitude x.1) x.2) := by | |
| 168 | - exact (hm.comp contDiff_fst).add | |
| 169 | - ((hamp.comp contDiff_fst).mul (Real.contDiff_cos.comp contDiff_snd)) | |
| 170 | - | |
| 171 | 110 | /-- Variance expansion for actual angular integrals. -/ |
| 172 | 111 | theorem angular_variance_identity (t : ℝ → ℝ) (m : ℝ) |
| 173 | 112 | (ht : Continuous t) (hmean : angularMean t = m) : |
| @@ -490,114 +429,6 @@ def densityOfTilt (t : ℝ → ℝ) (a m ρ v : ℝ) | ||
| 490 | 429 | exact (angular_rephasing_moments t a m ρ v (ne_of_gt ha) (ne_of_gt hv) |
| 491 | 430 | ht.continuous hmean hvar hspeed).1 |
| 492 | 431 | |
| 493 | -open LoopMoments in | |
| 494 | -/-- A complete reparametrization theorem: ordinary mean/variance data produce | |
| 495 | -actual smooth period-one shear functions with the prescribed unweighted | |
| 496 | -integrals. The radial-speed identity is pointwise. No cone condition is | |
| 497 | -included, since that requires further inequalities on the chosen tilts. -/ | |
| 498 | -theorem exists_rephased_shear_loop (t : ℝ → ℝ) (a m ρ v : ℝ) | |
| 499 | - (ha : 0 < a) (hv : 0 < v) (ht : ContDiff ℝ (∞ : WithTop ℕ∞) t) | |
| 500 | - (hperiodic : Function.Periodic t (2 * Real.pi)) | |
| 501 | - (hmean : angularMean t = m) | |
| 502 | - (hvar : angularMean (fun θ => (t θ - m) ^ 2) = ρ / a) | |
| 503 | - (hspeed : v = a * (1 + m ^ 2) + ρ) : | |
| 504 | - ∃ A C : ℝ → ℝ, | |
| 505 | - ContDiff ℝ (∞ : WithTop ℕ∞) A ∧ ContDiff ℝ (∞ : WithTop ℕ∞) C ∧ | |
| 506 | - Function.Periodic A 1 ∧ Function.Periodic C 1 ∧ | |
| 507 | - (∫ φ in (0 : ℝ)..1, A φ) = a ∧ (∫ φ in (0 : ℝ)..1, C φ) = a * m ∧ | |
| 508 | - ∀ φ, 0 < A φ ∧ A φ * (1 + (C φ / A φ) ^ 2) = v := by | |
| 509 | - let d := densityOfTilt t a m ρ v ha hv ht hperiodic hmean hvar hspeed | |
| 510 | - let fA := fun θ => loopA v (t θ) | |
| 511 | - let fC := fun θ => loopC v (t θ) | |
| 512 | - have hsm := smooth_loop_shears t v ht | |
| 513 | - have hper := periodic_loop_shears t v hperiodic | |
| 514 | - have hmom := angular_rephasing_moments t a m ρ v (ne_of_gt ha) (ne_of_gt hv) | |
| 515 | - ht.continuous hmean hvar hspeed | |
| 516 | - refine ⟨rephase d fA, rephase d fC, rephase_contDiff d fA hsm.1, | |
| 517 | - rephase_contDiff d fC hsm.2, rephase_periodic d fA hper.1, | |
| 518 | - rephase_periodic d fC hper.2, ?_, ?_, ?_⟩ | |
| 519 | - · rw [integral_rephase d fA hsm.1.continuous] | |
| 520 | - change (∫ θ in (0 : ℝ)..(2 * Real.pi), | |
| 521 | - loopA v (t θ) * (phaseDensity a v (t θ) / (2 * Real.pi))) = a | |
| 522 | - simp_rw [← mul_div_assoc, mul_comm (loopA v (t _)) (phaseDensity a v (t _))] | |
| 523 | - rw [intervalIntegral.integral_div] | |
| 524 | - exact hmom.2.1 | |
| 525 | - · rw [integral_rephase d fC hsm.2.continuous] | |
| 526 | - change (∫ θ in (0 : ℝ)..(2 * Real.pi), | |
| 527 | - loopC v (t θ) * (phaseDensity a v (t θ) / (2 * Real.pi))) = a * m | |
| 528 | - simp_rw [← mul_div_assoc, mul_comm (loopC v (t _)) (phaseDensity a v (t _))] | |
| 529 | - rw [intervalIntegral.integral_div] | |
| 530 | - exact hmom.2.2 | |
| 531 | - · intro φ | |
| 532 | - dsimp [rephase, fA, fC] | |
| 533 | - refine ⟨loopA_pos _ _ hv, ?_⟩ | |
| 534 | - rw [loop_slope _ _ (ne_of_gt hv), loop_speed] | |
| 535 | - | |
| 536 | -open LoopMoments in | |
| 537 | -theorem rephase_slope (d : CircleDensity) (t : ℝ → ℝ) (v φ : ℝ) (hv : v ≠ 0) : | |
| 538 | - rephase d (fun θ => loopC v (t θ)) φ / | |
| 539 | - rephase d (fun θ => loopA v (t θ)) φ = t ((phaseHomeomorph d).symm φ) := by | |
| 540 | - exact loop_slope v (t ((phaseHomeomorph d).symm φ)) hv | |
| 541 | - | |
| 542 | -open LoopMoments in | |
| 543 | -/-- Any verified slope condition survives the constructed phase change. -/ | |
| 544 | -theorem rephase_preserves_slope_condition (d : CircleDensity) (t : ℝ → ℝ) (v : ℝ) | |
| 545 | - (hv : v ≠ 0) (R : ℝ → Prop) (hR : ∀ θ, R (t θ)) : | |
| 546 | - ∀ φ, R (rephase d (fun θ => loopC v (t θ)) φ / | |
| 547 | - rephase d (fun θ => loopA v (t θ)) φ) := by | |
| 548 | - intro φ | |
| 549 | - rw [rephase_slope d t v φ hv] | |
| 550 | - exact hR _ | |
| 551 | - | |
| 552 | -open LoopMoments in | |
| 553 | -theorem rephase_projection_positive (d : CircleDensity) (t : ℝ → ℝ) (p₁ p₂ v : ℝ) | |
| 554 | - (hv : v ≠ 0) (hprojection : ∀ θ, 2 < p₁ + p₂ * t θ) : | |
| 555 | - ∀ φ, 2 < p₁ + p₂ * (rephase d (fun θ => loopC v (t θ)) φ / | |
| 556 | - rephase d (fun θ => loopA v (t θ)) φ) := by | |
| 557 | - exact rephase_preserves_slope_condition d t v hv (fun z => 2 < p₁ + p₂ * z) hprojection | |
| 558 | - | |
| 559 | -/-- A fully constructed period-one shear loop for arbitrary positive first | |
| 560 | -mean and nonnegative variance increment. No seed function or inverse is | |
| 561 | -assumed. The speed increase is exactly the specified `ρ`. -/ | |
| 562 | -theorem exists_prescribed_mean_shear_loop (a b ρ : ℝ) (ha : 0 < a) (hρ : 0 ≤ ρ) : | |
| 563 | - ∃ A C : ℝ → ℝ, | |
| 564 | - ContDiff ℝ (∞ : WithTop ℕ∞) A ∧ ContDiff ℝ (∞ : WithTop ℕ∞) C ∧ | |
| 565 | - Function.Periodic A 1 ∧ Function.Periodic C 1 ∧ | |
| 566 | - (∫ φ in (0 : ℝ)..1, A φ) = a ∧ (∫ φ in (0 : ℝ)..1, C φ) = -b ∧ | |
| 567 | - ∀ φ, 0 < A φ ∧ | |
| 568 | - A φ * (1 + (C φ / A φ) ^ 2) = a * (1 + (-b / a) ^ 2) + ρ := by | |
| 569 | - let m := -b / a | |
| 570 | - let v := a * (1 + m ^ 2) + ρ | |
| 571 | - have hV : 0 ≤ ρ / a := div_nonneg hρ (le_of_lt ha) | |
| 572 | - obtain ⟨t, hts, htp, htm, htv⟩ := exists_cosine_moments m (ρ / a) hV | |
| 573 | - have hv : 0 < v := by | |
| 574 | - dsimp [v] | |
| 575 | - exact add_pos_of_pos_of_nonneg | |
| 576 | - (mul_pos ha (LoopMoments.one_add_sq_pos m)) hρ | |
| 577 | - obtain ⟨A, C, hA, hC, hpA, hpC, hmA, hmC, hs⟩ := | |
| 578 | - exists_rephased_shear_loop t a m ρ v ha hv hts htp htm htv rfl | |
| 579 | - refine ⟨A, C, hA, hC, hpA, hpC, hmA, ?_, hs⟩ | |
| 580 | - rw [hmC] | |
| 581 | - dsimp [m] | |
| 582 | - field_simp | |
| 583 | - | |
| 584 | -theorem rephase_const (d : CircleDensity) (c : ℝ) : | |
| 585 | - rephase d (fun _ => c) = fun _ => c := rfl | |
| 586 | - | |
| 587 | -open LoopMoments in | |
| 588 | -/-- At zero amplitude the loop shears are exactly the nominal constants, | |
| 589 | -independently of the phase parametrization. -/ | |
| 590 | -theorem zero_amplitude_is_nominal (d : CircleDensity) (a m : ℝ) : | |
| 591 | - rephase d (fun θ => loopA (a * (1 + m ^ 2)) (cosineTilt m 0 θ)) = (fun _ => a) ∧ | |
| 592 | - rephase d (fun θ => loopC (a * (1 + m ^ 2)) (cosineTilt m 0 θ)) = (fun _ => a * m) := by | |
| 593 | - constructor <;> funext φ <;> dsimp [rephase, loopA, loopC, cosineTilt] | |
| 594 | - · have hnz := ne_of_gt (LoopMoments.one_add_sq_pos m) | |
| 595 | - simp only [zero_mul, add_zero] | |
| 596 | - exact mul_div_cancel_right₀ a hnz | |
| 597 | - · have hnz := ne_of_gt (LoopMoments.one_add_sq_pos m) | |
| 598 | - simp only [zero_mul, add_zero] | |
| 599 | - field_simp | |
| 600 | - | |
| 601 | 432 | end |
| 602 | 433 | |
| 603 | 434 | end NavierStokes.SmoothLoop |
+0 −11 NavierStokes/SmoothParameterIntegral.lean View file
| @@ -204,17 +204,6 @@ theorem contDiffOn_integral (hs : IsOpen s) | ||
| 204 | 204 | ContDiffOn ℝ ∞ (fun x => ∫ t, F x t ∂μ) s := |
| 205 | 205 | (hasFTaylorSeriesUpToOn_integral hs h_smooth h_meas h_dom).contDiffOn |
| 206 | 206 | |
| 207 | -theorem iteratedFDeriv_integralOn (hs : IsOpen s) | |
| 208 | - (h_smooth : ∀ᵐ t ∂μ, ContDiffOn ℝ ∞ (fun x => F x t) s) | |
| 209 | - (h_meas : ∀ k x, x ∈ s → AEStronglyMeasurable (jet F k x) μ) | |
| 210 | - (h_dom : LocallyDominatedOn F μ s) (k : ℕ) {x : H} (hx : x ∈ s) : | |
| 211 | - iteratedFDeriv ℝ k (fun y => ∫ t, F y t ∂μ) x = | |
| 212 | - ∫ t, iteratedFDeriv ℝ k (fun y => F y t) x ∂μ := by | |
| 213 | - rw [← iteratedFDerivWithin_of_isOpen k hs hx] | |
| 214 | - have hp := hasFTaylorSeriesUpToOn_integral hs h_smooth h_meas h_dom | |
| 215 | - exact (hp.eq_iteratedFDerivWithin_of_uniqueDiffOn | |
| 216 | - (m := k) (WithTop.coe_le_coe.mpr le_top) hs.uniqueDiffOn hx).symm | |
| 217 | - | |
| 218 | 207 | end OpenDomain |
| 219 | 208 | |
| 220 | 209 | section CompactInterval |
+0 −15 NavierStokes/SmoothPathFamily.lean View file
| @@ -257,21 +257,6 @@ theorem odeFamily_initial (A : P × ℝ → E →L[ℝ] E) (x₀ : P → E) | ||
| 257 | 257 | odeFamily hab A x₀ f p ⟨a, le_rfl, hab⟩ = x₀ p := |
| 258 | 258 | ParametricODE.solution_initial hab (pathFamily A p) (x₀ p) (pathFamily f p) |
| 259 | 259 | |
| 260 | -omit [NormedSpace ℝ P] in | |
| 261 | -/-- The smooth path family satisfies the ODE with the originally supplied | |
| 262 | -coefficient values at every time in the closed interval. -/ | |
| 263 | -theorem odeFamily_hasDerivWithinAt (U : Set P) (V : Set ℝ) | |
| 264 | - (hI : Icc a b ⊆ V) (A : P × ℝ → E →L[ℝ] E) (x₀ : P → E) (f : P × ℝ → E) | |
| 265 | - (hA : ContinuousOn A (U ×ˢ V)) (hf : ContinuousOn f (U ×ˢ V)) | |
| 266 | - {p : P} (hp : p ∈ U) (t : Icc a b) : | |
| 267 | - HasDerivWithinAt (ParametricODE.extend hab (odeFamily hab A x₀ f p)) | |
| 268 | - (A (p, t) (odeFamily hab A x₀ f p t) + f (p, t)) (Icc a b) t := by | |
| 269 | - have hAc := slice_continuous (hA.mono (Set.prod_mono Subset.rfl hI)) hp | |
| 270 | - have hfc := slice_continuous (hf.mono (Set.prod_mono Subset.rfl hI)) hp | |
| 271 | - unfold odeFamily | |
| 272 | - simpa only [pathFamily_apply A p hAc, pathFamily_apply f p hfc] using | |
| 273 | - ParametricODE.solution_hasDerivWithinAt hab (pathFamily A p) (x₀ p) (pathFamily f p) t | |
| 274 | - | |
| 275 | 260 | end ODE |
| 276 | 261 | |
| 277 | 262 | end |
+0 −162 NavierStokes/SmoothPowerMomentMatrix.lean View file
| @@ -21,73 +21,6 @@ namespace NavierStokes.SmoothPowerMomentMatrix | ||
| 21 | 21 | |
| 22 | 22 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 23 | 23 | |
| 24 | -/-- A moving compact support can be replaced locally by a fixed finite interval. -/ | |
| 25 | -theorem integral_contDiffOn_of_moving_support [ProperSpace E] | |
| 26 | - (U : Set E) (hU : IsOpen U) (F : E × ℝ → ℝ) | |
| 27 | - (hF : ContDiffOn ℝ ∞ F (U ×ˢ univ)) (l u : E → ℝ) | |
| 28 | - (hl : ContinuousOn l U) (hu : ContinuousOn u U) | |
| 29 | - (hs : ∀ p ∈ U, support (fun t => F (p, t)) ⊆ Icc (l p) (u p)) : | |
| 30 | - ContDiffOn ℝ ∞ (fun p => ∫ t, F (p, t)) U := by | |
| 31 | - intro p hp | |
| 32 | - let a := min (l p) (u p) - 1 | |
| 33 | - let b := max (l p) (u p) + 1 | |
| 34 | - have ha : a < l p := by dsimp [a]; linarith [min_le_left (l p) (u p)] | |
| 35 | - have hb : u p < b := by dsimp [b]; linarith [le_max_right (l p) (u p)] | |
| 36 | - have hab : a ≤ b := by | |
| 37 | - dsimp [a, b] | |
| 38 | - linarith [show min (l p) (u p) ≤ max (l p) (u p) from min_le_max] | |
| 39 | - have hi := ParametricRephase.intervalIntegral_contDiffOn_of_joint F U hU hF a b hab | |
| 40 | - have heq : (fun q => ∫ t, F (q, t)) =ᶠ[𝓝 p] | |
| 41 | - (fun q => ∫ t in a..b, F (q, t)) := by | |
| 42 | - filter_upwards [hU.mem_nhds hp, | |
| 43 | - (hl.continuousAt (hU.mem_nhds hp)).eventually (lt_mem_nhds ha), | |
| 44 | - (hu.continuousAt (hU.mem_nhds hp)).eventually (gt_mem_nhds hb)] with q hq hql hqu | |
| 45 | - symm | |
| 46 | - apply intervalIntegral.integral_eq_integral_of_support_subset | |
| 47 | - intro t ht | |
| 48 | - exact ⟨lt_of_lt_of_le hql (hs q hq ht).1, (hs q hq ht).2.trans hqu.le⟩ | |
| 49 | - exact ((hi.contDiffAt (hU.mem_nhds hp)).congr_of_eventuallyEq heq).contDiffWithinAt | |
| 50 | - | |
| 51 | -/-- Determinants are finite polynomials in their entries. -/ | |
| 52 | -theorem determinant_contDiffOn {n : ℕ} {U : Set E} | |
| 53 | - (M : E → Matrix (Fin n) (Fin n) ℝ) | |
| 54 | - (hM : ContDiffOn ℝ ∞ M U) : ContDiffOn ℝ ∞ (fun p => (M p).det) U := by | |
| 55 | - classical | |
| 56 | - simp only [Matrix.det_apply'] | |
| 57 | - apply ContDiffOn.sum | |
| 58 | - intro σ _ | |
| 59 | - apply contDiffOn_const.mul | |
| 60 | - apply contDiffOn_prod | |
| 61 | - intro i _ | |
| 62 | - exact (contDiffOn_pi.mp (contDiffOn_pi.mp hM (σ i)) i) | |
| 63 | - | |
| 64 | -/-- The ordinary nonsingular matrix inverse is smooth wherever its determinant | |
| 65 | -is nonzero. The proof uses the explicit cofactor formula. -/ | |
| 66 | -theorem inverse_contDiffOn {n : ℕ} {U : Set E} | |
| 67 | - (M : E → Matrix (Fin n) (Fin n) ℝ) | |
| 68 | - (hM : ContDiffOn ℝ ∞ M U) (hdet : ∀ p ∈ U, (M p).det ≠ 0) : | |
| 69 | - ContDiffOn ℝ ∞ (fun p => (M p)⁻¹) U := by | |
| 70 | - classical | |
| 71 | - have hd := (determinant_contDiffOn M hM).inv hdet | |
| 72 | - apply contDiffOn_pi.mpr | |
| 73 | - intro i | |
| 74 | - apply contDiffOn_pi.mpr | |
| 75 | - intro j | |
| 76 | - simp only [Matrix.inv_def, Ring.inverse_eq_inv, Matrix.smul_apply, smul_eq_mul, | |
| 77 | - Matrix.adjugate_apply] | |
| 78 | - apply hd.mul | |
| 79 | - apply determinant_contDiffOn | |
| 80 | - apply contDiffOn_pi.mpr | |
| 81 | - intro k | |
| 82 | - apply contDiffOn_pi.mpr | |
| 83 | - intro t | |
| 84 | - by_cases hkj : k = j | |
| 85 | - · subst k | |
| 86 | - simp only [Matrix.updateRow_self] | |
| 87 | - exact contDiffOn_const | |
| 88 | - · simpa only [Matrix.updateRow_ne hkj] using | |
| 89 | - (contDiffOn_pi.mp (contDiffOn_pi.mp hM k) t) | |
| 90 | - | |
| 91 | 24 | /-- Primitive smooth data for separated positive bump moments. Endpoint |
| 92 | 25 | continuity suffices; in particular smoothly moving intervals are allowed. -/ |
| 93 | 26 | structure Family (E : Type*) [NormedAddCommGroup E] [NormedSpace ℝ E] |
| @@ -111,100 +44,5 @@ namespace Family | ||
| 111 | 44 | |
| 112 | 45 | variable {n : ℕ} {U : Set E} (D : Family E n U) |
| 113 | 46 | |
| 114 | -/-- Exactly the ordinary integral matrix in `PowerMomentMatrix`. -/ | |
| 115 | -def matrix (p : E) : Matrix (Fin n) (Fin n) ℝ := | |
| 116 | - PowerMomentMatrix.bumpMomentMatrix (D.exponent p) (D.bump p) | |
| 117 | - | |
| 118 | -/-- Positive support identifies the full-line integral definition with the | |
| 119 | -literal positive-half-line integral from the manuscript. -/ | |
| 120 | -theorem matrix_eq_positive_integral (p : E) (hp : p ∈ U) (i j : Fin n) : | |
| 121 | - D.matrix p i j = ∫ t in Ioi (0 : ℝ), t ^ D.exponent p i * D.bump p j t := by | |
| 122 | - symm | |
| 123 | - apply setIntegral_eq_integral_of_forall_compl_eq_zero | |
| 124 | - intro t ht | |
| 125 | - have hb : D.bump p j t = 0 := by | |
| 126 | - by_contra hb | |
| 127 | - exact ht (lt_of_lt_of_le (D.lower_pos p hp j) (D.bump_support p hp j hb).1) | |
| 128 | - rw [hb, mul_zero] | |
| 129 | - | |
| 130 | -theorem integrand_contDiffOn (hU : IsOpen U) (i j : Fin n) : | |
| 131 | - ContDiffOn ℝ ∞ (fun z : E × ℝ => z.2 ^ D.exponent z.1 i * D.bump z.1 j z.2) | |
| 132 | - (U ×ˢ univ) := by | |
| 133 | - intro z hz | |
| 134 | - have hopen : IsOpen (U ×ˢ (univ : Set ℝ)) := hU.prod isOpen_univ | |
| 135 | - have he : ContDiffAt ℝ ∞ (fun z : E × ℝ => D.exponent z.1 i) z := | |
| 136 | - (D.exponent_smooth i |>.contDiffAt (hU.mem_nhds hz.1)).comp z contDiffAt_fst | |
| 137 | - by_cases ht : z.2 = 0 | |
| 138 | - · have hl : ContinuousAt (fun y : E × ℝ => D.lower y.1 j) z := | |
| 139 | - (D.lower_continuous j |>.continuousAt (hU.mem_nhds hz.1)).comp continuousAt_fst | |
| 140 | - have hlt : z.2 < D.lower z.1 j := by rw [ht]; exact D.lower_pos z.1 hz.1 j | |
| 141 | - have heq : (fun y : E × ℝ => y.2 ^ D.exponent y.1 i * D.bump y.1 j y.2) | |
| 142 | - =ᶠ[𝓝 z] (fun _ => (0 : ℝ)) := by | |
| 143 | - filter_upwards [hopen.mem_nhds hz, | |
| 144 | - (continuousAt_snd.eventually_lt hl hlt)] with y hy hyl | |
| 145 | - have hb : D.bump y.1 j y.2 = 0 := by | |
| 146 | - by_contra hb | |
| 147 | - exact (not_le_of_gt hyl) (D.bump_support y.1 hy.1 j hb).1 | |
| 148 | - rw [hb, mul_zero] | |
| 149 | - exact (contDiffAt_const.congr_of_eventuallyEq heq).contDiffWithinAt | |
| 150 | - · exact ((contDiffAt_snd.rpow he ht).mul | |
| 151 | - (D.bump_smooth j |>.contDiffAt (hopen.mem_nhds hz))).contDiffWithinAt | |
| 152 | - | |
| 153 | -theorem matrix_contDiffOn [ProperSpace E] (hU : IsOpen U) : | |
| 154 | - ContDiffOn ℝ ∞ D.matrix U := by | |
| 155 | - apply contDiffOn_pi.mpr | |
| 156 | - intro i | |
| 157 | - apply contDiffOn_pi.mpr | |
| 158 | - intro j | |
| 159 | - apply integral_contDiffOn_of_moving_support U hU _ (D.integrand_contDiffOn hU i j) | |
| 160 | - (fun p => D.lower p j) (fun p => D.upper p j) | |
| 161 | - (D.lower_continuous j) (D.upper_continuous j) | |
| 162 | - intro p hp t ht | |
| 163 | - apply D.bump_support p hp j | |
| 164 | - intro hb | |
| 165 | - exact ht (by dsimp only; rw [hb, mul_zero]) | |
| 166 | - | |
| 167 | -theorem matrix_det_ne_zero (p : E) (hp : p ∈ U) : (D.matrix p).det ≠ 0 := by | |
| 168 | - apply PowerMomentMatrix.bumpMomentMatrix_det_ne_zero | |
| 169 | - (D.exponent p) (D.lower p) (D.upper p) (D.bump p) | |
| 170 | - (D.exponent_injective p hp) (D.lower_pos p hp) (D.separated p hp) | |
| 171 | - · intro j | |
| 172 | - exact contDiffOn_univ.mp ((D.bump_smooth j).comp | |
| 173 | - (contDiff_const.prodMk contDiff_id).contDiffOn (fun t _ => ⟨hp, mem_univ t⟩)) |>.continuous | |
| 174 | - · exact D.bump_nonnegative p hp | |
| 175 | - · exact D.bump_nonzero p hp | |
| 176 | - · exact D.bump_support p hp | |
| 177 | - | |
| 178 | -theorem matrix_inverse_contDiffOn [ProperSpace E] (hU : IsOpen U) : | |
| 179 | - ContDiffOn ℝ ∞ (fun p => (D.matrix p)⁻¹) U := | |
| 180 | - inverse_contDiffOn D.matrix (D.matrix_contDiffOn hU) D.matrix_det_ne_zero | |
| 181 | - | |
| 182 | -/-- Every fixed full parameter derivative of the actual inverse matrix is | |
| 183 | -uniformly bounded on an arbitrary compact subset of the parameter domain. -/ | |
| 184 | -theorem compact_inverse_jet_bound [ProperSpace E] (hU : IsOpen U) | |
| 185 | - (K : Set E) (hK : IsCompact K) (hKU : K ⊆ U) (m : ℕ) : | |
| 186 | - ∃ C ≥ 0, ∀ p ∈ K, | |
| 187 | - ‖iteratedFDeriv ℝ m (fun q => (D.matrix q)⁻¹) p‖ ≤ C := by | |
| 188 | - have hj : ContinuousOn (iteratedFDeriv ℝ m (fun q => (D.matrix q)⁻¹)) U := by | |
| 189 | - intro p hp | |
| 190 | - exact (((D.matrix_inverse_contDiffOn hU).contDiffAt (hU.mem_nhds hp)).iteratedFDeriv_right | |
| 191 | - (m := 0) (by simp)).continuousAt.continuousWithinAt | |
| 192 | - obtain ⟨C, hC⟩ := hK.exists_bound_of_continuousOn (hj.mono hKU) | |
| 193 | - exact ⟨max C 0, le_max_right _ _, fun p hp => (hC p hp).trans (le_max_left _ _)⟩ | |
| 194 | - | |
| 195 | -/-- A common bound also controls the inverse and all jets up to any prescribed | |
| 196 | -finite order, uniformly over the compact parameter set. -/ | |
| 197 | -theorem compact_inverse_jets_bound [ProperSpace E] (hU : IsOpen U) | |
| 198 | - (K : Set E) (hK : IsCompact K) (hKU : K ⊆ U) (m : ℕ) : | |
| 199 | - ∃ C ≥ 0, ∀ k ≤ m, ∀ p ∈ K, | |
| 200 | - ‖iteratedFDeriv ℝ k (fun q => (D.matrix q)⁻¹) p‖ ≤ C := by | |
| 201 | - choose C hC hbound using fun k : Fin (m + 1) => | |
| 202 | - D.compact_inverse_jet_bound hU K hK hKU k.val | |
| 203 | - refine ⟨∑ k, C k, Finset.sum_nonneg (fun k _ => hC k), ?_⟩ | |
| 204 | - intro k hk p hp | |
| 205 | - exact (hbound ⟨k, by omega⟩ p hp).trans | |
| 206 | - (Finset.single_le_sum (fun t _ => hC t) | |
| 207 | - (Finset.mem_univ (⟨k, by omega⟩ : Fin (m + 1)))) | |
| 208 | - | |
| 209 | 47 | end Family |
| 210 | 48 | end NavierStokes.SmoothPowerMomentMatrix |
+37 −0 routes/s1-ns-smooth-1/README.md added View file
| @@ -0,0 +1,37 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-smooth-1 | |
| 6 | + | |
| 7 | +One unit of issue #10 (S-1, declarations nothing uses): the family | |
| 8 | +`NavierStokes/Smooth*`. I delete the 74 declarations in the 9 files `unit.json` | |
| 9 | +lists (837 lines, deletions only): | |
| 10 | + | |
| 11 | +- `NavierStokes/SmoothCovariance.lean` (5) | |
| 12 | +- `NavierStokes/SmoothCutoffs.lean` (7) | |
| 13 | +- `NavierStokes/SmoothExponentialMomentMatrix.lean` (7) | |
| 14 | +- `NavierStokes/SmoothFamilyTorusInverse.lean` (25) | |
| 15 | +- `NavierStokes/SmoothFourierData.lean` (4) | |
| 16 | +- `NavierStokes/SmoothLoop.lean` (13) | |
| 17 | +- `NavierStokes/SmoothParameterIntegral.lean` (1) | |
| 18 | +- `NavierStokes/SmoothPathFamily.lean` (1) | |
| 19 | +- `NavierStokes/SmoothPowerMomentMatrix.lean` (11) | |
| 20 | + | |
| 21 | +The unit was cut from Treant's run of 2026-12-03 (upstream `f9e8bc5`) and read | |
| 22 | +again against this project's declaration graph on `main` under its rule that the | |
| 23 | +paper's results stay: a declaration stays when a paper result reaches it, when | |
| 24 | +its docstring cites the paper, or when a declaration that stays names it. None | |
| 25 | +of the 74 is reached any of those ways. On this branch `git grep -n -w` finds no | |
| 26 | +remaining user of any of the 67 short names outside another declaration of the | |
| 27 | +same short name in another namespace (e.g. `LocalizedMomentRepair.matrix_det_ne_zero`, | |
| 28 | +`ParametricTorusInverse.mixedJet`), and no deleted docstring cites a numbered | |
| 29 | +Lemma, Theorem, Proposition, Corollary, Section or Equation. | |
| 30 | + | |
| 31 | +`python3 checks/challenge.py .` ends with | |
| 32 | +`ok: 4 challenge files and the build configuration as approved; 2590 Lean files, 613814 lines, toolchain leanprover/lean4:v4.34.0-rc2`. | |
| 33 | + | |
| 34 | +## Next | |
| 35 | + | |
| 36 | +Open the pull request for this unit. What it does not show: that every remaining | |
| 37 | +declaration in these files is needed. | |