Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Acoustic wave operator and monopole, dipole and homogeneous Green's functions of an inhomogeneous lossless medium

Definition
Arxiv2412_13833_Basic

by Xeroth · Nov 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

acousticsdistributionsgreen-functionstime-reversalwave-equation

Objects of Appendix A of Wapenaar (2025), Multiple reflections on Huygens' principle.

  1. Space and time. A point of space is x=(xH,z)\mathbf x=(\mathbf x_H,z)x=(xH​,z), with nnn horizontal coordinates xH\mathbf x_HxH​ (n=1n=1n=1 in 2D, n=2n=2n=2 in 3D) and the depth zzz, which points downward. Space-time points are (x,t)(\mathbf x,t)(x,t). Test functions are the smooth, compactly supported real functions φ(x,t)\varphi(\mathbf x,t)φ(x,t). Distributions are the continuous linear functionals on them, as in Mathlib.

  2. Medium. An inhomogeneous lossless acoustic medium is given by a mass density ρ(x)>0\rho(\mathbf x)>0ρ(x)>0 and a propagation velocity c(x)>0c(\mathbf x)>0c(x)>0. Both are smooth and independent of time.

  3. Wave operator (A-2). L=∇⋅1ρ∇−1ρc2∂t2\mathcal L=\nabla\cdot\frac1\rho\nabla-\frac{1}{\rho c^2}\partial_t^2L=∇⋅ρ1​∇−ρc21​∂t2​. The operator is formally self-adjoint, so for a distribution uuu the equation Lu=f\mathcal Lu=fLu=f means u(Lφ)=f(φ)u(\mathcal L\varphi)=f(\varphi)u(Lφ)=f(φ) for every test function φ\varphiφ.

  4. Sources. These are the right-hand sides of (A-3), (A-5) and (A-12), as functionals of φ\varphiφ:

    • −δ(x−x′)δ(t)-\delta(\mathbf x-\mathbf x')\delta(t)−δ(x−x′)δ(t) acts as φ↦−φ(x′,0)\varphi\mapsto-\varphi(\mathbf x',0)φ↦−φ(x′,0);
    • −δ(x−x′)∂tδ(t)-\delta(\mathbf x-\mathbf x')\partial_t\delta(t)−δ(x−x′)∂t​δ(t) acts as φ↦∂tφ(x′,0)\varphi\mapsto\partial_t\varphi(\mathbf x',0)φ↦∂t​φ(x′,0);
    • 1ρ(x′)∂zδ(x−x′)δ(t)\frac{1}{\rho(\mathbf x')}\partial_z\delta(\mathbf x-\mathbf x')\delta(t)ρ(x′)1​∂z​δ(x−x′)δ(t) acts as φ↦−1ρ(x′)∂zφ(x′,0)\varphi\mapsto-\frac{1}{\rho(\mathbf x')}\partial_z\varphi(\mathbf x',0)φ↦−ρ(x′)1​∂z​φ(x′,0).
  5. Causality (A-4). u=0u=0u=0 for t<0t<0t<0: u(φ)=0u(\varphi)=0u(φ)=0 for every test function supported in {t<0}\{t<0\}{t<0}.

  6. Time reversal and time derivative. v(x,t)=u(x,−t)v(\mathbf x,t)=u(\mathbf x,-t)v(x,t)=u(x,−t) means v(φ)=u(φ(⋅,− ⋅))v(\varphi)=u(\varphi(\cdot,-\,\cdot))v(φ)=u(φ(⋅,−⋅)), and (∂tu)(φ)=−u(∂tφ)(\partial_tu)(\varphi)=-u(\partial_t\varphi)(∂t​u)(φ)=−u(∂t​φ).

  7. Green's functions. All three are causal.

    • G(x,x′,t)\mathcal G(\mathbf x,\mathbf x',t)G(x,x′,t) solves (A-3): LG=−δ(x−x′)δ(t)\mathcal L\mathcal G=-\delta(\mathbf x-\mathbf x')\delta(t)LG=−δ(x−x′)δ(t).
    • The monopole Green's function GGG solves (A-5): LG=−δ(x−x′)∂tδ(t)\mathcal LG=-\delta(\mathbf x-\mathbf x')\partial_t\delta(t)LG=−δ(x−x′)∂t​δ(t).
    • The dipole Green's function GdG_dGd​ solves (A-12): LGd=1ρ(x′)∂zδ(x−x′)δ(t)\mathcal LG_d=\frac{1}{\rho(\mathbf x')}\partial_z\delta(\mathbf x-\mathbf x')\delta(t)LGd​=ρ(x′)1​∂z​δ(x−x′)δ(t).

    Each is a distribution in (x,t)(\mathbf x,t)(x,t) for a fixed source point x′\mathbf x'x′.

Formalization Note The paper writes G(x,x′,−t)\mathcal G(\mathbf x,\mathbf x',-t)G(x,x′,−t) as a function. Here a time-reversed distribution is characterized by its action on test functions, and statements take it as a second distribution together with that characterization. Smooth coefficients are needed for L\mathcal LL to act on distributions; the paper does not state a regularity class.

Definition code
import Mathlib

/-!
K. Wapenaar, *Multiple reflections on Huygens' principle*, arXiv:2412.13833v2 (2025):
the acoustic wave operator of an inhomogeneous lossless medium and the monopole, dipole and
homogeneous Green's functions of Appendix A (eqs. (A-1)-(A-14), PDF pp. 20-21).

A point of space is `x = (x_H, z)`, with `n` horizontal coordinates `x_H` (`n = 1` in 2D,
`n = 2` in 3D) and the depth `z` (pointing downward). Green's functions are distributions
(in Mathlib's sense) on space-time `(x, t)`.
-/

open TopologicalSpace

noncomputable section

namespace Arxiv2412_13833

/-- Appendix A: a point `x = (x_H, z)` of space, with `n` horizontal coordinates and the
depth `z`. -/
abbrev Space (n : ℕ) := EuclideanSpace ℝ (Fin n) × ℝ

/-- Appendix A: a point `(x, t)` of space-time. -/
abbrev SpaceTime (n : ℕ) := Space n × ℝ

/-- Real-valued smooth compactly supported test functions on space-time. -/
abbrev TestFn (n : ℕ) := TestFunction (⊤ : Opens (SpaceTime n)) ℝ (⊤ : ℕ∞)

/-- Real-valued distributions on space-time (continuous linear functionals on `TestFn n`). -/
abbrev Distrib (n : ℕ) := Distribution (⊤ : Opens (SpaceTime n)) ℝ (⊤ : ℕ∞)

/-- Appendix A-1: an inhomogeneous lossless acoustic medium, given by its mass density
`ρ(x) > 0` and propagation velocity `c(x) > 0`, both independent of time. The coefficients are
taken smooth so that the wave operator (A-2) acts on distributions. -/
structure Medium (n : ℕ) where
  /-- Mass density `ρ(x)`. -/
  rho : Space n → ℝ
  /-- Propagation velocity `c(x)`. -/
  c : Space n → ℝ
  rho_pos : ∀ x, 0 < rho x
  c_pos : ∀ x, 0 < c x
  rho_smooth : ContDiff ℝ ((⊤ : ℕ∞) : WithTop ℕ∞) rho
  c_smooth : ContDiff ℝ ((⊤ : ℕ∞) : WithTop ℕ∞) c

/-- The space-time direction of the `i`-th horizontal coordinate. -/
def hDir {n : ℕ} (i : Fin n) : SpaceTime n := ((EuclideanSpace.single i 1, 0), 0)

/-- The space-time direction of the depth coordinate `z` (pointing downward). -/
def zDir {n : ℕ} : SpaceTime n := ((0, 1), 0)

/-- The space-time direction of time `t`. -/
def tDir {n : ℕ} : SpaceTime n := (0, 1)

/-- The space direction of the depth coordinate `z`, used to move a source point vertically. -/
def zSpaceDir {n : ℕ} : Space n := (0, 1)

/-- Directional derivative `∂_v f` of a function on space-time. -/
def pderiv {n : ℕ} (v : SpaceTime n) (f : SpaceTime n → ℝ) : SpaceTime n → ℝ :=
  fun p => fderiv ℝ f p v

/-- Eq. (A-2): the wave operator `L = ∇·(1/ρ)∇ - (1/(ρc²)) ∂_t²` applied to a function on
space-time. -/
def waveOp {n : ℕ} (M : Medium n) (f : SpaceTime n → ℝ) : SpaceTime n → ℝ :=
  fun p =>
    (∑ i, pderiv (hDir i) (fun q => (M.rho q.1)⁻¹ * pderiv (hDir i) f q) p) +
      pderiv zDir (fun q => (M.rho q.1)⁻¹ * pderiv zDir f q) p -
      (M.rho p.1 * M.c p.1 ^ 2)⁻¹ * pderiv tDir (pderiv tDir f) p

/-- Eq. (A-2) on distributions: `L u = f`, where `f` is a linear functional on test functions.
The operator `L` is formally self-adjoint, so `⟨L u, φ⟩ = ⟨u, L φ⟩`; the condition reads
`u(L φ) = f(φ)` for every test function `φ` (for a smooth medium, `L φ` is again a test
function). -/
def SolvesWave {n : ℕ} (M : Medium n) (u : Distrib n) (f : TestFn n → ℝ) : Prop :=
  ∀ φ ψ : TestFn n, (⇑ψ = waveOp M ⇑φ) → u ψ = f φ

/-- Eq. (A-3), right-hand side: the impulsive source `-δ(x - x') δ(t)`, i.e. `φ ↦ -φ(x', 0)`. -/
def impulseSource {n : ℕ} (x' : Space n) : TestFn n → ℝ :=
  fun φ => -φ (x', 0)

/-- Eq. (A-5), right-hand side: the source `-δ(x - x') ∂_t δ(t)` of an impulsive
volume-injection rate, i.e. `φ ↦ ∂_t φ(x', 0)`. -/
def monopoleSource {n : ℕ} (x' : Space n) : TestFn n → ℝ :=
  fun φ => pderiv tDir ⇑φ (x', 0)

/-- Eq. (A-12), right-hand side: the vertical dipole source `(1/ρ(x')) ∂_z δ(x - x') δ(t)`,
i.e. `φ ↦ -(1/ρ(x')) ∂_z φ(x', 0)`. -/
def dipoleSource {n : ℕ} (M : Medium n) (x' : Space n) : TestFn n → ℝ :=
  fun φ => -((M.rho x')⁻¹ * pderiv zDir ⇑φ (x', 0))

/-- Eq. (A-4): causality, `u = 0` for `t < 0`, i.e. `u` vanishes on every test function
supported in `{t < 0}`. -/
def IsCausal {n : ℕ} (u : Distrib n) : Prop :=
  ∀ φ : TestFn n, (∀ p ∈ tsupport ⇑φ, p.2 < 0) → u φ = 0

/-- Appendix A-2: `v` is the time reversal of `u`, `v(x, t) = u(x, -t)`, i.e.
`v(φ) = u(φ(·, -·))` for every test function `φ`. -/
def IsTimeReversal {n : ℕ} (u v : Distrib n) : Prop :=
  ∀ φ ψ : TestFn n, (⇑ψ = fun p => φ (p.1, -p.2)) → v φ = u ψ

/-- The time derivative `∂_t u` of a distribution, `(∂_t u)(φ) = -u(∂_t φ)`. -/
def timeDeriv {n : ℕ} (u : Distrib n) : Distrib n :=
  Distribution.lineDerivCLM (k := (⊤ : ℕ∞)) (n := (⊤ : ℕ∞)) tDir u

/-- Eqs. (A-3)-(A-4): `u` is the Green's function `𝒢(x, x', t)` with source point `x'`, the
causal solution of `L 𝒢 = -δ(x - x') δ(t)`. -/
def IsImpulseGreen {n : ℕ} (M : Medium n) (x' : Space n) (u : Distrib n) : Prop :=
  SolvesWave M u (impulseSource x') ∧ IsCausal u

/-- Eq. (A-5): `u` is the monopole Green's function `G(x, x', t)` with source point `x'`, the
causal solution of `L G = -δ(x - x') ∂_t δ(t)`. -/
def IsMonopoleGreen {n : ℕ} (M : Medium n) (x' : Space n) (u : Distrib n) : Prop :=
  SolvesWave M u (monopoleSource x') ∧ IsCausal u

/-- Eq. (A-12): `u` is the dipole Green's function `G_d(x, x', t)` with source point `x'`, the
causal solution of `L G_d = (1/ρ(x')) ∂_z δ(x - x') δ(t)`. -/
def IsDipoleGreen {n : ℕ} (M : Medium n) (x' : Space n) (u : Distrib n) : Prop :=
  SolvesWave M u (dipoleSource M x') ∧ IsCausal u

end Arxiv2412_13833
Source
Wapenaar, Multiple reflections on Huygens' principle, arXiv:2412.13833v2 (2025), Appendix A (A-1 Monopole Green's function, A-2 Homogeneous Green's function, A-3 Dipole Green's function), eqs. (A-1)-(A-14), PDF pp. 20-21
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Space and space-time. For a natural number nnn, a point of space is a pair x=(xH,z)x = (x_H, z)x=(xH​,z), where xH∈Rnx_H \in \mathbb{R}^nxH​∈Rn (with the Euclidean structure) is the horizontal coordinate and z∈Rz \in \mathbb{R}z∈R is the depth. So space is Rn×R\mathbb{R}^n \times \mathbb{R}Rn×R. A point of space-time is a pair (x,t)(x, t)(x,t) with xxx in space and t∈Rt \in \mathbb{R}t∈R, so space-time is (Rn×R)×R(\mathbb{R}^n \times \mathbb{R}) \times \mathbb{R}(Rn×R)×R. Any n≥0n \ge 0n≥0 is allowed. When n=0n = 0n=0 there are no horizontal coordinates, and space is just the depth line R\mathbb{R}R.

Test functions. A test function is a real-valued function φ\varphiφ on all of space-time that is infinitely differentiable (C∞C^\inftyC∞) and has compact support. The set of these is denoted Dn\mathcal{D}_nDn​.

Distributions. A distribution is a real-valued continuous linear functional u:Dn→Ru : \mathcal{D}_n \to \mathbb{R}u:Dn​→R, with continuity taken in Mathlib's standard topology on test functions. The set of these is denoted Dn′\mathcal{D}'_nDn′​.

Medium. A medium MMM on space consists of two functions ρ,c:Rn×R→R\rho, c : \mathbb{R}^n \times \mathbb{R} \to \mathbb{R}ρ,c:Rn×R→R, the density and the velocity. Both are required to satisfy:

  • ρ(x)>0\rho(x) > 0ρ(x)>0 and c(x)>0c(x) > 0c(x)>0 for every point xxx of space;
  • ρ\rhoρ and ccc are C∞C^\inftyC∞.

Both functions depend only on the spatial point xxx, not on time. No upper or lower bounds beyond strict positivity are imposed.

Coordinate directions. The following fixed vectors are defined, where eie_iei​ is the iii-th standard basis vector of Rn\mathbb{R}^nRn for i∈{1,…,n}i \in \{1, \dots, n\}i∈{1,…,n}:

  • the horizontal direction hi=((ei,0),0)h_i = ((e_i, 0), 0)hi​=((ei​,0),0) in space-time;
  • the depth direction z^=((0,1),0)\hat z = ((0, 1), 0)z^=((0,1),0) in space-time;
  • the time direction t^=((0,0),1)\hat t = ((0, 0), 1)t^=((0,0),1) in space-time;
  • the spatial depth direction z^sp=(0,1)\hat z_{\mathrm{sp}} = (0, 1)z^sp​=(0,1) in space.

The spatial depth direction z^sp\hat z_{\mathrm{sp}}z^sp​ is defined but not used by any other declaration in this file.

Directional derivative. For a vector vvv in space-time and any function fff from space-time to R\mathbb{R}R, define

∂vf(p)=Df(p)[v],\partial_v f(p) = Df(p)[v],∂v​f(p)=Df(p)[v],

the Fréchet derivative of fff at ppp applied to vvv. If fff is not differentiable at ppp, this value is 000 by convention (a junk value), not undefined. The shorthands below are used throughout:

  • ∂xi=∂hi\partial_{x_i} = \partial_{h_i}∂xi​​=∂hi​​;
  • ∂z=∂z^\partial_z = \partial_{\hat z}∂z​=∂z^​;
  • ∂t=∂t^\partial_t = \partial_{\hat t}∂t​=∂t^​.

Wave operator. For a medium MMM and any function fff on space-time (no regularity is required), define at p=(x,t)p = (x, t)p=(x,t):

(LMf)(p)=∑i=1n∂xi ⁣(1ρ ∂xif)(p)+∂z ⁣(1ρ ∂zf)(p)−1ρ(x) c(x)2 ∂t(∂tf)(p).(L_M f)(p) = \sum_{i=1}^{n} \partial_{x_i}\!\Big(\tfrac{1}{\rho}\,\partial_{x_i} f\Big)(p) + \partial_z\!\Big(\tfrac{1}{\rho}\,\partial_z f\Big)(p) - \frac{1}{\rho(x)\,c(x)^2}\,\partial_t\big(\partial_t f\big)(p).(LM​f)(p)=i=1∑n​∂xi​​(ρ1​∂xi​​f)(p)+∂z​(ρ1​∂z​f)(p)−ρ(x)c(x)21​∂t​(∂t​f)(p).

Here 1ρ\tfrac{1}{\rho}ρ1​ means the function q=(y,s)↦1/ρ(y)q = (y, s) \mapsto 1/\rho(y)q=(y,s)↦1/ρ(y). Every derivative is the directional derivative above, so it takes the junk value 000 wherever the function being differentiated is not differentiable. When n=0n = 0n=0 the sum is empty.

Solving the wave equation. For a medium MMM, a distribution uuu, and an arbitrary function f:Dn→Rf : \mathcal{D}_n \to \mathbb{R}f:Dn​→R, "uuu solves the wave equation with right-hand side fff" means:

for all test functions φ,ψ\varphi, \psiφ,ψ such that ψ=LMφ\psi = L_M \varphiψ=LM​φ pointwise on space-time, we have u(ψ)=f(φ)u(\psi) = f(\varphi)u(ψ)=f(φ).

Equivalently, u(LMφ)=f(φ)u(L_M\varphi) = f(\varphi)u(LM​φ)=f(φ) for every test function φ\varphiφ whose image LMφL_M\varphiLM​φ is itself a test function. For any φ\varphiφ with LMφL_M\varphiLM​φ not a test function, the condition imposes nothing. Note that:

  • fff is not required to be linear or continuous;
  • the operator applied to φ\varphiφ is LML_MLM​ itself, not a separately defined adjoint.

Impulse source. For a spatial point x′x'x′, define

Simpx′(φ)=−φ(x′,0).S_{\mathrm{imp}}^{x'}(\varphi) = -\varphi(x', 0).Simpx′​(φ)=−φ(x′,0).

Monopole source. For a spatial point x′x'x′, define

Smonx′(φ)=∂tφ(x′,0).S_{\mathrm{mon}}^{x'}(\varphi) = \partial_t\varphi(x', 0).Smonx′​(φ)=∂t​φ(x′,0).

The sign is plus.

Dipole source. For a medium MMM and a spatial point x′x'x′, define

SdipM,x′(φ)=−1ρ(x′) ∂zφ(x′,0).S_{\mathrm{dip}}^{M,x'}(\varphi) = -\frac{1}{\rho(x')}\,\partial_z\varphi(x', 0).SdipM,x′​(φ)=−ρ(x′)1​∂z​φ(x′,0).

Causality. A distribution uuu is causal if

u(φ)=0u(\varphi) = 0u(φ)=0

for every test function φ\varphiφ whose closed support satisfies

{φ≠0}‾⊆{(x,t):t<0}.\overline{\{\varphi \neq 0\}} \subseteq \{(x, t) : t < 0\}.{φ=0}​⊆{(x,t):t<0}.

The condition holds trivially for φ=0\varphi = 0φ=0, whose support is empty. Since supports are compact, any qualifying φ\varphiφ in fact vanishes for t≥−εt \ge -\varepsilont≥−ε, for some ε>0\varepsilon > 0ε>0 depending on φ\varphiφ.

Time reversal. For distributions uuu and vvv, "vvv is the time reversal of uuu" means:

for all test functions φ,ψ\varphi, \psiφ,ψ with ψ(x,t)=φ(x,−t)\psi(x, t) = \varphi(x, -t)ψ(x,t)=φ(x,−t) for every (x,t)(x, t)(x,t), we have v(φ)=u(ψ)v(\varphi) = u(\psi)v(φ)=u(ψ).

Time derivative of a distribution. For a distribution uuu, ∂tu\partial_t u∂t​u is Mathlib's distributional line derivative of uuu in the direction t^\hat tt^, returned as a distribution. Under the standard convention it acts by

(∂tu)(φ)=−u(∂tφ).(\partial_t u)(\varphi) = -u(\partial_t\varphi).(∂t​u)(φ)=−u(∂t​φ).

Impulse Green's function. For a medium MMM, a spatial point x′x'x′, and a distribution uuu, "uuu is an impulse Green's function with source point x′x'x′" means both of the following hold:

  1. uuu solves the wave equation with right-hand side Simpx′S_{\mathrm{imp}}^{x'}Simpx′​, i.e. u(LMφ)=−φ(x′,0)u(L_M\varphi) = -\varphi(x', 0)u(LM​φ)=−φ(x′,0) whenever LMφL_M\varphiLM​φ is a test function;
  2. uuu is causal.

This is a property of uuu only. Neither existence nor uniqueness of such a uuu is asserted.

Monopole Green's function. "uuu is a monopole Green's function with source point x′x'x′" means both of the following hold:

  1. u(LMφ)=∂tφ(x′,0)u(L_M\varphi) = \partial_t\varphi(x', 0)u(LM​φ)=∂t​φ(x′,0) for every test function φ\varphiφ with LMφL_M\varphiLM​φ a test function;
  2. uuu is causal.

Neither existence nor uniqueness is asserted.

Dipole Green's function. "uuu is a dipole Green's function with source point x′x'x′" means both of the following hold:

  1. u(LMφ)=−1ρ(x′) ∂zφ(x′,0)u(L_M\varphi) = -\frac{1}{\rho(x')}\,\partial_z\varphi(x', 0)u(LM​φ)=−ρ(x′)1​∂z​φ(x′,0) for every test function φ\varphiφ with LMφL_M\varphiLM​φ a test function;
  2. uuu is causal.

The density in this condition is evaluated at the source point x′x'x′. Neither existence nor uniqueness is asserted.

Human review
  • Endorsed by Shuze Chen · Nov 26, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 26, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me