This section cites only its own steps E1–E45. It starts from one thing: every kind has an identity, and reading at the identity loses nothing.
E1 (identity, copy, pair).
Identity. Every kind \(A\) has \(\mathrm {id}_A\), arrows compose, and \(\mathrm {id}\) is a unit on both sides. Let \(F\) be a family that can be read along arrows: \(F(f):F(A)\to F(B)\) for \(f:A\to B\), with \(F(\mathrm {id})=\mathrm {id}\) and \(F(gf)=F(g)F(f)\). Then
Two consequences. (a) If \(\mathrm {Hom}(X,-)\cong \mathrm {Hom}(Y,-)\) naturally, then reading this bijection and its inverse at the identities gives \(u:Y\to X\), \(v:X\to Y\) with \(uv=\mathrm {id}\), \(vu=\mathrm {id}\): kinds with the same arrows out are isomorphic. (b) Equality \(a=b\) is a family over pairs whose witness at \((a,a)\) is \(\mathrm {refl}_a\). By the first display, a statement about all \((b,\ a=b)\) is fixed by its value at \((a,\mathrm {refl}_a)\). So from \(a=b\) and \(P(a)\) follows \(P(b)\): substitution.
Copy and pair. The source \(a=a\) uses \(a\) twice. The kind of pairs \(A\times B\) is defined by
Swap. \(\sigma =\langle \pi _2,\pi _1\rangle \). Then \(\pi _1\sigma \sigma =\pi _2\sigma =\pi _1\) and \(\pi _2\sigma \sigma =\pi _2\), so \(\sigma \sigma =\mathrm {id}\); and \(\pi _i\sigma \Delta =\pi _{3-i}\Delta =\mathrm {id}\), so \(\sigma \Delta =\Delta \).
One. The pair of no kinds is \(1\): \(\mathrm {Hom}(C,1)\) has exactly one member \(!_C\). Its one mark is \(*=\mathrm {id}_1\). An element of \(A\) is an arrow \(1\to A\); writing \(f(a)\) for \(f\circ a\), the elements of \(A\times B\) are the pairs \((a,b)\), by the definition read at \(C=1\).
E2 (the empty kind, sums, two).
Sums. The sum is the other side of the copy:
Empty. The sum of no kinds is \(0\): \(\mathrm {Hom}(0,C)\) has exactly one member, and \(0\) has no tag, hence no element.
Two. \(\mathbf 2=1\sqcup 1\), with \(\ell =\mathrm {in}_1*\) and \(r=\mathrm {in}_2*\). Every element of \(\mathbf 2\) is \(\ell \) or \(r\).
Names. Kinds are marked: there is a kind \(U\) of names, with \(\mathrm {El}(\ulcorner A\urcorner )=A\), closed under \(0\), \(1\), \(\sqcup \), \(\times \) and \(\to \) (E3). Equality of kinds is read as a bijection: a bijection is exactly what carries every statement about one kind to the other.
\(\ell \neq r\). Define \(P:\mathbf 2\to U\) by cases, \(P(\ell )=\ulcorner 1\urcorner \), \(P(r)=\ulcorner 0\urcorner \). If \(\ell =r\), then by substitution (E1) \(\mathrm {El}(P\ell )=\mathrm {El}(Pr)\), and the mark \(*\) of \(1\) would be an element of \(0\). So \(\ell \neq r\).
Tags. Define \(c:(A\sqcup B)\times (A\sqcup B)\to U\) by cases:
Cuts. A cut of \(A\) is a map \(A\to \mathbf 2\); at each element it is \(\ell \) or \(r\), and not both. A statement is a cut of \(1\). This section is read in the kinds, where statements are cuts: every statement is true (\(\ell \)) or false (\(r\)), and some and all of a family of cuts are again cuts (the join and meet in \(\mathbf 2\)).
E3 (maps form a kind). The kind \(B\to A\) is defined by
E4 (numbers).
Zero and successor. Put
\(z\neq s(n)\). \(\mathrm {El}(s(n))\) has the element \(\mathrm {in}_2*\); \(\mathrm {El}(z)=0\) has none.
Removal. If \(f:A\sqcup 1\cong B\sqcup 1\) and \(B\) has decided equality, then \(A\cong B\). Let \(t=f(\mathrm {in}_2*)\) and let \(\tau \) exchange \(t\) and \(\mathrm {in}_2*\) (the identity if they are equal; defined by cases, E2). Then \(\tau f\) is a bijection sending \(\mathrm {in}_2*\) to \(\mathrm {in}_2*\), so it sends tags \(\mathrm {in}_1\) to tags \(\mathrm {in}_1\), and its restriction is a bijection \(A\to B\).
\(s\) is injective. By induction every \(\mathrm {El}(n)\) has decided equality (E2). If \(s(n)=s(m)\), then \(\mathrm {El}(n)\sqcup 1\cong \mathrm {El}(m)\sqcup 1\), so \(\mathrm {El}(n)\cong \mathrm {El}(m)\) by removal, so \(n=m\).
Every \(n\) is \(z\) or some \(s(m)\). The part of such \(n\) contains \(z\) and is closed under \(s\).
Recursion. Given \(a\in X\) and \(g:X\to X\), there is exactly one \(h:\mathbb N\to X\) with \(h(z)=a\) and \(h(s(n))=g(h(n))\). Let \(R\) be the least relation containing \((z,a)\) and closed under \((n,x)\mapsto (s(n),g(x))\). By induction on \(n\), exactly one \(x\) has \((n,x)\in R\): if \((z,x)\in R\) with \(x\neq a\), then \(R\) without \((z,x)\) is still closed (no \(s(n)\) equals \(z\)), against leastness; for \(s(n)\), a pair \((s(n),y)\) with \(y\neq g(x)\) can be removed in the same way, since \(s\) is injective. Recursion with a parameter, and with \(h(s(n))\) depending also on \(n\), is the same argument.
Size. A kind \(A\) is finite of size \(n\) when \(A\cong \mathrm {El}(n)\); the size is unique since names are equal when their kinds are in bijection. Write \([n]=\mathrm {El}(n)\), a row of length \(n\).
E5 (order). Let \(<\) be the least relation with \(n<s(n)\), and \(m<n\Rightarrow m<s(n)\). Write \(m\leq n\) for \(m<n\) or \(m=n\).
| property | proof |
| inversion | if \(m<n\) then \(n=s(k)\) with \(m\leq k\): the pairs with this property contain the generators and are closed, so by leastness they include all of \(<\) |
| transitive | \(k<m<n\Rightarrow k<n\): induction on \(n\) by inversion |
| \(z\leq n\) | induction on \(n\) |
| \(m<s(n)\iff m\leq n\) | \(\Leftarrow \) by the generators; \(\Rightarrow \) by inversion and injectivity of \(s\) |
| irreflexive | \(z<z\) would give \(z=s(k)\); if \(s(n)<s(n)\) then \(s(n)\leq n\), and with \(n<s(n)\) this gives \(n<n\) |
| total | for all \(m,n\): \(m<n\), \(m=n\) or \(n<m\); induction on \(n\), using the row above |
| least element | every part \(Q\) of \(\mathbb N\) with an element has a least element: otherwise prove by induction on \(n\) that no \(k\leq n\) lies in \(Q\) |
Exactly one of the three in the totality row holds, by irreflexivity and transitivity.
E6 (three operations are three sizes). Define by recursion on \(b\) (E4):
| operation | recursion | it is the size of |
| \(a+b\) | \(a+z=a\), \(a+s(b)=s(a+b)\) | \([a]\sqcup [b]\) |
| \(a\cdot b\) | \(a\cdot z=z\), \(a\cdot s(b)=a\cdot b+a\) | \([a]\times [b]\) |
| \(a^b\) | \(a^z=s(z)\), \(a^{s(b)}=a^b\cdot a\) | \([b]\to [a]\) |
The third column holds by induction on \(b\), using the bijections for one more mark:
E7 (the laws are bijections). Two numbers are equal exactly when their rows are in bijection (E4), so each law is a bijection of kinds:
| law | bijection | from |
| \(a+b=b+a\), \((a+b)+c=a+(b+c)\) | exchange and regrouping of tags | E2 |
| \(ab=ba\), \((ab)c=a(bc)\) | \(\sigma \); regrouping of pairs | E1 |
| \(a(b+c)=ab+ac\) | \(A\times (B\sqcup C)\cong (A\times B)\sqcup (A\times C)\) | below |
| \(a^{b+c}=a^b\,a^c\) | \((B\sqcup C\to A)\cong (B\to A)\times (C\to A)\) | E2 |
| \((a^b)^c=a^{bc}\) | \((C\to (B\to A))\cong (C\times B\to A)\) | E3 |
| \((aa')^b=a^b\,a'^b\) | \((B\to A\times A')\cong (B\to A)\times (B\to A')\) | E1 |
| \(a+0=a\), \(a\cdot 1=a\), \(a^1=a\) | \(A\sqcup 0\cong A\), \(A\times 1\cong A\), \((1\to A)\cong A\) | E1–E3 |
Distributivity. By E2, E3, for every \(D\):
naturally in \(D\); by E1(a) the two kinds are isomorphic.
Cancellation and order. By induction:
| statement | proof |
| \(a+c=b+c\Rightarrow a=b\) | removal (E4), \(c\) times |
| \(m\leq n\iff n=m+d\) for some \(d\) | induction on \(n\), using E5 |
| \(a<b\Rightarrow a+c<b+c\) | from the previous row, with \(d\neq 0\) |
| \(a<b\), \(c\neq 0\Rightarrow ac<bc\) | \(bc=ac+dc\) and \(dc\neq 0\) |
| \(ac=bc\), \(c\neq 0\Rightarrow a=b\) | totality (E5) and the previous row |
E8 (powers and order; factorial).
| statement | proof |
| \(a\leq a'\Rightarrow a^b\leq a'^b\) | induction on \(b\), with E7 |
| \(a<a'\), \(b\neq 0\Rightarrow a^b<a'^b\) | induction on \(b\), with E7 |
| \(a\geq 2\), \(b<c\Rightarrow a^b<a^c\) | \(a^c=a^b\cdot a^d\) with \(d\neq 0\), and \(a^d\geq 2\) |
| \(2^b>b\) | \(2^{s(b)}=2^b+2^b\geq 2^b+1>s(b)\) |
| \((a+1)^j\geq a^j+j\,a^{j-1}\) | induction on \(j\), expanding \((a+1)^{j+1}=(a+1)^j(a+1)\) |
So for \(a\geq 2\) the powers exceed every number (\(a^b\geq 2^b>b\)), and for \(N\geq 1\) the least \(l\) with \(a^{l+1}>N\) exists (E5); for it \(a^l\leq N<a^{l+1}\).
Factorial: \(0!=1\), \(s(n)!=n!\cdot s(n)\). For \(b\leq a\), \(a!/b!=(b+1)\cdots a\leq a^{a-b}\), each of the \(a-b\) factors being at most \(a\); for \(b>a\geq 1\), \(b!/a!=(a+1)\cdots b\geq a^{b-a}\).
E9 (differences and fractions). An integer is a pair \((a,b)\) of numbers, read \(a-b\), with \((a,b)=(a',b')\) when \(a+b'=a'+b\). This is an equivalence: transitivity is cancellation (E7). Put
A fraction is a pair \((p,q)\) of integers with \(q>0\), read \(p/q\), with \((p,q)=(p',q')\) when \(pq'=p'q\). Put
| property | proof |
| between two fractions lies a third | \(\tfrac 12(x+y)\) |
| for \(\epsilon >0\) there is \(n\) with \(1/n<\epsilon \) | \(\epsilon =p/q\), take \(n=q+1\) |
| for every \(x\) there is \(n>x\) | \(x=p/q\leq |p|<|p|+1\) |
Write \(|x|\) for \(x\) or \(-x\), whichever is \(\geq 0\).
E10 (real numbers are pairs of cuts). A real number \(x\) is a pair \((L_x,U_x)\) of cuts of the fractions (E2) with
| condition | statement |
| inhabited | some \(q\in L\), some \(r\in U\) |
| rounded | \(q\in L\iff \) some \(q'>q\) in \(L\); \(r\in U\iff \) some \(r'<r\) in \(U\) |
| disjoint | no fraction in both |
| located | \(q<r\) gives \(q\in L\) or \(r\in U\) |
A fraction \(a\) is the real \(L=\{q<a\}\), \(U=\{r>a\}\). Put \(x<y\) when some fraction lies in \(U_x\) and in \(L_y\); \(x\leq y\) when \(L_x\subseteq L_y\).
Approximation. For every \(\epsilon >0\) there are \(q\in L_x\), \(r\in U_x\) with \(r-q<\epsilon \). Take \(q_0\in L\), \(r_0\in U\) and the grid \(q_i=q_0+i\delta \) with \(\delta <\epsilon /2\) and \(q_0+N\delta \geq r_0\) (E9). Membership of a fraction in \(L\) is decided (E2), so there is a least \(i\) with \(q_i\notin L\) (E5); \(i\geq 1\). Then \(q_{i-1}\in L\), and \(q_{i+1}\in U\) by locatedness, since \(q_i\notin L\) and \(q_i<q_{i+1}\). The width is \(2\delta <\epsilon \).
Equality. If \(|x-y|\) is below \(1/k\) for every \(k\) in the sense that their approximations overlap within \(1/k\), then \(L_x=L_y\): a fraction in \(L_x\) but not in \(L_y\) would leave a gap between them, against the Archimedean row of E9. Two reals are equal when they are within every \(1/k\).
Operations.
| operation | lower cut |
| \(x+y\) | \(\{q+q'\mid q\in L_x,\ q'\in L_y\}\) |
| \(-x\) | \(\{-r\mid r\in U_x\}\) |
| \(xy\) for \(x,y>0\) | \(\{q\leq 0\}\cup \{qq'\mid 0<q\in L_x,\ 0<q'\in L_y\}\) |
| \(1/x\) for \(x>0\) | \(\{q\leq 0\}\cup \{1/r\mid r\in U_x\}\) |
Upper cuts are defined in the same way. Each is a real: inhabited, rounded and disjoint follow from the same properties of \(x,y\); located follows from approximation, since for \(q<r\) one approximates \(x\) and \(y\) within \((r-q)/2\). Products of other signs are reduced to positive ones by \(-\). Each law of the fractions (E9) holds for reals, because both sides are approximated by the same fractions within every \(\epsilon \).
Limits. A sequence \(x_n\) tends to \(x\) when for every fraction \(\epsilon >0\) all but finitely many \(x_n\) satisfy \(|x_n-x|<\epsilon \). Sums, products, and quotients by limits \(\neq 0\) of sequences that tend to limits tend to the corresponding limits; the proofs are the usual \(\epsilon \)-estimates with fractions. A function \(g\) is continuous at \(x\) when for every \(\epsilon >0\) some \(\delta >0\) has \(|g(x')-g(x)|<\epsilon \) whenever \(|x'-x|<\delta \).
E11 (completeness is the fixed part of an adjunction). For a set \(A\) of fractions let \(A^u\) be its upper bounds and \(B^l\) the lower bounds of \(B\). Then
Let \(x_i\) be an inhabited family of reals, all \(\leq \) some fraction \(b\). Put
Increasing sequences. If \(x_n\) increases and is bounded, it tends to its supremum \(s\): for \(\epsilon >0\), \(s-\epsilon \) is not an upper bound, so some \(x_N>s-\epsilon \), and then \(s-\epsilon <x_n\leq s\) for \(n\geq N\).
E12 (an additive reading of size is forced). Let \(f\) on the numbers \(\geq 1\), with real values, satisfy
E13 (the logarithm is a cut). For numbers \(m,n\geq 2\) put
| condition | proof |
| well defined | if \(l/k=l'/k'\), i.e. \(lk'=l'k\), and \(m^l<n^k\), then \(m^{l'k}=m^{lk'}<n^{kk'}\) (E8, raising to \(k'\)), so \(m^{l'}<n^{k'}\) (else raising to \(k\) gives \(\geq \)) |
| inhabited | \(0\in L\) since \(m^0=1<n\); \(l/1\in U\) for \(m^l>n\) (E8) |
| disjoint | \(m^l<n^k\) and \(m^l>n^k\) exclude each other (E5) |
| rounded, \(L\) | let \(a=m^l<n^k\), so \(n^{kj}\geq (a+1)^j\geq a^j+ja^{j-1}\) (E8). For \(j=(m-1)a+1\) this exceeds \(m\,a^j=m^{lj+1}\). So \((lj+1)/(kj)>l/k\) lies in \(L\) |
| rounded, \(U\) | likewise with \(b=n^k<m^l\): \(m^{lj}\geq (b+1)^j>n\,b^j\) for \(j=(n-1)b+1\), so \((lj-1)/(kj)\in U\) |
| located | for \(q<r\) with \(q\geq 0\) write \(q=a/d<r=b/d\). If \(m^a<n^d\) then \(q\in L\). Otherwise \(m^b>m^a\geq n^d\), so \(r\in U\) |
Call this real \(\log _mn\). If \(m^l\leq n^k<m^{l+1}\) then \(l/k\leq \log _mn\leq (l+1)/k\): the upper bound because \((l+1)/k\in U\); the lower because \(l/k\in L\), or \(\log _mn=l/k\) when \(m^l=n^k\). By E12, \(f(n)/f(m)\) lies in the same interval of width \(1/k\), for every \(k\). By E10,
E14 (its laws). If \(l/k\in L_{\log n}\) and \(l'/k\in L_{\log n'}\) (common denominator, E9), then \(m^l<n^k\) and \(m^{l'}<n'^k\) give \(m^{l+l'}<(nn')^k\) (E7, E8); likewise for \(U\). A real whose lower cut contains \(L_x+L_y\) and whose upper cut contains \(U_x+U_y\) is \(x+y\) (E10). Hence
E15 (Bernoulli). For real \(t\geq -1\), by induction on \(n\):
E16 (the exponential exists). For a real \(x\) and numbers \(n>|x|\) put \(e_n(x)=(1+x/n)^n\). Since
E17 (its laws).
\(\exp (x)\geq 1+x\), with equality only at \(x=0\): \(e_n(x)\geq 1+x\) by E15 with \(t=x/n\), and \(e_2(x)=1+x+x^2/4\), which exceeds \(1+x\) for \(x\neq 0\).
\(\exp (x)\exp (-x)=1\): by E15, \(1\geq (1-x^2/n^2)^n\geq 1-x^2/n\), and both bounds tend to \(1\) (E10). Hence, from the first item at \(-c\): \(\exp (c)\leq 1/(1-c)\) for \(c<1\).
\(\exp (x)\exp (y)=\exp (x+y)\): a computation gives
\(\exp (x)>0\), and \(\exp \) is strictly increasing: \(\exp (y)=\exp (x)\exp (y-x)\geq \exp (x)(1+y-x)>\exp (x)\) for \(y>x\).
\(\exp \) is continuous: \(\exp (x+h)-\exp (x)=\exp (x)(\exp (h)-1)\), and \(h\leq \exp (h)-1\leq h/(1-h)\) for \(h<1\).
E18 (the natural logarithm and the one inequality). For real \(y>0\) put
E19 (Boltzmann). The entropy of a finite kind of size \(W\) is \(S=\ln W\): by E12, E13 the only reading of size that adds under \(\times \) and is monotone, up to the unit. \(k_B\) is that unit.
E20 (Gibbs entropy is Boltzmann entropy per place). Among the rows of length \(N\) with marks \(1,\dots ,m\) (E6), those with \(n_i\) places marked \(i\) number
E21 (grouping). If a kind of size \(W\) is cut into parts of sizes \(w_i\) and \(p_i=w_i/W\), then identically \(\ln W=H(p)+\sum _ip_i\ln w_i\). \(H(p)\) is the entropy of reading only the part.
E22 (Gibbs’ inequality). For probabilities \(p,q\), by E18,
| statement | reason |
| \(0\leq H(p)\leq \ln m\) | terms \(\geq 0\); \(H(p)=\ln m-D(p\Vert u)\), \(u\) uniform |
| \(H(p\times q)=H(p)+H(q)\) | \(\ln (p_iq_j)=\ln p_i+\ln q_j\) |
| \(H(A)\leq H(AB)\) | E21: the joint is the part and then the rest |
| \(H(AB)\leq H(A)+H(B)\) | \(D(p_{AB}\Vert p_A\times p_B)\geq 0\) |
| \(H(\sum _kt_kp^k)\geq \sum _kt_kH(p^k)\) | difference is \(\sum _kt_kD(p^k\Vert \bar p)\) |
| \(\sum _ia_i\ln \frac {a_i}{b_i}\geq a\ln \frac ab\) | Gibbs for \(a_i/a\), \(b_i/b\); \(a=\sum a_i\), \(b=\sum b_i\) |
E23 (what can change entropy). Let \(T_{ji}\geq 0\) with \(\sum _jT_{ji}=1\). The last row of E22 for each \(j\), with \(a_i=T_{ji}p_i\), \(b_i=T_{ji}q_i\), summed over \(j\):
E24 (the Gibbs state). Let \(E\) be a real function on a finite kind, \(q_i=e^{-\beta E_i}/Z\), \(Z=\sum _ie^{-\beta E_i}\). For every \(p\), by E22,
E25 (complex numbers from the swap). On pairs of reals put \(J(a,b)=(-b,a)\): the swap \(\sigma \) followed by a sign. Then \(J^2=-\mathrm {id}\). The maps \(a+bJ\) form a field \(\mathbb C\), with conjugate \(\overline {a+bJ}=a-bJ\) and \(z\bar z=a^2+b^2\geq 0\). Write \(i\) for \(J\).
E26 (vectors and matrices). A vector is a map \(n\to \mathbb C\) from a finite kind (E3). A linear map \(\mathbb C^n\to \mathbb C^m\) is determined by its values on the marks: a matrix \(A_{ij}\). Composition of maps is the matrix product, so it is associative. The units \(e_{ij}\) satisfy \(e_{ij}e_{kl}=\delta _{jk}e_{il}\).
E27 (the adjoint). Put \(\langle x,y\rangle =\sum _i\bar x_iy_i\); \(\langle x,x\rangle =\Vert x\Vert ^2\geq 0\), zero only for \(x=0\). Every \(A\) has exactly one \(A^\dagger \) with
| name | condition |
| self-adjoint | \(A^\dagger =A\) |
| positive, \(A\geq 0\); \(A\leq B\) | \(\langle x,Ax\rangle \geq 0\) for all \(x\); \(B-A\geq 0\) |
| projection | \(P^2=P=P^\dagger \) |
| unitary; isometry | \(u^\dagger u=uu^\dagger =1\); \(V^\dagger V=1\) |
| orthonormal basis | \(\langle f_i,f_j\rangle =\delta _{ij}\), \(n\) vectors |
A projection is a cut of the space: \(P^2=P\) is \(p^2=p\). Commuting projections form a Boolean algebra under \(PQ\), \(P+Q-PQ\), \(1-P\); those of one orthonormal basis form \(\mathbf 2^n\).
E28 (the trace is forced). Let \(\tau \) be linear on matrices with \(\tau (AB)=\tau (BA)\). Then
E29 (a maximum is attained). Let \(g\) be continuous on a closed bounded part \(K\) of \(\mathbb R^d\), \(M=\sup g\) (E11). Halve the cube containing \(K\) in each direction. Among the \(2^d\) pieces, in a fixed order, take the first on which the supremum of \(g\) is \(M\); one exists, since \(M\) is the greatest of finitely many suprema. Repeat. The corners of the chosen cubes increase and are bounded; their supremum \(x\) lies in \(K\), and \(g(x)=M\) by continuity. Only first elements were taken.
E30 (eigenbasis). Let \(A=A^\dagger \) and let \(x\) be a unit vector where \(\langle x,Ax\rangle \) is greatest, value \(M\) (E29). For \(y\perp x\) and real \(t\),
E31 (weighted cuts and their probabilities). An effect is \(E\) with \(0\leq E\leq 1\): a cut with weights, the projections being the sharp ones. A probability on effects is \(v\) with
\(v(E)=n\,v(E/n)\), so \(v(qE)=q\,v(E)\) for fractions \(0\leq q\leq 1\).
If \(E\leq F\) then \(v(F)=v(E)+v(F-E)\geq v(E)\).
For real \(0\leq t\leq 1\) and fractions \(q\leq t\leq q'\): \(q\,v(E)\leq v(tE)\leq q'\,v(E)\), so \(v(tE)=t\,v(E)\).
For \(A\geq 0\) put \(\hat v(A)=c\,v(A/c)\) for any \(c\geq \Vert A\Vert \), \(c>0\); it does not depend on \(c\), and it is additive (take \(c\geq \Vert A\Vert +\Vert B\Vert \)).
For \(A=A^\dagger \) write \(A=B-C\) with \(B,C\geq 0\) and put \(\hat v(A)=\hat v(B)-\hat v(C)\); if also \(A=B'-C'\) then \(B+C'=B'+C\), so this is well defined. For general \(X=A+iA'\) put \(\hat v(X)=\hat v(A)+i\,\hat v(A')\).
E32 (every state is a density matrix). Put \(\rho _{ji}=\hat v(e_{ij})\). Then for all \(X\)
E33 (projections alone). If \(v\) is given only on projections, additive on commuting ones:
\(n=2\): the conclusion fails. A projection of rank one is \(\bigl (\begin {smallmatrix}a&\bar b\\ b&1-a\end {smallmatrix}\bigr )\) with \(0\leq a\leq 1\). Put \(v=1\) if \(a>\tfrac 12\), \(v=\tfrac 12\) if \(a=\tfrac 12\), \(v=0\) if \(a<\tfrac 12\). Then \(v(P)+v(1-P)=1\), which is all that additivity asks, but \(\mathrm {tr}(\rho P)\) is continuous in \(P\) and \(v\) is not.
\(n\geq 3\): every such \(v\) is \(\mathrm {tr}(\rho P)\) (Gleason). The proof shows that a bounded function on the unit vectors of \(\mathbb R^3\) with constant sum on every orthonormal triple is a quadratic form. It is not written here; this is the one statement of the section used without proof, and nothing below depends on it, since E32 gives the same \(\rho \).
E34 (entropy as the least over contexts). A context \(C\) is an orthonormal basis \(e_i\), that is a Boolean algebra \(\mathbf 2^n\) of projections (E27). There a state is a probability \(p^C_i=\langle e_i,\rho e_i\rangle \). Define
E35 (first consequences).
| statement | reason |
| \(S(u\rho u^\dagger )=S(\rho )\) | same eigenvalues |
| \(S(\rho )=0\iff \rho ^2=\rho \) | \(H(\lambda )=0\) only for a point mass |
| \(S(\rho )\leq \ln n\), equal only for \(\rho =1/n\) | E22 |
| \(\rho =P/W\), \(\mathrm {tr}\,P=W\) | \(S=\ln W\) (E19) |
| all projections in play commute | one context; \(S\) is \(H\) (E20) |
E36 (relative entropy). Let \(\sigma =\sum _j\mu _j|g_j\rangle \langle g_j|\), \(\mu _j>0\), \(D_{ij}=|\langle f_i,g_j\rangle |^2\), \(r_i=\sum _jD_{ij}\mu _j\). By E18, \(\sum _jD_{ij}\ln (\mu _j/r_i)\leq 0\), so \(\mathrm {tr}\,\rho \ln \sigma =\sum _{ij}\lambda _iD_{ij}\ln \mu _j\leq \sum _i\lambda _i\ln r_i\), and \(r\) is a probability. By E22,
E37 (the quantum Gibbs state). For \(H=H^\dagger \) put \(\sigma =e^{-\beta H}/Z\), \(Z=\mathrm {tr}\,e^{-\beta H}\). For every \(\rho \), by E36,
E38 (the tensor is built on the pair). \(\mathbb C^m\otimes \mathbb C^n\) is the maps \(m\times n\to \mathbb C\) (E3 on the pair of E1), with \((x\otimes y)_{ij}=x_iy_j\) and \((A\otimes B)(x\otimes y)=Ax\otimes By\). The partial trace is
E39 (parts of a whole). If \(\rho \) has zero eigenvalues, apply what follows to \((1-\epsilon )\rho +\epsilon /n\) and let \(\epsilon \) tend to \(0\).
Subadditivity. \(S(\rho _{AB}\Vert \rho _A\otimes \rho _B)=S(A)+S(B)-S(AB)\geq 0\) by E36, E38.
Pure states. \(\psi =\sum _{ij}M_{ij}\,a_i\otimes b_j\) gives \(\rho _A=MM^\dagger \), \(\rho _B=(M^\dagger M)^T\). If \(M^\dagger Mv=\lambda v\), \(\lambda \neq 0\), then \(MM^\dagger (Mv)=\lambda Mv\) and \(Mv\neq 0\): the same non-zero eigenvalues, \(S(A)=S(B)\).
Purification. \(\rho =\sum _j\lambda _j|f_j\rangle \langle f_j|\) is the part of the pure \(\psi =\sum _j\sqrt {\lambda _j}\,f_j\otimes f_j\).
Triangle. Purify \(\rho _{AB}\) by \(R\). Then \(S(R)=S(AB)\), \(S(AR)=S(B)\), and subadditivity on \(AR\) gives \(S(B)\leq S(A)+S(AB)\). So \(|S(A)-S(B)|\leq S(AB)\).
Example. \(\psi =(a_1\otimes b_1+a_2\otimes b_2)/\sqrt 2\): \(S(AB)=0\), \(\rho _A=\tfrac 12\), \(S(A)=\ln 2\).
| on \(A\times B\) (E22) | on \(A\otimes B\) | |
| \(S(A)\leq S(AB)\) | yes | no |
| \(S(AB)\leq S(A)+S(B)\) | yes | yes |
| \(|S(A)-S(B)|\leq S(AB)\) | yes | yes, equality for pure states |
| contexts | one | many |
E40 (the integral of \(1/t\)). For \(0<a<b\) cut \([a,b]\) at \(ar^k\), \(r=(b/a)^{1/N}\). The upper and lower sums of \(1/t\) are \(N(r-1)\) and \(N(1-1/r)\). By E18, \(N(1-1/r)\leq N\ln r=\ln (b/a)\leq N(r-1)\), and the two sums differ by \(N(r-1)^2/r\), which tends to \(0\). So \(\int _a^bdt/t=\ln (b/a)\), and for \(x>0\)
E41 (inverses and isometries). Let \(A>0\), \(V\) an isometry, \(B=V^\dagger AV\). For any \(w\) put \(u=A^{-1/2}Vw-A^{1/2}VB^{-1}w\). Then
E42 (relative entropy as one expectation). Matrices are vectors with \(\langle X,Y\rangle =\mathrm {tr}\,X^\dagger Y\) (E27). For \(\rho ,\sigma >0\) put \(\Delta (X)=\sigma X\rho ^{-1}\). Its eigenvectors are \(|g_j\rangle \langle f_i|\) with eigenvalues \(\mu _j/\lambda _i>0\), so \((\ln \Delta )(X)=(\ln \sigma )X-X\ln \rho \) and
E43 (forgetting a part cannot increase relative entropy). Let \(\rho ,\sigma >0\) on \(A\otimes B\). Define \(V\) from matrices on \(A\) to matrices on \(A\otimes B\) by
and \(V\rho _A^{1/2}=\rho _{AB}^{1/2}\). So \(V\) is an isometry with \(V^\dagger \Delta _{AB}V=\Delta _A\), and by E41, E42
E44 (strong subadditivity). On \(A\otimes B\otimes C\) take \(\sigma =\rho _A\otimes \rho _{BC}\), whose part on \(AB\) is \(\rho _A\otimes \rho _B\). By E38 and E43,
E45 (the ladder).
| step | object | entropy | from |
| 0 | \(\mathrm {id}\); copy, pair, \(1\); \(0\), sums, \(\mathbf 2\); maps | — | E1–E3 |
| 1 | numbers, order; sum, product, power | — | E4–E8 |
| 2 | cuts; comparison of powers | \(\log \) | E9–E14 |
| 3 | \(\sup (1+x/n)^n\) | \(\ln y\leq y-1\) | E15–E18 |
| 4 | finite kind of size \(W\) | \(\ln W\) | E19 |
| 5 | rows with frequencies \(p\) | \(-\sum p_i\ln p_i\) | E20–E23 |
| 6 | mean of a reading fixed | \(\beta U+\ln Z\) | E24 |
| 7 | vectors, adjoint, trace | — | E25–E30 |
| 8 | probabilities on effects | \(\rho \) | E31, E32 |
| 9 | state, many contexts | \(-\mathrm {tr}\,\rho \ln \rho \) | E34–E37 |
| 10 | parts of a whole | sub- and strong subadditivity | E38–E44 |
Each step contains the earlier one: uniform \(p\) gives step 4; a state diagonal in one context gives step 5; \(\rho =P/W\) gives step 4 directly. Not proved in this section: E33 for \(n\geq 3\).