Energy is not a primitive quantity. In homotopy type theory, univalence identifies the symmetries of a type with its self-identifications,
a time flow is a one-parameter family of self-identifications;
continuous characters of \(\mathbb R\) are \(e^{iEt}\), by the Cauchy functional equation;
Stone’s theorem follows: every flow is a superposition of characters, and energy is the label of the character, an element of the Pontryagin dual of time;
the Schrödinger equation and energy conservation follow from the flow;
positivity follows from the total order of \(\mathbb R\) and the swap;
the Gibbs state, entropy and the four laws of thermodynamics follow as corollaries.
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\),
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)\):
H4 (the circle). The circle \(S^1\) is the type generated by a point and one self-identification \(\mathsf {loop}\). Its loop space is
H5 (flow). A time flow on \(A\) is a family of self-identifications indexed by \(\mathbb R\),
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\).
From additivity, \(f(nt)=nf(t)\) and \(f(t/m)=f(t)/m\), so \(f(q)=qf(1)\) for rational \(q\) in the domain.
Continuity extends this to \(f(t)=Et\) near \(0\).
The homomorphism property extends \(\chi (t)=e^{iEt}\) to all \(t\).
\(\square \)
The characters of time are labelled by real numbers \(E\): the dual group of \(\mathbb R\) is \(\mathbb R\).
H7 (finite dimensions). Let \(U(t)\) be a continuous flow of unitaries on \(\mathbb C^d\).
The \(U(t)\) commute, since \(U(s)U(t)=U(s+t)=U(t)U(s)\).
Commuting unitaries are simultaneously diagonalisable (spectral theorem), giving a splitting of the identity \(1=\sum _kP_k\) with \(U(t)P_k=\chi _k(t)P_k\).
Each \(\chi _k\) is a continuous character, so \(\chi _k(t)=e^{iE_kt}\) by H6.
Hence
H8 (infinite dimensions). For a strongly continuous unitary representation of \(\mathbb R\), the spectral theorem for commuting unitaries decomposes it over characters:
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\) |
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
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\),
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:
Q3 (entropy and relative entropy).
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:
| 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 |