Lean, informalized

Nielsen & Chuang · Chapter 12, Quantum information theory · p. 584

Theorem 12.16 - Conditional entropies of a hashed random variable, a lower bound for universal families and a counterexample to a sharper one

A lower bound on entropy after universal hashing.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The Exercise

A random variable XX takes values in a finite set AA with probability distribution pp. A function gg from AA to the set BB of strings of mm bits is drawn uniformly at random from a family 𝒢\mathcal G, and XX is replaced by its hashed value G(X)G(X), where GG stands for the random choice. The family is universal when any two distinct inputs x≠x′x \neq x' collide, g(x)=g(x′)g(x) = g(x'), for at most a fraction 1/|B|1/|B| of its members. The uncertainty left in the hashed value for someone who knows which function was drawn is measured by the conditional Shannon entropy H(G(X)∣G)H(G(X)\mid G) and the conditional collision entropy Hc(G(X)∣G)H_c(G(X)\mid G). For a universal family, Theorem 12.16 bounds both from below by the collision entropy Hc(X)=−log⁡2∑xp(x)2H_c(X) = -\log_2 \sum_x p(x)^2 of the input: H(G(X)∣G)≥Hc(G(X)∣G)≥m−2m−Hc(X).H(G(X)\mid G) \;\ge\; H_c(G(X)\mid G) \;\ge\; m - 2^{\,m - H_c(X)}.(1)

Entropies of a Hashed Variable

The law μY\mu_Y of a random variable YY on a finite sample space Ω\Omega under weights μ\mu is the function on the values of YY that gives each value yy the total weight of the outcomes at which YY takes it, μY(y)=∑ω:Y(ω)=yμ(ω).\mu_Y(y) = \sum_{\omega:\,Y(\omega) = y} \mu(\omega).(2)✦ For a probability distribution μ\mu, the law μY\mu_Y is the distribution of YY. Under pp, the law pgp_g of a hash function gg is the distribution of the hashed value g(X)g(X) on BB.

The collision probability of a distribution qq on a finite set is Pc(q)=∑iqi2P_c(q) = \sum_i q_i^2.✦ For a probability distribution, Pc(q)P_c(q) is the probability that two independent draws from qq agree. For the hashed value, the average collision probability Pc(G(X)∣G)P_c(G(X)\mid G) is the mean of Pc(pg)P_c(p_g) over the family, Pc(G(X)∣G)=1|𝒢|∑g∈𝒢Pc(pg).P_c(G(X)\mid G) = \frac{1}{|\mathcal G|} \sum_{g \in \mathcal G} P_c(p_g).(3)✦ The conditional collision entropy Hc(G(X)∣G)H_c(G(X)\mid G) of the hashed value given the choice of function is the negative logarithm in base two of Pc(G(X)∣G)P_c(G(X)\mid G): Hc(G(X)∣G)=−log⁡2Pc(G(X)∣G).H_c(G(X)\mid G) = -\log_2 P_c(G(X)\mid G).(4)✦

The conditional Shannon entropy H(G(X)∣G)H(G(X)\mid G) of the hashed value given the choice of function is the mean over the family of the Shannon entropy in bits of the hashed value, H(G(X)∣G)=1|𝒢|∑g∈𝒢H(pg),H(q)=−∑yq(y)log⁡2q(y).H(G(X)\mid G) = \frac{1}{|\mathcal G|} \sum_{g \in \mathcal G} H(p_g), \qquad H(q) = -\sum_{y} q(y) \log_2 q(y).(5)✦

The Claim

Theorem 1. Let XX be a random variable on a finite set AA with distribution pp, and let GG be a member drawn uniformly from a finite nonempty family 𝒢\mathcal G of functions from AA to a finite set BB. Then Hc(G(X)∣G)≤H(G(X)∣G).H_c(G(X)\mid G) \le H(G(X)\mid G).(6)✦ If the family is universal, then also Hc(G(X)∣G)≥log⁡2|B|−log⁡2(1+|B|Pc(p)).H_c(G(X)\mid G) \ge \log_2 |B| - \log_2\bigl(1 + |B|\, P_c(p)\bigr).(7)✦ There exist a universal family of 8168^{16} functions from a set AA of 1616 elements to a set BB of 88 elements and a probability distribution pp on AA with Hc(G(X)∣G)<log⁡28−8Pc(p).H_c(G(X)\mid G) < \log_2 8 - 8\, P_c(p).(8)✦

What Is Checked

The claims are stated over the conditional entropies (4) and (5) of the hashed value, together with the collision probability Pc(p)P_c(p) of the input distribution.

These are inequalities (6) and (7), and the existence claim (8).