Helmholtz equation, reflectionless ansatz, permittivity profile and physical conditions (i)-(v)
DefinitionArxiv1510_02920_BasicObjects of Philbin, All-frequency reflectionlessness (2015), PDF pp. 3-5. Throughout, is the speed of light and .
- Helmholtz equation (eq. 1). At normal incidence and real frequency , a field in a planar non-magnetic medium of permittivity satisfies . A solution at is twice differentiable there.
- Ansatz (eq. 2). For a complex function and a constant , .
- Generated permittivity (eq. 3). , for complex .
- Choice of (eq. 4) and profile (eq. 8). with real and . The example takes , . The far-left limit of this is .
- Physical conditions (i)-(v) on . (i) for every , is analytic in the open upper half-plane and continuous on the closed upper half-plane minus ; (ii) for real ; (iii) for real ; (iv) for some integer and every there are with as real ; the relaxed version allowing a divergence takes ; (v) for every there is with as real .
- Mirrored slab (Fig. 2). Cutting at and attaching its mirror image gives for and for . The field of a plane source at the cut is for and for .
Formalization Note The paper writes conditions (iv) and (v) with "". They are read as asymptotic expansions with -remainders, and the frequency limits are taken along real . In (i), continuity up to the real axis is added so that the real-frequency values are the boundary values of the analytic function, which is what the Kramers–Kronig relations require. Formula (3) is defined for every complex , but it is used only for .
import Mathlib
/-!
T. G. Philbin, *All-frequency reflectionlessness*, arXiv:1510.02920v1 (2015): the scalar Helmholtz
equation (1) at normal incidence, the field ansatz (2), the permittivity (3) it generates, the
choice (4) of `P`, the profile (8), the physical conditions (i)-(v) on a permittivity, and the
mirrored slab of the final paragraph (PDF pp. 3-5). The letter has no section numbers.
-/
open Filter Topology Asymptotics
noncomputable section
namespace Arxiv1510_02920
/-- Eq. (2), PDF p. 3: the field `E(x,ω) = E₀ exp[i k₀ ∫₀ˣ P(x',ω) dx']` with `k₀ = ω/c`, at a
real frequency `ω`. `P` is a complex function of position and (complex) frequency. -/
def waveField (c : ℝ) (E0 : ℂ) (P : ℝ → ℂ → ℂ) (ω : ℝ) (x : ℝ) : ℂ :=
E0 * Complex.exp (Complex.I * ((ω / c : ℝ) : ℂ) * ∫ t in (0 : ℝ)..x, P t (ω : ℂ))
/-- Eq. (1), PDF p. 3: the function `E` solves the scalar Helmholtz equation
`[d²/dx² + k₀² ε(x,ω)] E = 0`, `k₀ = ω/c`, at the point `x`, where `ε = eps` is the permittivity
at the fixed real frequency `ω`. `E` is required to be differentiable near `x` and `E'` to be
differentiable at `x`, so that `E''(x)` is a genuine second derivative. -/
def HelmholtzAt (c ω : ℝ) (eps E : ℝ → ℂ) (x : ℝ) : Prop :=
(∀ᶠ y in 𝓝 x, DifferentiableAt ℝ E y) ∧ DifferentiableAt ℝ (deriv E) x ∧
deriv (deriv E) x + ((ω / c : ℝ) : ℂ) ^ 2 * eps x * E x = 0
/-- Eq. (3), PDF p. 3: the permittivity generated by the ansatz (2),
`ε(x,ω) = P(x,ω)² − (i c/ω) ∂ₓP(x,ω)`, for complex frequency `ω ≠ 0`. -/
def perm (c : ℝ) (P : ℝ → ℂ → ℂ) (x : ℝ) (ω : ℂ) : ℂ :=
P x ω ^ 2 - Complex.I * (c : ℂ) / ω * deriv (fun y : ℝ => P y ω) x
/-- Eq. (4), PDF p. 3: `P(x,ω) = 1 + f(x)/(γ − iω)²` with a real function `f` and `γ > 0`. -/
def ansatzP (f : ℝ → ℝ) (γ : ℝ) (x : ℝ) (ω : ℂ) : ℂ :=
1 + (f x : ℂ) / ((γ : ℂ) - Complex.I * ω) ^ 2
/-- Eq. (8), PDF p. 3: the profile `f(x) = (Ω²/2)[1 + tanh(−x/a)]`, `a > 0`. -/
def tanhProfile (Om a : ℝ) (x : ℝ) : ℝ :=
Om ^ 2 / 2 * (1 + Real.tanh (-x / a))
/-- Eqs. (4) and (8), PDF p. 3: the function `P` of the paper's example,
`P(x,ω) = 1 + f(x)/(γ − iω)²` with `f` the profile (8). -/
def tanhP (Om a γ : ℝ) : ℝ → ℂ → ℂ :=
ansatzP (tanhProfile Om a) γ
/-- Eqs. (3), (4) and (8), PDF pp. 3-4 (plotted in Fig. 1): the permittivity of the paper's
example, `ε = P² − (ic/ω) ∂ₓP` with `P` from (4) and `f` from (8). -/
def tanhPerm (c Om a γ : ℝ) : ℝ → ℂ → ℂ :=
perm c (tanhP Om a γ)
/-- PDF p. 4, paragraph after Fig. 1: the limit `1 + Ω²/(γ − iω)²` of `P(x,ω)` as `x → −∞` for
the example (4), (8); the far-left homogeneous material has permittivity equal to its square. -/
def mediumIndex (Om γ : ℝ) (ω : ℂ) : ℂ :=
1 + ((Om ^ 2 : ℝ) : ℂ) / ((γ : ℂ) - Complex.I * ω) ^ 2
/-- Condition (i), PDF p. 3: for every `x`, `ε(x,·)` is analytic in the open upper half of the
complex `ω`-plane. It is also required to be continuous on the closed upper half-plane minus
`ω = 0`, so that its values at real `ω` are the boundary values of the analytic function (the
reading needed for the Kramers–Kronig relations the paper invokes). -/
def CondAnalytic (eps : ℝ → ℂ → ℂ) : Prop :=
∀ x, AnalyticOnNhd ℂ (eps x) {w : ℂ | 0 < w.im} ∧
ContinuousOn (eps x) {w : ℂ | 0 ≤ w.im ∧ w ≠ 0}
/-- Condition (ii), PDF p. 3: `ε(x,−ω) = ε*(x,ω)` for every `x` and every real `ω ≠ 0`. -/
def CondReality (eps : ℝ → ℂ → ℂ) : Prop :=
∀ (x ω : ℝ), ω ≠ 0 → eps x (-(ω : ℂ)) = star (eps x (ω : ℂ))
/-- Condition (iii), PDF p. 3 (no gain): `Im ε(x,ω) > 0` for every `x` and every real `ω > 0`. -/
def CondNoGain (eps : ℝ → ℂ → ℂ) : Prop :=
∀ (x ω : ℝ), 0 < ω → 0 < (eps x (ω : ℂ)).im
/-- Condition (iv), PDF p. 3, with lowest allowed exponent `nmin` (the paper's (iv) is
`nmin = -1`; the relaxed condition of PDF p. 5 allowing a `1/ω²` divergence is `nmin = -2`):
there is an integer `n ≥ nmin` such that for every `x`,
`ε(x,ω) = a(x) + b(x) ωⁿ + o(ωⁿ)` as real `ω → 0`, `ω ≠ 0`. -/
def CondLowFreq (nmin : ℤ) (eps : ℝ → ℂ → ℂ) : Prop :=
∃ n : ℤ, nmin ≤ n ∧ ∀ x, ∃ a b : ℂ,
(fun ω : ℝ => eps x (ω : ℂ) - (a + b * (ω : ℂ) ^ n)) =o[𝓝[≠] (0 : ℝ)]
(fun ω : ℝ => (ω : ℂ) ^ n)
/-- Condition (v), PDF p. 3: for every `x`, `ε(x,ω) = 1 + C(x)/ω² + o(1/ω²)` as real `ω → ∞`. -/
def CondHighFreq (eps : ℝ → ℂ → ℂ) : Prop :=
∀ x, ∃ C : ℂ,
(fun ω : ℝ => eps x (ω : ℂ) - (1 + C / (ω : ℂ) ^ 2)) =o[atTop]
(fun ω : ℝ => 1 / (ω : ℂ) ^ 2)
/-- PDF p. 5, final paragraph (Fig. 2): the slab obtained by cutting the permittivity `eps` at
`x = x₀` and attaching its mirror image in the plane of the cut: `eps(x)` for `x ≥ x₀` and
`eps(2x₀ − x)` for `x < x₀`. -/
def slabPerm (eps : ℝ → ℂ → ℂ) (x0 : ℝ) (x : ℝ) (ω : ℂ) : ℂ :=
if x0 ≤ x then eps x ω else eps (2 * x0 - x) ω
/-- PDF p. 5, final paragraph (Fig. 2): the field of a plane source at the cut `x₀` of the
mirrored slab, equal to the exiting wave `E` for `x ≥ x₀` and to its mirror image `E(2x₀ − x)`
for `x < x₀`. -/
def slabField (E : ℝ → ℂ) (x0 : ℝ) (x : ℝ) : ℂ :=
if x0 ≤ x then E x else E (2 * x0 - x)
end Arxiv1510_02920
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
waveField (parameters: real , complex , a function , real , real ). This is the complex number
- The quotient is computed as a real number and then viewed as complex. If , the convention applies, so the exponent is and for every .
- is evaluated only at the real frequency , viewed as a complex number.
- The integral is the oriented interval integral, so for it equals .
- If is not integrable on the interval, the integral is taken to be .
- No hypotheses are imposed on , , or .
HelmholtzAt (parameters: reals , functions , a point ). This is the proposition that all three of the following hold:
- there is a neighbourhood of on which is differentiable at every point, as a map from to ;
- the derivative is differentiable at ;
- the equation
holds.
Here is a single function of position only. The frequency enters only through the real number . If , this factor is (division-by-zero convention), and the condition reduces to together with the differentiability requirements.
perm (parameters: real , , real , complex ). This is the complex number
- is the derivative at of the map , . It is taken to be if that map is not differentiable at .
- No hypothesis is imposed. At the division convention gives , so .
- The definition is total in all arguments.
ansatzP (parameters: , real , real , complex ). This is
- No sign condition on (such as ) is imposed.
- The denominator vanishes exactly when . At that point the division convention gives .
tanhProfile (parameters: reals ). This is the real number
- No condition is imposed.
- If , then , so for all (a constant).
- If , the profile is reflected in .
tanhP (parameters: reals ). This is the function given by
It inherits the conventions above:
- no sign conditions on or ;
- at ;
- the constant profile when .
tanhPerm (parameters: reals ). This is the function given by
where is the function of tanhP with these , and is the derivative in the real variable at fixed .
- At the value is (division-by-zero convention).
- No conditions on are imposed.
mediumIndex (parameters: reals , complex ). This is simply the complex number
At the value is (division-by-zero convention). The definition itself asserts nothing about limits in , and nothing about any permittivity.
CondAnalytic (parameter: ). This is the proposition that, for every real , both of the following hold for the map :
- it is complex-analytic at every point of the open upper half-plane ;
- it is continuous, relative to the set, on .
Nothing is required at or in the lower half-plane.
CondReality (parameter: ). This is the proposition that
Only real frequencies are constrained, and is excluded.
CondNoGain (parameter: ). This is the proposition that
The inequality is strict. Negative and non-real frequencies are not constrained.
CondLowFreq (parameters: an integer , and ). This is the proposition that there exists a single integer , the same for all , with the following property. For every real there are complex numbers (which may depend on ) such that
- The limit is two-sided: and .
- is the integer power, so it is when .
- The little- means: for every , the left side has modulus at most for all sufficiently small real .
Edge cases:
- is allowed.
- For , the constant is itself , so the condition then only says .
- For , it only says .
- Because may be any integer , larger give stronger requirements and smaller give weaker ones.
CondHighFreq (parameter: ). This is the proposition that for every real there is a complex number (which may depend on ) such that
Only the limit along the reals is constrained. The leading constant is fixed to be exactly .
slabPerm (parameters: , real , real , complex ). This is
that is, the restriction of to , reflected about . Its values for of the original are discarded.
slabField (parameters: , real , real ). This is
the reflection about of the part of on . No differentiability, source term or equation is part of the definition.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.