Download lean/OAI/MathematicalPhysics/NavierStokes/VelocityDetection/ExpandingArrayForce.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
theoremforce_vertical_independent (p : Coord2) (t : ℝ) (X : Coord3) (z : ℝ) :
force hb table terminal ν m p t (update X2 z) = force hb table terminal ν m p t X:=by
proof · 1
line
simp only [force, lift, projection_apply, horizontal_update_two]
theoremforce_finiteCylinderSupport (hν : 0 < ν) (p : Coord2) (T : ℝ) :
∃K : Set (Coord2), IsCompactK∧∀ t, 0≤ t → t ≤T→∀X : Coord3, horizontal X∉K→ force hb table terminal ν m p t X = 0:=by
proof · 26
lines
obtain ⟨Q, hQ⟩ := exists_nat_gt Tleta : ℝ×Coord2→Coord2:=fun q =>∑ n ∈Finset.range Q, stage hb table terminal ν m n q.1 q.2haveha : HasCompactSupport a :=by
simpa only [Finset.sum_fn, a] usingHasCompactSupport.finset_sum
(fun n (_ : n ∈Finset.range Q) => compactSupport_stage hb table terminal ν m hν n)
letK : Set (Coord2) := (Prod.snd '' tsupport (residual ν a)) ∪ tsupport (spatialPulse p)
refine ⟨K, ((compactSupport_residual ν ha).image continuous_snd).union
(compactSupport_spatialPulse p), ?_⟩
intro t ht0 ht X hX
havehev : uncurry (field hb table terminal ν m) =ᶠ[𝓝 (t, horizontal X)] a :=by
filter_upwards [(isOpen_lt continuous_fst continuous_const).mem_nhds (ht.trans_lt hQ)] with q hq
exact field_eq_finite hb table terminal ν m hν hq q.2havehr : residual ν a (t, horizontal X) = 0:=by
apply image_eq_zero_of_notMem_tsupport
intro h
exact hX (Or.inl ⟨(t, horizontal X), h, rfl⟩)
havehg : spatialPulse p (horizontal X) = 0:=by
apply image_eq_zero_of_notMem_tsupport
intro h
exact hX (Or.inr h)
simp only [force, lift, projection_apply,
(eventuallyEq_residual ν hev).eq_of_nhds, hr, Pi.zero_apply, uncurry_apply_pair, impulse, hg,
mul_zero]
ext i
fin_cases i <;> rfl
theoremforce_NavierStokes (hν : 0 < ν) (p : Coord2) (ρ : ScalarField2)
(hρ : ∀ t, 0≤ t →∀X, timeD ρ t X + advection (field hb table terminal ν m) ρ t X =
ν * laplacian ρ t X + impulse p t X) (hρ0 : ∀X, ρ 0X = 0) :
NavierStokes ν (liftVelocity (field hb table terminal ν m) ρ) 0
(force hb table terminal ν m p) :=by
proof · 7
lines
have hn := triangular_reduction ν (field hb table terminal ν m) ρ (impulse p)
(fun t _ => divergence_field hb table terminal ν m hν t) hρ
(field_at_rest hb table terminal ν m hν (by norm_num)) hρ0
refine ⟨?_, hn.2⟩
intro t ht X i
rw [force_eq_triangular hb table terminal ν m hν p ht]
exact hn.1 t ht X i