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 #385 from s1-ns-parametric-2
Browse fileschore(NavierStokes/Parametric): delete 48 declarations nothing uses
main maintainer-statement p1-ns-physical p2-correction-temporal-mean s1-euler-all-3 s1-euler-angle-9 s1-euler-canonical-8 s1-euler-correction-3 s1-euler-correction-9 s1-euler-cylinder-3 s1-euler-cylinder-8 s1-euler-dirichlet-6 s1-euler-euler-2 s1-euler-euler-6 s1-euler-exact-3 s1-euler-finite-3 s1-euler-hilbert-6 s1-euler-inviscid-8 s1-euler-lp-3 s1-euler-mean-8 s1-euler-ordinary-6 s1-euler-packet-3 s1-euler-packet-8 s1-euler-source-6 s1-euler-transverse-6 s1-euler-transverse-9 s1-euler-volume-3 s1-ns-actual-3 s1-ns-actual-8 s1-ns-annular-6 s1-ns-annular-8 s1-ns-assembled-7 s1-ns-axisymmetric-8 s1-ns-base-2 s1-ns-base-6 s1-ns-base-8 s1-ns-borel-3 s1-ns-common-6 s1-ns-common-8 s1-ns-common-9 s1-ns-constructed-3 s1-ns-constructed-8 s1-ns-copy-6 s1-ns-copy-8 s1-ns-correction-3 s1-ns-curl-6 s1-ns-curl-9 s1-ns-current-3 s1-ns-cycle-3 s1-ns-edge-6 s1-ns-error-3 s1-ns-error-9 s1-ns-even-3 s1-ns-final-6 s1-ns-first-3 s1-ns-five-8 s1-ns-flat-3 s1-ns-flat-8 s1-ns-fourier-3 s1-ns-graph-6 s1-ns-graph-9 s1-ns-harmonic-11 s1-ns-harmonic-6 s1-ns-harmonic-7 s1-ns-heat-3 s1-ns-joint-3 s1-ns-joint-8 s1-ns-label-6 s1-ns-linear-6 s1-ns-linear-7 s1-ns-localized-1 s1-ns-localized-6 s1-ns-mean-1 s1-ns-mean-8 s1-ns-modulated-3 s1-ns-moment-6 s1-ns-offplane-2 s1-ns-offplane-6 s1-ns-parametric-6 s1-ns-particular-10 s1-ns-particular-2 s1-ns-particular-6 s1-ns-particular-8 s1-ns-partitioned-6 s1-ns-partitioned-8 s1-ns-periodic-3 s1-ns-periodic-8 s1-ns-periodic-9 s1-ns-periodized-6 s1-ns-periodized-8 s1-ns-periodized-9 s1-ns-physical-3 s1-ns-physical-8 s1-ns-positive-8 s1-ns-prepared-6 s1-ns-pressure-9 s1-ns-primary-2 s1-ns-primary-6 s1-ns-primary-8 s1-ns-radial-9 s1-ns-reserved-8 s1-ns-residual-3 s1-ns-scaled-3 s1-ns-signed-3 s1-ns-signed-8 s1-ns-slow-6 s1-ns-smooth-3 s1-ns-smooth-8 s1-ns-spacetime-3 s1-ns-state-8 s1-ns-temporal-3 s1-ns-temporal-8 s1-ns-terminal-6 s1-ns-torus-3 s1-ns-uniform-8 s1-ns-variable-3 s1-ns-viscous-6 s1-ns-wave-11 s1-ns-wave-3 s1-ns-wave-8 s1-ns-weighted-10 s1-ns-weighted-12 s1-ns-weighted-3 s1-ns-weighted-8 s1-ns-weighted-9 s1-ns-whole-3 s1-ns-within-6 s2-build-profile-files s2-euler-all-1 s2-euler-base-1 s2-euler-bounded-1 s2-euler-child-1 s2-euler-coefficient-1 s2-euler-correction-1 s2-euler-cylinder-1 s2-euler-dirichlet-1 s2-euler-div-1 s2-euler-drift-1 s2-euler-euler-1 s2-euler-field-1 s2-euler-finite-1 s2-euler-flow-1 s2-euler-gaussian-1 s2-euler-gevrey-1 s2-euler-h6-1 s2-euler-heat-1 s2-euler-initial-1 s2-euler-integral-1 s2-euler-linear-1 s2-euler-local-1 s2-euler-logarithmic-1 s2-euler-mean-1 s2-euler-metric-1 s2-euler-mixed-1 s2-euler-operator-1 s2-euler-ordinary-1 s2-euler-ordinary-2 s2-euler-packet-1 s2-euler-parameter-1 s2-euler-parent-1 s2-euler-radial-1 s2-euler-small-1 s2-euler-sobolev-1 s2-euler-squared-1 s2-euler-static-1 s2-euler-terminal-1 s2-euler-time-1 s2-euler-transport-1 s2-euler-transverse-1 s2-euler-unshifted-1 s2-euler-vorticity-1 s2-euler-weighted-1 s2-instances-1 s2-ns-activation-1 s2-ns-actual-1 s2-ns-aligned-1 s2-ns-angular-1 s2-ns-annular-1 s2-ns-axis-1 s2-ns-base-1 s2-ns-chart-1 s2-ns-closed-1 s2-ns-common-1 s2-ns-cone-1 s2-ns-coordinate-1 s2-ns-corrected-1 s2-ns-correction-1 s2-ns-covariance-1 s2-ns-current-1 s2-ns-cylindrical-1 s2-ns-diophantine-1 s2-ns-direct-1 s2-ns-extended-1 s2-ns-five-1 s2-ns-flat-1 s2-ns-future-1 s2-ns-gauge-1 s2-ns-gaussian-1 s2-ns-global-1 s2-ns-glued-1 s2-ns-growing-1 s2-ns-heat-1 s2-ns-initial-1 s2-ns-label-1 s2-ns-local-1 s2-ns-loop-1 s2-ns-matching-1 s2-ns-mean-1 s2-ns-modulated-1 s2-ns-moment-1 s2-ns-moving-1 s2-ns-native-1 s2-ns-natural-1 s2-ns-normal-1 s2-ns-outgoing-1 s2-ns-outgoing-2 s2-ns-parametric-1 s2-ns-periodic-1 s2-ns-periodized-1 s2-ns-phase-1 s2-ns-physical-1 s2-ns-polar-1 s2-ns-positive-1 s2-ns-pressure-1 s2-ns-primary-1 s2-ns-profile-1 s2-ns-pulse-1 s2-ns-r3-1 s2-ns-r3-folder-1 s2-ns-reference-1 s2-ns-renormalized-1 s2-ns-repair-1 s2-ns-reserved-1 s2-ns-reset-1 s2-ns-residual-1 s2-ns-scaled-1 s2-ns-scaled-2 s2-ns-scaling-1 s2-ns-shape-1 s2-ns-shaped-1 s2-ns-signed-1 s2-ns-similarity-1 s2-ns-slot-1 s2-ns-slow-1 s2-ns-smooth-1 s2-ns-spatial-1 s2-ns-squared-1 s2-ns-stress-1 s2-ns-tail-1 s2-ns-temporal-1 s2-ns-terminal-1 s2-ns-transition-1 s2-ns-uniform-1 s2-ns-variable-1 s2-ns-viscous-1 s2-ns-volterra-1 s2-ns-volterra-2 s5-cap-1 s5-euler-all-1 s5-euler-base-1 s5-euler-bounded-1 s5-euler-canonical-1 s5-euler-coefficient-1 s5-euler-compact-1 s5-euler-continuous-1 s5-euler-correction-1 s5-euler-cylinder-1 s5-euler-drift-1 s5-euler-duhamel-1 s5-euler-elapsed-1 s5-euler-elapsed-2 s5-euler-euler-1 s5-euler-external-1 s5-euler-field-1 s5-euler-fixed-1 s5-euler-gained-1 s5-euler-gaussian-1 s5-euler-gevrey-1 s5-euler-graph-1 s5-euler-h5-1 s5-euler-h6-1 s5-euler-heat-1 s5-euler-inviscid-1 s5-euler-lifted-1 s5-euler-linear-1 s5-euler-lp-1 s5-euler-mean-1 s5-euler-mixed-1 s5-euler-ordinary-1 s5-euler-packet-1 s5-euler-parameter-1 s5-euler-parent-1 s5-euler-physical-1 s5-euler-projected-1 s5-euler-quadratic-1 s5-euler-regularized-1 s5-euler-small-1 s5-euler-smooth-1 s5-euler-sobolev-1 s5-euler-source-1 s5-euler-stage-1 s5-euler-static-1 s5-euler-terminal-1 s5-euler-time-1 s5-euler-top-1 s5-euler-transverse-1 s5-euler-weighted-1 s5-euler-whole-1 s5-ns-actual-1 s5-ns-axis-1 s5-ns-generic-1 s5-ns-label-1 s5-ns-local-1 s5-ns-mean-1 s5-ns-moment-1 s5-ns-particular-1 s5-ns-periodic-1 s5-ns-periodize-1 s5-ns-positive-1 s5-ns-r3-folder-1 s5-ns-reference-1 s5-ns-sharp-1 s5-ns-smooth-1 s5-ns-torus-1 s5-ns-valid-1 s5-ns-whole-1 s5-ns-within-1
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+0 −12 NavierStokes/ParametricEvenDescent.lean View file
| @@ -363,16 +363,4 @@ theorem descend_square_local {U : Set ℝ} {R : ℝ} {F : Plane → E} | ||
| 363 | 363 | descend F (p, r ^ 2) = F (p, r) := |
| 364 | 364 | EvenSmoothDescent.descent_square_local (f := fun r => F (p, r)) (he p hp) hr |
| 365 | 365 | |
| 366 | -/-- The radial right jets in the joint descent are the exact even radial jets. -/ | |
| 367 | -theorem iteratedDerivWithin_descend_axis_local {U : Set ℝ} {R : ℝ} (hR : 0 < R) | |
| 368 | - {F : Plane → E} (hF : ContDiffOn ℝ ∞ F (U ×ˢ Ioo (-R) R)) | |
| 369 | - (he : ∀ p ∈ U, ∀ r ∈ Ioo (-R) R, F (p, -r) = F (p, r)) | |
| 370 | - {p : ℝ} (hp : p ∈ U) (n : ℕ) : | |
| 371 | - iteratedDerivWithin n (fun X => descend F (p, X)) (Ici 0) 0 = | |
| 372 | - ((n.factorial : ℝ) / ((2 * n).factorial : ℝ)) • | |
| 373 | - iteratedDeriv (2 * n) (fun r => F (p, r)) 0 := by | |
| 374 | - apply EvenSmoothDescent.iteratedDerivWithin_descent_zero_local (f := fun r => F (p, r)) hR | |
| 375 | - · exact hF.comp (contDiff_const.prodMk contDiff_id).contDiffOn (fun r hr => ⟨hp, hr⟩) | |
| 376 | - · exact he p hp | |
| 377 | - | |
| 378 | 366 | end NavierStokes.ParametricEvenDescent |
+0 −13 NavierStokes/ParametricFlatFactor.lean View file
| @@ -66,11 +66,6 @@ theorem coefficient_slice_contDiff {b : E × ℝ → ℝ} (hb : ContDiff ℝ ∞ | ||
| 66 | 66 | ContDiff ℝ ∞ (fun u : ℝ => b (p, u)) := |
| 67 | 67 | hb.comp (contDiff_const.prodMk contDiff_id) |
| 68 | 68 | |
| 69 | -omit [NormedAddCommGroup E] [NormedSpace ℝ E] in | |
| 70 | -theorem factor_at_zero {c : ℝ} (hc : 0 < c) (j : ℕ) (b : E × ℝ → ℝ) (p : E) : | |
| 71 | - factor c j b (p, 0) = b (p, 0) / (2 * c) := | |
| 72 | - FlatPrimitiveFactor.factor_at_zero hc j (fun u => b (p, u)) | |
| 73 | - | |
| 74 | 69 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] in |
| 75 | 70 | theorem primitive_factorization (c : ℝ) (j : ℕ) (b : E × ℝ → ℝ) |
| 76 | 71 | (p : E) {x : ℝ} (hx : 0 < x) : |
| @@ -87,14 +82,6 @@ theorem primitive_eq_scale_mul_factor (c : ℝ) (j : ℕ) (b : E × ℝ → ℝ) | ||
| 87 | 82 | FlatPrimitive.scale, FlatCutoff.edge_of_nonpos c hx] |
| 88 | 83 | · exact primitive_factorization c j b y.1 (lt_of_not_ge hx) |
| 89 | 84 | |
| 90 | -omit [NormedAddCommGroup E] [NormedSpace ℝ E] in | |
| 91 | -theorem integral_original_factorization (c : ℝ) (j : ℕ) (b : E × ℝ → ℝ) | |
| 92 | - (p : E) {x : ℝ} (hx : 0 < x) : | |
| 93 | - (∫ u in (0 : ℝ)..x, (Real.exp (-c / u ^ 2) / u ^ j) * b (p, u)) = | |
| 94 | - Real.exp (-c / x ^ 2) * x ^ (3 - (j : ℝ)) * factor c j b (p, x) := by | |
| 95 | - rw [FlatPrimitiveFactor.integral_exp_eq_primitive c j (fun u => b (p, u)) hx.le, | |
| 96 | - primitive_factorization c j b p hx, FlatPrimitiveFactor.scale_eq_rpow c j hx] | |
| 97 | - | |
| 98 | 85 | theorem kernel_joint_contDiffAt (c : ℝ) (j : ℕ) {b : E × ℝ → ℝ} |
| 99 | 86 | (hb : ContDiff ℝ ∞ b) (y : E × ℝ) {t : ℝ} (ht : 0 < t) : |
| 100 | 87 | ContDiffAt ℝ ∞ (fun q : ℝ × (E × ℝ) => kernel c j b q.2 q.1) (t, y) := by |
+0 −23 NavierStokes/ParametricHeatTail.lean View file
| @@ -455,11 +455,6 @@ theorem weightedDebtJet_bound (square : Bool) (n : ℕ) {L ν : ℝ} | ||
| 455 | 455 | simpa only [weightedDebtJet, Real.norm_eq_abs, integral_const_mul, |
| 456 | 456 | integral_weightedKernel (lt_of_lt_of_le zero_lt_one hK) hpq, mul_div_assoc] using hb' |
| 457 | 457 | |
| 458 | -theorem weightedJet_integrable (square : Bool) (n : ℕ) {ν : ℝ} (hν : 0 ≤ ν) : | |
| 459 | - IntegrableOn (weightedJet W square h K q n ν) (Ioi K) := | |
| 460 | - chain_integrable (weightedJet_measurable hh hK hW square) | |
| 461 | - (weightedJet_dominated hh hK hB hweight hpq square) n hν | |
| 462 | - | |
| 463 | 458 | theorem weightedDebtJet_eq_iteratedDerivWithin (square : Bool) (n : ℕ) {ν : ℝ} (hν : 0 ≤ ν) : |
| 464 | 459 | iteratedDerivWithin n (weightedDebtJet W square h K q 0) (Ici 0) ν = |
| 465 | 460 | weightedDebtJet W square h K q n ν := |
| @@ -840,24 +835,6 @@ theorem physical_debts_integrable (d : TailData) {K eta : ℝ} (hK : 0 < K) | ||
| 840 | 835 | noncomputable def physicalEdit (d : TailData) (K eta X : ℝ) : ℝ := |
| 841 | 836 | outgoingEdit d (diffusion eta) K eta X |
| 842 | 837 | |
| 843 | -theorem physicalEdit_joint_contDiffOn (d : TailData) {K : ℝ} (hK : 0 < K) : | |
| 844 | - ContDiffOn ℝ ∞ (fun p : ℝ × ℝ => physicalEdit d K p.2 p.1) | |
| 845 | - (Ioi 0 ×ˢ Icc (-1 : ℝ) 1) := by | |
| 846 | - have hE := (outgoingProfile_joint_contDiffOn d hK).mono | |
| 847 | - (show Ioi (0 : ℝ) ×ˢ Icc (-1 : ℝ) 1 ⊆ Ioi 0 ×ˢ univ from fun p hp => ⟨hp.1, mem_univ _⟩) | |
| 848 | - have hD : ContDiffOn ℝ ∞ (fun p : ℝ × ℝ => diffusion p.2) | |
| 849 | - (Ioi 0 ×ˢ Icc (-1 : ℝ) 1) := diffusion_contDiff.comp_contDiffOn contDiffOn_snd | |
| 850 | - have hr : ContDiffOn ℝ ∞ (fun p : ℝ × ℝ => 2 * diffusion p.2 / p.1) | |
| 851 | - (Ioi 0 ×ˢ Icc (-1 : ℝ) 1) := | |
| 852 | - (contDiffOn_const.mul hD).div contDiffOn_fst (fun p hp => (show 0 < p.1 from hp.1).ne') | |
| 853 | - have hH := (RadialHeatProfile.profile_contDiffOn (a := 1 + d.h) (by linarith [d.h_pos])).comp | |
| 854 | - hr (show MapsTo (fun p : ℝ × ℝ => 2 * diffusion p.2 / p.1) | |
| 855 | - (Ioi 0 ×ˢ Icc (-1 : ℝ) 1) (Ici 0) from fun p hp => | |
| 856 | - div_nonneg (mul_nonneg (by norm_num) (diffusion_mem hp.2).1) (show 0 < p.1 from hp.1).le) | |
| 857 | - have hs := (switch_contDiffOn hK).comp contDiffOn_fst | |
| 858 | - (show MapsTo (Prod.fst : ℝ × ℝ → ℝ) (Ioi 0 ×ˢ Icc (-1 : ℝ) 1) (Ioi 0) from fun _ hp => hp.1) | |
| 859 | - exact hE.mul (contDiffOn_const.add (hs.mul (hH.sub contDiffOn_const))) | |
| 860 | - | |
| 861 | 838 | theorem heat_ratio_physical {q s τ : ℝ} (hq : 0 < q) (hs : 0 < s) : |
| 862 | 839 | 2 * (τ / q) / (s / q) = 2 * τ / s := by |
| 863 | 840 | field_simp [hq.ne', hs.ne'] |
+0 −15 NavierStokes/ParametricModulation.lean View file
| @@ -457,21 +457,6 @@ theorem realized_profiles_uniform_eta_jets | ||
| 457 | 457 | hU (asRadialPrimitive_contDiff _ hprim.2) hperiodB KX Kη hKX hKη k |
| 458 | 458 | exact ⟨CE, CU, hCE, hCU, fun n hn X hX η hη => ⟨hbE n hn X hX η hη, hbU n hn X hX η hη⟩⟩ |
| 459 | 459 | |
| 460 | -/-- The constructed profiles agree exactly with the nominal profiles on one | |
| 461 | -open neighborhood of the prescribed boundary set, for every frequency. -/ | |
| 462 | -theorem realized_profiles_boundary_match | |
| 463 | - (r : TrueConeRealization a m p₁ p₂ K B) (E U : RadialParameter → ℝ) | |
| 464 | - (ha : ContDiff ℝ ∞ a) (hm : ContDiff ℝ ∞ m) (hBK : B ⊆ K) : | |
| 465 | - ∃ N : Set RadialParameter, IsOpen N ∧ B ⊆ N ∧ ∀ n X η : ℝ, (X, η) ∈ N → | |
| 466 | - realizedE r E n X η = E (X, η) ∧ realizedU r E U n X η = U (X, η) := by | |
| 467 | - obtain ⟨N, hN, hBN, hz⟩ := r.boundary_vanishing E ha hm hBK | |
| 468 | - refine ⟨N, hN, hBN, ?_⟩ | |
| 469 | - intro n X η hp | |
| 470 | - have h := hz (X, η) hp (n * Real.log X) | |
| 471 | - simp only [realizedE, realizedU, RadialModulation.modulatedE, RadialModulation.modulatedU, | |
| 472 | - asRadialPrimitive, RadialModulation.phasePoint, h.1, h.2, zero_div, | |
| 473 | - Real.exp_zero, mul_one, add_zero, and_self] | |
| 474 | - | |
| 475 | 460 | theorem theta_derivative_asRadialPrimitive |
| 476 | 461 | (Q : RadialParameter × ℝ → ℝ) (hQ : ContDiff ℝ ∞ Q) (X η θ : ℝ) : |
| 477 | 462 | HasDerivAt (fun s => Q ((X, η), s)) |
+0 −69 NavierStokes/ParametricRadialExtension.lean View file
| @@ -184,13 +184,6 @@ theorem halfPlaneExtension_eq {g : Plane → E} | ||
| 184 | 184 | rw [SpacetimeGluing.smoothExtension_eqOn_past (halfPlaneLift_contDiffOn hg) hmem] |
| 185 | 185 | simp [halfPlaneLift, ProblemStatement.coordinateVector] |
| 186 | 186 | |
| 187 | -omit [CompleteSpace E] in | |
| 188 | -theorem halfPlaneExtension_zero {g : Plane → E} | |
| 189 | - (hg : ContDiffOn ℝ ∞ g (Ici 0 ×ˢ (univ : Set ℝ))) {p : Plane} (hp : p.1 ≤ -1) : | |
| 190 | - halfPlaneExtension g hg p = 0 := by | |
| 191 | - apply SpacetimeGluing.smoothExtension_zero_from | |
| 192 | - linarith | |
| 193 | - | |
| 194 | 187 | /-- The global smooth extension. The outer parameter cutoff and the |
| 195 | 188 | negative radial support bound are independent of the input profile. -/ |
| 196 | 189 | noncomputable def extension {S : Set ℝ} (w : ParameterWindow S) (F : Plane → E) |
| @@ -213,39 +206,12 @@ theorem extension_eq {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} | ||
| 213 | 206 | rw [extension, halfPlaneExtension_eq _ hX, w.bump_one heta, one_smul] |
| 214 | 207 | simp only [descent, regularize, w.parameterMap_eq heta] |
| 215 | 208 | |
| 216 | -theorem extension_zero_negative {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} | |
| 217 | - (hF : ContDiffOn ℝ ∞ F (univ ×ˢ S)) | |
| 218 | - (he : ∀ eta ∈ S, ∀ r, F (-r, eta) = F (r, eta)) | |
| 219 | - {p : Plane} (hX : p.1 ≤ -1) : extension w F hF he p = 0 := by | |
| 220 | - rw [extension, halfPlaneExtension_zero _ hX, smul_zero] | |
| 221 | - | |
| 222 | 209 | theorem extension_zero_parameter {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} |
| 223 | 210 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ S)) |
| 224 | 211 | (he : ∀ eta ∈ S, ∀ r, F (-r, eta) = F (r, eta)) |
| 225 | 212 | {p : Plane} (heta : w.outer ≤ |p.2|) : extension w F hF he p = 0 := by |
| 226 | 213 | rw [extension, w.bump_zero heta, zero_smul] |
| 227 | 214 | |
| 228 | -theorem extension_eqOn {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} | |
| 229 | - (hF : ContDiffOn ℝ ∞ F (univ ×ˢ S)) | |
| 230 | - (he : ∀ eta ∈ S, ∀ r, F (-r, eta) = F (r, eta)) : | |
| 231 | - EqOn (extension w F hF he) (descent F) (Ici 0 ×ˢ Ioo (-w.inner) w.inner) := by | |
| 232 | - intro p hp | |
| 233 | - exact extension_eq w hF he hp.1 (abs_lt.mpr hp.2).le | |
| 234 | - | |
| 235 | -/-- Every full mixed derivative of the extension, including at the axis, | |
| 236 | -is the genuine derivative within the physical closed half-plane. -/ | |
| 237 | -theorem extension_mixed_jets {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} | |
| 238 | - (hF : ContDiffOn ℝ ∞ F (univ ×ˢ S)) | |
| 239 | - (he : ∀ eta ∈ S, ∀ r, F (-r, eta) = F (r, eta)) | |
| 240 | - (n : ℕ) {p : Plane} (hp : p ∈ Ici 0 ×ˢ Ioo (-w.inner) w.inner) : | |
| 241 | - iteratedFDeriv ℝ n (extension w F hF he) p = | |
| 242 | - iteratedFDerivWithin ℝ n (descent F) (Ici 0 ×ˢ Ioo (-w.inner) w.inner) p := by | |
| 243 | - have hu : UniqueDiffOn ℝ (Ici 0 ×ˢ Ioo (-w.inner) w.inner : Set Plane) := | |
| 244 | - (uniqueDiffOn_Ici 0).prod isOpen_Ioo.uniqueDiffOn | |
| 245 | - rw [← iteratedFDerivWithin_eq_iteratedFDeriv hu | |
| 246 | - ((extension_contDiff w hF he).of_le (nat_le_infty n)).contDiffAt hp] | |
| 247 | - exact iteratedFDerivWithin_congr (extension_eqOn w hF he) hp n | |
| 248 | - | |
| 249 | 215 | /-- Exact recovery on the signed radius. This also covers the axis. -/ |
| 250 | 216 | theorem extension_pullback {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} |
| 251 | 217 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ S)) |
| @@ -259,23 +225,6 @@ theorem extension_pullback {S : Set ℝ} (w : ParameterWindow S) {F : Plane → | ||
| 259 | 225 | · rw [abs_of_neg (lt_of_not_ge hr)] |
| 260 | 226 | exact he eta (w.outer_subset (abs_lt.mp (heta.trans_lt w.inner_lt_outer))) r |
| 261 | 227 | |
| 262 | -/-- Exact right jets of the literal descended radial profile. -/ | |
| 263 | -theorem extension_radial_jets {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} | |
| 264 | - (hF : ContDiffOn ℝ ∞ F (univ ×ˢ S)) | |
| 265 | - (he : ∀ eta ∈ S, ∀ r, F (-r, eta) = F (r, eta)) | |
| 266 | - (n : ℕ) {X eta : ℝ} (hX : 0 ≤ X) (heta : |eta| ≤ w.inner) : | |
| 267 | - iteratedDeriv n (fun Y => extension w F hF he (Y, eta)) X = | |
| 268 | - iteratedDerivWithin n (fun Y => F (Real.sqrt (2 * Y), eta)) (Ici 0) X := by | |
| 269 | - have hg : ContDiff ℝ ∞ (fun Y => extension w F hF he (Y, eta)) := | |
| 270 | - (extension_contDiff w hF he).comp (contDiff_id.prodMk contDiff_const) | |
| 271 | - have hwithin : iteratedDerivWithin n (fun Y => extension w F hF he (Y, eta)) (Ici 0) X = | |
| 272 | - iteratedDeriv n (fun Y => extension w F hF he (Y, eta)) X := by | |
| 273 | - rw [iteratedDerivWithin_eq_iteratedFDerivWithin, iteratedDeriv_eq_iteratedFDeriv, | |
| 274 | - iteratedFDerivWithin_eq_iteratedFDeriv (uniqueDiffOn_Ici 0) | |
| 275 | - (hg.of_le (nat_le_infty n)).contDiffAt hX] | |
| 276 | - rw [← hwithin] | |
| 277 | - exact iteratedDerivWithin_congr (fun Y hY => extension_eq w hF he hY heta) hX | |
| 278 | - | |
| 279 | 228 | /-- Exterior support is inherited globally in the parameter, not only on |
| 280 | 229 | the interval where exact agreement with the input is required. -/ |
| 281 | 230 | theorem extension_zero_exterior {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} |
| @@ -292,22 +241,4 @@ theorem extension_zero_exterior {S : Set ℝ} (w : ParameterWindow S) {F : Plane | ||
| 292 | 241 | change w.bump p.2 • F (Real.sqrt (2 * p.1), w.parameterMap p.2) = 0 |
| 293 | 242 | rw [hzero _ (w.parameterMap_mem p.2) _ hsqrt, smul_zero] |
| 294 | 243 | |
| 295 | -/-- A uniform support rectangle for all profiles with the same exterior | |
| 296 | -radius. The negative extension occupies at most the fixed interval [-1,0]. -/ | |
| 297 | -theorem extension_tsupport {S : Set ℝ} (w : ParameterWindow S) {F : Plane → E} | |
| 298 | - (hF : ContDiffOn ℝ ∞ F (univ ×ˢ S)) | |
| 299 | - (he : ∀ eta ∈ S, ∀ r, F (-r, eta) = F (r, eta)) | |
| 300 | - {B : ℝ} (hB : 0 ≤ B) | |
| 301 | - (hzero : ∀ eta ∈ S, ∀ r, B ≤ r → F (r, eta) = 0) : | |
| 302 | - tsupport (extension w F hF he) ⊆ | |
| 303 | - Icc (-1 : ℝ) (B ^ 2 / 2) ×ˢ Icc (-w.outer) w.outer := by | |
| 304 | - apply closure_minimal _ (isClosed_Icc.prod isClosed_Icc) | |
| 305 | - intro p hp | |
| 306 | - have hlo : -1 < p.1 := lt_of_not_ge fun h => hp (extension_zero_negative w hF he h) | |
| 307 | - have hhi : p.1 < B ^ 2 / 2 := | |
| 308 | - lt_of_not_ge fun h => hp (extension_zero_exterior w hF he hB hzero h) | |
| 309 | - have heta : |p.2| < w.outer := | |
| 310 | - lt_of_not_ge fun h => hp (extension_zero_parameter w hF he h) | |
| 311 | - exact ⟨⟨hlo.le, hhi.le⟩, abs_le.mp heta.le⟩ | |
| 312 | - | |
| 313 | 244 | end NavierStokes.ParametricRadialExtension |
+0 −6 NavierStokes/ParametricTerminalCompensation.lean View file
| @@ -29,12 +29,6 @@ theorem FirstJetWithinBound.mono {P : Patch} {a : ℝ → ℝ} {c : ℝ → Coef | ||
| 29 | 29 | intro x |
| 30 | 30 | exact ⟨(h x).1.trans hLM, (h x).2.1.trans hLM, (h x).2.2.trans hLM⟩ |
| 31 | 31 | |
| 32 | -theorem FirstJetWithinBound.toFirstJetBound {P : Patch} {a : ℝ → ℝ} {c : ℝ → Coeff} | |
| 33 | - {S : Set ℝ} {η L : ℝ} (h : FirstJetWithinBound P a c S η L) (hS : S ∈ 𝓝 η) : | |
| 34 | - FirstJetBound P a c η L := by | |
| 35 | - intro x | |
| 36 | - simpa only [derivWithin_of_mem_nhds hS] using h x | |
| 37 | - | |
| 38 | 32 | theorem compact_amplitude_within_bounds {S : Set ℝ} (hS : IsCompact S) |
| 39 | 33 | (huniq : UniqueDiffOn ℝ S) {a : ℝ → ℝ} (ha : ContDiffOn ℝ ∞ a S) |
| 40 | 34 | (hpos : ∀ η ∈ S, 0 < a η) : |
+0 −336 NavierStokes/ParametricTorusInverse.lean View file
| @@ -43,18 +43,12 @@ noncomputable def coefficient (f : Source) (p : ℝ) (k : Frequency) : ℂ := | ||
| 43 | 43 | |
| 44 | 44 | noncomputable def mean (f : Source) (p : ℝ) : ℂ := coefficient f p 0 |
| 45 | 45 | |
| 46 | -def ZeroMean (f : Source) : Prop := ∀ p, mean f p = 0 | |
| 47 | - | |
| 48 | 46 | noncomputable def inverse (d : Direction) (f : Source) (z : Point) : ℂ := |
| 49 | 47 | directionalInverse d (coefficient f z.1) z.2 |
| 50 | 48 | |
| 51 | 49 | noncomputable def iterateInverse (d : Direction) (n : ℕ) (f : Source) : Source := |
| 52 | 50 | (inverse d)^[n] f |
| 53 | 51 | |
| 54 | -theorem mean_eq_integral (f : Source) (p : ℝ) : | |
| 55 | - mean f p = ∫ y in (0 : ℝ)..1, ∫ x in (0 : ℝ)..1, f (p, (x, y)) := | |
| 56 | - SmoothFourierData.coefficient_zero_eq_integral _ | |
| 57 | - | |
| 58 | 52 | theorem slice_smooth {f : Source} (hf : ContDiff ℝ ∞ f) (p : ℝ) : |
| 59 | 53 | ContDiff ℝ ∞ (slice f p) := |
| 60 | 54 | hf.comp (contDiff_const.prodMk contDiff_id) |
| @@ -81,31 +75,12 @@ theorem fixedPartial_periodic {f : Source} (hp : Periodic f) (v : Point) : | ||
| 81 | 75 | simpa only [slice, Prod.mk_add_mk, add_zero] using |
| 82 | 76 | congrArg (fun L : Point →L[ℝ] ℂ => L v) hd |
| 83 | 77 | |
| 84 | -theorem parameterPartial_periodic {f : Source} (hp : Periodic f) : | |
| 85 | - Periodic (parameterPartial f) := fixedPartial_periodic hp (1, 0) | |
| 86 | - | |
| 87 | 78 | theorem torusXJet_smooth {f : Source} (hf : ContDiff ℝ ∞ f) (n : ℕ) : |
| 88 | 79 | ContDiff ℝ ∞ (torusXJet n f) := by |
| 89 | 80 | induction n with |
| 90 | 81 | | zero => exact hf |
| 91 | 82 | | succ n ih => exact torusXPartial_smooth ih |
| 92 | 83 | |
| 93 | -theorem parameterJet_smooth {f : Source} (hf : ContDiff ℝ ∞ f) (n : ℕ) : | |
| 94 | - ContDiff ℝ ∞ (parameterJet n f) := by | |
| 95 | - induction n with | |
| 96 | - | zero => exact hf | |
| 97 | - | succ n ih => | |
| 98 | - rw [parameterJet, Function.iterate_succ_apply'] | |
| 99 | - exact parameterPartial_smooth ih | |
| 100 | - | |
| 101 | -theorem parameterJet_periodic {f : Source} (hp : Periodic f) (n : ℕ) : | |
| 102 | - Periodic (parameterJet n f) := by | |
| 103 | - induction n with | |
| 104 | - | zero => exact hp | |
| 105 | - | succ n ih => | |
| 106 | - rw [parameterJet, Function.iterate_succ_apply'] | |
| 107 | - exact parameterPartial_periodic ih | |
| 108 | - | |
| 109 | 84 | theorem swapTorus_smooth {f : Source} (hf : ContDiff ℝ ∞ f) : |
| 110 | 85 | ContDiff ℝ ∞ (swapTorus f) := |
| 111 | 86 | hf.comp (contDiff_fst.prodMk (contDiff_snd.snd.prodMk contDiff_snd.fst)) |
| @@ -171,14 +146,6 @@ theorem weightedSource_smooth {f : Source} (hf : ContDiff ℝ ∞ f) (k : Freque | ||
| 171 | 146 | ((kernel_smooth k).comp (contDiff_snd.prodMk contDiff_fst.snd)).mul |
| 172 | 147 | (hf.comp (contDiff_fst.fst.prodMk (contDiff_snd.prodMk contDiff_fst.snd))) |
| 173 | 148 | |
| 174 | -theorem coefficient_smooth {f : Source} (hf : ContDiff ℝ ∞ f) (k : Frequency) : | |
| 175 | - ContDiff ℝ ∞ (fun p => coefficient f p k) := by | |
| 176 | - have hi := TransportPrimitive.parameterIntegral_contDiff (weightedSource_smooth hf k) | |
| 177 | - (0 : ℝ) 1 | |
| 178 | - have ho := TransportPrimitive.parameterIntegral_contDiff hi (0 : ℝ) 1 | |
| 179 | - simpa only [coefficient, SmoothFourierData.coefficient_eq_doubleIntegral, weightedSource, | |
| 180 | - slice] using ho | |
| 181 | - | |
| 182 | 149 | theorem coefficient_hasDerivAt {f : Source} (hf : ContDiff ℝ ∞ f) |
| 183 | 150 | (k : Frequency) (p : ℝ) : |
| 184 | 151 | HasDerivAt (fun q => coefficient f q k) (coefficient (parameterPartial f) p k) p := by |
| @@ -202,14 +169,6 @@ theorem coefficient_hasDerivAt {f : Source} (hf : ContDiff ℝ ∞ f) | ||
| 202 | 169 | simpa only [coefficient, SmoothFourierData.coefficient_eq_doubleIntegral, slice, |
| 203 | 170 | inner, innerD, weightedSource] using ho |
| 204 | 171 | |
| 205 | -theorem parameterPartial_zeroMean {f : Source} (hf : ContDiff ℝ ∞ f) | |
| 206 | - (hm : ZeroMean f) : ZeroMean (parameterPartial f) := by | |
| 207 | - intro p | |
| 208 | - have he : (fun q => coefficient f q 0) = fun _ => (0 : ℂ) := funext hm | |
| 209 | - have hd := (coefficient_hasDerivAt hf 0 p).deriv | |
| 210 | - rw [he, deriv_const] at hd | |
| 211 | - exact hd.symm | |
| 212 | - | |
| 213 | 172 | /-- Uniform polynomial decay on any fixed compact parameter interval, |
| 214 | 173 | derived from bounds for actual torus derivatives. -/ |
| 215 | 174 | theorem exists_uniform_coefficient_bound {f : Source} (hf : ContDiff ℝ ∞ f) |
| @@ -305,22 +264,6 @@ theorem multiplied_coeff_bound {m a : Frequency → ℂ} {s : ℕ} {C B : ℝ} | ||
| 305 | 264 | _ = C * (weight k ^ (s + 4) * ‖a k‖) := by rw [pow_add]; ring |
| 306 | 265 | _ ≤ C * B := mul_le_mul_of_nonneg_left (ha k) hC |
| 307 | 266 | |
| 308 | -theorem uniform_multiplied_coeff_bound {m : Frequency → ℂ} (hm : PolynomialGrowth m) | |
| 309 | - {f : Source} (hf : ContDiff ℝ ∞ f) (hp : Periodic f) (a b : ℝ) : | |
| 310 | - ∃ C : ℝ, 0 ≤ C ∧ ∀ p ∈ Icc a b, ∀ k, | |
| 311 | - ‖m k * coefficient f p k‖ ≤ C * (weight k ^ 4)⁻¹ := by | |
| 312 | - obtain ⟨s, M, hM, hm⟩ := hm | |
| 313 | - obtain ⟨B, hB, hbound⟩ := exists_uniform_coefficient_bound hf hp (s + 4) a b | |
| 314 | - exact ⟨M * B, mul_nonneg hM hB, fun p hp k => multiplied_coeff_bound hM hm (hbound p hp) k⟩ | |
| 315 | - | |
| 316 | -noncomputable def applyMultiplier (m : Frequency → ℂ) (f : Source) (z : Point) : ℂ := | |
| 317 | - series (fun k => m k * coefficient f z.1 k) z.2 | |
| 318 | - | |
| 319 | -theorem multiplied_coeff_rapid {m : Frequency → ℂ} (hm : PolynomialGrowth m) | |
| 320 | - {f : Source} (hf : ContDiff ℝ ∞ f) (hp : Periodic f) (p : ℝ) : | |
| 321 | - Rapid (fun k => m k * coefficient f p k) := | |
| 322 | - hm.rapid_mul (SmoothFourierData.rapid_coefficient (slice_smooth hf p) (hp p)) | |
| 323 | - | |
| 324 | 267 | noncomputable def jointDP : Point →L[ℝ] ℝ := ContinuousLinearMap.fst ℝ ℝ Plane |
| 325 | 268 | noncomputable def jointDX : Point →L[ℝ] ℝ := |
| 326 | 269 | TorusInverse.dx.comp (ContinuousLinearMap.snd ℝ ℝ Plane) |
| @@ -338,288 +281,9 @@ noncomputable def jointLiftY : ℂ →L[ℝ] (Point →L[ℝ] ℂ) := | ||
| 338 | 281 | @[simp] theorem jointLiftX_apply (c : ℂ) (v : Point) : jointLiftX c v = v.2.1 • c := rfl |
| 339 | 282 | @[simp] theorem jointLiftY_apply (c : ℂ) (v : Point) : jointLiftY c v = v.2.2 • c := rfl |
| 340 | 283 | |
| 341 | -noncomputable def multiplierTermDerivative (m : Frequency → ℂ) (f : Source) | |
| 342 | - (k : Frequency) (z : Point) : Point →L[ℝ] ℂ := | |
| 343 | - jointLiftP (m k * coefficient (parameterPartial f) z.1 k * mode k z.2) + | |
| 344 | - jointLiftX (multiplierX m k * coefficient f z.1 k * mode k z.2) + | |
| 345 | - jointLiftY (multiplierY m k * coefficient f z.1 k * mode k z.2) | |
| 346 | - | |
| 347 | -theorem hasFDerivAt_multiplierTerm {f : Source} (hf : ContDiff ℝ ∞ f) | |
| 348 | - (m : Frequency → ℂ) (k : Frequency) (z : Point) : | |
| 349 | - HasFDerivAt (fun w : Point => m k * coefficient f w.1 k * mode k w.2) | |
| 350 | - (multiplierTermDerivative m f k z) z := by | |
| 351 | - have hc : HasFDerivAt (fun w : Point => coefficient f w.1 k) | |
| 352 | - (jointLiftP (coefficient (parameterPartial f) z.1 k)) z := by | |
| 353 | - convert! (coefficient_hasDerivAt hf k z.1).hasFDerivAt.comp z | |
| 354 | - (hasFDerivAt_fst) using 1 | |
| 355 | - have he : HasFDerivAt (fun w : Point => mode k w.2) | |
| 356 | - (mode k z.2 • ((phase k).comp (ContinuousLinearMap.snd ℝ ℝ Plane))) z := | |
| 357 | - ((phase k).hasFDerivAt.comp z (hasFDerivAt_snd)).cexp | |
| 358 | - have hd : multiplierTermDerivative m f k z = | |
| 359 | - (m k * coefficient f z.1 k) • | |
| 360 | - (mode k z.2 • ((phase k).comp (ContinuousLinearMap.snd ℝ ℝ Plane))) + | |
| 361 | - mode k z.2 • (m k • jointLiftP (coefficient (parameterPartial f) z.1 k)) := by | |
| 362 | - apply ContinuousLinearMap.ext | |
| 363 | - intro v | |
| 364 | - change v.1 • (m k * coefficient (parameterPartial f) z.1 k * mode k z.2) + | |
| 365 | - v.2.1 • (freqX k * m k * coefficient f z.1 k * mode k z.2) + | |
| 366 | - v.2.2 • (freqY k * m k * coefficient f z.1 k * mode k z.2) = | |
| 367 | - (m k * coefficient f z.1 k) • | |
| 368 | - (mode k z.2 • (v.2.1 • freqX k + v.2.2 • freqY k)) + | |
| 369 | - mode k z.2 • (m k • (v.1 • coefficient (parameterPartial f) z.1 k)) | |
| 370 | - simp only [Complex.real_smul, smul_eq_mul] | |
| 371 | - ring | |
| 372 | - rw [hd] | |
| 373 | - exact (hc.const_mul (m k)).mul he | |
| 374 | - | |
| 375 | -theorem norm_multiplierTermDerivative_le (m : Frequency → ℂ) (f : Source) | |
| 376 | - (k : Frequency) (z : Point) : | |
| 377 | - ‖multiplierTermDerivative m f k z‖ ≤ | |
| 378 | - ‖jointLiftP‖ * ‖m k * coefficient (parameterPartial f) z.1 k‖ + | |
| 379 | - ‖jointLiftX‖ * ‖multiplierX m k * coefficient f z.1 k‖ + | |
| 380 | - ‖jointLiftY‖ * ‖multiplierY m k * coefficient f z.1 k‖ := by | |
| 381 | - unfold multiplierTermDerivative | |
| 382 | - apply (norm_add_le _ _).trans | |
| 383 | - apply add_le_add | |
| 384 | - · apply (norm_add_le _ _).trans | |
| 385 | - apply add_le_add | |
| 386 | - · simpa only [norm_mul, norm_mode, mul_one] using | |
| 387 | - jointLiftP.le_opNorm (m k * coefficient (parameterPartial f) z.1 k * mode k z.2) | |
| 388 | - · simpa only [norm_mul, norm_mode, mul_one] using | |
| 389 | - jointLiftX.le_opNorm (multiplierX m k * coefficient f z.1 k * mode k z.2) | |
| 390 | - · simpa only [norm_mul, norm_mode, mul_one] using | |
| 391 | - jointLiftY.le_opNorm (multiplierY m k * coefficient f z.1 k * mode k z.2) | |
| 392 | - | |
| 393 | -theorem uniform_multiplierDerivative_bound {m : Frequency → ℂ} (hm : PolynomialGrowth m) | |
| 394 | - {f : Source} (hf : ContDiff ℝ ∞ f) (hp : Periodic f) (a b : ℝ) : | |
| 395 | - ∃ C : ℝ, 0 ≤ C ∧ ∀ z : Point, z.1 ∈ Icc a b → ∀ k, | |
| 396 | - ‖multiplierTermDerivative m f k z‖ ≤ C * (weight k ^ 4)⁻¹ := by | |
| 397 | - obtain ⟨CP, hCP, hP⟩ := uniform_multiplied_coeff_bound hm | |
| 398 | - (parameterPartial_smooth hf) (parameterPartial_periodic hp) a b | |
| 399 | - obtain ⟨CX, hCX, hX⟩ := uniform_multiplied_coeff_bound hm.mulX hf hp a b | |
| 400 | - obtain ⟨CY, hCY, hY⟩ := uniform_multiplied_coeff_bound hm.mulY hf hp a b | |
| 401 | - refine ⟨‖jointLiftP‖ * CP + ‖jointLiftX‖ * CX + ‖jointLiftY‖ * CY, by positivity, ?_⟩ | |
| 402 | - intro z hz k | |
| 403 | - apply (norm_multiplierTermDerivative_le m f k z).trans | |
| 404 | - calc | |
| 405 | - _ ≤ ‖jointLiftP‖ * (CP * (weight k ^ 4)⁻¹) + | |
| 406 | - ‖jointLiftX‖ * (CX * (weight k ^ 4)⁻¹) + | |
| 407 | - ‖jointLiftY‖ * (CY * (weight k ^ 4)⁻¹) := by | |
| 408 | - gcongr | |
| 409 | - · exact hP z.1 hz k | |
| 410 | - · exact hX z.1 hz k | |
| 411 | - · exact hY z.1 hz k | |
| 412 | - _ = _ := by ring | |
| 413 | - | |
| 414 | -theorem hasFDerivAt_applyMultiplier {m : Frequency → ℂ} (hm : PolynomialGrowth m) | |
| 415 | - {f : Source} (hf : ContDiff ℝ ∞ f) (hp : Periodic f) (z : Point) : | |
| 416 | - HasFDerivAt (applyMultiplier m f) (∑' k, multiplierTermDerivative m f k z) z := by | |
| 417 | - obtain ⟨C, hC, hbound⟩ := uniform_multiplierDerivative_bound hm hf hp (z.1 - 1) (z.1 + 1) | |
| 418 | - have hs : Summable (fun k : Frequency => C * (weight k ^ 4)⁻¹) := | |
| 419 | - SmoothFourierData.summable_weight_inv_four.mul_left C | |
| 420 | - have hbox : ∀ w ∈ Metric.ball z 1, w.1 ∈ Icc (z.1 - 1) (z.1 + 1) := by | |
| 421 | - intro w hw | |
| 422 | - have hd : dist w.1 z.1 < 1 := by | |
| 423 | - simpa only [dist_eq_norm, Prod.fst_sub] using | |
| 424 | - (norm_fst_le (w - z)).trans_lt (show ‖w - z‖ < 1 by | |
| 425 | - simpa only [dist_eq_norm] using Metric.mem_ball.mp hw) | |
| 426 | - rw [Real.dist_eq] at hd | |
| 427 | - constructor <;> linarith [(abs_lt.mp hd).1, (abs_lt.mp hd).2] | |
| 428 | - exact hasFDerivAt_tsum_of_isPreconnected hs Metric.isOpen_ball | |
| 429 | - (convex_ball z (1 : ℝ)).isPreconnected | |
| 430 | - (fun k w _ => hasFDerivAt_multiplierTerm hf m k w) | |
| 431 | - (fun k w hw => hbound w (hbox w hw) k) | |
| 432 | - (Metric.mem_ball_self (by norm_num : (0 : ℝ) < 1)) | |
| 433 | - (summable_terms (multiplied_coeff_rapid hm hf hp z.1) z.2) | |
| 434 | - (Metric.mem_ball_self (by norm_num : (0 : ℝ) < 1)) | |
| 435 | - | |
| 436 | -theorem fderiv_applyMultiplier {m : Frequency → ℂ} (hm : PolynomialGrowth m) | |
| 437 | - {f : Source} (hf : ContDiff ℝ ∞ f) (hp : Periodic f) (z : Point) : | |
| 438 | - fderiv ℝ (applyMultiplier m f) z = | |
| 439 | - jointLiftP (applyMultiplier m (parameterPartial f) z) + | |
| 440 | - jointLiftX (applyMultiplier (multiplierX m) f z) + | |
| 441 | - jointLiftY (applyMultiplier (multiplierY m) f z) := by | |
| 442 | - have hP := summable_terms (multiplied_coeff_rapid hm | |
| 443 | - (parameterPartial_smooth hf) (parameterPartial_periodic hp) z.1) z.2 | |
| 444 | - have hX := summable_terms (multiplied_coeff_rapid hm.mulX hf hp z.1) z.2 | |
| 445 | - have hY := summable_terms (multiplied_coeff_rapid hm.mulY hf hp z.1) z.2 | |
| 446 | - rw [(hasFDerivAt_applyMultiplier hm hf hp z).fderiv] | |
| 447 | - simp only [multiplierTermDerivative] | |
| 448 | - rw [Summable.tsum_add ((jointLiftP.summable hP).add (jointLiftX.summable hX)) | |
| 449 | - (jointLiftY.summable hY), | |
| 450 | - Summable.tsum_add (jointLiftP.summable hP) (jointLiftX.summable hX), | |
| 451 | - ← jointLiftP.map_tsum hP, ← jointLiftX.map_tsum hX, ← jointLiftY.map_tsum hY] | |
| 452 | - rfl | |
| 453 | - | |
| 454 | -/-- Joint smoothness is derived from actual locally uniform Fourier | |
| 455 | -differentiation, allowing arbitrary polynomially growing multipliers. -/ | |
| 456 | -theorem applyMultiplier_smooth_nat (n : ℕ) {m : Frequency → ℂ} (hm : PolynomialGrowth m) | |
| 457 | - {f : Source} (hf : ContDiff ℝ ∞ f) (hp : Periodic f) : | |
| 458 | - ContDiff ℝ n (applyMultiplier m f) := by | |
| 459 | - induction n generalizing m f with | |
| 460 | - | zero => | |
| 461 | - exact contDiff_zero.mpr (show Differentiable ℝ (applyMultiplier m f) from | |
| 462 | - fun z => (hasFDerivAt_applyMultiplier hm hf hp z).differentiableAt).continuous | |
| 463 | - | succ n ih => | |
| 464 | - rw [show ((n + 1 : ℕ) : WithTop ℕ∞) = (n : WithTop ℕ∞) + 1 by simp, | |
| 465 | - contDiff_succ_iff_fderiv] | |
| 466 | - refine ⟨fun z => (hasFDerivAt_applyMultiplier hm hf hp z).differentiableAt, by simp, ?_⟩ | |
| 467 | - have he : fderiv ℝ (applyMultiplier m f) = fun z => | |
| 468 | - jointLiftP (applyMultiplier m (parameterPartial f) z) + | |
| 469 | - jointLiftX (applyMultiplier (multiplierX m) f z) + | |
| 470 | - jointLiftY (applyMultiplier (multiplierY m) f z) := | |
| 471 | - funext (fderiv_applyMultiplier hm hf hp) | |
| 472 | - rw [he] | |
| 473 | - exact ((jointLiftP.contDiff.comp | |
| 474 | - (ih hm (parameterPartial_smooth hf) (parameterPartial_periodic hp))).add | |
| 475 | - (jointLiftX.contDiff.comp (ih hm.mulX hf hp))).add | |
| 476 | - (jointLiftY.contDiff.comp (ih hm.mulY hf hp)) | |
| 477 | - | |
| 478 | -theorem applyMultiplier_smooth {m : Frequency → ℂ} (hm : PolynomialGrowth m) | |
| 479 | - {f : Source} (hf : ContDiff ℝ ∞ f) (hp : Periodic f) : | |
| 480 | - ContDiff ℝ ∞ (applyMultiplier m f) := | |
| 481 | - contDiff_infty.mpr (fun n => applyMultiplier_smooth_nat n hm hf hp) | |
| 482 | - | |
| 483 | -theorem inverse_smooth (d : Direction) {f : Source} (hf : ContDiff ℝ ∞ f) | |
| 484 | - (hp : Periodic f) : ContDiff ℝ ∞ (inverse d f) := | |
| 485 | - applyMultiplier_smooth (inverseMultiplier_growth d) hf hp | |
| 486 | - | |
| 487 | -theorem parameterPartial_applyMultiplier {m : Frequency → ℂ} (hm : PolynomialGrowth m) | |
| 488 | - {f : Source} (hf : ContDiff ℝ ∞ f) (hp : Periodic f) : | |
| 489 | - parameterPartial (applyMultiplier m f) = applyMultiplier m (parameterPartial f) := by | |
| 490 | - funext z | |
| 491 | - simp [parameterPartial, fderiv_applyMultiplier hm hf hp, jointLiftP_apply, | |
| 492 | - jointLiftX_apply, jointLiftY_apply] | |
| 493 | - | |
| 494 | -theorem parameterPartial_inverse (d : Direction) {f : Source} (hf : ContDiff ℝ ∞ f) | |
| 495 | - (hp : Periodic f) : parameterPartial (inverse d f) = inverse d (parameterPartial f) := | |
| 496 | - parameterPartial_applyMultiplier (inverseMultiplier_growth d) hf hp | |
| 497 | - | |
| 498 | -theorem inverse_periodic (d : Direction) (f : Source) : Periodic (inverse d f) := by | |
| 499 | - intro p Y k | |
| 500 | - exact directionalInverse_periodic d (coefficient f p) Y k.1 k.2 | |
| 501 | - | |
| 502 | -/-- The inverse has zero mean even if the input has a nonzero constant mode. -/ | |
| 503 | -theorem inverse_zeroMean (d : Direction) {f : Source} (hf : ContDiff ℝ ∞ f) | |
| 504 | - (hp : Periodic f) : ZeroMean (inverse d f) := by | |
| 505 | - intro p | |
| 506 | - have ha := SmoothFourierData.rapid_coefficient (slice_smooth hf p) (hp p) | |
| 507 | - let g : C(Torus, ℂ) := | |
| 508 | - ⟨torusSeries (inverseCoeff d (coefficient f p)), | |
| 509 | - continuous_torusSeries (ha.inverseCoeff d)⟩ | |
| 510 | - have hg : SmoothFourierData.torusLift g = slice (inverse d f) p := by | |
| 511 | - funext Y | |
| 512 | - exact (series_eq_torusSeries (inverseCoeff d (coefficient f p)) Y).symm | |
| 513 | - change SmoothFourierData.coefficient (slice (inverse d f) p) 0 = 0 | |
| 514 | - rw [← hg, SmoothFourierData.coefficient_zero_eq_mean] | |
| 515 | - exact TorusInverse.inverse_zero_mean d ha | |
| 516 | - | |
| 517 | -noncomputable def directionalPartial (d : Direction) (f : Source) (z : Point) : ℂ := | |
| 518 | - fderiv ℝ f z (0, vector d) | |
| 519 | - | |
| 520 | -/-- Exact inversion for the given function, with the derivative taken in the | |
| 521 | -joint parameter--torus space. -/ | |
| 522 | -theorem inverse_solves (d : Direction) {f : Source} (hf : ContDiff ℝ ∞ f) | |
| 523 | - (hp : Periodic f) (hm : ZeroMean f) : directionalPartial d (inverse d f) = f := by | |
| 524 | - funext z | |
| 525 | - have hz := SmoothFourierData.inverse_solves_smooth_periodic d | |
| 526 | - (slice_smooth hf z.1) (hp z.1) (by | |
| 527 | - change (∫ y in (0 : ℝ)..1, ∫ x in (0 : ℝ)..1, f (z.1, (x, y))) = 0 | |
| 528 | - rw [← mean_eq_integral] | |
| 529 | - exact hm z.1) z.2 | |
| 530 | - have hd := congrArg (fun L : Plane →L[ℝ] ℂ => L (vector d)) | |
| 531 | - (slice_hasFDerivAt (inverse_smooth d hf hp) z.1 z.2).fderiv | |
| 532 | - exact hd.symm.trans hz | |
| 533 | - | |
| 534 | -theorem inverse_preserves_parameter_support (d : Direction) (f : Source) (S : Set ℝ) | |
| 535 | - (hs : ∀ p, p ∉ S → ∀ Y, f (p, Y) = 0) : | |
| 536 | - ∀ p, p ∉ S → ∀ Y, inverse d f (p, Y) = 0 := by | |
| 537 | - apply TorusInverse.inverse_preserves_parameter_support d (coefficient f) S | |
| 538 | - intro p hp k | |
| 539 | - simp only [coefficient, SmoothFourierData.coefficient_eq_doubleIntegral, slice, | |
| 540 | - hs p hp, mul_zero, intervalIntegral.integral_zero] | |
| 541 | - | |
| 542 | 284 | @[simp] theorem parameterJet_zero (f : Source) : parameterJet 0 f = f := rfl |
| 543 | 285 | |
| 544 | -theorem parameterJet_succ (n : ℕ) (f : Source) : | |
| 545 | - parameterJet (n + 1) f = parameterPartial (parameterJet n f) := | |
| 546 | - Function.iterate_succ_apply' _ _ _ | |
| 547 | - | |
| 548 | -/-- All actual derivatives in the external parameter commute with inversion. -/ | |
| 549 | -theorem parameterJet_inverse (d : Direction) {f : Source} (hf : ContDiff ℝ ∞ f) | |
| 550 | - (hp : Periodic f) (n : ℕ) : | |
| 551 | - parameterJet n (inverse d f) = inverse d (parameterJet n f) := by | |
| 552 | - induction n with | |
| 553 | - | zero => rfl | |
| 554 | - | succ n ih => | |
| 555 | - rw [parameterJet_succ, ih, parameterPartial_inverse d (parameterJet_smooth hf n) | |
| 556 | - (parameterJet_periodic hp n), parameterJet_succ] | |
| 557 | - | |
| 558 | 286 | @[simp] theorem iterateInverse_zero (d : Direction) (f : Source) : |
| 559 | 287 | iterateInverse d 0 f = f := rfl |
| 560 | 288 | |
| 561 | -theorem iterateInverse_succ (d : Direction) (n : ℕ) (f : Source) : | |
| 562 | - iterateInverse d (n + 1) f = inverse d (iterateInverse d n f) := | |
| 563 | - Function.iterate_succ_apply' _ _ _ | |
| 564 | - | |
| 565 | -theorem iterateInverse_periodic (d : Direction) {f : Source} (hp : Periodic f) | |
| 566 | - (n : ℕ) : Periodic (iterateInverse d n f) := by | |
| 567 | - induction n with | |
| 568 | - | zero => exact hp | |
| 569 | - | succ n ih => | |
| 570 | - rw [iterateInverse_succ] | |
| 571 | - exact inverse_periodic d _ | |
| 572 | - | |
| 573 | -theorem iterateInverse_smooth (d : Direction) {f : Source} (hf : ContDiff ℝ ∞ f) | |
| 574 | - (hp : Periodic f) (n : ℕ) : ContDiff ℝ ∞ (iterateInverse d n f) := by | |
| 575 | - induction n with | |
| 576 | - | zero => exact hf | |
| 577 | - | succ n ih => | |
| 578 | - rw [iterateInverse_succ] | |
| 579 | - exact inverse_smooth d ih (iterateInverse_periodic d hp n) | |
| 580 | - | |
| 581 | -/-- A genuine mixed coordinate jet: first actual parameter derivatives, then | |
| 582 | -the indicated word of actual torus-coordinate derivatives. -/ | |
| 583 | -noncomputable def mixedJet (q : ℕ) (w : List Bool) (f : Source) (z : Point) : ℂ := | |
| 584 | - derivativeWord w (slice (parameterJet q f) z.1) z.2 | |
| 585 | - | |
| 586 | -noncomputable def mixedLossConstant (r : ℕ) : ℝ := | |
| 587 | - ((6 * ‖omega⁻¹‖) * ‖omega‖ ^ r) * 3 ^ (r + 5) * | |
| 588 | - ∑' k : Frequency, (weight k ^ 4)⁻¹ | |
| 589 | - | |
| 590 | -theorem mixedLossConstant_nonneg (r : ℕ) : 0 ≤ mixedLossConstant r := by | |
| 591 | - unfold mixedLossConstant | |
| 592 | - positivity | |
| 593 | - | |
| 594 | -/-- Uniform finite loss: a mixed output jet with r torus derivatives requires | |
| 595 | -only r+5 pure torus derivatives of the same parameter jet of the input. | |
| 596 | -The constant is independent of the parameter set and the function. -/ | |
| 597 | -theorem mixedJet_inverse_bound (d : Direction) {f : Source} (hf : ContDiff ℝ ∞ f) | |
| 598 | - (hp : Periodic f) (q : ℕ) (w : List Bool) (S : Set ℝ) {C : ℝ} | |
| 599 | - (hzero : ∀ p ∈ S, ∀ x ∈ Icc (0 : ℝ) 1, ∀ y ∈ Icc (0 : ℝ) 1, | |
| 600 | - ‖parameterJet q f (p, (x, y))‖ ≤ C) | |
| 601 | - (hfirst : ∀ p ∈ S, ∀ x ∈ Icc (0 : ℝ) 1, ∀ y ∈ Icc (0 : ℝ) 1, | |
| 602 | - ‖SmoothFourierData.xJet (w.length + 5) (slice (parameterJet q f) p) (x, y)‖ ≤ C) | |
| 603 | - (hsecond : ∀ p ∈ S, ∀ x ∈ Icc (0 : ℝ) 1, ∀ y ∈ Icc (0 : ℝ) 1, | |
| 604 | - ‖SmoothFourierData.xJet (w.length + 5) | |
| 605 | - (SmoothFourierData.swapFunction (slice (parameterJet q f) p)) (x, y)‖ ≤ C) | |
| 606 | - (p : ℝ) (hps : p ∈ S) (Y : Plane) : | |
| 607 | - ‖mixedJet q w (inverse d f) (p, Y)‖ ≤ mixedLossConstant w.length * C := by | |
| 608 | - rw [mixedJet, parameterJet_inverse d hf hp] | |
| 609 | - have hq := slice_smooth (parameterJet_smooth hf q) p | |
| 610 | - have hpq := parameterJet_periodic hp q p | |
| 611 | - have hbound := SmoothFourierData.coefficient_seminorm_bound hq hpq (w.length + 1) | |
| 612 | - (hzero p hps) (by simpa only [Nat.add_assoc] using hfirst p hps) | |
| 613 | - (by simpa only [Nat.add_assoc] using hsecond p hps) | |
| 614 | - calc | |
| 615 | - _ ≤ ((6 * ‖omega⁻¹‖) * ‖omega‖ ^ w.length) * | |
| 616 | - coeffSeminorm (w.length + 1) (coefficient (parameterJet q f) p) := | |
| 617 | - inverse_derivativeWord_bound d (SmoothFourierData.rapid_coefficient hq hpq) w Y | |
| 618 | - _ ≤ ((6 * ‖omega⁻¹‖) * ‖omega‖ ^ w.length) * | |
| 619 | - ((3 ^ ((w.length + 1) + 4) * C) * ∑' k : Frequency, (weight k ^ 4)⁻¹) := | |
| 620 | - mul_le_mul_of_nonneg_left hbound (by positivity) | |
| 621 | - _ = mixedLossConstant w.length * C := by | |
| 622 | - simp only [mixedLossConstant, Nat.add_assoc] | |
| 623 | - ring | |
| 624 | - | |
| 625 | 289 | end NavierStokes.ParametricTorusInverse |
+39 −0 routes/s1-ns-parametric-2/README.md added View file
| @@ -0,0 +1,39 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-parametric-2 | |
| 6 | + | |
| 7 | +One unit of issue #10 (S-1, declarations nothing uses): the family | |
| 8 | +`NavierStokes/Parametric*`. I delete the 48 declarations in the 7 files | |
| 9 | +`unit.json` lists (474 lines, deletions only): | |
| 10 | + | |
| 11 | +- `NavierStokes/ParametricEvenDescent.lean` (1) | |
| 12 | +- `NavierStokes/ParametricFlatFactor.lean` (2) | |
| 13 | +- `NavierStokes/ParametricHeatTail.lean` (2) | |
| 14 | +- `NavierStokes/ParametricModulation.lean` (1) | |
| 15 | +- `NavierStokes/ParametricRadialExtension.lean` (6) | |
| 16 | +- `NavierStokes/ParametricTerminalCompensation.lean` (1) | |
| 17 | +- `NavierStokes/ParametricTorusInverse.lean` (35) | |
| 18 | + | |
| 19 | +The unit is wave 2 of the plan in `docs/s1-dead-code/README.md`, cut from | |
| 20 | +Treant's run of 2026-12-03 (upstream `f9e8bc5`) and read again against this | |
| 21 | +project's declaration graph on `main` under its rule that the paper's results | |
| 22 | +stay: a kept declaration reaches none of them, and the 502 declarations of the | |
| 23 | +first plan that the keep rule protects are untouched here. On this branch | |
| 24 | +`git grep -n -w` finds no remaining user of any of the 48 short names outside | |
| 25 | +another declaration of the same short name in another namespace (e.g. | |
| 26 | +`SmoothFamilyTorusInverse.applyMultiplier`, `FlatPrimitiveFactor.factor_at_zero`, | |
| 27 | +`BorelExtension.extension_tsupport`), and no deleted docstring cites a numbered | |
| 28 | +Lemma, Theorem, Proposition, Corollary, Section or Equation. The only other | |
| 29 | +mention is prose: `routes/s1-ns-smooth-1/README.md` uses | |
| 30 | +`ParametricTorusInverse.mixedJet` as an example of a same-name hit, and that | |
| 31 | +route note is another unit's record, so it is left as it is. | |
| 32 | + | |
| 33 | +`python3 checks/challenge.py .` ends with | |
| 34 | +`ok: 4 challenge files and the build configuration as approved; 2588 Lean files, 535920 lines, toolchain leanprover/lean4:v4.34.0-rc2`. | |
| 35 | + | |
| 36 | +## Next | |
| 37 | + | |
| 38 | +The maintainer's review after `challenge` and `build`. What this unit does not | |
| 39 | +show: that every remaining declaration in these files is needed. | |