Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

BCS gap equation: gap integrals, Δ(0)\Delta(0)Δ(0), TcT_cTc​ and Δ(T)\Delta(T)Δ(T)

Definition
BCSTheory_GapEquation

by Lucas · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

bcs-theoryintegral-equationsuperconductivity

Weak-coupling BCS model with Debye cutoff. Parameters: Boltzmann constant kB>0k_B>0kB​>0, Debye energy ℏωD>0\hbar\omega_D>0ℏωD​>0, coupling λ=V0Z(EF)>0\lambda = V_0Z(E_F)>0λ=V0​Z(EF​)>0 (attractive potential times half the density of states at the Fermi energy).

  • Fermi–Dirac distribution f(E,T)=1/(eE/kBT+1)f(E,T) = 1/(e^{E/k_BT}+1)f(E,T)=1/(eE/kB​T+1).
  • Quasiparticle energy E(η,Δ)=η2+Δ2E(\eta,\Delta) = \sqrt{\eta^2+\Delta^2}E(η,Δ)=η2+Δ2​.
  • I0(ℏωD,Δ)=∫0ℏωDdη/η2+Δ2I_0(\hbar\omega_D,\Delta) = \int_0^{\hbar\omega_D} d\eta/\sqrt{\eta^2+\Delta^2}I0​(ℏωD​,Δ)=∫0ℏωD​​dη/η2+Δ2​ (right-hand side of the T=0T=0T=0 gap equation).
  • I(kB,ℏωD,Δ,T)=∫0ℏωDdηη2+Δ2tanh⁡η2+Δ22kBTI(k_B,\hbar\omega_D,\Delta,T) = \int_0^{\hbar\omega_D} \frac{d\eta}{\sqrt{\eta^2+\Delta^2}}\tanh\frac{\sqrt{\eta^2+\Delta^2}}{2k_BT}I(kB​,ℏωD​,Δ,T)=∫0ℏωD​​η2+Δ2​dη​tanh2kB​Tη2+Δ2​​ (right-hand side of the finite-TTT gap equation; for Δ=0\Delta=0Δ=0 it is the TcT_cTc​ integral).
  • Δ(0)=sup⁡{Δ>0:I0(ℏωD,Δ)=1/λ}\Delta(0) = \sup\{\Delta>0 : I_0(\hbar\omega_D,\Delta) = 1/\lambda\}Δ(0)=sup{Δ>0:I0​(ℏωD​,Δ)=1/λ}.
  • Tc=sup⁡{T>0:I(kB,ℏωD,0,T)=1/λ}T_c = \sup\{T>0 : I(k_B,\hbar\omega_D,0,T) = 1/\lambda\}Tc​=sup{T>0:I(kB​,ℏωD​,0,T)=1/λ}.
  • Δ(T)=sup⁡{Δ>0:I(kB,ℏωD,Δ,T)=1/λ}\Delta(T) = \sup\{\Delta>0 : I(k_B,\hbar\omega_D,\Delta,T) = 1/\lambda\}Δ(T)=sup{Δ>0:I(kB​,ℏωD​,Δ,T)=1/λ}.

Conventions: suprema of empty sets (or sets unbounded above) are 000; division by 000 is 000. Uniqueness of the solutions is stated as separate milestones.

Definition code
import Mathlib

/-!
# BCS gap equation (weak-coupling BCS model with Debye cutoff)

Parameters used throughout:
* `kB > 0` — the Boltzmann constant,
* `hbarOmegaD > 0` — the Debye cutoff energy `ħ ω_D`,
* `coupling > 0` — the dimensionless coupling `V₀ · Z(E_F)` (attractive potential times
  half the density of states at the Fermi energy).
-/

namespace BCSTheory

/-- The Fermi–Dirac distribution `f(E, T) = 1 / (exp(E / (k_B T)) + 1)`. -/
noncomputable def fermiDirac (kB E T : ℝ) : ℝ :=
  1 / (Real.exp (E / (kB * T)) + 1)

/-- The quasiparticle energy `√(η² + Δ²)`. -/
noncomputable def quasiparticleEnergy (η Δ : ℝ) : ℝ :=
  Real.sqrt (η ^ 2 + Δ ^ 2)

/-- The right-hand side of the zero-temperature gap equation,
`∫₀^{ħω_D} dη / √(η² + Δ²)`. -/
noncomputable def gapIntegralZeroTemp (hbarOmegaD Δ : ℝ) : ℝ :=
  ∫ η in (0 : ℝ)..hbarOmegaD, 1 / quasiparticleEnergy η Δ

/-- The right-hand side of the finite-temperature BCS gap equation,
`∫₀^{ħω_D} dη · tanh(√(η² + Δ²) / (2 k_B T)) / √(η² + Δ²)`.
For `Δ = 0` the integrand is `tanh(η / (2 k_B T)) / η` (the critical-temperature equation). -/
noncomputable def gapIntegral (kB hbarOmegaD Δ T : ℝ) : ℝ :=
  ∫ η in (0 : ℝ)..hbarOmegaD,
    Real.tanh (quasiparticleEnergy η Δ / (2 * kB * T)) / quasiparticleEnergy η Δ

/-- The zero-temperature gap `Δ(0)`: the supremum of all `Δ > 0` solving
`1 / (V₀ Z(E_F)) = ∫₀^{ħω_D} dη / √(η² + Δ²)`. -/
noncomputable def zeroTemperatureGap (hbarOmegaD coupling : ℝ) : ℝ :=
  sSup {Δ : ℝ | 0 < Δ ∧ gapIntegralZeroTemp hbarOmegaD Δ = 1 / coupling}

/-- The critical (transition) temperature `T_c`: the supremum of all `T > 0` solving
`1 / (V₀ Z(E_F)) = ∫₀^{ħω_D} (dη / η) tanh(η / (2 k_B T))`. -/
noncomputable def criticalTemperature (kB hbarOmegaD coupling : ℝ) : ℝ :=
  sSup {T : ℝ | 0 < T ∧ gapIntegral kB hbarOmegaD 0 T = 1 / coupling}

/-- The temperature-dependent gap `Δ(T)`: the supremum of all `Δ > 0` solving the
finite-temperature gap equation `1 / (V₀ Z(E_F)) = gapIntegral kB ħω_D Δ T`
(this is `0` when no positive solution exists, e.g. for `T ≥ T_c`). -/
noncomputable def gap (kB hbarOmegaD coupling T : ℝ) : ℝ :=
  sSup {Δ : ℝ | 0 < Δ ∧ gapIntegral kB hbarOmegaD Δ T = 1 / coupling}

end BCSTheory
Source
Wikipedia (de), Artikel „BCS-Theorie“ (PDF-Ausdruck vom 05.10.2026), Abschnitt „Erfolge der BCS-Theorie“, Unterabschnitte „Existenz einer Energielücke“ und „Isotopeneffekt“.
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; non-blind

Non-blind read-back — not independent testimony. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statements, with full knowledge of the source text and of the intended meaning. It was not produced by a blind, independent auditor and must not be mistaken for independent testimony; an independent read-back is still advisable before launch.

The definition file (namespace BCSTheory) introduces, for real parameters, the following real-valued functions. No hypotheses are attached to any of them; all inputs range over all of R\mathbb RR.

  • Fermi–Dirac function f(kB,E,T)=1eE/(kBT)+1f(k_B,E,T) = \dfrac{1}{e^{E/(k_B T)}+1}f(kB​,E,T)=eE/(kB​T)+11​. If kBT=0k_BT = 0kB​T=0 the exponent E/(kBT)E/(k_BT)E/(kB​T) is taken to be 000 (division by zero returns 000), so then f=1/2f = 1/2f=1/2.
  • Quasiparticle energy E(η,Δ)=η2+Δ2E(\eta,\Delta) = \sqrt{\eta^2+\Delta^2}E(η,Δ)=η2+Δ2​ (non-negative square root).
  • Zero-temperature gap integral
I0(ℏωD,Δ)=∫0ℏωDdηη2+Δ2,I_0(\hbar\omega_D,\Delta) = \int_0^{\hbar\omega_D}\frac{d\eta}{\sqrt{\eta^2+\Delta^2}},I0​(ℏωD​,Δ)=∫0ℏωD​​η2+Δ2​dη​,

an oriented interval integral (negative of ∫ℏωD0\int_{\hbar\omega_D}^0∫ℏωD​0​ if ℏωD<0\hbar\omega_D<0ℏωD​<0). Where the integrand is undefined (η=Δ=0\eta = \Delta = 0η=Δ=0) it equals 000; if the integrand is not integrable (e.g. Δ=0\Delta = 0Δ=0, ℏωD≠0\hbar\omega_D\neq0ℏωD​=0, where 1/∣η∣1/|\eta|1/∣η∣ is not integrable at 000) the integral is defined to be 000.

  • Finite-temperature gap integral
I(kB,ℏωD,Δ,T)=∫0ℏωDtanh⁡(η2+Δ2/(2kBT))η2+Δ2 dη,I(k_B,\hbar\omega_D,\Delta,T) = \int_0^{\hbar\omega_D}\frac{\tanh\bigl(\sqrt{\eta^2+\Delta^2}/(2k_BT)\bigr)}{\sqrt{\eta^2+\Delta^2}}\,d\eta,I(kB​,ℏωD​,Δ,T)=∫0ℏωD​​η2+Δ2​tanh(η2+Δ2​/(2kB​T))​dη,

with the same conventions (a quotient with zero denominator is 000; a non-integrable integrand gives integral 000). For Δ=0\Delta=0Δ=0 the integrand is tanh⁡(∣η∣/(2kBT))/∣η∣\tanh(|\eta|/(2k_BT))/|\eta|tanh(∣η∣/(2kB​T))/∣η∣.

  • Zero-temperature gap Δ0(ℏωD,λ)=sup⁡{Δ∈R:Δ>0, I0(ℏωD,Δ)=1/λ}\Delta_0(\hbar\omega_D,\lambda) = \sup\{\Delta\in\mathbb R : \Delta>0,\ I_0(\hbar\omega_D,\Delta) = 1/\lambda\}Δ0​(ℏωD​,λ)=sup{Δ∈R:Δ>0, I0​(ℏωD​,Δ)=1/λ}.
  • Critical temperature Tc(kB,ℏωD,λ)=sup⁡{T∈R:T>0, I(kB,ℏωD,0,T)=1/λ}T_c(k_B,\hbar\omega_D,\lambda) = \sup\{T\in\mathbb R : T>0,\ I(k_B,\hbar\omega_D,0,T) = 1/\lambda\}Tc​(kB​,ℏωD​,λ)=sup{T∈R:T>0, I(kB​,ℏωD​,0,T)=1/λ}.
  • Temperature-dependent gap Δ(kB,ℏωD,λ,T)=sup⁡{Δ∈R:Δ>0, I(kB,ℏωD,Δ,T)=1/λ}\Delta(k_B,\hbar\omega_D,\lambda,T) = \sup\{\Delta\in\mathbb R : \Delta>0,\ I(k_B,\hbar\omega_D,\Delta,T) = 1/\lambda\}Δ(kB​,ℏωD​,λ,T)=sup{Δ∈R:Δ>0, I(kB​,ℏωD​,Δ,T)=1/λ}.

In the last three, 1/λ1/\lambda1/λ is 000 when λ=0\lambda = 0λ=0, and the supremum is the real-number supremum, which by convention equals 000 when the set is empty or unbounded above. In particular, nothing in the definitions asserts that these sets are nonempty, bounded, or singletons; these facts are separate theorems. Note also that Δ(kB,ℏωD,λ,T)\Delta(k_B,\hbar\omega_D,\lambda,T)Δ(kB​,ℏωD​,λ,T) at T=0T=0T=0 is not Δ0\Delta_0Δ0​: at T=0T=0T=0 the argument of tanh⁡\tanhtanh is 000 by the division convention, so I(⋅,⋅,Δ,0)=0I(\cdot,\cdot,\Delta,0)=0I(⋅,⋅,Δ,0)=0.

Human review
  • Endorsed by Shuze Chen · Oct 10, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 10, 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