39 Symmetry, Energy and Equilibrium from the Identity Type

Energy is not a primitive quantity. In homotopy type theory, univalence identifies the symmetries of a type with its self-identifications,

\begin{equation} (A=_{\mathcal U}A)\simeq \mathrm {Aut}(A). \tag{784}\end{equation}
From this the chain proceeds:

39.1 Symmetries are self-identifications

H1 (identity type). For \(a:A\) there is \(\mathsf {refl}_a:a=a\), with path induction \(\mathsf J\).

H2 (univalence). For types in a universe \(\mathcal U\),

\begin{equation} \mathsf {idtoeqv}:(A=_{\mathcal U}A)\xrightarrow {\ \simeq \ }\mathrm {Aut}(A), \qquad \mathsf {refl}_A\mapsto \mathrm {id}_A \tag{785}\end{equation}
[1246]. A symmetry of \(A\) is a way in which \(A\) is identical with itself.

H3 (the group of symmetries). Path concatenation \(p\cdot q\) and inversion \(p^{-1}\) make \(A=A\) a group, the loop space \(\Omega (\mathcal U,A)\):

\begin{equation} (p\cdot q)\cdot r=p\cdot (q\cdot r), \qquad \mathsf {refl}\cdot p=p=p\cdot \mathsf {refl}, \qquad p\cdot p^{-1}=\mathsf {refl}. \tag{786}\end{equation}
Each law is proved by path induction, reducing to the case \(p\equiv \mathsf {refl}\).

H4 (the circle). The circle \(S^1\) is the type generated by a point and one self-identification \(\mathsf {loop}\). Its loop space is

\begin{equation} \Omega (S^1)\simeq \mathbb Z \tag{787}\end{equation}
[1247]. For a complex line with its norm, the self-identifications preserving the norm form \(U(1)\), the circle \(\{z:\ z\bar z=1\}\).

39.2 Time flow and characters

H5 (flow). A time flow on \(A\) is a family of self-identifications indexed by \(\mathbb R\),

\begin{equation} t\mapsto p_t:A=A, \qquad p_0=\mathsf {refl}, \qquad p_{s+t}=p_s\cdot p_t, \tag{788}\end{equation}
continuous in \(t\): a homomorphism from the additive group of time to the group of symmetries.

H6 (characters are exponentials). Let \(\chi :\mathbb R\to U(1)\) be a continuous homomorphism. Then \(\chi (t)=e^{iEt}\) for a unique \(E\in \mathbb R\).

Proof. Near \(t=0\), \(\chi (t)\) is near \(1\), where the logarithm of the circle is defined. So \(f(t)=-i\log \chi (t)\) is continuous near \(0\) with \(f(s+t)=f(s)+f(t)\) for small \(s,t\).

\(\square \)

The characters of time are labelled by real numbers \(E\): the dual group of \(\mathbb R\) is \(\mathbb R\).

39.3 Stone’s theorem as a corollary

H7 (finite dimensions). Let \(U(t)\) be a continuous flow of unitaries on \(\mathbb C^d\).

Hence

\begin{equation} U(t)=\sum _ke^{iE_kt}P_k=e^{itH}, \qquad H=\sum _kE_kP_k=H^{*}. \tag{789}\end{equation}

H8 (infinite dimensions). For a strongly continuous unitary representation of \(\mathbb R\), the spectral theorem for commuting unitaries decomposes it over characters:

\begin{equation} U(t)=\int e^{iEt}\,dP(E), \qquad H=\int E\,dP(E), \tag{790}\end{equation}
with \(H\) self-adjoint on the domain where the integral converges. This is Stone’s theorem [689], obtained as the continuous form of H7.

H9 (energy). Energy is the label \(E\) of a character of time, and the Hamiltonian assembles these labels on the splitting of the identity that diagonalises the flow. \(H\) is unique up to an additive constant, the freedom of the zero of energy.

H10 (what Stone’s theorem gives).

Consequence Derivation
Schrödinger equation \(\tfrac {d}{dt}U(t)\psi =iHU(t)\psi \)
energy conservation \(U(t)HU(t)^{*}=H\), since \(H\) commutes with the flow
stationary states \(P_k\psi \) evolves by the phase \(e^{iE_kt}\)
time–energy duality characters of \(\mathbb R\) are labelled by \(\mathbb R\)

39.4 Positivity

P1 (squares). \(\mathbb R\) is totally ordered, and negation is the swap of additive pairs. For any \(x\), either \(x\ge 0\) or \(-x\ge 0\), and \((-x)(-x)=xx\) by distributivity. Hence

\begin{equation} x^2\ge 0, \tag{791}\end{equation}
with equality only at \(x=0\).

P2 (norms). \(z\bar z=a^2+b^2\ge 0\) for \(z=a+bi\), a sum of squares.

P3 (operators). For any operator \(a\) and vector \(v\), \(\langle v,a^{*}av\rangle =\|av\|^2=\sum _k|(av)_k|^2\ge 0\). Elements of the form \(a^{*}a\) are positive.

P4 (exponentials). For self-adjoint \(H\),

\begin{equation} e^{-\beta H}=\bigl (e^{-\beta H/2}\bigr )^{*}e^{-\beta H/2}>0, \qquad Z=\mathrm {Tr}\,e^{-\beta H}>0 . \tag{792}\end{equation}

39.5 Equilibrium and thermodynamics as corollaries

Q1 (modular flow). A faithful state with density \(\rho >0\) carries its own flow \(\sigma _t(x)=\rho ^{it}x\rho ^{-it}\): a flow in the sense of H5, generated by \(K=-\log \rho \) by H7.

Q2 (Gibbs state). Requiring the state’s own flow to coincide with physical time up to a scale, \(\sigma _t=\mathrm {Ad}\,e^{-i\beta Ht}\), makes \(\rho ^{it}e^{i\beta Ht}\) central, hence scalar on a factor:

\begin{equation} \rho =\gamma _\beta =\frac {e^{-\beta H}}{Z}, \tag{793}\end{equation}
positive by P4. The inverse temperature \(\beta \) converts modular time into physical time.

Q3 (entropy and relative entropy).

\begin{equation} S(\rho )=\mathrm {Tr}(\rho K)=-\mathrm {Tr}\,\rho \log \rho , \qquad D(\rho \|\sigma )=\mathrm {Tr}\,\rho (\log \rho -\log \sigma )\ge 0, \tag{794}\end{equation}
the second by \(\log x\le x-1\), which follows from \(\log x=\int _1^xdt/t\).

Q4 (the four laws).

Law Statement Derivation
zeroth equilibrium is an equivalence \(\gamma _\beta \) maximises \(S\) at fixed \(U\); \(e^{-\beta (H_1+H_2)}\) forces one \(\beta \); equality is reflexive, symmetric, transitive
first \(dU=\mathrm {Tr}(H\,d\rho )+\mathrm {Tr}(\rho \,dH)\) Leibniz rule on \(\mathrm {Tr}(\rho H)\)
second \(\Delta S\ge \beta Q\); no work from one bath \(D\ge 0\), mutual information \(\ge 0\), monotonicity
third \(S\to \log g_0\); \(T=0\) unattainable \(\gamma _\beta \to P_0/g_0\); full rank preserved by unitaries

Key identities:

\begin{equation} D(\rho \,\|\,\gamma _\beta )=-S(\rho )+\beta \,\mathrm {Tr}(\rho H)+\log Z, \qquad S(\gamma _\beta )=\beta U+\log Z, \qquad \beta =\frac {\partial S}{\partial U}. \tag{795}\end{equation}
For Clausius, with system and bath starting in \(\rho _S\otimes \gamma _B\) and \(Q=-\Delta U_B\),
\begin{equation} \Delta S_S=\beta Q+I(S:B)'+D(\rho '_B\,\|\,\gamma _B)\ge \beta Q . \tag{796}\end{equation}

39.6 The chain

Step Emerges From
H1–H3 group of symmetries univalence, path induction
H4 \(S^1\), \(U(1)\), \(\Omega (S^1)=\mathbb Z\) one self-identification
H5–H6 time flow, characters \(e^{iEt}\) Cauchy functional equation
H7–H8 Stone’s theorem simultaneous diagonalisation over characters
H9–H10 energy, Schrödinger, conservation labels of characters
P1–P4 positivity total order and the swap
Q1–Q2 modular flow, Gibbs state, \(\beta \) state’s flow \(=\) physical flow
Q3–Q4 entropy, relative entropy, four laws \(\log \), positivity