Contents / Information Theory / Network Coding and Common Randomness
Chapter 14
Network Coding and Common Randomness
Mixing packets inside the network instead of forwarding them, and distilling shared secrecy from correlated observations.
Introduction
Mixing packets inside the network instead of forwarding them, and distilling shared secrecy from correlated observations.
14.1Routing, Coding, and What a Network Can Carry
A communication network is a directed graph whose edges are pipes of bounded capacity. The question this chapter opens with is deceptively simple: given the graph, how much information can the source push to its destinations? For a single destination the answer has been known since 1956 and is purely combinatorial. For several destinations wanting the same data, the combinatorial answer is still right — but only if the interior nodes are allowed to compute, not merely to copy.
Definition 14.1 (Network). A network is a finite directed acyclic multigraph together with a source and a set of sinks . Each edge has capacity : in one use of the network it carries a single symbol of the alphabet . Unequal capacities are modelled by parallel edges.
The source holds a message ; the number is the rate. Each node computes the symbol it puts on each of its outgoing edges from the symbols arriving on its incoming edges (and, at , from ). Every sink must reconstruct all of . What distinguishes the two regimes is the class of functions the interior nodes are permitted to use.
Definition 14.2 (Routing solution). A routing (store-and-forward) solution is one in which the symbol placed on each outgoing edge is a copy of the symbol on some incoming edge — or, at the source, a copy of some . Interior nodes may duplicate and drop, never combine.
Definition 14.3 (Network code). A network code allows each node to place on an outgoing edge an arbitrary function
of the symbols on the edges entering . The code is linear if every is an -linear map. A code is a solution at rate if every sink can recover from the symbols on its incoming edges.
Routing is the special case in which each is a coordinate projection. So coding can never do worse; the content of the chapter is that it can do strictly better, and exactly how much better.
The ceiling on both regimes is a cut. A cut separating from a sink is a set whose removal destroys every directed path, and is the least cardinality of such a set.
Theorem 14.4 (Max-flow min-cut). In a network with unit-capacity edges, the maximum number of edge-disjoint directed paths from to equals .
Proof. Any family of edge-disjoint paths uses at least one edge of every cut, and no two paths share an edge, so the number of paths is at most for every cut : the maximum is at most the minimum.
For the reverse, run the augmenting-path algorithm. Start with the zero flow and repeatedly search the residual graph for a directed path, pushing one unit along it. Each augmentation raises the integral flow value by and the value never exceeds , so the process halts. At termination let be the set of vertices reachable from in the residual graph; then . Every edge from to is saturated and every edge from back into carries no flow, so the flow value equals the number of edges leaving — and those edges form a cut. Hence some cut has size equal to the flow value. Finally an integral unit-capacity flow of value decomposes into edge-disjoint paths: follow saturated edges forward from until reaching , delete that path, and induct on .∎
Proposition 14.5 (The cut bound holds for any code). Let a network code (linear or not) deliver to a sink with zero error, and let be any cut separating from . Then .
Proof. Give the uniform distribution on , so . Because the graph is acyclic and every path crosses , every symbol arriving at is a deterministic function of the tuple of symbols carried on . Zero-error decoding gives , whence
since each of the symbols takes at most values. Divide by .∎
Corollary 14.6 (Unicast needs no coding). If there is a single sink , routing achieves rate , and no network code achieves more.
Proof. Achievability: take edge-disjoint paths from Theorem Max-flow min-cut and send along the -th path, which is a routing solution. Optimality is Proposition The cut bound holds for any code, whose proof assumed nothing about the functions .∎
So for one sink the story is closed, and coding is pointless. With two sinks the cut bound reads , and the live question is whether both sinks can be served simultaneously at that rate. Routing must physically divide each edge between the two demands; coding need not, because one coded symbol can be useful to two receivers at once.
Intuition. Routing treats a packet as a physical object: a truck on a road carries one intact crate, and a crate delivered to one warehouse is not delivered to the other. Coding treats a packet as a constraint. Broadcasting the single equation tells a listener who already knows the value of , and tells a listener who already knows the value of — one transmission, two different pieces of news, because the two listeners bring different side information to the same equation.
Example 14.7 (One transmission for two receivers). A satellite must deliver bits and to two ground stations. Station already holds and needs ; station already holds and needs . Each broadcast reaches both stations and carries one bit. How few broadcasts suffice, and is that optimal?
Solution. One broadcast suffices: send . Station computes , and station computes .
It is optimal, because zero broadcasts cannot work: with uniform and independent of station 's side information , that station has bit of uncertainty about and receives nothing to remove it. So the minimum is exactly . A routing satellite, permitted only to forward or verbatim, needs broadcasts, since a broadcast of alone leaves station knowing nothing new. The coding gain is a clean factor of , obtained with nothing more than a XOR.
This is the smallest instance of index coding, and it already shows where gains come from: the useful quantity is not "how many packets moved" but "how much uncertainty was removed at each receiver". □□
Pitfall. The gain is a property of the topology and the demands, not of coding as such. On a directed tree, or in any single-sink problem, Corollary Unicast needs no coding says routing is already optimal and coding buys exactly nothing. A claim that "network coding doubles throughput" is a claim about a particular graph, never a general theorem.
14.2The Butterfly Network, Worked in Full
The butterfly is the smallest network on which coding beats routing, and it is worth doing completely: the coding scheme, the proof that it is optimal, and the proof that routing cannot match it. Nothing in it is asymptotic or approximate.
Definition 14.8 (The butterfly network). The butterfly has vertices and nine unit-capacity directed edges
The source is ; the sinks and both demand the whole message.
Both min-cuts equal : the paths and are edge-disjoint and reach , and symmetrically for , so Theorem Max-flow min-cut gives . Proposition The cut bound holds for any code therefore caps every scheme, coded or not, at rate .
Theorem 14.10 (The butterfly has a rate-2 linear code over ). With and message , the assignment
is a linear network code under which both sinks recover . It meets the cut bound, hence is optimal.
Proof. Each assignment is a linear function of the symbols entering the node in question: relay, and receives and and outputs their sum, so this is a legal linear network code.
Sink receives the pair , whose global encoding vectors are the rows of
Hence inverts and obtains ; explicitly . Sink receives with matrix , again of determinant , and recovers . Both sinks decode at rate , and rate cannot be exceeded, by the cut bound.∎
Now the other half, which is usually asserted rather than argued: routing on the butterfly is strictly worse, even when time-sharing, fractional rates and arbitrarily long blocks are allowed.
Theorem 14.11 (Routing on the butterfly is capped at 3/2). Suppose a routing solution delivers distinct packets to both sinks using uses of the butterfly, so each edge carries at most packets. Then , and the value is attained.
Proof. Let be the set of packets carried on over the uses, the set carried on , and the set carried on . Each has at most elements, since each edge is used at most times and — this is exactly where the routing hypothesis enters — each use carries a verbatim packet rather than a mixture.
Node sees only what arrives on , so everything sent on lies in , and everything reaching through lies in . Since must obtain all packets,
Consequently , so writing we get . Every packet must also leave the source on one of the two edges out of , so . Inclusion–exclusion now gives
Since , this yields , that is .
For attainment take and with packets : put , and , with forwarding to and forwarding . Then receives directly and through , while receives directly and through . No edge is used more than twice and both sinks hold , so the rate is .∎
Example 14.12 (Reading the gain off the two theorems). Quantify the end-to-end throughput advantage of coding over routing on the butterfly, and identify the single edge responsible for it.
Solution. Coding attains packets per use at each sink by Theorem The butterfly has a rate-2 linear code over , and routing attains at most by Theorem Routing on the butterfly is capped at 3/2. The ratio is
The responsible edge is : it is the only edge lying on a path to both sinks, and it is the only place where the two proofs part company. The routing bound had to spend the quantity once, because a forwarded packet serves whichever single sink was missing it; the coded symbol serves both sinks at the same time.
Note what the factor is not. The often-quoted "factor " is the ratio measured on the bottleneck edge alone — two packets' worth of demand met per use instead of one — not the ratio of end-to-end rates, which is . □□
Intuition. Think of the two sinks as two people each missing one half of a jigsaw. The bottleneck can hand over one piece. Under routing you must decide whose piece it is, and the other person waits. Under coding you hand over the difference of the two pieces, which is the missing half for both of them at once, because each already holds the other half to subtract.
Pitfall. The routing bound above already allows fractional and time-shared strategies; that is what " packets in uses" means. A frequent error is to argue "routing gives rate because the bottleneck carries one packet" and conclude a factor- end-to-end gain. The honest routing optimum is , attained by the , schedule in the proof, and the honest gain is .
14.3Linear Network Coding and the Multicast Theorem
The butterfly suggests that linear combinations are enough. The remarkable fact, due to Li, Yeung and Cai and recast algebraically by Koetter and Médard, is that they always are — for multicast, and over a large enough field.
Definition 14.13 (Linear network code and global encoding vectors). Fix a field and rate . A linear network code assigns to each edge leaving a node a coefficient for each edge entering (and, at the source, a coefficient for each message symbol), so that
By induction along the acyclic order, for a unique , the global encoding vector of : the recipe saying how much of each source symbol the edge carries.
Lemma 14.14 (Decoding is a rank condition). A sink with incoming edges can recover every from if and only if the matrix whose rows are has rank .
Proof. The received tuple is . The map is injective on exactly when , that is when ; and an injective linear map is inverted by any left inverse of , which the sink can compute once it knows the vectors .∎
So the entire design problem is: choose the local coefficients so that for every sink simultaneously. Collecting the 's into a vector of indeterminates makes each entry of a polynomial, and the problem becomes one about polynomials being nonzero.
Lemma 14.15 (Transfer matrices are polynomial). Order the edges consistently with the acyclic order and let be the matrix with when enters the tail of and otherwise, let record the source coefficients and select the edges entering . Then is strictly upper triangular, is invertible, and
so every entry of is a polynomial in the variables with coefficients in , of degree at most in each variable.
Proof. Strict upper triangularity is the acyclicity of in the chosen order, so and , a polynomial in . The -th term collects the products of coefficients along the directed paths of length , and a path visits each edge at most once, so each variable appears to degree at most in each such product.∎
Theorem 14.16 (Li–Yeung–Cai / Koetter–Médard multicast theorem). Let be an acyclic network with source and sink set , and let
Then for every field with there is a linear network code over achieving rate to every sink simultaneously. No scheme of any kind achieves more.
Proof. The converse is Proposition The cut bound holds for any code applied to the sink attaining the minimum.
For achievability, treat the local coefficients as indeterminates and set , where is any submatrix of chosen as follows. Fix ; by Theorem Max-flow min-cut there are edge-disjoint paths from to , and we may pick of them and let be the submatrix indexed by their last edges. Assigning so as to route along the -th of those paths (coefficient along the path, elsewhere) makes the identity, so is not the zero polynomial. A product of finitely many nonzero polynomials over a field is nonzero, so .
By Lemma Transfer matrices are polynomial, each has degree at most in each variable, hence has degree at most in each variable. Theorem Schwartz–Zippel — in the per-variable form, which is Alon's Combinatorial Nullstellensatz for this case — now guarantees that if then some assignment gives . For that assignment every , so every has rank , and Lemma Decoding is a rank condition lets every sink decode.∎
Theorem 14.17 (Schwartz–Zippel). Let be a nonzero polynomial of total degree , and let be finite. If are chosen independently and uniformly from , then
Proof. Induct on . For a nonzero univariate polynomial of degree has at most roots, so the probability is at most .
For , write with , where is the degree of in . Then . Let be the event . By induction . Conditioned on the complement of , the polynomial becomes a nonzero univariate polynomial in of degree , so it vanishes with probability at most . Hence
The per-variable refinement used above is the same induction carried out with the degree in each variable separately: if and , then does not vanish identically on .∎
Corollary 14.18 (Random linear network coding succeeds). Choose every local coefficient independently and uniformly from . Then all sinks can decode with probability at least
Proof. Apply Theorem Schwartz–Zippel to with . By Lemma Transfer matrices are polynomial each has degree at most in each of the at most variables, so and . Since by the proof of Theorem Li–Yeung–Cai / Koetter–Médard multicast theorem, the failure probability is at most .∎
The bound is crude but it says the right thing: failure decays like , so doubling the symbol size squares the reliability. A second, sharper estimate applies when the sink simply collects coded packets carrying independent uniform vectors, as in practical generation-based schemes.
Proposition 14.19 (Full rank of a uniform random matrix over ). Let be a matrix with entries independent and uniform on . Then
Proof. Build row by row. Given that the first rows are independent, they span a subspace of size , and the next row is uniform on , so it lands outside that span with probability . Multiplying over gives the product.
For the bound, for (induction on the number of factors), so the product is at least
Intuition. Every coded packet on the wire is a recipe: a vector of coefficients saying how much of each source packet went in. A sink is a cook who must reverse-engineer the ingredients, and can do so as soon as it has collected recipes that are genuinely different — linearly independent. A big field is simply a large supply of distinct recipes, which makes an accidental repetition unlikely.
Example 14.20 (Decoding a generation of two over ). A source has packets . A sink collects two coded packets with global encoding vectors (payload ) and (payload ). Recover and .
Solution. Stack the vectors as rows of , so the received payloads are . Since in , Lemma Decoding is a rank condition says the sink can decode. Over this is its own inverse, so
Example 14.21 (How large must the field be?). A generation of packets is coded with independent uniform coefficients over , and a sink collects exactly coded packets. What is the probability it can decode, and how does it change over ?
Solution. By Proposition Full rank of a uniform random matrix over with , ,
The factors are ; all but the last are within of , so the product is , a failure probability of about . The bound in the proposition predicts failure below — here essentially tight, because the last factor dominates.
Over the same computation gives failure . So the price of extra bits per coefficient is a -fold drop in the decoding-failure probability. □□
Pitfall. Random linear network coding needs the receiver to know the global encoding vectors, which are normally carried in the packet header: coefficients of bits each. For over that is bytes per packet — negligible against a -byte packet, ruinous against a -byte one. The overhead vanishes asymptotically in the packet length, never in the generation size, which is why deployments keep small.
14.4Common Randomness: The Problem and Its Capacity
We now change subject from moving information to sharing it. Alice observes and Bob observes , drawn i.i.d. from a joint law : neither knows the other's sequence, but the two are correlated. They may talk over a public channel that anyone can read. How many bits of identical randomness can they end up holding?
Definition 14.22 (Common randomness generation). A common-randomness (CR) protocol of block length consists of an interactive public transcript — each message a function of the sender's observation, their local randomness, and the previous messages — together with outputs and taking values in a finite set . It achieves CR rate with communication rate if, for every and all large ,
Two remarks fix the shape of the problem. First, no secrecy is demanded here: an eavesdropper may read in full. Second, and crucially, the communication must be rate-limited, or the question is empty — Alice could simply transmit fresh fair coin flips and both parties would hold bits of common randomness having used no correlation at all. The correct question is therefore how much common randomness the pair can hold in excess of what was spent describing it.
Theorem 14.23 (Ahlswede–Csiszár converse for common randomness). Any CR protocol with one-way communication from Alice, in which is a function of alone, satisfies
where as . In particular the CR rate exceeds the communication rate by at most .
Proof. Write . Since and , Fano's inequality gives
and because may be taken . Hence
Now is a function of and is a function of , so is a function of and the data processing inequality gives . Expanding and using ,
where because the pairs are i.i.d. Dividing by finishes the argument.∎
The matching achievability is the Slepian–Wolf construction, which we state because the argument leans on it by name.
Theorem 14.24 (Slepian–Wolf). Let be i.i.d. . If Alice may describe to a decoder that already holds , then any rate suffices for the decoder to recover with error probability tending to , and no rate below suffices.
Proof. Sketch — the argument rests on the asymptotic equipartition property and random binning, both developed in the chapters on entropy rates and on distributed source coding. Assign each a uniformly random bin index in and send the index. The decoder outputs the unique in the announced bin that is jointly typical with . Failure requires either atypicality, whose probability vanishes by the AEP, or a competing sequence in the same bin, whose expected number is at most when . The converse is the usual entropy bound on the description of given .∎
Corollary 14.25 (The CR rate of a correlated source). With one-way communication of rate , Alice and Bob can generate common randomness at rate , so the excess over the communication rate is
which by Theorem Ahlswede–Csiszár converse for common randomness is the largest possible excess.
Proof. Alice sends the Slepian–Wolf bin index of , of rate ; by Theorem Slepian–Wolf Bob reconstructs with vanishing error probability. Both set , so and . The excess is , and the converse caps it at .∎
Intuition. Alice and Bob each hold a noisy photograph of the same scene. Sending a short description — only enough to resolve the places where the two photographs disagree — lets Bob repaint his copy into an exact duplicate of Alice's. What they gain is a whole photograph's worth of shared randomness for the price of describing the disagreements. The saving, per symbol, is precisely .
Example 14.26 (Common randomness across a binary symmetric channel). Alice observes uniform on and Bob observes with independent of . Logs are base and , with . Find the reconciliation rate and the CR excess rate.
Solution. Since is uniform and the noise is independent, is uniform too, so bit; and bits. Therefore
By symmetry , so Theorem Slepian–Wolf says Alice needs about bits per symbol of public description for Bob to recover exactly. Both then hold : bit per symbol of common randomness for bits per symbol of talk, an excess of , which Corollary The CR rate of a correlated source says is optimal.
Sanity check: as the two views coincide, , and the excess tends to bit — a whole shared coin per symbol. As the views become independent, , and the excess tends to : nothing was shared to begin with. □□
Pitfall. "Free communication gives CR rate " is false as stated, and is the most common misstatement of this result. With genuinely free communication the CR rate is unbounded — Alice just reads out fresh coin flips. is the maximum CR rate in excess of the communication rate, which is what Theorem Ahlswede–Csiszár converse for common randomness actually bounds.
14.5Secret Key Agreement from Correlated Sources
Add an eavesdropper. Eve observes , correlated with , and reads the entire public transcript. Now Alice and Bob want not merely identical bits but identical bits that Eve cannot guess.
Definition 14.27 (Secret-key rate). A secret-key agreement protocol is a CR protocol in which, in addition, the key is nearly uniform and nearly independent of Eve's total view:
The secret-key rate is the supremum of rates achievable this way with unlimited interactive public discussion.
Theorem 14.28 (Maurer / Ahlswede–Csiszár lower bound).
Proof. Sketch — the argument rests on the Csiszár–Körner wiretap coding theorem, proved in the chapter on multi-user channels, together with Theorem Slepian–Wolf. Consider one-way communication from Alice. Alice sends a Slepian–Wolf description of at rate , so that Bob reconstructs ; this costs Eve's knowledge nothing beyond the bits revealed. The pair now share , of which Eve knows bits per symbol through and bits per symbol through the transcript. Hashing down by those two amounts — this is privacy amplification, made quantitative by Theorem Leftover hash lemma in the next section — leaves
bits per symbol that are -close to uniform given Eve's view. Exchanging the roles of Alice and Bob gives the second term.∎
Theorem 14.29 (Maurer upper bound).
Proof. The key step is that no public message can increase the conditional dependence between the two views given Eve's. Let be the messages and write . Suppose is sent by Alice, so is a function of and possibly her local randomness independent of everything else. Expanding in two ways,
The last term vanishes: given the message is independent of and . Since , we get
and the same computation with the roles swapped covers messages sent by Bob. Iterating over the rounds,
the last equality because the triples are i.i.d.
It remains to bound the key by this quantity. Since is a function of and of ,
On the other side, near-uniformity and Fano's inequality give with : indeed , the last term is at most by Fano, and by the secrecy condition, leaving . Combining and letting gives .∎
The two bounds do not meet, and the gap is real mathematics rather than slack bookkeeping: there are sources where yet . The mechanism is advantage distillation, which needs two-way communication, and it is the reason Theorem Maurer / Ahlswede–Csiszár lower bound is only a lower bound.
Example 14.30 (Advantage distillation with a repetition trick). Alice, Bob and Eve observe , , with , independent, and — so Eve's channel is better than Bob's and the one-way bound is negative. Alice takes two of her bits , draws a fair bit , and publicly announces . Bob forms his two candidate values of and keeps the block only if they agree. With , what is Bob's error probability on an accepted block?
Solution. From the announcement Bob computes and . He accepts when , that is when : both bits correct (probability ) or both wrong (probability ). Conditioned on acceptance his guess is wrong exactly in the second case, so
Eve, who must guess from and the announcement, faces the same combinatorics with her own crossover , giving . The crucial point is the shape of the map : it squares the odds ratio, since . Repeating the trick times raises the odds ratio to the power for both parties, and because Bob's odds ratio is below while an unfavourable enough acceptance rule makes Eve's approach more slowly, iterating can drive Bob's error to faster than Eve's, opening a positive gap where the one-way bound saw none.
Sanity check: gives , and one more round gives — the error is falling roughly like the square each time, at the cost of discarding the blocks Bob rejects (here a fraction of them). □□
Method 14.31 (Distilling a secret key).
- Advantage distillation (only if needed): two-way exchanges that discard the blocks on which Bob is unreliable, buying an advantage over Eve where none existed.
- Information reconciliation: Alice sends a syndrome of rate about — in practice an LDPC or polar syndrome — so Bob's string becomes identical to hers. Every bit sent is a bit Eve also learns, and must be paid for in step 3.
- Privacy amplification: apply a public universal hash, shortening the common string by Eve's total information — what she learned through plus the reconciliation leakage — so that the output is almost uniform given her whole view.
Example 14.32 (Key rate over a pair of binary symmetric channels). Alice holds uniform; Bob sees , ; Eve sees , , all independent. Use , . Compute the one-way lower bound and the Maurer upper bound.
Solution. As in the previous section and . Theorem Maurer / Ahlswede–Csiszár lower bound gives
For the upper bound, . Here . For , note that given the posterior of depends only on whether . That happens with probability , and then , contributing ; otherwise , contributing . Hence
The secret-key rate therefore lies in — the two bounds are close but do not coincide, which is typical.
Sanity check: the lower bound is positive precisely because Bob's channel is less noisy than Eve's, . Setting Eve's crossover to as well would make the lower bound , yet the example on advantage distillation shows that a zero lower bound is not a proof that no key exists. □□
Pitfall. does not mean no secret key is possible. That expression is only the one-way achievable rate of Theorem Maurer / Ahlswede–Csiszár lower bound; two-way advantage distillation can make even when Eve's observation is better than Bob's. The genuine obstruction is , by Theorem Maurer upper bound.
14.6Randomness Extraction and Privacy Amplification
Reconciliation leaves Alice and Bob holding the same string , about which Eve retains partial information. Privacy amplification is the step that converts into a shorter string Eve knows nothing about. The right measure of "how much is left" is not Shannon entropy but the worst case.
Definition 14.33 (Min-entropy and statistical distance). The min-entropy of a random variable on a finite set is
so says no single value is guessed with probability above . The statistical distance between distributions on a set is
and is called -close to when . Statistical distance is exactly the largest advantage any test can have in telling from .
Pitfall. Shannon entropy is useless here. Let be the constant with probability and uniform on otherwise. Then bits, which sounds ample, but bit: Eve guesses and is right half the time. No hash of can be more than bit from uniform in her eyes. Extraction is governed by the worst case, not the average.
Definition 14.34 (Universal hash family). A family of functions is 2-universal if for every pair , a uniformly chosen satisfies
The map (the first bits of in ), indexed by , is the standard example, and the index is short — bits — compared with what it extracts.
Two small lemmas do all the work. The first converts a collision bound into a distance bound; the second computes the collision probability of a hashed string.
Lemma 14.35 (From collision probability to statistical distance). Let be a distribution on a set of size , let be uniform on , and let be its collision probability. Then
Proof. By Cauchy–Schwarz applied to the vectors and ,
which equals . Take square roots and halve.∎
Lemma 14.36 (Collision probability after universal hashing). Let satisfy , let be 2-universal with -bit outputs, and let be uniform on and independent of . Then the pair has collision probability at most
Proof. Let be an independent copy. A collision requires , which has probability , and then . Split on whether :
the last step by 2-universality applied conditionally on each pair . Finally .∎
Theorem 14.37 (Leftover hash lemma). Let and let be a 2-universal family with -bit outputs, uniform on and independent of . Then
where is uniform on . In particular the output is -close to uniform given the seed whenever
Proof. Apply Lemma From collision probability to statistical distance to the distribution of the pair on the set of size , using the collision bound of Lemma Collision probability after universal hashing:
Hence . For the last claim, gives , so .∎
Because the seed appears on both sides of the distance, the guarantee survives publishing it: this is what "strong extractor" means, and it is why the seed may be sent in the clear.
Definition 14.38 (Strong extractor). A function is a strong extractor if for every with and uniform on independent of ,
Theorem Leftover hash lemma says a 2-universal family is a strong extractor with , and the loss of bits is known to be necessary up to an additive constant.
Eve, though, has side information rather than nothing, so the relevant hypothesis is on given her view. Two facts make this manageable.
Lemma 14.39 (Leakage costs at most its length). If takes at most values then for every there is an event of probability at least on which the conditional min-entropy satisfies
Proof. Fix and . Then . Call bad if ; the union over the at most values of shows the bad values occur with total probability below . For every good ,
So a reconciliation transcript of bits costs at most bits of min-entropy, which is exactly the accounting used in Recipe Distilling a secret key: hash away Eve's channel information and the syndrome length.
Intuition. Picture Eve's knowledge as having narrowed down to a set of about equally plausible candidates. A universal hash scatters those candidates over the possible outputs like balls into bins. When greatly exceeds , every bin receives about the same number of candidates, so the output tells Eve nothing about which candidate was real. The margin is how many times more candidates than bins there are, and the in the lemma is the size of the residual imbalance.
Example 14.40 (Sizing a key from a min-entropy budget). A reconciled string of bits has min-entropy at least bits from Eve's viewpoint. Alice and Bob apply a public 2-universal hash. What is the largest meeting a security target , and what distance does a -bit key actually achieve?
Solution. Theorem Leftover hash lemma allows any . Here , so the entropy tax is bits and
Taking instead, the achieved distance is , far inside the target, because bits of headroom were left unused.
Sanity check: at the maximal the bound reads , so is indeed the largest safe length and is conservative. If reconciliation had additionally leaked a -bit syndrome, Lemma Leakage costs at most its length would cut the budget to roughly , allowing only — which is why syndrome length is paid for twice, once in bandwidth and once in key length. □□
14.7Where Common Randomness Is Used
The two halves of this chapter meet in practice: network coding is how shared structure moves through a network, common randomness is what two endpoints can agree on without meeting. Each has a small number of applications that are genuinely information-theoretic rather than merely suggestive.
Quantum key distribution. BB84 and its relatives produce exactly the situation of the section on secret key agreement: after the quantum phase, Alice and Bob hold correlated strings and an eavesdropper holds a quantum system correlated with them. The classical post-processing is Recipe Distilling a secret key verbatim — reconciliation, then privacy amplification by universal hashing.
Theorem 14.41 (Asymptotic BB84 key rate). For BB84 over a channel with observed bit-error rate in the sifted key, collective attacks admit a secret-key rate per sifted bit of
positive for .
Proof. Sketch — the argument rests on the Devetak–Winter formula for the asymptotic key rate against collective attacks, whose derivation belongs to the chapter on quantum information. One factor is the reconciliation cost from Theorem Slepian–Wolf; the other is the bound on Eve's Holevo information forced by the observed error rate, since in BB84 an eavesdropper who learns a fraction of the key must disturb the conjugate basis by a matching amount. Setting gives , i.e. .∎
Physical-layer keys from channel reciprocity. Two radios measuring the same fading coefficient obtain correlated observations for free, while an eavesdropper more than half a wavelength away sees an essentially independent one.
Example 14.42 (A key harvested from a fading channel). Two devices probe the channel over independent coherence blocks, quantizing each reciprocal measurement to bits. After reconciliation the shared string retains a conservative bits of min-entropy per block against Eve. How long a key can they publish at security ?
Solution. The min-entropy budget is bits. Theorem Leftover hash lemma permits
so a -bit key is comfortably available, with distance as computed in the previous section. The security rests on no computational assumption — only on Eve's decorrelation and the min-entropy estimate.
Sanity check: the usable key length grows linearly in the number of probes, so halving the probing phase to blocks gives and , too short for a -bit key. The entropy estimate per block is the quantity worth being conservative about, since Theorem Leftover hash lemma is only as good as the fed into it. □□
Coordination without communication. Shared randomness lets two parties act as though they had conferred: choosing the same codebook, the same hash seed, the same frequency-hopping pattern. How much shared randomness is needed to simulate a target joint distribution is a question with its own answer.
Definition 14.43 (Wyner common information). For a joint law , the Wyner common information is
the least rate of a common message from which two separate processors, acting independently, can generate a pair distributed as .
Proposition 14.44 (Common information dominates mutual information). , with equality if and only if some with satisfies .
Proof. Let achieve the minimum, so is a Markov chain. The data processing inequality applied to that chain gives , and since conditioning on more cannot decrease the information the pair carries about — formally . Chaining the two inequalities gives .∎
So agreeing on a source of correlation is strictly harder, in general, than the correlation itself is worth — the two quantities coincide only for special sources, and the gap is the price of generating dependence rather than merely exploiting it.
Random linear network coding in deployed systems. Corollary Random linear network coding succeeds is what makes network coding practical: nodes need no knowledge of the topology, choose coefficients at random, and a sink decodes as soon as it has collected enough independent recipes. Peer-to-peer distribution, distributed-storage repair, and the wireless schemes COPE and MORE all rest on it. The design tension is the one in the pitfall of the section on linear coding.
Example 14.45 (Choosing a generation size). A system uses generations of packets over with -byte payloads, carrying the coding vector in the header. Compare the header overhead and the decoding-failure probability for and .
Solution. The coding vector is coefficients of one byte each, so the overhead fraction is : about at and about at .
Proposition Full rank of a uniform random matrix over bounds the failure probability, when exactly coded packets are collected, by for both values of — the bound does not depend on at all.
So the decision is not about reliability but about overhead against decoding cost and delay: Gaussian elimination on a matrix costs operations, times more at than at , and a sink must wait for packets before producing anything. Small generations win on every axis except the number of generations to manage. □□
Intuition. The two threads of this chapter are one idea seen twice. In the butterfly, a single symbol served two receivers because each brought its own side information to the same linear equation. In privacy amplification, a single public hash served Alice and Bob but not Eve, because they brought the reconciled string to it and she did not. Both are cases of publishing a constraint rather than a value, and letting the recipients' prior knowledge decide what the constraint reveals.
- Claiming network coding always improves throughput: Corollary *Unicast needs no coding* proves routing is already optimal for a single sink, and the same holds on any directed tree. The gain is a property of the topology together with the demands.
- Quoting "factor 2" as the butterfly's end-to-end gain: routing attains , not , by Theorem *Routing on the butterfly is capped at 3/2*, so the end-to-end gain is . The factor is the gain on the bottleneck edge alone.
- Assuming the min-cut characterization extends beyond multicast: Theorem *Li–Yeung–Cai / Koetter–Médard multicast theorem* is about one source and sinks wanting the *same* data. For two independent sessions the cut bound can be unachievable and linear codes need not be optimal at all.
- Believing any field size works: the multicast theorem needs , and the random-coding guarantee of Corollary *Random linear network coding succeeds* degrades like . suffices for the butterfly and fails on larger multicast instances.
- Forgetting the coding-vector header: random linear coding requires the sink to know the global encoding vectors, costing bits per packet. This vanishes with payload length, never with generation size.
- **Saying the common-randomness rate is when communication is free**: with free communication the rate is unbounded, since Alice can read out fresh coin flips. bounds the CR rate *in excess of* the communication rate — Theorem *Ahlswede–Csiszár converse for common randomness*.
- Equating common randomness with secret key agreement: CR asks only that both parties hold the same bits; a key must additionally be nearly independent of Eve's view, which is what forces the privacy-amplification step and lowers the rate.
- Skipping reconciliation: correlated observations are almost never identical, so without an error-correction phase the two parties hash *different* strings and obtain unrelated outputs.
- **Reading as "no key exists"**: that is only the one-way bound. Two-way advantage distillation can yield a positive rate; the real obstruction is , by Theorem *Maurer upper bound*.
- Using Shannon entropy in the leftover hash lemma: extraction is governed by min-entropy. A source with can have , and then no hash of it is secret.
- Forgetting that reconciliation leakage is charged against the key: every syndrome bit sent in the clear costs up to one bit of min-entropy by Lemma *Leakage costs at most its length*, and must be subtracted before choosing the output length .
- Treating the extractor seed as a secret: Theorem *Leftover hash lemma* bounds the distance of the pair from uniform, so the seed may be published. Conversely, reusing one seed on correlated strings is outside the lemma's hypotheses and is not covered by it.