BCS gap equation: gap integrals, , and
DefinitionBCSTheory_GapEquationWeak-coupling BCS model with Debye cutoff. Parameters: Boltzmann constant , Debye energy , coupling (attractive potential times half the density of states at the Fermi energy).
- Fermi–Dirac distribution .
- Quasiparticle energy .
- (right-hand side of the gap equation).
- (right-hand side of the finite- gap equation; for it is the integral).
- .
- .
- .
Conventions: suprema of empty sets (or sets unbounded above) are ; division by is . Uniqueness of the solutions is stated as separate milestones.
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
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 .
- Fermi–Dirac function . If the exponent is taken to be (division by zero returns ), so then .
- Quasiparticle energy (non-negative square root).
- Zero-temperature gap integral
an oriented interval integral (negative of if ). Where the integrand is undefined () it equals ; if the integrand is not integrable (e.g. , , where is not integrable at ) the integral is defined to be .
- Finite-temperature gap integral
with the same conventions (a quotient with zero denominator is ; a non-integrable integrand gives integral ). For the integrand is .
- Zero-temperature gap .
- Critical temperature .
- Temperature-dependent gap .
In the last three, is when , and the supremum is the real-number supremum, which by convention equals 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 at is not : at the argument of is by the division convention, so .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.