Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Elastic Green's tensors, the Dirichlet rough-surface problem, kernel splittings and the Nyström scheme

Definition
Arxiv2108_02600_Basic

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

boundary-integral-equationselastic-waveshankel-functionsnystrom-methodrough-surface-scattering

Objects of Sections 2–4 of Li, Liu, Zhang and Zhang (2021), The Nyström method for elastic wave scattering by unbounded rough surfaces.

  1. Parameters. Lamé constants λ,μ\lambda,\muλ,μ with μ>0\mu>0μ>0, λ+2μ>0\lambda+2\mu>0λ+2μ>0, frequency ω>0\omega>0ω>0; cs=μ−1/2c_s=\mu^{-1/2}cs​=μ−1/2, cp=(λ+2μ)−1/2c_p=(\lambda+2\mu)^{-1/2}cp​=(λ+2μ)−1/2, κs=csω\kappa_s=c_s\omegaκs​=cs​ω, κp=cpω\kappa_p=c_p\omegaκp​=cp​ω; and, as fixed throughout the paper by (2.10), μ~=μ(λ+μ)λ+3μ\tilde\mu=\frac{\mu(\lambda+\mu)}{\lambda+3\mu}μ~​=λ+3μμ(λ+μ)​, λ~=(λ+μ)(λ+2μ)λ+3μ\tilde\lambda=\frac{(\lambda+\mu)(\lambda+2\mu)}{\lambda+3\mu}λ~=λ+3μ(λ+μ)(λ+2μ)​.
  2. Bessel and Hankel functions of integer order nnn at z>0z>0z>0, by their ascending series [CK19, (3.97)–(3.98)]:
Jn(z)=∑p≥0(−1)pp!(n+p)!(z2)n+2p,J_n(z)=\sum_{p\ge0}\frac{(-1)^p}{p!(n+p)!}\Big(\frac z2\Big)^{n+2p},Jn​(z)=p≥0∑​p!(n+p)!(−1)p​(2z​)n+2p, Yn(z)=2π(ln⁡z2+CE)Jn(z)−1π∑p=0n−1(n−1−p)!p!(2z)n−2p−1π∑p≥0(−1)pp!(n+p)!(z2)n+2p(ϕ(p)+ϕ(n+p)),Y_n(z)=\frac2\pi\Big(\ln\frac z2+C_E\Big)J_n(z)-\frac1\pi\sum_{p=0}^{n-1}\frac{(n-1-p)!}{p!}\Big(\frac2z\Big)^{n-2p}-\frac1\pi\sum_{p\ge0}\frac{(-1)^p}{p!(n+p)!}\Big(\frac z2\Big)^{n+2p}\big(\phi(p)+\phi(n+p)\big),Yn​(z)=π2​(ln2z​+CE​)Jn​(z)−π1​p=0∑n−1​p!(n−1−p)!​(z2​)n−2p−π1​p≥0∑​p!(n+p)!(−1)p​(2z​)n+2p(ϕ(p)+ϕ(n+p)),

with ϕ(0)=0\phi(0)=0ϕ(0)=0, ϕ(p)=∑m=1p1m\phi(p)=\sum_{m=1}^p\frac1mϕ(p)=∑m=1p​m1​, CEC_ECE​ Euler's constant, and Hn(1)=Jn+iYnH^{(1)}_n=J_n+iY_nHn(1)​=Jn​+iYn​. 3. Green's tensors. Φ(x,y,κ)=i4H0(1)(κ∣x−y∣)\Phi(x,y,\kappa)=\frac i4H_0^{(1)}(\kappa|x-y|)Φ(x,y,κ)=4i​H0(1)​(κ∣x−y∣); the free-space tensor (2.7) G(x,y)=1μΦ(x,y,κs)I+ω−2∇x∇x⊤(Φ(x,y,κs)−Φ(x,y,κp))G(x,y)=\frac1\mu\Phi(x,y,\kappa_s)I+\omega^{-2}\nabla_x\nabla_x^\top(\Phi(x,y,\kappa_s)-\Phi(x,y,\kappa_p))G(x,y)=μ1​Φ(x,y,κs​)I+ω−2∇x​∇x⊤​(Φ(x,y,κs​)−Φ(x,y,κp​)); for a level aaa, y′=(y1,2a−y2)y'=(y_1,2a-y_2)y′=(y1​,2a−y2​) and

U(x,y)=−i2πω2∫R[Mp+Ms](τ) e−i(x1−y1)τ dτ,U(x,y)=-\frac{i}{2\pi\omega^2}\int_{\mathbb R}\big[M_p+M_s\big](\tau)\,e^{-i(x_1-y_1)\tau}\,d\tau,U(x,y)=−2πω2i​∫R​[Mp​+Ms​](τ)e−i(x1​−y1​)τdτ,

with γp,s=κp,s2−τ2\gamma_{p,s}=\sqrt{\kappa_{p,s}^2-\tau^2}γp,s​=κp,s2​−τ2​ (imaginary part ≥0\ge0≥0), Mp=eiγp(x2+y2−2a)−ei(γp(x2−a)+γs(y2−a))γpγs+τ2(−τ2γsτ3τγpγs−τ2γp)M_p=\frac{e^{i\gamma_p(x_2+y_2-2a)}-e^{i(\gamma_p(x_2-a)+\gamma_s(y_2-a))}}{\gamma_p\gamma_s+\tau^2}\begin{pmatrix}-\tau^2\gamma_s&\tau^3\\\tau\gamma_p\gamma_s&-\tau^2\gamma_p\end{pmatrix}Mp​=γp​γs​+τ2eiγp​(x2​+y2​−2a)−ei(γp​(x2​−a)+γs​(y2​−a))​(−τ2γs​τγp​γs​​τ3−τ2γp​​), Ms=eiγs(x2+y2−2a)−ei(γs(x2−a)+γp(y2−a))γpγs+τ2(−τ2γs−τγpγs−τ3−τ2γp)M_s=\frac{e^{i\gamma_s(x_2+y_2-2a)}-e^{i(\gamma_s(x_2-a)+\gamma_p(y_2-a))}}{\gamma_p\gamma_s+\tau^2}\begin{pmatrix}-\tau^2\gamma_s&-\tau\gamma_p\gamma_s\\-\tau^3&-\tau^2\gamma_p\end{pmatrix}Ms​=γp​γs​+τ2eiγs​(x2​+y2​−2a)−ei(γs​(x2​−a)+γp​(y2​−a))​(−τ2γs​−τ3​−τγp​γs​−τ2γp​​); and the half-plane Dirichlet tensor (2.6) GD,a(x,y)=G(x,y)−G(x,y′)+U(x,y)G_{D,a}(x,y)=G(x,y)-G(x,y')+U(x,y)GD,a​(x,y)=G(x,y)−G(x,y′)+U(x,y). 4. Stress operator (2.5) with normal ν\nuν: Pφ=(μ+μ~)∂νφ+λ~ ν div φ−μ~ ν⊥div⊥φP\varphi=(\mu+\tilde\mu)\partial_\nu\varphi+\tilde\lambda\,\nu\,\mathrm{div}\,\varphi-\tilde\mu\,\nu^\perp\mathrm{div}^\perp\varphiPφ=(μ+μ~​)∂ν​φ+λ~νdivφ−μ~​ν⊥div⊥φ, ν⊥=(ν2,−ν1)\nu^\perp=(\nu_2,-\nu_1)ν⊥=(ν2​,−ν1​), div⊥φ=∂2φ1−∂1φ2\mathrm{div}^\perp\varphi=\partial_2\varphi_1-\partial_1\varphi_2div⊥φ=∂2​φ1​−∂1​φ2​; the double-layer kernel of a tensor GGG is Πjk(x,y)=(P(y)Gj⋅(x,y)⊤)k\Pi_{jk}(x,y)=(P^{(y)}G_{j\cdot}(x,y)^\top)_kΠjk​(x,y)=(P(y)Gj⋅​(x,y)⊤)k​. 5. Surface and spaces. f∈Bc,M(n)f\in B^{(n)}_{c,M}f∈Bc,M(n)​ means f∈BCn+2(R)f\in BC^{n+2}(\mathbb R)f∈BCn+2(R), max⁡l≤n+2sup⁡∣f(l)∣≤M\max_{l\le n+2}\sup|f^{(l)}|\le Mmaxl≤n+2​sup∣f(l)∣≤M, inf⁡f≥c\inf f\ge cinff≥c. On Γ={x2=f(x1)}\Gamma=\{x_2=f(x_1)\}Γ={x2​=f(x1​)}: x(s)=(s,f(s))x(s)=(s,f(s))x(s)=(s,f(s)), r=∣x(s)−y(t)∣r=|x(s)-y(t)|r=∣x(s)−y(t)∣, ν(t)=(−f′(t),1)/1+f′(t)2\nu(t)=(-f'(t),1)/\sqrt{1+f'(t)^2}ν(t)=(−f′(t),1)/1+f′(t)2​, l(t)=(−f′(t),1)l(t)=(-f'(t),1)l(t)=(−f′(t),1), l⊥(t)=(1,f′(t))l^\perp(t)=(1,f'(t))l⊥(t)=(1,f′(t)). BCnBC^nBCn (bounded derivatives of order ≤n\le n≤n), C0,πn(R2)C^n_{0,\pi}(\mathbb R^2)C0,πn​(R2) (in BCnBC^nBCn, vanishing for ∣s−t∣≥π|s-t|\ge\pi∣s−t∣≥π), BCpn(R2)BC^n_p(\mathbb R^2)BCpn​(R2) (derivatives of order ≤n\le n≤n bounded by a multiple of (1+∣s−t∣)−p(1+|s-t|)^{-p}(1+∣s−t∣)−p). 6. Problem (DP). Ω={x2>f(x1)}\Omega=\{x_2>f(x_1)\}Ω={x2​>f(x1​)}. u∈[C2(Ω)∩C(Ω‾)∩Hloc1(Ω)]2u\in[C^2(\Omega)\cap C(\overline\Omega)\cap H^1_{\rm loc}(\Omega)]^2u∈[C2(Ω)∩C(Ω)∩Hloc1​(Ω)]2 solves μΔu+(λ+μ)∇∇⋅u+ω2u=0\mu\Delta u+(\lambda+\mu)\nabla\nabla\cdot u+\omega^2u=0μΔu+(λ+μ)∇∇⋅u+ω2u=0 in Ω\OmegaΩ, u=gu=gu=g on Γ\GammaΓ, the UPRC (2.3) (for some H>sup⁡fH>\sup fH>supf and ϕ∈[L∞(ΓH)]2\phi\in[L^\infty(\Gamma_H)]^2ϕ∈[L∞(ΓH​)]2, u(x)=∫ΓHΠD,H(2)(x,y)ϕ(y) ds(y)u(x)=\int_{\Gamma_H}\Pi^{(2)}_{D,H}(x,y)\phi(y)\,ds(y)u(x)=∫ΓH​​ΠD,H(2)​(x,y)ϕ(y)ds(y) for x2>Hx_2>Hx2​>H, built from GD,HG_{D,H}GD,H​ with ν=(0,1)\nu=(0,1)ν=(0,1)), and sup⁡x∈Ω∣x2∣β∣u(x)∣<∞\sup_{x\in\Omega}|x_2|^\beta|u(x)|<\inftysupx∈Ω​∣x2​∣β∣u(x)∣<∞ for some β\betaβ. Data: g∈[BC(Γ)∩Hloc1/2(Γ)]2g\in[BC(\Gamma)\cap H^{1/2}_{\rm loc}(\Gamma)]^2g∈[BC(Γ)∩Hloc1/2​(Γ)]2. 7. Integral equation (2.15). (Dψ)(s)=2∫ΠD,h(2)(x(s),y(t))ψ(t)1+f′(t)2 dt(D\psi)(s)=2\int\Pi^{(2)}_{D,h}(x(s),y(t))\psi(t)\sqrt{1+f'(t)^2}\,dt(Dψ)(s)=2∫ΠD,h(2)​(x(s),y(t))ψ(t)1+f′(t)2​dt, (Sψ)(s)=2∫GD,h(x(s),y(t))ψ(t)1+f′(t)2 dt(S\psi)(s)=2\int G_{D,h}(x(s),y(t))\psi(t)\sqrt{1+f'(t)^2}\,dt(Sψ)(s)=2∫GD,h​(x(s),y(t))ψ(t)1+f′(t)2​dt, and (I+D−iηS)ψ=2g(I+D-i\eta S)\psi=2g(I+D−iηS)ψ=2g. 8. Kernels of Section 3. A(1)=2G1+f′2A^{(1)}=2G\sqrt{1+f'^2}A(1)=2G1+f′2​ (kernel of S1S_1S1​), B(1)B^{(1)}B(1) from (3.8), C(1)=A(1)−B(1)ln⁡∣s−t∣C^{(1)}=A^{(1)}-B^{(1)}\ln|s-t|C(1)=A(1)−B(1)ln∣s−t∣; A(2)=2[P(y)Gj⋅]k1+f′2A^{(2)}=2[P^{(y)}G_{j\cdot}]_k\sqrt{1+f'^2}A(2)=2[P(y)Gj⋅​]k​1+f′2​ (kernel of D1D_1D1​), B(2)B^{(2)}B(2) from (3.16), C(2)=A(2)−B(2)ln⁡∣s−t∣C^{(2)}=A^{(2)}-B^{(2)}\ln|s-t|C(2)=A(2)−B(2)ln∣s−t∣; A(3)A^{(3)}A(3) the kernel of D2−iηS2D_2-i\eta S_2D2​−iηS2​ built from G(x,y′)−U(x,y)G(x,y')-U(x,y)G(x,y′)−U(x,y); AAA the kernel of D−iηSD-i\eta SD−iηS; B∗=−iηB(1)+B(2)B^*=-i\eta B^{(1)}+B^{(2)}B∗=−iηB(1)+B(2), C∗=−iηC(1)+C(2)−A(3)C^*=-i\eta C^{(1)}+C^{(2)}-A^{(3)}C∗=−iηC(1)+C(2)−A(3); the cut-off χ\chiχ; B=πB∗χ(s−t)B=\pi B^*\chi(s-t)B=πB∗χ(s−t) and C=B∗[(1−χ)ln⁡∣s−t∣−χln⁡sin⁡((s−t)/2)(s−t)/2]+C∗C=B^*[(1-\chi)\ln|s-t|-\chi\ln\frac{\sin((s-t)/2)}{(s-t)/2}]+C^*C=B∗[(1−χ)ln∣s−t∣−χln(s−t)/2sin((s−t)/2)​]+C∗, both extended to s=ts=ts=t by their limits. 9. Notation of the proof of Theorem 4.1. ρn(κ,s,t)=Hn(1)(κr)−2iπJn(κr)ln⁡∣s−t∣\rho_n(\kappa,s,t)=H^{(1)}_n(\kappa r)-\frac{2i}\pi J_n(\kappa r)\ln|s-t|ρn​(κ,s,t)=Hn(1)​(κr)−π2i​Jn​(κr)ln∣s−t∣, γ1=(κsρ1(κs)−κpρ1(κp))/r\gamma_1=(\kappa_s\rho_1(\kappa_s)-\kappa_p\rho_1(\kappa_p))/rγ1​=(κs​ρ1​(κs​)−κp​ρ1​(κp​))/r, γ2=κs2ρ2(κs)−κp2ρ2(κp)\gamma_2=\kappa_s^2\rho_2(\kappa_s)-\kappa_p^2\rho_2(\kappa_p)γ2​=κs2​ρ2​(κs​)−κp2​ρ2​(κp​), γ3=r[κs3ρ3(κs)−κp3ρ3(κp)]\gamma_3=r[\kappa_s^3\rho_3(\kappa_s)-\kappa_p^3\rho_3(\kappa_p)]γ3​=r[κs3​ρ3​(κs​)−κp3​ρ3​(κp​)], ξ=((s−t)f′(t)+f(t)−f(s))/r2\xi=((s-t)f'(t)+f(t)-f(s))/r^2ξ=((s−t)f′(t)+f(t)−f(s))/r2, ζjk=(xj−yj)(xk−yk)/r2\zeta_{jk}=(x_j-y_j)(x_k-y_k)/r^2ζjk​=(xj​−yj​)(xk​−yk​)/r2, and σjk\sigma_{jk}σjk​ as defined there. 10. Nyström scheme (4.2). Knots tj=−cut+jπ/Nt_j=-\mathrm{cut}+j\pi/Ntj​=−cut+jπ/N, j∈Zj\in\mathbb Zj∈Z; weights Rj(N)(s)=−1N[∑m=1N−11mcos⁡m(s−tj)+12Ncos⁡N(s−tj)]R^{(N)}_j(s)=-\frac1N[\sum_{m=1}^{N-1}\frac1m\cos m(s-t_j)+\frac1{2N}\cos N(s-t_j)]Rj(N)​(s)=−N1​[∑m=1N−1​m1​cosm(s−tj​)+2N1​cosN(s−tj​)]; the equation ψN(s)+∑j∈Z[Rj(N)(s)B(s,tj)+πNC(s,tj)]ψN(tj)=2g(s)\psi_N(s)+\sum_{j\in\mathbb Z}[R^{(N)}_j(s)B(s,t_j)+\frac\pi NC(s,t_j)]\psi_N(t_j)=2g(s)ψN​(s)+∑j∈Z​[Rj(N)​(s)B(s,tj​)+Nπ​C(s,tj​)]ψN​(tj​)=2g(s) for all sss.

Formalization Note Points are Fin 2 → ℝ, and the paper's indices 1,21,21,2 are Lean's 0,10,10,1. JnJ_nJn​ and YnY_nYn​ are defined by the series that the paper cites. The branch of γp,s\gamma_{p,s}γp,s​ is not stated in the paper; the one with nonnegative imaginary part is used, because it makes the integrand of UUU decay. In the printed MpM_pMp​ and MsM_sMs​, a misplaced brace puts the second exponential inside the exponent of the first; it is read as a difference of two exponentials. With these two readings, a numerical check gives GD,a=0G_{D,a}=0GD,a​=0 on x2=ax_2=ax2​=a. The paper defines the diagonal values B(s,s)B(s,s)B(s,s) and C(s,s)C(s,s)C(s,s) through (3.14), (3.15), (3.18) and (3.19). Here they are the limits as t→st\to st→s, because (3.15) and (3.19) are not those limits (see the report). Hloc1/2(Γ)H^{1/2}_{\rm loc}(\Gamma)Hloc1/2​(Γ) is expressed in the parameter sss through the Gagliardo seminorm on bounded intervals. Hloc1(Ω)H^1_{\rm loc}(\Omega)Hloc1​(Ω) follows the paper's definition: H1H^1H1 on open sets whose closures are compact subsets of Ω\OmegaΩ. Integrals and series in (2.13)–(2.15), (2.3) and (4.2) are required to converge absolutely.

Definition code
import Mathlib

/-!
J. Li, X. Liu, B. Zhang and H. Zhang, *The Nyström method for elastic wave scattering by
unbounded rough surfaces*, arXiv:2108.02600v1 (2021): Bessel and Hankel functions, the free-space
and half-plane Dirichlet Green's tensors, the generalized stress operator, the Dirichlet problem
(DP) and the boundary integral equation (2.15) of Section 2, the kernel splittings of Section 3,
the notation of the proof of Theorem 4.1 and the Nyström scheme (4.2) of Section 4.

Points of `ℝ²` are `Fin 2 → ℝ`; the paper's indices `1, 2` are Lean's `0, 1`.
-/

open MeasureTheory Filter Topology

noncomputable section

namespace Arxiv2108_02600

/-- Section 2: points `x = (x₁, x₂)` of `ℝ²`, written `x 0`, `x 1`. -/
abbrev Pt := Fin 2 → ℝ

/-- Section 2, after (2.1): Lamé constants `λ, μ` with `μ > 0`, `λ + 2μ > 0`, and angular
frequency `ω > 0`. -/
structure Lame where
  /-- `λ` -/
  lam : ℝ
  /-- `μ` -/
  mu : ℝ
  /-- `ω` -/
  omega : ℝ
  mu_pos : 0 < mu
  lam_two_mu_pos : 0 < lam + 2 * mu
  omega_pos : 0 < omega

namespace Lame

variable (P : Lame)

/-- Section 2, after (2.7): `c_s = μ^{-1/2}`. -/
def cs : ℝ := 1 / Real.sqrt P.mu

/-- Section 2, after (2.7): `c_p = (λ + 2μ)^{-1/2}`. -/
def cp : ℝ := 1 / Real.sqrt (P.lam + 2 * P.mu)

/-- Section 2, after (2.7): shear wavenumber `κ_s = c_s ω`. -/
def ks : ℝ := P.cs * P.omega

/-- Section 2, after (2.7): compressional wavenumber `κ_p = c_p ω`. -/
def kp : ℝ := P.cp * P.omega

/-- Eq. (2.10): `μ̃ = μ(λ+μ)/(λ+3μ)`, fixed throughout the paper. -/
def muT : ℝ := P.mu * (P.lam + P.mu) / (P.lam + 3 * P.mu)

/-- Eq. (2.10): `λ̃ = (λ+μ)(λ+2μ)/(λ+3μ)`, fixed throughout the paper. -/
def lamT : ℝ := (P.lam + P.mu) * (P.lam + 2 * P.mu) / (P.lam + 3 * P.mu)

end Lame

/-! ### Bessel and Hankel functions (Section 2, with [CK19, (3.97)–(3.98)] cited in Section 3) -/

/-- Section 2: the Bessel function `J_n` of integer order `n`, by its ascending series
[CK19, (3.97)]: `J_n(z) = ∑_{p≥0} (-1)^p / (p!(n+p)!) (z/2)^{n+2p}`. -/
def besselJ (n : ℕ) (z : ℝ) : ℝ :=
  ∑' p : ℕ, (-1 : ℝ) ^ p / ((p.factorial : ℝ) * ((n + p).factorial : ℝ)) * (z / 2) ^ (n + 2 * p)

/-- Proof of Theorem 4.1 (after (4.9)): `φ(0) = 0`, `φ(p) = ∑_{m=1}^p 1/m`. -/
def phiH (p : ℕ) : ℝ := (harmonic p : ℝ)

/-- Section 2: the Neumann function `Y_n` of integer order `n` at `z > 0`, by its ascending series
[CK19, (3.98)]: `Y_n(z) = (2/π)(ln(z/2) + C_E) J_n(z) - (1/π) ∑_{p=0}^{n-1} (n-1-p)!/p! (2/z)^{n-2p}
- (1/π) ∑_{p≥0} (-1)^p/(p!(n+p)!) (z/2)^{n+2p} (φ(p) + φ(n+p))`. -/
def besselY (n : ℕ) (z : ℝ) : ℝ :=
  2 / Real.pi * (Real.log (z / 2) + Real.eulerMascheroniConstant) * besselJ n z
  - 1 / Real.pi * ∑ p ∈ Finset.range n,
      ((n - 1 - p).factorial : ℝ) / (p.factorial : ℝ) * (2 / z) ^ ((n : ℤ) - 2 * (p : ℤ))
  - 1 / Real.pi * ∑' p : ℕ, (-1 : ℝ) ^ p / ((p.factorial : ℝ) * ((n + p).factorial : ℝ)) *
      (z / 2) ^ (n + 2 * p) * (phiH p + phiH (n + p))

/-- Section 2: the Hankel function of the first kind `H_n^{(1)} = J_n + i Y_n`. -/
def hankel1 (n : ℕ) (z : ℝ) : ℂ := (besselJ n z : ℂ) + Complex.I * (besselY n z : ℂ)

/-! ### Green's tensors and the stress operator (Section 2) -/

/-- Section 2: the Euclidean distance `|x - y|` in `ℝ²`. -/
def dist2 (x y : Pt) : ℝ := Real.sqrt ((x 0 - y 0) ^ 2 + (x 1 - y 1) ^ 2)

/-- Section 2, after (2.7): the fundamental solution of the Helmholtz equation,
`Φ(x, y, κ) = (i/4) H_0^{(1)}(κ|x - y|)`. -/
def helmholtzFS (k : ℝ) (x y : Pt) : ℂ := Complex.I / 4 * hankel1 0 (k * dist2 x y)

/-- The partial derivative `∂F/∂x_j` of `F : ℝ² → ℂ` at `x`. -/
def pd (j : Fin 2) (F : Pt → ℂ) (x : Pt) : ℂ := fderiv ℝ F x (Pi.single j 1)

/-- Eq. (2.7): the free-space Green's tensor of the Navier equation,
`G(x,y) = (1/μ) Φ(x,y,κ_s) I + ω^{-2} ∇_x ∇_xᵀ (Φ(x,y,κ_s) - Φ(x,y,κ_p))`, `x ≠ y`. -/
def greenFree (P : Lame) (x y : Pt) : Matrix (Fin 2) (Fin 2) ℂ := fun j k =>
  (if j = k then helmholtzFS P.ks x y / (P.mu : ℂ) else 0) +
    1 / (P.omega : ℂ) ^ 2 * pd j (pd k (fun z => helmholtzFS P.ks z y - helmholtzFS P.kp z y)) x

/-- Section 2: the reflection `y' = (y₁, 2a - y₂)` in the line `x₂ = a`. -/
def reflect (a : ℝ) (y : Pt) : Pt := ![y 0, 2 * a - y 1]

/-- The square root `√u` of a real number taken with nonnegative imaginary part
(`i√(-u)` for `u < 0`), the branch for `γ_p, γ_s` in the definition of `U` (Section 2). -/
def sqrtBranch (u : ℝ) : ℂ :=
  if 0 ≤ u then (Real.sqrt u : ℂ) else Complex.I * (Real.sqrt (-u) : ℂ)

/-- Section 2, after (2.7): the matrix function
`U(x,y) = -(i/(2πω²)) ∫_ℝ [M_p + M_s](τ, γ_p, γ_s; x₂, y₂) e^{-i(x₁-y₁)τ} dτ` for the line
`x₂ = a`, with `γ_p = √(κ_p² - τ²)`, `γ_s = √(κ_s² - τ²)`,
`M_p = (e^{iγ_p(x₂+y₂-2a)} - e^{i(γ_p(x₂-a)+γ_s(y₂-a))}) / (γ_pγ_s + τ²) [[-τ²γ_s, τ³], [τγ_pγ_s, -τ²γ_p]]`,
`M_s = (e^{iγ_s(x₂+y₂-2a)} - e^{i(γ_s(x₂-a)+γ_p(y₂-a))}) / (γ_pγ_s + τ²) [[-τ²γ_s, -τγ_pγ_s], [-τ³, -τ²γ_p]]`. -/
def greenU (P : Lame) (a : ℝ) (x y : Pt) : Matrix (Fin 2) (Fin 2) ℂ := fun j k =>
  -(Complex.I / (2 * (Real.pi : ℂ) * (P.omega : ℂ) ^ 2)) * ∫ τ : ℝ,
    (let gp := sqrtBranch (P.kp ^ 2 - τ ^ 2)
     let gs := sqrtBranch (P.ks ^ 2 - τ ^ 2)
     let tc : ℂ := (τ : ℂ)
     let den := gp * gs + tc ^ 2
     let ep := Complex.exp (Complex.I * gp * ((x 1 + y 1 - 2 * a : ℝ) : ℂ)) -
       Complex.exp (Complex.I * (gp * ((x 1 - a : ℝ) : ℂ) + gs * ((y 1 - a : ℝ) : ℂ)))
     let es := Complex.exp (Complex.I * gs * ((x 1 + y 1 - 2 * a : ℝ) : ℂ)) -
       Complex.exp (Complex.I * (gs * ((x 1 - a : ℝ) : ℂ) + gp * ((y 1 - a : ℝ) : ℂ)))
     (ep / den * (!![-tc ^ 2 * gs, tc ^ 3; tc * gp * gs, -tc ^ 2 * gp] : Matrix (Fin 2) (Fin 2) ℂ) j k +
      es / den * (!![-tc ^ 2 * gs, -tc * gp * gs; -tc ^ 3, -tc ^ 2 * gp] : Matrix (Fin 2) (Fin 2) ℂ) j k) *
       Complex.exp (-Complex.I * ((x 0 - y 0 : ℝ) : ℂ) * tc))

/-- Eq. (2.6): the Green's tensor of the Navier equation in the half-plane `{x₂ > a}` with
Dirichlet condition on `{x₂ = a}`: `G_{D,a}(x,y) = G(x,y) - G(x,y') + U(x,y)`. -/
def greenDH (P : Lame) (a : ℝ) (x y : Pt) : Matrix (Fin 2) (Fin 2) ℂ :=
  greenFree P x y - greenFree P x (reflect a y) + greenU P a x y

/-- Eq. (2.5): the generalized stress vector `Pφ = (μ+μ̃) ∂φ/∂ν + λ̃ ν div φ - μ̃ ν^⊥ div^⊥ φ`
of a vector field `φ` at `y`, with normal `ν`, `ν^⊥ = (ν₂, -ν₁)`, `div^⊥ φ = ∂₂φ₁ - ∂₁φ₂`, and
`μ̃, λ̃` from (2.10). -/
def stressOp (P : Lame) (nu : Fin 2 → ℝ) (phi : Pt → Fin 2 → ℂ) (y : Pt) : Fin 2 → ℂ := fun m =>
  ((P.mu + P.muT : ℝ) : ℂ) * ∑ q : Fin 2, pd q (fun z => phi z m) y * (nu q : ℂ)
    + (P.lamT : ℂ) * (nu m : ℂ) * (pd 0 (fun z => phi z 0) y + pd 1 (fun z => phi z 1) y)
    - (P.muT : ℂ) * ((![nu 1, -nu 0] : Fin 2 → ℝ) m : ℂ) *
      (pd 1 (fun z => phi z 0) y - pd 0 (fun z => phi z 1) y)

/-- Eqs. (2.4), (3.4): the double-layer kernel `Π_{jk}(x,y) = (P^{(y)} (G_{j·}(x,y))ᵀ)_k`
of a Green's tensor `G`, the stress operator acting in `y` with normal `ν`. -/
def piKernel (P : Lame) (G : Pt → Pt → Matrix (Fin 2) (Fin 2) ℂ) (nu : Fin 2 → ℝ) (x y : Pt) :
    Matrix (Fin 2) (Fin 2) ℂ :=
  fun j k => stressOp P nu (fun z m => G x z j m) y k

/-! ### The rough surface and function spaces (Section 2) -/

/-- Section 2: `BC^n(ℝ^m)`-type class: `u` is `C^n` and its derivatives of order `≤ n` are
bounded. -/
def IsBCn {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F]
    [NormedSpace ℝ F] (n : ℕ) (u : E → F) : Prop :=
  ContDiff ℝ n u ∧ ∀ m ≤ n, ∃ K : ℝ, ∀ x, ‖iteratedFDeriv ℝ m u x‖ ≤ K

/-- Section 2: `BC(ℝ)`: bounded continuous functions. -/
def IsBC {F : Type*} [NormedAddCommGroup F] (u : ℝ → F) : Prop :=
  Continuous u ∧ ∃ K : ℝ, ∀ x, ‖u x‖ ≤ K

/-- Section 2: the norm of `BC^n(ℝ)`, the largest sup-norm of a derivative of order `≤ n`. -/
def bcnNorm {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] (n : ℕ) (u : ℝ → F) : ℝ :=
  sSup {a : ℝ | ∃ m ≤ n, ∃ x : ℝ, a = ‖iteratedFDeriv ℝ m u x‖}

/-- Section 2: `C^n_{0,π}(ℝ²) = {a ∈ BC^n(ℝ²) : a(s,t) = 0 for |s - t| ≥ π}`. -/
def IsC0pi (n : ℕ) (a : ℝ × ℝ → ℂ) : Prop :=
  IsBCn n a ∧ ∀ s t : ℝ, Real.pi ≤ |s - t| → a (s, t) = 0

/-- Section 2: `BC^n_p(ℝ²)`: `a ∈ BC^n(ℝ²)` whose derivatives of order `≤ n` are bounded by a
multiple of `(1 + |s - t|)^{-p}`. -/
def IsBCnp (n : ℕ) (p : ℝ) (a : ℝ × ℝ → ℂ) : Prop :=
  IsBCn n a ∧ ∃ K : ℝ, ∀ m ≤ n, ∀ x : ℝ × ℝ, (1 + |x.1 - x.2|) ^ p * ‖iteratedFDeriv ℝ m a x‖ ≤ K

/-- Section 2: `f ∈ B^{(n)}_{c,M}`: `f ∈ BC^{n+2}(ℝ)` with `‖f‖_{BC^{n+2}} ≤ M` and
`inf f ≥ c`. -/
def InB (n : ℕ) (c M : ℝ) (f : ℝ → ℝ) : Prop :=
  ContDiff ℝ (n + 2 : ℕ) f ∧ (∀ l ≤ n + 2, ∀ x, |iteratedDeriv l f x| ≤ M) ∧ ∀ x, c ≤ f x

/-- Section 2: the point `x(s) = (s, f(s))` of the surface `Γ = {x₂ = f(x₁)}`. -/
def surfPt (f : ℝ → ℝ) (s : ℝ) : Pt := ![s, f s]

/-- Section 2: the arclength factor `√(1 + f'(t)²)`. -/
def jac (f : ℝ → ℝ) (t : ℝ) : ℝ := Real.sqrt (1 + deriv f t ^ 2)

/-- Section 3.1: the upward unit normal `ν(t) = (-f'(t), 1)/√(1 + f'(t)²)` at `y(t)`. -/
def normal (f : ℝ → ℝ) (t : ℝ) : Fin 2 → ℝ := ![-deriv f t / jac f t, 1 / jac f t]

/-- Section 3.1: `l(t) = √(1 + f'(t)²) ν(t) = (-f'(t), 1)`. -/
def lvec (f : ℝ → ℝ) (t : ℝ) : Fin 2 → ℝ := ![-deriv f t, 1]

/-- Section 3.1: `l^⊥(t) = √(1 + f'(t)²) ν^⊥(t) = (1, f'(t))`. -/
def lperp (f : ℝ → ℝ) (t : ℝ) : Fin 2 → ℝ := ![1, deriv f t]

/-- Section 3.1: `r(s,t) = |x(s) - y(t)| = √((s-t)² + (f(s)-f(t))²)`. -/
def rdist (f : ℝ → ℝ) (s t : ℝ) : ℝ := dist2 (surfPt f s) (surfPt f t)

/-- Section 3.1: the components `x_j(s) - y_j(t)` of `x(s) - y(t)`. -/
def dvec (f : ℝ → ℝ) (s t : ℝ) (j : Fin 2) : ℝ := surfPt f s j - surfPt f t j

/-! ### The Dirichlet problem (DP) (Section 2) -/

/-- Section 2: the domain `Ω = {x : x₂ > f(x₁)}` above the surface. -/
def domainAbove (f : ℝ → ℝ) : Set Pt := {x | f (x 0) < x 1}

/-- Eq. (2.1): the Navier operator `μΔu + (λ+μ)∇∇·u + ω²u`. -/
def navierOp (P : Lame) (u : Pt → Fin 2 → ℂ) (x : Pt) : Fin 2 → ℂ := fun m =>
  (P.mu : ℂ) * (pd 0 (pd 0 (fun z => u z m)) x + pd 1 (pd 1 (fun z => u z m)) x)
    + ((P.lam + P.mu : ℝ) : ℂ) * pd m (fun z => pd 0 (fun w => u w 0) z + pd 1 (fun w => u w 1) z) x
    + (P.omega : ℂ) ^ 2 * u x m

/-- Section 2: `u ∈ H¹(V)`: `u ∈ L²(V)` with weak first derivatives in `L²(V)`. -/
def IsH1On (V : Set Pt) (u : Pt → ℂ) : Prop :=
  MemLp u 2 (volume.restrict V) ∧ ∃ v : Fin 2 → Pt → ℂ, (∀ i, MemLp (v i) 2 (volume.restrict V)) ∧
    ∀ φ : Pt → ℝ, ContDiff ℝ (⊤ : ℕ∞) φ → HasCompactSupport φ → tsupport φ ⊆ V → ∀ i : Fin 2,
      ∫ x in V, u x * (fderiv ℝ φ x (Pi.single i 1) : ℂ) = -∫ x in V, v i x * (φ x : ℂ)

/-- Section 2: `u ∈ H¹_loc(Ω)`: `u ∈ H¹(V)` for every open `V` whose closure is a compact subset
of `Ω`. -/
def IsH1Loc (Ω : Set Pt) (u : Pt → ℂ) : Prop :=
  ∀ V : Set Pt, IsOpen V → IsCompact (closure V) → closure V ⊆ Ω → IsH1On V u

/-- Section 2: `H^{1/2}_loc(Γ)` in the parameter `s` of `x(s) = (s, f(s))`: on every bounded
interval `[a,b]`, `u ∈ L²` and the Gagliardo seminorm `∫∫ |u(s)-u(t)|²/|s-t|² ds dt` is finite. -/
def IsHalfLoc (u : ℝ → ℂ) : Prop :=
  ∀ a b : ℝ, AEStronglyMeasurable u (volume.restrict (Set.Icc a b)) ∧
    (∫⁻ s in Set.Icc a b, ‖u s‖ₑ ^ 2) < ⊤ ∧
    (∫⁻ p in Set.Icc a b ×ˢ Set.Icc a b, ‖u p.1 - u p.2‖ₑ ^ 2 / ‖p.1 - p.2‖ₑ ^ 2) < ⊤

/-- Section 2, (DP): the boundary data `g ∈ [BC(Γ) ∩ H^{1/2}_loc(Γ)]²`. -/
def IsDPData (f : ℝ → ℝ) (g : Pt → Fin 2 → ℂ) : Prop :=
  ContinuousOn g {x | x 1 = f (x 0)} ∧ (∃ K : ℝ, ∀ s, ‖g (surfPt f s)‖ ≤ K) ∧
    ∀ m : Fin 2, IsHalfLoc (fun s => g (surfPt f s) m)

/-- Eqs. (2.3)–(2.4): the upward propagating radiation condition: for some `H > sup f` and some
`φ ∈ [L^∞(Γ_H)]²`, `u(x) = ∫_{Γ_H} Π^{(2)}_{D,H}(x,y) φ(y) ds(y)` for `x₂ > H`, where `Π^{(2)}_{D,H}`
is built from `G_{D,H}` with the normal `ν = (0,1)` of `Γ_H` pointing into `U_H`. -/
def SatisfiesUPRC (P : Lame) (f : ℝ → ℝ) (u : Pt → Fin 2 → ℂ) : Prop :=
  ∃ H : ℝ, BddAbove (Set.range f) ∧ sSup (Set.range f) < H ∧
    ∃ φ : ℝ → Fin 2 → ℂ, MemLp φ ⊤ volume ∧ ∀ x : Pt, H < x 1 → ∀ j : Fin 2,
      Integrable (fun y1 : ℝ => ∑ k, piKernel P (greenDH P H) ![0, 1] x ![y1, H] j k * φ y1 k) ∧
      u x j = ∫ y1 : ℝ, ∑ k, piKernel P (greenDH P H) ![0, 1] x ![y1, H] j k * φ y1 k

/-- Eq. (2.8): the vertical growth rate condition `sup_{x ∈ Ω} |x₂|^β |u(x)| < ∞` for some
`β ∈ ℝ` (supremum in `[0, ∞]`). -/
def SatisfiesGrowth (f : ℝ → ℝ) (u : Pt → Fin 2 → ℂ) : Prop :=
  ∃ β : ℝ, (⨆ x ∈ domainAbove f, ENNReal.ofReal |x 1| ^ β * ‖u x‖ₑ) < ⊤

/-- Section 2, (DP): `u ∈ [C²(Ω) ∩ C(Ω̄) ∩ H¹_loc(Ω)]²` solves the Navier equation (2.1) in `Ω`,
equals `g` on `Γ`, and satisfies the UPRC (2.3) and the growth condition (2.8). -/
def IsDPSolution (P : Lame) (f : ℝ → ℝ) (g u : Pt → Fin 2 → ℂ) : Prop :=
  ContDiffOn ℝ 2 u (domainAbove f) ∧ ContinuousOn u (closure (domainAbove f)) ∧
    (∀ m : Fin 2, IsH1Loc (domainAbove f) (fun x => u x m)) ∧
    (∀ x ∈ domainAbove f, navierOp P u x = 0) ∧
    (∀ s : ℝ, u (surfPt f s) = g (surfPt f s)) ∧ SatisfiesUPRC P f u ∧ SatisfiesGrowth f u

/-- Section 5, eq. (5.2): the compressional plane wave `u_p^{inc}(x;θ) = θ e^{iκ_p x·θ}`. -/
def planeWaveP (P : Lame) (θ : Fin 2 → ℝ) (x : Pt) : Fin 2 → ℂ := fun m =>
  (θ m : ℂ) * Complex.exp (Complex.I * (P.kp : ℂ) * ((x 0 * θ 0 + x 1 * θ 1 : ℝ) : ℂ))

/-- Section 5, eq. (5.2): the shear plane wave `u_s^{inc}(x;θ) = θ^⊥ e^{iκ_s x·θ}`,
`θ^⊥ = (θ₂, -θ₁)`. -/
def planeWaveS (P : Lame) (θ : Fin 2 → ℝ) (x : Pt) : Fin 2 → ℂ := fun m =>
  ((![θ 1, -θ 0] : Fin 2 → ℝ) m : ℂ) *
    Complex.exp (Complex.I * (P.ks : ℂ) * ((x 0 * θ 0 + x 1 * θ 1 : ℝ) : ℂ))

/-! ### The boundary integral equation (Section 2) -/

/-- Eq. (2.13): `(Dψ)(s) = 2 ∫ Π^{(2)}_{D,h}(x(s), y(t)) ψ(t) √(1 + f'(t)²) dt`. -/
def opD (P : Lame) (h : ℝ) (f : ℝ → ℝ) (psi : ℝ → Fin 2 → ℂ) (s : ℝ) : Fin 2 → ℂ := fun j =>
  2 * ∫ t : ℝ, (∑ k, piKernel P (greenDH P h) (normal f t) (surfPt f s) (surfPt f t) j k * psi t k) *
    (jac f t : ℂ)

/-- Eq. (2.14): `(Sψ)(s) = 2 ∫ G_{D,h}(x(s), y(t)) ψ(t) √(1 + f'(t)²) dt`. -/
def opS (P : Lame) (h : ℝ) (f : ℝ → ℝ) (psi : ℝ → Fin 2 → ℂ) (s : ℝ) : Fin 2 → ℂ := fun j =>
  2 * ∫ t : ℝ, (∑ k, greenDH P h (surfPt f s) (surfPt f t) j k * psi t k) * (jac f t : ℂ)

/-- Eq. (2.15): `ψ` solves `(I + D - iηS) ψ = 2g`, the integrals in (2.13)–(2.14) being absolutely
convergent. -/
def SolvesBIE (P : Lame) (η : ℂ) (h : ℝ) (f : ℝ → ℝ) (g psi : ℝ → Fin 2 → ℂ) : Prop :=
  ∀ s : ℝ, (∀ j : Fin 2,
      Integrable (fun t => (∑ k, piKernel P (greenDH P h) (normal f t) (surfPt f s) (surfPt f t) j k *
        psi t k) * (jac f t : ℂ)) ∧
      Integrable (fun t => (∑ k, greenDH P h (surfPt f s) (surfPt f t) j k * psi t k) * (jac f t : ℂ))) ∧
    psi s + opD P h f psi s - (Complex.I * η) • opS P h f psi s = (2 : ℂ) • g s

/-! ### Kernels of Section 3 -/

/-- Section 3.1: the kernel of `S₁`, `A^{(1)}_{jk}(s,t) = 2 G_{jk}(x(s), y(t)) √(1 + f'(t)²)`. -/
def kerA1 (P : Lame) (f : ℝ → ℝ) (s t : ℝ) : Matrix (Fin 2) (Fin 2) ℂ := fun j k =>
  2 * greenFree P (surfPt f s) (surfPt f t) j k * (jac f t : ℂ)

/-- Eq. (3.8): `B^{(1)}_{jk} = (1/π){[-(1/μ)J₀(κ_s r) + ω^{-2}(κ_s J₁(κ_s r) - κ_p J₁(κ_p r))/r] δ_{jk}
- ω^{-2} (κ_s² J₂(κ_s r) - κ_p² J₂(κ_p r))/r² (x_j - y_j)(x_k - y_k)} √(1 + f'(t)²)`. -/
def kerB1 (P : Lame) (f : ℝ → ℝ) (s t : ℝ) : Matrix (Fin 2) (Fin 2) ℂ := fun j k =>
  let r := rdist f s t
  (((1 / Real.pi) * ((if j = k then
      -(1 / P.mu) * besselJ 0 (P.ks * r) +
        1 / P.omega ^ 2 * (P.ks * besselJ 1 (P.ks * r) - P.kp * besselJ 1 (P.kp * r)) / r
      else 0) -
    1 / P.omega ^ 2 * (P.ks ^ 2 * besselJ 2 (P.ks * r) - P.kp ^ 2 * besselJ 2 (P.kp * r)) / r ^ 2 *
      (dvec f s t j * dvec f s t k)) * jac f t : ℝ) : ℂ)

/-- Eq. (3.9): `C^{(1)} = A^{(1)} - B^{(1)} ln|s - t|`. -/
def kerC1 (P : Lame) (f : ℝ → ℝ) (s t : ℝ) : Matrix (Fin 2) (Fin 2) ℂ := fun j k =>
  kerA1 P f s t j k - kerB1 P f s t j k * (Real.log |s - t| : ℂ)

/-- Section 3.2: the kernel of `D₁`, `A^{(2)}_{jk}(s,t) = 2 [P^{(y)} (G_{j·}(x,y))ᵀ]_k √(1 + f'(t)²)`
at `x = x(s)`, `y = y(t)`, with the normal `ν(t)`. -/
def kerA2 (P : Lame) (f : ℝ → ℝ) (s t : ℝ) : Matrix (Fin 2) (Fin 2) ℂ := fun j k =>
  2 * piKernel P (greenFree P) (normal f t) (surfPt f s) (surfPt f t) j k * (jac f t : ℂ)

/-- Eq. (3.16): the coefficient `B^{(2)}` of `ln|s - t|` in `A^{(2)}`. -/
def kerB2 (P : Lame) (f : ℝ → ℝ) (s t : ℝ) : Matrix (Fin 2) (Fin 2) ℂ := fun j k =>
  let r := rdist f s t
  let j1 := P.ks * besselJ 1 (P.ks * r) / r
  let j2 := P.ks ^ 2 * besselJ 2 (P.ks * r) - P.kp ^ 2 * besselJ 2 (P.kp * r)
  let j3 := P.ks ^ 3 * besselJ 3 (P.ks * r) - P.kp ^ 3 * besselJ 3 (P.kp * r)
  let xn := (s - t) * deriv f t + f t - f s
  let d := dvec f s t
  ((((P.mu + P.muT) * (((if j = k then 1 else 0) * (1 / (Real.pi * P.mu) * j1 -
        1 / (Real.pi * P.omega ^ 2) * j2 / r ^ 2)) +
      1 / (Real.pi * P.omega ^ 2) * j3 / r ^ 3 * (d j * d k)) * xn)
    + (P.mu + P.muT) * (1 / (Real.pi * P.omega ^ 2)) * j2 / r ^ 2 * (d j * lvec f t k + d k * lvec f t j)
    + P.lamT * (-(1 / (Real.pi * P.mu)) * j1 + 4 / (Real.pi * P.omega ^ 2) * j2 / r ^ 2 -
        1 / (Real.pi * P.omega ^ 2) * j3 / r) * (d j * lvec f t k)
    + P.muT * (1 / (Real.pi * P.mu)) * j1 *
        ((f s - f t) * (if j = 0 then 1 else 0) - (s - t) * (if j = 1 then 1 else 0)) * lperp f t k
    : ℝ) : ℂ)

/-- Eq. (3.17): `C^{(2)} = A^{(2)} - B^{(2)} ln|s - t|`. -/
def kerC2 (P : Lame) (f : ℝ → ℝ) (s t : ℝ) : Matrix (Fin 2) (Fin 2) ℂ := fun j k =>
  kerA2 P f s t j k - kerB2 P f s t j k * (Real.log |s - t| : ℂ)

/-- Eqs. (3.5)–(3.6): the tensor `G(x, y') - U(x, y)` entering `D₂` and `S₂` (level `a`). -/
def greenRefl (P : Lame) (a : ℝ) (x y : Pt) : Matrix (Fin 2) (Fin 2) ℂ :=
  greenFree P x (reflect a y) - greenU P a x y

/-- Section 3.3: the kernel `A^{(3)}` of `D₂ - iηS₂` (eqs. (3.3), (3.5), (3.6)):
`2 {[P^{(y)} (G_{j·}(x,y') - U_{j·}(x,y))ᵀ]_k - iη (G_{jk}(x,y') - U_{jk}(x,y))} √(1 + f'(t)²)`. -/
def kerA3 (P : Lame) (η : ℂ) (h : ℝ) (f : ℝ → ℝ) (s t : ℝ) : Matrix (Fin 2) (Fin 2) ℂ := fun j k =>
  2 * (piKernel P (greenRefl P h) (normal f t) (surfPt f s) (surfPt f t) j k -
    Complex.I * η * greenRefl P h (surfPt f s) (surfPt f t) j k) * (jac f t : ℂ)

/-- Eqs. (2.13)–(2.14), (3.21): the kernel `A(s,t)` of `D - iηS`,
`2 [Π^{(2)}_{D,h}(x(s),y(t)) - iη G_{D,h}(x(s),y(t))] √(1 + f'(t)²)`. -/
def kerA (P : Lame) (η : ℂ) (h : ℝ) (f : ℝ → ℝ) (s t : ℝ) : Matrix (Fin 2) (Fin 2) ℂ := fun j k =>
  2 * (piKernel P (greenDH P h) (normal f t) (surfPt f s) (surfPt f t) j k -
    Complex.I * η * greenDH P h (surfPt f s) (surfPt f t) j k) * (jac f t : ℂ)

/-- Eq. (3.22): `B^* = -iη B^{(1)} + B^{(2)}`. -/
def kerBstar (P : Lame) (η : ℂ) (f : ℝ → ℝ) (s t : ℝ) : Matrix (Fin 2) (Fin 2) ℂ :=
  (-(Complex.I * η)) • kerB1 P f s t + kerB2 P f s t

/-- Eq. (3.23): `C^* = -iη C^{(1)} + C^{(2)} - A^{(3)}`. -/
def kerCstar (P : Lame) (η : ℂ) (h : ℝ) (f : ℝ → ℝ) (s t : ℝ) : Matrix (Fin 2) (Fin 2) ℂ :=
  (-(Complex.I * η)) • kerC1 P f s t + kerC2 P f s t - kerA3 P η h f s t

/-- Section 3, after (3.25): the cut-off `χ(s) = 1` for `|s| ≤ 1`,
`χ(s) = [1 + exp(1/(π - |s|) + 1/(1 - |s|))]^{-1}` for `1 < |s| < π`, `χ(s) = 0` for `|s| ≥ π`. -/
def cutoff (s : ℝ) : ℝ :=
  if |s| ≤ 1 then 1
  else if |s| < Real.pi then (1 + Real.exp (1 / (Real.pi - |s|) + 1 / (1 - |s|)))⁻¹
  else 0

/-- The value at `(s,t)` of a kernel defined off the diagonal, extended to `t = s` by its limit
as `t → s` (the diagonal values of Section 3 are these limits). -/
def diagLim (F : ℝ → ℝ → Matrix (Fin 2) (Fin 2) ℂ) (s t : ℝ) : Matrix (Fin 2) (Fin 2) ℂ :=
  if t = s then limUnder (𝓝[≠] s) (F s) else F s t

/-- Eq. (3.24): `B(s,t) = π B^*(s,t) χ(s - t)`, extended to `s = t` by continuity
(the diagonal value of Section 3, end). -/
def kerB (P : Lame) (η : ℂ) (f : ℝ → ℝ) : ℝ → ℝ → Matrix (Fin 2) (Fin 2) ℂ :=
  diagLim (fun s t => ((Real.pi * cutoff (s - t) : ℝ) : ℂ) • kerBstar P η f s t)

/-- Eq. (3.25): `C(s,t) = B^*(s,t)[(1 - χ(s-t)) ln|s-t| - χ(s-t) ln(sin((s-t)/2)/((s-t)/2))]
+ C^*(s,t)`, extended to `s = t` by continuity (the diagonal value of Section 3, end). -/
def kerC (P : Lame) (η : ℂ) (h : ℝ) (f : ℝ → ℝ) : ℝ → ℝ → Matrix (Fin 2) (Fin 2) ℂ :=
  diagLim (fun s t =>
    (((1 - cutoff (s - t)) * Real.log |s - t| -
        cutoff (s - t) * Real.log (Real.sin ((s - t) / 2) / ((s - t) / 2)) : ℝ) : ℂ) •
      kerBstar P η f s t + kerCstar P η h f s t)

/-! ### Notation of the proof of Theorem 4.1 (Section 4, p. 15) -/

/-- Proof of Theorem 4.1: `ρ_n(κ,s,t) = H_n^{(1)}(κr) - (2i/π) J_n(κr) ln|s - t|`. -/
def rhoN (f : ℝ → ℝ) (n : ℕ) (k s t : ℝ) : ℂ :=
  hankel1 n (k * rdist f s t) -
    2 * Complex.I / (Real.pi : ℂ) * (besselJ n (k * rdist f s t) : ℂ) * (Real.log |s - t| : ℂ)

/-- Proof of Theorem 4.1: `γ₁ = (κ_s ρ₁(κ_s) - κ_p ρ₁(κ_p))/r`. -/
def gam1 (P : Lame) (f : ℝ → ℝ) (s t : ℝ) : ℂ :=
  ((P.ks : ℂ) * rhoN f 1 P.ks s t - (P.kp : ℂ) * rhoN f 1 P.kp s t) / (rdist f s t : ℂ)

/-- Proof of Theorem 4.1: `γ₂ = κ_s² ρ₂(κ_s) - κ_p² ρ₂(κ_p)`. -/
def gam2 (P : Lame) (f : ℝ → ℝ) (s t : ℝ) : ℂ :=
  (P.ks : ℂ) ^ 2 * rhoN f 2 P.ks s t - (P.kp : ℂ) ^ 2 * rhoN f 2 P.kp s t

/-- Proof of Theorem 4.1: `γ₃ = r [κ_s³ ρ₃(κ_s) - κ_p³ ρ₃(κ_p)]`. -/
def gam3 (P : Lame) (f : ℝ → ℝ) (s t : ℝ) : ℂ :=
  (rdist f s t : ℂ) * ((P.ks : ℂ) ^ 3 * rhoN f 3 P.ks s t - (P.kp : ℂ) ^ 3 * rhoN f 3 P.kp s t)

/-- Proof of Theorem 4.1: `ξ(s,t) = ((s - t) f'(t) + f(t) - f(s)) / r²`. -/
def xiF (f : ℝ → ℝ) (s t : ℝ) : ℝ := ((s - t) * deriv f t + f t - f s) / rdist f s t ^ 2

/-- Proof of Theorem 4.1: `ζ_{jk}(s,t) = (x_j(s) - y_j(t))(x_k(s) - y_k(t)) / r²`. -/
def zetaF (f : ℝ → ℝ) (s t : ℝ) (j k : Fin 2) : ℝ := dvec f s t j * dvec f s t k / rdist f s t ^ 2

/-- Proof of Theorem 4.1: `σ_{jk} = -(μ+μ̃)(i/(2ω²)) (γ₂/r²) [(x_j-y_j) l_k + (x_k-y_k) l_j]
+ λ̃ [(i/(2μ)) (κ_s/r) ρ₁(κ_s) - (2i/ω²) γ₂/r² + (i/(2ω²)) γ₃/r²] (x_j-y_j) l_k
- μ̃ (i/(2μ)) (κ_s/r) ρ₁(κ_s) [(f(s)-f(t)) δ_{j1} - (s-t) δ_{j2}] l^⊥_k`. -/
def sigmaF (P : Lame) (f : ℝ → ℝ) (s t : ℝ) (j k : Fin 2) : ℂ :=
  let r : ℂ := (rdist f s t : ℂ)
  let d := dvec f s t
  let I := Complex.I
  ((P.mu + P.muT : ℝ) : ℂ) * (-I) / (2 * (P.omega : ℂ) ^ 2) * gam2 P f s t / r ^ 2 *
      ((d j * lvec f t k + d k * lvec f t j : ℝ) : ℂ)
    + (P.lamT : ℂ) * (I / (2 * (P.mu : ℂ)) * (P.ks : ℂ) / r * rhoN f 1 P.ks s t -
        2 * I / (P.omega : ℂ) ^ 2 * gam2 P f s t / r ^ 2 +
        I / (2 * (P.omega : ℂ) ^ 2) * gam3 P f s t / r ^ 2) * ((d j * lvec f t k : ℝ) : ℂ)
    - (P.muT : ℂ) * I / (2 * (P.mu : ℂ)) * (P.ks : ℂ) / r * rhoN f 1 P.ks s t *
        (((f s - f t) * (if j = 0 then 1 else 0) - (s - t) * (if j = 1 then 1 else 0)) *
          lperp f t k : ℝ)

/-! ### The Nyström scheme (Section 4) -/

/-- Section 4: the knots `t_j = -cut + jπ/N`, `j ∈ ℤ`. -/
def knot (cut : ℝ) (N : ℕ) (j : ℤ) : ℝ := -cut + j * Real.pi / N

/-- Section 4: the quadrature weights
`R_j^{(N)}(s) = -(1/N)[∑_{m=1}^{N-1} (1/m) cos m(s - t_j) + (1/(2N)) cos N(s - t_j)]`. -/
def quadR (cut : ℝ) (N : ℕ) (j : ℤ) (s : ℝ) : ℝ :=
  -(1 / (N : ℝ)) * (∑ m ∈ Finset.Ico 1 N, 1 / (m : ℝ) * Real.cos (m * (s - knot cut N j)) +
    1 / (2 * (N : ℝ)) * Real.cos (N * (s - knot cut N j)))

/-- Eq. (4.2): the `j`-th term `α_j^{(N)}(s) ψ(t_j)` with
`α_j^{(N)}(s) = R_j^{(N)}(s) B(s,t_j) + (π/N) C(s,t_j)`. -/
def nystromTerm (P : Lame) (η : ℂ) (h : ℝ) (f : ℝ → ℝ) (cut : ℝ) (N : ℕ)
    (psi : ℝ → Fin 2 → ℂ) (s : ℝ) (j : ℤ) : Fin 2 → ℂ :=
  ((quadR cut N j s : ℂ) • kerB P η f s (knot cut N j) +
      ((Real.pi / N : ℝ) : ℂ) • kerC P η h f s (knot cut N j)).mulVec (psi (knot cut N j))

/-- Eq. (4.2): `ψ_N(s) + ∑_{j ∈ ℤ} α_j^{(N)}(s) ψ_N(t_j) = 2 g(s)` for all `s ∈ ℝ`, the series
being convergent. -/
def SolvesNystrom (P : Lame) (η : ℂ) (h : ℝ) (f : ℝ → ℝ) (cut : ℝ) (N : ℕ)
    (g psiN : ℝ → Fin 2 → ℂ) : Prop :=
  ∀ s : ℝ, Summable (nystromTerm P η h f cut N psiN s) ∧
    psiN s + ∑' j : ℤ, nystromTerm P η h f cut N psiN s j = (2 : ℂ) • g s

end Arxiv2108_02600
Source
J. Li, X. Liu, B. Zhang and H. Zhang, The Nyström method for elastic wave scattering by unbounded rough surfaces, arXiv:2108.02600v1 (2021), Section 2 (eqs. (2.1)-(2.15), (DP)), Section 3 (eqs. (3.1)-(3.25)), Section 4 (proof of Theorem 4.1, eq. (4.2)), Section 5 (plane waves before (5.3))
Read-back

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

Conventions used throughout this bundle. Points of the plane are pairs x=(x1,x2)∈R2x=(x_1,x_2)\in\mathbb R^2x=(x1​,x2​)∈R2. Vector and matrix components are indexed 1,21,21,2.

The following totalization conventions apply everywhere and produce definite values where classical expressions are undefined:

  • a quotient with denominator 000 equals 000;
  • ln⁡x\ln xlnx means ln⁡∣x∣\ln|x|ln∣x∣ for x≠0x\neq 0x=0, and ln⁡0=0\ln 0=0ln0=0;
  • a (partial, Fréchet, or one-variable) derivative at a point where the function is not differentiable equals 000;
  • an integral of a non-integrable function equals 000;
  • an infinite sum that is not summable equals 000.

Norms on C2\mathbb C^2C2 and on R×R\mathbb R\times\mathbb RR×R are the max-norms (∥v∥=max⁡(∣v1∣,∣v2∣)\|v\|=\max(|v_1|,|v_2|)∥v∥=max(∣v1​∣,∣v2​∣)). Norms of higher derivatives are operator norms with respect to these.


Lamé data. A parameter set PPP consists of real numbers λ,μ,ω\lambda,\mu,\omegaλ,μ,ω subject to

μ>0,λ+2μ>0,ω>0.\mu>0,\qquad \lambda+2\mu>0,\qquad \omega>0 .μ>0,λ+2μ>0,ω>0.

No other condition is imposed. In particular λ+μ\lambda+\muλ+μ may be negative or zero, although λ+3μ>0\lambda+3\mu>0λ+3μ>0 always follows. From PPP one defines

cs=1μ,cp=1λ+2μ,κs=cs ω,κp=cp ω,c_s=\frac1{\sqrt\mu},\quad c_p=\frac1{\sqrt{\lambda+2\mu}},\quad \kappa_s=c_s\,\omega,\quad \kappa_p=c_p\,\omega,cs​=μ​1​,cp​=λ+2μ​1​,κs​=cs​ω,κp​=cp​ω, μ~=μ(λ+μ)λ+3μ,λ~=(λ+μ)(λ+2μ)λ+3μ.\tilde\mu=\frac{\mu(\lambda+\mu)}{\lambda+3\mu},\qquad \tilde\lambda=\frac{(\lambda+\mu)(\lambda+2\mu)}{\lambda+3\mu}.μ~​=λ+3μμ(λ+μ)​,λ~=λ+3μ(λ+μ)(λ+2μ)​.

Both κs,κp>0\kappa_s,\kappa_p>0κs​,κp​>0. No ordering between κs\kappa_sκs​ and κp\kappa_pκp​ is imposed.


Bessel function JnJ_nJn​. For n∈{0,1,2,… }n\in\{0,1,2,\dots\}n∈{0,1,2,…} and real zzz:

Jn(z)=∑p=0∞(−1)pp! (n+p)!(z2)n+2p.J_n(z)=\sum_{p=0}^\infty\frac{(-1)^p}{p!\,(n+p)!}\Big(\frac z2\Big)^{n+2p}.Jn​(z)=p=0∑∞​p!(n+p)!(−1)p​(2z​)n+2p.

Only non-negative integer orders and real arguments are defined.

φ(p)\varphi(p)φ(p). This is the harmonic number φ(p)=∑m=1p1m\varphi(p)=\sum_{m=1}^p\frac1mφ(p)=∑m=1p​m1​, with φ(0)=0\varphi(0)=0φ(0)=0.

Neumann function YnY_nYn​. For n∈Nn\in\mathbb Nn∈N and every real zzz (not only z>0z>0z>0):

Yn(z)=2π(ln⁡z2+CE)Jn(z)−1π∑p=0n−1(n−1−p)!p!(2z)n−2p−1π∑p=0∞(−1)pp!(n+p)!(z2)n+2p(φ(p)+φ(n+p)).Y_n(z)=\frac2\pi\Big(\ln\frac z2+C_E\Big)J_n(z)-\frac1\pi\sum_{p=0}^{n-1}\frac{(n-1-p)!}{p!}\Big(\frac2z\Big)^{n-2p}-\frac1\pi\sum_{p=0}^\infty\frac{(-1)^p}{p!(n+p)!}\Big(\frac z2\Big)^{n+2p}\big(\varphi(p)+\varphi(n+p)\big).Yn​(z)=π2​(ln2z​+CE​)Jn​(z)−π1​p=0∑n−1​p!(n−1−p)!​(z2​)n−2p−π1​p=0∑∞​p!(n+p)!(−1)p​(2z​)n+2p(φ(p)+φ(n+p)).

Here CEC_ECE​ is the Euler–Mascheroni constant, and the middle sum is empty when n=0n=0n=0. The totalization conventions give the following values outside the classical range:

  • For z<0z<0z<0, ln⁡(z/2)\ln(z/2)ln(z/2) means ln⁡∣z/2∣\ln|z/2|ln∣z/2∣.
  • At z=0z=0z=0, ln⁡0=0\ln 0=0ln0=0 and 2/z=02/z=02/z=0. Each power (2/z)n−2p(2/z)^{n-2p}(2/z)n−2p is then 000 unless n−2p=0n-2p=0n−2p=0, in which case it is 111. Hence, for example, Y0(0)=2CE/πY_0(0)=2C_E/\piY0​(0)=2CE​/π, which is finite.

Hankel function. Hn(1)(z)=Jn(z)+i Yn(z)H^{(1)}_n(z)=J_n(z)+i\,Y_n(z)Hn(1)​(z)=Jn​(z)+iYn​(z) for real zzz, with the junk values above inherited.


Distance. ∣x−y∣=(x1−y1)2+(x2−y2)2|x-y|=\sqrt{(x_1-y_1)^2+(x_2-y_2)^2}∣x−y∣=(x1​−y1​)2+(x2​−y2​)2​, the Euclidean distance.

Helmholtz fundamental solution. For real κ\kappaκ and all x,yx,yx,y, including x=yx=yx=y:

Φ(x,y,κ)=i4H0(1)(κ∣x−y∣).\Phi(x,y,\kappa)=\frac i4H^{(1)}_0(\kappa|x-y|).Φ(x,y,κ)=4i​H0(1)​(κ∣x−y∣).

At x=yx=yx=y this equals i4(1+2iCEπ)\frac i4\big(1+\frac{2iC_E}{\pi}\big)4i​(1+π2iCE​​).

Partial derivative. ∂jF(x)\partial_jF(x)∂j​F(x) denotes the Fréchet derivative of F:R2→CF:\mathbb R^2\to\mathbb CF:R2→C at xxx applied to the jjj-th unit vector. It is 000 wherever FFF is not differentiable.

Free-space Green's tensor. For all x,yx,yx,y, with no exclusion of x=yx=yx=y, G(x,y)G(x,y)G(x,y) is the 2×22\times22×2 complex matrix

Gjk(x,y)=δjkΦ(x,y,κs)μ+1ω2 ∂xj∂xk[Φ(⋅,y,κs)−Φ(⋅,y,κp)](x).G_{jk}(x,y)=\delta_{jk}\frac{\Phi(x,y,\kappa_s)}{\mu}+\frac1{\omega^2}\,\partial_{x_j}\partial_{x_k}\big[\Phi(\cdot,y,\kappa_s)-\Phi(\cdot,y,\kappa_p)\big](x).Gjk​(x,y)=δjk​μΦ(x,y,κs​)​+ω21​∂xj​​∂xk​​[Φ(⋅,y,κs​)−Φ(⋅,y,κp​)](x).

The inner derivative ∂xk\partial_{x_k}∂xk​​ is taken first, as a function of xxx, and then ∂xj\partial_{x_j}∂xj​​ is applied to the result. Both derivatives follow the "000 where not differentiable" convention, for instance at x=yx=yx=y.

Reflection. y′=(y1, 2a−y2)y'=(y_1,\,2a-y_2)y′=(y1​,2a−y2​) is the reflection of yyy in the line x2=ax_2=ax2​=a.

Square-root branch. For real uuu, u∗\sqrt[\ast]{u}∗u​ means:

  • u\sqrt uu​ if u≥0u\ge0u≥0;
  • i−ui\sqrt{-u}i−u​ if u<0u<0u<0.

The matrix UUU. For level aaa and points x,yx,yx,y, set

γp=κp2−τ2∗,γs=κs2−τ2∗,d(τ)=γpγs+τ2,\gamma_p=\sqrt[\ast]{\kappa_p^2-\tau^2},\qquad \gamma_s=\sqrt[\ast]{\kappa_s^2-\tau^2},\qquad d(\tau)=\gamma_p\gamma_s+\tau^2,γp​=∗κp2​−τ2​,γs​=∗κs2​−τ2​,d(τ)=γp​γs​+τ2, Ep=eiγp(x2+y2−2a)−ei(γp(x2−a)+γs(y2−a)),Es=eiγs(x2+y2−2a)−ei(γs(x2−a)+γp(y2−a)),E_p=e^{i\gamma_p(x_2+y_2-2a)}-e^{i(\gamma_p(x_2-a)+\gamma_s(y_2-a))},\qquad E_s=e^{i\gamma_s(x_2+y_2-2a)}-e^{i(\gamma_s(x_2-a)+\gamma_p(y_2-a))},Ep​=eiγp​(x2​+y2​−2a)−ei(γp​(x2​−a)+γs​(y2​−a)),Es​=eiγs​(x2​+y2​−2a)−ei(γs​(x2​−a)+γp​(y2​−a)), Mp=(−τ2γsτ3τγpγs−τ2γp),Ms=(−τ2γs−τγpγs−τ3−τ2γp).M_p=\begin{pmatrix}-\tau^2\gamma_s&\tau^3\\ \tau\gamma_p\gamma_s&-\tau^2\gamma_p\end{pmatrix},\qquad M_s=\begin{pmatrix}-\tau^2\gamma_s&-\tau\gamma_p\gamma_s\\ -\tau^3&-\tau^2\gamma_p\end{pmatrix}.Mp​=(−τ2γs​τγp​γs​​τ3−τ2γp​​),Ms​=(−τ2γs​−τ3​−τγp​γs​−τ2γp​​).

Then, entrywise,

Ujk(x,y)=−i2πω2∫R(Epd(Mp)jk+Esd(Ms)jk)e−i(x1−y1)τ dτ.U_{jk}(x,y)=-\frac{i}{2\pi\omega^2}\int_{\mathbb R}\Big(\frac{E_p}{d}(M_p)_{jk}+\frac{E_s}{d}(M_s)_{jk}\Big)e^{-i(x_1-y_1)\tau}\,d\tau .Ujk​(x,y)=−2πω2i​∫R​(dEp​​(Mp​)jk​+dEs​​(Ms​)jk​)e−i(x1​−y1​)τdτ.

Each entry's integral is a Lebesgue integral and is 000 if that entry's integrand is not integrable over R\mathbb RR. This can happen, for example, for points with x2≤ax_2\le ax2​≤a or y2≤ay_2\le ay2​≤a, where the exponentials need not decay. The definition is stated for all x,y∈R2x,y\in\mathbb R^2x,y∈R2.

Half-plane Dirichlet Green's tensor. GD,a(x,y)=G(x,y)−G(x,y′)+U(x,y)G_{D,a}(x,y)=G(x,y)-G(x,y')+U(x,y)GD,a​(x,y)=G(x,y)−G(x,y′)+U(x,y), with y′y'y′ the reflection in x2=ax_2=ax2​=a. It is defined for all x,yx,yx,y, not only in the half-plane.

Generalized stress operator. For a vector ν=(ν1,ν2)∈R2\nu=(\nu_1,\nu_2)\in\mathbb R^2ν=(ν1​,ν2​)∈R2 (not required to be a unit vector), a field ϕ:R2→C2\phi:\mathbb R^2\to\mathbb C^2ϕ:R2→C2, and a point yyy, the mmm-th component of Pνϕ(y)P_\nu\phi(y)Pν​ϕ(y) is

(μ+μ~)∑q=12∂qϕm(y) νq  +  λ~ νm (∂1ϕ1+∂2ϕ2)(y)  −  μ~ νm⊥ (∂2ϕ1−∂1ϕ2)(y),ν⊥=(ν2,−ν1).(\mu+\tilde\mu)\sum_{q=1}^2\partial_q\phi_m(y)\,\nu_q\;+\;\tilde\lambda\,\nu_m\,(\partial_1\phi_1+\partial_2\phi_2)(y)\;-\;\tilde\mu\,\nu^\perp_m\,(\partial_2\phi_1-\partial_1\phi_2)(y),\qquad \nu^\perp=(\nu_2,-\nu_1).(μ+μ~​)q=1∑2​∂q​ϕm​(y)νq​+λ~νm​(∂1​ϕ1​+∂2​ϕ2​)(y)−μ~​νm⊥​(∂2​ϕ1​−∂1​ϕ2​)(y),ν⊥=(ν2​,−ν1​).

Double-layer kernel. For a matrix field G(x,y)G(x,y)G(x,y), a vector ν\nuν and points x,yx,yx,y:

Πjk(x,y)=[Pν(z↦(Gj1(x,z),Gj2(x,z)))(y)]k.\Pi_{jk}(x,y)=\Big[P_\nu\big(z\mapsto (G_{j1}(x,z),G_{j2}(x,z))\big)(y)\Big]_k.Πjk​(x,y)=[Pν​(z↦(Gj1​(x,z),Gj2​(x,z)))(y)]k​.

That is, the stress operator acts in the second variable on the jjj-th row of GGG, and the result is evaluated at yyy.


BCnBC^nBCn predicate. A map uuu between real normed spaces satisfies it when uuu is nnn times continuously differentiable and, for each order m≤nm\le nm≤n, sup⁡x∥Dmu(x)∥<∞\sup_x\|D^mu(x)\|<\inftysupx​∥Dmu(x)∥<∞.

BCBCBC predicate. u:R→Fu:\mathbb R\to Fu:R→F is continuous and bounded.

BCnBC^nBCn norm. ∥u∥BCn\|u\|_{BC^n}∥u∥BCn​ is the supremum of {∥Dmu(x)∥:m≤n, x∈R}\{\|D^mu(x)\| : m\le n,\ x\in\mathbb R\}{∥Dmu(x)∥:m≤n, x∈R}. If this set is unbounded above, the value is 000; non-differentiable points contribute 000.

C0,πnC^n_{0,\pi}C0,πn​ predicate. a:R×R→Ca:\mathbb R\times\mathbb R\to\mathbb Ca:R×R→C is BCnBC^nBCn and a(s,t)=0a(s,t)=0a(s,t)=0 whenever ∣s−t∣≥π|s-t|\ge\pi∣s−t∣≥π.

BCpnBC^n_pBCpn​ predicate. For real ppp, a:R×R→Ca:\mathbb R\times\mathbb R\to\mathbb Ca:R×R→C is BCnBC^nBCn and there is a single constant KKK with

(1+∣s−t∣)p ∥Dma(s,t)∥≤Kfor all m≤n and all (s,t).(1+|s-t|)^p\,\|D^ma(s,t)\|\le K\quad\text{for all } m\le n \text{ and all } (s,t).(1+∣s−t∣)p∥Dma(s,t)∥≤Kfor all m≤n and all (s,t).

Class Bc,M(n)B^{(n)}_{c,M}Bc,M(n)​. For reals c,Mc,Mc,M, f:R→Rf:\mathbb R\to\mathbb Rf:R→R belongs to it when:

  • fff is Cn+2C^{n+2}Cn+2;
  • ∣f(l)(x)∣≤M|f^{(l)}(x)|\le M∣f(l)(x)∣≤M for every l∈{0,…,n+2}l\in\{0,\dots,n+2\}l∈{0,…,n+2} and every xxx;
  • f(x)≥cf(x)\ge cf(x)≥c for every xxx.

No sign condition is placed on ccc. If M<0M<0M<0, no fff qualifies.


Surface quantities. For f:R→Rf:\mathbb R\to\mathbb Rf:R→R and reals s,ts,ts,t:

  • surface point: x(s)=(s,f(s))x(s)=(s,f(s))x(s)=(s,f(s)), and y(t)=(t,f(t))y(t)=(t,f(t))y(t)=(t,f(t));
  • arclength factor: J(t)=1+f′(t)2J(t)=\sqrt{1+f'(t)^2}J(t)=1+f′(t)2​;
  • normal: ν(t)=(−f′(t),1)/J(t)\nu(t)=(-f'(t),1)/J(t)ν(t)=(−f′(t),1)/J(t);
  • l(t)=(−f′(t),1)l(t)=(-f'(t),1)l(t)=(−f′(t),1);
  • l⊥(t)=(1,f′(t))l^\perp(t)=(1,f'(t))l⊥(t)=(1,f′(t));
  • distance: r(s,t)=∣x(s)−y(t)∣r(s,t)=|x(s)-y(t)|r(s,t)=∣x(s)−y(t)∣;
  • difference vector: dj(s,t)=xj(s)−yj(t)d_j(s,t)=x_j(s)-y_j(t)dj​(s,t)=xj​(s)−yj​(t).

Here f′f'f′ is taken to be 000 wherever fff is not differentiable. Note that r=0r=0r=0 exactly when s=ts=ts=t.

Domain above the surface. Ω={x:x2>f(x1)}\Omega=\{x: x_2>f(x_1)\}Ω={x:x2​>f(x1​)}. No regularity of fff is assumed, so Ω\OmegaΩ need not be open.

Navier operator. The mmm-th component is

μ(∂1∂1um+∂2∂2um)(x)+(λ+μ) ∂m(∂1u1+∂2u2)(x)+ω2um(x).\mu\big(\partial_1\partial_1u_m+\partial_2\partial_2u_m\big)(x)+(\lambda+\mu)\,\partial_m\big(\partial_1u_1+\partial_2u_2\big)(x)+\omega^2u_m(x).μ(∂1​∂1​um​+∂2​∂2​um​)(x)+(λ+μ)∂m​(∂1​u1​+∂2​u2​)(x)+ω2um​(x).

H1(V)H^1(V)H1(V) predicate. For any set VVV (not required open), u:R2→Cu:\mathbb R^2\to\mathbb Cu:R2→C satisfies it when:

  1. u∈L2(V)u\in L^2(V)u∈L2(V);
  2. there exist v1,v2∈L2(V)v_1,v_2\in L^2(V)v1​,v2​∈L2(V) such that, for every real-valued C∞C^\inftyC∞ function φ\varphiφ with compact support contained in VVV and each iii,
∫Vu ∂iφ=−∫Vvi φ.\int_Vu\,\partial_i\varphi=-\int_Vv_i\,\varphi.∫V​u∂i​φ=−∫V​vi​φ.

Hloc1(Ω)H^1_{loc}(\Omega)Hloc1​(Ω) predicate. uuu satisfies the H1(V)H^1(V)H1(V) predicate for every open VVV whose closure is compact and contained in Ω\OmegaΩ.

Hloc1/2H^{1/2}_{loc}Hloc1/2​ predicate. For a parametrized u:R→Cu:\mathbb R\to\mathbb Cu:R→C, and for all reals a,ba,ba,b:

  • uuu is a.e.-strongly measurable on [a,b][a,b][a,b];
  • ∫ab∣u∣2<∞\int_a^b|u|^2<\infty∫ab​∣u∣2<∞;
  • the double integral below is finite:
∫[a,b]2∣u(s)−u(t)∣2∣s−t∣2 ds dt<∞.\int_{[a,b]^2}\frac{|u(s)-u(t)|^2}{|s-t|^2}\,ds\,dt<\infty.∫[a,b]2​∣s−t∣2∣u(s)−u(t)∣2​dsdt<∞.

These are extended-valued integrals. When a>ba>ba>b the conditions hold trivially.

Dirichlet data. g:R2→C2g:\mathbb R^2\to\mathbb C^2g:R2→C2 is admissible when:

  • ggg is continuous on the graph {x:x2=f(x1)}\{x:x_2=f(x_1)\}{x:x2​=f(x1​)} (relative to that set);
  • sup⁡smax⁡m∣gm(s,f(s))∣<∞\sup_s\max_m|g_m(s,f(s))|<\inftysups​maxm​∣gm​(s,f(s))∣<∞;
  • each s↦gm(s,f(s))s\mapsto g_m(s,f(s))s↦gm​(s,f(s)) satisfies the Hloc1/2H^{1/2}_{loc}Hloc1/2​ predicate.

Upward propagating radiation condition. There exist a real HHH and a function ϕ:R→C2\phi:\mathbb R\to\mathbb C^2ϕ:R→C2 such that:

  1. fff is bounded above and sup⁡f<H\sup f<Hsupf<H;
  2. ϕ\phiϕ is essentially bounded and measurable (ϕ∈L∞\phi\in L^\inftyϕ∈L∞);
  3. for every xxx with x2>Hx_2>Hx2​>H and each jjj, the function y1↦∑kΠjk(x,(y1,H))ϕk(y1)y_1\mapsto\sum_k\Pi_{jk}(x,(y_1,H))\phi_k(y_1)y1​↦∑k​Πjk​(x,(y1​,H))ϕk​(y1​) is Lebesgue integrable on R\mathbb RR, and
uj(x)=∫R∑kΠjk(x,(y1,H)) ϕk(y1) dy1.u_j(x)=\int_{\mathbb R}\sum_k\Pi_{jk}\big(x,(y_1,H)\big)\,\phi_k(y_1)\,dy_1 .uj​(x)=∫R​k∑​Πjk​(x,(y1​,H))ϕk​(y1​)dy1​.

In item 3, Π\PiΠ is the double-layer kernel built from GD,HG_{D,H}GD,H​ with the fixed vector ν=(0,1)\nu=(0,1)ν=(0,1).

Growth condition. There is a real β\betaβ such that

sup⁡x∈Ω∣x2∣βmax⁡m∣um(x)∣<∞.\sup_{x\in\Omega}|x_2|^\beta\max_m|u_m(x)|<\infty .x∈Ωsup​∣x2​∣βmmax​∣um​(x)∣<∞.

This supremum is taken in [0,∞][0,\infty][0,∞], uniformly over all of Ω\OmegaΩ, including all horizontal positions x1x_1x1​. In this arithmetic 0β=∞0^\beta=\infty0β=∞ for β<0\beta<0β<0 and ∞⋅0=0\infty\cdot0=0∞⋅0=0. So for β<0\beta<0β<0, any point of Ω\OmegaΩ with x2=0x_2=0x2​=0 and u(x)≠0u(x)\neq0u(x)=0 makes the supremum infinite. The choice β=0\beta=0β=0 demands that uuu be bounded on Ω\OmegaΩ.

Solution of the Dirichlet problem. u:R2→C2u:\mathbb R^2\to\mathbb C^2u:R2→C2 is a solution for data ggg when all of the following hold:

  1. uuu is C2C^2C2 on Ω\OmegaΩ;
  2. uuu is continuous on the closure Ω‾\overline\OmegaΩ;
  3. each component of uuu satisfies the Hloc1(Ω)H^1_{loc}(\Omega)Hloc1​(Ω) predicate;
  4. the Navier operator applied to uuu vanishes at every x∈Ωx\in\Omegax∈Ω;
  5. u(s,f(s))=g(s,f(s))u(s,f(s))=g(s,f(s))u(s,f(s))=g(s,f(s)) for every real sss;
  6. the radiation condition holds;
  7. the growth condition holds.

The derivatives in item 4 are global Fréchet derivatives. Item 1 only guarantees they are the classical ones at interior points of Ω\OmegaΩ.

Plane waves. For any θ∈R2\theta\in\mathbb R^2θ∈R2 (not required to be a unit vector), with x⋅θ=x1θ1+x2θ2x\cdot\theta=x_1\theta_1+x_2\theta_2x⋅θ=x1​θ1​+x2​θ2​:

  • compressional wave: upinc(x)=θ eiκpx⋅θu^{inc}_p(x)=\theta\,e^{i\kappa_p x\cdot\theta}upinc​(x)=θeiκp​x⋅θ;
  • shear wave: usinc(x)=θ⊥eiκsx⋅θu^{inc}_s(x)=\theta^\perp e^{i\kappa_s x\cdot\theta}usinc​(x)=θ⊥eiκs​x⋅θ, with θ⊥=(θ2,−θ1)\theta^\perp=(\theta_2,-\theta_1)θ⊥=(θ2​,−θ1​).

Boundary operators. For a level hhh and ψ:R→C2\psi:\mathbb R\to\mathbb C^2ψ:R→C2:

(Dψ)j(s)=2∫R(∑kΠjk(x(s),y(t))ψk(t))J(t) dt,(Sψ)j(s)=2∫R(∑k(GD,h)jk(x(s),y(t))ψk(t))J(t) dt.(D\psi)_j(s)=2\int_{\mathbb R}\Big(\sum_k\Pi_{jk}(x(s),y(t))\psi_k(t)\Big)J(t)\,dt,\qquad (S\psi)_j(s)=2\int_{\mathbb R}\Big(\sum_k(G_{D,h})_{jk}(x(s),y(t))\psi_k(t)\Big)J(t)\,dt.(Dψ)j​(s)=2∫R​(k∑​Πjk​(x(s),y(t))ψk​(t))J(t)dt,(Sψ)j​(s)=2∫R​(k∑​(GD,h​)jk​(x(s),y(t))ψk​(t))J(t)dt.

In DDD, Π\PiΠ is built from GD,hG_{D,h}GD,h​ with the vector ν(t)\nu(t)ν(t). The integrand includes the junk diagonal value at t=st=st=s.

Boundary integral equation. For a complex η\etaη (any value), a level hhh, and data g,ψ:R→C2g,\psi:\mathbb R\to\mathbb C^2g,ψ:R→C2, the equation holds when, for every real sss:

  1. for each jjj, both integrands defining (Dψ)j(s)(D\psi)_j(s)(Dψ)j​(s) and (Sψ)j(s)(S\psi)_j(s)(Sψ)j​(s) are Lebesgue integrable;
  2. the following identity holds:
ψ(s)+(Dψ)(s)−iη (Sψ)(s)=2g(s).\psi(s)+(D\psi)(s)-i\eta\,(S\psi)(s)=2g(s).ψ(s)+(Dψ)(s)−iη(Sψ)(s)=2g(s).

Kernels of Section 3. All kernels below are 2×22\times22×2 complex matrices indexed by j,kj,kj,k and are defined for all real s,ts,ts,t, including s=ts=ts=t. Write r=r(s,t)r=r(s,t)r=r(s,t), d=d(s,t)d=d(s,t)d=d(s,t), and δ\deltaδ for the Kronecker delta.

A(1)A^{(1)}A(1).

Ajk(1)=2 Gjk(x(s),y(t)) J(t).A^{(1)}_{jk}=2\,G_{jk}(x(s),y(t))\,J(t).Ajk(1)​=2Gjk​(x(s),y(t))J(t).

B(1)B^{(1)}B(1). This kernel is real-valued:

Bjk(1)=1π{δjk[−1μJ0(κsr)+κsJ1(κsr)−κpJ1(κpr)ω2r]−κs2J2(κsr)−κp2J2(κpr)ω2r2 djdk}J(t).B^{(1)}_{jk}=\frac1\pi\Big\{\delta_{jk}\Big[-\frac1\mu J_0(\kappa_sr)+\frac{\kappa_sJ_1(\kappa_sr)-\kappa_pJ_1(\kappa_pr)}{\omega^2 r}\Big]-\frac{\kappa_s^2J_2(\kappa_sr)-\kappa_p^2J_2(\kappa_pr)}{\omega^2r^2}\,d_jd_k\Big\}J(t).Bjk(1)​=π1​{δjk​[−μ1​J0​(κs​r)+ω2rκs​J1​(κs​r)−κp​J1​(κp​r)​]−ω2r2κs2​J2​(κs​r)−κp2​J2​(κp​r)​dj​dk​}J(t).

At s=ts=ts=t the divisions by r=0r=0r=0 give 000, so Bjk(1)(s,s)=−δjkJ(s)/(πμ)B^{(1)}_{jk}(s,s)=-\delta_{jk}J(s)/(\pi\mu)Bjk(1)​(s,s)=−δjk​J(s)/(πμ).

C(1)C^{(1)}C(1).

C(1)=A(1)−B(1)ln⁡∣s−t∣,C^{(1)}=A^{(1)}-B^{(1)}\ln|s-t|,C(1)=A(1)−B(1)ln∣s−t∣,

so C(1)(s,s)=A(1)(s,s)C^{(1)}(s,s)=A^{(1)}(s,s)C(1)(s,s)=A(1)(s,s).

A(2)A^{(2)}A(2).

Ajk(2)=2 Πjk(x(s),y(t)) J(t),A^{(2)}_{jk}=2\,\Pi_{jk}(x(s),y(t))\,J(t),Ajk(2)​=2Πjk​(x(s),y(t))J(t),

with Π\PiΠ built from the free-space GGG and the vector ν(t)\nu(t)ν(t).

B(2)B^{(2)}B(2). This kernel is real-valued. Set

  • j1=κsJ1(κsr)/rj_1=\kappa_sJ_1(\kappa_sr)/rj1​=κs​J1​(κs​r)/r;
  • j2=κs2J2(κsr)−κp2J2(κpr)j_2=\kappa_s^2J_2(\kappa_sr)-\kappa_p^2J_2(\kappa_pr)j2​=κs2​J2​(κs​r)−κp2​J2​(κp​r);
  • j3=κs3J3(κsr)−κp3J3(κpr)j_3=\kappa_s^3J_3(\kappa_sr)-\kappa_p^3J_3(\kappa_pr)j3​=κs3​J3​(κs​r)−κp3​J3​(κp​r);
  • ξ^=(s−t)f′(t)+f(t)−f(s)\hat\xi=(s-t)f'(t)+f(t)-f(s)ξ^​=(s−t)f′(t)+f(t)−f(s).

Then

Bjk(2)=(μ+μ~)[δjk(j1πμ−j2πω2r2)+j3πω2r3djdk]ξ^+(μ+μ~)j2πω2r2(djlk+dklj)+λ~(−j1πμ+4j2πω2r2−j3πω2r)djlk+μ~j1πμ((f(s)−f(t))δj1−(s−t)δj2)lk⊥.\begin{aligned}B^{(2)}_{jk}={}&(\mu+\tilde\mu)\Big[\delta_{jk}\Big(\frac{j_1}{\pi\mu}-\frac{j_2}{\pi\omega^2r^2}\Big)+\frac{j_3}{\pi\omega^2r^3}d_jd_k\Big]\hat\xi+(\mu+\tilde\mu)\frac{j_2}{\pi\omega^2r^2}\big(d_jl_k+d_kl_j\big)\\&+\tilde\lambda\Big(-\frac{j_1}{\pi\mu}+\frac{4j_2}{\pi\omega^2r^2}-\frac{j_3}{\pi\omega^2 r}\Big)d_jl_k+\tilde\mu\frac{j_1}{\pi\mu}\big((f(s)-f(t))\delta_{j1}-(s-t)\delta_{j2}\big)l^\perp_k .\end{aligned}Bjk(2)​=​(μ+μ~​)[δjk​(πμj1​​−πω2r2j2​​)+πω2r3j3​​dj​dk​]ξ^​+(μ+μ~​)πω2r2j2​​(dj​lk​+dk​lj​)+λ~(−πμj1​​+πω2r24j2​​−πω2rj3​​)dj​lk​+μ~​πμj1​​((f(s)−f(t))δj1​−(s−t)δj2​)lk⊥​.​

Here l=l(t)l=l(t)l=l(t) and l⊥=l⊥(t)l^\perp=l^\perp(t)l⊥=l⊥(t). There is no factor J(t)J(t)J(t), and every term is 000 at s=ts=ts=t.

C(2)C^{(2)}C(2).

C(2)=A(2)−B(2)ln⁡∣s−t∣.C^{(2)}=A^{(2)}-B^{(2)}\ln|s-t|.C(2)=A(2)−B(2)ln∣s−t∣.

Reflected tensor. Garefl(x,y)=G(x,y′)−U(x,y)G^{\rm refl}_a(x,y)=G(x,y')-U(x,y)Garefl​(x,y)=G(x,y′)−U(x,y), with y′y'y′ the reflection in x2=ax_2=ax2​=a and UUU at level aaa.

A(3)A^{(3)}A(3).

Ajk(3)=2[Πjk(x(s),y(t))−iη (Ghrefl)jk(x(s),y(t))]J(t),A^{(3)}_{jk}=2\big[\Pi_{jk}(x(s),y(t))-i\eta\,(G^{\rm refl}_h)_{jk}(x(s),y(t))\big]J(t),Ajk(3)​=2[Πjk​(x(s),y(t))−iη(Ghrefl​)jk​(x(s),y(t))]J(t),

with Π\PiΠ built from GhreflG^{\rm refl}_hGhrefl​ and the vector ν(t)\nu(t)ν(t).

Full kernel AAA.

Ajk=2[Πjk(x(s),y(t))−iη (GD,h)jk(x(s),y(t))]J(t),A_{jk}=2\big[\Pi_{jk}(x(s),y(t))-i\eta\,(G_{D,h})_{jk}(x(s),y(t))\big]J(t),Ajk​=2[Πjk​(x(s),y(t))−iη(GD,h​)jk​(x(s),y(t))]J(t),

with Π\PiΠ built from GD,hG_{D,h}GD,h​ and the vector ν(t)\nu(t)ν(t).

Combined kernels.

B∗=−iηB(1)+B(2),C∗=−iηC(1)+C(2)−A(3).B^*=-i\eta B^{(1)}+B^{(2)},\qquad C^*=-i\eta C^{(1)}+C^{(2)}-A^{(3)}.B∗=−iηB(1)+B(2),C∗=−iηC(1)+C(2)−A(3).

Cut-off.

χ(u)={1,∣u∣≤1,[1+exp⁡(1π−∣u∣+11−∣u∣)]−1,1<∣u∣<π,0,∣u∣≥π.\chi(u)=\begin{cases}1,&|u|\le1,\\ \big[1+\exp\big(\tfrac1{\pi-|u|}+\tfrac1{1-|u|}\big)\big]^{-1},&1<|u|<\pi,\\ 0,&|u|\ge\pi.\end{cases}χ(u)=⎩⎨⎧​1,[1+exp(π−∣u∣1​+1−∣u∣1​)]−1,0,​∣u∣≤1,1<∣u∣<π,∣u∣≥π.​

Diagonal extension. For a kernel FFF, its extension F♯F^\sharpF♯ is defined by:

  • F♯(s,t)=F(s,t)F^\sharp(s,t)=F(s,t)F♯(s,t)=F(s,t) for t≠st\neq st=s;
  • F♯(s,s)F^\sharp(s,s)F♯(s,s) is the limit of F(s,t′)F(s,t')F(s,t′) as t′→st'\to st′→s with t′≠st'\neq st′=s.

If that limit does not exist, F♯(s,s)F^\sharp(s,s)F♯(s,s) is an unspecified arbitrary matrix.

Kernel BBB. This is the diagonal extension of

(s,t)↦π χ(s−t) B∗(s,t).(s,t)\mapsto\pi\,\chi(s-t)\,B^*(s,t).(s,t)↦πχ(s−t)B∗(s,t).

It does not depend on hhh.

Kernel CCC. This is the diagonal extension of

(s,t)↦[(1−χ(s−t))ln⁡∣s−t∣−χ(s−t)ln⁡sin⁡((s−t)/2)(s−t)/2]B∗(s,t)+C∗(s,t).(s,t)\mapsto\Big[(1-\chi(s-t))\ln|s-t|-\chi(s-t)\ln\frac{\sin((s-t)/2)}{(s-t)/2}\Big]B^*(s,t)+C^*(s,t).(s,t)↦[(1−χ(s−t))ln∣s−t∣−χ(s−t)ln(s−t)/2sin((s−t)/2)​]B∗(s,t)+C∗(s,t).

Notation from the proof of Theorem 4.1. With r=r(s,t)r=r(s,t)r=r(s,t):

ρn(κ,s,t)=Hn(1)(κr)−2iπJn(κr)ln⁡∣s−t∣,\rho_n(\kappa,s,t)=H^{(1)}_n(\kappa r)-\frac{2i}{\pi}J_n(\kappa r)\ln|s-t|,ρn​(κ,s,t)=Hn(1)​(κr)−π2i​Jn​(κr)ln∣s−t∣, γ1=κsρ1(κs)−κpρ1(κp)r,γ2=κs2ρ2(κs)−κp2ρ2(κp),γ3=r[κs3ρ3(κs)−κp3ρ3(κp)],\gamma_1=\frac{\kappa_s\rho_1(\kappa_s)-\kappa_p\rho_1(\kappa_p)}{r},\qquad \gamma_2=\kappa_s^2\rho_2(\kappa_s)-\kappa_p^2\rho_2(\kappa_p),\qquad \gamma_3=r\big[\kappa_s^3\rho_3(\kappa_s)-\kappa_p^3\rho_3(\kappa_p)\big],γ1​=rκs​ρ1​(κs​)−κp​ρ1​(κp​)​,γ2​=κs2​ρ2​(κs​)−κp2​ρ2​(κp​),γ3​=r[κs3​ρ3​(κs​)−κp3​ρ3​(κp​)], ξ(s,t)=(s−t)f′(t)+f(t)−f(s)r2,ζjk(s,t)=djdkr2.\xi(s,t)=\frac{(s-t)f'(t)+f(t)-f(s)}{r^2},\qquad \zeta_{jk}(s,t)=\frac{d_jd_k}{r^2}.ξ(s,t)=r2(s−t)f′(t)+f(t)−f(s)​,ζjk​(s,t)=r2dj​dk​​.

At s=ts=ts=t, γ1\gamma_1γ1​, ξ\xiξ and ζ\zetaζ equal 000. Finally,

σjk=−(μ+μ~)i2ω2γ2r2(djlk+dklj)+λ~[i2μκsrρ1(κs)−2iω2γ2r2+i2ω2γ3r2]djlk−μ~i2μκsrρ1(κs)((f(s)−f(t))δj1−(s−t)δj2)lk⊥.\begin{aligned}\sigma_{jk}={}&-(\mu+\tilde\mu)\frac{i}{2\omega^2}\frac{\gamma_2}{r^2}\big(d_jl_k+d_kl_j\big)+\tilde\lambda\Big[\frac{i}{2\mu}\frac{\kappa_s}{r}\rho_1(\kappa_s)-\frac{2i}{\omega^2}\frac{\gamma_2}{r^2}+\frac{i}{2\omega^2}\frac{\gamma_3}{r^2}\Big]d_jl_k\\&-\tilde\mu\frac{i}{2\mu}\frac{\kappa_s}{r}\rho_1(\kappa_s)\big((f(s)-f(t))\delta_{j1}-(s-t)\delta_{j2}\big)l^\perp_k .\end{aligned}σjk​=​−(μ+μ~​)2ω2i​r2γ2​​(dj​lk​+dk​lj​)+λ~[2μi​rκs​​ρ1​(κs​)−ω22i​r2γ2​​+2ω2i​r2γ3​​]dj​lk​−μ~​2μi​rκs​​ρ1​(κs​)((f(s)−f(t))δj1​−(s−t)δj2​)lk⊥​.​

Nyström scheme. For a real cut\mathrm{cut}cut, N∈NN\in\mathbb NN∈N and j∈Zj\in\mathbb Zj∈Z:

  • knots: tj=−cut+jπ/Nt_j=-\mathrm{cut}+j\pi/Ntj​=−cut+jπ/N;
  • weights:
Rj(N)(s)=−1N[∑m=1N−11mcos⁡m(s−tj)+12Ncos⁡N(s−tj)];R^{(N)}_j(s)=-\frac1N\Big[\sum_{m=1}^{N-1}\frac1m\cos m(s-t_j)+\frac1{2N}\cos N(s-t_j)\Big];Rj(N)​(s)=−N1​[m=1∑N−1​m1​cosm(s−tj​)+2N1​cosN(s−tj​)];
  • jjj-th term:
(Rj(N)(s) B(s,tj)+πN C(s,tj)) ψ(tj)∈C2.\big(R^{(N)}_j(s)\,B(s,t_j)+\tfrac\pi N\,C(s,t_j)\big)\,\psi(t_j)\in\mathbb C^2 .(Rj(N)​(s)B(s,tj​)+Nπ​C(s,tj​))ψ(tj​)∈C2.

Here BBB and CCC are the diagonal-extended kernels above, built from η,h,f\eta,h,fη,h,f. For N=0N=0N=0 every knot equals −cut-\mathrm{cut}−cut, every weight and π/N\pi/Nπ/N are 000, and every term is 000.

ψN\psi_NψN​ solves the Nyström equation for data ggg when, for every real sss, the family of jjj-th terms indexed by j∈Zj\in\mathbb Zj∈Z is (unconditionally) summable and

ψN(s)+∑j∈Z(Rj(N)(s)B(s,tj)+πNC(s,tj))ψN(tj)=2g(s).\psi_N(s)+\sum_{j\in\mathbb Z}\big(R^{(N)}_j(s)B(s,t_j)+\tfrac\pi NC(s,t_j)\big)\psi_N(t_j)=2g(s).ψN​(s)+j∈Z∑​(Rj(N)​(s)B(s,tj​)+Nπ​C(s,tj​))ψN​(tj​)=2g(s).

For N=0N=0N=0 this reduces to ψN=2g\psi_N=2gψN​=2g.

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