Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Kramers-Kronig relations, Dirac-model permittivity and the local slab model

Definition
Arxiv1506_07229_Basic

by Xeroth · Nov 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

complex-analysisdielectric-responsekramers-kronigtwo-dimensional-materials

Objects of Nazarov (2015), Eq. (5), Eq. (10), Appendix A and Appendix B. Atomic units are used, so e2=ℏ=me=1e^2=\hbar=m_e=1e2=ℏ=me​=1.

  1. Upper half-plane. C+={ω∈C:Im⁡ω>0}\mathbb{C}_+=\{\omega\in\mathbb{C}:\operatorname{Im}\omega>0\}C+​={ω∈C:Imω>0}, and its closure C+‾={Im⁡ω≥0}\overline{\mathbb{C}_+}=\{\operatorname{Im}\omega\ge0\}C+​​={Imω≥0}.
  2. Kramers-Kronig relations (Eq. 5). A response function R:R→CR:\mathbb{R}\to\mathbb{C}R:R→C of real frequency (only its values at ω≥0\omega\ge0ω≥0 enter) satisfies the KK relations if R(ω)R(\omega)R(ω) tends to a real limit R(∞)R(\infty)R(∞) as ω→∞\omega\to\inftyω→∞ and, for every ω≥0\omega\ge0ω≥0,
Re⁡R(ω)=R(∞)+2π P ⁣∫0∞ω′Im⁡R(ω′)ω′2−ω2 dω′,Im⁡R(ω)=−2ωπ P ⁣∫0∞Re⁡R(ω′)−R(∞)ω′2−ω2 dω′.\operatorname{Re}R(\omega)=R(\infty)+\frac{2}{\pi}\,\mathcal P\!\int_0^\infty\frac{\omega'\operatorname{Im}R(\omega')}{\omega'^2-\omega^2}\,d\omega',\qquad \operatorname{Im}R(\omega)=-\frac{2\omega}{\pi}\,\mathcal P\!\int_0^\infty\frac{\operatorname{Re}R(\omega')-R(\infty)}{\omega'^2-\omega^2}\,d\omega'.ReR(ω)=R(∞)+π2​P∫0∞​ω′2−ω2ω′ImR(ω′)​dω′,ImR(ω)=−π2ω​P∫0∞​ω′2−ω2ReR(ω′)−R(∞)​dω′.

The principal value is the limit as δ→0+\delta\to0^+δ→0+ of the integral over (0,∞)∖(ω−δ,ω+δ)(0,\infty)\setminus(\omega-\delta,\omega+\delta)(0,∞)∖(ω−δ,ω+δ). 3. Array-to-layer relation (Eq. 10). For a layer in an array with separation ddd, wave number qqq and array permittivity ε3D\varepsilon_{3D}ε3D​,

1ε=1+12 11[1/ε3D−1] qd+1eqd−1.\frac1\varepsilon=1+\frac12\,\frac{1}{\frac{1}{[1/\varepsilon_{3D}-1]\,qd}+\frac{1}{e^{qd}-1}}.ε1​=1+21​[1/ε3D​−1]qd1​+eqd−11​1​.
  1. Strictly-2D Dirac model of graphene (Appendix A). Undoped graphene with Fermi velocity vvv, bands ±v∣k∣\pm v|k|±v∣k∣ and spin-valley degeneracy 444, at wave vector Q=(q,0)Q=(q,0)Q=(q,0) and imaginary frequency iuiuiu, has RPA density response
χ(q,iu)=−4(2π)2∫R2(1−cos⁡θk,k+Q)SS2+u2 d2k,S=v(∣k∣+∣k+Q∣).\chi(q,iu)=-\frac{4}{(2\pi)^2}\int_{\mathbb{R}^2}\big(1-\cos\theta_{k,k+Q}\big)\frac{S}{S^2+u^2}\,d^2k,\qquad S=v(|k|+|k+Q|).χ(q,iu)=−(2π)24​∫R2​(1−cosθk,k+Q​)S2+u2S​d2k,S=v(∣k∣+∣k+Q∣).

Its permittivity is ε(q,iu)=1−2πqχ(q,iu)\varepsilon(q,iu)=1-\frac{2\pi}{q}\chi(q,iu)ε(q,iu)=1−q2π​χ(q,iu). 5. Slab model (Appendix B). A slab ∣z∣≤a/2|z|\le a/2∣z∣≤a/2 has local permittivity ε=ε(ω)\varepsilon=\varepsilon(\omega)ε=ε(ω) and vacuum outside. Under the external potential 111, the total potential is 1+A1e−qz1+A_1e^{-qz}1+A1​e−qz for z>a/2z>a/2z>a/2, 1/ε+A2e−qz+B2eqz1/\varepsilon+A_2e^{-qz}+B_2e^{qz}1/ε+A2​e−qz+B2​eqz for ∣z∣≤a/2|z|\le a/2∣z∣≤a/2, and 1+B3eqz1+B_3e^{qz}1+B3​eqz for z<−a/2z<-a/2z<−a/2 (B2). The boundary conditions (B3) are continuity of ϕ\phiϕ and of ε(z)ϕ′(z)\varepsilon(z)\phi'(z)ε(z)ϕ′(z) at z=±a/2z=\pm a/2z=±a/2. The coefficients of (B4) are

A2=B2=ε−1εeaq/21+eaq+ε(eaq−1),A1=B3=ε(1−eaq)A2.A_2=B_2=\frac{\varepsilon-1}{\varepsilon}\frac{e^{aq/2}}{1+e^{aq}+\varepsilon(e^{aq}-1)},\qquad A_1=B_3=\varepsilon(1-e^{aq})A_2.A2​=B2​=εε−1​1+eaq+ε(eaq−1)eaq/2​,A1​=B3​=ε(1−eaq)A2​.

The induced charge (B6) is the density q24π(1ε−1)\frac{q^2}{4\pi}(\frac1\varepsilon-1)4πq2​(ε1​−1) on ∣z∣<a/2|z|<a/2∣z∣<a/2, plus the point charges q4π[(A1−A2)e−qa/2+B2eqa/2]\frac{q}{4\pi}[(A_1-A_2)e^{-qa/2}+B_2e^{qa/2}]4πq​[(A1​−A2​)e−qa/2+B2​eqa/2] at z=a/2z=a/2z=a/2 and q4π[(B3−B2)e−qa/2+A2eqa/2]\frac{q}{4\pi}[(B_3-B_2)e^{-qa/2}+A_2e^{qa/2}]4πq​[(B3​−B2​)e−qa/2+A2​eqa/2] at z=−a/2z=-a/2z=−a/2. The Q2D inverse permittivity of the slab (B8) is

1ε(q,ω)=1+qa2[1ε(ω)−1]+A1e−qa/2+2A2sinh⁡qa2.\frac{1}{\varepsilon(q,\omega)}=1+\frac{qa}{2}\Big[\frac{1}{\varepsilon(\omega)}-1\Big]+A_1e^{-qa/2}+2A_2\sinh\frac{qa}{2}.ε(q,ω)1​=1+2qa​[ε(ω)1​−1]+A1​e−qa/2+2A2​sinh2qa​.
  1. Drude permittivity and 2D electron gas. (B9) is ε(ω)=1−ωp2/(ω+iη)2\varepsilon(\omega)=1-\omega_p^2/(\omega+i\eta)^2ε(ω)=1−ωp2​/(ω+iη)2. (B10) is ε(q,ω)=1−2πn2Dq/(ω+iη)2\varepsilon(q,\omega)=1-2\pi n_{2D}q/(\omega+i\eta)^2ε(q,ω)=1−2πn2D​q/(ω+iη)2.

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 k⋅(k+Q)/(∣k∣∣k+Q∣)k\cdot(k+Q)/(|k||k+Q|)k⋅(k+Q)/(∣k∣∣k+Q∣). It is undefined only at k=0k=0k=0 and k=−Qk=-Qk=−Q, a set of measure zero. The charge density (B6) is encoded by its action ∫ρ t dz\int\rho\,t\,dz∫ρtdz on functions ttt, and ∫ρ dz\int\rho\,dz∫ρdz is its value at t=1t=1t=1. ωp2\omega_p^2ωp2​ is a real parameter wp2.

Definition code
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
Source
V. U. Nazarov, Negative static permittivity and violation of Kramers-Kronig relations in quasi-two-dimensional crystals, arXiv:1506.07229v3 (2015), main text Eqs. (5), (6), (10), PDF pp. 2-3; Appendix A, Eq. (A1), PDF p. 6; Appendix B, Eqs. (B2)-(B10), PDF pp. 6-8
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:

H={ z∈C:Im⁡z>0 }.\mathbb{H} = \{\, z \in \mathbb{C} : \operatorname{Im} z > 0 \,\}.H={z∈C:Imz>0}.

The real axis is excluded.


closedUpperHalf is the set of complex numbers with non-negative imaginary part:

H‾={ z∈C:Im⁡z≥0 }.\overline{\mathbb{H}} = \{\, z \in \mathbb{C} : \operatorname{Im} z \ge 0 \,\}.H={z∈C:Imz≥0}.

The real axis is included.


KKRelations is a property of an arbitrary function R:R→CR : \mathbb{R} \to \mathbb{C}R:R→C. No continuity, measurability, analyticity or boundedness of RRR is assumed. The property holds exactly when there is a real number R∞R_\inftyR∞​ satisfying both of the following.

  1. R(ω)→R∞R(\omega) \to R_\inftyR(ω)→R∞​ in C\mathbb{C}C as ω→+∞\omega \to +\inftyω→+∞.
  2. For every real ω≥0\omega \ge 0ω≥0, writing Eδ=(0,∞)∖(ω−δ, ω+δ)E_\delta = (0,\infty) \setminus (\omega-\delta,\, \omega+\delta)Eδ​=(0,∞)∖(ω−δ,ω+δ), both of these one-sided limits hold as δ→0+\delta \to 0^+δ→0+ (only δ>0\delta > 0δ>0 is considered):
R∞+2π∫Eδx Im⁡R(x)x2−ω2 dx  ⟶  Re⁡R(ω),R_\infty + \frac{2}{\pi} \int_{E_\delta} \frac{x\, \operatorname{Im} R(x)}{x^2 - \omega^2}\, dx \;\longrightarrow\; \operatorname{Re} R(\omega),R∞​+π2​∫Eδ​​x2−ω2xImR(x)​dx⟶ReR(ω), −2ωπ∫EδRe⁡R(x)−R∞x2−ω2 dx  ⟶  Im⁡R(ω).-\frac{2\omega}{\pi} \int_{E_\delta} \frac{\operatorname{Re} R(x) - R_\infty}{x^2 - \omega^2}\, dx \;\longrightarrow\; \operatorname{Im} R(\omega).−π2ω​∫Eδ​​x2−ω2ReR(x)−R∞​​dx⟶ImR(ω).

Several details are fixed by the code:

  • The integrals are Lebesgue integrals over EδE_\deltaEδ​. By convention, if an integrand is not Lebesgue-integrable on EδE_\deltaEδ​, that integral is assigned the value 000 for that δ\deltaδ; no integrability is required by the definition.
  • The removed interval (ω−δ,ω+δ)(\omega-\delta, \omega+\delta)(ω−δ,ω+δ) is open, so its endpoints remain in EδE_\deltaEδ​. The singular point x=ωx = \omegax=ω is always removed.
  • For ω=0\omega = 0ω=0, the set EδE_\deltaEδ​ is [δ,∞)[\delta, \infty)[δ,∞). The second condition then has left-hand side identically 000, so it forces Im⁡R(0)=0\operatorname{Im} R(0) = 0ImR(0)=0.
  • Only the values of RRR on [0,∞)[0,\infty)[0,∞) and its behaviour at +∞+\infty+∞ enter. Values at negative arguments are unconstrained.

invEpsFrom3D takes reals q,dq, dq,d and a complex number ε3D\varepsilon_{3D}ε3D​ and returns the complex number

1+12⋅11(ε3D−1−1) qd+1eqd−1.1 + \frac{1}{2} \cdot \frac{1}{\dfrac{1}{(\varepsilon_{3D}^{-1} - 1)\, q d} + \dfrac{1}{e^{qd} - 1}}.1+21​⋅(ε3D−1​−1)qd1​+eqd−11​1​.

No sign or non-vanishing conditions are imposed on qqq, ddd or ε3D\varepsilon_{3D}ε3D​. Every reciprocal or division by zero here evaluates to 000 by convention. Consequently:

  • If ε3D=0\varepsilon_{3D} = 0ε3D​=0, then ε3D−1\varepsilon_{3D}^{-1}ε3D−1​ is taken as 000.
  • If ε3D=1\varepsilon_{3D} = 1ε3D​=1, the first inner fraction is 000.
  • If qd=0qd = 0qd=0, both inner fractions are 000, the outer reciprocal is 000, and the value is 111.
  • If the inner sum is 000, the value is 111.

diracChi takes reals v,q,uv, q, uv,q,u (any signs, including zero) and returns the real number

χ(v,q,u)=−4(2π)2∫R2(1−k1(k1+q)+k22∣k∣ ∣k+Q∣)S(k)S(k)2+u2 d2k.\chi(v,q,u) = -\frac{4}{(2\pi)^2} \int_{\mathbb{R}^2} \left(1 - \frac{k_1(k_1+q) + k_2^2}{|k|\,|k+Q|}\right) \frac{S(k)}{S(k)^2 + u^2}\, d^2k .χ(v,q,u)=−(2π)24​∫R2​(1−∣k∣∣k+Q∣k1​(k1​+q)+k22​​)S(k)2+u2S(k)​d2k.

The notation is as follows:

  • k=(k1,k2)k = (k_1, k_2)k=(k1​,k2​) ranges over R2\mathbb{R}^2R2 with Lebesgue measure.
  • Q=(q,0)Q = (q, 0)Q=(q,0).
  • ∣k∣=k12+k22|k| = \sqrt{k_1^2 + k_2^2}∣k∣=k12​+k22​​ and ∣k+Q∣=(k1+q)2+k22|k+Q| = \sqrt{(k_1+q)^2 + k_2^2}∣k+Q∣=(k1​+q)2+k22​​.
  • S(k)=v (∣k∣+∣k+Q∣)S(k) = v\,(|k| + |k+Q|)S(k)=v(∣k∣+∣k+Q∣).

Edge cases follow from Lean's conventions:

  • Division by zero gives 000. At k=0k = 0k=0 or k=−Qk = -Qk=−Q the cosine-type fraction is therefore 000, so the first factor is 111.
  • Wherever S(k)2+u2=0S(k)^2 + u^2 = 0S(k)2+u2=0 (for instance v=0v = 0v=0 and u=0u = 0u=0), the second factor is 000.
  • If the integrand is not Lebesgue-integrable on R2\mathbb{R}^2R2, the integral, and hence χ\chiχ, is assigned the value 000.

dirac2DEps takes reals v,q,uv, q, uv,q,u and returns the real number

ε(v,q,u)=1−2πq χ(v,q,u),\varepsilon(v,q,u) = 1 - \frac{2\pi}{q}\, \chi(v,q,u),ε(v,q,u)=1−q2π​χ(v,q,u),

where χ\chiχ is diracChi above. For q=0q = 0q=0 the factor 2π/q2\pi/q2π/q is 000 by convention, so the value is 111.


slabA2 takes a complex number ε\varepsilonε and reals a,qa, qa,q (no sign conditions) and returns

A2(ε,a,q)=ε−1ε eaq/21+eaq+ε (eaq−1).A_2(\varepsilon,a,q) = \frac{\dfrac{\varepsilon - 1}{\varepsilon}\, e^{aq/2}}{1 + e^{aq} + \varepsilon\,(e^{aq} - 1)}.A2​(ε,a,q)=1+eaq+ε(eaq−1)εε−1​eaq/2​.

Division by zero gives 000, with two consequences:

  • If ε=0\varepsilon = 0ε=0, the factor (ε−1)/ε(\varepsilon-1)/\varepsilon(ε−1)/ε is 000, so A2=0A_2 = 0A2​=0.
  • If the denominator 1+eaq+ε(eaq−1)1 + e^{aq} + \varepsilon(e^{aq}-1)1+eaq+ε(eaq−1) vanishes, A2=0A_2 = 0A2​=0.

slabA1 takes a complex number ε\varepsilonε and reals a,qa, qa,q and returns

A1(ε,a,q)=ε (1−eaq) A2(ε,a,q),A_1(\varepsilon,a,q) = \varepsilon\,(1 - e^{aq})\, A_2(\varepsilon,a,q),A1​(ε,a,q)=ε(1−eaq)A2​(ε,a,q),

with A2A_2A2​ as in slabA2. In particular A1=0A_1 = 0A1​=0 whenever ε=0\varepsilon = 0ε=0, aq=0aq = 0aq=0, or A2=0A_2 = 0A2​=0.


slabBC is a property of a complex number ε\varepsilonε, reals a,qa, qa,q, and complex numbers A1,A2,B2,B3A_1, A_2, B_2, B_3A1​,A2​,B2​,B3​. Write e±=e±qa/2e_\pm = e^{\pm qa/2}e±​=e±qa/2. The property asserts that all four of the following equations hold simultaneously:

1+A1e−=1ε+A2e−+B2e+,1+B3e−=1ε+A2e++B2e−,−A1e−=ε (−A2e−+B2e+),B3e−=ε (−A2e++B2e−).\begin{aligned} 1 + A_1 e_- &= \tfrac{1}{\varepsilon} + A_2 e_- + B_2 e_+, \\ 1 + B_3 e_- &= \tfrac{1}{\varepsilon} + A_2 e_+ + B_2 e_-, \\ -A_1 e_- &= \varepsilon\,(-A_2 e_- + B_2 e_+), \\ B_3 e_- &= \varepsilon\,(-A_2 e_+ + B_2 e_-). \end{aligned}1+A1​e−​1+B3​e−​−A1​e−​B3​e−​​=ε1​+A2​e−​+B2​e+​,=ε1​+A2​e+​+B2​e−​,=ε(−A2​e−​+B2​e+​),=ε(−A2​e+​+B2​e−​).​

Here 1/ε1/\varepsilon1/ε is taken as 000 when ε=0\varepsilon = 0ε=0. 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 ε\varepsilonε, reals a,qa, qa,q, complex numbers A1,A2,B2,B3A_1, A_2, B_2, B_3A1​,A2​,B2​,B3​, and a real zzz, and returns the complex number

φ(z)={1+A1e−qz,z>a/2,1ε+A2e−qz+B2eqz,−a/2≤z≤a/2,1+B3eqz,otherwise.\varphi(z) = \begin{cases} 1 + A_1 e^{-qz}, & z > a/2, \\[2pt] \tfrac{1}{\varepsilon} + A_2 e^{-qz} + B_2 e^{qz}, & -a/2 \le z \le a/2, \\[2pt] 1 + B_3 e^{qz}, & \text{otherwise}. \end{cases}φ(z)=⎩⎨⎧​1+A1​e−qz,ε1​+A2​e−qz+B2​eqz,1+B3​eqz,​z>a/2,−a/2≤z≤a/2,otherwise.​

The cases are tested in this order: first z>a/2z > a/2z>a/2, then z≥−a/2z \ge -a/2z≥−a/2, and the last case covers everything remaining. Both endpoints z=±a/2z = \pm a/2z=±a/2 belong to the middle case. Two edge cases arise:

  • As usual, 1/ε=01/\varepsilon = 01/ε=0 if ε=0\varepsilon = 0ε=0.
  • No condition a≥0a \ge 0a≥0 is imposed. If a<0a < 0a<0 the middle case is empty, and the last case covers all z≤a/2z \le a/2z≤a/2.

slabRho takes a complex number ε\varepsilonε, reals a,qa, qa,q, complex numbers A1,A2,B2,B3A_1, A_2, B_2, B_3A1​,A2​,B2​,B3​, and an arbitrary function t:R→Ct : \mathbb{R} \to \mathbb{C}t:R→C. It returns the complex number

q4π(q(1ε−1)∫−a/2a/2t(z) dz  +  [(A1−A2)e−qa/2+B2eqa/2] t(a/2)  +  [(B3−B2)e−qa/2+A2eqa/2] t(−a/2)).\frac{q}{4\pi}\Big( q\big(\tfrac{1}{\varepsilon} - 1\big) \int_{-a/2}^{a/2} t(z)\,dz \;+\; \big[(A_1 - A_2)e^{-qa/2} + B_2 e^{qa/2}\big]\, t(a/2) \;+\; \big[(B_3 - B_2)e^{-qa/2} + A_2 e^{qa/2}\big]\, t(-a/2) \Big).4πq​(q(ε1​−1)∫−a/2a/2​t(z)dz+[(A1​−A2​)e−qa/2+B2​eqa/2]t(a/2)+[(B3​−B2​)e−qa/2+A2​eqa/2]t(−a/2)).

The following conventions apply:

  • The integral is an oriented interval integral. If a<0a < 0a<0, it equals minus the integral over [a/2,−a/2][a/2, -a/2][a/2,−a/2].
  • If ttt is not integrable on the interval, the integral is assigned 000.
  • 1/ε=01/\varepsilon = 01/ε=0 when ε=0\varepsilon = 0ε=0.
  • No conditions are placed on ttt or on the coefficients.

slabInvEps takes a complex number ε\varepsilonε and reals a,qa, qa,q and returns

1+qa2(1ε−1)+A1(ε,a,q) e−qa/2+2 A2(ε,a,q) sinh⁡ ⁣(qa2).1 + \frac{qa}{2}\Big(\frac{1}{\varepsilon} - 1\Big) + A_1(\varepsilon,a,q)\, e^{-qa/2} + 2\, A_2(\varepsilon,a,q)\, \sinh\!\big(\tfrac{qa}{2}\big).1+2qa​(ε1​−1)+A1​(ε,a,q)e−qa/2+2A2​(ε,a,q)sinh(2qa​).

Here A2A_2A2​ and A1A_1A1​ are given explicitly by slabA2 and slabA1:

A2=ε−1ε eaq/21+eaq+ε(eaq−1),A1=ε(1−eaq) A2.A_2 = \frac{\frac{\varepsilon-1}{\varepsilon}\, e^{aq/2}}{1 + e^{aq} + \varepsilon(e^{aq}-1)}, \qquad A_1 = \varepsilon(1 - e^{aq})\, A_2 .A2​=1+eaq+ε(eaq−1)εε−1​eaq/2​,A1​=ε(1−eaq)A2​.

Division by zero is 000. In particular, for ε=0\varepsilon = 0ε=0 the value is 1−qa/21 - qa/21−qa/2.


drudeEps takes reals ωp2\omega_p^2ωp2​ (an arbitrary real, not required to be non-negative or to be a square), η\etaη, and ω\omegaω, and returns the complex number

1−ωp2(ω+iη)2.1 - \frac{\omega_p^2}{(\omega + i\eta)^2}.1−(ω+iη)2ωp2​​.

No sign conditions are imposed. When ω=η=0\omega = \eta = 0ω=η=0, the division by zero gives 000, so the value is 111.


twoDEGEps takes reals n,η,q,ωn, \eta, q, \omegan,η,q,ω (any signs) and returns the complex number

1−2πnq(ω+iη)2.1 - \frac{2\pi n q}{(\omega + i\eta)^2}.1−(ω+iη)22πnq​.

When ω=η=0\omega = \eta = 0ω=η=0, the division by zero gives 000, so the value is 111.

Human review
  • Endorsed by Shuze Chen · Nov 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 24, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me