Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

chore(NavierStokes/Residual): delete 21 declarations nothing uses
Browse filesCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main maintainer-statement p1-ns-physical s1-euler-all-2 s1-euler-all-3 s1-euler-angle-9 s1-euler-base-2 s1-euler-bounded-2 s1-euler-canonical-8 s1-euler-child-2 s1-euler-common-2 s1-euler-constant-2 s1-euler-continuous-2 s1-euler-correction-2 s1-euler-correction-3 s1-euler-correction-9 s1-euler-cylinder-2 s1-euler-cylinder-3 s1-euler-cylinder-8 s1-euler-dirichlet-6 s1-euler-euler-1 s1-euler-euler-2 s1-euler-euler-6 s1-euler-exact-3 s1-euler-field-2 s1-euler-finite-3 s1-euler-flow-2 s1-euler-frozen-2 s1-euler-general-2 s1-euler-heat-2 s1-euler-hilbert-6 s1-euler-inviscid-8 s1-euler-isometric-2 s1-euler-lp-2 s1-euler-lp-3 s1-euler-mean-2 s1-euler-mean-8 s1-euler-ordinary-6 s1-euler-packet-2 s1-euler-packet-3 s1-euler-packet-8 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-source-6 s1-euler-time-2 s1-euler-transverse-2 s1-euler-transverse-6 s1-euler-transverse-9 s1-euler-volume-3 s1-euler-vorticity-2 s1-euler-weighted-2 s1-ns-activation-2 s1-ns-active-2 s1-ns-actual-2 s1-ns-actual-3 s1-ns-actual-8 s1-ns-aligned-2 s1-ns-angular-2 s1-ns-annular-6 s1-ns-annular-8 s1-ns-assembled-2 s1-ns-assembled-7 s1-ns-axis-2 s1-ns-axisymmetric-2 s1-ns-axisymmetric-8 s1-ns-band-2 s1-ns-base-1 s1-ns-base-2 s1-ns-base-6 s1-ns-base-8 s1-ns-borel-2 s1-ns-borel-3 s1-ns-boundary-2 s1-ns-cauchy-2 s1-ns-closed-2 s1-ns-common-2 s1-ns-common-6 s1-ns-common-8 s1-ns-common-9 s1-ns-compact-2 s1-ns-constructed-2 s1-ns-constructed-3 s1-ns-constructed-8 s1-ns-copy-6 s1-ns-copy-8 s1-ns-correction-2 s1-ns-correction-3 s1-ns-curl-2 s1-ns-curl-6 s1-ns-curl-9 s1-ns-current-3 s1-ns-cycle-2 s1-ns-cycle-3 s1-ns-defect-2 s1-ns-direct-2 s1-ns-edge-6 s1-ns-entrance-2 s1-ns-error-2 s1-ns-error-3 s1-ns-error-9 s1-ns-even-2 s1-ns-even-3 s1-ns-exponent-2 s1-ns-final-2 s1-ns-final-6 s1-ns-first-2 s1-ns-first-3 s1-ns-five-8 s1-ns-flat-2 s1-ns-flat-3 s1-ns-flat-8 s1-ns-flatness-2 s1-ns-fourier-2 s1-ns-fourier-3 s1-ns-future-2 s1-ns-gauge-2 s1-ns-gaussian-2 s1-ns-global-2 s1-ns-graph-6 s1-ns-graph-9 s1-ns-harmonic-11 s1-ns-harmonic-6 s1-ns-harmonic-7 s1-ns-heat-2 s1-ns-heat-3 s1-ns-initialized-2 s1-ns-joint-2 s1-ns-joint-3 s1-ns-joint-8 s1-ns-label-6 s1-ns-linear-2 s1-ns-linear-6 s1-ns-linear-7 s1-ns-local-2 s1-ns-localized-1 s1-ns-localized-2 s1-ns-localized-6 s1-ns-maximal-2 s1-ns-mean-1 s1-ns-mean-2 s1-ns-mean-8 s1-ns-mixed-2 s1-ns-modulated-3 s1-ns-moment-6 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-offplane-6 s1-ns-oscillatory-2 s1-ns-parametric-2 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-past-2 s1-ns-periodic-2 s1-ns-periodic-3 s1-ns-periodic-8 s1-ns-periodic-9 s1-ns-periodized-2 s1-ns-periodized-6 s1-ns-periodized-8 s1-ns-periodized-9 s1-ns-phase-2 s1-ns-physical-2 s1-ns-physical-3 s1-ns-physical-8 s1-ns-positive-2 s1-ns-positive-8 s1-ns-prepared-6 s1-ns-pressure-2 s1-ns-pressure-9 s1-ns-primary-2 s1-ns-primary-6 s1-ns-primary-8 s1-ns-pulse-2 s1-ns-r3-2 s1-ns-radial-2 s1-ns-radial-9 s1-ns-reference-2 s1-ns-regular-2 s1-ns-renormalized-2 s1-ns-reserved-8 s1-ns-residual-1 s1-ns-residual-2 s1-ns-residual-3 s1-ns-scaled-3 s1-ns-scaling-2 s1-ns-schedule-2 s1-ns-sharp-2 s1-ns-signed-2 s1-ns-signed-3 s1-ns-signed-8 s1-ns-similarity-2 s1-ns-slot-2 s1-ns-slow-2 s1-ns-slow-6 s1-ns-smooth-2 s1-ns-smooth-3 s1-ns-smooth-8 s1-ns-solenoidal-2 s1-ns-spacetime-3 s1-ns-spatial-2 s1-ns-squared-2 s1-ns-state-2 s1-ns-state-8 s1-ns-subcover-2 s1-ns-tail-2 s1-ns-temporal-2 s1-ns-temporal-3 s1-ns-temporal-8 s1-ns-terminal-1 s1-ns-terminal-6 s1-ns-time-2 s1-ns-torus-2 s1-ns-torus-3 s1-ns-transition-2 s1-ns-transport-2 s1-ns-true-1 s1-ns-uniform-2 s1-ns-uniform-8 s1-ns-variable-2 s1-ns-variable-3 s1-ns-viscous-6 s1-ns-volterra-2 s1-ns-wave-11 s1-ns-wave-2 s1-ns-wave-3 s1-ns-wave-8 s1-ns-weighted-10 s1-ns-weighted-12 s1-ns-weighted-2 s1-ns-weighted-3 s1-ns-weighted-8 s1-ns-weighted-9 s1-ns-whole-3 s1-ns-within-2 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
ci/docs
Details
+0 −76 NavierStokes/ResidualCalculus.lean View file
| @@ -72,26 +72,6 @@ theorem differentiable_spatial_direction | ||
| 72 | 72 | hu.fderiv_right (by norm_num) |
| 73 | 73 | exact (hfirst.clm_apply contDiff_const).differentiable (by norm_num) |
| 74 | 74 | |
| 75 | -/-- Additivity of the concrete iterated-derivative Laplacian on C² slices. -/ | |
| 76 | -theorem spatialLaplacian_add | |
| 77 | - (u e : VelocityField) (t : ℝ) (x : Space) | |
| 78 | - (hu : ContDiff ℝ 2 (fun y : Space => u (t, y))) | |
| 79 | - (he : ContDiff ℝ 2 (fun y : Space => e (t, y))) : | |
| 80 | - spatialLaplacian (fun z => u z + e z) t x = | |
| 81 | - spatialLaplacian u t x + spatialLaplacian e t x := by | |
| 82 | - have hdu := hu.differentiable (by norm_num) | |
| 83 | - have hde := he.differentiable (by norm_num) | |
| 84 | - have hsum : ∀ y : Space, | |
| 85 | - spatialDerivative (fun z => u z + e z) t y = | |
| 86 | - spatialDerivative u t y + spatialDerivative e t y := | |
| 87 | - fun y => spatialDerivative_add u e t y (hdu y) (hde y) | |
| 88 | - unfold spatialLaplacian | |
| 89 | - simp_rw [hsum, add_apply] | |
| 90 | - simp_rw [fderiv_fun_add | |
| 91 | - (differentiable_spatial_direction u t hu _ x) | |
| 92 | - (differentiable_spatial_direction e t he _ x), add_apply] | |
| 93 | - exact Finset.sum_add_distrib | |
| 94 | - | |
| 95 | 75 | /-- The quadratic advection term produces exactly its two cross terms and the |
| 96 | 76 | self-advection of the perturbation. -/ |
| 97 | 77 | theorem advection_add |
| @@ -106,29 +86,6 @@ theorem advection_add | ||
| 106 | 86 | simp only [add_apply, map_add] |
| 107 | 87 | abel |
| 108 | 88 | |
| 109 | -/-- Exact perturbation formula for the physical residual, at viscosity one. | |
| 110 | -Every operator in this statement is the concrete operator in `ProblemStatement`. -/ | |
| 111 | -theorem navierStokesResidual_add_sub | |
| 112 | - (u e : VelocityField) (p q : PressureField) (t : ℝ) (x : Space) | |
| 113 | - (hut : DifferentiableAt ℝ (fun s : ℝ => u (s, x)) t) | |
| 114 | - (het : DifferentiableAt ℝ (fun s : ℝ => e (s, x)) t) | |
| 115 | - (hu : ContDiff ℝ 2 (fun y : Space => u (t, y))) | |
| 116 | - (he : ContDiff ℝ 2 (fun y : Space => e (t, y))) | |
| 117 | - (hp : DifferentiableAt ℝ (fun y : Space => p (t, y)) x) | |
| 118 | - (hq : DifferentiableAt ℝ (fun y : Space => q (t, y)) x) : | |
| 119 | - navierStokesResidual (fun z => u z + e z) (fun z => p z + q z) t x - | |
| 120 | - navierStokesResidual u p t x = | |
| 121 | - temporalDerivative e t x - spatialLaplacian e t x + pressureGradient q t x + | |
| 122 | - spatialDerivative u t x (e (t, x)) + spatialDerivative e t x (u (t, x)) + | |
| 123 | - spatialDerivative e t x (e (t, x)) := by | |
| 124 | - have hdu := hu.differentiable (by norm_num) | |
| 125 | - have hde := he.differentiable (by norm_num) | |
| 126 | - unfold navierStokesResidual | |
| 127 | - rw [temporalDerivative_add u e t x hut het, advection_add u e t x (hdu x) (hde x), | |
| 128 | - spatialLaplacian_add u e t x hu he, pressureGradient_add p q t x hp hq] | |
| 129 | - unfold advection | |
| 130 | - abel | |
| 131 | - | |
| 132 | 89 | /-- A spatial slice of a field smooth on the actual presingular domain is |
| 133 | 90 | globally smooth in space at each interior time. -/ |
| 134 | 91 | theorem spatial_contDiff_of_presingular_smooth |
| @@ -150,30 +107,6 @@ theorem temporal_differentiable_of_presingular_smooth | ||
| 150 | 107 | exact ((smooth_at_interior hg ht x).differentiableAt (by simp)).comp t |
| 151 | 108 | (differentiableAt_id.prodMk (differentiableAt_const x)) |
| 152 | 109 | |
| 153 | -/-- The perturbation identity applies directly to the smoothness conditions | |
| 154 | -appearing in the candidate PDE statement, at every interior time. -/ | |
| 155 | -theorem navierStokesResidual_add_sub_of_smooth | |
| 156 | - (u e : VelocityField) (p q : PressureField) | |
| 157 | - (hu : ContDiffOn ℝ ∞ u preSingularDomain) | |
| 158 | - (he : ContDiffOn ℝ ∞ e preSingularDomain) | |
| 159 | - (hp : ContDiffOn ℝ ∞ p preSingularDomain) | |
| 160 | - (hq : ContDiffOn ℝ ∞ q preSingularDomain) | |
| 161 | - (t : ℝ) (ht : t ∈ Ioo (0 : ℝ) 1) (x : Space) : | |
| 162 | - navierStokesResidual (fun z => u z + e z) (fun z => p z + q z) t x - | |
| 163 | - navierStokesResidual u p t x = | |
| 164 | - temporalDerivative e t x - spatialLaplacian e t x + pressureGradient q t x + | |
| 165 | - spatialDerivative u t x (e (t, x)) + spatialDerivative e t x (u (t, x)) + | |
| 166 | - spatialDerivative e t x (e (t, x)) := by | |
| 167 | - exact navierStokesResidual_add_sub u e p q t x | |
| 168 | - (temporal_differentiable_of_presingular_smooth u hu t ht x) | |
| 169 | - (temporal_differentiable_of_presingular_smooth e he t ht x) | |
| 170 | - ((spatial_contDiff_of_presingular_smooth u hu t ht).of_le | |
| 171 | - (WithTop.coe_le_coe.mpr (show (2 : ℕ∞) ≤ ⊤ from le_top))) | |
| 172 | - ((spatial_contDiff_of_presingular_smooth e he t ht).of_le | |
| 173 | - (WithTop.coe_le_coe.mpr (show (2 : ℕ∞) ≤ ⊤ from le_top))) | |
| 174 | - ((spatial_contDiff_of_presingular_smooth p hp t ht).differentiable (by simp) x) | |
| 175 | - ((spatial_contDiff_of_presingular_smooth q hq t ht).differentiable (by simp) x) | |
| 176 | - | |
| 177 | 110 | /-- A constant spatial scalar factors out of the actual spatial derivative. -/ |
| 178 | 111 | theorem spatialDerivative_const_smul |
| 179 | 112 | (u : VelocityField) (t : ℝ) (x : Space) (c : ℝ) |
| @@ -264,13 +197,4 @@ theorem navierStokesResidual_time_smul | ||
| 264 | 197 | simp only [smul_add, smul_sub, sub_smul] |
| 265 | 198 | abel |
| 266 | 199 | |
| 267 | -/-- A scalar time switch preserves the divergence-free condition. -/ | |
| 268 | -theorem time_smul_divergence_free | |
| 269 | - (u : VelocityField) (a : ℝ → ℝ) (t : ℝ) (x : Space) | |
| 270 | - (hu : DifferentiableAt ℝ (fun y : Space => u (t, y)) x) | |
| 271 | - (hdiv : spatialDivergence u t x = 0) : | |
| 272 | - spatialDivergence (fun z => a z.1 • u z) t x = 0 := by | |
| 273 | - change spatialDivergence (fun z => a t • u z) t x = 0 | |
| 274 | - rw [spatialDivergence_const_smul u t x (a t) hu, hdiv, mul_zero] | |
| 275 | - | |
| 276 | 200 | end NavierStokes.ResidualCalculus |
+0 −18 NavierStokes/ResidualPolarGraph.lean View file
| @@ -156,22 +156,4 @@ theorem eventually_chartDomain {a : ℝ} (j : PolarCharts.Index) (n : ℕ) {w : | ||
| 156 | 156 | ∀ᶠ z in 𝓝 w, PhysicalGraphBounds.scaledRadial n z ∈ PolarCharts.chartDomain a j := |
| 157 | 157 | ((PolarCharts.chartDomain_open a j).preimage (PhysicalGraphBounds.scaledRadial n).continuous).mem_nhds hw |
| 158 | 158 | |
| 159 | -theorem spacetimeChart_cylindricalPoint_eventually {a : ℝ} (ha : 0 < a) | |
| 160 | - (j : PolarCharts.Index) (n : ℕ) {w : SpaceTime} | |
| 161 | - (hw : PhysicalGraphBounds.scaledRadial n w ∈ PolarCharts.chartDomain a j) : | |
| 162 | - (fun z => ((cylindricalPoint a j n z).1, | |
| 163 | - CylindricalResidual.chart (cylindricalPoint a j n z).2)) =ᶠ[𝓝 w] id := by | |
| 164 | - filter_upwards [eventually_chartDomain j n hw] with z hz | |
| 165 | - exact spacetimeChart_cylindricalPoint ha j n hz | |
| 166 | - | |
| 167 | -theorem graphMapTZ_cylindricalPoint_eventually {a : ℝ} (ha : 0 < a) (h : ℝ) | |
| 168 | - (j : PolarCharts.Index) (n d : ℕ) (hd : d ≤ ChartScales.nativeIndex h n) {w : SpaceTime} | |
| 169 | - (hw : PhysicalGraphBounds.scaledRadial n w ∈ PolarCharts.chartDomain a j) : | |
| 170 | - (fun z => PhysicalResidualTZ.graphMapTZ | |
| 171 | - (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (ChartScales.nativeIndex h n - d)) | |
| 172 | - (cylindricalPoint a j n z)) =ᶠ[𝓝 w] | |
| 173 | - (fun z => (PhysicalMeanJetBounds.graph h n d z, angle a j n z)) := by | |
| 174 | - filter_upwards [eventually_chartDomain j n hw] with z hz | |
| 175 | - exact graphMapTZ_cylindricalPoint ha h j n d hd hz | |
| 176 | - | |
| 177 | 159 | end NavierStokes.ResidualPolarGraph |
+0 −29 NavierStokes/ResidualRegularity.lean View file
| @@ -88,24 +88,6 @@ theorem contDiffOn_residual {s : Set SpaceTime} {u : VelocityField} {p : Pressur | ||
| 88 | 88 | (((contDiffOn_temporalDerivative hs hu).add (contDiffOn_advection hs hu)).sub |
| 89 | 89 | (contDiffOn_spatialLaplacian hs hu)).add (contDiffOn_pressureGradient hs hp) |
| 90 | 90 | |
| 91 | -theorem contDiffOn_residual_product {times : Set ℝ} {u : VelocityField} {p : PressureField} | |
| 92 | - (ht : IsOpen times) (hu : ContDiffOn ℝ ∞ u (times ×ˢ (univ : Set Space))) | |
| 93 | - (hp : ContDiffOn ℝ ∞ p (times ×ˢ (univ : Set Space))) : | |
| 94 | - ContDiffOn ℝ ∞ (fun z => navierStokesResidual u p z.1 z.2) | |
| 95 | - (times ×ˢ (univ : Set Space)) := | |
| 96 | - contDiffOn_residual (ht.prod isOpen_univ) hu hp | |
| 97 | - | |
| 98 | -/-- The candidate's relative smoothness hypotheses suffice at all interior times. -/ | |
| 99 | -theorem contDiffOn_residual_interior {u : VelocityField} {p : PressureField} | |
| 100 | - (hu : ContDiffOn ℝ ∞ u preSingularDomain) | |
| 101 | - (hp : ContDiffOn ℝ ∞ p preSingularDomain) : | |
| 102 | - ContDiffOn ℝ ∞ (fun z => navierStokesResidual u p z.1 z.2) | |
| 103 | - (Ioo (0 : ℝ) 1 ×ˢ (univ : Set Space)) := by | |
| 104 | - have hsub : Ioo (0 : ℝ) 1 ×ˢ (univ : Set Space) ⊆ preSingularDomain := by | |
| 105 | - intro z hz | |
| 106 | - exact ⟨⟨hz.1.1.le, hz.1.2⟩, hz.2⟩ | |
| 107 | - exact contDiffOn_residual_product isOpen_Ioo (hu.mono hsub) (hp.mono hsub) | |
| 108 | - | |
| 109 | 91 | /-! ## Exact spatial periods -/ |
| 110 | 92 | |
| 111 | 93 | /-- A spatial unit period passes to the actual derivative of the spatial |
| @@ -186,17 +168,6 @@ theorem residual_periods {u : VelocityField} {p : PressureField} {times : Set | ||
| 186 | 168 | dsimp only at htime hadv hlap hgrad ⊢ |
| 187 | 169 | rw [htime, hadv, hlap, hgrad] |
| 188 | 170 | |
| 189 | -theorem residual_periods_interior {u : VelocityField} {p : PressureField} | |
| 190 | - (hu : UnitSpatialPeriodsOn (Ico (0 : ℝ) 1) u) | |
| 191 | - (hp : UnitSpatialPeriodsOn (Ico (0 : ℝ) 1) p) : | |
| 192 | - UnitSpatialPeriodsOn (Ioo (0 : ℝ) 1) | |
| 193 | - (fun z => navierStokesResidual u p z.1 z.2) := by | |
| 194 | - apply residual_periods isOpen_Ioo | |
| 195 | - · intro t ht x i | |
| 196 | - exact hu t ⟨ht.1.le, ht.2⟩ x i | |
| 197 | - · intro t ht x i | |
| 198 | - exact hp t ⟨ht.1.le, ht.2⟩ x i | |
| 199 | - | |
| 200 | 171 | /-! ## Locality, without differentiability assumptions -/ |
| 201 | 172 | |
| 202 | 173 | theorem space_fderiv_congr {f g : SpaceTime → V} {z : SpaceTime} |
+0 −157 NavierStokes/ResidualStability.lean View file
| @@ -42,17 +42,6 @@ theorem scalarFlat_zero : Flatness.PowerFlat l q (fun _ => 0) := by | ||
| 42 | 42 | intro N |
| 43 | 43 | exact ⟨0, le_rfl, Filter.Eventually.of_forall (fun _ => by simp)⟩ |
| 44 | 44 | |
| 45 | -theorem scalarFlat_sum {ι : Type*} (s : Finset ι) (f : ι → X → ℝ) | |
| 46 | - (hf : ∀ i ∈ s, Flatness.PowerFlat l q (f i)) : | |
| 47 | - Flatness.PowerFlat l q (fun x => ∑ i ∈ s, f i x) := by | |
| 48 | - classical | |
| 49 | - induction s using Finset.induction_on with | |
| 50 | - | empty => simpa using (scalarFlat_zero (l := l) (q := q)) | |
| 51 | - | @insert i s hi ih => | |
| 52 | - simpa only [Finset.sum_insert hi] using | |
| 53 | - (hf i (Finset.mem_insert_self _ _)).add | |
| 54 | - (ih (fun j hj => hf j (Finset.mem_insert_of_mem hj))) | |
| 55 | - | |
| 56 | 45 | end Scalar |
| 57 | 46 | |
| 58 | 47 | section Jets |
| @@ -133,18 +122,6 @@ theorem AllJetsFlat.linear_map (hf : AllJetsFlat l q f) (L : E →L[ℝ] F) | ||
| 133 | 122 | rw [abs_norm] |
| 134 | 123 | exact (norm_jet_linear_map L hU hs hx m).trans (le_abs_self _) |
| 135 | 124 | |
| 136 | -theorem AllJetsGrowth.linear_map (hf : AllJetsGrowth l q f) (L : E →L[ℝ] F) | |
| 137 | - (hU : IsOpen U) (hl : ∀ᶠ x in l, x ∈ U) (hs : ContDiffOn ℝ ∞ f U) : | |
| 138 | - AllJetsGrowth l q (fun x => L (f x)) := by | |
| 139 | - intro m | |
| 140 | - obtain ⟨K, C, hC, hb⟩ := hf m | |
| 141 | - refine ⟨K, ‖L‖ * C, mul_nonneg (norm_nonneg _) hC, ?_⟩ | |
| 142 | - filter_upwards [hl, hb] with x hx hbound | |
| 143 | - calc | |
| 144 | - _ ≤ ‖L‖ * ‖iteratedFDeriv ℝ m f x‖ := norm_jet_linear_map L hU hs hx m | |
| 145 | - _ ≤ ‖L‖ * (C / |q x| ^ K) := mul_le_mul_of_nonneg_left hbound (norm_nonneg _) | |
| 146 | - _ = (‖L‖ * C) / |q x| ^ K := by ring | |
| 147 | - | |
| 148 | 125 | theorem AllJetsFlat.add {g : D → E} (hf : AllJetsFlat l q f) (hg : AllJetsFlat l q g) |
| 149 | 126 | (hU : IsOpen U) (hl : ∀ᶠ x in l, x ∈ U) |
| 150 | 127 | (hsf : ContDiffOn ℝ ∞ f U) (hsg : ContDiffOn ℝ ∞ g U) : |
| @@ -190,38 +167,6 @@ theorem AllJetsFlat.sum {ι : Type*} (s : Finset ι) (f : ι → D → E) | ||
| 190 | 167 | (hs i (Finset.mem_insert_self _ _)) |
| 191 | 168 | (ContDiffOn.sum (fun j hj => hs j (Finset.mem_insert_of_mem hj))) |
| 192 | 169 | |
| 193 | -/-- Leibniz plus a fixed power loss in one factor gives flatness of the actual | |
| 194 | -bilinear product. The bound uses only jets through the requested order. -/ | |
| 195 | -theorem AllJetsFlat.bilinear_growth_left (hg : AllJetsFlat l q g) | |
| 196 | - (hf : AllJetsGrowth l q f) (L : E →L[ℝ] F →L[ℝ] G) | |
| 197 | - (hU : IsOpen U) (hl : ∀ᶠ x in l, x ∈ U) (hq : ∀ᶠ x in l, q x ≠ 0) | |
| 198 | - (hsf : ContDiffOn ℝ ∞ f U) (hsg : ContDiffOn ℝ ∞ g U) : | |
| 199 | - AllJetsFlat l q (fun x => L (f x) (g x)) := by | |
| 200 | - intro m | |
| 201 | - have hterm (i : ℕ) : Flatness.PowerFlat l q (fun x => (m.choose i : ℝ) * | |
| 202 | - ‖iteratedFDeriv ℝ i f x‖ * ‖iteratedFDeriv ℝ (m - i) g x‖) := by | |
| 203 | - obtain ⟨K, C, hC, hb⟩ := hf i | |
| 204 | - have hprod := (hg (m - i)).mul_of_power_bound | |
| 205 | - (g := fun x => ‖iteratedFDeriv ℝ i f x‖) hq K hC | |
| 206 | - (by simpa only [abs_norm] using hb) | |
| 207 | - have hscale := scalarFlat_const_mul (m.choose i : ℝ) hprod | |
| 208 | - convert! hscale using 1 | |
| 209 | - ext x | |
| 210 | - ring | |
| 211 | - apply scalarFlat_mono (scalarFlat_const_mul ‖L‖ | |
| 212 | - (scalarFlat_sum (Finset.range (m + 1)) _ (fun i _ => hterm i))) | |
| 213 | - filter_upwards [hl] with x hx | |
| 214 | - rw [abs_norm] | |
| 215 | - exact (JetBounds.norm_iteratedFDeriv_bilinear_le_on L hU hsf hsg hx | |
| 216 | - (ENat.natCast_le_of_coe_top_le_withTop le_rfl m)).trans (le_abs_self _) | |
| 217 | - | |
| 218 | -theorem AllJetsFlat.bilinear_growth_right (hf : AllJetsFlat l q f) | |
| 219 | - (hg : AllJetsGrowth l q g) (L : E →L[ℝ] F →L[ℝ] G) | |
| 220 | - (hU : IsOpen U) (hl : ∀ᶠ x in l, x ∈ U) (hq : ∀ᶠ x in l, q x ≠ 0) | |
| 221 | - (hsf : ContDiffOn ℝ ∞ f U) (hsg : ContDiffOn ℝ ∞ g U) : | |
| 222 | - AllJetsFlat l q (fun x => L (f x) (g x)) := | |
| 223 | - hf.bilinear_growth_left hg L.flip hU hl hq hsg hsf | |
| 224 | - | |
| 225 | 170 | end Jets |
| 226 | 171 | |
| 227 | 172 | section PhysicalOperators |
| @@ -258,23 +203,6 @@ theorem AllJetsFlat.space_fderiv {f : SpaceTime → V} (hf : AllJetsFlat l q f) | ||
| 258 | 203 | intro z hz |
| 259 | 204 | exact (space_fderiv_eq_full ((hs.contDiffAt (hU.mem_nhds hz)).differentiableAt (by simp))).symm |
| 260 | 205 | |
| 261 | -theorem AllJetsGrowth.space_fderiv {f : SpaceTime → V} (hf : AllJetsGrowth l q f) | |
| 262 | - (hU : IsOpen U) (hl : ∀ᶠ z in l, z ∈ U) (hs : ContDiffOn ℝ ∞ f U) : | |
| 263 | - AllJetsGrowth l q (fun z => _root_.fderiv ℝ (fun y : Space => f (z.1, y)) z.2) := by | |
| 264 | - have hfull : ContDiffOn ℝ ∞ (_root_.fderiv ℝ f) U := hs.fderiv_of_isOpen hU (by simp) | |
| 265 | - apply (hf.fderiv.linear_map (spaceRestriction V) hU hl hfull).congr_on hU hl | |
| 266 | - intro z hz | |
| 267 | - exact (space_fderiv_eq_full ((hs.contDiffAt (hU.mem_nhds hz)).differentiableAt (by simp))).symm | |
| 268 | - | |
| 269 | -theorem AllJetsFlat.temporalDerivative {f : VelocityField} (hf : AllJetsFlat l q f) | |
| 270 | - (hU : IsOpen U) (hl : ∀ᶠ z in l, z ∈ U) (hs : ContDiffOn ℝ ∞ f U) : | |
| 271 | - AllJetsFlat l q (fun z => temporalDerivative f z.1 z.2) := by | |
| 272 | - have hfull : ContDiffOn ℝ ∞ (_root_.fderiv ℝ f) U := hs.fderiv_of_isOpen hU (by simp) | |
| 273 | - apply (hf.fderiv.linear_map (ContinuousLinearMap.apply ℝ Space (1, 0)) hU hl hfull).congr_on hU hl | |
| 274 | - intro z hz | |
| 275 | - exact (temporalDerivative_eq_full | |
| 276 | - ((hs.contDiffAt (hU.mem_nhds hz)).differentiableAt (by simp))).symm | |
| 277 | - | |
| 278 | 206 | theorem AllJetsFlat.pressureGradient {p : PressureField} (hp : AllJetsFlat l q p) |
| 279 | 207 | (hU : IsOpen U) (hl : ∀ᶠ z in l, z ∈ U) (hs : ContDiffOn ℝ ∞ p U) : |
| 280 | 208 | AllJetsFlat l q (fun z => pressureGradient p z.1 z.2) := by |
| @@ -289,25 +217,6 @@ theorem AllJetsFlat.pressureGradient {p : PressureField} (hp : AllJetsFlat l q p | ||
| 289 | 217 | exact hi.linear_map ((ContinuousLinearMap.id ℝ ℝ).smulRight (coordinateVector i)) |
| 290 | 218 | hU hl (hD.clm_apply contDiffOn_const) |
| 291 | 219 | |
| 292 | -theorem AllJetsFlat.spatialLaplacian {f : VelocityField} (hf : AllJetsFlat l q f) | |
| 293 | - (hU : IsOpen U) (hl : ∀ᶠ z in l, z ∈ U) (hs : ContDiffOn ℝ ∞ f U) : | |
| 294 | - AllJetsFlat l q (fun z => spatialLaplacian f z.1 z.2) := by | |
| 295 | - have hD := ResidualRegularity.contDiffOn_spatialDerivative hU hs | |
| 296 | - have hflatD := hf.space_fderiv hU hl hs | |
| 297 | - unfold ProblemStatement.spatialLaplacian | |
| 298 | - apply AllJetsFlat.sum Finset.univ _ hU hl | |
| 299 | - · intro i _ | |
| 300 | - exact (ResidualRegularity.contDiffOn_space_fderiv hU | |
| 301 | - (hD.clm_apply contDiffOn_const) (m := ∞) (by simp)).clm_apply contDiffOn_const | |
| 302 | - · intro i _ | |
| 303 | - have hi := hflatD.linear_map (ContinuousLinearMap.apply ℝ Space (coordinateVector i)) hU hl hD | |
| 304 | - have his : ContDiffOn ℝ ∞ | |
| 305 | - (fun z => spatialDerivative f z.1 z.2 (coordinateVector i)) U := | |
| 306 | - hD.clm_apply contDiffOn_const | |
| 307 | - exact (hi.space_fderiv hU hl his).linear_map | |
| 308 | - (ContinuousLinearMap.apply ℝ Space (coordinateVector i)) hU hl | |
| 309 | - (ResidualRegularity.contDiffOn_space_fderiv hU his (m := ∞) (by simp)) | |
| 310 | - | |
| 311 | 220 | theorem spatialSlice_differentiable {f : SpaceTime → V} |
| 312 | 221 | (hU : IsOpen U) (hf : ContDiffOn ℝ ∞ f U) {z : SpaceTime} (hz : z ∈ U) : |
| 313 | 222 | DifferentiableAt ℝ (fun y : Space => f (z.1, y)) z.2 := |
| @@ -377,44 +286,6 @@ def residualDifference (u w : VelocityField) (p r : PressureField) : VelocityFie | ||
| 377 | 286 | fun z => navierStokesResidual (fun y => u y + w y) (fun y => p y + r y) z.1 z.2 - |
| 378 | 287 | navierStokesResidual u p z.1 z.2 |
| 379 | 288 | |
| 380 | -/-- Flat perturbations preserve all-jet residual flatness relative to any | |
| 381 | -smooth background with fixed-power jet growth. No residual estimate is an | |
| 382 | -input. The linear terms use at most two extra derivatives of the perturbation; | |
| 383 | -the transport products use at most one extra derivative. -/ | |
| 384 | -theorem allJetsFlat_residualDifference {u w : VelocityField} {p r : PressureField} | |
| 385 | - (hU : IsOpen U) (hl : ∀ᶠ z in l, z ∈ U) (hq : ∀ᶠ z in l, q z ≠ 0) | |
| 386 | - (hu : ContDiffOn ℝ ∞ u U) (hw : ContDiffOn ℝ ∞ w U) | |
| 387 | - (hp : ContDiffOn ℝ ∞ p U) (hr : ContDiffOn ℝ ∞ r U) | |
| 388 | - (hgrowth : AllJetsGrowth l q u) (hwflat : AllJetsFlat l q w) | |
| 389 | - (hrflat : AllJetsFlat l q r) : AllJetsFlat l q (residualDifference u w p r) := by | |
| 390 | - let L : (Space →L[ℝ] Space) →L[ℝ] Space →L[ℝ] Space := | |
| 391 | - (ContinuousLinearMap.apply ℝ Space).flip | |
| 392 | - have hDu := ResidualRegularity.contDiffOn_spatialDerivative hU hu | |
| 393 | - have hDw := ResidualRegularity.contDiffOn_spatialDerivative hU hw | |
| 394 | - have hDug := hgrowth.space_fderiv hU hl hu | |
| 395 | - have hDwf := hwflat.space_fderiv hU hl hw | |
| 396 | - have hcross₁ : AllJetsFlat l q (fun z => spatialDerivative u z.1 z.2 (w z)) := | |
| 397 | - hwflat.bilinear_growth_left hDug L hU hl hq hDu hw | |
| 398 | - have hcross₂ : AllJetsFlat l q (fun z => spatialDerivative w z.1 z.2 (u z)) := | |
| 399 | - hDwf.bilinear_growth_right hgrowth L hU hl hq hDw hu | |
| 400 | - have hself : AllJetsFlat l q (fun z => spatialDerivative w z.1 z.2 (w z)) := | |
| 401 | - hwflat.bilinear_growth_left hDwf.growth L hU hl hq hDw hw | |
| 402 | - have htime := ResidualRegularity.contDiffOn_temporalDerivative hU hw | |
| 403 | - have hlap := ResidualRegularity.contDiffOn_spatialLaplacian hU hw | |
| 404 | - have hgrad := ResidualRegularity.contDiffOn_pressureGradient hU hr | |
| 405 | - have hlinear := ((hwflat.temporalDerivative hU hl hw).sub | |
| 406 | - (hwflat.spatialLaplacian hU hl hw) hU hl htime hlap).add | |
| 407 | - (hrflat.pressureGradient hU hl hr) hU hl (htime.sub hlap) hgrad | |
| 408 | - have hfirst := hlinear.add hcross₁ hU hl ((htime.sub hlap).add hgrad) (hDu.clm_apply hw) | |
| 409 | - have hsecond := hfirst.add hcross₂ hU hl | |
| 410 | - (((htime.sub hlap).add hgrad).add (hDu.clm_apply hw)) (hDw.clm_apply hu) | |
| 411 | - have hall := hsecond.add hself hU hl | |
| 412 | - ((((htime.sub hlap).add hgrad).add (hDu.clm_apply hw)).add (hDw.clm_apply hu)) | |
| 413 | - (hDw.clm_apply hw) | |
| 414 | - apply hall.congr_on hU hl | |
| 415 | - intro z hz | |
| 416 | - exact (residual_add_sub_on hU hu hw hp hr hz).symm | |
| 417 | - | |
| 418 | 289 | end PhysicalOperators |
| 419 | 290 | |
| 420 | 291 | section QuantitativeJetAlgebra |
| @@ -683,34 +554,6 @@ section ScaleDomain | ||
| 683 | 554 | |
| 684 | 555 | open ProblemStatement |
| 685 | 556 | |
| 686 | -/-- Approach `q = 0` through positive scales while staying in the domain. -/ | |
| 687 | -def scaleFilter (U : Set SpaceTime) (q : SpaceTime → ℝ) : Filter SpaceTime := | |
| 688 | - Filter.principal U ⊓ Filter.comap q (𝓝[>] (0 : ℝ)) | |
| 689 | - | |
| 690 | -theorem eventually_mem_scaleFilter (U : Set SpaceTime) (q : SpaceTime → ℝ) : | |
| 691 | - ∀ᶠ z in scaleFilter U q, z ∈ U := | |
| 692 | - (show ∀ᶠ z in Filter.principal U, z ∈ U from by simp).filter_mono inf_le_left | |
| 693 | - | |
| 694 | -theorem tendsto_scaleFilter (U : Set SpaceTime) (q : SpaceTime → ℝ) : | |
| 695 | - Tendsto q (scaleFilter U q) (𝓝[>] (0 : ℝ)) := | |
| 696 | - tendsto_comap.mono_left inf_le_right | |
| 697 | - | |
| 698 | -/-- Domain/scale form of the actual nonlinear stability theorem. All | |
| 699 | -asymptotics concern the displayed norms of actual physical derivatives. -/ | |
| 700 | -theorem residualDifference_flat_at_scale {U : Set SpaceTime} {q : SpaceTime → ℝ} | |
| 701 | - {u w : VelocityField} {p r : PressureField} (hU : IsOpen U) | |
| 702 | - (hq : ∀ z ∈ U, 0 < q z) | |
| 703 | - (hu : ContDiffOn ℝ ∞ u U) (hw : ContDiffOn ℝ ∞ w U) | |
| 704 | - (hp : ContDiffOn ℝ ∞ p U) (hr : ContDiffOn ℝ ∞ r U) | |
| 705 | - (hgrowth : AllJetsGrowth (scaleFilter U q) q u) | |
| 706 | - (hwflat : AllJetsFlat (scaleFilter U q) q w) | |
| 707 | - (hrflat : AllJetsFlat (scaleFilter U q) q r) : | |
| 708 | - AllJetsFlat (scaleFilter U q) q (residualDifference u w p r) := by | |
| 709 | - apply allJetsFlat_residualDifference hU (eventually_mem_scaleFilter U q) _ | |
| 710 | - hu hw hp hr hgrowth hwflat hrflat | |
| 711 | - filter_upwards [eventually_mem_scaleFilter U q] with z hz | |
| 712 | - exact ne_of_gt (hq z hz) | |
| 713 | - | |
| 714 | 557 | end ScaleDomain |
| 715 | 558 | |
| 716 | 559 | end NavierStokes.ResidualStability |
+13 −0 routes/s1-ns-residual-1/README.md added View file
| @@ -0,0 +1,13 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-residual-1 | |
| 6 | + | |
| 7 | +One unit of S-1 (delete declarations that nothing uses): the family `NavierStokes/Residual*`. It deletes 21 declarations in `NavierStokes/ResidualCalculus.lean`, `NavierStokes/ResidualPolarGraph.lean`, `NavierStokes/ResidualRegularity.lean` and `NavierStokes/ResidualStability.lean`, 280 lines, and nothing else: the diff is deletions only and no statement that stays is changed. | |
| 8 | + | |
| 9 | +The declarations come from Treant's run of 2026-12-03 (TitiSkywalker/NavierStokesAndEuler, upstream `f9e8bc5`), which found them unreachable from the four Comparator theorems. The declaration graph of this project's main was read again under this project's rule (a declaration stays when a paper result reaches it, when its docstring cites the paper, or when the text of a declaration that stays names it); 640 of Treant's deletions stayed for that, and none of them is in this unit. Each deleted name is also absent from the current tree (`git grep -n -w` on its short name), and no deleted docstring cites the paper by number. | |
| 10 | + | |
| 11 | +## Next | |
| 12 | + | |
| 13 | +Watch the `build` check on `s1-ns-residual-1`; if it fails, the error names the remaining user, and that declaration goes back and leaves the pull request. | |