theoremscalar_mass (hν : 0 < ν) (p : Coord2) {ρ : ScalarField2}
{r dr : ℝ→Lpℝ1 (volume : Measure (Coord2))}
(hρ : ContDiffℝ2 (uncurry ρ))
(hi : ∀ t, 0≤ t →∀ i, Integrable (SpatialCalculus.partialD i (ρ t)))
(hii : ∀ t, 0≤ t →∀ i,
Integrable (SpatialCalculus.partialD i (SpatialCalculus.partialD i (ρ t))))
(heq : ∀ t, 0≤ t →∀X,
deriv (fun s => ρ s X) t + advection (field hb table terminal ν m) ρ t X =
ν * laplacian ρ t X + impulse p t X)
(hrep : ∀ t, (funX=> r t X) =ᵐ[volume] ρ t)
(hdrep : ∀ t, 0≤ t → (funX=> dr t X) =ᵐ[volume] (funX=> deriv (fun s => ρ s X) t))
(hr : ∀ t, 0≤ t →HasDerivWithinAt r (dr t) (Ici0) t)
(hzero : ∀X, ρ 0X = 0) : ∀ t, 0≤ t → (∫X, ρ t X) = step t :=by
proof · 10
lines
refine ScalarMass.mass_eq_primitive hρ hi hii (fun t _ => integrable_impulse p t)
(fun t _ i => field_slice_component hb table terminal ν m hν t i)
(fun t ht i => compactSupport_field_component hb table terminal ν m hν ht i)
(fun t _ X=> divergence_field hb table terminal ν m hν t X)
heq hrep hdrep hr ?_ ?_
· intro t _
rw [integral_impulse]
exact (differentiable_step t).hasDerivAt.hasDerivWithinAt
· simp only [hzero, integral_zero]
exact Real.smoothTransition.zero.symm