Download lean/OAI/MathematicalPhysics/NavierStokes/VelocityDetection/ArrayScalars.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
theoremscalar_properties_of_C1Tails (hν : 0 < ν) (p : Coord2) {ρ : ScalarField2}
(hρ : ContDiffℝ∞ (uncurry ρ)) (hr : C1Tails ρ)
(hD : ∀ i, ContinuousTails (spatialD i ρ))
(hDD : ∀ i k, ContinuousTails (spatialD k (spatialD i ρ)))
(heq : ∀ t ≥0, ∀X, timeD ρ t X + advection (field hb table terminal ν m) ρ t X =
ν * laplacian ρ t X + impulse p t X)
(hzero : ∀X, ρ 0X = 0) :
(∀ t ≥0, ∀X, 0≤ ρ t X) ∧ (∀ t, Integrable (ρ t)) ∧
(∀ t ≥0, (∫X, ρ t X) = step t) :=by
proof · 25
lines
have hd (t : ℝ) (ht : 0≤ t) (X : Coord2) : timeD ρ t X = deriv (fun s => ρ s X) t :=JointCalculus.timeD_eq_deriv ht X (hρ.differentiable (by simp) (t, X))
have heq' (t : ℝ) (ht : 0≤ t) (X : Coord2) :
deriv (fun s => ρ s X) t + advection (field hb table terminal ν m) ρ t X =
ν * laplacian ρ t X + impulse p t X:=by
rw [← hd t ht X]
exact heq t ht X
obtain ⟨F, hFc, hFr⟩ := hr.continuous.C0_rephavehF2 : ContDiffℝ2 (funq : ℝ×Coord2=>F q.1 q.2) :=by
simpa only [hFr, Function.uncurry_def] using hρ.of_le (show (2 : ℕ∞ω) ≤∞by exact WithTop.coe_le_coe.mpr (show (2 : ℕ∞) ≤ ⊤ from le_top))
have hp :=ParabolicComparison.nonnegative_of_continuous_C0 F hν.le hFc hF2
(by simpa only [hFr] using heq') (funX=>by simpa only [hFr, hzero] using (le_refl (0 : ℝ)))
(fun t _ X=> impulse_nonneg p X t)
obtain ⟨G, dG, -, -, hGa, hdGa, hGd⟩ := hr.L1_rephave hi (t : ℝ) (_ht : 0≤ t) (i : Fin2) : Integrable (SpatialCalculus.partialD i (ρ t)) :=
(hD i).integrable t
have hii (t : ℝ) (_ht : 0≤ t) (i : Fin2) :
Integrable (SpatialCalculus.partialD i (SpatialCalculus.partialD i (ρ t))) :=
(hDD i i).integrable t
refine ⟨?_, fun t => hr.continuous.integrable t, ?_⟩
· simpa only [hFr] using hp
· apply scalar_mass hb table terminal ν m hν p (hρ.of_le (by exact WithTop.coe_le_coe.mpr (show (2 : ℕ∞) ≤ ⊤ from le_top))) hi hii heq' hGa ?_ hGd hzero
intro t ht
have hh := hdGa t ht
exact hh.trans (Filter.Eventually.of_forall (hd t ht))
theoremscalar_lift_unique (hν : 0 < ν) (p : Coord2) {ρ : ScalarField2}
(hρ : ContDiffℝ∞ (uncurry ρ)) (hr : C1Tails ρ)
(hD : ∀ i, ContinuousTails (spatialD i ρ))
(hDD : ∀ i k, ContinuousTails (spatialD k (spatialD i ρ)))
(heq : ∀ t ≥0, ∀X, timeD ρ t X + advection (field hb table terminal ν m) ρ t X =
ν * laplacian ρ t X + impulse p t X)
(hzero : ∀X, ρ 0X = 0)
{v : VectorField3} {q : ScalarField3}
(hv : Cylinder.ComparisonClass (fun t x => v t (Cylinder.join x))
(fun t x => q t (Cylinder.join x)))
(hNS : NavierStokes ν v q (force hb table terminal ν m p)) :
∀ t ≥0, (∀ x, v t x = liftVelocity (field hb table terminal ν m) ρ t x) ∧
(∀ x, q t x = 0) :=by
proof · 3
lines
exact Cylinder.comparison_unique_coordinates hν.le
(comparisonClass_of_scalar_tails hb table terminal ν m hν hρ hr hD hDD) hv
(force_NavierStokes hb table terminal ν m hν p ρ heq hzero) hNS