Obstacles, scattering solutions, scattering amplitude and Dirichlet Green's function in
DefinitionArxiv1611_09952_BasicObjects of Sections 1 and 2 of Ramm, Inverse obstacle scattering with non-over-determined data (arXiv:1611.09952v2).
- Obstacle. An obstacle is a bounded domain (open, connected) whose boundary is connected and : near every , after an orthogonal change of coordinates, is the region below the graph of a function. The exterior is ; its interior is .
- Normal and normal derivative. is the unit normal at pointing out of , characterised by the requirement that the tangent cone of at is the half-space . The normal derivative is .
- Scattering problem (eqs. (1)-(3)). For and , the scattering solution is a solution of in which, together with its gradient, extends continuously to , satisfies on , and is such that satisfies the radiation condition as , uniformly in . The boundary operator is (Dirichlet), (Neumann) or (impedance) with a constant , , .
- Scattering amplitude (eq. (4)). is defined by as , i.e. for every .
- Green's functions (Section 2). and . The Dirichlet Green's function of the Helmholtz operator in is, for each outside , of the form with a Helmholtz solution outside ; is continuous on , radiating, and when lie in and one of them lies on .
- Surface measure. on a surface is two-dimensional Hausdorff measure on normalised to area.
Formalization Note Mathlib's two-dimensional Hausdorff measure is not normalised (it sums ), so the area measure is . The impedance condition is required to have because is the Neumann condition, which the paper lists separately; this way, equality of boundary conditions means the same condition. The scattering solution is required to be up to , which the actual solution is for a boundary; this is what makes and meaningful.
import Mathlib
/-!
A. G. Ramm, *Inverse obstacle scattering with non-over-determined data*, arXiv:1611.09952v2
(2017): obstacles with connected `C²` boundary in `ℝ³`, the scattering problem (1)-(2) with the
boundary conditions (3), the scattering amplitude (4), the Dirichlet Green's function of
Section 2, and the surface measure used in Lemmas 2 and 5.
-/
open MeasureTheory Filter Topology
noncomputable section
namespace Arxiv1611_09952
/-- Section 1: the physical space `ℝ³`. -/
abbrev E3 := EuclideanSpace ℝ (Fin 3)
/-- Section 1: the boundary of `D` is `C²`-smooth. Near every boundary point `p`, after a rigid
rotation `R` of coordinates, `D` is the region below the graph of a `C²` function `φ` of the
first two coordinates. -/
def HasC2Boundary (D : Set E3) : Prop :=
∀ p ∈ frontier D, ∃ (R : E3 ≃ₗᵢ[ℝ] E3) (φ : ℝ × ℝ → ℝ) (r : ℝ), 0 < r ∧ ContDiff ℝ 2 φ ∧
∀ x ∈ Metric.ball p r, (x ∈ D ↔ (R x) 2 < φ ((R x) 0, (R x) 1))
/-- Section 1: an obstacle is a bounded domain (open, connected) `D ⊂ ℝ³` whose boundary
`S = ∂D` is connected and `C²`-smooth. -/
def IsObstacle (D : Set E3) : Prop :=
IsOpen D ∧ IsConnected D ∧ Bornology.IsBounded D ∧ IsConnected (frontier D) ∧ HasC2Boundary D
/-- Section 1: the open exterior `ℝ³ \ closure D`, where the Helmholtz equation (1) holds. The
paper's `D' := ℝ³ \ D` is its closure `Dᶜ`, which contains `S`. -/
def openExterior (D : Set E3) : Set E3 := (closure D)ᶜ
/-- Section 1, eq. (3): `n` is the unit normal to `∂D` at `s` pointing out of `D`, characterised
geometrically: the tangent cone of `D` at `s` is the half-space `{v : ⟨v, n⟩ ≤ 0}`. -/
def IsOuterNormal (D : Set E3) (s n : E3) : Prop :=
s ∈ frontier D ∧ ‖n‖ = 1 ∧ tangentConeAt ℝ D s = {v | inner ℝ v n ≤ 0}
open Classical in
/-- The outward unit normal `N(s)` of `D` at `s` (eq. (3)); `0` where `∂D` has no normal. -/
def outerNormal (D : Set E3) (s : E3) : E3 :=
if h : ∃ n, IsOuterNormal D s n then h.choose else 0
/-- One-sided derivative of `u` at a point `s` in direction `n`, computed as the limit of the
derivative `∇u(x) · n` as `x → s` inside the open set `U` where `u` is differentiable. -/
def boundaryDeriv (U : Set E3) (n : E3) (u : E3 → ℂ) (s : E3) : ℂ :=
limUnder (𝓝[U] s) (fun x => fderiv ℝ u x n)
/-- Eq. (3): the normal derivative `u_N(s)` on `S = ∂D` of a function `u` defined outside `D`,
with `N` pointing out of `D`. -/
def normalDeriv (D : Set E3) (u : E3 → ℂ) (s : E3) : ℂ :=
boundaryDeriv (openExterior D) (outerNormal D s) u s
/-- Eq. (1): `u` is a classical solution of the Helmholtz equation `(∇² + k²)u = 0` on `U`. -/
def IsHelmholtzOn (k : ℝ) (U : Set E3) (u : E3 → ℂ) : Prop :=
ContDiffOn ℝ 2 u U ∧ ∀ x ∈ U, Laplacian.laplacian u x + ((k : ℂ) ^ 2) * u x = 0
/-- `u` is `C¹` up to the boundary of the exterior: `u` and its derivative extend continuously
from the open exterior to `D' = ℝ³ \ D`, so that `u|_S` and `u_N` exist. -/
def IsC1UpToBoundary (D : Set E3) (u : E3 → ℂ) : Prop :=
ContinuousOn u Dᶜ ∧ ∃ Du : E3 → (E3 →L[ℝ] ℂ), ContinuousOn Du Dᶜ ∧
∀ x ∈ openExterior D, fderiv ℝ u x = Du x
/-- Eq. (1): the incident plane wave `e^{ik α·x}`. -/
def planeWave (k : ℝ) (α x : E3) : ℂ := Complex.exp (Complex.I * k * (inner ℝ α x : ℝ))
/-- Eq. (2): the Sommerfeld radiation condition `v_r - ikv = o(1/r)`, `r = |x| → ∞`, uniformly
in the direction `x/r`. -/
def SatisfiesRadiation (k : ℝ) (v : E3 → ℂ) : Prop :=
Tendsto (fun x : E3 => (‖x‖ : ℂ) * (fderiv ℝ v x (‖x‖⁻¹ • x) - Complex.I * k * v x))
(cocompact E3) (𝓝 0)
/-- Eq. (3): the three boundary conditions `Γ₁u = u`, `Γ₂u = u_N`, `Γ₃u = u_N + hu`
(Dirichlet, Neumann, impedance with constant impedance `h`). -/
inductive BoundaryCondition
| dirichlet
| neumann
| impedance (h : ℂ)
deriving DecidableEq
/-- Eq. (3): the admissible boundary conditions. For the impedance condition `h` is a constant
with `Im h ≥ 0`; `h ≠ 0` because `h = 0` is the Neumann condition `Γ₂`, which the paper lists
separately (see the end of the proof of Theorem 1). -/
def BoundaryCondition.Admissible : BoundaryCondition → Prop
| .dirichlet => True
| .neumann => True
| .impedance h => 0 ≤ h.im ∧ h ≠ 0
/-- Eq. (1): `Γ_j u = 0` on `S = ∂D`. -/
def SatisfiesBC (D : Set E3) : BoundaryCondition → (E3 → ℂ) → Prop
| .dirichlet, u => ∀ s ∈ frontier D, u s = 0
| .neumann, u => ∀ s ∈ frontier D, normalDeriv D u s = 0
| .impedance h, u => ∀ s ∈ frontier D, normalDeriv D u s + h * u s = 0
/-- Eqs. (1)-(2): `u` is the scattering solution for the obstacle `D` with boundary condition
`bc`, wave number `k` and incident direction `α`: it solves the Helmholtz equation in the
exterior, is `C¹` up to `S`, satisfies `Γ u = 0` on `S`, and `v = u - e^{ikα·x}` satisfies the
radiation condition. -/
def IsScatteringSolution (D : Set E3) (bc : BoundaryCondition) (k : ℝ) (α : E3)
(u : E3 → ℂ) : Prop :=
IsHelmholtzOn k (openExterior D) u ∧ IsC1UpToBoundary D u ∧ SatisfiesBC D bc u ∧
SatisfiesRadiation k (fun x => u x - planeWave k α x)
/-- Eq. (4): `A(β) = A(β, α, k)` is the scattering amplitude of `u`:
`v = A(β) e^{ikr}/r + o(1/r)` as `r = |x| → ∞`, `x/r = β`, i.e. `r e^{-ikr} v(rβ) → A(β)` for
every `β ∈ S²`. -/
def HasScatteringAmplitude (k : ℝ) (α : E3) (u : E3 → ℂ) (A : E3 → ℂ) : Prop :=
∀ β ∈ Metric.sphere (0 : E3) 1,
Tendsto (fun r : ℝ => (r : ℂ) * Complex.exp (-(Complex.I * k * r)) *
(u (r • β) - planeWave k α (r • β))) atTop (𝓝 (A β))
/-- Section 2, after Lemma 1: `g(r) = e^{ikr}/(4πr)`. -/
def gRad (k r : ℝ) : ℂ := Complex.exp (Complex.I * k * r) / (4 * Real.pi * r)
/-- Section 2, proof of Lemma 4: the free outgoing Green's function
`g(x, y) = e^{ik|x-y|}/(4π|x-y|)`. -/
def freeGreen (k : ℝ) (x y : E3) : ℂ := gRad k ‖x - y‖
/-- Section 2: `G` is the Green's function of the Dirichlet Helmholtz operator in `D'`
(`(∇² + k²)G = -δ(x - y)`, `G = 0` on `S`, radiating). For each `y` in the open exterior,
`G(·, y) - g(·, y)` is a Helmholtz solution in the open exterior, `G(·, y)` is continuous on
`D' \ {y}` and satisfies the radiation condition, and `G(x, y) = 0` whenever `x ≠ y` lie in `D'`
and one of them lies on `S`. -/
def IsDirichletGreen (D : Set E3) (k : ℝ) (G : E3 → E3 → ℂ) : Prop :=
(∀ y ∈ openExterior D,
(∃ w : E3 → ℂ, IsHelmholtzOn k (openExterior D) w ∧
∀ x ∈ openExterior D, x ≠ y → G x y = freeGreen k x y + w x) ∧
ContinuousOn (fun x => G x y) (Dᶜ \ {y}) ∧
SatisfiesRadiation k (fun x => G x y)) ∧
∀ x ∈ Dᶜ, ∀ y ∈ Dᶜ, x ≠ y → (x ∈ frontier D ∨ y ∈ frontier D) → G x y = 0
/-- The surface area measure on a surface `S ⊂ ℝ³`: two-dimensional Hausdorff measure restricted
to `S`, scaled by `π/4` (Mathlib's `μH[2]` is not normalised; `π/4 · μH[2]` is area). -/
def surfaceMeasure (S : Set E3) : Measure E3 :=
ENNReal.ofReal (Real.pi / 4) • (μH[2]).restrict S
end Arxiv1611_09952
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
. Physical space is with its standard Euclidean inner product and norm . Points are written .
boundary (HasC2Boundary D). For a set , this property holds when the following is true at every point of the topological boundary . There exist:
- a linear isometry , which fixes the origin and may be a rotation or an orientation-reversing orthogonal map;
- a function that is on all of ;
- a radius ;
such that for every in the open ball ,
Nothing explicitly requires itself to lie on the graph of . If , the condition holds vacuously.
Obstacle (IsObstacle D). is an obstacle when all of the following hold:
- is open;
- is connected and nonempty;
- is bounded;
- its topological boundary is connected and nonempty;
- has boundary in the sense above.
Open exterior. The open exterior of is , the complement of the closure of . Separately, the code also uses the complement . When is open, is closed, and it equals the open exterior together with .
Outer normal predicate (IsOuterNormal D s n). For , this holds when all of the following are true:
- ;
- ;
- the tangent cone of at equals the half-space .
The tangent cone used here is Mathlib's tangent cone over the scalar field . It consists of all limits of , where eventually and are real numbers of either sign with . Because the sign of is free, this set is closed under . A half-space with is not closed under . So, read literally, the equality can never hold, and the predicate is false for every , , .
Outer normal function (outerNormal D s). If some satisfies the predicate above, is one such , chosen arbitrarily. Otherwise . Given the previous remark, read literally, for all and .
One-sided directional derivative (boundaryDeriv U n u s). For a set , a vector , a function and a point , this is
the limit of the real Fréchet derivative of applied to , as approaches within .
- Where is not differentiable, is taken to be .
- If the limit does not exist, the value is an unspecified complex number.
- If , the value is likewise unspecified.
Normal derivative (normalDeriv D u s). This is the one-sided derivative above with the open exterior and direction . Since (see above), the expression being limited is identically . Consequently whenever lies in the closure of the open exterior.
Helmholtz on (IsHelmholtzOn k U u). For a real number , a set and , this holds when:
- is on , in the real sense;
- for every ,
where is the standard Laplacian (sum of the pure second derivatives).
There are no restrictions on : and are allowed.
up to the boundary (IsC1UpToBoundary D u). This holds when both of the following are true:
- is continuous on ;
- there is a map , from points to real-linear maps , that is continuous on and coincides with the Fréchet derivative at every point of the open exterior.
Plane wave. For and ,
Here is not required to be a unit vector.
Radiation condition (SatisfiesRadiation k v). For , this requires
The limit is taken along the filter of complements of compact sets, so it is automatically uniform in the direction . As before, wherever is not differentiable.
Boundary condition types. A boundary condition is one of three things:
- "Dirichlet";
- "Neumann";
- "impedance with parameter ", for an arbitrary complex number .
Admissible boundary conditions.
- Dirichlet and Neumann are always admissible.
- Impedance with parameter is admissible exactly when and .
Satisfying a boundary condition (SatisfiesBC D bc u). The requirement depends on the type of condition:
- Dirichlet: for all .
- Neumann: for all .
- Impedance with parameter : for all .
Two points about this definition:
- It does not require the condition to be admissible.
- With the literal described above, at boundary points lying in the closure of the open exterior, the Neumann condition holds trivially. At those points the impedance condition reduces to .
Scattering solution (IsScatteringSolution D bc k α u). For any set , any boundary condition , any , any and any , is a scattering solution when all of the following hold:
- satisfies Helmholtz with parameter on the open exterior .
- is up to the boundary, in the sense above.
- satisfies on .
- The function satisfies the radiation condition with parameter .
The following are not required:
- that is an obstacle;
- that is admissible;
- that ;
- that .
Values of inside are constrained only through the radiation condition, which concerns large , and through the continuity requirements on .
Scattering amplitude (HasScatteringAmplitude k α u A). For , this holds when for every unit vector (that is, ),
The values of off the unit sphere are unconstrained.
Radial Green's profile. For real and ,
At the division by zero yields the value . The formula is also applied as written for .
Free Green's function. For ,
with .
Dirichlet Green's function (IsDirichletGreen D k G). For , this holds when both (a) and (b) are true.
(a) For every in the open exterior :
- there is a function , which may depend on , that satisfies Helmholtz with parameter on the whole open exterior (in particular is there, including at ), such that
- the map is continuous on ;
- the map satisfies the radiation condition with parameter .
(b) For all with and with or :
The following are not constrained:
- values of when or lies in ;
- the diagonal values ;
- symmetry of ;
- any property of for , other than (b).
Surface measure (surfaceMeasure S). For any set , this is the measure
Here is Mathlib's 2-dimensional Hausdorff measure, defined via sums of with no normalizing constant. The restriction to is defined for arbitrary , measurable or not.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.