import Euler.OrdinaryHelmholtzField /-! # Pairing the projected Euler right-hand side A solenoidal `L²` test field removes the Helmholtz projection from the Euler right-hand side. For a smooth divergence-free test field, this gives the ordinary spatial integral against advection. Compactly supported smooth tests automatically satisfy the required `L²` assumption. -/ noncomputable section open MeasureTheory InnerProductSpace EulerSmoothLimit EulerLpTranslation EulerLpTranslation.SmoothL2Field EulerMeanSolenoidal EulerOrdinarySobolev EulerVectorCalculus open scoped ContDiff namespace EulerCompactProjectedPairing /-- The Helmholtz projection can be removed in a solenoidal pairing. -/ theorem inner_solenoidalProjection (φ b : L2) (hφ : φ ∈ solenoidalSpace) : ⟪φ, solenoidalProjection b⟫_ℝ = ⟪φ, b⟫_ℝ := by have hz := pressure_pairing_zero (sub_solenoidalProjection_mem_gradient b) hφ rw [real_inner_comm, inner_sub_right] at hz exact (sub_eq_zero.mp hz).symm /-- A solenoidal test sees precisely negative advection in the projected Euler right-hand side. -/ theorem inner_projectedRhs (φ : L2) (hφ : φ ∈ solenoidalSpace) (A : SmoothL2Field Space) : ⟪φ, (projectedRhs A).toLp⟫_ℝ = -⟪φ, (advectionField A A).toLp⟫_ℝ := by rw [projectedRhs_toLp, inner_neg_right, inner_solenoidalProjection _ _ hφ] end EulerCompactProjectedPairing