Temperature
structureimported Lean
The type Temperature represents the temperature in a given (but arbitrary) set of units (preserving zero). It currently wraps ℝ≥0, i.e., absolute temperature in nonnegative reals.
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in open NNReal in structure Temperature
- Defined in
- Physlib, `Temperature`
- Lean proof
- By Matteo Cipollina, Joseph Tooby-Smith, from github.com/leanprover-community/physlib at
e411c6e89692(Copyright (c) 2025 Joseph Tooby-Smith. 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.Temperature← Temperature (Physlib/Thermodynamics/Temperature/Basic.lean:31): verbatim
- Verified
- 10 Oct 2026
- Axioms
- none listed
- Used by 18
- Temperature.instCoeRealCoercion to
ℝ. - BlackBody.spectralRadiance_absZeroThe spectral radiance vanishes at absolute zero temperature.
- Temperature.ofNNRealBuild a
Temperaturedirectly from a nonnegative real. - Temperature.ofβ_βTemperature.ofβ_β
- Temperature.toRealThe underlying real-number associated with the temperature.
- Temperature.ofRealNonneg_valTemperature.ofRealNonneg_val
- Temperature.ofRealNonnegConvenience: build a temperature from a real together with a proof of nonnegativity.
- Temperature.coe_ofNNReal_realTemperature.coe_ofNNReal_real
- Temperature.coe_ofNNReal_coeTemperature.coe_ofNNReal_coe
- BlackBody.spectralRadianceWave_absZeroThe spectral radiance per unit wavelength vanishes at absolute zero.
- Temperature.βThe inverse temperature defined as
1/(kB * T)in a given, but arbitrary set of units. This has dimensions equivalent toEnergy. - Temperature.ofNNReal_valTemperature.ofNNReal_val
- Temperature.ofβThe temperature associated with a given inverse temperature
β. - Temperature.instCoeNNRealCoercion to
ℝ≥0. - Temperature.extTemperature.ext
- Temperature.instZeroTemperature.instZero
- BlackBodyAn idealized black body in thermal equilibrium at temperature
T. - Temperature.instTopologicalSpaceTopology on
Temperatureinduced fromℝ≥0.
- Temperature.instCoeRealCoercion to
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in open NNReal in /-- The type `Temperature` represents the temperature in a given (but arbitrary) set of units (preserving zero). It currently wraps `ℝ≥0`, i.e., absolute temperature in nonnegative reals. -/ structure Temperature where /-- The nonnegative real value of the temperature. -/ val : ℝ≥0