Kramers-Kronig relations, Dirac-model permittivity and the local slab model
DefinitionArxiv1506_07229_BasicObjects of Nazarov (2015), Eq. (5), Eq. (10), Appendix A and Appendix B. Atomic units are used, so .
- Upper half-plane. , and its closure .
- Kramers-Kronig relations (Eq. 5). A response function of real frequency (only its values at enter) satisfies the KK relations if tends to a real limit as and, for every ,
The principal value is the limit as of the integral over . 3. Array-to-layer relation (Eq. 10). For a layer in an array with separation , wave number and array permittivity ,
- Strictly-2D Dirac model of graphene (Appendix A). Undoped graphene with Fermi velocity , bands and spin-valley degeneracy , at wave vector and imaginary frequency , has RPA density response
Its permittivity is . 5. Slab model (Appendix B). A slab has local permittivity and vacuum outside. Under the external potential , the total potential is for , for , and for (B2). The boundary conditions (B3) are continuity of and of at . The coefficients of (B4) are
The induced charge (B6) is the density on , plus the point charges at and at . The Q2D inverse permittivity of the slab (B8) is
- Drude permittivity and 2D electron gas. (B9) is . (B10) is .
Formalization Note In the Dirac model the wave vector is taken along the first axis; the model is isotropic. The cosine factor is written as . It is undefined only at and , a set of measure zero. The charge density (B6) is encoded by its action on functions , and is its value at . is a real parameter wp2.
import Mathlib
/-!
V. U. Nazarov, *Negative static permittivity and violation of Kramers-Kronig relations in
quasi-two-dimensional crystals*, arXiv:1506.07229v3 (2015): the Kramers-Kronig relations (Eq. (5)),
the upper half of the complex frequency plane, the array-to-layer relation (Eq. (10)), the
strictly-2D Dirac model of graphene (Appendix A, Eq. (A1)), and the local slab model of
Appendix B (Eqs. (B2)-(B4), (B6), (B8), (B9), (B10)).
-/
open MeasureTheory Filter Topology Real
noncomputable section
namespace Arxiv1506_07229
/-- Introduction and Eq. (6), p. 1-2: the upper half of the complex `ω`-plane, `Im ω > 0`. -/
def upperHalf : Set ℂ := {z : ℂ | 0 < z.im}
/-- The closed upper half of the complex `ω`-plane, `Im ω ≥ 0` (the real axis included), on which
the Cauchy formula of Eq. (7), p. 3, is applied. -/
def closedUpperHalf : Set ℂ := {z : ℂ | 0 ≤ z.im}
/-- Eq. (5), p. 2: the Kramers-Kronig relations for a response function `R(ω)` of real frequency
`ω ≥ 0`. `R(∞)` is the (real) limit of `R(ω)` as `ω → ∞`, and the principal value `𝒫∫₀^∞` is the
limit as `δ → 0⁺` of the integral over `(0, ∞)` with `(ω - δ, ω + δ)` removed:
`Re R(ω) = R(∞) + (2/π) 𝒫∫₀^∞ ω' Im R(ω') / (ω'² - ω²) dω'` and
`Im R(ω) = -(2ω/π) 𝒫∫₀^∞ (Re R(ω') - R(∞)) / (ω'² - ω²) dω'` for every `ω ≥ 0`. -/
def KKRelations (R : ℝ → ℂ) : Prop :=
∃ Rinf : ℝ, Tendsto R atTop (𝓝 (Rinf : ℂ)) ∧
∀ ω : ℝ, 0 ≤ ω →
Tendsto (fun δ : ℝ => Rinf + (2 / π) *
∫ x in Set.Ioi (0 : ℝ) \ Set.Ioo (ω - δ) (ω + δ), x * (R x).im / (x ^ 2 - ω ^ 2))
(𝓝[>] 0) (𝓝 (R ω).re) ∧
Tendsto (fun δ : ℝ => -(2 * ω / π) *
∫ x in Set.Ioi (0 : ℝ) \ Set.Ioo (ω - δ) (ω + δ), ((R x).re - Rinf) / (x ^ 2 - ω ^ 2))
(𝓝[>] 0) (𝓝 (R ω).im)
/-- Eq. (10), p. 3 (from Nazarov et al., PRB 89, 195423 (2014)): the approximate inverse
permittivity `1/ε(q, ω)` of a single layer in terms of the 3D permittivity `ε_3D = ε_3D(q, ω; d)`
of the array of layers with separation `d`:
`1/ε = 1 + (1/2) / ( 1/([1/ε_3D - 1] q d) + 1/(e^{qd} - 1) )`. -/
def invEpsFrom3D (q d : ℝ) (eps3D : ℂ) : ℂ :=
1 + (1 / 2) * (1 / (1 / ((eps3D⁻¹ - 1) * (q * d)) + 1 / ((Real.exp (q * d) : ℂ) - 1)))
/-- Appendix A, p. 6 (refs. Dobson et al. 2006, Wunsch et al. 2006): the RPA density-response
function `χ(q, iu)` at imaginary frequency `iu` of undoped graphene viewed as a strictly 2D system
of massless Dirac electrons with Fermi velocity `v`, bands `E_{k,±} = ±v|k|`, spin times valley
degeneracy `4`, the lower band filled, and in-plane wave vector `Q = (q, 0)`:
`χ(q, iu) = -(4/(2π)²) ∫_{ℝ²} (1 - cos θ_{k,k+Q}) S/(S² + u²) d²k`, with
`S = v(|k| + |k + Q|)` and `cos θ_{k,k+Q} = k·(k+Q)/(|k||k+Q|)`. -/
def diracChi (v q u : ℝ) : ℝ :=
-(4 / (2 * π) ^ 2) * ∫ k : ℝ × ℝ,
(1 - (k.1 * (k.1 + q) + k.2 ^ 2) /
(Real.sqrt (k.1 ^ 2 + k.2 ^ 2) * Real.sqrt ((k.1 + q) ^ 2 + k.2 ^ 2))) *
(v * (Real.sqrt (k.1 ^ 2 + k.2 ^ 2) + Real.sqrt ((k.1 + q) ^ 2 + k.2 ^ 2)) /
((v * (Real.sqrt (k.1 ^ 2 + k.2 ^ 2) + Real.sqrt ((k.1 + q) ^ 2 + k.2 ^ 2))) ^ 2 + u ^ 2))
/-- Appendix A, p. 6: the RPA permittivity of graphene viewed as a strictly 2D system at
imaginary frequency `iu`, `ε(q, iu) = 1 - (2π/q) χ(q, iu)`, with the 2D Coulomb interaction
`2π/q` and `χ` the Dirac-model response `diracChi`. -/
def dirac2DEps (v q u : ℝ) : ℝ := 1 - (2 * π / q) * diracChi v q u
/-- Appendix B, Eq. (B4), p. 7: the coefficient
`A₂ = B₂ = ((ε - 1)/ε) e^{aq/2} / (1 + e^{aq} + ε (e^{aq} - 1))` of the slab of thickness `a`
with local permittivity `ε = ε(ω)`, at in-plane wave number `q`. -/
def slabA2 (eps : ℂ) (a q : ℝ) : ℂ :=
(eps - 1) / eps * (Real.exp (a * q / 2) : ℂ) /
(1 + (Real.exp (a * q) : ℂ) + eps * ((Real.exp (a * q) : ℂ) - 1))
/-- Appendix B, Eq. (B4), p. 7: the coefficient `A₁ = B₃ = ε (1 - e^{aq}) A₂` of the slab. -/
def slabA1 (eps : ℂ) (a q : ℝ) : ℂ :=
eps * (1 - (Real.exp (a * q) : ℂ)) * slabA2 eps a q
/-- Appendix B, Eq. (B3), p. 6-7: the boundary conditions at `z = ± a/2` on the coefficients
`A₁, A₂, B₂, B₃` of the total potential (B2): continuity of `φ` (first two) and of
`D_z = -ε(z) dφ/dz` (last two). -/
def slabBC (eps : ℂ) (a q : ℝ) (A1 A2 B2 B3 : ℂ) : Prop :=
1 + A1 * (Real.exp (-(q * a / 2)) : ℂ) =
1 / eps + A2 * (Real.exp (-(q * a / 2)) : ℂ) + B2 * (Real.exp (q * a / 2) : ℂ) ∧
1 + B3 * (Real.exp (-(q * a / 2)) : ℂ) =
1 / eps + A2 * (Real.exp (q * a / 2) : ℂ) + B2 * (Real.exp (-(q * a / 2)) : ℂ) ∧
-(A1 * (Real.exp (-(q * a / 2)) : ℂ)) =
eps * (-(A2 * (Real.exp (-(q * a / 2)) : ℂ)) + B2 * (Real.exp (q * a / 2) : ℂ)) ∧
B3 * (Real.exp (-(q * a / 2)) : ℂ) =
eps * (-(A2 * (Real.exp (q * a / 2) : ℂ)) + B2 * (Real.exp (-(q * a / 2)) : ℂ))
/-- Appendix B, Eq. (B2), p. 6: the `z`-profile of the total potential of the slab under the
external potential `φ_ext = 1` (the factor `e^{i(q·r - ωt)}` removed): `1 + A₁ e^{-qz}` in region I
(`z > a/2`), `1/ε + A₂ e^{-qz} + B₂ e^{qz}` in region II (`|z| ≤ a/2`), `1 + B₃ e^{qz}` in region III
(`z < -a/2`). -/
def slabPot (eps : ℂ) (a q : ℝ) (A1 A2 B2 B3 : ℂ) (z : ℝ) : ℂ :=
if a / 2 < z then 1 + A1 * (Real.exp (-(q * z)) : ℂ)
else if -(a / 2) ≤ z then
1 / eps + A2 * (Real.exp (-(q * z)) : ℂ) + B2 * (Real.exp (q * z) : ℂ)
else 1 + B3 * (Real.exp (q * z) : ℂ)
/-- Appendix B, Eq. (B6), p. 7: the induced charge density of the slab, a density
`(q²/4π)(1/ε - 1)` on `|z| < a/2` plus point charges at `z = ± a/2`, given by its action
`∫ ρ(z) t(z) dz` on a function `t`:
`(q/4π) { q (1/ε - 1) ∫_{-a/2}^{a/2} t + [(A₁ - A₂) e^{-qa/2} + B₂ e^{qa/2}] t(a/2)
+ [(B₃ - B₂) e^{-qa/2} + A₂ e^{qa/2}] t(-a/2) }`. With `t = 1` it is `∫ ρ dz`. -/
def slabRho (eps : ℂ) (a q : ℝ) (A1 A2 B2 B3 : ℂ) (t : ℝ → ℂ) : ℂ :=
(q / (4 * π) : ℂ) *
((q : ℂ) * (1 / eps - 1) * (∫ z in (-(a / 2))..(a / 2), t z) +
((A1 - A2) * (Real.exp (-(q * a / 2)) : ℂ) + B2 * (Real.exp (q * a / 2) : ℂ)) * t (a / 2) +
((B3 - B2) * (Real.exp (-(q * a / 2)) : ℂ) + A2 * (Real.exp (q * a / 2) : ℂ)) * t (-(a / 2)))
/-- Appendix B, Eq. (B8), p. 7: the Q2D inverse permittivity of the slab,
`1/ε(q, ω) = 1 + (qa/2)[1/ε(ω) - 1] + A₁ e^{-qa/2} + 2 A₂ sinh(qa/2)`, with `A₁, A₂` from (B4)
and `eps = ε(ω)` the local constituent permittivity. -/
def slabInvEps (eps : ℂ) (a q : ℝ) : ℂ :=
1 + (q * a / 2 : ℂ) * (1 / eps - 1) + slabA1 eps a q * (Real.exp (-(q * a / 2)) : ℂ) +
2 * slabA2 eps a q * (Real.sinh (q * a / 2) : ℂ)
/-- Appendix B, Eq. (B9), p. 8: the Drude constituent permittivity
`ε(ω) = 1 - ω_p² / (ω + iη)²`, with `wp2 = ω_p²` and damping `η`. -/
def drudeEps (wp2 η ω : ℝ) : ℂ := 1 - (wp2 : ℂ) / ((ω : ℂ) + (η : ℂ) * Complex.I) ^ 2
/-- Appendix B, Eq. (B10), p. 8: the long-wave permittivity of the 2D electron gas of areal density
`n = n_2D` with damping `η`, `ε(q, ω) = 1 - 2π n q / (ω + iη)²`. -/
def twoDEGEps (n η q ω : ℝ) : ℂ :=
1 - (2 * π * n * q : ℂ) / ((ω : ℂ) + (η : ℂ) * Complex.I) ^ 2
end Arxiv1506_07229
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
upperHalf is the set of complex numbers with strictly positive imaginary part:
The real axis is excluded.
closedUpperHalf is the set of complex numbers with non-negative imaginary part:
The real axis is included.
KKRelations is a property of an arbitrary function . No continuity, measurability, analyticity or boundedness of is assumed. The property holds exactly when there is a real number satisfying both of the following.
- in as .
- For every real , writing , both of these one-sided limits hold as (only is considered):
Several details are fixed by the code:
- The integrals are Lebesgue integrals over . By convention, if an integrand is not Lebesgue-integrable on , that integral is assigned the value for that ; no integrability is required by the definition.
- The removed interval is open, so its endpoints remain in . The singular point is always removed.
- For , the set is . The second condition then has left-hand side identically , so it forces .
- Only the values of on and its behaviour at enter. Values at negative arguments are unconstrained.
invEpsFrom3D takes reals and a complex number and returns the complex number
No sign or non-vanishing conditions are imposed on , or . Every reciprocal or division by zero here evaluates to by convention. Consequently:
- If , then is taken as .
- If , the first inner fraction is .
- If , both inner fractions are , the outer reciprocal is , and the value is .
- If the inner sum is , the value is .
diracChi takes reals (any signs, including zero) and returns the real number
The notation is as follows:
- ranges over with Lebesgue measure.
- .
- and .
- .
Edge cases follow from Lean's conventions:
- Division by zero gives . At or the cosine-type fraction is therefore , so the first factor is .
- Wherever (for instance and ), the second factor is .
- If the integrand is not Lebesgue-integrable on , the integral, and hence , is assigned the value .
dirac2DEps takes reals and returns the real number
where is diracChi above. For the factor is by convention, so the value is .
slabA2 takes a complex number and reals (no sign conditions) and returns
Division by zero gives , with two consequences:
- If , the factor is , so .
- If the denominator vanishes, .
slabA1 takes a complex number and reals and returns
with as in slabA2. In particular whenever , , or .
slabBC is a property of a complex number , reals , and complex numbers . Write . The property asserts that all four of the following equations hold simultaneously:
Here is taken as when . The definition does not itself state that the values from slabA1 and slabA2 satisfy these equations. The four coefficients are free arguments.
slabPot takes a complex number , reals , complex numbers , and a real , and returns the complex number
The cases are tested in this order: first , then , and the last case covers everything remaining. Both endpoints belong to the middle case. Two edge cases arise:
- As usual, if .
- No condition is imposed. If the middle case is empty, and the last case covers all .
slabRho takes a complex number , reals , complex numbers , and an arbitrary function . It returns the complex number
The following conventions apply:
- The integral is an oriented interval integral. If , it equals minus the integral over .
- If is not integrable on the interval, the integral is assigned .
- when .
- No conditions are placed on or on the coefficients.
slabInvEps takes a complex number and reals and returns
Here and are given explicitly by slabA2 and slabA1:
Division by zero is . In particular, for the value is .
drudeEps takes reals (an arbitrary real, not required to be non-negative or to be a square), , and , and returns the complex number
No sign conditions are imposed. When , the division by zero gives , so the value is .
twoDEGEps takes reals (any signs) and returns the complex number
When , the division by zero gives , so the value is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.