BlackBody.spectralRadianceWave
defimported Lean
Spectral radiance per unit wavelength of blackbody radiation at wavelength λ for a black body B and speed of light c: B(λ, T) = 2 h c² / λ⁵ · 1 / (e ^ (h c / (λ kB T)) - 1), extended by zero outside the physical domain 0 < λ.
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in open Constants in noncomputable def BlackBody.spectralRadianceWave (B : BlackBody) (c : SpeedOfLight) (lam : ℝ) : ℝ
- Defined in
- Physlib, `BlackBody.spectralRadianceWave`
- Lean proof
- By Samyak Rai, Dwanith C. Jayanth, from github.com/leanprover-community/physlib at
e411c6e89692(Copyright (c) 2026 Samyak Rai. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.BlackBody.spectralRadianceWave← BlackBody.spectralRadianceWave (Physlib/QuantumMechanics/Blackbody/PlancksLaw.lean:145): verbatim
- Verified
- 10 Oct 2026
- Axioms
- none listed
- Built on 30
- Temperature.instCoeRealCoercion to
ℝ. - SpeedOfLight.instCoeRealSpeedOfLight.instCoeReal
- SpeedOfLight.val_nonnegSpeedOfLight.val_nonneg
- BlackBody.spectralRadianceThe spectral radiance per unit frequency of blackbody radiation at frequency
νfor a black bodyBand speed of lightc:… - Constants.hThe definition of Planck's constant in terms of Reduced Planck's constant, defined as
2 π ℏ - Temperature.ofNNRealBuild a
Temperaturedirectly from a nonnegative real. - SpeedOfLight.val_ne_zeroSpeedOfLight.val_ne_zero
- Constants.kBThe Boltzmann constant in a given but arbitrary set of units. Boltzman's constant has dimension equivalent to
Energy/Temperature. - SpeedOfLight.instOneSpeedOfLight.instOne
- Temperature.ofβ_βTemperature.ofβ_β
- Temperature.toRealThe underlying real-number associated with the temperature.
- Temperature.ofRealNonneg_valTemperature.ofRealNonneg_val
- SpeedOfLight.val_oneSpeedOfLight.val_one
- Constants.h_ne_zeroPlanck's constnat is not equal to zero.
- Temperature.β_ofβTemperature.β_ofβ
- Temperature.ofRealNonnegConvenience: build a temperature from a real together with a proof of nonnegativity.
- Temperature.coe_ofNNReal_realTemperature.coe_ofNNReal_real
- Constants.ℏ_posreduced Planck's constant is positive.
- Constants.ℏ_ne_zeroreduced Planck's constant is not equal to zero.
- Temperature.coe_ofNNReal_coeTemperature.coe_ofNNReal_coe
- Constants.ℏ_nonnegreduced Planck's constant is non-negative.
- Temperature.ofNNReal_valTemperature.ofNNReal_val
- Temperature.instCoeNNRealCoercion to
ℝ≥0. - Constants.h_nonnegPlanck's constant is non-negative.
- Temperature.instZeroTemperature.instZero
- BlackBodyAn idealized black body in thermal equilibrium at temperature
T. - SpeedOfLight.val_posSpeedOfLight.val_pos
- Constants.h_posPlanck's constant is positive.
- SpeedOfLightThe speed of light in a vacuum. An element of this type should be thought of as the speed of light in some chosen but arbitrary system of…
- Temperature.instTopologicalSpaceTopology on
Temperatureinduced fromℝ≥0.
- Temperature.instCoeRealCoercion to
- Used by 1
- BlackBody.spectralRadianceWave_absZeroThe spectral radiance per unit wavelength vanishes at absolute zero.
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in open Constants in /-- Spectral radiance per unit wavelength of blackbody radiation at wavelength `λ` for a black body `B` and speed of light `c`: `B(λ, T) = 2 h c² / λ⁵ · 1 / (e ^ (h c / (λ kB T)) - 1)`, extended by zero outside the physical domain `0 < λ`. -/ noncomputable def BlackBody.spectralRadianceWave (B : BlackBody) (c : SpeedOfLight) (lam : ℝ) : ℝ := if 0 < lam then 2 * h * (c : ℝ) ^ 2 / lam ^ 5 / (Real.exp (h * (c : ℝ) / (lam * kB * (B.T : ℝ))) - 1) else 0