All proofs
Project-declaredLean 4.32.0 · mathlib@81a5d257c8e4

Matrix Div momentum Flux

FluidDynamics.FluidFlow.matrixDiv_momentumFlux

Plain-language statement

The matrix divergence of rho u ⊗ u split into continuity and convective parts.

Exact Lean statement

lemma matrixDiv_momentumFlux (d : ℕ) (fluid : FluidFlow d)
    (t : Time) (x : Space d)
    (hMomentumDensity : Differentiable ℝ (momentumDensity d fluid t))
    (hVelocity : Differentiable ℝ (fluid.velocity t)) :
    matrixDiv d (momentumFlux d fluid t) x =
      (∇ ⬝ momentumDensity d fluid t) x • fluid.velocity t x +
        fluid.rho t x • convectiveTerm d fluid t x

Formal artifact

Lean source

Canonical source
Full Lean sourceLean 4
lemma matrixDiv_momentumFlux (d : ) (fluid : FluidFlow d)    (t : Time) (x : Space d)    (hMomentumDensity : Differentiable  (momentumDensity d fluid t))    (hVelocity : Differentiable  (fluid.velocity t)) :    matrixDiv d (momentumFlux d fluid t) x =      (∇ ⬝ momentumDensity d fluid t) x • fluid.velocity t x +        fluid.rho t x • convectiveTerm d fluid t x := by  ext i  simp [matrixDiv_apply, div, convectiveTerm, smul_eq_mul]  change (∑ j, ∂[j] (fun x' => momentumFlux d fluid t x' i j) x) =    (∑ j, ∂[j] (fun x' => momentumDensity d fluid t x' j) x) * fluid.velocity t x i +      fluid.rho t x * (∑ j, fluid.velocity t x j * ∂[j] (fluid.velocity t) x i)  calc    (∑ j, ∂[j] (fun x' => momentumFlux d fluid t x' i j) x)        = ∑ j,            (fluid.velocity t x i * ∂[j] (fun x' => momentumDensity d fluid t x' j) x +              ∂[j] (fun x' => fluid.velocity t x' i) x * momentumDensity d fluid t x j) := by          apply Finset.sum_congr rfl          intro j _          rw [spaceDeriv_momentumFlux_component d fluid t x i j            hMomentumDensity hVelocity]          simp [smul_eq_mul]    _ = fluid.velocity t x i * (∑ j, ∂[j] (fun x' => momentumDensity d fluid t x' j) x) +        fluid.rho t x * (∑ j, fluid.velocity t x j * ∂[j] (fluid.velocity t) x i) := by          rw [Finset.sum_add_distrib]          congr 1          · rw [Finset.mul_sum]          · rw [Finset.mul_sum]            apply Finset.sum_congr rfl            intro j _            rw [Space.deriv_euclid:= j) (μ := i) (f := fluid.velocity t)              hVelocity x]            simp [momentumDensity, mul_comm, mul_assoc]    _ = (∑ j, ∂[j] (fun x' => momentumDensity d fluid t x' j) x) * fluid.velocity t x i +        fluid.rho t x * (∑ j, fluid.velocity t x j * ∂[j] (fluid.velocity t) x i) := by          ring
Project
Physlib
License
Apache-2.0
Commit
dd43e9e65791
Source
Physlib/FluidDynamics/FluidFlow/Momentum.lean:120-155

Reuse this declaration

Bring the exact result into your workflow

The import identifies the source module. Your project still needs the pinned package dependency shown on this page.

What this badge means

This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.

Continue in this project

Related declarations

Project-declaredLean 4.32.0

Adiabatic relation log

adiabatic_relation_log

Plain-language statement

Adiabatic relation in logarithmic form: If S(Ua,Va,N) = S(Ub,Vb,N) with N fixed, then c * log (Ua/Ub) + log (Va/Vb) = 0.

physicsquantum field theoryrelativity

Source project: Physlib

Person-level attribution pending.

View proof record
Project-declaredLean 4.32.0

Adiabatic relation Ua Ub Va Vb

adiabatic_relation_UaUbVaVb

Plain-language statement

Adiabatic relation in product form: If S(Ua,Va,N) = S(Ub,Vb,N) with N fixed, then (Ua/Ub)^c * (Va/Vb) = 1.

physicsquantum field theoryrelativity

Source project: Physlib

Person-level attribution pending.

View proof record