Gaussian self-affine surfaces, the Kirchhoff mean DRC and the Lévy stable density
DefinitionArxivcond_mat_0408414_BasicObjects of Simonsen, Vandembroucq and Roux, Secs. II-IV. Angles are in radians and the vacuum wave number is .
- Slope over a distance (Eq. 3b). For a self-affine profile with Hurst exponent and topothesy , . The slope over one wavelength is .
- Increment standard deviation (Eq. 4). for . With this equals (Eq. 3a).
- The function (Eqs. 6, 14b, 15). For angles let . The increment over the horizontal distance is centred Gaussian with standard deviation , and
When the law is the point mass at . 4. Kirchhoff mean differential reflection coefficient for a profile of length (Eq. 14a). For a function ,
The factor is the paper's . 5. Lévy stable density (Eq. 17c). . The integral is real; its real part is taken. 6. Closed form (Eqs. 17a, 17b). With , the prefactor is
the argument is , and . 7. Scaling lengths (Sec. IV). , , and .
import Mathlib
/-!
I. Simonsen, D. Vandembroucq and S. Roux, *Electromagnetic wave scattering from conducting
self-affine surfaces: an analytic and numerical study*, arXiv:cond-mat/0408414v2: the
self-affine height-increment scales (Sec. II, Eqs. (3), (4)), the Gaussian increment law and the
function `Ω(v)` (Eqs. (6), (14b), (15)), the Kirchhoff mean differential reflection coefficient of a
profile of length `L` (Eq. (14a)), the centred symmetric Lévy stable density (Eq. (17c)), the
closed form (17a)-(17b) of the mean differential reflection coefficient, and the characteristic
lengths `δ_ang`, `δ_rough` and their ratio `χ` of the scaling analysis (Sec. IV).
Angles are in radians; the vacuum wave number is `ω/c = 2π/λ` (Sec. II-III).
-/
open MeasureTheory ProbabilityTheory Real
noncomputable section
namespace Arxivcond_mat_0408414
/-- Sec. II, Eq. (3b), PDF p. 4: the mean slope of a self-affine profile of Hurst exponent `H`
and topothesy `ℓ` over a horizontal distance `Δx`, `s(Δx) = (ℓ/Δx)^(1-H)`. The slope over one
wavelength is `s(λ) = slope ℓ H λ`. -/
def slope (ell H dx : ℝ) : ℝ := (ell / dx) ^ (1 - H)
/-- Sec. II, Eq. (4), PDF p. 4: the standard deviation of the height increment
`ζ(x + Δx) - ζ(x)` over a horizontal distance `Δx ≥ 0`, normalised by the wavelength `λ`:
`σ(Δx) = λ s(λ) (Δx/λ)^H`, where `s = s(λ)` is the slope over one wavelength. -/
def incStd (lam s H dx : ℝ) : ℝ := lam * s * (dx / lam) ^ H
/-- Sec. III, Eqs. (14b) and (15) (first line), PDF p. 7, with the Gaussian law of Eq. (6):
`Ω(v) = ⟨exp{-i Q Δζ(v)}⟩ = ∫ exp(-i Q z) p(z; |v|) dz`, where `Q = (ω/c)(cos θ + cos θ₀)`,
`Q = (2π/λ)(cos θ + cos θ₀)`, and the increment `Δζ(v) = ζ(x) - ζ(x + v)` over the horizontal
distance `|v|` is centred Gaussian with standard deviation `σ(|v|) = incStd λ s H |v|`
(Eq. (6); stationary increments). The law is Mathlib's `gaussianReal 0 σ²`, which is the Dirac
mass at `0` when `σ = 0`. -/
def gaussOmega (lam s H θ θ0 : ℝ) (v : ℝ) : ℂ :=
∫ z, Complex.exp (-(((2 * π / lam) * (cos θ + cos θ0) * z : ℝ) : ℂ) * Complex.I)
∂(gaussianReal 0 ⟨(incStd lam s H |v|) ^ 2, sq_nonneg _⟩)
/-- Sec. III, Eq. (14a), PDF p. 7: the mean differential reflection coefficient in the Kirchhoff
approximation for a profile of length `L`, in terms of the function `Ω(v)` of Eq. (14b), with
`ω/c = 2π/λ`:
`⟨∂R_s/∂θ⟩ = (ω/(2πc)) (1/cos θ₀) (cos((θ+θ₀)/2)/cos((θ-θ₀)/2))²
∫_{-L/2}^{L/2} exp{i (ω/c)(sin θ - sin θ₀) v} Ω(v) dv`. -/
def kirchhoffMDRC (lam θ θ0 L : ℝ) (Ω : ℝ → ℂ) : ℂ :=
(((2 * π / lam) / (2 * π) * (1 / cos θ0) * (cos ((θ + θ0) / 2) / cos ((θ - θ0) / 2)) ^ 2 : ℝ) : ℂ) *
∫ v in (-(L / 2))..(L / 2),
Complex.exp ((((2 * π / lam) * (sin θ - sin θ0) * v : ℝ) : ℂ) * Complex.I) * Ω v
/-- Sec. III, Eq. (17c), PDF p. 8: the centred symmetric Lévy stable density of index `α`
(`0 < α ≤ 2`), `𝓛_α(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 * π)
/-- Sec. III, Eq. (17b), PDF p. 8: `a = 2π√2 cos((θ+θ₀)/2) cos((θ-θ₀)/2)`. -/
def levyA (θ θ0 : ℝ) : ℝ := 2 * π * √2 * cos ((θ + θ0) / 2) * cos ((θ - θ0) / 2)
/-- Sec. III, Eq. (17a), PDF p. 8: the prefactor of the Lévy density,
`s(λ)^(-1/H) a^(-(1/H-1)) / (√2 cos θ₀) · cos((θ+θ₀)/2) / cos³((θ-θ₀)/2)`, with `s = s(λ)`. -/
def levyPrefactor (H s θ θ0 : ℝ) : ℝ :=
s ^ (-(1 / H)) * levyA θ θ0 ^ (-(1 / H - 1)) / (√2 * cos θ0) *
(cos ((θ + θ0) / 2) / cos ((θ - θ0) / 2) ^ 3)
/-- Sec. III, Eq. (17a), PDF p. 8: the argument of the Lévy density,
`√2 tan((θ-θ₀)/2) / (a^(1/H-1) s(λ)^(1/H))`. -/
def levyArg (H s θ θ0 : ℝ) : ℝ :=
√2 * tan ((θ - θ0) / 2) / (levyA θ θ0 ^ (1 / H - 1) * s ^ (1 / H))
/-- Sec. III, Eqs. (17a)-(17c), PDF p. 8: the closed form of the mean differential reflection
coefficient of a perfectly conducting Gaussian self-affine surface (Hurst exponent `H`, slope
`s = s(λ)` over one wavelength) in the Kirchhoff approximation,
`⟨∂R_s/∂θ⟩ = levyPrefactor · 𝓛_{2H}(levyArg)`. -/
def mdrcFinal (H s θ θ0 : ℝ) : ℝ :=
levyPrefactor H s θ θ0 * levyDensity (2 * H) (levyArg H s θ θ0)
/-- Sec. IV, PDF p. 13: the horizontal distance over which the angular retardation
`(sin θ - sin θ₀) Δx` equals the wavelength, `δ_ang = λ / (sin θ - sin θ₀)`. -/
def deltaAng (lam θ θ0 : ℝ) : ℝ := lam / (sin θ - sin θ0)
/-- Sec. IV, PDF p. 13: the horizontal distance over which the roughness retardation
`(cos θ + cos θ₀) Δz`, with `Δz = σ(Δx)` of Eq. (4), equals the wavelength,
`δ_rough = λ s(λ)^(-1/H) / (cos θ + cos θ₀)^(1/H)`. -/
def deltaRough (lam H s θ θ0 : ℝ) : ℝ :=
lam * s ^ (-(1 / H)) / (cos θ + cos θ0) ^ (1 / H)
/-- Sec. IV, PDF p. 13: the ratio `χ = δ_rough / δ_ang
= (sin θ - sin θ₀) s(λ)^(-1/H) / (cos θ + cos θ₀)^(1/H)`. -/
def chiRatio (lam H s θ θ0 : ℝ) : ℝ := deltaRough lam H s θ θ0 / deltaAng lam θ θ0
end Arxivcond_mat_0408414
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Throughout, all quantities are real numbers with no hypotheses imposed (no positivity, no range restrictions on angles, exponents or lengths), and the following conventions of the underlying total operations apply wherever they occur:
- Division: for every .
- Real powers with real exponent:
- for it is the usual power;
- for it is if and otherwise, including when ;
- for it is .
- Tangent: means , so it equals where .
- Integrals: an integral of a non-integrable function is . An oriented integral with equals .
slope. For real numbers , and , this defines
The edge cases follow from the conventions above:
- If , the base is , so the value is when and otherwise.
- If , the value is .
incStd. For real numbers , , and , this defines
No sign condition is imposed on any argument. Edge cases:
- If , the value is .
- If , the negative-base convention applies.
- The value can be negative.
gaussOmega. For real numbers and , set
where is incStd evaluated at . The definition is the complex number
which is the expectation of for a Gaussian with mean and variance .
- Only enters, so the sign of is irrelevant.
- When , the measure is the point mass at and . This happens, for example, when , when , or when with .
- When , also .
- The integrand has modulus , so the integral is always defined.
kirchhoffMDRC. For real numbers and an arbitrary function , this defines the complex number
The real prefactor is computed with the division-by-zero convention, so it is in any of these cases:
- ;
- ;
- .
The integral is oriented: for it equals , and for it is . If the integrand is not integrable on the interval, the integral is taken to be . The function is not required to be the gaussOmega function above or to have any property.
levyDensity. For real numbers and , this defines
where the integral is the Lebesgue integral over all of and only its real part is kept.
- No restriction is placed on ; in particular is not assumed.
- For , the integrand does not decay at infinity, so it is not integrable and the integral is taken to be ; hence for every . (Here follows the zero-base convention: it is if and otherwise.)
- Nothing in the definition asserts that is nonnegative or integrates to .
levyA. For real angles and , this defines
The value may be positive, zero or negative.
levyPrefactor. For real numbers , with as in levyA, this defines
Here is an ordinary cube, while the other two powers are real powers subject to the conventions above. In particular:
- For or , the negative-base convention applies.
- For , one has , so the factors become and .
- The value is if or .
levyArg. For real numbers , with , this defines
The same power, division and tangent conventions apply. For example:
- If and , the denominator is and .
- If , the denominator is , and this is itself when .
mdrcFinal. For real numbers , this defines
Here is levyPrefactor, is levyArg, and is levyDensity with index . Consequences:
- No restriction on is imposed. For , one has by the remark under
levyDensity, so . - The definition makes no reference to a wavelength, to , or to
kirchhoffMDRCorgaussOmega. It is a standalone expression, and no relation between it and those definitions is asserted.
deltaAng. For real numbers , this defines
The value is when (for instance, when ). It may be negative.
deltaRough. For real numbers , this defines
The real-power conventions apply:
- If , the negative-base rule is used.
- If and , the denominator is and the value is .
- If , both powers equal and the value is .
chiRatio. For real numbers , this defines
The expression is literally this quotient. Two cases follow from the division convention:
- When and , it equals .
- When , the value is regardless of the other arguments, because then .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.