Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Locally rough surface scattering: Dirichlet problem, layer potentials and the integral equation Pφ=gP\varphi=gPφ=g

Definition
Arxiv1302_0161_Basic

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

boundary-integral-equationshelmholtz-equationinverse-scatteringlayer-potentialsrough-surface-scattering

Objects of Sections 1–5 of H. Zhang and B. Zhang (arXiv:1302.0161).

  1. Surface and waves. A locally rough surface is Γ={x2=hΓ(x1)}\Gamma=\{x_2=h_\Gamma(x_1)\}Γ={x2​=hΓ​(x1​)} with hΓ∈C2(R)h_\Gamma\in C^2(\mathbb R)hΓ​∈C2(R) of compact support. Above it lies D+={x2>hΓ(x1)}D_+=\{x_2>h_\Gamma(x_1)\}D+​={x2​>hΓ​(x1​)}, with closure D+‾={x2≥hΓ(x1)}\overline{D_+}=\{x_2\ge h_\Gamma(x_1)\}D+​​={x2​≥hΓ​(x1​)}. The wave number is k>0k>0k>0. An incident direction is d∈S−={∣d∣=1, d2<0}d\in S_-=\{|d|=1,\ d_2<0\}d∈S−​={∣d∣=1, d2​<0}. The incident wave is ui(x)=eikd⋅xu^i(x)=e^{ikd\cdot x}ui(x)=eikd⋅x and the reflected wave is ur(x)=−eik(d1x1−d2x2)u^r(x)=-e^{ik(d_1x_1-d_2x_2)}ur(x)=−eik(d1​x1​−d2​x2​). Write S+={∣x∣=1, x2>0}S_+=\{|x|=1,\ x_2>0\}S+​={∣x∣=1, x2​>0}.

  2. Fundamental solution. Φk(x,y)=i4H0(1)(k∣x−y∣)\Phi_k(x,y)=\tfrac i4H_0^{(1)}(k|x-y|)Φk​(x,y)=4i​H0(1)​(k∣x−y∣), where H0(1)=J0+iY0H_0^{(1)}=J_0+iY_0H0(1)​=J0​+iY0​. Both J0J_0J0​ and Y0Y_0Y0​ are given by their power series, Y0Y_0Y0​ with the term 2π(ln⁡r2+γ)J0(r)\tfrac2\pi(\ln\tfrac r2+\gamma)J_0(r)π2​(ln2r​+γ)J0​(r). The normal derivative is ∂Φk(x,y)/∂ν(y)=∇yΦk(x,y)⋅ν\partial\Phi_k(x,y)/\partial\nu(y)=\nabla_y\Phi_k(x,y)\cdot\nu∂Φk​(x,y)/∂ν(y)=∇y​Φk​(x,y)⋅ν.

  3. Dirichlet problem (DP). uuu solves (DP) with data fff if all of the following hold:

    • u∈C2(D+)∩C(D+‾)u\in C^2(D_+)\cap C(\overline{D_+})u∈C2(D+​)∩C(D+​​);
    • Δu+k2u=0\Delta u+k^2u=0Δu+k2u=0 in D+D_+D+​;
    • ∣x∣1/2(∂ru−iku)→0|x|^{1/2}(\partial_ru-iku)\to0∣x∣1/2(∂r​u−iku)→0 as ∣x∣→∞|x|\to\infty∣x∣→∞ in D+D_+D+​;
    • u=fu=fu=f on Γ\GammaΓ.

    The scattering problem takes f=−(ui+ur)f=-(u^i+u^r)f=−(ui+ur). A function FFF is the far field pattern of uuu on a set AAA of directions if u(x)=eik∣x∣∣x∣(F(x^)+O(∣x∣−1))u(x)=\frac{e^{ik|x|}}{\sqrt{|x|}}\big(F(\hat x)+O(|x|^{-1})\big)u(x)=∣x∣​eik∣x∣​(F(x^)+O(∣x∣−1)) uniformly for x^=x/∣x∣∈A\hat x=x/|x|\in Ax^=x/∣x∣∈A.

  4. The bounded curve. R>0R>0R>0 is chosen so that Γp={(x1,hΓ(x1)):x1∈supp⁡hΓ}⊂BR\Gamma_p=\{(x_1,h_\Gamma(x_1)):x_1\in\operatorname{supp}h_\Gamma\}\subset B_RΓp​={(x1​,hΓ​(x1​)):x1​∈supphΓ​}⊂BR​. Then:

    • ΓR={(t,hΓ(t)):−R<t<R}\Gamma_R=\{(t,h_\Gamma(t)):-R<t<R\}ΓR​={(t,hΓ​(t)):−R<t<R};
    • ∂DR−=ΓR‾∪{∣x∣=R, x2≤0}\partial D_R^-=\overline{\Gamma_R}\cup\{|x|=R,\ x_2\le0\}∂DR−​=ΓR​​∪{∣x∣=R, x2​≤0}, with corners xA=(−R,0)x_A=(-R,0)xA​=(−R,0) and xB=(R,0)x_B=(R,0)xB​=(R,0);
    • DR−‾={x2≤hΓ(x1), ∣x∣≤R}\overline{D_R^-}=\{x_2\le h_\Gamma(x_1),\ |x|\le R\}DR−​​={x2​≤hΓ​(x1​), ∣x∣≤R}.

    Integrals over ∂DR−\partial D_R^-∂DR−​ are taken with respect to arc length, and ν\nuν is the unit normal pointing out of DR−D_R^-DR−​.

  5. Layer potentials and the equation (2.2)–(2.4). The potentials are Skφ(x)=∫Φk(x,y)φ(y) ds(y)\mathcal S_k\varphi(x)=\int\Phi_k(x,y)\varphi(y)\,ds(y)Sk​φ(x)=∫Φk​(x,y)φ(y)ds(y) and Dkφ(x)=∫∂ν(y)Φk(x,y)φ(y) ds(y)\mathcal D_k\varphi(x)=\int\partial_{\nu(y)}\Phi_k(x,y)\varphi(y)\,ds(y)Dk​φ(x)=∫∂ν(y)​Φk​(x,y)φ(y)ds(y). On the curve the same integrals are SkφS_k\varphiSk​φ and KkφK_k\varphiKk​φ; evaluated at xre=(x1,−x2)x^{re}=(x_1,-x_2)xre=(x1​,−x2​) they are SkreφS_k^{re}\varphiSkre​φ and KkreφK_k^{re}\varphiKkre​φ. Let ψre(x)=x\psi^{re}(x)=xψre(x)=x on ΓR\Gamma_RΓR​ and ψre(x)=xre\psi^{re}(x)=x^{re}ψre(x)=xre elsewhere on the curve. For real η≠0\eta\neq0η=0:

    • Pφ(x)=c(x)φ(x)+(Dk−iηSk)φ(x)+(Dk−iηSk)φ(ψre(x))P\varphi(x)=c(x)\varphi(x)+(\mathcal D_k-i\eta\mathcal S_k)\varphi(x)+(\mathcal D_k-i\eta\mathcal S_k)\varphi(\psi^{re}(x))Pφ(x)=c(x)φ(x)+(Dk​−iηSk​)φ(x)+(Dk​−iηSk​)φ(ψre(x)), where c=1c=1c=1 on ΓR\Gamma_RΓR​ and c=12c=\tfrac12c=21​ on the semicircle and the corners;
    • g=−2(ui+ur)g=-2(u^i+u^r)g=−2(ui+ur) on ΓR\Gamma_RΓR​ and g=0g=0g=0 elsewhere on the curve.

    The far-field formula (2.8) is u∞(x^)=e−iπ/48πk∫[kν(y)⋅x^+η]e−ikx^⋅yφ(y) ds(y)u^\infty(\hat x)=\frac{e^{-i\pi/4}}{\sqrt{8\pi k}}\int[k\nu(y)\cdot\hat x+\eta]e^{-ik\hat x\cdot y}\varphi(y)\,ds(y)u∞(x^)=8πk​e−iπ/4​∫[kν(y)⋅x^+η]e−ikx^⋅yφ(y)ds(y).

  6. Graded mesh (Section 3). Let v(s)=(1p−12)(π−2sπ)3+1p2s−ππ+12v(s)=(\tfrac1p-\tfrac12)(\tfrac{\pi-2s}{\pi})^3+\tfrac1p\tfrac{2s-\pi}{\pi}+\tfrac12v(s)=(p1​−21​)(ππ−2s​)3+p1​π2s−π​+21​. The grading function is ω(s)=πv(s)p/(v(s)p+v(π−s)p)\omega(s)=\pi v(s)^p/(v(s)^p+v(\pi-s)^p)ω(s)=πv(s)p/(v(s)p+v(π−s)p) on [0,π][0,\pi][0,π] and ω(s)=ω(s−π)+π\omega(s)=\omega(s-\pi)+\piω(s)=ω(s−π)+π on (π,2π](\pi,2\pi](π,2π]. The parameterisation, with p=4p=4p=4, is:

    • x(s)=(−2Rω(s)/π+R, hΓ(−2Rω(s)/π+R))x(s)=(-2R\omega(s)/\pi+R,\ h_\Gamma(-2R\omega(s)/\pi+R))x(s)=(−2Rω(s)/π+R, hΓ​(−2Rω(s)/π+R)) for 0≤s≤π0\le s\le\pi0≤s≤π;
    • x(s)=R(cos⁡ω(s),sin⁡ω(s))x(s)=R(\cos\omega(s),\sin\omega(s))x(s)=R(cosω(s),sinω(s)) for π<s≤2π\pi<s\le2\piπ<s≤2π.

    It comes with its outward normal ν(x(s))\nu(x(s))ν(x(s)) and its speed ∣x′(s)∣|x'(s)|∣x′(s)∣.

  7. Section 4.

    • C0,R2(R)={h∈C2:supp⁡h⊂(−R,R)}C^2_{0,R}(\mathbb R)=\{h\in C^2:\operatorname{supp}h\subset(-R,R)\}C0,R2​(R)={h∈C2:supph⊂(−R,R)}, with ∥h∥C2=sup⁡∣h∣+sup⁡∣h′∣+sup⁡∣h′′∣\|h\|_{C^2}=\sup|h|+\sup|h'|+\sup|h''|∥h∥C2​=sup∣h∣+sup∣h′∣+sup∣h′′∣.
    • ∥F∥L2(S+)2=∫0π∣F(cos⁡θ,sin⁡θ)∣2dθ\|F\|_{L^2(S_+)}^2=\int_0^\pi|F(\cos\theta,\sin\theta)|^2d\theta∥F∥L2(S+​)2​=∫0π​∣F(cosθ,sinθ)∣2dθ.
    • The boundary data of the derivative is −(ν2Δh) ∂u/∂ν-(\nu_2\Delta h)\,\partial u/\partial\nu−(ν2​Δh)∂u/∂ν on Γ\GammaΓ. Here ν=(−hΓ′,1)/1+hΓ′2\nu=(-h_\Gamma',1)/\sqrt{1+h_\Gamma'^2}ν=(−hΓ′​,1)/1+hΓ′2​​ points into D+D_+D+​, and ∂u/∂ν\partial u/\partial\nu∂u/∂ν is the one-sided derivative from D+D_+D+​.
  8. Splines (Remark 5.1). ϕ(t)=∑j=0m+1(−1)jm!(m+1j)(t+m+12−j)+m\phi(t)=\sum_{j=0}^{m+1}\frac{(-1)^j}{m!}\binom{m+1}{j}(t+\frac{m+1}2-j)_+^mϕ(t)=∑j=0m+1​m!(−1)j​(jm+1​)(t+2m+1​−j)+m​ with m=4m=4m=4. Let h=2R/(M+5)h=2R/(M+5)h=2R/(M+5) and ti=(i+2)h−Rt_i=(i+2)h-Rti​=(i+2)h−R. Then ϕi(t)=ϕ((t−ti)/h)\phi_i(t)=\phi((t-t_i)/h)ϕi​(t)=ϕ((t−ti​)/h).

Formalization Note Points of R2\mathbb R^2R2 are elements of EuclideanSpace ℝ (Fin 2). A function on ∂DR−\partial D_R^-∂DR−​ is a function on R2\mathbb R^2R2 of which only the values on the curve are used. Arc-length integrals over ∂DR−\partial D_R^-∂DR−​ are written in the natural parameterisations: t↦(t,hΓ(t))t\mapsto(t,h_\Gamma(t))t↦(t,hΓ​(t)), −R≤t≤R-R\le t\le R−R≤t≤R, and θ↦R(cos⁡θ,sin⁡θ)\theta\mapsto R(\cos\theta,\sin\theta)θ↦R(cosθ,sinθ), π≤θ≤2π\pi\le\theta\le2\piπ≤θ≤2π. The operator PPP, the potentials and ggg are total functions on R2\mathbb R^2R2; the statements use them only on ∂DR−\partial D_R^-∂DR−​. The paper's spline degree kkk is called mmm, to avoid a clash with the wave number.

Definition code
import Mathlib

/-!
H. Zhang and B. Zhang, *A novel integral equation for scattering by locally rough surfaces and
application to the inverse problem*, arXiv:1302.0161v1 (2013): the locally rough surface, the
incident and reflected plane waves, the Dirichlet problem (DP) and the far field pattern of
Section 1 and Section 2; the layer potentials, the operator `P` and the right-hand side `g` of
eqs. (2.2)-(2.4); the far-field formula (2.8); the graded-mesh parameterisation of Section 3;
the far field data, the space `C²_{0,R}(ℝ)` and the boundary data of the domain derivative of
Section 4; and the spline basis of Remark 5.1.

Points of `ℝ²` are elements of `EuclideanSpace ℝ (Fin 2)`; the paper's `x = (x₁, x₂)` is
`x 0 = x₁`, `x 1 = x₂`. A function on the curve `∂D_R^-` is a function on `ℝ²` of which only the
values on the curve are used. Integrals over the curve are line integrals with respect to arc
length, written in the natural parameterisations: `t ↦ (t, h t)`, `-R ≤ t ≤ R`, for `Γ_R`, and
`θ ↦ R (cos θ, sin θ)`, `π ≤ θ ≤ 2π`, for the lower semicircle.
-/

open MeasureTheory

noncomputable section

namespace Arxiv1302_0161

/-- The plane `ℝ²` with its Euclidean norm. -/
abbrev R2 := EuclideanSpace ℝ (Fin 2)

/-- The point `(a, b) ∈ ℝ²`. -/
def pt (a b : ℝ) : R2 := !₂[a, b]

/-- The Euclidean inner product `x · y = x₁ y₁ + x₂ y₂` of `ℝ²`. -/
def dot (x y : R2) : ℝ := x 0 * y 0 + x 1 * y 1

/-- Section 2, p. 5: the reflection `x^{re} = (x₁, -x₂)` of `x` about the `x₁`-axis. -/
def refl (x : R2) : R2 := pt (x 0) (-(x 1))

/-! ### The fundamental solution (Section 2, p. 5) -/

/-- The Bessel function `J₀(r) = ∑_{m ≥ 0} (-1)^m (r/2)^{2m} / (m!)²` (Section 2, p. 5, through
`Φ_k`; Section 3, p. 10). -/
def besselJ0 (r : ℝ) : ℝ :=
  ∑' m : ℕ, (-1 : ℝ) ^ m * (r / 2) ^ (2 * m) / ((m.factorial : ℝ) ^ 2)

/-- The Bessel function of the second kind of order zero, for `r > 0`:
`Y₀(r) = (2/π)(log(r/2) + γ) J₀(r) + (2/π) ∑_{m ≥ 1} (-1)^{m+1} H_m (r/2)^{2m} / (m!)²`,
with `H_m` the harmonic numbers and `γ` the Euler–Mascheroni constant. -/
def besselY0 (r : ℝ) : ℝ :=
  2 / Real.pi * (Real.log (r / 2) + Real.eulerMascheroniConstant) * besselJ0 r +
    2 / Real.pi * ∑' m : ℕ, (-1 : ℝ) ^ m * (harmonic (m + 1) : ℝ) * (r / 2) ^ (2 * (m + 1)) /
      (((m + 1).factorial : ℝ) ^ 2)

/-- The Hankel function of the first kind of order zero, `H₀^{(1)} = J₀ + i Y₀`, for `r > 0`. -/
def hankel01 (r : ℝ) : ℂ := (besselJ0 r : ℂ) + Complex.I * (besselY0 r : ℂ)

/-- Section 2, p. 5: the fundamental solution `Φ_k(x,y) = (i/4) H₀^{(1)}(k|x-y|)` of the
Helmholtz equation `Δw + k²w = 0`, for `k > 0` and `x ≠ y`. -/
def Phi (k : ℝ) (x y : R2) : ℂ := Complex.I / 4 * hankel01 (k * ‖x - y‖)

/-- Section 2, p. 5: the normal derivative `∂Φ_k(x,y)/∂ν(y) = ∇_y Φ_k(x,y) · ν` in the direction
of a normal vector `ν` at `y`. -/
def dPhi (k : ℝ) (x y nu : R2) : ℂ := fderiv ℝ (fun z => Phi k x z) y nu

/-! ### The locally rough surface and the Dirichlet problem (Sections 1 and 2, pp. 2-5) -/

/-- Section 1, p. 2: `h_Γ ∈ C²(ℝ)` has compact support; `Γ = {x₂ = h_Γ(x₁)}` is a locally rough
surface. -/
def IsLocalProfile (h : ℝ → ℝ) : Prop := ContDiff ℝ 2 h ∧ HasCompactSupport h

/-- Section 1, p. 2: `D_+ = {(x₁, x₂) : x₂ > h_Γ(x₁)}`. -/
def Dplus (h : ℝ → ℝ) : Set R2 := {x | h (x 0) < x 1}

/-- The closure `\overline{D_+} = {(x₁, x₂) : x₂ ≥ h_Γ(x₁)}` (Section 2, p. 4). -/
def DplusClosed (h : ℝ → ℝ) : Set R2 := {x | h (x 0) ≤ x 1}

/-- Section 1, p. 2: the surface `Γ = ∂D_+ = {(x₁, x₂) : x₂ = h_Γ(x₁)}`. -/
def Gam (h : ℝ → ℝ) : Set R2 := {x | x 1 = h (x 0)}

/-- Section 1, p. 2: `d ∈ S_- = {x : |x| = 1, x₂ < 0}`, an incident direction. -/
def IsLowerDir (d : R2) : Prop := ‖d‖ = 1 ∧ d 1 < 0

/-- Section 1, p. 2: the upper half `S_+ = {x : |x| = 1, x₂ > 0}` of the unit circle. -/
def upperCircle : Set R2 := {x | ‖x‖ = 1 ∧ 0 < x 1}

/-- Section 1, p. 2: the incident plane wave `u^i(x) = exp(i k d · x)`. -/
def uInc (k : ℝ) (d x : R2) : ℂ := Complex.exp (Complex.I * (k : ℂ) * (dot d x : ℂ))

/-- Section 1, p. 2: the wave reflected by the plane `x₂ = 0`,
`u^r(x) = -exp(i k (x₁ sin θ + x₂ cos θ))` for `d = (sin θ, -cos θ)`, that is
`u^r(x) = -exp(i k (d₁ x₁ - d₂ x₂))`. -/
def uRefl (k : ℝ) (d x : R2) : ℂ :=
  -Complex.exp (Complex.I * (k : ℂ) * ((d 0 * x 0 - d 1 * x 1 : ℝ) : ℂ))

/-- Section 2, p. 4: the boundary data `f = -(u^i + u^r)` of the scattering problem. -/
def incData (k : ℝ) (d x : R2) : ℂ := -(uInc k d x + uRefl k d x)

/-- Eq. (1.3), p. 2: the Sommerfeld radiation condition
`lim_{r → ∞} r^{1/2} (∂u/∂r - i k u) = 0`, `r = |x|`, `x ∈ D`, with `∂u/∂r = ∇u(x) · x/|x|`;
the limit is taken as `|x| → ∞` within `D`. -/
def IsRadiating (k : ℝ) (D : Set R2) (u : R2 → ℂ) : Prop :=
  ∀ ε > 0, ∃ ρ : ℝ, ∀ x ∈ D, ρ < ‖x‖ →
    ‖(Real.sqrt ‖x‖ : ℂ) * (fderiv ℝ u x (‖x‖⁻¹ • x) - Complex.I * (k : ℂ) * u x)‖ < ε

/-- Section 2, p. 4: `u` solves the Dirichlet problem (DP) with boundary data `f`:
`u ∈ C²(D_+) ∩ C(\overline{D_+})`, `Δu + k²u = 0` in `D_+` (eq. (1.1)), `u` satisfies the
Sommerfeld radiation condition (1.3), and `u = f` on `Γ` (eq. (2.1)). -/
def IsDPSolution (k : ℝ) (h : ℝ → ℝ) (f : R2 → ℂ) (u : R2 → ℂ) : Prop :=
  ContDiffOn ℝ 2 u (Dplus h) ∧ ContinuousOn u (DplusClosed h) ∧
    (∀ x ∈ Dplus h, Laplacian.laplacian u x + (k : ℂ) ^ 2 * u x = 0) ∧
    IsRadiating k (Dplus h) u ∧ ∀ x ∈ Gam h, u x = f x

/-- Section 1, p. 2 and Remark 2.6, p. 9: `F` is the far field pattern of `u` for the
observation directions in `A`: `u(x) = e^{ik|x|}/√|x| (F(x̂) + O(1/|x|))` as `|x| → ∞`,
uniformly for `x̂ = x/|x| ∈ A`. -/
def HasFarFieldOn (k : ℝ) (u : R2 → ℂ) (F : R2 → ℂ) (A : Set R2) : Prop :=
  ∃ C ρ : ℝ, 0 < ρ ∧ ∀ x : R2, ρ ≤ ‖x‖ → ‖x‖⁻¹ • x ∈ A →
    ‖u x - Complex.exp (Complex.I * (k : ℂ) * (‖x‖ : ℂ)) / (Real.sqrt ‖x‖ : ℂ) * F (‖x‖⁻¹ • x)‖ ≤
      C / (‖x‖ * Real.sqrt ‖x‖)

/-! ### The bounded curve `∂D_R^-` and the integral equation (Section 2, pp. 4-6) -/

/-- Section 2, p. 4: `R > 0` and the local perturbation
`Γ_p = {(x₁, h_Γ(x₁)) : x₁ ∈ supp(h_Γ)}` lies in the open disc `B_R = {|x| < R}`. -/
def PerturbationInBall (h : ℝ → ℝ) (R : ℝ) : Prop :=
  0 < R ∧ ∀ t ∈ tsupport h, t ^ 2 + h t ^ 2 < R ^ 2

/-- Section 2, p. 4: `Γ_R = Γ ∩ B_R = {(x₁, h_Γ(x₁)) : -R < x₁ < R}` (when `Γ_p ⊂ B_R`). -/
def gammaR (h : ℝ → ℝ) (R : ℝ) : Set R2 := {x | -R < x 0 ∧ x 0 < R ∧ x 1 = h (x 0)}

/-- Section 2, p. 4: the closed curve `∂D_R^- = Γ_R ∪ ∂B_R^- ∪ {x_A, x_B}`, the boundary of
`D_R^- = B_R ∩ D_-`, with corners `x_A = (-R, 0)`, `x_B = (R, 0)`. -/
def bdry (h : ℝ → ℝ) (R : ℝ) : Set R2 :=
  {x | -R ≤ x 0 ∧ x 0 ≤ R ∧ x 1 = h (x 0)} ∪ {x | ‖x‖ = R ∧ x 1 ≤ 0}

/-- The closure `\overline{D_R^-} = {x : x₂ ≤ h_Γ(x₁), |x| ≤ R}` of `D_R^-` (Section 2, p. 4). -/
def lowerClosed (h : ℝ → ℝ) (R : ℝ) : Set R2 := {x | x 1 ≤ h (x 0) ∧ ‖x‖ ≤ R}

/-- The unit normal to `Γ` at `(t, h_Γ(t))` pointing into `D_+`,
`ν = (-h_Γ'(t), 1)/√(1 + h_Γ'(t)²)`. On `Γ_R` it is the normal of `∂D_R^-` pointing out of
`D_R^-` (Section 2, p. 5), and it is the normal of Theorem 4.2 (p. 11). -/
def gNormal (h : ℝ → ℝ) (t : ℝ) : R2 := (Real.sqrt (1 + deriv h t ^ 2))⁻¹ • pt (-deriv h t) 1

/-- The line integral `∫_{∂D_R^-} F(y, ν(y)) ds(y)` with respect to arc length, `ν` the unit normal
pointing out of `D_R^-`: over `Γ_R` as `∫_{-R}^{R} F((t, h t), ν) √(1 + h'(t)²) dt`, and over the
lower semicircle as `∫_π^{2π} F(R(cos θ, sin θ), (cos θ, sin θ)) R dθ` (Section 2, p. 5). -/
def bdryInt (h : ℝ → ℝ) (R : ℝ) (F : R2 → R2 → ℂ) : ℂ :=
  (∫ t in (-R)..R, F (pt t (h t)) (gNormal h t) * (Real.sqrt (1 + deriv h t ^ 2) : ℂ)) +
    ∫ θ in Real.pi..(2 * Real.pi),
      F (pt (R * Real.cos θ) (R * Real.sin θ)) (pt (Real.cos θ) (Real.sin θ)) * (R : ℂ)

/-- Section 2, p. 5: the single-layer potential `(𝒮_k φ)(x) = ∫_{∂D_R^-} Φ_k(x,y) φ(y) ds(y)`;
for `x ∈ ∂D_R^-` this is the boundary operator `(S_k φ)(x)`, and at `x^{re}` it gives
`(S_k^{re} φ)(x)`. -/
def singleLayer (k : ℝ) (h : ℝ → ℝ) (R : ℝ) (phi : R2 → ℂ) (x : R2) : ℂ :=
  bdryInt h R (fun y _ => Phi k x y * phi y)

/-- Section 2, p. 5: the double-layer potential
`(𝒟_k φ)(x) = ∫_{∂D_R^-} ∂Φ_k(x,y)/∂ν(y) φ(y) ds(y)`, `ν` the unit normal pointing out of `D_R^-`;
for `x ∈ ∂D_R^-` this is the boundary operator `(K_k φ)(x)`, and at `x^{re}` it gives
`(K_k^{re} φ)(x)`. -/
def doubleLayer (k : ℝ) (h : ℝ → ℝ) (R : ℝ) (phi : R2 → ℂ) (x : R2) : ℂ :=
  bdryInt h R (fun y nu => dPhi k x y nu * phi y)

/-- Eq. (2.2), p. 5: the combined layer potential `u^s = 𝒟_k φ - i η 𝒮_k φ`, `η` the real coupling
parameter; on `∂D_R^-` it is `K_k φ - i η S_k φ`. -/
def combinedPot (k eta : ℝ) (h : ℝ → ℝ) (R : ℝ) (phi : R2 → ℂ) (x : R2) : ℂ :=
  doubleLayer k h R phi x - Complex.I * (eta : ℂ) * singleLayer k h R phi x

open Classical in
/-- Section 2, p. 5: the map `ψ^{re} : ∂D_R^- → ∂D_R^+`, `ψ^{re}(x) = x` on `Γ_R` and
`ψ^{re}(x) = x^{re}` on `∂B_R^- ∪ {x_A, x_B}`. -/
def psiRe (h : ℝ → ℝ) (R : ℝ) (x : R2) : R2 := if x ∈ gammaR h R then x else refl x

open Classical in
/-- Eq. (2.3), p. 5: the operator `P`,
`Pφ = φ + (K_k φ - i η S_k φ) + (K_k^{re} φ - i η S_k^{re} φ)` on `Γ_R` and
`Pφ = φ/2 + (K_k φ - i η S_k φ) + (K_k^{re} φ - i η S_k^{re} φ)` on `∂B_R^- ∪ {x_A, x_B}`. -/
def opP (k eta : ℝ) (h : ℝ → ℝ) (R : ℝ) (phi : R2 → ℂ) (x : R2) : ℂ :=
  (if x ∈ gammaR h R then phi x else phi x / 2) + combinedPot k eta h R phi x +
    combinedPot k eta h R phi (psiRe h R x)

open Classical in
/-- Eq. (2.4), p. 5: `g = -2(u^i + u^r)` on `Γ_R` and `g = 0` on `∂B_R^- ∪ {x_A, x_B}`. -/
def gData (k : ℝ) (d : R2) (h : ℝ → ℝ) (R : ℝ) (x : R2) : ℂ :=
  if x ∈ gammaR h R then -2 * (uInc k d x + uRefl k d x) else 0

/-- Section 2, p. 5: a solution `u^s` of (DP), defined on `\overline{D_+}`, extended into
`ℝ²_- \ \overline{B_R}` by `u^s(x) = -u^s(x^{re})`. -/
def reflExt (h : ℝ → ℝ) (u : R2 → ℂ) (x : R2) : ℂ := if h (x 0) ≤ x 1 then u x else -u (refl x)

/-- Remark 2.6, eq. (2.8), p. 9: the far field pattern of the combined layer potential,
`u^∞(x̂) = e^{-iπ/4}/√(8πk) ∫_{∂D_R^-} [k ν(y) · x̂ + η] e^{-ik x̂ · y} φ(y) ds(y)`. -/
def farFieldFormula (k eta : ℝ) (h : ℝ → ℝ) (R : ℝ) (phi : R2 → ℂ) (xhat : R2) : ℂ :=
  Complex.exp (-(Complex.I * (Real.pi : ℂ) / 4)) / (Real.sqrt (8 * Real.pi * k) : ℂ) *
    bdryInt h R (fun y nu =>
      ((k * dot nu xhat + eta : ℝ) : ℂ) * Complex.exp (-(Complex.I * (k : ℂ) * (dot xhat y : ℂ))) *
        phi y)

/-! ### The graded-mesh parameterisation (Section 3, p. 9) -/

/-- Section 3, p. 9: Kress's function
`v(s) = (1/p - 1/2)((π - 2s)/π)³ + (1/p)(2s - π)/π + 1/2`. -/
def kressV (p : ℕ) (s : ℝ) : ℝ :=
  (1 / (p : ℝ) - 1 / 2) * ((Real.pi - 2 * s) / Real.pi) ^ 3 +
    1 / (p : ℝ) * ((2 * s - Real.pi) / Real.pi) + 1 / 2

/-- Section 3, p. 9: `ω(s) = π v(s)^p / (v(s)^p + v(π - s)^p)` for `0 ≤ s ≤ π`. -/
def kressOmega0 (p : ℕ) (s : ℝ) : ℝ :=
  Real.pi * kressV p s ^ p / (kressV p s ^ p + kressV p (Real.pi - s) ^ p)

/-- Section 3, p. 9: the grading function `ω : [0, 2π] → [0, 2π]`, given by `kressOmega0` on
`[0, π]` and by `ω(s) = ω(s - π) + π` for `π < s ≤ 2π`. -/
def kressOmega (p : ℕ) (s : ℝ) : ℝ :=
  if s ≤ Real.pi then kressOmega0 p s else kressOmega0 p (s - Real.pi) + Real.pi

/-- Section 3, p. 9: the parameterisation `x(s)` of `∂D_R^-`, `0 ≤ s ≤ 2π`, with `p = 4`:
`x(s) = (-2Rω(s)/π + R, h_Γ(-2Rω(s)/π + R))` for `0 ≤ s ≤ π` and
`x(s) = (R cos ω(s), R sin ω(s))` for `π < s ≤ 2π`. -/
def gradedPt (R : ℝ) (h : ℝ → ℝ) (s : ℝ) : R2 :=
  if s ≤ Real.pi then
    pt (-2 * R * kressOmega 4 s / Real.pi + R) (h (-2 * R * kressOmega 4 s / Real.pi + R))
  else pt (R * Real.cos (kressOmega 4 s)) (R * Real.sin (kressOmega 4 s))

/-- Section 3, p. 9: the unit normal `ν(x(s))` of `∂D_R^-` pointing out of `D_R^-`. -/
def gradedNormal (R : ℝ) (h : ℝ → ℝ) (s : ℝ) : R2 :=
  if s ≤ Real.pi then gNormal h (-2 * R * kressOmega 4 s / Real.pi + R)
  else pt (Real.cos (kressOmega 4 s)) (Real.sin (kressOmega 4 s))

/-- Section 3, p. 9: the speed `|x'(s)|` of the parameterisation. -/
def gradedSpeed (R : ℝ) (h : ℝ → ℝ) (s : ℝ) : ℝ := ‖deriv (gradedPt R h) s‖

/-- Section 3, p. 9: the parameterised integral
`∫_0^{2π} [∂Φ_k(z, x(s))/∂ν(x(s)) - i η Φ_k(z, x(s))] φ(x(s)) |x'(s)| ds`. -/
def paramInt (k eta R : ℝ) (h : ℝ → ℝ) (phi : R2 → ℂ) (z : R2) : ℂ :=
  ∫ s in (0 : ℝ)..(2 * Real.pi),
    (dPhi k z (gradedPt R h s) (gradedNormal R h s) -
        Complex.I * (eta : ℂ) * Phi k z (gradedPt R h s)) *
      phi (gradedPt R h s) * (gradedSpeed R h s : ℂ)

/-! ### The inverse problem (Section 4, pp. 10-11) -/

/-- Section 4, p. 11: `C²_{0,R}(ℝ) = {h ∈ C²(ℝ) : supp(h) ⊂ (-R, R)}`. -/
def C20R (R : ℝ) : Set (ℝ → ℝ) := {g | ContDiff ℝ 2 g ∧ tsupport g ⊆ Set.Ioo (-R) R}

/-- Section 4, p. 11: the norm `‖g‖_{C²(ℝ)} = sup |g| + sup |g'| + sup |g''|`, used for `g ∈ C²_{0,R}`. -/
def c2Norm (g : ℝ → ℝ) : ℝ :=
  (⨆ t, |g t|) + (⨆ t, |deriv g t|) + ⨆ t, |iteratedDeriv 2 g t|

/-- Section 4, p. 11: the norm in `L²(S_+)`,
`‖F‖_{L²(S_+)} = (∫_0^π |F(cos θ, sin θ)|² dθ)^{1/2}`. -/
def l2NormUpper (F : R2 → ℂ) : ℝ :=
  Real.sqrt (∫ θ in (0 : ℝ)..Real.pi, ‖F (pt (Real.cos θ) (Real.sin θ))‖ ^ 2)

/-- Theorem 4.2, p. 11: the normal derivative `∂u/∂ν` at the point `(t, h_Γ(t))` of `Γ`, `ν`
the unit normal directed into `D_+`, as the one-sided derivative from `D_+`. -/
def normalDerivGam (h : ℝ → ℝ) (u : R2 → ℂ) (t : ℝ) : ℂ :=
  derivWithin (fun s : ℝ => u (pt t (h t) + s • gNormal h t)) (Set.Ici 0) 0

/-- Theorem 4.2, p. 11: the boundary data `f = -(ν₂ Δh) ∂u/∂ν` on `Γ` of the derivative `u'`,
where `u = u^i + u^r + u^s` is the total field and `ν₂` the second component of `ν`. -/
def domainDerivData (k : ℝ) (d : R2) (h : ℝ → ℝ) (us : R2 → ℂ) (dh : ℝ → ℝ) (x : R2) : ℂ :=
  -(((gNormal h (x 0)) 1 * dh (x 0) : ℝ) : ℂ) *
    normalDerivGam h (fun y => uInc k d y + uRefl k d y + us y) (x 0)

/-! ### The spline basis (Remark 5.1, p. 12) -/

/-- Remark 5.1, p. 12: the truncated power `z_+^m = z^m` for `z ≥ 0` and `0` for `z < 0`. -/
def truncPow (m : ℕ) (z : ℝ) : ℝ := if 0 ≤ z then z ^ m else 0

/-- Remark 5.1, p. 12: `φ(t) = ∑_{j=0}^{m+1} (-1)^j/m! · C(m+1, j) · (t + (m+1)/2 - j)_+^m`
(the paper writes `k` for the degree `m` and chooses `k = 4`). -/
def splinePhi (m : ℕ) (t : ℝ) : ℝ :=
  ∑ j ∈ Finset.range (m + 2), (-1 : ℝ) ^ j / (m.factorial : ℝ) * ((m + 1).choose j : ℝ) *
    truncPow m (t + ((m : ℝ) + 1) / 2 - j)

/-- Remark 5.1, p. 12: the mesh width `h = 2R/(M + 5)`. -/
def splineStep (R : ℝ) (M : ℕ) : ℝ := 2 * R / ((M : ℝ) + 5)

/-- Remark 5.1, p. 12: the knots `t_i = (i + 2)h - R`. -/
def splineKnot (R : ℝ) (M i : ℕ) : ℝ := ((i : ℝ) + 2) * splineStep R M - R

/-- Remark 5.1, p. 12: the basis function `φ_i(t) = φ((t - t_i)/h)` of `R_M`, with `k = 4`. -/
def splineBasis (R : ℝ) (M i : ℕ) (t : ℝ) : ℝ :=
  splinePhi 4 ((t - splineKnot R M i) / splineStep R M)

end Arxiv1302_0161
Source
H. Zhang and B. Zhang, A novel integral equation for scattering by locally rough surfaces and application to the inverse problem, arXiv:1302.0161v1 (2013), Sections 1-2 (pp. 2-9, eqs. (1.1)-(1.3), (2.1)-(2.4), (2.8)), Section 3 (pp. 9-10), Section 4 (pp. 10-11), Remark 5.1 (p. 12)
Read-back

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

The plane R2\mathbb{R}^2R2. Points are pairs x=(x1,x2)x=(x_1,x_2)x=(x1​,x2​) of real numbers with the Euclidean norm ∣x∣=x12+x22|x|=\sqrt{x_1^2+x_2^2}∣x∣=x12​+x22​​. The notation (a,b)(a,b)(a,b) denotes the point with first coordinate aaa and second coordinate bbb.

Dot product. For x,y∈R2x,y\in\mathbb{R}^2x,y∈R2,

x⋅y=x1y1+x2y2.x\cdot y = x_1y_1+x_2y_2 .x⋅y=x1​y1​+x2​y2​.

Reflection. For x∈R2x\in\mathbb{R}^2x∈R2, xre=(x1,−x2)x^{re}=(x_1,-x_2)xre=(x1​,−x2​).

Bessel function J0J_0J0​. For every real rrr, with no restriction on sign,

J0(r)=∑m=0∞(−1)m(r/2)2m(m!)2.J_0(r)=\sum_{m=0}^{\infty}\frac{(-1)^m (r/2)^{2m}}{(m!)^2}.J0​(r)=m=0∑∞​(m!)2(−1)m(r/2)2m​.

The series is an unconditional infinite sum, which would be assigned the value 000 if it were not summable. It is absolutely convergent for every rrr.

Bessel function Y0Y_0Y0​. For every real rrr, with no restriction to r>0r>0r>0,

Y0(r)=2π(log⁡r2+γ)J0(r)+2π∑m=0∞(−1)mHm+1 (r/2)2(m+1)((m+1)!)2.Y_0(r)=\frac{2}{\pi}\Big(\log\frac r2+\gamma\Big)J_0(r)+\frac{2}{\pi}\sum_{m=0}^{\infty}\frac{(-1)^m H_{m+1}\,(r/2)^{2(m+1)}}{((m+1)!)^2}.Y0​(r)=π2​(log2r​+γ)J0​(r)+π2​m=0∑∞​((m+1)!)2(−1)mHm+1​(r/2)2(m+1)​.

Here γ\gammaγ is the Euler–Mascheroni constant and Hn=1+12+⋯+1nH_n=1+\tfrac12+\dots+\tfrac1nHn​=1+21​+⋯+n1​ is the nnn-th harmonic number. The logarithm is the real logarithm extended by log⁡z=log⁡∣z∣\log z=\log|z|logz=log∣z∣ for z≠0z\neq 0z=0 and log⁡0=0\log 0=0log0=0. So Y0Y_0Y0​ is also defined for r≤0r\le 0r≤0. In particular,

Y0(0)=2γπ,Y_0(0)=\frac{2\gamma}{\pi},Y0​(0)=π2γ​,

since J0(0)=1J_0(0)=1J0​(0)=1 and the series vanishes at r=0r=0r=0.

Hankel function. For every real rrr,

H0(1)(r)=J0(r)+i Y0(r)∈C.H_0^{(1)}(r)=J_0(r)+i\,Y_0(r)\in\mathbb{C}.H0(1)​(r)=J0​(r)+iY0​(r)∈C.

Fundamental solution Φk\Phi_kΦk​. For any real kkk (not assumed positive) and any x,y∈R2x,y\in\mathbb{R}^2x,y∈R2,

Φk(x,y)=i4H0(1)(k∣x−y∣).\Phi_k(x,y)=\frac{i}{4}H_0^{(1)}(k|x-y|).Φk​(x,y)=4i​H0(1)​(k∣x−y∣).

No condition x≠yx\ne yx=y is imposed. At x=yx=yx=y the value is the finite number

Φk(x,x)=i4−γ2π.\Phi_k(x,x)=\frac{i}{4}-\frac{\gamma}{2\pi}.Φk​(x,x)=4i​−2πγ​.

Normal derivative ∂Φk/∂ν\partial\Phi_k/\partial\nu∂Φk​/∂ν. For real kkk and x,y,ν∈R2x,y,\nu\in\mathbb{R}^2x,y,ν∈R2, the quantity

∂Φk(x,y)∂ν(y)\frac{\partial\Phi_k(x,y)}{\partial\nu(y)}∂ν(y)∂Φk​(x,y)​

is the real Fréchet derivative of z↦Φk(x,z)z\mapsto\Phi_k(x,z)z↦Φk​(x,z) at z=yz=yz=y, applied to the vector ν\nuν. The vector ν\nuν is arbitrary, not necessarily of unit length. Wherever this map is not differentiable at yyy, for example at y=xy=xy=x, the value is defined to be 000.

Local profile. A function h:R→Rh:\mathbb{R}\to\mathbb{R}h:R→R is a local profile if both of the following hold:

  • hhh is twice continuously differentiable on R\mathbb{R}R;
  • hhh has compact support.

Domains and surface. For any h:R→Rh:\mathbb{R}\to\mathbb{R}h:R→R, three sets are defined directly by inequalities and an equation. None of them is defined as a topological closure or boundary.

  • D+={x:x2>h(x1)}D_+=\{x: x_2>h(x_1)\}D+​={x:x2​>h(x1​)}.
  • D+‾={x:x2≥h(x1)}\overline{D_+}=\{x: x_2\ge h(x_1)\}D+​​={x:x2​≥h(x1​)}.
  • Γ={x:x2=h(x1)}\Gamma=\{x: x_2=h(x_1)\}Γ={x:x2​=h(x1​)}.

Lower directions. A point d∈R2d\in\mathbb{R}^2d∈R2 is a lower direction if ∣d∣=1|d|=1∣d∣=1 and d2<0d_2<0d2​<0.

Upper semicircle. S+={x:∣x∣=1, x2>0}S_+=\{x: |x|=1,\ x_2>0\}S+​={x:∣x∣=1, x2​>0}, the open upper unit semicircle.

Incident wave. For real kkk and arbitrary d,x∈R2d,x\in\mathbb{R}^2d,x∈R2 (ddd not required to be a unit vector),

ui(x)=eik d⋅x.u^i(x)=e^{ik\,d\cdot x}.ui(x)=eikd⋅x.

Reflected wave. For real kkk and arbitrary d,x∈R2d,x\in\mathbb{R}^2d,x∈R2,

ur(x)=−eik(d1x1−d2x2).u^r(x)=-e^{ik(d_1x_1-d_2x_2)}.ur(x)=−eik(d1​x1​−d2​x2​).

Incident boundary data. f(x)=−(ui(x)+ur(x))f(x)=-(u^i(x)+u^r(x))f(x)=−(ui(x)+ur(x)).

Radiation condition. For real kkk, a set D⊆R2D\subseteq\mathbb{R}^2D⊆R2 and u:R2→Cu:\mathbb{R}^2\to\mathbb{C}u:R2→C, "uuu is radiating in DDD" means:

∀ε>0 ∃ρ∈R ∀x∈D with ∣x∣>ρ:∣∣x∣ (Du(x)[x/∣x∣]−ik u(x))∣<ε.\forall\varepsilon>0\ \exists\rho\in\mathbb{R}\ \forall x\in D \text{ with } |x|>\rho:\quad \Big|\sqrt{|x|}\,\big(Du(x)[x/|x|]-ik\,u(x)\big)\Big|<\varepsilon.∀ε>0 ∃ρ∈R ∀x∈D with ∣x∣>ρ:​∣x∣​(Du(x)[x/∣x∣]−iku(x))​<ε.
  • Du(x)[v]Du(x)[v]Du(x)[v] is the real Fréchet derivative of uuu at xxx applied to vvv, taken to be 000 where uuu is not differentiable.
  • The convergence is uniform over all directions in DDD.
  • If DDD is bounded, the condition holds trivially.

Solution of the Dirichlet problem. For real kkk (any sign), any h:R→Rh:\mathbb{R}\to\mathbb{R}h:R→R (no regularity assumed), and any f,u:R2→Cf,u:\mathbb{R}^2\to\mathbb{C}f,u:R2→C, "uuu solves (DP) with data fff" means all of the following:

  1. uuu is C2C^2C2 on D+D_+D+​.
  2. uuu is continuous on D+‾={x2≥h(x1)}\overline{D_+}=\{x_2\ge h(x_1)\}D+​​={x2​≥h(x1​)}.
  3. Δu(x)+k2u(x)=0\Delta u(x)+k^2u(x)=0Δu(x)+k2u(x)=0 for every x∈D+x\in D_+x∈D+​, where Δ\DeltaΔ is the sum of the second partial derivatives in x1x_1x1​ and x2x_2x2​.
  4. uuu is radiating in D+D_+D+​ in the sense above.
  5. u(x)=f(x)u(x)=f(x)u(x)=f(x) for every x∈Γx\in\Gammax∈Γ.

Far field pattern on a set of directions. For real kkk, functions u,F:R2→Cu,F:\mathbb{R}^2\to\mathbb{C}u,F:R2→C and a set A⊆R2A\subseteq\mathbb{R}^2A⊆R2, "FFF is the far field of uuu on AAA" means: there exist real numbers CCC and ρ>0\rho>0ρ>0 such that every xxx with ∣x∣≥ρ|x|\ge\rho∣x∣≥ρ and x/∣x∣∈Ax/|x|\in Ax/∣x∣∈A satisfies

∣u(x)−eik∣x∣∣x∣F(x/∣x∣)∣≤C∣x∣3/2.\Big|u(x)-\frac{e^{ik|x|}}{\sqrt{|x|}}F\big(x/|x|\big)\Big|\le\frac{C}{|x|^{3/2}}.​u(x)−∣x∣​eik∣x∣​F(x/∣x∣)​≤∣x∣3/2C​.
  • Only the values of FFF on AAA matter.
  • If AAA is empty, or contains no unit vectors, the condition holds trivially.

Perturbation inside the ball. For h:R→Rh:\mathbb{R}\to\mathbb{R}h:R→R and real RRR, this condition means both of the following:

  • R>0R>0R>0;
  • every ttt in the closed support {h≠0}‾\overline{\{h\ne0\}}{h=0}​ satisfies t2+h(t)2<R2t^2+h(t)^2<R^2t2+h(t)2<R2.

If h≡0h\equiv0h≡0, it reduces to R>0R>0R>0.

ΓR\Gamma_RΓR​. ΓR={x:−R<x1<R, x2=h(x1)}\Gamma_R=\{x: -R<x_1<R,\ x_2=h(x_1)\}ΓR​={x:−R<x1​<R, x2​=h(x1​)}, with strict inequalities, so the endpoints are excluded.

The curve ∂DR−\partial D_R^-∂DR−​. It is the union of two pieces:

{x:−R≤x1≤R, x2=h(x1)} ∪ {x:∣x∣=R, x2≤0}.\{x:-R\le x_1\le R,\ x_2=h(x_1)\}\ \cup\ \{x: |x|=R,\ x_2\le0\}.{x:−R≤x1​≤R, x2​=h(x1​)} ∪ {x:∣x∣=R, x2​≤0}.

The first piece is the closed graph piece; the second is the closed lower semicircle of radius RRR. Nothing requires h(±R)=0h(\pm R)=0h(±R)=0, so the two pieces need not meet.

DR−‾\overline{D_R^-}DR−​​. It is the set {x:x2≤h(x1), ∣x∣≤R}\{x: x_2\le h(x_1),\ |x|\le R\}{x:x2​≤h(x1​), ∣x∣≤R}.

Graph normal. For t∈Rt\in\mathbb{R}t∈R,

ν(t)=(−h′(t), 1)1+h′(t)2,\nu(t)=\frac{(-h'(t),\,1)}{\sqrt{1+h'(t)^2}},ν(t)=1+h′(t)2​(−h′(t),1)​,

where h′(t)h'(t)h′(t) is taken to be 000 wherever hhh is not differentiable.

Boundary integral. For real RRR, h:R→Rh:\mathbb{R}\to\mathbb{R}h:R→R and F:R2×R2→CF:\mathbb{R}^2\times\mathbb{R}^2\to\mathbb{C}F:R2×R2→C,

∫∂DR−F ds:=∫−RRF((t,h(t)),ν(t))1+h′(t)2 dt  +  ∫π2πF(R(cos⁡θ,sin⁡θ),(cos⁡θ,sin⁡θ)) R dθ.\int_{\partial D_R^-}F\,ds:=\int_{-R}^{R}F\big((t,h(t)),\nu(t)\big)\sqrt{1+h'(t)^2}\,dt\;+\;\int_{\pi}^{2\pi}F\big(R(\cos\theta,\sin\theta),(\cos\theta,\sin\theta)\big)\,R\,d\theta.∫∂DR−​​Fds:=∫−RR​F((t,h(t)),ν(t))1+h′(t)2​dt+∫π2π​F(R(cosθ,sinθ),(cosθ,sinθ))Rdθ.
  • These are oriented interval integrals: if R<0R<0R<0, the first integral runs from −R-R−R down to RRR and changes sign.
  • Each integral is 000 if its integrand is not integrable.
  • On the arc, the second argument is the radial vector (cos⁡θ,sin⁡θ)(\cos\theta,\sin\theta)(cosθ,sinθ) and the weight is RRR itself, not ∣R∣|R|∣R∣.
  • The set ∂DR−\partial D_R^-∂DR−​ defined above is not used in this formula.

Single-layer potential. For any x∈R2x\in\mathbb{R}^2x∈R2 and φ:R2→C\varphi:\mathbb{R}^2\to\mathbb{C}φ:R2→C,

(Skφ)(x)=∫∂DR−Φk(x,y)φ(y) ds(y),(\mathcal S_k\varphi)(x)=\int_{\partial D_R^-}\Phi_k(x,y)\varphi(y)\,ds(y),(Sk​φ)(x)=∫∂DR−​​Φk​(x,y)φ(y)ds(y),

using the boundary integral above. This includes points xxx on the curve, where the integrand uses the junk value Φk(x,x)\Phi_k(x,x)Φk​(x,x) at a single point.

Double-layer potential. With the second slot of the boundary integral as ν\nuν,

(Dkφ)(x)=∫∂DR−∂Φk(x,y)∂ν(y)φ(y) ds(y).(\mathcal D_k\varphi)(x)=\int_{\partial D_R^-}\frac{\partial\Phi_k(x,y)}{\partial\nu(y)}\varphi(y)\,ds(y).(Dk​φ)(x)=∫∂DR−​​∂ν(y)∂Φk​(x,y)​φ(y)ds(y).

Combined potential. For real η\etaη,

us(x)=(Dkφ)(x)−iη(Skφ)(x).u^s(x)=(\mathcal D_k\varphi)(x)-i\eta(\mathcal S_k\varphi)(x).us(x)=(Dk​φ)(x)−iη(Sk​φ)(x).

The map ψre\psi^{re}ψre. For every x∈R2x\in\mathbb{R}^2x∈R2:

  • ψre(x)=x\psi^{re}(x)=xψre(x)=x if x∈ΓRx\in\Gamma_Rx∈ΓR​ (open endpoints);
  • ψre(x)=xre\psi^{re}(x)=x^{re}ψre(x)=xre otherwise.

The second case applies to all other points of the plane, not only points of the curve.

Operator PPP. For every x∈R2x\in\mathbb{R}^2x∈R2,

(Pφ)(x)=c(x)+us(x)+us(ψre(x)),c(x)={φ(x),x∈ΓR,φ(x)/2,otherwise,(P\varphi)(x)=c(x)+u^s(x)+u^s(\psi^{re}(x)),\qquad c(x)=\begin{cases}\varphi(x),&x\in\Gamma_R,\\[2pt] \varphi(x)/2,&\text{otherwise,}\end{cases}(Pφ)(x)=c(x)+us(x)+us(ψre(x)),c(x)={φ(x),φ(x)/2,​x∈ΓR​,otherwise,​

where usu^sus is the combined potential of φ\varphiφ. Because ψre(x)=x\psi^{re}(x)=xψre(x)=x on ΓR\Gamma_RΓR​, the formula reduces to two cases:

(Pφ)(x)={φ(x)+2(Dkφ−iη Skφ)(x),x∈ΓR,12φ(x)+us(x)+us(xre),otherwise.(P\varphi)(x)=\begin{cases}\varphi(x)+2\big(\mathcal D_k\varphi-i\eta\,\mathcal S_k\varphi\big)(x), & x\in\Gamma_R,\\[4pt] \tfrac12\varphi(x)+u^s(x)+u^s(x^{re}), & \text{otherwise.}\end{cases}(Pφ)(x)={φ(x)+2(Dk​φ−iηSk​φ)(x),21​φ(x)+us(x)+us(xre),​x∈ΓR​,otherwise.​

Right-hand side ggg. g(x)=−2(ui(x)+ur(x))g(x)=-2(u^i(x)+u^r(x))g(x)=−2(ui(x)+ur(x)) if x∈ΓRx\in\Gamma_Rx∈ΓR​, and g(x)=0g(x)=0g(x)=0 for every other x∈R2x\in\mathbb{R}^2x∈R2.

Reflected extension. For every x∈R2x\in\mathbb{R}^2x∈R2:

  • it equals u(x)u(x)u(x) if x2≥h(x1)x_2\ge h(x_1)x2​≥h(x1​);
  • it equals −u(xre)-u(x^{re})−u(xre) otherwise.

There is no restriction to points outside a ball.

Far-field formula. For real k,ηk,\etak,η, a density φ\varphiφ and any x^∈R2\hat x\in\mathbb{R}^2x^∈R2 (not required to be a unit vector),

u∞(x^)=e−iπ/48πk∫∂DR−(k ν⋅x^+η) e−ik x^⋅y φ(y) ds(y),u^\infty(\hat x)=\frac{e^{-i\pi/4}}{\sqrt{8\pi k}}\int_{\partial D_R^-}\big(k\,\nu\cdot\hat x+\eta\big)\,e^{-ik\,\hat x\cdot y}\,\varphi(y)\,ds(y),u∞(x^)=8πk​e−iπ/4​∫∂DR−​​(kν⋅x^+η)e−ikx^⋅yφ(y)ds(y),

where ν\nuν is the second slot of the boundary integral. The square root of a negative number is 000, and division by 000 gives 000. So u∞≡0u^\infty\equiv0u∞≡0 when k≤0k\le0k≤0.

Kress's function vvv. For a natural number ppp and real sss,

v(s)=(1p−12)(π−2sπ)3+1p⋅2s−ππ+12,v(s)=\Big(\frac1p-\frac12\Big)\Big(\frac{\pi-2s}{\pi}\Big)^3+\frac1p\cdot\frac{2s-\pi}{\pi}+\frac12,v(s)=(p1​−21​)(ππ−2s​)3+p1​⋅π2s−π​+21​,

with 1/0:=01/0:=01/0:=0 when p=0p=0p=0.

Grading function ω0\omega_0ω0​. For every real sss,

ω0(s)=π v(s)pv(s)p+v(π−s)p,\omega_0(s)=\frac{\pi\,v(s)^p}{v(s)^p+v(\pi-s)^p},ω0​(s)=v(s)p+v(π−s)pπv(s)p​,

with the value 000 whenever the denominator vanishes.

Grading function ω\omegaω. For every real sss, with no domain restriction:

  • ω(s)=ω0(s)\omega(s)=\omega_0(s)ω(s)=ω0​(s) if s≤πs\le\pis≤π;
  • ω(s)=ω0(s−π)+π\omega(s)=\omega_0(s-\pi)+\piω(s)=ω0​(s−π)+π if s>πs>\pis>π.

Graded parameterisation. Take p=4p=4p=4 and put t(s)=−2R ω(s)/π+Rt(s)=-2R\,\omega(s)/\pi+Rt(s)=−2Rω(s)/π+R. For every real sss:

x(s)={(t(s), h(t(s))),s≤π,(Rcos⁡ω(s), Rsin⁡ω(s)),s>π.x(s)=\begin{cases}\big(t(s),\,h(t(s))\big), & s\le\pi,\\[2pt] \big(R\cos\omega(s),\,R\sin\omega(s)\big), & s>\pi.\end{cases}x(s)={(t(s),h(t(s))),(Rcosω(s),Rsinω(s)),​s≤π,s>π.​

The first case includes negative sss.

Graded normal. For s≤πs\le\pis≤π it is ν(t(s))\nu(t(s))ν(t(s)), the graph normal. For s>πs>\pis>π it is (cos⁡ω(s),sin⁡ω(s))(\cos\omega(s),\sin\omega(s))(cosω(s),sinω(s)).

Graded speed. ∣x′(s)∣|x'(s)|∣x′(s)∣ is the Euclidean norm of the derivative of s↦x(s)s\mapsto x(s)s↦x(s), taken to be 000 wherever that map is not differentiable.

Parameterised integral. For z∈R2z\in\mathbb{R}^2z∈R2,

∫02π[∂Φk(z,x(s))∂ν(x(s))−iη Φk(z,x(s))]φ(x(s)) ∣x′(s)∣ ds,\int_0^{2\pi}\Big[\frac{\partial\Phi_k(z,x(s))}{\partial\nu(x(s))}-i\eta\,\Phi_k(z,x(s))\Big]\varphi(x(s))\,|x'(s)|\,ds,∫02π​[∂ν(x(s))∂Φk​(z,x(s))​−iηΦk​(z,x(s))]φ(x(s))∣x′(s)∣ds,

where ν(x(s))\nu(x(s))ν(x(s)) is the graded normal and the integral is 000 if the integrand is not integrable.

C0,R2C^2_{0,R}C0,R2​. It is the set of C2C^2C2 functions g:R→Rg:\mathbb{R}\to\mathbb{R}g:R→R whose closed support lies in the open interval (−R,R)(-R,R)(−R,R). If R≤0R\le0R≤0, this set is {0}\{0\}{0}.

C2C^2C2 norm. For g:R→Rg:\mathbb{R}\to\mathbb{R}g:R→R,

∥g∥=sup⁡t∣g(t)∣+sup⁡t∣g′(t)∣+sup⁡t∣g′′(t)∣.\|g\|=\sup_t|g(t)|+\sup_t|g'(t)|+\sup_t|g''(t)|.∥g∥=tsup​∣g(t)∣+tsup​∣g′(t)∣+tsup​∣g′′(t)∣.
  • Derivatives are taken to be 000 where they do not exist.
  • Any supremum over an unbounded set is assigned the value 000, so an unbounded term contributes 000 rather than +∞+\infty+∞.

L2(S+)L^2(S_+)L2(S+​) norm. For F:R2→CF:\mathbb{R}^2\to\mathbb{C}F:R2→C,

∥F∥=(∫0π∣F(cos⁡θ,sin⁡θ)∣2dθ)1/2,\|F\|=\Big(\int_0^\pi|F(\cos\theta,\sin\theta)|^2d\theta\Big)^{1/2},∥F∥=(∫0π​∣F(cosθ,sinθ)∣2dθ)1/2,

where the integral is 000 if the integrand is not integrable.

One-sided normal derivative on Γ\GammaΓ. For t∈Rt\in\mathbb{R}t∈R, ∂u/∂ν\partial u/\partial\nu∂u/∂ν at (t,h(t))(t,h(t))(t,h(t)) is the right derivative at s=0s=0s=0 of

s↦u((t,h(t))+s ν(t))s\mapsto u\big((t,h(t))+s\,\nu(t)\big)s↦u((t,h(t))+sν(t))

within s≥0s\ge0s≥0. It is 000 if this one-sided derivative does not exist.

Domain-derivative boundary data. For real kkk, d∈R2d\in\mathbb{R}^2d∈R2, hhh, a function usu^sus, an arbitrary function δh:R→R\delta h:\mathbb{R}\to\mathbb{R}δh:R→R and any x∈R2x\in\mathbb{R}^2x∈R2,

f(x)=− ν2(x1) δh(x1) ∂u∂ν(x1),u=ui+ur+us,ν2(t)=11+h′(t)2.f(x)=-\,\nu_2(x_1)\,\delta h(x_1)\,\frac{\partial u}{\partial\nu}(x_1),\qquad u=u^i+u^r+u^s,\quad \nu_2(t)=\frac{1}{\sqrt{1+h'(t)^2}}.f(x)=−ν2​(x1​)δh(x1​)∂ν∂u​(x1​),u=ui+ur+us,ν2​(t)=1+h′(t)2​1​.

The value depends only on x1x_1x1​; the coordinate x2x_2x2​ is ignored.

Truncated power. For m∈Nm\in\mathbb{N}m∈N:

  • z+m=zmz_+^m=z^mz+m​=zm if z≥0z\ge0z≥0 (so 0+0=10_+^0=10+0​=1);
  • z+m=0z_+^m=0z+m​=0 if z<0z<0z<0.

Spline ϕ\phiϕ. For m∈Nm\in\mathbb{N}m∈N and real ttt,

ϕm(t)=∑j=0m+1(−1)jm!(m+1j)(t+m+12−j)+m.\phi_m(t)=\sum_{j=0}^{m+1}\frac{(-1)^j}{m!}\binom{m+1}{j}\Big(t+\frac{m+1}{2}-j\Big)_+^m.ϕm​(t)=j=0∑m+1​m!(−1)j​(jm+1​)(t+2m+1​−j)+m​.

Mesh width. For real RRR and M∈NM\in\mathbb{N}M∈N,

h=2RM+5,h=\frac{2R}{M+5},h=M+52R​,

with a denominator of at least 555.

Knots. For i∈Ni\in\mathbb{N}i∈N, with no upper bound on iii,

ti=(i+2)h−R.t_i=(i+2)h-R.ti​=(i+2)h−R.

Basis functions. For real ttt,

φi(t)=ϕ4((t−ti)/h).\varphi_i(t)=\phi_4\big((t-t_i)/h\big).φi​(t)=ϕ4​((t−ti​)/h).

If R=0R=0R=0, then h=0h=0h=0, division by zero gives 000, and φi≡ϕ4(0)\varphi_i\equiv\phi_4(0)φi​≡ϕ4​(0) is constant.

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

    Confirmed by the moderator at approval.

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