Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Helmholtz operator and scattered wavefield (Ma and Alkhalifah, Sec. 2.1)

Definition
Arxiv2507_16431_Basic

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

helmholtz-equationphysics-informed-neural-operatorsscattered-wavefieldseismic-wave-propagation

Objects of Section 2.1 of Ma and Alkhalifah (2025).

  1. Model domain. Points (x,z)(x,z)(x,z) of the two-dimensional plane R2\mathbb{R}^2R2 with the Euclidean inner product; ∇2=∂x2+∂z2\nabla^2=\partial_x^2+\partial_z^2∇2=∂x2​+∂z2​ is the Laplacian.
  2. Helmholtz operator (eq. 1). For a velocity model v(x,z)v(x,z)v(x,z) and an angular frequency ω\omegaω, the frequency-domain wave operator acts on a complex-valued wavefield U(x,z)U(x,z)U(x,z) by
L(v,ω) U=ω2v2 U+∇2U.L(v,\omega)\,U=\frac{\omega^2}{v^2}\,U+\nabla^2U.L(v,ω)U=v2ω2​U+∇2U.
  1. Scattered wavefield (eq. 2). For a full wavefield UUU and a background wavefield U0U_0U0​, the scattered wavefield is δU=U−U0\delta U=U-U_0δU=U−U0​.

These are the objects in which the paper's learning target (the scattered wavefield) and its physics loss JpdeJ_{\text{pde}}Jpde​ (eq. 8) are written.

Formalization Note The paper writes eq. (1) as L(v,ω)U=fL(v,\omega)U=fL(v,ω)U=f and calls LLL "the linear wave equation operator" without giving its formula. The operator used here is the constant-density Helmholtz operator ω2/v2+∇2\omega^2/v^2+\nabla^2ω2/v2+∇2, 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.

Definition code
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
Source
Ma and Alkhalifah, An effective physics-informed neural operator framework for predicting wavefields, arXiv:2507.16431v1 (2025), Section 2.1 (Problem Statement), eqs. (1)-(2), PDF pp. 4-5
Read-back

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

Model domain. Throughout, R2\mathbb{R}^2R2 denotes the Euclidean plane: pairs p=(p0,p1)p = (p_0, p_1)p=(p0​,p1​) of real numbers with the standard Euclidean inner product and norm. The comments identify coordinate 000 with xxx and coordinate 111 with zzz, but the code places no further structure on these coordinates.

Definition 1 (helmholtzOp). The definition takes three inputs:

  • an arbitrary function v:R2→Rv : \mathbb{R}^2 \to \mathbb{R}v:R2→R, called the velocity;
  • an arbitrary real number ω\omegaω, which may be zero or negative;
  • an arbitrary complex-valued function U:R2→CU : \mathbb{R}^2 \to \mathbb{C}U:R2→C.

It returns the complex-valued function L(v,ω)U:R2→CL(v,\omega)U : \mathbb{R}^2 \to \mathbb{C}L(v,ω)U:R2→C given at each point ppp by

(L(v,ω)U)(p)  =  ω2v(p)2 U(p)  +  ΔU(p).\bigl(L(v,\omega)U\bigr)(p) \;=\; \frac{\omega^2}{v(p)^2}\, U(p) \;+\; \Delta U(p).(L(v,ω)U)(p)=v(p)2ω2​U(p)+ΔU(p).

The coefficient ω2/v(p)2\omega^2 / v(p)^2ω2/v(p)2 is computed as a real number and then regarded as a complex number.

There are no hypotheses on vvv. It need not be positive, nonzero, continuous or measurable. At any point where v(p)=0v(p) = 0v(p)=0, real division by zero is defined to give 000, so there the coefficient is 000 and the formula reduces to ΔU(p)\Delta U(p)ΔU(p). If ω=0\omega = 0ω=0, the coefficient is 000 everywhere.

ΔU(p)\Delta U(p)ΔU(p) is Mathlib's Laplacian of UUU, viewed as a function on the real inner-product space R2\mathbb{R}^2R2 with values in C\mathbb{C}C. It is defined as the trace of the second derivative:

ΔU(p)=∑iD2U(p)[ei,ei],\Delta U(p) = \sum_{i} D^2 U(p)[e_i, e_i],ΔU(p)=i∑​D2U(p)[ei​,ei​],

where (ei)(e_i)(ei​) is an orthonormal basis of R2\mathbb{R}^2R2. For a twice-differentiable UUU this is ∂x2U+∂z2U\partial_x^2 U + \partial_z^2 U∂x2​U+∂z2​U, applied to real and imaginary parts.

There are no hypotheses on UUU either. No differentiability, integrability or boundary behaviour is assumed. Where UUU fails to be differentiable, the derivative is defined to be 000, and these junk values propagate into ΔU\Delta UΔU. For example, ΔU(p)=0\Delta U(p) = 0ΔU(p)=0 whenever the first derivative of UUU fails to be differentiable at ppp. In such cases the operator returns ω2v(p)2U(p)\frac{\omega^2}{v(p)^2}U(p)v(p)2ω2​U(p) or simply 000 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 U,U0:R2→CU, U_0 : \mathbb{R}^2 \to \mathbb{C}U,U0​:R2→C. It returns their pointwise difference

δU(p)  =  U(p)−U0(p),p∈R2.\delta U(p) \;=\; U(p) - U_0(p), \qquad p \in \mathbb{R}^2.δU(p)=U(p)−U0​(p),p∈R2.

No relationship between UUU and U0U_0U0​ is required. In particular, neither is required to satisfy any equation involving L(v,ω)L(v,\omega)L(v,ω), and they need not be associated with any velocity model or frequency. The definition does not refer to helmholtzOp at all.

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

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 25, 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