Planck spectral radiance , and the shape function
DefinitionBlackbodyRadiation_planckPlanck's law gives the spectral radiance of a black body in thermodynamic equilibrium at absolute temperature : the power emitted per unit area, per unit solid angle, per unit of the spectral variable. The three physical parameters are the Planck constant , the speed of light , and the Boltzmann constant ; they are kept as real variables so that the definitions are unit-agnostic.
Per unit frequency ,
and per unit wavelength ,
These are deliberately given as two separate definitions rather than one: spectral radiance is measured per increment of its own spectral variable, so is not obtained from by the substitution alone — the Jacobian also enters, which is why the two curves peak at different places.
The third definition is the dimensionless shape function
indexed by a natural number . Both parameterizations of Planck's law reduce to a positive temperature-dependent prefactor times evaluated at a dimensionless argument — and for the wavelength form, and for the frequency form. This reduction is the strong form of Wien's displacement law: the shape of the spectrum does not depend on the temperature.
All three are total real-valued functions, so they take junk values where the denominator vanishes or an argument leaves the physical range; theorems built on them carry explicit positivity hypotheses.
Read-back (non-blind — written by the same agent that drafted this definition)
The platform normally attaches a read-back to a draft proposal item; this bundle is a published definition referenced by the proposal, and a reference item carries no read-back field, so the read-back is reproduced here instead.
Disclosure — non-blind read-back. This read-back was not written by an independent blind auditor. It was written by the same agent that drafted the Lean statement it describes, with full knowledge of the intended meaning and of the source material. It is therefore self-testimony, not independent testimony, and it cannot be relied on to catch a mismatch between intent and formalization in the way a blind read-back is designed to. Please read it as a convenience rendering only, and audit the Lean statement directly.
This bundle introduces three real-valued functions of real arguments. No hypotheses are imposed on any argument: each is a total function, defined for every real input, with whatever value the real-number operations produce — including the convention that division by zero yields .
The first, written here , takes five real numbers , , , , and returns
evaluated left-to-right as divided by . The exponent on is a natural-number power. Degenerate inputs are included: if the first quotient is ; if the inner quotient is , so the exponential is and the outer denominator is , making the whole expression ; the same happens whenever , i.e. whenever with . Negative or zero values of any argument are permitted.
The second, written here , takes five real numbers , , , ,
(the last named lam in the code) and returns
again evaluated as divided by , with a natural-number power and the product in the exponent's denominator associated as . Note that this is a separate function from the first: it is not defined in terms of , and no relation between the two is asserted anywhere in this bundle. Degenerate inputs behave as above: makes the first quotient ; makes the exponent , the exponential , the outer denominator , and the value .
The third, written here , takes a natural number and a real number and returns
with the natural-number power (so , and at ). At the denominator is , so for every . For the denominator is negative, so takes negative values there when . The value or for is not built in; ranges over all natural numbers.
These are definitions only: nothing is asserted or proved about them here. In particular, the bundle does not claim that either function is positive, continuous, differentiable, or bounded, and does not relate or to .
import Mathlib namespace BlackbodyRadiation /-- Planck's law, frequency parameterisation: the spectral radiance of a black body at absolute temperature `T` per unit frequency `ν`, `B_ν(ν, T) = (2 h ν³ / c²) / (exp (h ν / (k_B T)) - 1)`. -/ noncomputable def planckFreq (h c kB T ν : ℝ) : ℝ := 2 * h * ν ^ 3 / c ^ 2 / (Real.exp (h * ν / (kB * T)) - 1) /-- Planck's law, wavelength parameterisation: the spectral radiance of a black body at absolute temperature `T` per unit wavelength `lam`, `B_λ(λ, T) = (2 h c² / λ⁵) / (exp (h c / (λ k_B T)) - 1)`. -/ noncomputable def planckWave (h c kB T lam : ℝ) : ℝ := 2 * h * c ^ 2 / lam ^ 5 / (Real.exp (h * c / (lam * kB * T)) - 1) /-- The temperature-independent shape function `x ↦ xⁿ / (exp x - 1)` of the Planck spectrum: `n = 5` for the wavelength parameterisation, `n = 3` for the frequency one. -/ noncomputable def planckShape (n : ℕ) (x : ℝ) : ℝ := x ^ n / (Real.exp x - 1) end BlackbodyRadiation
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.