PhyslibSearch

Physlib.Thermodynamics.Temperature.Basic

28 declarations

instance

Coercion of `Temperature` to R0\mathbb{R}_{\ge 0}

#instCoeNNReal

This definition provides a coercion from the type `Temperature` to the set of non-negative real numbers R0\mathbb{R}_{\ge 0}. It allows a temperature TT to be treated as its underlying numerical value in [0,)[0, \infty), consistent with the convention that absolute zero corresponds to zero.

definition

Temperature as a real number TRT \in \mathbb{R}

#toReal

The function maps a temperature TT to its representation as a real number in R\mathbb{R}.

instance

Coercion of `Temperature` to R\mathbb{R}

#instCoeReal

This definition provides a coercion from the type `Temperature` to the real numbers R\mathbb{R}. It allows a temperature TT to be treated as its numerical representation in R\mathbb{R} via the mapping TtoReal(T)T \mapsto \text{toReal}(T).

instance

Induced topology on `Temperature` from R0\mathbb{R}_{\geq 0}

#instTopologicalSpace

The topological space structure on the type `Temperature` is the induced topology from the non-negative real numbers R0\mathbb{R}_{\geq 0} under the mapping TT.valT \mapsto T.\text{val}, which assigns to each temperature TT its numerical representation in R0\mathbb{R}_{\geq 0}.

instance

Zero element of `Temperature` (0Temperature0 \in \text{Temperature})

#instZero

The type `Temperature` is equipped with a zero element 00, which represents the absolute zero of temperature and corresponds to the value 00 in the underlying numerical representation.

theorem

T1.val=T2.val    T1=T2T_1.\text{val} = T_2.\text{val} \implies T_1 = T_2

#ext

For any two temperatures T1,T2TemperatureT_1, T_2 \in \text{Temperature}, if their underlying numerical values T1.valT_1.\text{val} and T2.valT_2.\text{val} in the non-negative real numbers R0\mathbb{R}_{\geq 0} are equal, then T1T_1 and T2T_2 are equal.

definition

Inverse temperature β=1kBT\beta = \frac{1}{k_B T}

#β

Given a temperature TT, the inverse temperature βR0\beta \in \mathbb{R}_{\ge 0} is defined by the formula β=1kBT\beta = \frac{1}{k_B T}, where kBk_B is the Boltzmann constant.

definition

Temperature TT as a function of inverse temperature β\beta

#ofβ

Given an inverse temperature βR0\beta \in \mathbb{R}_{\ge 0}, this function returns the corresponding temperature TT defined as T=1kBβT = \frac{1}{k_B \beta}, where kBk_B is the Boltzmann constant.

theorem

ofβ(β)=1kBβ\text{ofβ}(\beta) = \frac{1}{k_B \beta}

#ofβ_eq

The function `ofβ` maps an inverse temperature βR0\beta \in \mathbb{R}_{\ge 0} to a temperature value defined by the expression 1kBβ\frac{1}{k_B \beta}, where kBk_B is the Boltzmann constant.

theorem

β(ofβ(β))=β\beta(\text{of}\beta(\beta')) = \beta'

#β_ofβ

For any non-negative real number βR0\beta' \in \mathbb{R}_{\ge 0}, the inverse temperature β\beta associated with the temperature TT derived from β\beta' (where T=ofβ(β)T = \text{of}\beta(\beta')) is equal to β\beta'. Mathematically, this is expressed as β(ofβ(β))=β\beta(\text{of}\beta(\beta')) = \beta'.

theorem

ofβ(β(T))=T\text{of}\beta(\beta(T)) = T

#ofβ_β

For any temperature TT, the temperature obtained by converting its inverse temperature β(T)\beta(T) back into a temperature value is equal to TT. Mathematically, this is expressed as ofβ(β(T))=T\text{of}\beta(\beta(T)) = T.

theorem

T>0    β>0T > 0 \implies \beta > 0

#beta_pos

For any temperature TT, if its value is strictly positive (i.e., T>0T > 0), then the corresponding inverse temperature β\beta (where β=1kBT\beta = \frac{1}{k_B T}) is also strictly positive (i.e., β>0\beta > 0).

theorem

T(β)T(\beta) is continuous on (0,)(0, \infty)

#ofβ_continuousOn

The function mapping the inverse temperature βR0\beta \in \mathbb{R}_{\ge 0} to the temperature TT, defined as T(β)=1kBβT(\beta) = \frac{1}{k_B \beta} where kBk_B is the Boltzmann constant, is continuous on the interval (0,)(0, \infty).

theorem

T(β)T(\beta) is differentiable on (0,)(0, \infty)

#ofβ_differentiableOn

The function that maps a real number xx to the temperature value TT corresponding to an inverse temperature β=x\beta = x, defined by T(x)=1kBxT(x) = \frac{1}{k_B x} where kBk_B is the Boltzmann constant, is differentiable on the interval (0,)(0, \infty).

theorem

T(β)T(\beta) is eventually positive as β\beta \to \infty

#eventually_pos_ofβ

For sufficiently large inverse temperature βR0\beta \in \mathbb{R}_{\ge 0}, the corresponding temperature T(β)T(\beta), defined as T(β)=1kBβT(\beta) = \frac{1}{k_B \beta} where kBk_B is the Boltzmann constant, is strictly positive.

theorem

T(β)0T(\beta) \to 0 as β\beta \to \infty

#tendsto_toReal_ofβ_atTop

Let T(β)T(\beta) denote the temperature corresponding to an inverse temperature βR0\beta \in \mathbb{R}_{\ge 0}, where T(β)=1kBβT(\beta) = \frac{1}{k_B \beta} and kBk_B is the Boltzmann constant. As β\beta \to \infty, the temperature T(β)T(\beta) converges to 00 in R\mathbb{R}.

theorem

T(β)0+T(\beta) \to 0^+ as β\beta \to \infty

#tendsto_ofβ_atTop

Let T(β)T(\beta) denote the temperature corresponding to an inverse temperature βR0\beta \in \mathbb{R}_{\ge 0}. As β\beta tends to infinity, the temperature T(β)T(\beta) converges to 00 from the right in the real numbers R\mathbb{R}, remaining within the set of positive real numbers (0,)(0, \infty) (denoted as T(β)0+T(\beta) \to 0^+).

definition

Temperature from tR0t \in \mathbb{R}_{\ge 0}

#ofNNReal

Given a non-negative real number tR0t \in \mathbb{R}_{\ge 0}, this function constructs a value of type `Temperature` with magnitude tt. The resulting `Temperature` is defined in a system of units where 00 corresponds to absolute zero.

theorem

The value of `Temperature.ofNNReal t` is tt

#ofNNReal_val

For any non-negative real number tR0t \in \mathbb{R}_{\ge 0}, the underlying value of the temperature constructed from tt is equal to tt.

theorem

The R0\mathbb{R}_{\ge 0} value of a temperature constructed from tR0t \in \mathbb{R}_{\ge 0} is tt

#coe_ofNNReal_coe

For any non-negative real number tR0t \in \mathbb{R}_{\ge 0}, the value of the temperature constructed from tt, when converted back to a non-negative real number, is equal to tt.

theorem

The real value of a temperature from tR0t \in \mathbb{R}_{\ge 0} is tt

#coe_ofNNReal_real

For any non-negative real number tR0t \in \mathbb{R}_{\ge 0}, the real number representation of the temperature constructed from tt is equal to tt.

definition

Temperature from tRt \in \mathbb{R} where t0t \ge 0

#ofRealNonneg

Given a real number tRt \in \mathbb{R} and a proof htht that t0t \ge 0, this function constructs a value of type `Temperature` with magnitude tt. The resulting value represents an absolute temperature in a system of units where 00 corresponds to absolute zero.

theorem

The value of `ofRealNonneg t ht` equals tR0t \in \mathbb{R}_{\ge 0}

#ofRealNonneg_val

For any real number tRt \in \mathbb{R} and a proof hth_t that t0t \ge 0, the underlying non-negative real value of the temperature constructed from tt (denoted by `ofRealNonneg t ht`) is equal to the representation of tt as a non-negative real number t,htR0\langle t, h_t \rangle \in \mathbb{R}_{\ge 0}.

definition

Inverse temperature β\beta as a function of tRt \in \mathbb{R}

#betaFromReal

Given a real number tt, the function returns the inverse temperature β\beta as a real number. The calculation is performed by first taking the non-negative part of tt, defined as T=max(t,0)T = \max(t, 0), and then calculating β=1kBT\beta = \frac{1}{k_B T}, where kBk_B is the Boltzmann constant.

theorem

β(t)=1kBt\beta(t) = \frac{1}{k_B t} for t>0t > 0

#beta_fun_T_formula

For any real number t>0t > 0, the inverse temperature function β(t)\beta(t) is given by the closed-form expression β(t)=1kBt\beta(t) = \frac{1}{k_B t}, where kBk_B is the Boltzmann constant.

theorem

β(t)=1kBt\beta(t) = \frac{1}{k_B t} on (0,)(0, \infty)

#beta_fun_T_eq_on_Ioi

For any real number tt in the interval (0,)(0, \infty), the inverse temperature function β(t)\beta(t) (defined as `betaFromReal`) is equal to 1kBt\frac{1}{k_B t}, where kBk_B is the Boltzmann constant.

theorem

The derivative of β\beta with respect to TT is 1kBT2-\frac{1}{k_B T^2} for T>0T > 0

#deriv_beta_wrt_T

For a temperature TT with a strictly positive value T>0T > 0, the inverse temperature function β(t)\beta(t) (defined as `betaFromReal`) is differentiable at t=Tt = T within the interval (0,)(0, \infty). Its derivative at this point is given by dβdT=1kBT2\frac{d\beta}{dT} = -\frac{1}{k_B T^2} where kBk_B is the Boltzmann constant.

theorem

Chain Rule for ddTF(β(T))=F(1kBT2)\frac{d}{dT} F(\beta(T)) = F' \cdot (-\frac{1}{k_B T^2})

#chain_rule_T_beta

Let F:RRF: \mathbb{R} \to \mathbb{R} be a function and FRF' \in \mathbb{R}. For a temperature TT with a strictly positive value T>0T > 0, if FF is differentiable at β(T)\beta(T) within the interval (0,)(0, \infty) with derivative FF', then the composite function F(β(t))F(\beta(t)) is differentiable at t=Tt = T within the interval (0,)(0, \infty), and its derivative is given by: ddTF(β(T))=F(1kBT2)\frac{d}{dT} F(\beta(T)) = F' \cdot \left( -\frac{1}{k_B T^2} \right) where kBk_B is the Boltzmann constant and β(T)=1kBT\beta(T) = \frac{1}{k_B T} is the inverse temperature.