Helmholtz operator and scattered wavefield (Ma and Alkhalifah, Sec. 2.1)
DefinitionArxiv2507_16431_BasicObjects of Section 2.1 of Ma and Alkhalifah (2025).
- Model domain. Points of the two-dimensional plane with the Euclidean inner product; is the Laplacian.
- Helmholtz operator (eq. 1). For a velocity model and an angular frequency , the frequency-domain wave operator acts on a complex-valued wavefield by
- Scattered wavefield (eq. 2). For a full wavefield and a background wavefield , the scattered wavefield is .
These are the objects in which the paper's learning target (the scattered wavefield) and its physics loss (eq. 8) are written.
Formalization Note The paper writes eq. (1) as and calls "the linear wave equation operator" without giving its formula. The operator used here is the constant-density Helmholtz operator , the one whose scattering form is the paper's eq. (2). The Laplacian is Mathlib's, which is the trace of the second Fréchet derivative; at points where the function is not twice differentiable it takes a default value, so every statement assumes twice continuous differentiability where the Laplacian is used.
import Mathlib /-! X. Ma and T. Alkhalifah, *An effective physics-informed neural operator framework for predicting wavefields*, arXiv:2507.16431v1 (2025): the frequency-domain wave (Helmholtz) operator of eq. (1) and the scattered wavefield of eq. (2), Section 2.1. -/ noncomputable section namespace Arxiv2507_16431 /-- Section 2.1, p. 4: the two-dimensional model domain, points `(x, z)` written as vectors of `ℝ²` with the Euclidean inner product (coordinate `0` is `x`, coordinate `1` is `z`). -/ abbrev Plane := EuclideanSpace ℝ (Fin 2) /-- Eq. (1), Section 2.1, p. 4: the linear wave equation operator `L(v, ω)` in the frequency domain, `L(v, ω) U = (ω² / v²) U + ∇² U`, for a velocity model `v(x, z)`, angular frequency `ω` and a complex-valued wavefield `U(x, z)`. The paper does not write `L` out; this is the constant-density operator whose scattering form is eq. (2). `∇²` is Mathlib's Laplacian. -/ def helmholtzOp (v : Plane → ℝ) (ω : ℝ) (U : Plane → ℂ) : Plane → ℂ := fun x => ((ω ^ 2 / v x ^ 2 : ℝ) : ℂ) * U x + Laplacian.laplacian U x /-- Eq. (2), second line, Section 2.1, p. 5: the scattered wavefield `δU = U - U₀`, the difference between the full wavefield `U` and the background wavefield `U₀`. -/ def scatteredField (U U0 : Plane → ℂ) : Plane → ℂ := fun x => U x - U0 x end Arxiv2507_16431
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Model domain. Throughout, denotes the Euclidean plane: pairs of real numbers with the standard Euclidean inner product and norm. The comments identify coordinate with and coordinate with , but the code places no further structure on these coordinates.
Definition 1 (helmholtzOp). The definition takes three inputs:
- an arbitrary function , called the velocity;
- an arbitrary real number , which may be zero or negative;
- an arbitrary complex-valued function .
It returns the complex-valued function given at each point by
The coefficient is computed as a real number and then regarded as a complex number.
There are no hypotheses on . It need not be positive, nonzero, continuous or measurable. At any point where , real division by zero is defined to give , so there the coefficient is and the formula reduces to . If , the coefficient is everywhere.
is Mathlib's Laplacian of , viewed as a function on the real inner-product space with values in . It is defined as the trace of the second derivative:
where is an orthonormal basis of . For a twice-differentiable this is , applied to real and imaginary parts.
There are no hypotheses on either. No differentiability, integrability or boundary behaviour is assumed. Where fails to be differentiable, the derivative is defined to be , and these junk values propagate into . For example, whenever the first derivative of fails to be differentiable at . In such cases the operator returns or simply there, rather than signalling that it is undefined.
The definition contains no density term, no source term, no boundary or radiation condition, and no equation. It only specifies the output function.
Definition 2 (scatteredField). The definition takes two arbitrary functions . It returns their pointwise difference
No relationship between and is required. In particular, neither is required to satisfy any equation involving , and they need not be associated with any velocity model or frequency. The definition does not refer to helmholtzOp at all.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.