Two-way parabolic integral equation: Green's functions, surface operators L and R, operator series
DefinitionArxiv1408_1879_BasicObjects of Sections 2, 3 and 4.1 of Spivack and Rath Spivack (2015).
- Constants. For a wavenumber , (principal square root). For an angle of incidence measured from the vertical, (eq. 5).
- Parabolic Green's functions. The one-way function is for and otherwise. The two-way function of eq. (6) equals for . For it equals .
- Improper integrals. is . The function is improperly integrable from if it is integrable on every with and this limit exists.
- Surface operators (Section 3.1). For a surface , a surface source and a point , with :
The two-way scattered-field integral of eq. (7) is . 5. Flat-surface operators (eq. 20). These are and for , on the mean plane : and . 6. Operator series (eqs. 12, 13, 15). For an invertible bounded operator and a bounded operator on a complex normed space, the -th term is , and the series (12) is . The first approximation is and the correction is . 7. Mean-plane field (eq. 16). For an incident field , a surface and a surface source , the mean-plane field is
This is the right-hand side of (16) without its remainder.
Formalization Note The kernel of is singular at . On that null set is given the value , and no integral depends on it. The phase factor for is , as in the display (6). The sentence after (6) writes . All integrals to are improper limits, because for the plane-wave data of Section 4 they converge only conditionally. is defined as the flat-surface form of , so it carries the factor of eq. (6), which the printed eq. (20) omits.
import Mathlib
/-!
M. Spivack and O. Rath Spivack, *Rough surface backscatter and statistics via extended
parabolic integral equation*, arXiv:1408.1879v2 (2015): the constant `α` and the one-way and
two-way parabolic Green's functions (Section 2 and Section 3.1, eq. (6)), the surface operators
`L`, `R` and the scattered-field integral (Section 3.1, eqs. (7)-(10)), their flat-surface forms
(Section 4.1, eq. (20)), the terms of the operator series (Section 3.2, eqs. (12)-(15)) and the
second-order mean-plane field (Section 4.1, eq. (16)).
-/
open MeasureTheory Filter Topology
noncomputable section
namespace Arxiv1408_1879
/-- Section 2, after the display defining `G_p` (PDF p. 4): `α = (1/2) √(i / (2πk))`, with the
principal square root. -/
def alpha (k : ℝ) : ℂ := (1 / 2) * (Complex.I / (2 * Real.pi * k)) ^ (1 / 2 : ℂ)
/-- Eq. (5) (PDF p. 4): `S = sin θ - 1`, where `θ` is the angle of incidence from the vertical. -/
def S (θ : ℝ) : ℝ := Real.sin θ - 1
/-- Section 2, unnumbered display after eq. (3) (PDF p. 4): the one-way parabolic Green's function
`G_p(x,z;x',z') = α (x-x')^{-1/2} exp[ik(z-z')²/(2(x-x'))]` for `x' < x`, and `0` otherwise. -/
def greenOneWay (k x z x' z' : ℝ) : ℂ :=
if x' < x then
alpha k * ((1 / Real.sqrt (x - x') : ℝ) : ℂ) *
Complex.exp (Complex.I * ((k * (z - z') ^ 2 / (2 * (x - x')) : ℝ) : ℂ))
else 0
/-- Eq. (6) (Section 3.1, PDF p. 5): the two-way parabolic Green's function `G(x,z;x',z')`, equal
to `α (x-x')^{-1/2} exp[ik(z-z')²/(2(x-x'))]` for `x' < x` and to
`α (x'-x)^{-1/2} exp[ik(z-z')²/(2(x'-x))] exp[2ik(x'-x)]` for `x' ≥ x` (the sign of the display).
At the single point `x' = x`, where the paper's kernel is singular, the value is `0`. -/
def greenTwoWay (k x z x' z' : ℝ) : ℂ :=
if x' < x then
alpha k * ((1 / Real.sqrt (x - x') : ℝ) : ℂ) *
Complex.exp (Complex.I * ((k * (z - z') ^ 2 / (2 * (x - x')) : ℝ) : ℂ))
else
alpha k * ((1 / Real.sqrt (x' - x) : ℝ) : ℂ) *
Complex.exp (Complex.I * ((k * (z - z') ^ 2 / (2 * (x' - x)) : ℝ) : ℂ)) *
Complex.exp (Complex.I * ((2 * k * (x' - x) : ℝ) : ℂ))
/-- The integrals `∫_a^∞` of eqs. (7), (8) and of the operator `R` (Section 3.1, PDF p. 5) as
improper integrals: `f` is integrable on every `[a, T]` and `∫_a^T f` converges as `T → ∞`. -/
def ImproperIntegrable (f : ℝ → ℂ) (a : ℝ) : Prop :=
(∀ T, a ≤ T → IntervalIntegrable f volume a T) ∧
∃ I : ℂ, Tendsto (fun T => ∫ t in a..T, f t) atTop (𝓝 I)
/-- The value `∫_a^∞ f = lim_{T→∞} ∫_a^T f` of an improper integral (meaningful when
`ImproperIntegrable f a`). -/
def improperIntegral (f : ℝ → ℂ) (a : ℝ) : ℂ :=
limUnder atTop (fun T => ∫ t in a..T, f t)
/-- Section 3.1, definition after eq. (10) (PDF p. 5): `L f(x,z) = ∫_0^x G(r, r') f(x') dx'` with
`r = (x,z)` and `r' = (x', h(x'))` on the surface `h`. -/
def leftOp (k : ℝ) (h : ℝ → ℝ) (f : ℝ → ℂ) (x z : ℝ) : ℂ :=
∫ x' in (0 : ℝ)..x, greenTwoWay k x z x' (h x') * f x'
/-- Section 3.1, definition after eq. (10) (PDF p. 5): `R f(x,z) = ∫_x^∞ G(r, r') f(x') dx'` with
`r = (x,z)` and `r' = (x', h(x'))`, as an improper integral. -/
def rightOp (k : ℝ) (h : ℝ → ℝ) (f : ℝ → ℂ) (x z : ℝ) : ℂ :=
improperIntegral (fun x' => greenTwoWay k x z x' (h x') * f x') x
/-- Eq. (7) (Section 3.1, PDF p. 5): the two-way scattered-field integral
`∫_0^∞ G(r, r') f(x') dx'`, `r = (x,z)`, `r' = (x', h(x'))`, for a surface source `f = ∂ψ/∂z`. -/
def twoWayField (k : ℝ) (h : ℝ → ℝ) (f : ℝ → ℂ) (x z : ℝ) : ℂ :=
improperIntegral (fun x' => greenTwoWay k x z x' (h x') * f x') 0
/-- Eq. (20) (Section 4.1, PDF p. 8): `L_0`, the deterministic (flat surface, `h = 0`) form of `L`,
evaluated on the mean plane: `L_0 f(x) = α ∫_0^x (x-x')^{-1/2} f(x') dx'`. -/
def leftOpFlat (k : ℝ) (f : ℝ → ℂ) (x : ℝ) : ℂ :=
leftOp k (fun _ => 0) f x 0
/-- Eq. (20) (Section 4.1, PDF p. 8): `R_0`, the deterministic (flat surface, `h = 0`) form of `R`,
evaluated on the mean plane. With `G` of eq. (6) this is
`R_0 f(x) = α ∫_x^∞ (x'-x)^{-1/2} exp[2ik(x'-x)] f(x') dx'`. -/
def rightOpFlat (k : ℝ) (f : ℝ → ℂ) (x : ℝ) : ℂ :=
rightOp k (fun _ => 0) f x 0
section Series
variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E]
/-- Eq. (12) (Section 3.2, PDF p. 6): the `n`-th term `(L⁻¹R)ⁿ L⁻¹ ψ_i` of the series
`∂ψ/∂z = [L⁻¹ - L⁻¹RL⁻¹ + (L⁻¹R)²L⁻¹ - ...] ψ_i`, for an invertible operator `L` and an
operator `R` on a normed space. The series is `∑ (-1)ⁿ (L⁻¹R)ⁿ L⁻¹ ψ_i`. -/
def seriesTerm (L : E ≃L[ℂ] E) (R : E →L[ℂ] E) (ψi : E) (n : ℕ) : E :=
(((L.symm : E →L[ℂ] E).comp R) ^ n) (L.symm ψi)
/-- Eq. (13) (Section 3.2, PDF p. 6): the first approximation `ψ̃ = L⁻¹ ψ_i`. -/
def firstApprox (L : E ≃L[ℂ] E) (ψi : E) : E := L.symm ψi
/-- Eq. (15) (Section 3.2, PDF p. 6): the correction term `C = L⁻¹ R L⁻¹ ψ_i`. -/
def correctionTerm (L : E ≃L[ℂ] E) (R : E →L[ℂ] E) (ψi : E) : E := L.symm (R (L.symm ψi))
end Series
/-- Eq. (16) (Section 4.1, PDF p. 8) without its `O(σ³)` remainder: the scattered field on the mean
plane `z = 0` for an incident field `ψ_i(x,z)`, surface `h` and surface source `u = ∂ψ/∂z`,
`-ψ_i(x,h) - h [u - ∂ψ_i/∂z (x,h)] - (h²/2) ∂²ψ_i/∂z² (x,0)`. The point `(x,h)` of the
`∂ψ_i/∂z` term is the one printed in eq. (18). -/
def meanPlaneField (ψi : ℝ → ℝ → ℂ) (h : ℝ → ℝ) (u : ℝ → ℂ) (x : ℝ) : ℂ :=
-ψi x (h x) - (h x : ℂ) * (u x - deriv (ψi x) (h x)) -
(h x : ℂ) ^ 2 / 2 * iteratedDeriv 2 (ψi x) 0
end Arxiv1408_1879
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
alpha (the constant ). For every real number (no sign or nonzero condition), this defines the complex number
The power is the principal-branch complex power , with argument in .
- For , lies on the positive imaginary axis, so .
- For , lies on the negative imaginary axis, so .
- For , division by zero is evaluated as , and the power is . Hence .
S. For every real number , this defines the real number
There is no restriction on ; it is any real number, interpreted in radians.
greenOneWay (the one-way kernel ). For all real , define
- is the constant above.
- means , computed as a positive real number.
- The exponent is times a real number.
- There is no condition on . If , then and the whole kernel vanishes identically.
greenTwoWay (the two-way kernel ). For all real , define as follows.
- If , it equals the same expression as :
- If , it equals
At the single point , the second formula is used with the conventions and . The prefactor is therefore , and for all . If , vanishes identically.
ImproperIntegrable. For a function and a real number , the statement " is improperly integrable from " means both of the following hold:
- For every real , is Lebesgue integrable on the interval (with respect to Lebesgue measure).
- There exists a complex number such that
improperIntegral. For and , this is the value
- No integrability hypothesis is built into this definition.
- Each is an oriented interval integral. It is taken to be whenever is not integrable on the interval.
- If the limit does not exist, the value is an unspecified, arbitrary complex number. It is a junk value, not and not "undefined".
- When the limit exists, the value is that (unique) limit.
leftOp (the operator ). For real , a surface profile , a function , and real , define
where is the two-way kernel above. Points to note:
- This is an oriented interval integral, with no regularity assumption on or .
- If the integrand is not Lebesgue integrable on the interval between and , the value is .
- For , almost every in the range satisfies , so only the first () branch of contributes.
- For , the integral equals , and the range has , so the second branch of (including the factor ) is used.
- For , the value is .
rightOp (the operator ). For the same data , define
This is the improper integral of the previous definition, . On the second branch of applies:
No integrability or convergence is assumed. If the limit fails to exist, the value is an unspecified complex number. Truncations on which the integrand is not integrable contribute .
twoWayField (the scattered-field integral). For as above, define
as the improper integral , with the same junk-value conventions as above.
- The range includes points with , where the first branch of is used.
- It also includes points with , where the second branch is used.
- No relation between and any field (for instance ) is imposed; is an arbitrary function.
leftOpFlat (the flat operator ). For real , , and real , define
that is, with surface , evaluated at . Since , the Gaussian exponential equals .
- For this is
taken to be if the integrand is not integrable.
- For it is
- For it is .
rightOpFlat (the flat operator ). For real , , and , define
Equivalently, it is the integrand integrated improperly from . If the limit does not exist, the value is an unspecified complex number.
seriesTerm (the -th series term). Let be any normed vector space over ; completeness is not assumed. Let:
- be a continuous linear bijection with continuous linear inverse ;
- be any continuous linear map;
- ;
- be a natural number.
The term is defined as
where is the -fold composite of , and is the identity. Thus . The definition contains no sign factor . It defines only the individual term; no series, sum, or convergence statement is made.
firstApprox. For , , and as in the previous definition, this is
This coincides with .
correctionTerm. For , , , and as above, this is
This coincides with , with no minus sign.
meanPlaneField. The inputs are:
- an arbitrary function , written ;
- an arbitrary surface ;
- an arbitrary function ;
- a real number .
The definition is
The derivatives are ordinary derivatives in the second variable of the map , a function from to , with held fixed. Note the following:
- The first-derivative term is evaluated at , while the second-derivative term is evaluated at .
- If is not differentiable at the relevant point, the derivative there is taken to be . The second derivative is the derivative of the derivative function, with the same convention.
- No relation between , , and is imposed; in particular, is not required to equal .
- No small parameter appears, and no remainder term is included; the quantity is exactly the displayed three-term expression.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.