Rough-surface transmission scattering: fundamental solutions, radiation conditions, the TSP and its integral operator
DefinitionRoughSurfaceScattering_BasicObjects of Sections 2, 4, 5 and 6 of Wu and Yang, Direct and inverse acoustic scattering by global rough surfaces (arXiv:2406.06129v2).
- Fundamental solutions. for and , where with and ( the harmonic numbers, Euler's constant).
- Interface. For , , , , , . The unit normal points out of (into ), and points into ; arc length is . means bounded and continuous and uniformly -Hölder; means with uniformly -Hölder.
- Spaces on . Functions on are written as functions of . : bounded continuous; : in addition uniformly -Hölder in the Euclidean distance of points of , with norm ; : with surface gradient , norm .
- Regularity on closed sets. means and a gradient field are continuous on and is the derivative of at interior points; adds boundedness of and on .
- Radiation conditions (Definition 2.2). if in and, for some and , and on ; uses and the factor .
- Transmission Scattering Problem (Section 2). solves the TSP for with data if, for some and : , , ; in ; and on ; for some ; , . An incident field produces the data , (problem (2.1)); the point source is and the hypersingular source is . The scatterer conditions are , , .
- Impedance Green's function (2.8). , , with (principal square root).
- Layer potentials and (Section 4). , , with the upward normal . On , have kernels , , , and
where is the integral operator with kernel . is taken with respect to arc length. 9. Sobolev quantities and domains. : and its weak derivatives of order and (tested against ) lie in . (possibly ). A bounded domain is a bounded connected open set which, near each boundary point and in rotated or reflected coordinates, lies below the graph of a function. on is the outward unit normal and the arc length (-dimensional Hausdorff measure). is the correction term of Theorem 5.3, and .
Formalization Note Points of are elements of EuclideanSpace ℝ (Fin 2). Functions on are functions of the parameter , but Hölder quotients use the Euclidean distance of the points and uses arc length. The boundary values and normal derivatives of on are the continuous extensions supplied by the condition. The weak-derivative tests use real-valued test functions, which is equivalent to complex-valued ones by linearity. The paper states that points out of but its jump relations (4.19)–(4.20) and its matrix are correct only if the layer potentials and use the normal pointing into ; with in the potentials the ansatz leads to a different matrix. The formalization therefore uses in the potentials and in , and in the TSP condition and the incident data, which is the only reading under which the printed is the reduction of the TSP.
import Mathlib
/-!
C. Wu and J. Yang, *Direct and inverse acoustic scattering by global rough surfaces*,
arXiv:2406.06129v2: the fundamental solutions, the rough interface, the upward/downward
propagating radiation conditions and the Transmission Scattering Problem (TSP) of Section 2,
the impedance half-plane Green's functions (2.8), the layer potentials and the boundary integral
operator `M` of Section 4, and the Sobolev quantities and domains used in Sections 5 and 6.
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 interface `Γ = {(s, f s)}` is written as a function of
the parameter `s = x₁`.
-/
open MeasureTheory
noncomputable section
namespace RoughSurfaceScattering
/-- The plane `ℝ²` with its Euclidean norm. -/
abbrev R2 := EuclideanSpace ℝ (Fin 2)
/-- The point `(a, b) ∈ ℝ²`. -/
def pt (a b : ℝ) : R2 := !₂[a, b]
/-! ### Fundamental solutions (Section 2, p. 4) -/
/-- The Bessel function `J₀(x) = ∑_{m ≥ 0} (-1)^m (x/2)^{2m} / (m!)²` (used in `H₀^{(1)}`,
Section 2, p. 4). -/
def besselJ0 (x : ℝ) : ℝ :=
∑' m : ℕ, (-1 : ℝ) ^ m * (x / 2) ^ (2 * m) / ((m.factorial : ℝ) ^ 2)
/-- The Bessel function of the second kind, for `x > 0`:
`Y₀(x) = (2/π)(log(x/2) + γ) J₀(x) + (2/π) ∑_{m ≥ 1} (-1)^{m+1} H_m (x/2)^{2m} / (m!)²`,
with `H_m` the harmonic numbers and `γ` the Euler–Mascheroni constant (used in `H₀^{(1)}`,
Section 2, p. 4). -/
def besselY0 (x : ℝ) : ℝ :=
2 / Real.pi * (Real.log (x / 2) + Real.eulerMascheroniConstant) * besselJ0 x +
2 / Real.pi * ∑' m : ℕ, (-1 : ℝ) ^ m * (harmonic (m + 1) : ℝ) * (x / 2) ^ (2 * (m + 1)) /
(((m + 1).factorial : ℝ) ^ 2)
/-- The Hankel function of the first kind of order zero, `H₀^{(1)} = J₀ + i Y₀`, for `x > 0`
(Section 2, p. 4). -/
def hankel01 (x : ℝ) : ℂ := (besselJ0 x : ℂ) + Complex.I * (besselY0 x : ℂ)
/-- Section 2, p. 4: the fundamental solution `Φ_k(x,y) = (i/4) H₀^{(1)}(k|x-y|)` of the
Helmholtz equation for `k > 0`, and `Φ₀(x,y) = (1/2π) ln(1/|x-y|)` for the Laplacian (`k = 0`).
Only `x ≠ y` and `k ≥ 0` are used. -/
def Phi (k : ℝ) (x y : R2) : ℂ :=
if k = 0 then ((1 / (2 * Real.pi) * Real.log (1 / ‖x - y‖) : ℝ) : ℂ)
else Complex.I / 4 * hankel01 (k * ‖x - y‖)
/-- `∂Φ_k(x,y)/∂y₂`, the kernel of the radiation conditions (2.3), Definition 2.2, p. 5. -/
def dPhi_dy2 (k : ℝ) (x y : R2) : ℂ :=
deriv (fun t : ℝ => Phi k x (pt (y 0) t)) (y 1)
/-! ### Half planes and the rough interface (Section 2, pp. 4-5) -/
/-- `U_h^+ = {x : x₂ > h}` (Section 2, p. 4). -/
def Uplus (h : ℝ) : Set R2 := {x | h < x 1}
/-- `U_h^- = {x : x₂ < h}` (Section 2, p. 4). -/
def Uminus (h : ℝ) : Set R2 := {x | x 1 < h}
/-- `D^+ = {x : x₂ > f(x₁)}`, the region above the interface (Section 2, p. 4). -/
def Dplus (f : ℝ → ℝ) : Set R2 := {x | f (x 0) < x 1}
/-- `D^- = {x : x₂ < f(x₁)}`, the region below the interface (Section 2, p. 4). -/
def Dminus (f : ℝ → ℝ) : Set R2 := {x | x 1 < f (x 0)}
/-- `f^- = inf f` (Section 2, p. 4). -/
def finf (f : ℝ → ℝ) : ℝ := ⨅ t, f t
/-- `f^+ = sup f` (Section 2, p. 4). -/
def fsup (f : ℝ → ℝ) : ℝ := ⨆ t, f t
/-- The point `(s, f(s))` of the interface `Γ` (Section 2, p. 4). -/
def gpt (f : ℝ → ℝ) (s : ℝ) : R2 := pt s (f s)
/-- The arc-length density `ds = √(1 + f'(s)²) ds₁` on `Γ`. -/
def arcDen (f : ℝ → ℝ) (s : ℝ) : ℝ := Real.sqrt (1 + deriv f s ^ 2)
/-- The arc-length measure on `Γ`, written in the parameter `s = x₁`. -/
def arcMeasure (f : ℝ → ℝ) : Measure ℝ :=
volume.withDensity (fun s => ENNReal.ofReal (arcDen f s))
/-- Section 2, p. 4: the unit normal `n` to `Γ` at `(s, f(s))` pointing out of `D^+`,
`n = (f'(s), -1) / √(1 + f'(s)²)`. -/
def normal (f : ℝ → ℝ) (s : ℝ) : R2 := (arcDen f s)⁻¹ • pt (deriv f s) (-1)
/-- The unit normal to `Γ` pointing into `D^+`, `-n`. The layer potentials and the kernels of
`K, K', T` in Section 4 use this orientation: it is the one for which the jump relations
(4.19)–(4.20) and the printed operator `M` are consistent with the TSP conditions, which keep `n`. -/
def normalUp (f : ℝ → ℝ) (s : ℝ) : R2 := -normal f s
/-- Section 2, p. 3: `f ∈ BC^{1,α}(ℝ)`: `f` and `f'` are bounded and continuous and `f'` is
uniformly Hölder continuous with exponent `α`. With `α = 1` this is `Γ ∈ BC^{1,1}` (Section 4). -/
def IsBC1Alpha (α : ℝ) (f : ℝ → ℝ) : Prop :=
Differentiable ℝ f ∧ Continuous (deriv f) ∧ (∃ C, ∀ t, |f t| ≤ C) ∧
(∃ C, ∀ t, |deriv f t| ≤ C) ∧ ∃ C, ∀ s t, |deriv f s - deriv f t| ≤ C * |s - t| ^ α
/-- Theorem 5.2 (p. 17): `f ∈ C^{2,λ}(ℝ)`: `f` is twice continuously differentiable and `f''`
is uniformly Hölder continuous with exponent `λ`. -/
def IsC2Lambda (lam : ℝ) (f : ℝ → ℝ) : Prop :=
ContDiff ℝ 2 f ∧
∃ C, ∀ s t, |iteratedDeriv 2 f s - iteratedDeriv 2 f t| ≤ C * |s - t| ^ lam
/-! ### Function spaces on `Γ` (Section 2, p. 3) -/
/-- `φ ∈ BC(Γ)`: bounded and continuous on `Γ` (Section 2, p. 3). -/
def IsBCGam (φ : ℝ → ℂ) : Prop := Continuous φ ∧ ∃ C, ∀ s, ‖φ s‖ ≤ C
/-- `φ ∈ BC^{0,α}(Γ)`: bounded, continuous and uniformly Hölder continuous with exponent `α`
in the Euclidean distance of points of `Γ` (Section 2, p. 3). -/
def IsBC0AlphaGam {E : Type*} [NormedAddCommGroup E] (f : ℝ → ℝ) (α : ℝ) (φ : ℝ → E) : Prop :=
Continuous φ ∧ (∃ C, ∀ s, ‖φ s‖ ≤ C) ∧
∃ C, ∀ s t, ‖φ s - φ t‖ ≤ C * ‖gpt f s - gpt f t‖ ^ α
/-- The surface gradient `Grad φ` on `Γ`: the arc-length derivative of `φ` times the unit
tangent `(1, f'(s))/√(1+f'(s)²)` (Section 2, p. 3). -/
def surfGrad (f : ℝ → ℝ) (φ : ℝ → ℂ) (s : ℝ) : EuclideanSpace ℂ (Fin 2) :=
!₂[deriv φ s / ((1 + deriv f s ^ 2 : ℝ) : ℂ),
deriv φ s * ((deriv f s : ℝ) : ℂ) / ((1 + deriv f s ^ 2 : ℝ) : ℂ)]
/-- `φ ∈ BC^{1,α}(Γ) = {φ ∈ BC(Γ) : Grad φ ∈ BC^{0,α}(Γ)}` (Section 2, p. 3). -/
def IsBC1AlphaGam (f : ℝ → ℝ) (α : ℝ) (φ : ℝ → ℂ) : Prop :=
IsBCGam φ ∧ Differentiable ℝ φ ∧ IsBC0AlphaGam f α (surfGrad f φ)
/-- `‖φ‖_{∞,Γ} = sup_Γ |φ|` (Section 2, p. 3); used only for bounded `φ`. -/
def supNormGam {E : Type*} [NormedAddCommGroup E] (φ : ℝ → E) : ℝ := ⨆ s, ‖φ s‖
/-- `‖φ‖_{0,α,Γ} = ‖φ‖_{∞,Γ} + sup_{x ≠ y} |φ(x) - φ(y)| / |x - y|^α` (Section 2, p. 3); used
only for `φ ∈ BC^{0,α}(Γ)`. -/
def holderNorm0 {E : Type*} [NormedAddCommGroup E] (f : ℝ → ℝ) (α : ℝ) (φ : ℝ → E) : ℝ :=
supNormGam φ + ⨆ p : {p : ℝ × ℝ // p.1 ≠ p.2},
‖φ p.1.1 - φ p.1.2‖ / ‖gpt f p.1.1 - gpt f p.1.2‖ ^ α
/-- `‖φ‖_{1,α,Γ} = ‖φ‖_{∞,Γ} + ‖Grad φ‖_{0,α,Γ}` (Section 2, p. 3). -/
def holderNorm1 (f : ℝ → ℝ) (α : ℝ) (φ : ℝ → ℂ) : ℝ :=
supNormGam φ + holderNorm0 f α (surfGrad f φ)
/-! ### Regularity classes on subsets of `ℝ²` (Section 2, p. 3) -/
/-- `u ∈ C¹(S)` on a closed set `S`: `u` and its gradient, `Du`, are continuous on `S`, and `Du`
is the derivative of `u` at interior points. -/
def IsC1On (S : Set R2) (u : R2 → ℂ) (Du : R2 → (R2 →L[ℝ] ℂ)) : Prop :=
ContinuousOn u S ∧ ContinuousOn Du S ∧ ∀ x ∈ interior S, HasFDerivAt u (Du x) x
/-- `u ∈ BC¹(S)` (Section 2, p. 3): `u ∈ C¹(S)` with `u` and its gradient `Du` bounded on `S`. -/
def IsBC1On (S : Set R2) (u : R2 → ℂ) (Du : R2 → (R2 →L[ℝ] ℂ)) : Prop :=
IsC1On S u Du ∧ ∃ C, ∀ x ∈ S, ‖u x‖ ≤ C ∧ ‖Du x‖ ≤ C
/-- The closed strip `closure(D^+) \ U_h^+` between `Γ` and `Γ_h` (TSP, Section 2, p. 6). -/
def stripPlus (f : ℝ → ℝ) (h : ℝ) : Set R2 := closure (Dplus f) \ Uplus h
/-- The closed strip `closure(D^-) \ U_h^-` between `Γ_h` and `Γ` (TSP, Section 2, p. 6). -/
def stripMinus (f : ℝ → ℝ) (h : ℝ) : Set R2 := closure (Dminus f) \ Uminus h
/-- The Helmholtz equation `Δv + k²v = 0` at every point of `G`. -/
def IsHelmholtzOn (G : Set R2) (k : ℝ) (v : R2 → ℂ) : Prop :=
∀ x ∈ G, Laplacian.laplacian v x + ((k : ℂ) ^ 2) * v x = 0
/-! ### Radiation conditions (Definition 2.2, p. 5) -/
/-- Definition 2.2: `v ∈ UPRC(G, k)`: `v` solves the Helmholtz equation in `G`, and for some
`h` and `φ ∈ L^∞(Γ_h)`, `U_h^+ ⊆ G` and `v(x) = 2 ∫_{Γ_h} ∂Φ_k(x,y)/∂y₂ φ(y) ds(y)` on `U_h^+`. -/
def IsUPRC (G : Set R2) (k : ℝ) (v : R2 → ℂ) : Prop :=
IsHelmholtzOn G k v ∧
∃ (h : ℝ) (φ : ℝ → ℂ), MemLp φ ⊤ volume ∧ Uplus h ⊆ G ∧
∀ x ∈ Uplus h, v x = 2 * ∫ t, dPhi_dy2 k x (pt t h) * φ t
/-- Definition 2.2: `v ∈ DPRC(G, k)`: as `IsUPRC` with `θ = -1` and `U_h^-` in place of `U_h^+`. -/
def IsDPRC (G : Set R2) (k : ℝ) (v : R2 → ℂ) : Prop :=
IsHelmholtzOn G k v ∧
∃ (h : ℝ) (φ : ℝ → ℂ), MemLp φ ⊤ volume ∧ Uminus h ⊆ G ∧
∀ x ∈ Uminus h, v x = -2 * ∫ t, dPhi_dy2 k x (pt t h) * φ t
/-! ### The Transmission Scattering Problem (Section 2, p. 6) -/
/-- Section 2, p. 6: `(u₊, u₋)` solves the TSP for the scatterer `(Γ, k₋, k₊, μ)` with data
`(g₁, g₂)` (given as functions of `s`, the point `(s, f(s))` of `Γ`):
`u₊ ∈ C²(D^+) ∩ BC¹(closure(D^+) \ U_{h₊}^+)` for some `h₊ > f^+` and
`u₋ ∈ C²(D^-) ∩ BC¹(closure(D^-) \ U_{h₋}^-)` for some `h₋ < f^-`, with gradients `Du₊, Du₋`
continuous up to `Γ`, and (i) `Δu_± + k_±² u_± = 0` in `D^±`; (ii) `u₊ - u₋ = g₁` and
`∂_n u₊ - μ ∂_n u₋ = g₂` on `Γ`; (iii) `sup_{D^±} |x₂|^β |u_±(x)| < ∞` for some `β ∈ ℝ`;
(iv) `u₊ ∈ UPRC(D^+, k₊)` and `u₋ ∈ DPRC(D^-, k₋)`. The data's Hölder class is a hypothesis of
the theorems that use it, not part of this predicate. -/
def IsTSPSolution (f : ℝ → ℝ) (kp km μ : ℝ) (g1 g2 : ℝ → ℂ) (up um : R2 → ℂ) : Prop :=
∃ (hp hm : ℝ) (Dup Dum : R2 → (R2 →L[ℝ] ℂ)),
fsup f < hp ∧ hm < finf f ∧
ContDiffOn ℝ 2 up (Dplus f) ∧ ContDiffOn ℝ 2 um (Dminus f) ∧
IsBC1On (stripPlus f hp) up Dup ∧ IsBC1On (stripMinus f hm) um Dum ∧
IsHelmholtzOn (Dplus f) kp up ∧ IsHelmholtzOn (Dminus f) km um ∧
(∀ s, up (gpt f s) - um (gpt f s) = g1 s) ∧
(∀ s, Dup (gpt f s) (normal f s) - (μ : ℂ) * Dum (gpt f s) (normal f s) = g2 s) ∧
(∃ β C : ℝ, (∀ x ∈ Dplus f, |x 1| ^ β * ‖up x‖ ≤ C) ∧
∀ x ∈ Dminus f, |x 1| ^ β * ‖um x‖ ≤ C) ∧
IsUPRC (Dplus f) kp up ∧ IsDPRC (Dminus f) km um
/-- The scatterer conditions of Theorems 3.3, 4.2 and 4.3: `k₊, k₋, μ > 0`,
`(μ - 1)(k₊² - k₋² μ) ≥ 0` and `k₊² ≠ k₋² μ`. -/
def ParamCond (kp km μ : ℝ) : Prop :=
0 < kp ∧ 0 < km ∧ 0 < μ ∧ 0 ≤ (μ - 1) * (kp ^ 2 - km ^ 2 * μ) ∧ kp ^ 2 ≠ km ^ 2 * μ
/-- Problem (2.1): the TSP data generated by an incident field `uⁱ`:
`g₁ = -uⁱ|_Γ`, `g₂ = -∂_n uⁱ|_Γ` (so that `u₊ + uⁱ = u₋`, `∂_n u₊ + ∂_n uⁱ = μ ∂_n u₋`). -/
def incData (f : ℝ → ℝ) (ui : R2 → ℂ) : (ℝ → ℂ) × (ℝ → ℂ) :=
(fun s => -ui (gpt f s), fun s => -(fderiv ℝ ui (gpt f s) (normal f s)))
/-- The incident point source `Φ_k(·, z)` (Sections 5 and 6). -/
def pointSource (k : ℝ) (z : R2) : R2 → ℂ := fun x => Phi k x z
/-- The incident hypersingular point source `∇_x Φ_k(x, z) · ν` (Theorem 5.3, p. 21). -/
def dipoleSource (k : ℝ) (z ν : R2) : R2 → ℂ := fun x => fderiv ℝ (fun x' => Phi k x' z) x ν
/-! ### Impedance Green's functions and the integral operators (eq. (2.8); Section 4) -/
/-- The reflection `y'_a = (y₁, 2a - y₂)` of `y` in the line `Γ_a` (Section 2, p. 7). -/
def refl (a : ℝ) (y : R2) : R2 := pt (y 0) (2 * a - y 1)
/-- Section 2, p. 7: `P_k^±(z) = (|z| e^{ik|z|}/π) ∫₀^∞ t^{-1/2} e^{-k|z|t} [|z| ± z₂(1+it)] /
(√(t-2i) [|z|t - i(|z| ± z₂)]²) dt`, with `σ = 1` for `+` and `σ = -1` for `-`, and the principal
square root (`-π/2 < arg √(t-2i) < 0`). -/
def Pimp (k σ : ℝ) (z : R2) : ℂ :=
((‖z‖ : ℂ) * Complex.exp (Complex.I * k * ‖z‖) / Real.pi) *
∫ t in Set.Ioi (0 : ℝ),
((t ^ (-(1 / 2 : ℝ)) * Real.exp (-k * ‖z‖ * t) : ℝ) : ℂ) *
((‖z‖ : ℂ) + σ * z 1 * (1 + Complex.I * t)) /
((((t : ℂ) - 2 * Complex.I) ^ (1 / 2 : ℂ)) *
((‖z‖ : ℂ) * t - Complex.I * (‖z‖ + σ * z 1)) ^ 2)
/-- Eq. (2.8): the impedance Green's function of the half plane `U_a^±`,
`G_k^{±(I)}(x,y;a) = Φ_k(x,y) + Φ_k(x,y'_a) + P_k^±(x - y'_a)` (`σ = ±1`). -/
def Gimp (k a σ : ℝ) (x y : R2) : ℂ :=
Phi k x y + Phi k x (refl a y) + Pimp k σ (x - refl a y)
/-- The kernel `K(x, y)` at `x = (s, f(s))`, `y = (t, f(t))`. -/
def kerGam (f : ℝ → ℝ) (K : R2 → R2 → ℂ) (s t : ℝ) : ℂ := K (gpt f s) (gpt f t)
/-- The kernel `∂K(x,y)/∂n'(y)` (`n' = normalUp`, into `D^+`) at `x = (s, f(s))`, `y = (t, f(t))`. -/
def dnyGam (f : ℝ → ℝ) (K : R2 → R2 → ℂ) (s t : ℝ) : ℂ :=
fderiv ℝ (fun y => K (gpt f s) y) (gpt f t) (normalUp f t)
/-- The kernel `∂K(x,y)/∂n'(x)` (`n' = normalUp`, into `D^+`) at `x = (s, f(s))`, `y = (t, f(t))`. -/
def dnxGam (f : ℝ → ℝ) (K : R2 → R2 → ℂ) (s t : ℝ) : ℂ :=
fderiv ℝ (fun x => K x (gpt f t)) (gpt f s) (normalUp f s)
/-- The kernel `∂²K(x,y)/∂n'(x)∂n'(y)` (`n' = normalUp`, into `D^+`) at `x = (s, f(s))`, `y = (t, f(t))`. -/
def dnxdnyGam (f : ℝ → ℝ) (K : R2 → R2 → ℂ) (s t : ℝ) : ℂ :=
fderiv ℝ (fun x => fderiv ℝ (fun y => K x y) (gpt f t) (normalUp f t)) (gpt f s) (normalUp f s)
/-- The boundary integral `∫_Γ k(x, y) φ(y) ds(y)` at `x = (s, f(s))`. -/
def bdryInt (f : ℝ → ℝ) (ker : ℝ → ℝ → ℂ) (φ : ℝ → ℂ) (s : ℝ) : ℂ :=
∫ t, ker s t * φ t * (arcDen f t : ℂ)
/-- Section 4, p. 13: the single-layer potential `(𝒮_{k,a}^± ψ)(x) = ∫_Γ G_k^{±(I)}(x,y;a) ψ(y) ds(y)`
(`σ = ±1`). -/
def singleLayer (f : ℝ → ℝ) (k a σ : ℝ) (ψ : ℝ → ℂ) (x : R2) : ℂ :=
∫ t, Gimp k a σ x (gpt f t) * ψ t * (arcDen f t : ℂ)
/-- Section 4, p. 13: the double-layer potential
`(𝒟_{k,a}^± φ)(x) = ∫_Γ ∂G_k^{±(I)}(x,y;a)/∂n'(y) φ(y) ds(y)` (`σ = ±1`), with the normal
`n' = normalUp` pointing into `D^+` (see `normalUp`). -/
def doubleLayer (f : ℝ → ℝ) (k a σ : ℝ) (φ : ℝ → ℂ) (x : R2) : ℂ :=
∫ t, fderiv ℝ (fun y => Gimp k a σ x y) (gpt f t) (normalUp f t) * φ t * (arcDen f t : ℂ)
/-- Section 4, p. 14 (and eq. (4.14), p. 16): the operator
`M = [[K⁺ - μ⁻¹K⁻ + (1+μ)(2μ)⁻¹ I, S⁺ - μ⁻¹S⁻], [T⁻ - T⁺, K'⁻ - K'⁺ + I]]` applied to `χ = (φ, ψ)`,
where `⁺` stands for `k₊` and `G_{k₊}^{+(I)}(·,·;h₋)`, and `⁻` for `k₋` and
`G_{k₋}^{-(I)}(·,·;h₊)`. `S, K, K'` have kernels `G`, `∂G/∂n'(y)`, `∂G/∂n'(x)` with the normal
`n' = normalUp` into `D^+`; the difference
`T⁻ - T⁺` is the integral operator with kernel `∂²(G⁻ - G⁺)/∂n'(x)∂n'(y)`, the form in which it acts
on `[BC(Γ)]²` ([DTS03, Section 4]). -/
def Mop (f : ℝ → ℝ) (kp km μ hm hp : ℝ) (φ ψ : ℝ → ℂ) : (ℝ → ℂ) × (ℝ → ℂ) :=
let Gp : R2 → R2 → ℂ := Gimp kp hm 1
let Gm : R2 → R2 → ℂ := Gimp km hp (-1)
(fun s => bdryInt f (dnyGam f Gp) φ s - (μ : ℂ)⁻¹ * bdryInt f (dnyGam f Gm) φ s +
(((1 + μ) / (2 * μ) : ℝ) : ℂ) * φ s +
bdryInt f (kerGam f Gp) ψ s - (μ : ℂ)⁻¹ * bdryInt f (kerGam f Gm) ψ s,
fun s => bdryInt f (dnxdnyGam f (fun x y => Gm x y - Gp x y)) φ s +
bdryInt f (dnxGam f Gm) ψ s - bdryInt f (dnxGam f Gp) ψ s + ψ s)
/-! ### Sobolev quantities and domains (Sections 5 and 6) -/
/-- `g` is the weak derivative of `u` in direction `v` on the open set `U`:
`∫_U u ∂_v φ = -∫_U g φ` for every `φ ∈ C_c^∞(U)`. -/
def IsWeakDeriv (U : Set R2) (u : R2 → ℂ) (v : R2) (g : R2 → ℂ) : Prop :=
∀ φ : R2 → ℝ, ContDiff ℝ (⊤ : ℕ∞) φ → HasCompactSupport φ → tsupport φ ⊆ U →
∫ x in U, u x * ((fderiv ℝ φ x v : ℝ) : ℂ) = -∫ x in U, g x * (φ x : ℂ)
/-- Lemma 5.1, p. 17: `u ∈ W^{2,p}(U)`: `u`, its weak first derivatives and its weak second
derivatives belong to `L^p(U)`. -/
def MemW2p (U : Set R2) (p : ENNReal) (u : R2 → ℂ) : Prop :=
MemLp u p (volume.restrict U) ∧
∀ i : Fin 2, ∃ gi : R2 → ℂ, MemLp gi p (volume.restrict U) ∧
IsWeakDeriv U u (EuclideanSpace.single i 1) gi ∧
∀ j : Fin 2, ∃ gij : R2 → ℂ, MemLp gij p (volume.restrict U) ∧
IsWeakDeriv U gi (EuclideanSpace.single j 1) gij
/-- `‖w‖_{H¹(D)} = (∫_D |w|² + |∂₁w|² + |∂₂w|²)^{1/2}` for `w` continuously differentiable on the
open set `D` (Section 5), with value `∞` when the integral diverges. -/
def h1Norm (D : Set R2) (w : R2 → ℂ) : ENNReal :=
(∫⁻ x in D, ‖w x‖ₑ ^ 2 + ‖fderiv ℝ w x (EuclideanSpace.single 0 1)‖ₑ ^ 2 +
‖fderiv ℝ w x (EuclideanSpace.single 1 1)‖ₑ ^ 2) ^ (1 / 2 : ℝ)
/-- `‖w‖_{L²(D)}` (Theorem 5.3). -/
def l2Norm (D : Set R2) (w : R2 → ℂ) : ENNReal := eLpNorm w 2 (volume.restrict D)
/-- Theorems 5.2 and 6.1: `D` is a bounded `C^{2,λ}` domain: a bounded connected open set which
near each boundary point is, in suitable rotated (or reflected) coordinates centred at that point,
the region below the graph of a `C^{2,λ}` function. -/
def IsC2LambdaDomain (lam : ℝ) (D : Set R2) : Prop :=
IsOpen D ∧ IsConnected D ∧ Bornology.IsBounded D ∧
∀ p ∈ frontier D, ∃ (Q : R2 ≃ₗᵢ[ℝ] R2) (r : ℝ) (g : ℝ → ℝ), 0 < r ∧ IsC2Lambda lam g ∧
∀ x ∈ Metric.ball p r, (x ∈ D ↔ (Q (x - p)) 1 < g ((Q (x - p)) 0))
/-- `ν` is the outward unit normal of `D` at the boundary point `y`: points near `y` strictly on
the side of `-ν` (in a cone of any opening below `π`) lie in `D`, those on the side of `ν` do not. -/
def IsOutwardNormal (D : Set R2) (y ν : R2) : Prop :=
‖ν‖ = 1 ∧ ∀ ε > (0 : ℝ), ∃ r > (0 : ℝ), ∀ z ∈ Metric.ball y r, z ≠ y →
(@inner ℝ R2 _ (z - y) ν ≤ -ε * ‖z - y‖ → z ∈ D) ∧
(ε * ‖z - y‖ ≤ @inner ℝ R2 _ (z - y) ν → z ∉ D)
open Classical in
/-- The outward unit normal `n(y)` of `D` at `y ∈ ∂D` (Theorem 5.3, p. 21). -/
def outwardNormal (D : Set R2) (y : R2) : R2 :=
if h : ∃ ν, IsOutwardNormal D y ν then h.choose else 0
/-- Theorem 5.3, p. 21: `v_j(x) = 2μ(1-μ)/(μ+1)² ∫_{∂D₀} ∂Φ₀(x,y)/∂n(y)
(∇_xΦ₀(y,x_j) + ∇_xΦ₀(y,y_j))·n(x₀) ds(y)`, with `ds` the arc length (one-dimensional Hausdorff
measure) on `∂D₀` and `n(y)` the outward normal of `D₀`. -/
def vCorr (μ : ℝ) (D0 : Set R2) (n0 xj yj x : R2) : ℂ :=
((2 * μ * (1 - μ) / (μ + 1) ^ 2 : ℝ) : ℂ) *
∫ y, fderiv ℝ (fun y' => Phi 0 x y') y (outwardNormal D0 y) *
(dipoleSource 0 xj n0 y + dipoleSource 0 yj n0 y)
∂((Measure.hausdorffMeasure 1 : Measure R2).restrict (frontier D0))
/-- Section 6, p. 22: the measurement segment `Γ_{c,d} = {(x₁, c) : |x₁| ≤ d}`. -/
def measSeg (c d : ℝ) : Set R2 := {x | x 1 = c ∧ |x 0| ≤ d}
end RoughSurfaceScattering
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Throughout, is the Euclidean plane, and a point is written . Three conventions apply to every declaration below:
- Derivatives. For a function , and denote the derivative or Fréchet derivative where it exists. At points where is not differentiable, the value is taken to be .
- Integrals. Every of a vector- or complex-valued function is an ordinary Lebesgue (Bochner) integral. It is assigned the value when the integrand is not integrable. No principal value or finite-part regularization is ever used.
- Real power functions. These follow and for .
R2, pt. R2 is the Euclidean plane with the Euclidean norm . For real numbers , pt a b is the point .
besselJ0. For every real (no sign restriction),
This series converges absolutely for all . In particular, .
besselY0. For every real ,
Here is the Euler–Mascheroni constant and . The function is defined for all real , with these edge cases:
- For , the logarithm is .
- For , the logarithm term is taken to be , so .
- As a consequence, .
hankel01. For every real , , with as above (including their values at ).
Phi. For real and points :
No sign condition is placed on . Edge cases:
- For and , the value is .
- For and , the value is .
- For , .
dPhi_dy2. For real and , this is the ordinary derivative of at . It is if that function is not differentiable there.
Uplus, Uminus. For real :
- (open upper half-plane);
- (open lower half-plane).
Dplus, Dminus. For an arbitrary function (no continuity assumed):
- ;
- .
finf, fsup. For :
- , which is taken to be if is unbounded below;
- , which is taken to be if is unbounded above.
gpt. For and real , this is the point on the graph of .
arcDen. , where wherever is not differentiable.
arcMeasure. This is the measure on with density with respect to Lebesgue measure, i.e. .
normal. For real :
This vector has unit length and a negative second component.
normalUp. , which has a positive second component.
IsBC1Alpha. For real (unrestricted), satisfies this predicate when all of the following hold:
- is differentiable at every point;
- is continuous;
- for all , for some constant ;
- for all , for some constant ;
- there is a with for all .
The Hölder condition is global, not restricted to . Consequences at particular values of :
- For , the Hölder condition follows from boundedness of .
- For , the Hölder condition forces to be constant. Together with boundedness of , this forces to be constant.
IsC2Lambda. For real (unrestricted), satisfies this predicate when:
- is twice continuously differentiable;
- there is a with for all .
No boundedness of is required. For , is forced to be constant.
IsBCGam. A function satisfies this predicate when it is continuous and bounded ( for all ).
IsBC0AlphaGam. Let be arbitrary, real, and for a normed space . The predicate holds when:
- is continuous;
- is bounded;
- there is a with
surfGrad. For and , this is the vector in
Both and are set to where they do not exist.
IsBC1AlphaGam. satisfies this predicate when:
- is continuous and bounded;
- is differentiable at every real point;
- satisfies
IsBC0AlphaGamfor : it is continuous, bounded, and Hölder with exponent with respect to the distance .
supNormGam. . If is unbounded, the value is taken to be .
holderNorm0. This is the quantity
Each supremum is replaced by if the corresponding set of values is unbounded above. The denominator is never zero, because gives distinct points.
holderNorm1. . Here is computed with the Euclidean norm of , and the same junk- convention applies to unbounded suprema.
IsC1On. For a set , , and a field assigning to each point a real-linear map , the predicate holds when:
- is continuous on ;
- is continuous on ;
- at each interior point of , is Fréchet differentiable with derivative .
At non-interior points of , is tied to only through continuity of on . If has empty interior, is any continuous field on .
IsBC1On. IsC1On holds, and there is one constant with and (operator norm) for all .
stripPlus, stripMinus. For real :
- ;
- .
The bar denotes topological closure.
IsHelmholtzOn. For , real , and :
Here is the sum of the two pure second partial derivatives, computed from the second Fréchet derivative. That derivative is where is not twice differentiable, so at such points the condition reduces to . No sign condition is placed on , and need not be open.
IsUPRC. For , real , and , the predicate holds when satisfies IsHelmholtzOn on with , and there exist a real and such that:
- is essentially bounded and measurable with respect to Lebesgue measure on ;
- ;
- for every with ,
The partial derivative is the one from dPhi_dy2. If the integrand is not integrable, the right side is .
IsDPRC. The same as IsUPRC with two changes: replaces (both in the inclusion and in the range of ), and the factor becomes .
IsTSPSolution. The data are an arbitrary , reals (no sign conditions), , and . The predicate asserts that there exist reals and derivative fields (maps from to real-linear maps ) such that all of the following hold:
- Line positions. and , with from
fsup/finf. These are junk value when is unbounded on the relevant side. - Interior regularity. is on and is on . If is discontinuous, these sets need not be open, and the property is then relative to the set.
- Bounded on the strips.
IsBC1Onholds for on , and for on . - Helmholtz equations. on and on , in the sense of
IsHelmholtzOn. - Jump of values. For every real , .
- Jump of normal derivatives. For every real ,
where is the downward unit normal from normal. The fields at points of are linked to the derivatives of only through condition 3.
7. Weighted bound. There are reals and , the same for both sides, with on and on . The exponent is any real, possibly negative. At the weight equals if and otherwise.
8. Radiation conditions. satisfies IsUPRC on with , and satisfies IsDPRC on with .
No regularity of , , or is assumed.
ParamCond. For reals :
incData. For and , this is the pair of functions of :
Here is the downward unit normal, and the Fréchet derivative is where is not differentiable.
pointSource. For real and , this is the function .
dipoleSource. For real and ( not required to be a unit vector), this is the function
the directional derivative in direction of at . It is where that function is not differentiable.
refl. For real , , the reflection of across the horizontal line .
Pimp. For reals (both unrestricted; is not required to be ) and :
The power is the principal branch . Edge cases:
- At the value is .
- If the integrand is not Lebesgue integrable on , the integral is taken to be . This happens for instance when and , and possibly when .
Gimp. For reals and :
where .
kerGam. For a kernel , this is .
dnyGam. . This is the Fréchet derivative in the second argument at the point , applied to the upward normal . It is where is not differentiable there.
dnxGam. . This is the derivative in the first argument, applied to , again with value where the derivative fails to exist.
dnxdnyGam. For each , first form the function
The value is the Fréchet derivative of this function at , applied to . Each derivative is where it does not exist.
bdryInt. For a kernel and :
This is an ordinary Lebesgue integral with no principal value. It is when the integrand is not integrable, which in particular covers kernels that are non-integrably singular at .
singleLayer. For reals , density , and any :
The value is when the integrand is not integrable.
doubleLayer. For reals , density , and any :
using the upward normal . The value is when the integrand is not integrable.
Mop. The arguments are reals (in that order, no constraints) and . Set
So reflects across with wavenumber , and reflects across with wavenumber . Write for bdryInt with kernel and density , evaluated at . The output is the pair of functions of :
The kernels are formed as in kerGam, dnyGam, dnxGam, dnxdnyGam, all with the upward normal . Every integral is an ordinary Lebesgue integral, set to when not integrable. If , both and are taken to be .
IsWeakDeriv. The data are a set (not required open), , and a direction . The predicate asserts: for every real-valued, infinitely differentiable, compactly supported on whose closed support lies in ,
No local integrability of or is assumed. Either integral is if its integrand is not integrable.
MemW2p. For , an exponent , and , the predicate holds when:
- ;
- for each there is that is a weak derivative of on in direction , in the sense of
IsWeakDeriv; - for this and each , there is that is a weak derivative of in direction .
For , membership in amounts to almost-everywhere strong measurability only.
h1Norm. For and , this is the extended nonnegative number
The partials come from the Fréchet derivative ( where is not differentiable). The integral is a lower Lebesgue integral, so no measurability is required. The value is if the integral diverges.
l2Norm. .
IsC2LambdaDomain. For real , a set satisfies this predicate when:
- is open, connected (hence nonempty), and bounded;
- for every boundary point there exist a linear isometry of (rotation or reflection), a radius , and satisfying
IsC2Lambdawith , such that for all with ,
IsOutwardNormal. For and ( not required to lie on ), the predicate holds when and, for every , there is such that every with satisfies both:
- if , then ;
- if , then .
For both conditions are vacuous.
outwardNormal. is some satisfying IsOutwardNormal for , selected by choice, if such a exists. Otherwise it is the zero vector.
vCorr. For real , a set , and points ( not required to be a unit vector):
The ingredients are:
- ;
- the first factor is the derivative in the second argument at , in the direction
outwardNormal, which is the zero vector where no outward normal exists; - the bracketed terms are derivatives of and at in direction ;
- is one-dimensional Hausdorff measure (arc length) restricted to the topological boundary .
The integral is if not integrable. If , the coefficient is taken to be .
measSeg. For reals , . This set is empty if .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.