Manuscript Offprint
arXiv:2608.22837Entropy of Bernoulli Measures Conditioned on Affine Subspaces and a Problem of Ancheta--Massey
Abstract
A textbook result in information theory is that linear encoders achieve the entropy for lossless compression of Bernoulli source with parameter . For lossy compression, however, linearity is known to incur strict suboptimality compared to the rate-distortion function. Massey asked whether the optimal rate for linear encoding is achieved simply by compressing a fraction of the bits linearly and losslessly and estimating the rest by zero [Mas78]. For , Ancheta answered this question affirmatively [Anc78]. This note extends Ancheta's result to all .
The key argument is to bound the entropy of the posterior distribution conditioned on an affine subspace in terms of its marginals. The proof was discovered by GPT-5.6 Sol in an interactive process guided by the author. The purpose of the present note is to communicate a simplified version of this proof and to make connections with the existing literature on coding theory and spin glass theory.
1 Introduction
A textbook result in information theory is that entropy, the fundamental limit of data compression [Sha48], can be achieved using a linear encoder (see, e.g., [CK11, Problem 1.7]). Specifically, let have iid coordinates drawn from . There exists a matrix and a decoder , such that as and . Here
is the Shannon entropy of in bits. Without loss of generality, we assume throughout the paper.
For lossy data compression, Shannon’s rate-distortion theory determines the optimal tradeoff between the compression rate and the reconstruction error. For the Bernoulli source X, suppose that on average a fraction D of the bits are allowed to be erroneously decoded. (The distortion parameter is known as the bit error rate.) There exist and , such that the expected Hamming distance between the source and the reconstruction satisfies , and , where
*Department of Statistics and Data Science, Yale University, New Haven, Connecticut, USA, yihong.wu@yale.edu.
is the rate-distortion function, which is the minimal compression rate for any compression scheme achieving bit error rate D.
Unlike lossless data compression, it is known that linearity incurs a strict suboptimality for lossy compression. A result due to Ancheta [Anc78, Mas78] is that if the compressor is restricted to a linear map, the bit error rate must be at least
where is the compression rate and takes values in . This shows that linear encoding fails achieve the rate-distortion function. (See Fig. 1.)
For the special case , Ancheta's lower bound may be achieved by the (trivial) linear encoder that keeps the first bits and randomly guesses the remaining bits. For general , this may be extended to a time-sharing scheme that linearly compresses a fraction of the bits losslessly and decodes the remaining bits by 0, achieving an overall distortion
In [Mas78, Mas09], Massey posed the question whether this time-sharing bound is the best one can do with linear encoders. This question has since remained open and led to related conjectures in the literature [MP17, MP21] (see also [Hua15, Chap. 9] for a discussion of linear encoding in lossy compression.) In this paper we resolve this question in the positive by showing that (3) is tight for linear encoding for all .

(a)

(b)
Figure 1: Rate-distortion tradeoffs for a Bern(p) source with Hamming loss: is Shannon's rate-distortion function (1), is Ancheta's converse (2), and corresponds to the time-sharing bound (3).
Here linear encoding is not to be confused with the scheme of using a linear subspace as codebook and (nonlinearly) encoding by its closest point in . While this scheme is known to achieve the rate-distortion function for [Gob63] (see also [Ber71, Theorem 6.2.2] and [DP86]), it is strictly suboptimal for . To see this, suppose for some with full rank, which has a submatrix formed by columns indexed by . Since , , the last inequality applying the concavity of entropy. Thus the compression rate satisfies . For modifications of this scheme that achieve the rate-distortion function, see [CHJ07, GV09].
A linear compressor is a matrix that maps to from bits to bits. (Here and below, vector-matrix multiplication is in .) Because redundant linear projections provide no extra information, we may assume without loss of generality that has full row rank.
Given an encoder, the optimal decoder that minimizes the Hamming loss is the so-called bitwise maximum a posteriori (MAP) decoder that reports the mode of each posterior marginal. That is, upon observing , the ith decoded bit is
resulting in the minimal Hamming loss
The optimal bit error rate for a given linear encoder H is thus
The following theorem gives a nonasymptotic converse for linear encoding, proving the tightness of the time-sharing bound (3).
Theorem 1. For any with full row-rank,
2.1 Conditional entropy on a coset
It will be more convenient to phrase the discussion in terms of affine subspaces or cosets. Let be a linear subspace of and let be an affine subspace for . Then is a coset of the subgroup of .
Throughout, denotes the product Bernoulli measure with parameter p on the Hamming cube, with the ambient dimension n suppressed to ease the notation. The probability mass function of P is
where denotes the Hamming weight.
Given , denote the conditional distribution by , that is,
Given , define the minimal Hamming loss by
(9) attained by the bitwise MAP rule
As such, may be interpreted as the radius of A weighted by the Bernoulli measure.
The following key lemma bounds the entropy of the conditional distribution of a Bernoulli vector on an affine subspace in terms of its marginals.
Lemma 1. For every affine subspace ,
Assuming Lemma 1, the proof of the main result is immediate.
Proof of Theorem 1. For , define the affine space
which is non-empty because H has full rank.
Conditioned on , X is distributed as . Applying Lemma 1 yields the pointwise bound
Averaging over S and applying the definition (5), we get
Since is a deterministic function of and takes values in ,
Dividing by n proves (6).
3 Proof of Lemma 1
Let . Fix and choose an optimal (bitwise MAP) reconstruction point for , so that
Define the product Bernoulli measure shifted by as , namely,
The key estimate is the following chain of inequalities:
With this, we may complete the proof of Lemma 1 as follows. Applying a change of measure from to and using (11)–(12) to evaluate the cross entropy, we get
where denotes the KL divergence in bits. Since is supported on , applying the data processing inequality to the indicator yields
Combining these two displays with the final inequality in (13), we obtain
which is (10). Thus it remains to prove (13).
3.1 Reduction to zero coset
The left and right inequalities in (13) allow us to reduce an arbitrary coset to the zero coset. These are established by the following two lemmas.
Lemma 2. Let , and let have independent coordinates with
and let be arbitrary. Define . Then
Furthermore, for all ,
Proof. Write for the th column of . Recall the Fourier inversion on (with respect to the uniform distribution): for any ,
Applying this to the function g, whose Fourier coefficient is
we get
Since every product in the last sum is nonnegative, replacing s by 0 yields an upper bound, proving (14).
To prove (15), let be an independent copy of , and set . Because the pairs are independent across , the coordinates of are independent conditioning on any , with
Moreover, independence of W and gives
Consequently,
where the inequality follows from (14) applied to the conditional product law in (17) for each z. ☐
Let denote the ith marginal of the posterior.
Lemma 3. Let C be a linear subspace of . Then, for every coordinate and every ,
Consequently,
and
Proof. The assertion is immediate when , so assume . Choose a full-row-rank matrix with , and define the coset
Because has full row rank, every is nonempty. With this notation, we have and . Define the syndrome PMF
For fixed , let denote the th column of and the submatrix with removed. Similarly, let . Denote the PMF of by
Conditioning on yields
Recall that . Bayes' rule gives
and in particular for s = 0,
Applying Lemma 2 to the matrix , we get and hence , proving (18).
To show the two-sided bound (19), applying (15) to gives
The second inequality applied to (23)–(24) yields . For the other direction, the first inequality is equivalent to
Since , replacing the LHS by 1 yields . This proves (19).
Finally, (19) is equivalent to . Summing over proves (20). By (18), so the bit-MAP decoder outputs 0 given and hence (21).
3.2 Bounding the mass of zero coset
The following lemma bounds the Bernoulli measure of a linear subspace by its radius. Note that the upper bound is tight for the extreme case of and .
Lemma 4. For every linear subspace C of ,
Proof. Let . Define
Thus the desired (25) is equivalent to
We prove (26) by induction on . When , the two possible linear subspaces are and , and both give equality. Assume , and define
Let
If , then , so (18) and (19) are immediate. We may therefore assume that . For every , applying (15) to the pairs and shows that if and only if . Since , both quantities are positive, and all the ratios in (23)–(24) are well-defined.
By Lemma 3, .
Suppose first that is nonempty. Then is linear and is an affine coset of . Let Z denote the first n - 1 coordinates of X and define
Due to the marginal independence of Z and , under , the conditional law of Z given is . Consequently,
Applying (20) and (21) in Lemma 3 to the linear space and its affine coset yields
Thus
If is empty, then , , and , so (27) also holds.
In order to apply induction, we apply the KL chain rule to obtain
Because , by convexity of KL divergence,
Thus
where the middle inequality applies the induction hypothesis for to , and the last inequality is (27). This completes the proof.
Finally, note that the left, middle, and right inequality in (13) follows from Lemma 2, Lemma 4, and Lemma 3, respectively. This completes the proof of Lemma 1.
4 Discussion
4.1 Connections with the literature
While Lemma 1 may appear new, several of its supporting results have appeared in or can be deduced from the existing literature on coding theory and spin glass theory.
• For (14), in the homogeneous case (all are the same), Sullivan [Sul67] showed that zero is the mode of the syndrome HW. (In fact, a stronger lower bound on is given in [Sul67, Theorem 1].) Applying this to also implies (18) and (21).
• Of direct relevance is the result of Cammarota and Russo on Bernoulli measures of cosets [CR91]. In particular, (15) (and hence (14)) follows from [CR91, Proposition 3.1].
- The connection to spin glass stems from the fact that the posterior distribution Law(X|HX = s) is an Ising model, with interaction order given by the sparsity of each row of H. To see this, let and . Denote the support of the th row of H as . For the coset , the posterior (induced on the spins) is the hard-constraint Gibbs measure
where . Note that is the limit of as :
Crucially, for and , is ferromagnetic so is the limiting . (This is why the posterior for the zero coset is special.) Thus the correlation inequality of Griffiths-Kelly-Sherman (GKS) [Gri67, KS68] is applicable: for any subset . From here, we can arrive at
which combined with (29) implies (26) and hence Lemma 4.
To show (31), consider the linear subspace . For each , applying GKS to yields , namely, . Repeated application yields . Multiplying this from to gives (31). (Note that (31) also follows from the “conditional G-regularity” in [CR91, Theorem 1.1].)
4.2 Equivalent formulation for channel coding
In view of the operational duality between source and channel coding [Mas78], Theorem 1 may be phrased equivalently for the binary symmetric channel (BSC) with crossover probability p as follows. Let C be a linear codebook of dimension m in , whose communication rate is
Choose a codeword uniformly from . The BSC channel output is , where the noise is independent of . Let denote the average bit error rate under the optimal bitwise MAP decoding of the codeword. The capacity of the binary symmetric channel is
If , reliable communication is impossible and hence is bounded away from zero. The following is a precise lower bound for linear codes:
This observation was also used in [Mac07] and the GKS inequality for Gaussian coupling [MNC04] is applied to analyze MAP coding of LDPC codes over binary-input Gaussian channel.
Corollary 1. For ,
Proof. Let be a parity-check matrix of the code with . For every observation , Bayes' rule and the uniform prior on give
Thus the conditional law of Z given Y = y is the Bernoulli product measure conditioned on the syndrome HZ = Hy. Since , bitwise MAP decoding of c is equivalent to bitwise MAP reconstruction of Z from HZ, and therefore . Applying Theorem 1 with gives
which is (32).
Declaration of AI use
The first version of the proof was discovered by GPT-5.6 Sol in an interactive process guided by the author, who subsequently simplified the program and developed the self-contained proof presented here. In hindsight, and thanks to a literature search aided by Codex, it turns out that several of the proof ingredients have appeared in, or can be deduced from, the prior literature (see Section 4.1 for discussion). The author wrote the paper and assumes full responsibility for its technical content.
Acknowledgment
The author is grateful to Sergio Verdú for bringing this problem and the paper [Mas78] to his attention in 2007.
References
[Anc78] T. C. Ancheta, Jr. Bounds and techniques for linear source coding (Ph.D. thesis abstract). IEEE Transactions on Information Theory, 24(2):276, March 1978.
[Ber71] Toby Berger. Rate Distortion Theory: A Mathematical Basis for Data Compression. Prentice-Hall, Englewood Cliffs, NJ, 1971.
[CHJ07] Jun Chen, Da-Ke He, and Ashish Jagmohan. Achieving the rate-distortion bound with linear codes. In Proceedings of the 2007 IEEE Information Theory Workshop, pages 662–667, Lake Tahoe, CA, September 2007.
[CK11] Imre Csiszár and János Körner. Information Theory: Coding Theorems for Discrete Memoryless Systems. Cambridge University Press, New York, NY, USA, 2nd edition, 2011.
[CR91] Camillo Cammarota and Lucio Russo. Bernoulli and Gibbs probabilities of subgroups of . Forum Mathematicum, 3(4):401–414, 1991.
[DP86] Philippe Delsarte and Philippe Piret. Do most binary linear codes achieve the Goblick bound on the covering radius? IEEE Transactions on Information Theory, 32(6):826–828, November 1986.
[Gob63] Thomas John Goblick. Coding for a discrete information source with a distortion measure. PhD thesis, Massachusetts Institute of Technology, 1963.
[Gri67] Robert B. Griffiths. Correlations in Ising ferromagnets. I. Journal of Mathematical Physics, 8(3):478–483, March 1967.
[GV09] Ankit Gupta and Sergio Verdú. Nonlinear sparse-graph codes for lossy compression. IEEE Transactions on Information Theory, 55(5):1961–1975, May 2009.
[Hua15] Ying-zong Huang. Model-Code Separation Architectures for Compression Based on Message-Passing. PhD thesis, Massachusetts Institute of Technology, Cambridge, MA, February 2015. https://hdl.handle.net/1721.1/97802.
[KS68] D. G. Kelly and S. Sherman. General Griffiths' inequalities on correlations in Ising ferromagnets. Journal of Mathematical Physics, 9(3):466–484, March 1968.
[Mac07] Nicolas Macris. Griffith–Kelly–Sherman correlation inequalities: A useful tool in the theory of error correcting codes. IEEE Transactions on Information Theory, 53(2):664–683, February 2007.
[Mas78] James L. Massey. Joint source and channel coding. In J. K. Skwirzynski, editor, Communication Systems and Random Process Theory, volume 25 of NATO Advanced Study Institutes Series E, pages 279–293. Sijthoff & Noordhoff, Alphen aan den Rijn, The Netherlands, 1978. https://www.isiweb.ee.ethz.ch/archive/massey_pub/pdf/BI306.pdf.
[Mas09] James L. Massey. Three Coding Problems. Lecture presented at Supélec, Gif-sur-Yvette, France, on January 9, 2009. https://web.archive.org/web/20190920114854id_https://www.l2s.centralesupelec.fr/sites/l2s.centralesupelec.fr/files/seminar/2017/2421/090109.massey_supelec_lecture.pdf.
[MNC04] Satoshi Morita, Hidetoshi Nishimori, and Pierluigi Contucci. Griffiths inequalities for the Gaussian spin glass. Journal of Physics A: Mathematical and General, 37(18):L203–L209, 2004.
[MP17] Arya Mazumdar and Soumyabrata Pal. Semisupervised clustering, AND-queries and locally encodable source coding. In Advances in Neural Information Processing Systems, volume 30, pages 6489–6499. Curran Associates, Inc., 2017.
[MP21] Arya Mazumdar and Soumyabrata Pal. Semisupervised clustering by queries and locally encodable source coding. IEEE Transactions on Information Theory, 67(2):1141–1155, February 2021.
[Sha48] Claude E. Shannon. A mathematical theory of communication. Bell System Technical Journal, 27:379–423, 623–656, 1948.
[Sul67] Daniel D. Sullivan. A fundamental inequality between the probabilities of binary subgroups and cosets. IEEE Transactions on Information Theory, 13(1):91–94, January 1967.