Part 1. By the chain rule for mutual information,
in two orders,
I(X;YZ)=I(X;Z)+I(X;Y∣Z)=I(X;Y)+I(X;Z∣Y).
The Markov property says that given Y=y, X and Z are independent, so
I(X;Z∣Y=y)=0 for each y and I(X;Z∣Y)=0. Hence
I(X;Z)=I(X;Y)−I(X;Y∣Z)≤I(X;Y), because conditional mutual information is
nonnegative (Gibbs' inequality). For Z=g(Y) the chain
X→Y→g(Y) is Markov.
Log-sum inequality. For nonnegative a1,…,ak and positive b1,…,bk,
with a=∑iai and b=∑ibi,
∑iailog2(ai/bi)≥alog2(a/b). Indeed f(t)=tlog2t is convex
on [0,∞), and Jensen's inequality with weights bi/b at the points
ti=ai/bi gives ∑i(bi/b)f(ti)≥f(∑iai/b)=f(a/b); multiply by
b. Terms with bi=0 and ai=0 contribute nothing, and if some bi=0<ai the
left side is +∞.
Part 2. For each output y apply the log-sum inequality to ax=p(x)W(y∣x) and
bx=q(x)W(y∣x), whose sums are (pW)(y) and (qW)(y):
(pW)(y)log2(qW)(y)(pW)(y)≤x∑p(x)W(y∣x)log2q(x)p(x).
Summing over y and using ∑yW(y∣x)=1 gives D(pW∥qW)≤D(p∥q).
Part 1 is the chain-rule argument of chapter 2 of Cover and Thomas,
where the log-sum inequality is also proved.