Locally rough surface scattering (Neumann case): problem (NP), layer potentials, the space and the operators ,
DefinitionArxiv1901_08703_BasicObjects of Sections 1, 2, 3.1, 4 and Remark 5.2 of Qu, Zhang and Zhang (2019), A novel integral equation for scattering by locally rough surfaces and application to the inverse problem: the Neumann case.
- Surface and incident waves. A profile with compact support defines the locally rough surface , the domain above it and below it. On , and is the unit normal directed into . For and , the incident wave is and the wave reflected by the plane is . The Neumann data is . .
- Bessel and Hankel functions. for and . with the harmonic numbers, , and is the fundamental solution of .
- The Neumann problem (NP). solves (NP) with data if with in ; , i.e. for every ; satisfies the Sommerfeld radiation condition as in ; and on in the weak sense
is the far-field pattern of on a set of directions if uniformly for . is a Dirichlet eigenvalue of in an open set if some , not identically zero, satisfies in and on . 4. Geometry of the integral equation. is such that the perturbation lies in . Then , , , and the corners are , . The auxiliary domain is a bounded open set with whose boundary is a closed curve. It is given with a -periodic, regular, positively oriented parametrisation , and on points out of . On , points out of . 5. The space . . A density is represented by : the Fourier coefficients of are . Integrals over are then . 6. Potentials and the operators , (eqs. (2.10), (2.14)-(2.16), (2.35)). The field is and its far-field pattern is , where . The rows of are on , on and on . The third row is taken as an element of through its Fourier coefficients. acts on coefficients through the matrix . . is the upper-left block of . The corner part of keeps the kernel of only where and are both within distance of , or both within of . 7. Inverse problem (Section 4). . The point-source Neumann data is with . 8. Spline basis (Remark 5.2). , , , and .
Formalization Note Points of are elements of EuclideanSpace ℝ (Fin 2). Functions on and are functions of the parameters and , with the arc-length measures and . spaces are Mathlib's Lp, and products carry the maximum norm, which is equivalent to the paper's sum norm. A solution of (NP) is taken in its representative that is in ; every solution has one by interior elliptic regularity. With that representative the weak gradient is the classical gradient.
import Mathlib
/-!
F. Qu, B. Zhang and H. Zhang, *A novel integral equation for scattering by locally rough surfaces
and application to the inverse problem: the Neumann case*, arXiv:1901.08703v1 (2019):
the locally rough surface, the incident and reflected plane waves, the Neumann problem (NP) and
the far-field pattern of Sections 1 and 2; the fundamental solution, the layer potentials, the
space `X`, the operator `A` and the right-hand side `G` of eqs. (2.4)-(2.16); the Dirichlet
eigenvalues of Theorem 2.4 and Remark 2.5; the far-field formulas (2.5), (2.33), (2.36); the
operator `B` of Remark 2.9 and its corner split (3.1); the point sources of Section 4; and the
spline basis of Remark 5.2.
Points of `ℝ²` are elements of `EuclideanSpace ℝ (Fin 2)`; the paper's `x = (x₁, x₂)` is
`x 0 = x₁`, `x 1 = x₂`. A function on `Γ = {(t, h t)}` or on `Γ_R` is written as a function of the
parameter `t = x₁`; a function on the lower semicircle `∂B_R^-` as a function of the angle
`θ ∈ (π, 2π)`; a function (or distribution) `φ₃` on the auxiliary curve `Γ̃ = {z(s)}` through the
Fourier coefficients of `s ↦ φ₃(z(s)) |z'(s)|`.
-/
open MeasureTheory
noncomputable section
namespace Arxiv1901_08703
/-- 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. 4: the reflection `x^{re} = (x₁, -x₂)` of `x` about the `x₁`-axis. -/
def refl (x : R2) : R2 := pt (x 0) (-(x 1))
/-! ### Bessel functions and the fundamental solution (Section 2, p. 5; Remark 2.5, p. 13) -/
/-- The Bessel function of the first kind of order `n ∈ ℕ`,
`J_n(r) = ∑_{m ≥ 0} (-1)^m / (m! (m+n)!) (r/2)^{2m+n}` (Remark 2.5, p. 13; `J₀` enters `Φ_k`). -/
def besselJNat (n : ℕ) (r : ℝ) : ℝ :=
∑' m : ℕ, (-1 : ℝ) ^ m / ((m.factorial : ℝ) * ((m + n).factorial : ℝ)) * (r / 2) ^ (2 * m + n)
/-- Remark 2.5, p. 13: the Bessel function `J_n` of integer order `n`, with the standard
convention `J_{-n} = (-1)^n J_n` for `n ∈ ℕ`. -/
def besselJ (n : ℤ) (r : ℝ) : ℝ :=
if 0 ≤ n then besselJNat n.toNat r else (-1 : ℝ) ^ n.natAbs * besselJNat n.natAbs r
/-- 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 (Section 2, p. 5,
through `Φ_k`). -/
def besselY0 (r : ℝ) : ℝ :=
2 / Real.pi * (Real.log (r / 2) + Real.eulerMascheroniConstant) * besselJNat 0 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`
(Section 2, p. 5). -/
def hankel01 (r : ℝ) : ℂ := (besselJNat 0 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‖)
/-- Eq. (2.7), p. 5: the normal derivative `∂Φ_k(x,y)/∂ν(x) = ∇_x Φ_k(x,y) · ν` with respect to
the first variable, at the point `x`, in the direction of the normal vector `ν` at `x`. -/
def dPhi (k : ℝ) (x nu y : R2) : ℂ := fderiv ℝ (fun w => Phi k w y) x nu
/-! ### The locally rough surface and the Neumann problem (Sections 1 and 2, pp. 1-4) -/
/-- 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: the domain `D_+ = {(x₁, x₂) : x₂ > h(x₁)}` above `Γ`. -/
def Dplus (h : ℝ → ℝ) : Set R2 := {x | h (x 0) < x 1}
/-- Section 2, p. 4: the domain `D_- = {(x₁, x₂) : x₂ < h(x₁)}` below `Γ`. -/
def Dminus (h : ℝ → ℝ) : Set R2 := {x | x 1 < h (x 0)}
/-- The point `(t, h(t))` of `Γ`. -/
def gPt (h : ℝ → ℝ) (t : ℝ) : R2 := pt t (h t)
/-- The arc-length density `√(1 + h'(t)²)` of `Γ` in the parameter `t = x₁`. -/
def gSpeed (h : ℝ → ℝ) (t : ℝ) : ℝ := Real.sqrt (1 + deriv h t ^ 2)
/-- Section 1, p. 2: the unit normal `ν = (-h'(t), 1)/√(1 + h'(t)²)` to `Γ` at `(t, h(t))`,
directed into `D_+`; on `Γ_R` it is the unit normal of `∂D_R^-` pointing out of `D_R^-`
(Section 2, p. 5). -/
def gNormal (h : ℝ → ℝ) (t : ℝ) : R2 := (gSpeed h t)⁻¹ • pt (-deriv h t) 1
/-- Section 1, p. 2: `d ∈ 𝕊¹_- = {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 `𝕊¹_+ = {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;d) = 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;d) = exp(i k (x₁ sin θ + x₂ cos θ))` for `d = (sin θ, -cos θ)`, that is
`u^r(x;d) = 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 Neumann data `f = -(∂u^i/∂ν + ∂u^r/∂ν)` at the point `(t, h(t))` of `Γ`,
`ν` the unit normal directed into `D_+`. -/
def incData (k : ℝ) (d : R2) (h : ℝ → ℝ) (t : ℝ) : ℂ :=
-(fderiv ℝ (fun x => uInc k d x + uRefl k d x) (gPt h t) (gNormal h t))
/-- `∇u(x) · ∇v(x) = ∂₁u ∂₁v + ∂₂u ∂₂v` (bilinear, without complex conjugation). -/
def gradDot (u v : R2 → ℂ) (x : R2) : ℂ :=
fderiv ℝ u x (pt 1 0) * fderiv ℝ v x (pt 1 0) + fderiv ℝ u x (pt 0 1) * fderiv ℝ v x (pt 0 1)
/-- `|∇u(x)|² = |∂₁u(x)|² + |∂₂u(x)|²`. -/
def gradSq (u : R2 → ℂ) (x : R2) : ℝ :=
‖fderiv ℝ u x (pt 1 0)‖ ^ 2 + ‖fderiv ℝ u x (pt 0 1)‖ ^ 2
/-- Section 2, p. 4: `u ∈ H¹_loc(D)` for a function `u` that is `C¹` in the open set `D` (so that
its weak gradient is its classical gradient): `∫_{D ∩ B_ρ} (|u|² + |∇u|²) dx < ∞` for every
`ρ`, i.e. `u ∈ H¹(D ∩ B)` for every bounded ball `B`, up to the boundary of `D`. -/
def IsH1Loc (D : Set R2) (u : R2 → ℂ) : Prop :=
∀ ρ : ℝ, IntegrableOn (fun x => ‖u x‖ ^ 2 + gradSq u x) (D ∩ Metric.ball 0 ρ)
/-- Theorem 2.7, p. 13: the norm `‖u‖_{H¹(D)} = (∫_D (|u|² + |∇u|²) dx)^{1/2}`. -/
def h1Norm (D : Set R2) (u : R2 → ℂ) : ℝ := Real.sqrt (∫ x in D, ‖u x‖ ^ 2 + gradSq u x)
/-- The norm `‖f‖_{L²(Γ)} = (∫_ℝ |f(t)|² √(1 + h'(t)²) dt)^{1/2}` of a function on `Γ`
written in the parameter `t` (Theorem 2.4, eq. (2.17), and Theorem 2.7, eq. (2.32)). -/
def l2Gam (h : ℝ → ℝ) (f : ℝ → ℂ) : ℝ := Real.sqrt (∫ t, ‖f t‖ ^ 2 * gSpeed h t)
/-- A test function: `φ ∈ C_c^∞(ℝ²)`, complex valued. -/
def IsTestFn (φ : R2 → ℂ) : Prop := ContDiff ℝ (⊤ : ℕ∞) φ ∧ HasCompactSupport φ
/-- Eq. (1.1), p. 2: `u ∈ C²(D)` and `Δu + k²u = 0` in `D`. -/
def IsHelmholtzOn (D : Set R2) (k : ℝ) (u : R2 → ℂ) : Prop :=
ContDiffOn ℝ 2 u D ∧ ∀ x ∈ D, Laplacian.laplacian u x + (k : ℂ) ^ 2 * u x = 0
/-- 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)‖ < ε
/-- Eq. (2.1), p. 4: the Neumann condition `∂u/∂ν = f` on `Γ` (`ν` directed into `D_+`) for
`u ∈ H¹_loc(D_+)` with `Δu + k²u = 0`, in its weak (Green's formula) form:
`∫_{D_+} (∇u · ∇φ - k² u φ) dx = -∫_Γ f φ ds` for every `φ ∈ C_c^∞(ℝ²)`. -/
def IsNeumannWeak (k : ℝ) (h : ℝ → ℝ) (f : ℝ → ℂ) (u : R2 → ℂ) : Prop :=
∀ φ : R2 → ℂ, IsTestFn φ →
∫ x in Dplus h, (gradDot u φ x - (k : ℂ) ^ 2 * u x * φ x) =
-∫ t, f t * φ (gPt h t) * (gSpeed h t : ℂ)
/-- Section 2, p. 4: `u` solves the Neumann problem (NP) with data `f`: `u ∈ H¹_loc(D_+)`
(taken in its representative that is `C²` in `D_+`), `Δu + k²u = 0` in `D_+` (eq. (1.1)), `u`
satisfies the radiation condition (1.3), and `∂u/∂ν = f` on `Γ` (eq. (2.1)). -/
def IsNPSolution (k : ℝ) (h : ℝ → ℝ) (f : ℝ → ℂ) (u : R2 → ℂ) : Prop :=
IsHelmholtzOn (Dplus h) k u ∧ IsH1Loc (Dplus h) u ∧ IsRadiating k (Dplus h) u ∧
IsNeumannWeak k h f u
/-- Section 1, p. 2 and Remark 2.8, p. 14: `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‖)
/-- Theorem 2.4, p. 8, and Remark 2.5, p. 13: `λ` is a Dirichlet eigenvalue of `-Δ` in the open
set `D`: there is `u ∈ C²(D) ∩ C(\overline D)`, not identically zero, with `Δu + λu = 0` in `D` and
`u = 0` on `∂D`. -/
def IsDirichletEigenvalue (D : Set R2) (lam : ℝ) : Prop :=
∃ u : R2 → ℂ, ContDiffOn ℝ 2 u D ∧ ContinuousOn u (closure D) ∧ (∀ x ∈ frontier D, u x = 0) ∧
(∀ x ∈ D, Laplacian.laplacian u x + (lam : ℂ) * u x = 0) ∧ ∃ x ∈ D, u x ≠ 0
/-! ### The curve `∂D_R^-`, the auxiliary curve `Γ̃` and the space `X` (Section 2, pp. 4-7) -/
/-- 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: `D_R^- = B_R ∩ D_-`. -/
def DRminus (h : ℝ → ℝ) (R : ℝ) : Set R2 := {x | x 1 < h (x 0) ∧ ‖x‖ < R}
/-- The point `R(cos θ, sin θ)` of `∂B_R`; for `π < θ < 2π` it lies on `∂B_R^-`. -/
def cPt (R θ : ℝ) : R2 := pt (R * Real.cos θ) (R * Real.sin θ)
/-- The unit normal `(cos θ, sin θ)` of `∂B_R` at `R(cos θ, sin θ)`, pointing out of `B_R`. -/
def cNormal (θ : ℝ) : R2 := pt (Real.cos θ) (Real.sin θ)
/-- Section 2, p. 4: the corner `x_A = (-R, 0)` of `∂D_R^-`. -/
def xA (R : ℝ) : R2 := pt (-R) 0
/-- Section 2, p. 4: the corner `x_B = (R, 0)` of `∂D_R^-`. -/
def xB (R : ℝ) : R2 := pt R 0
/-- Arc length on `Γ_R = {(t, h(t)) : -R < t < R}` in the parameter `t`:
`ds = √(1 + h'(t)²) dt` on `(-R, R)`. `L²(Γ_R)` is `L²` of this measure. -/
def muG (h : ℝ → ℝ) (R : ℝ) : Measure ℝ :=
(volume.restrict (Set.Ioo (-R) R)).withDensity (fun t => ENNReal.ofReal (gSpeed h t))
/-- Arc length on `∂B_R^- = {R(cos θ, sin θ) : π < θ < 2π}` in the parameter `θ`: `ds = R dθ`.
`L²(∂B_R^-)` is `L²` of this measure. -/
def muB (R : ℝ) : Measure ℝ :=
(volume.restrict (Set.Ioo Real.pi (2 * Real.pi))).withDensity (fun _ => ENNReal.ofReal R)
/-- The unit normal at `z(s)` of a positively oriented closed curve `z`:
`(z₂'(s), -z₁'(s))/|z'(s)|`, which points out of the domain the curve encloses. -/
def auxNormal (z : ℝ → R2) (s : ℝ) : R2 := ‖deriv z s‖⁻¹ • pt (deriv z s 1) (-(deriv z s 0))
/-- Section 2, p. 4: an auxiliary domain `D̃` with `\overline{D̃} ⊂ D_R^-` and `C²`-smooth boundary
`Γ̃ = ∂D̃`, given with a `2π`-periodic, regular, positively oriented `C²` parametrisation `z` of
`Γ̃` that is injective on one period. The field `outward` says that `auxNormal z` is the unit
normal pointing out of `D̃` (the normal `ν` of `Γ̃` used in eqs. (2.7), (2.13), (2.15)). -/
structure AuxDomain (h : ℝ → ℝ) (R : ℝ) where
/-- The auxiliary domain `D̃`. -/
D : Set R2
/-- The parametrisation of `Γ̃ = ∂D̃`. -/
z : ℝ → R2
/-- `D̃` is open. -/
isOpen_D : IsOpen D
/-- `D̃` is bounded. -/
isBounded_D : Bornology.IsBounded D
/-- `z` is `2π`-periodic. -/
periodic_z : Function.Periodic z (2 * Real.pi)
/-- `z` is `C²`. -/
contDiff_z : ContDiff ℝ 2 z
/-- `z` is regular. -/
deriv_ne : ∀ s, deriv z s ≠ 0
/-- `z` is injective on one period. -/
injOn_z : Set.InjOn z (Set.Ico 0 (2 * Real.pi))
/-- `Γ̃ = ∂D̃` is the curve `z`. -/
frontier_eq : frontier D = Set.range z
/-- `\overline{D̃} ⊂ D_R^-`. -/
closure_sub : closure D ⊆ DRminus h R
/-- `auxNormal z` points out of `D̃` (positive orientation of `z`). -/
outward : ∀ s, ∀ᶠ ε in nhdsWithin (0 : ℝ) (Set.Ioi 0),
z s + ε • auxNormal z s ∉ closure D ∧ z s - ε • auxNormal z s ∈ D
/-- Section 2, p. 6: the space `H^{-1/2}(Γ̃)`, represented by `ℓ²(ℤ)`: `b ∈ ℓ²(ℤ)` stands for the
distribution `φ₃` on `Γ̃` such that `s ↦ φ₃(z(s)) |z'(s)|` has Fourier series
`∑_n a_n e^{ins}` with `a_n = (1 + n²)^{1/4} b_n` (so `‖b‖_{ℓ²}` is an equivalent
`H^{-1/2}(Γ̃)`-norm of `φ₃`). -/
abbrev Hm12 := lp (fun _ : ℤ => ℂ) 2
/-- The Fourier coefficients `a_n = (1 + n²)^{1/4} b_n` of `s ↦ φ₃(z(s)) |z'(s)|` for the element
`b` of `H^{-1/2}(Γ̃)` (see `Hm12`). -/
def hmhCoeff (b : Hm12) (n : ℤ) : ℂ := (((1 + (n : ℝ) ^ 2) ^ ((1 : ℝ) / 4) : ℝ) : ℂ) * b n
/-- Section 2, p. 6: `X = L²(Γ_R) × L²(∂B_R^-) × H^{-1/2}(Γ̃)` (product norm: the maximum of the
three norms, equivalent to the paper's sum). -/
abbrev Xsp (h : ℝ → ℝ) (R : ℝ) := Lp ℂ 2 (muG h R) × Lp ℂ 2 (muB R) × Hm12
/-- Remark 2.9, p. 14: `L²(Γ_R) × L²(∂B_R^-)` (product norm: the maximum of the two norms). -/
abbrev Ysp (h : ℝ → ℝ) (R : ℝ) := Lp ℂ 2 (muG h R) × Lp ℂ 2 (muB R)
/-- Eqs. (2.4)-(2.7), pp. 5-6: `∫_{Γ_R} K(y) φ₁(y) ds(y) + ∫_{∂B_R^-} K(y) φ₂(y) ds(y)`. -/
def bdryPair (h : ℝ → ℝ) (R : ℝ) (K : R2 → ℂ) (φ1 φ2 : ℝ → ℂ) : ℂ :=
(∫ t, K (gPt h t) * φ1 t ∂(muG h R)) + ∫ θ, K (cPt R θ) * φ2 θ ∂(muB R)
/-- Eqs. (2.4)-(2.7), pp. 5-6: `∫_{Γ̃} K(y) φ₃(y) ds(y) = ∑_n a_n ∫_0^{2π} K(z(s)) e^{ins} ds`,
where `a_n` are the Fourier coefficients of `s ↦ φ₃(z(s)) |z'(s)|`. -/
def auxPair (z : ℝ → R2) (K : R2 → ℂ) (a : ℤ → ℂ) : ℂ :=
∑' n : ℤ, a n * ∫ s in (0 : ℝ)..(2 * Real.pi),
K (z s) * Complex.exp (Complex.I * (n : ℂ) * (s : ℂ))
/-- Eq. (2.10), p. 6: the single-layer potential
`(𝒮_{k,Γ_R} φ₁)(x) + (𝒮_{k,∂B_R^-} φ₂)(x) = ∫_{Γ_R} Φ_k(x,y) φ₁ ds + ∫_{∂B_R^-} Φ_k(x,y) φ₂ ds`;
it is also the field (2.34) of Remark 2.9. -/
def slPotB (k : ℝ) (h : ℝ → ℝ) (R : ℝ) (φ1 φ2 : ℝ → ℂ) (x : R2) : ℂ :=
bdryPair h R (fun y => Phi k x y) φ1 φ2
/-- Eq. (2.10), p. 6: the scattered field
`u^s = 𝒮_{k,Γ_R} φ₁ + 𝒮_{k,∂B_R^-} φ₂ + 𝒮_{k,Γ̃} φ₃`, `φ₃` given by its coefficients `a`. -/
def slPot (k : ℝ) (h : ℝ → ℝ) (R : ℝ) (z : ℝ → R2) (φ1 φ2 : ℝ → ℂ) (a : ℤ → ℂ) (x : R2) : ℂ :=
slPotB k h R φ1 φ2 x + auxPair z (fun y => Phi k x y) a
/-- Eq. (2.5), p. 5: the constant `e^{iπ/4}/√(8πk)` of the far-field patterns (it is `γ` of
Lemma 4.2, p. 19). -/
def gammaInf (k : ℝ) : ℂ :=
Complex.exp (Complex.I * (Real.pi : ℂ) / 4) / (Real.sqrt (8 * Real.pi * k) : ℂ)
/-- Eqs. (2.5) and (2.36), pp. 5, 14: `(S^∞_{k,Γ_R} φ₁)(x̂) + (S^∞_{k,∂B_R^-} φ₂)(x̂)` with
`(S^∞_{k,I} φ)(x̂) = e^{iπ/4}/√(8πk) ∫_I e^{-ik x̂ · y} φ(y) ds(y)`. -/
def ffPotB (k : ℝ) (h : ℝ → ℝ) (R : ℝ) (φ1 φ2 : ℝ → ℂ) (xhat : R2) : ℂ :=
gammaInf k * bdryPair h R (fun y => Complex.exp (-(Complex.I * (k : ℂ) * (dot xhat y : ℂ))))
φ1 φ2
/-- Eq. (2.33), p. 14: `u^∞ = S^∞Φ = S^∞_{k,Γ_R} φ₁ + S^∞_{k,∂B_R^-} φ₂ + S^∞_{k,Γ̃} φ₃`. -/
def ffPot (k : ℝ) (h : ℝ → ℝ) (R : ℝ) (z : ℝ → R2) (φ1 φ2 : ℝ → ℂ) (a : ℤ → ℂ)
(xhat : R2) : ℂ :=
ffPotB k h R φ1 φ2 xhat +
gammaInf k * auxPair z (fun y => Complex.exp (-(Complex.I * (k : ℂ) * (dot xhat y : ℂ)))) a
/-! ### The operators `A`, `B` and the right-hand side `G` (eqs. (2.14)-(2.16), (2.35)) -/
/-- Eq. (2.15), p. 7: the kernel `y ↦ ∂Φ_k(x,y)/∂ν(x)` at `x = (t, h(t)) ∈ Γ_R` (first row of
`A`: `K'_{k, I_p → Γ_R}`). -/
def kerG (k : ℝ) (h : ℝ → ℝ) (t : ℝ) (y : R2) : ℂ := dPhi k (gPt h t) (gNormal h t) y
/-- Eq. (2.15), p. 7: the kernel `y ↦ ∂Φ_k(x,y)/∂ν(x) - ∂Φ_k(x^{re},y)/∂ν(x^{re})` at
`x = R(cos θ, sin θ) ∈ ∂B_R^-`, `ν(x^{re}) = x^{re}/R` (second row of `A`:
`K'_{k, I_p → ∂B_R^-} - K'^{,re}_{k, I_p → ∂B_R^-}`). -/
def kerB (k : ℝ) (R : ℝ) (θ : ℝ) (y : R2) : ℂ :=
dPhi k (cPt R θ) (cNormal θ) y - dPhi k (refl (cPt R θ)) (refl (cNormal θ)) y
/-- Eq. (2.15), p. 7: the kernel `y ↦ ∂Φ_k(x,y)/∂ν(x) + iρ Φ_k(x,y)` at `x = z(s) ∈ Γ̃`, `ν` the
normal pointing out of `D̃` (third row of `A`: `K'_{k, I_p → Γ̃} + iρ S_{k, I_p → Γ̃}`). -/
def kerT (k ρ : ℝ) (z : ℝ → R2) (s : ℝ) (y : R2) : ℂ :=
dPhi k (z s) (auxNormal z s) y + Complex.I * (ρ : ℂ) * Phi k (z s) y
/-- Eq. (2.15), p. 7, and eq. (2.35), p. 14: the first row of `B`,
`(B Φ)₁ = -2 K'_{k,Γ_R→Γ_R} φ₁ - 2 K'_{k,∂B_R^-→Γ_R} φ₂`, at `(t, h(t)) ∈ Γ_R`. -/
def opB1 (k : ℝ) (h : ℝ → ℝ) (R : ℝ) (φ1 φ2 : ℝ → ℂ) (t : ℝ) : ℂ :=
-2 * bdryPair h R (kerG k h t) φ1 φ2
/-- Eq. (2.15), p. 7, and eq. (2.35), p. 14: the second row of `B`,
`(B Φ)₂ = -2 (K' - K'^{,re})_{k,Γ_R→∂B_R^-} φ₁ - 2 (K' - K'^{,re})_{k,∂B_R^-→∂B_R^-} φ₂`, at
`R(cos θ, sin θ) ∈ ∂B_R^-`. -/
def opB2 (k : ℝ) (h : ℝ → ℝ) (R : ℝ) (φ1 φ2 : ℝ → ℂ) (θ : ℝ) : ℂ :=
-2 * bdryPair h R (kerB k R θ) φ1 φ2
/-- Eq. (2.15), p. 7: the first row of `A`, `(AΦ)₁ = A₁₁φ₁ + A₁₂φ₂ + A₁₃φ₃` on `Γ_R`. -/
def opA1 (k : ℝ) (h : ℝ → ℝ) (R : ℝ) (z : ℝ → R2) (φ1 φ2 : ℝ → ℂ) (a : ℤ → ℂ) (t : ℝ) : ℂ :=
opB1 k h R φ1 φ2 t + -2 * auxPair z (kerG k h t) a
/-- Eq. (2.15), p. 7: the second row of `A`, `(AΦ)₂ = A₂₁φ₁ + A₂₂φ₂ + A₂₃φ₃` on `∂B_R^-`. -/
def opA2 (k : ℝ) (h : ℝ → ℝ) (R : ℝ) (z : ℝ → R2) (φ1 φ2 : ℝ → ℂ) (a : ℤ → ℂ) (θ : ℝ) : ℂ :=
opB2 k h R φ1 φ2 θ + -2 * auxPair z (kerB k R θ) a
/-- The weight `e^{-ims} |z'(s)| / (2π)` that turns a function `F` on `Γ̃` into the `m`-th
Fourier coefficient `(1/2π) ∫_0^{2π} F(z(s)) |z'(s)| e^{-ims} ds` of `s ↦ F(z(s)) |z'(s)|`. -/
def fourierWeight (z : ℝ → R2) (m : ℤ) (s : ℝ) : ℂ :=
Complex.exp (-(Complex.I * (m : ℂ) * (s : ℂ))) * (‖deriv z s‖ : ℂ) / (2 * Real.pi : ℂ)
/-- Eq. (2.15), p. 7: the third row of `A`, `(AΦ)₃ = A₃₁φ₁ + A₃₂φ₂ + A₃₃φ₃ ∈ H^{-1/2}(Γ̃)`, given
by its `m`-th Fourier coefficient (in the representation of `Hm12`). The term `A₃₃φ₃`, with
`A₃₃ = -2(K'_{k,Γ̃→Γ̃} + iρ S_{k,Γ̃→Γ̃})` acting on `H^{-1/2}(Γ̃)`, is the matrix
`∑_n a_n (1/2π) ∫_0^{2π} ∫_0^{2π} e^{-ims} |z'(s)| (∂Φ_k(z(s),z(t))/∂ν(z(s)) + iρ Φ_k(z(s),z(t)))
e^{int} dt ds`. -/
def opA3 (k ρ : ℝ) (h : ℝ → ℝ) (R : ℝ) (z : ℝ → R2) (φ1 φ2 : ℝ → ℂ) (a : ℤ → ℂ) (m : ℤ) : ℂ :=
-2 * ((∫ s in (0 : ℝ)..(2 * Real.pi), fourierWeight z m s * bdryPair h R (kerT k ρ z s) φ1 φ2) +
∑' n : ℤ, a n * ∫ s in (0 : ℝ)..(2 * Real.pi), fourierWeight z m s *
∫ t in (0 : ℝ)..(2 * Real.pi), kerT k ρ z s (z t) * Complex.exp (Complex.I * (n : ℂ) * (t : ℂ)))
/-- Eq. (2.16), p. 7: the first component `2(∂u^i/∂ν + ∂u^r/∂ν)` of `G`, on `Γ_R`, at
`(t, h(t))`. -/
def gData (k : ℝ) (d : R2) (h : ℝ → ℝ) (t : ℝ) : ℂ := -2 * incData k d h t
/-- Eq. (2.14), p. 7: `Φ = (φ₁, φ₂, φ₃) ∈ X` solves `(I + A)Φ = G` with `A` of (2.15), `ρ` the
impedance constant of (2.13), and `G = (2(∂u^i/∂ν + ∂u^r/∂ν)|_{Γ_R}, 0, 0)` of (2.16). -/
def IsBIESolution (k ρ : ℝ) (h : ℝ → ℝ) (R : ℝ) (aux : AuxDomain h R) (d : R2)
(sol : Xsp h R) : Prop :=
(∀ᵐ t ∂(muG h R),
sol.1 t + opA1 k h R aux.z ⇑sol.1 ⇑sol.2.1 (hmhCoeff sol.2.2) t = gData k d h t) ∧
(∀ᵐ θ ∂(muB R), sol.2.1 θ + opA2 k h R aux.z ⇑sol.1 ⇑sol.2.1 (hmhCoeff sol.2.2) θ = 0) ∧
∀ m : ℤ, hmhCoeff sol.2.2 m + opA3 k ρ h R aux.z ⇑sol.1 ⇑sol.2.1 (hmhCoeff sol.2.2) m = 0
/-- Eq. (2.35), p. 14: `Ψ = (φ₁, φ₂) ∈ L²(Γ_R) × L²(∂B_R^-)` solves `(I + B)Ψ = (g₁, g₂)`. -/
def IsBSolution (k : ℝ) (h : ℝ → ℝ) (R : ℝ) (psi : Ysp h R) (g1 g2 : ℝ → ℂ) : Prop :=
(∀ᵐ t ∂(muG h R), psi.1 t + opB1 k h R ⇑psi.1 ⇑psi.2 t = g1 t) ∧
(∀ᵐ θ ∂(muB R), psi.2 θ + opB2 k h R ⇑psi.1 ⇑psi.2 θ = g2 θ)
/-- Section 3.1, eq. (3.1), p. 15: both `x` and `y` lie within distance `r` of the same corner
(`x_A` or `x_B`) of `∂D_R^-`. -/
def NearSameCorner (R r : ℝ) (x y : R2) : Prop :=
(dist x (xA R) < r ∧ dist y (xA R) < r) ∨ (dist x (xB R) < r ∧ dist y (xB R) < r)
open Classical in
/-- Section 3.1, eq. (3.1), p. 15: the first row of `Â⋆₁₁`, the part of `Â₁₁ = B` whose kernel
is that of `B` when `x` and `y` are within distance `r` of the same corner and `0` otherwise. -/
def opBstar1 (k : ℝ) (h : ℝ → ℝ) (R r : ℝ) (φ1 φ2 : ℝ → ℂ) (t : ℝ) : ℂ :=
-2 * bdryPair h R (fun y => if NearSameCorner R r (gPt h t) y then kerG k h t y else 0) φ1 φ2
open Classical in
/-- Section 3.1, eq. (3.1), p. 15: the second row of `Â⋆₁₁` (see `opBstar1`). -/
def opBstar2 (k : ℝ) (h : ℝ → ℝ) (R r : ℝ) (φ1 φ2 : ℝ → ℂ) (θ : ℝ) : ℂ :=
-2 * bdryPair h R (fun y => if NearSameCorner R r (cPt R θ) y then kerB k R θ y else 0) φ1 φ2
/-! ### The inverse problem (Section 4, pp. 18-20) -/
/-- Lemma 4.1, p. 18: the exterior `ℝ²_+ \ \overline{B_R} = {x : x₂ > 0, |x| > R}` of the disc in
the upper half-plane. -/
def upperExt (R : ℝ) : Set R2 := {x | 0 < x 1 ∧ R < ‖x‖}
/-- Lemma 4.1, p. 18: the Neumann condition `∂u/∂ν = 0` on the flat part
`{(x₁, 0) : |x₁| > R}` of the boundary of `ℝ²_+ \ \overline{B_R}`, in weak form:
`∫_{ℝ²_+ \ \overline{B_R}} (∇u · ∇φ - k² u φ) dx = 0` for every `φ ∈ C_c^∞(ℝ²)` whose support
does not meet `\overline{B_R}`. -/
def IsFlatNeumannWeak (k R : ℝ) (u : R2 → ℂ) : Prop :=
∀ φ : R2 → ℂ, IsTestFn φ → tsupport φ ⊆ {x | R < ‖x‖} →
∫ x in upperExt R, (gradDot u φ x - (k : ℂ) ^ 2 * u x * φ x) = 0
/-- Section 4, p. 19: the Neumann data `f(·;y) = -(∂u^i(·;y)/∂ν + ∂u^r(·;y)/∂ν)` at `(t, h(t))`
for the point source `u^i(x;y) = Φ_k(x,y)` and its reflection `u^r(x;y) = Φ_k(x,y^{re})`. -/
def pointData (k : ℝ) (h : ℝ → ℝ) (y : R2) (t : ℝ) : ℂ :=
-(fderiv ℝ (fun x => Phi k x y + Phi k x (refl y)) (gPt h t) (gNormal h t))
/-! ### The spline basis (Remark 5.2, p. 22) -/
/-- Remark 5.2, p. 22: 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.2, p. 22: `φ(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.2, p. 22: the mesh width `h = 2R/(M + 5)`. -/
def splineStep (R : ℝ) (M : ℕ) : ℝ := 2 * R / ((M : ℝ) + 5)
/-- Remark 5.2, p. 22: the knots `t_i = (i + 2)h - R`. -/
def splineKnot (R : ℝ) (M i : ℕ) : ℝ := ((i : ℝ) + 2) * splineStep R M - R
/-- Remark 5.2, p. 22: the basis function `φ_{i,M}(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 Arxiv1901_08703
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
General conventions used throughout.
- Points of the plane are with the Euclidean norm .
- For a function , is the real Fréchet derivative of at applied to the vector . It is defined to be wherever is not differentiable at .
- For , is the derivative. It is defined to be wherever is not differentiable at .
- Every integral is a Lebesgue/Bochner integral and is defined to be when the integrand is not integrable.
- Every infinite sum is an unconditional sum and is defined to be when the family is not summable.
- means the real logarithm extended by for and .
- for .
- Division by gives , and .
R2. The plane with its Euclidean norm. A point has coordinates and .
pt. For real , is the point .
dot. For , .
refl. For , the reflection is .
besselJNat. For and every real (including ),
This series converges absolutely for every real .
besselJ. For and real :
- if , it is as in
besselJNat; - if , it is .
besselY0. For every real ,
Here:
- is the Euler–Mascheroni constant;
- is the -th harmonic number.
Edge cases from the logarithm convention:
- for the logarithm is ;
- at the logarithm is taken to be , so , a finite value.
hankel01. For every real , , using the definitions above. This includes .
Phi. For real and ,
No sign condition is placed on , and is allowed. On the diagonal, , a finite value. If , then is this same constant for all .
dPhi. For real and , this is the directional derivative in the first variable:
It is the real Fréchet derivative at of , applied to . Two points to note:
- is any vector; it is not required to be a unit vector.
- The value is wherever is not differentiable at . This includes , where the logarithmic term is not differentiable.
IsLocalProfile. For , this holds exactly when both:
- is twice continuously differentiable on ;
- has compact support, i.e. the closure of is compact.
Dplus. For any , .
Dminus. For any , .
gPt. For and , the point is .
gSpeed. For and , . Where is not differentiable, and so .
gNormal. For and ,
This is a unit vector with positive second component.
IsLowerDir. For , this holds exactly when and .
upperCircle. .
uInc. For real and , . No condition is placed on or .
uRefl. For real and , . No condition is placed on or .
incData. For real , , and ,
This is minus the derivative of the sum of the two exponentials at , in the direction of gNormal.
gradDot. For and ,
Here are the pointwise partial derivatives, taken as where is not differentiable. The product is bilinear; there is no complex conjugation.
gradSq. For and , . The partial derivatives are pointwise, taken as where is not differentiable.
IsH1Loc. For any set and , this holds exactly when, for every real , the function is Lebesgue integrable on . Notes:
- The gradient is the pointwise Fréchet gradient, where is not differentiable. It is not a weak gradient.
- No openness of and no differentiability of is required.
- For the region is empty, so the condition is trivial there.
h1Norm. For and ,
with the pointwise gradient as in gradSq. If the integrand is not integrable on , the integral is and so the value is .
l2Gam. For and ,
The integral is over all of , and it is if the integrand is not integrable.
IsTestFn. For , this holds exactly when both:
- is infinitely differentiable (in the real sense);
- has compact support.
IsHelmholtzOn. For any set , real and , this holds exactly when both:
- is on , in the sense of differentiability within ;
- for every , .
Here is computed from the second Fréchet derivative of on all of at . That second derivative is where it does not exist. is not required to be open.
IsRadiating. For real , a set and , this holds exactly when: for every there is a real such that every with satisfies
Notes:
- is where is not differentiable.
- If is bounded, the condition holds trivially.
IsNeumannWeak. For real , , and , this holds exactly when every complex test function on satisfies
Here ranges over all functions with compact support, so its support may cross the curve . Further notes:
- is the bilinear
gradDot, with pointwise derivatives. - There is no complex conjugation.
- Either side is if its integrand is not integrable.
IsNPSolution. For real , any , and , this is the conjunction of four conditions:
IsHelmholtzOnholds on : is there and on .IsH1Locholds on .IsRadiatingholds with parameter on .IsNeumannWeakholds with data .
No regularity or compact support is required of , and no sign is required of .
HasFarFieldOn. For real , , and , this holds exactly when there exist real and such that every with and satisfies
Notes:
- matters only at points of .
- If contains no unit vector (for example, if is empty), the condition holds trivially.
IsDirichletEigenvalue. For any set and real , this holds exactly when there exists with all of the following:
- is on ;
- is continuous on the closure ;
- at every point of the topological boundary ;
- for every ;
- for some .
is not required to be open or bounded. No integrability or finite-energy condition is placed on , and no sign condition on . If is empty (e.g. ), the boundary condition is vacuous.
PerturbationInBall. For and real , this holds exactly when both:
- ;
- every in the closed support satisfies .
If , only is required.
DRminus. For and , .
cPt. For real and , the point is .
cNormal. For real , the vector is .
xA. .
xB. .
muG. For and , this is the measure on given by
If , this is the zero measure.
muB. For , this is the measure on given by
If , this is the zero measure.
auxNormal. For a curve and real ,
If (including where is not differentiable), this is the zero vector.
AuxDomain. Given and , an auxiliary domain is data with and , satisfying all of the following:
- is open and bounded;
- is -periodic;
- is twice continuously differentiable;
- for every ;
- is injective on ;
- the topological boundary of equals the image of ;
- ;
- for every and all sufficiently small , both and , with as in
auxNormal.
No assumption is placed on or themselves.
Hm12. The Hilbert space of square-summable complex sequences , with its norm.
hmhCoeff. For and , .
Xsp. The product space
The first two factors are spaces of -a.e. and -a.e. equivalence classes of complex functions on . The norm is the maximum of the three component norms.
Ysp. The product space , with the maximum of the two component norms.
bdryPair. For , , and ,
More precisely, the two terms are integrals against and . Each term is separately if its integrand is not integrable, and both measures vanish when .
auxPair. For , and ,
Notes:
- No factor appears.
- The sum is if the family is not summable.
- Each integral is if its integrand is not integrable.
slPotB. For real , , , and , this is in the sense of bdryPair:
slPot. This is slPotB plus the auxPair term:
gammaInf. For real ,
For , the square root is , so .
ffPotB. For real , , , and (not required to be a unit vector),
where is bdryPair with kernel .
ffPot. This is ffPotB plus an auxiliary-curve term:
kerG. For real , , and , the kernel is as in dPhi. That is, the derivative of at in the direction . It is if .
kerB. For real , , and , write and . The kernel is
with and .
kerT. For real , , curve , and , the kernel is
opB1. For real , , , and , this is times bdryPair with the kerG kernel at parameter :
Here is the kernel of kerG with and fixed.
opB2. This is the same as opB1, with the kernel kerB at parameter in place of kerG at parameter :
opA1. This is opB1 at plus an auxiliary-curve term:
opA2. This is opB2 at plus an auxiliary-curve term:
fourierWeight. For , and ,
opA3. For real , , , , curve , , and ,
Notes:
- is the kernel of
kerT. - is
bdryPair. - On the diagonal , the inner integrand uses the finite conventional values described under
PhianddPhi. - Each integral and the sum follow the junk-value conventions stated at the top.
gData. For , , and , , which equals
IsBIESolution. For real , , , , an auxiliary domain , and , this holds exactly when all three of the following hold, with and evaluated through chosen representatives:
- For -almost every (equivalently, a.e. when ):
with as in gData for the given .
2. For -almost every :
- For every :
Here is taken with the given . Only the curve of the auxiliary domain enters the equations; itself does not. No conditions are placed on , , or .
IsBSolution. For real , , , and , this holds exactly when both:
- for -a.e. ;
- for -a.e. .
NearSameCorner. For real , and points , this holds exactly when one of the following holds:
- and ; or
- and .
Here and . If , it never holds.
opBstar1. This is the same as opB1, except that the kernel at is replaced by:
- if and are near the same corner (in the sense of
NearSameCornerwith radius ); - otherwise.
opBstar2. This is the same as opB2, except that the kernel at is replaced by:
- if and are near the same corner with radius ;
- otherwise.
upperExt. For real , the set is .
IsFlatNeumannWeak. For real , and , this holds exactly when every complex test function whose closed support lies in satisfies
The gradient product is the bilinear gradDot with pointwise derivatives. The integral is if the integrand is not integrable.
pointData. For real , , and ,
This is if the sum is not differentiable at , for example when equals or .
truncPow. For and real :
- if ;
- if .
In particular, .
splinePhi. For and real ,
splineStep. For real and , the mesh width is
It is called in the source, but it is unrelated to the profile . It is if and negative if .
splineKnot. For , and , the knot is .
splineBasis. For , , and real ,
with the degree-4 case of splinePhi. If , the division gives , so for every .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.