Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (6): stationarity in the multiplier is the forward Helmholtz equation

Proved
Arxiv2507_15035.forward_equation_iff_stationary_multiplier

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

adjoint-state-methodcalculus-of-variationsfull-waveform-inversionhelmholtz-equation

Let ω>0\omega>0ω>0. Let ccc be a sound speed: measurable, with c≥m>0c\ge m>0c≥m>0, and equal to c0>0c_0>0c0​>0 outside a bounded region of interest. Let xf(1),…,xf(M)∈Rnx_f^{(1)},\dots,x_f^{(M)}\in\mathbb{R}^nxf(1)​,…,xf(M)​∈Rn be the transducer locations and y∈CMy\in\mathbb{C}^My∈CM the measurements. Let L\mathcal LL be the Lagrangian term of eq. (4) with source sss. Let sss be locally integrable, let u∈C2(Rn;C)u\in C^2(\mathbb{R}^n;\mathbb{C})u∈C2(Rn;C), and let λ:Rn→C\lambda:\mathbb{R}^n\to\mathbb{C}λ:Rn→C be such that λ‾ (Scu+s)\overline{\lambda}\,(\mathcal S_cu+s)λ(Sc​u+s) is integrable. Then the following are equivalent:

  1. for every complex test function φ\varphiφ, the function t↦L(c,u,λ+tφ)t\mapsto\mathcal L(c,u,\lambda+t\varphi)t↦L(c,u,λ+tφ), t∈Rt\in\mathbb{R}t∈R, has derivative 000 at t=0t=0t=0;
  2. uuu solves the forward Helmholtz equation (6) almost everywhere:
Scu(x)=−s(x)for a.e. x∈Rn.\mathcal S_cu(x)=-s(x)\quad\text{for a.e. }x\in\mathbb{R}^n.Sc​u(x)=−s(x)for a.e. x∈Rn.

This is the first KKT condition of the Lagrangian formulation of full-waveform inversion: varying the multiplier recovers the constraint.

Formalization Note The paper's condition ∂Lkj/∂λkj(x)=0\partial\mathcal L_k^j/\partial\lambda_k^j(x)=0∂Lkj​/∂λkj​(x)=0 is written as the vanishing of every directional derivative of L\mathcal LL along a smooth compactly supported direction. The source sss is a locally integrable function. A point source (Dirac mass), which the paper also calls sks_ksk​, is outside this function class.

Preamble
import Mathlib
import Definitions.Def_Arxiv2507_15035_Basic

open MeasureTheory
Formal statement
namespace Arxiv2507_15035

theorem forward_equation_iff_stationary_multiplier {n M : ℕ} (ω : ℝ) (hω : 0 < ω)
    (c : Pt n → ℝ) (ROI : Set (Pt n)) (c0 : ℝ) (hc : IsSoundSpeed c ROI c0)
    (s : Pt n → ℂ) (hs : LocallyIntegrable s) (xf : Fin M → Pt n) (y : Fin M → ℂ)
    (u : Pt n → ℂ) (hu : ContDiff ℝ 2 u) (lam : Pt n → ℂ)
    (hint : Integrable (fun x => (starRingEnd ℂ) (lam x) * (helmholtzOp ω c u x + s x))) :
    (∀ φ : Pt n → ℂ, IsTestFn φ →
      HasDerivAt (fun t : ℝ => lagrangianTerm ω c s xf y u (fun x => lam x + t • φ x)) 0 0) ↔
    ∀ᵐ x, helmholtzOp ω c u x = -s x := by sorry

end Arxiv2507_15035
Source
Zeng et al., OpenBreastUS: Benchmarking Neural Operators for Wave Imaging Using Breast Ultrasound Computed Tomography, arXiv:2507.15035v1 (2025), claim c022; Section III-B, eqs. (4)-(6), PDF p. 4 (forward model eqs. (1), (3), PDF p. 3)
Read-back

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

Setting. Let n,M∈Nn, M \in \mathbb{N}n,M∈N be arbitrary, including n=0n = 0n=0 and M=0M = 0M=0. Write Rn\mathbb{R}^nRn for nnn-dimensional Euclidean space. All integrals and "almost everywhere" statements are with respect to Lebesgue measure on Rn\mathbb{R}^nRn. For n=0n = 0n=0 the space is a single point and this measure gives it mass 111. The data are:

  • a real number ω\omegaω with ω>0\omega > 0ω>0 (the angular frequency);

  • a function c:Rn→Rc : \mathbb{R}^n \to \mathbb{R}c:Rn→R, a set ROI⊆Rn\mathrm{ROI} \subseteq \mathbb{R}^nROI⊆Rn and a real number c0c_0c0​, together making ccc a sound speed. This means all of the following hold:

    • ccc is measurable;
    • there is m>0m > 0m>0 with c(x)≥mc(x) \ge mc(x)≥m for all xxx;
    • ROI\mathrm{ROI}ROI is bounded;
    • c0>0c_0 > 0c0​>0;
    • c(x)=c0c(x) = c_0c(x)=c0​ for every x∉ROIx \notin \mathrm{ROI}x∈/ROI.

    ROI\mathrm{ROI}ROI and c0c_0c0​ appear only in this hypothesis.

  • a locally integrable function s:Rn→Cs : \mathbb{R}^n \to \mathbb{C}s:Rn→C (the source);

  • points xf(1),…,xf(M)∈Rnx_f^{(1)}, \dots, x_f^{(M)} \in \mathbb{R}^nxf(1)​,…,xf(M)​∈Rn and complex numbers y1,…,yMy_1, \dots, y_My1​,…,yM​ (the measurements);

  • a function u:Rn→Cu : \mathbb{R}^n \to \mathbb{C}u:Rn→C that is twice continuously differentiable as a function of real variables (the field);

  • an arbitrary function λ:Rn→C\lambda : \mathbb{R}^n \to \mathbb{C}λ:Rn→C (the multiplier). No regularity is assumed on λ\lambdaλ beyond the integrability hypothesis below.

Definitions. The Helmholtz operator is

Scu(x)=Δu(x)+(ωc(x))2u(x),S_c u(x) = \Delta u(x) + \left(\frac{\omega}{c(x)}\right)^2 u(x),Sc​u(x)=Δu(x)+(c(x)ω​)2u(x),

where Δu=∑k=1n∂k2u\Delta u = \sum_{k=1}^n \partial_k^2 uΔu=∑k=1n​∂k2​u is the Laplacian, applied to the real and imaginary parts. For n=0n = 0n=0 the Laplacian is 000.

The misfit is

misfit(u)=∑i=1M∣yi−u(xf(i))∣2,\mathrm{misfit}(u) = \sum_{i=1}^M \bigl|y_i - u(x_f^{(i)})\bigr|^2,misfit(u)=i=1∑M​​yi​−u(xf(i)​)​2,

which equals 000 when M=0M = 0M=0.

The Lagrangian term is

L(u,μ)=misfit(u)−Re⁡∫Rnμ(x)‾ (Scu(x)+s(x)) dx.L(u, \mu) = \mathrm{misfit}(u) - \operatorname{Re} \int_{\mathbb{R}^n} \overline{\mu(x)}\,\bigl(S_c u(x) + s(x)\bigr)\,dx.L(u,μ)=misfit(u)−Re∫Rn​μ(x)​(Sc​u(x)+s(x))dx.

By convention, the integral of a function that is not integrable is taken to be 000.

A test function is a C∞C^\inftyC∞ function φ:Rn→C\varphi : \mathbb{R}^n \to \mathbb{C}φ:Rn→C with compact support.

Hypothesis. The function x↦λ(x)‾ (Scu(x)+s(x))x \mapsto \overline{\lambda(x)}\,(S_c u(x) + s(x))x↦λ(x)​(Sc​u(x)+s(x)) is Lebesgue integrable on Rn\mathbb{R}^nRn.

Conclusion. The following two statements are equivalent:

(for every test function φ, the map t↦L(u,λ+tφ) from R to R is differentiable at t=0 with derivative 0)\Bigl(\text{for every test function } \varphi,\ \text{the map } t \mapsto L(u, \lambda + t\varphi) \text{ from } \mathbb{R} \text{ to } \mathbb{R} \text{ is differentiable at } t = 0 \text{ with derivative } 0\Bigr)(for every test function φ, the map t↦L(u,λ+tφ) from R to R is differentiable at t=0 with derivative 0)   ⟺  \iff⟺ Scu(x)=−s(x)for almost every x∈Rn.S_c u(x) = -s(x) \quad \text{for almost every } x \in \mathbb{R}^n.Sc​u(x)=−s(x)for almost every x∈Rn.

Remarks.

  • Here ttt is a real parameter, and (λ+tφ)(x)=λ(x)+t φ(x)(\lambda + t\varphi)(x) = \lambda(x) + t\,\varphi(x)(λ+tφ)(x)=λ(x)+tφ(x).
  • The misfit term does not depend on the multiplier argument of LLL.
  • The points xf(i)x_f^{(i)}xf(i)​ and values yiy_iyi​ enter only through the misfit.
  • The variations φ\varphiφ are complex-valued, and only the real part of the pairing enters LLL.
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