Kirchhoff amplitude and mean differential reflection coefficient of a random profile, increment characteristic function, Gaussian self-affine Omega, Lévy stable density, closed-form mean DRC and Huyge
DefinitionArxivcond_mat_9907145_BasicObjects of Simonsen, Vandembroucq and Roux, Wave scattering from self-affine surfaces (arXiv:cond-mat/9907145v1). Angles are in radians, is the vacuum wave number, and where the wavelength appears .
- Increment scale (Eq. 3). For Hurst exponent and topothesy , for .
- Kirchhoff amplitude (Eq. 9). For a profile on , with , , , , and the incident wave ,
which is with . 3. Mean differential reflection coefficient (Eq. 8). For a random profile under a probability measure , . 4. Characteristic function of the increment (Eq. 11). . 5. Reduced form (Eq. 10). For any function ,
- Gaussian (Eqs. 4, 12). , the point mass at when .
- Lévy stable density (Eq. 14b). (real; its real part is taken).
- Closed form (Eq. 14a). With and ,
- Huygens length scales (PDF p. 3). and .
Formalization Note The closed form is a function of (the ratio used in Fig. 2) rather than of and separately; Eq. (14a) depends on them only through . The paper writes in Eq. (12); uses , since is an increment over the distance .
import Mathlib
/-!
I. Simonsen, D. Vandembroucq and S. Roux, *Wave scattering from self-affine surfaces*,
arXiv:cond-mat/9907145v1 (letter, unsectioned): the self-affine increment scale (Eq. (3)), the
Kirchhoff scattering amplitude (Eq. (9)) and mean differential reflection coefficient (Eq. (8)) of a
random profile of length `L`, the characteristic function `Ω(v)` of the height increment
(Eq. (11)), the reduced form (10) of the mean differential reflection coefficient, the Gaussian
`Ω` (Eqs. (4), (12)), the centred symmetric Lévy stable density (Eq. (14b)), the closed form (14a),
and the Huygens length scales `d_ang`, `d_rough` of the dimensional argument (PDF pp. 3-4).
Angles are in radians. `K` is the vacuum wave number `ω/c`; where the paper uses the wavelength,
`ω/c = 2π/λ`. The closed form is written in terms of the topothesy-to-wavelength ratio `r = ℓ/λ`,
so that `√2 (ω/c) ℓ = 2√2 π r`.
-/
open MeasureTheory ProbabilityTheory Real
noncomputable section
namespace Arxivcond_mat_9907145
/-- Eq. (3), PDF p. 2: the standard deviation of the height difference of a self-affine profile of
Hurst exponent `H` and topothesy `ℓ` over a horizontal distance `Δx ≥ 0`, `σ(Δx) = ℓ^(1-H) Δx^H`. -/
def incStd (ell H dx : ℝ) : ℝ := ell ^ (1 - H) * dx ^ H
/-- Eq. (9), PDF p. 3: the Kirchhoff scattering amplitude of the profile `z = f(x)`, `|x| ≤ L/2`,
for the incident plane wave `Φ₀(x,z) = exp(ikx - iα₀(k)z)` (Eq. (7)), with `q = K sin θ`,
`k = K sin θ₀`, `α₀(q) = K cos θ`, `α₀(k) = K cos θ₀`:
`R(q|k) = (-i/(2α₀(q))) ∫_{-L/2}^{L/2} exp(-iqx - iα₀(q) f(x)) 𝒩(x) dx`, where the source function
is `𝒩(x) = 2 ∂ₙΦ₀(x, z)|_{z = f(x)}` with `∂ₙ = -f'(x) ∂ₓ + ∂_z`, i.e.
`𝒩(x) = 2 (-f'(x) · ik - iα₀(k)) exp(ikx - iα₀(k) f(x))`. -/
def kirchhoffAmp (K θ θ0 L : ℝ) (f : ℝ → ℝ) : ℂ :=
(-Complex.I / (2 * ((K * cos θ : ℝ) : ℂ))) *
∫ x in (-(L / 2))..(L / 2),
Complex.exp (-(((K * sin θ * x + K * cos θ * f x : ℝ) : ℂ)) * Complex.I) *
(2 * (-((deriv f x : ℝ) : ℂ) * (((K * sin θ0 : ℝ) : ℂ) * Complex.I) -
((K * cos θ0 : ℝ) : ℂ) * Complex.I) *
Complex.exp ((((K * sin θ0 * x - K * cos θ0 * f x : ℝ) : ℂ)) * Complex.I))
/-- Eq. (8), PDF p. 3: the mean differential reflection coefficient of a random profile `ζ ω` of
length `L`, `⟨∂R/∂θ⟩ = (1/L) (ω/(2πc)) (cos²θ / cos θ₀) ⟨|R(q|k)|²⟩`, with `R` the Kirchhoff
amplitude of Eq. (9) and `⟨·⟩` the expectation under `P`. -/
def meanDRC {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) (ζ : Ω → ℝ → ℝ)
(K θ θ0 L : ℝ) : ℝ :=
1 / L * (K / (2 * π)) * (cos θ ^ 2 / cos θ0) * ∫ ω, ‖kirchhoffAmp K θ θ0 L (ζ ω)‖ ^ 2 ∂P
/-- Eq. (11), PDF p. 3: `Ω(v) = ⟨exp{-i (ω/c)(cos θ + cos θ₀) Δζ(v)}⟩` with
`Δζ(v) = ζ(x) - ζ(x+v)`, evaluated at `x = 0` (for a profile with stationary increments it does not
depend on `x`). -/
def incrementCF {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) (ζ : Ω → ℝ → ℝ)
(K θ θ0 v : ℝ) : ℂ :=
∫ ω, Complex.exp (-(((K * (cos θ + cos θ0) * (ζ ω 0 - ζ ω v) : ℝ) : ℂ)) * Complex.I) ∂P
/-- Eq. (10), PDF p. 3: the reduced form of the mean differential reflection coefficient, for a
function `Ω`:
`(ω/(2πc)) (1/cos θ₀) (cos²((θ+θ₀)/2) / cos²((θ-θ₀)/2))
∫_{-L/2}^{L/2} exp{i (ω/c)(sin θ - sin θ₀) v} Ω(v) dv`. -/
def kirchhoffMDRC (K θ θ0 L : ℝ) (Ω : ℝ → ℂ) : ℂ :=
((K / (2 * π) * (1 / cos θ0) * (cos ((θ + θ0) / 2) ^ 2 / cos ((θ - θ0) / 2) ^ 2) : ℝ) : ℂ) *
∫ v in (-(L / 2))..(L / 2),
Complex.exp (((K * (sin θ - sin θ0) * v : ℝ) : ℂ) * Complex.I) * Ω v
/-- Eq. (12) (first line), PDF p. 3, with the Gaussian law of Eq. (4): `Ω(v)` for a Gaussian
self-affine profile, `Ω(v) = ∫ exp{-i (ω/c)(cos θ + cos θ₀) z} p(z; |v|) dz`, where the height
increment over the distance `|v|` is centred Gaussian with standard deviation
`σ(|v|) = ℓ^(1-H) |v|^H`. The law is Mathlib's `gaussianReal 0 σ²` (the Dirac mass at `0` if
`σ = 0`). -/
def gaussOmega (K ell H θ θ0 v : ℝ) : ℂ :=
∫ z, Complex.exp (-(((K * (cos θ + cos θ0) * z : ℝ) : ℂ)) * Complex.I)
∂(gaussianReal 0 ⟨(incStd ell H |v|) ^ 2, sq_nonneg _⟩)
/-- Eq. (14b), PDF p. 3: the centred symmetric Lévy stable density of exponent `α`,
`𝓛_α(x) = (1/2π) ∫_{-∞}^{∞} e^{ikx} e^{-|k|^α} dk`. The integral is real (its imaginary part
vanishes because `e^{-|k|^α}` is even), so its real part is taken. -/
def levyDensity (α x : ℝ) : ℝ :=
(∫ k : ℝ, Complex.exp (((k * x : ℝ) : ℂ) * Complex.I) * ((Real.exp (-(|k| ^ α)) : ℝ) : ℂ)).re /
(2 * π)
/-- Eq. (14a), PDF p. 3: `a = √2 (ω/c) ℓ cos((θ+θ₀)/2) cos((θ-θ₀)/2)`, written with
`(ω/c) ℓ = 2π r`, `r = ℓ/λ`. -/
def levyA (r θ θ0 : ℝ) : ℝ := √2 * (2 * π * r) * cos ((θ + θ0) / 2) * cos ((θ - θ0) / 2)
/-- Eqs. (14a)-(14b), PDF p. 3: the closed form of the mean differential reflection coefficient of
a perfectly conducting Gaussian self-affine surface (Hurst exponent `H`, topothesy over wavelength
`r = ℓ/λ`) in the Kirchhoff approximation,
`a^(-(1/H-1)) / (√2 cos θ₀) · cos((θ+θ₀)/2) / cos³((θ-θ₀)/2) · 𝓛_{2H}(√2 tan((θ-θ₀)/2) / a^(1/H-1))`. -/
def mdrcFinal (H r θ θ0 : ℝ) : ℝ :=
levyA r θ θ0 ^ (-(1 / H - 1)) / (√2 * cos θ0) * (cos ((θ + θ0) / 2) / cos ((θ - θ0) / 2) ^ 3) *
levyDensity (2 * H) (√2 * tan ((θ - θ0) / 2) / levyA r θ θ0 ^ (1 / H - 1))
/-- PDF p. 3, dimensional argument: `d_ang = λ / p` with `p = tan((θ-θ₀)/2)` the slope of the
isophase plane. -/
def dAng (lam θ θ0 : ℝ) : ℝ := lam / tan ((θ - θ0) / 2)
/-- PDF p. 3, dimensional argument: `d_rough = λ^(1/H) ℓ^(1-1/H)`, the horizontal length over which
the self-affine height difference is of order `λ`. -/
def dRough (lam ell H : ℝ) : ℝ := lam ^ (1 / H) * ell ^ (1 - 1 / H)
end Arxivcond_mat_9907145
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
incStd: increment scale. For arbitrary real numbers (ell), and (dx), with no hypotheses (none is required to be positive or in ), this is the real number
Both powers are real powers with real exponent, using the total conventions:
- ;
- for ;
- for a negative base , .
So for or the value is this signed or oscillating quantity, not a standard root. If the value is . If the value is , since even when .
kirchhoffAmp: amplitude . For arbitrary reals and an arbitrary function , this is the complex number
Edge cases:
- Prefactor. If , the division by zero yields , so the whole amplitude is .
- Derivative. is the derivative of at when is differentiable there, and is defined to be at any point where is not differentiable. No differentiability, continuity or measurability of is assumed.
- Integral. The integral is an oriented Lebesgue integral from to . It is if . For it equals minus the integral over . It is defined to be if the integrand is not integrable on that interval.
meanDRC: mean differential reflection coefficient. Let be any measurable space with an arbitrary measure ; it is not assumed to be a probability measure or even finite. Let assign to each sample point a function ; no measurability in is assumed. For real , the value is the real number
where is the amplitude defined in kirchhoffAmp above, including its conventions ( when , where is not differentiable, oriented integral over , if not integrable).
Edge cases:
- If or , the division by zero yields .
- The -integral is defined to be if is not -integrable.
incrementCF: the function . With , and as in meanDRC (arbitrary measure, no measurability assumed), and real , this is the complex number
The increment is always taken between the fixed base point and the point ; no stationarity is assumed. The integral is defined to be if the integrand is not -integrable. This happens for example if it is not measurable in , or if is an infinite nonzero measure. If is not a probability measure, this is not an expectation.
kirchhoffMDRC: reduced form (10). For real and an arbitrary function , with no relation to or imposed, this is the complex number
Edge cases:
- Divisions. If or , the corresponding factor is , by the convention that division by zero gives .
- Integral. The -integral is oriented, so it is for and sign-reversed for . It is defined to be if the integrand is not integrable on the interval.
- No factor appears in this expression.
gaussOmega: Gaussian . For real , let
the increment scale of incStd evaluated at , with the real-power conventions stated there (, for , and for , relevant when ). The value is the complex number
where is the centred Gaussian probability measure on with variance . When , is the Dirac mass at , and the integral equals . This occurs for example when and , or when and . No sign or range restriction is placed on or .
levyDensity: the function . For arbitrary reals and , this is the real number
where the integral is the Lebesgue integral over all of and is a real power. Only the real part is kept; nothing asserts that the imaginary part vanishes. No restriction such as is imposed. The integral is defined to be whenever the integrand is not Lebesgue-integrable. In particular, for the factor does not decay as (for it is the constant , using ), so for all . The definition does not assert that is a probability density.
levyA: the quantity . For arbitrary reals , this is
It can be zero or negative; for example it is negative when , or when one of the cosines is negative.
mdrcFinal: closed form (14a)–(14b). For arbitrary reals , write as in levyA and . The value is the real number
with the function of levyDensity at exponent .
Edge cases:
- Real powers. All powers are real powers with the conventions , for , and for . So for the factors are oscillating signed quantities. For and , both and are , so the leading factor is .
- . Here is , so .
- . Here and both powers equal .
- Divisions by zero give . This applies when , when , and inside the argument when .
- Tangent. is , hence wherever the cosine vanishes.
- . The exponent is then , so and the whole expression is .
dAng: length . For arbitrary reals , this is
It equals whenever the tangent is , by the convention that division by zero gives . This includes , and also points where , since there is . It is negative when and the tangent have opposite signs.
dRough: length . For arbitrary reals , this is
with real powers under the conventions , for , and for . If , then is and the value is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.