THE BELL SYSTEM TECHNICAL JOURNAL · VOL. XXVII, 1948
By C. E. SHANNON
The fundamental problem of communication is that of reproducing at one point either exactly or approximately a message selected at another point. Frequently the messages have meaning; that is they refer to or are correlated according to some system with certain physical or conceptual entities. These semantic aspects of communication are irrelevant to the engineering problem.
During the Second World War, Claude E. Shannon worked at Bell Telephone Laboratories in Murray Hill, New Jersey, on mathematical cryptanalysis, fire-control computers, and the top-secret SIGSALY digital voice encryption system used for transatlantic conferences between Winston Churchill and Franklin D. Roosevelt.
While analyzing cryptographic ciphers and signals corrupted by noise, Shannon realized that cryptography and communications were mirror images of the same discipline: representing messages as discrete choices and determining the fundamental physical limits of transmission over arbitrary media.
Between 1940 and 1948, working in the Mathematical Research Department alongside colleagues such as John W. Tukey (who coined the term bit) and Richard W. Hamming, Shannon synthesized and generalized the early foundations of Harry Nyquist and Ralph Hartley.
A widely circulated anecdote (originating in a 1971 account by Myron Tribus) claims that John von Neumann advised Shannon to name his measure “entropy” because “nobody knows what entropy really is, so in a debate you will always have the advantage.” However, as preserved in scientific historiography (and documented in MarkCharm's foundational demo_00), Shannon himself explicitly dismissed this legend in his 1982 IEEE History Center interview with Robert Price: “I'm quite sure that it didn't happen between von Neumann and me.” Shannon explained that he was already intimately familiar with the connection through his own readings of Ludwig Boltzmann (1877) and Richard C. Tolman's statistical mechanics (1938), recognizing that \(H = -\sum p_i \log p_i\) possessed the identical mathematical form of the \(H\) in Boltzmann's famous \(H\)-theorem.
Shannon completed his comprehensive treatise in 1948. It was published in two installments in the July and October issues of The Bell System Technical Journal (Vol. XXVII, pp. 379–423 and 623–656), establishing the mathematical and philosophical foundations of the modern Information Age.
The recent development of various methods of modulation such as PCM and PPM which exchange bandwidth for signal-to-noise ratio has intensified the interest in a general theory of communication. A basis for such a theory is contained in the important papers of Nyquist and Hartley on this subject. In the present paper we will extend the theory to include a number of new factors, in particular the effect of noise in the channel, and the savings possible due to the statistical structure of the original message and due to the nature of the final destination of the information.
The significant aspect is that the actual message is one selected from a set of possible messages. The system must be designed to operate for each possible selection, not just the one which will actually be chosen since this is unknown at the time of design.
If the number of messages in the set is finite then this number or any monotonic function of this number can be regarded as a measure of the information produced when one message is chosen from the set, all choices being equally likely. As was pointed out by Hartley the most natural choice is the logarithmic function. Although this definition is most suitable for certain applications, it will be necessary to extend it to the case where the messages have different probabilities of being chosen.
A communication system can be represented schematically as having five essential components:
flowchart LR
Source["INFORMATION<br/>SOURCE"] -->|Message| Trans["TRANSMITTER"]
Trans -->|Signal| Channel["CHANNEL"]
Channel -->|"Received<br/>Signal"| Recv["RECEIVER"]
Recv -->|Message| Dest["DESTINATION"]
Noise["NOISE<br/>SOURCE"] --> Channel
Suppose we have a set of possible events whose probabilities of occurrence are \(p_1, p_2, \ldots, p_n\). These probabilities are known but that is all we know concerning which event will occur. Can we find a measure of how much “choice” is involved in the selection of the event or of how uncertain we are of the outcome?
If there is such a measure, say \(H(p_1, p_2, \ldots, p_n)\), it is reasonable to require of it the following properties:
The only \(H\) satisfying the three assumptions above is of the form:
where \(K\) is a positive constant. This quantity \(H\) will be recognized as that of entropy as defined in certain formulations of statistical mechanics where \(p_i\) is the probability of a system being in cell \(i\) of its phase space. \(H\) is then, for example, the \(H\) in Boltzmann's famous \(H\) theorem.
The choice of a logarithmic base corresponds to the choice of a unit of measure of information. If the base 2 is used the resulting units may be called binary digit (bit), a word suggested by J. W. Tukey. A device with two stable positions, such as a relay or a flip-flop circuit, can store one bit of information.
| Probability Distribution | Entropy H (bits) | Uncertainty |
|---|---|---|
| p1 = 1, p2 = 0 | 0.00 | Complete certainty (no information conveyed) |
| p1 = 0.5, p2 = 0.5 | 1.00 | Maximum uncertainty for binary choice (1 bit) |
| p1 = 0.25, p2 = 0.75 | 0.81 | Partial bias (less than 1 bit) |
| p1 = p2 = p3 = p4 = 0.25 | 2.00 | Equally likely 4-ary choice (2 bits) |
Theorem 1: Let a source have entropy \(H\) (bits per symbol) and a channel have a capacity \(C\) (bits per second). Then it is possible to encode the output of the source in such a way as to transmit at the average rate \(\frac{C}{H} - \epsilon\) symbols per second over the channel where \(\epsilon\) is arbitrarily small. It is not possible to transmit at an average rate greater than \(\frac{C}{H}\).
Proof: The first part of the theorem will already have been proved if we can show that for any continuous information transmission, the average symbol length cannot be compressed beyond the entropy limit.
The channel capacity in the presence of white Gaussian noise is given by the celebrated relation:
where \(W\) is the channel bandwidth in cycles per second, \(P\) is the average transmitter power, and \(N\) is the average noise power in the frequency band \(W\).
This demonstration document is more than a faithful tribute to Claude Shannon's 1948 masterpiece; it stands as a living chronicle of human-AI pair programming that directly stress-tested and evolved the MarkCharm compiler itself.
When the user requested the creation of the shannon1948 StylePack, the typographic foundation (Century Schoolbook / Baskerville, BSTJ warm paper #faf8f4, and historical preamble macros) was established quickly. However, upon initial compilation, the human partner made a critical visual observation:
“Deu problema, a fórmula \entropy não aparece.”
A deep architectural probe revealed three converging root causes:
shannon1948.mc was originally declared with enclosing $ characters (e.g. \\newcommand{entropy}{$H = -\sum...$}), which produced invalid nested LaTeX when called inside display math $$ \entropy $$.compiler.py checked stripped.startswith('$$ ') to detect multi-line math blocks. Because the single-line formula $$ \entropy $$ began with $$ , the compiler mistook it for an unclosed multi-line block, skipped its expansion, and froze macro expansion across dozens of subsequent lines.phase6_expansion.py), MATH nodes were excluded from expansion to prevent false diagnostics on standard LaTeX commands (\sum, \log).By separating concerns — keeping macro bodies as pure LaTeX, refining single-line versus multi-line math detection, and introducing math-aware expansion (inside_math=True, silent=True) — the compiler successfully rendered both the entropy equation and the channel capacity theorem through MathJax without generating false warnings.
Moments later, reviewing the compiled output, the human partner posed another incisive question:
“Por que o linter não pegou isto: 'II.3. 3. Choice, Uncertainty and Entropy'?”
In the document, the heading had been written as ## 3. Choice..., and MarkCharm's automatic numbering engine prefixed II.3., producing the duplicated II.3. 3. Choice....
Investigation uncovered that a dedicated diagnostic rule — MCW-AI-004 (Hardcoded manual numbering in auto-numbered structural element) — already existed in src/markcharm/engine/ai_linter.py, but was confined to the optional --ai-lint CLI flag.
To prevent this defect for all authors, we immediately:
HardcodedNumberingRule directly into the core DocumentLinter (Phase 8), making detection of hardcoded numbers in headings active by default on standard compilation.shannon1948.yaml to use composition.mode: LOCAL_ONLY, honoring the original 1948 Bell System Technical Journal typography where sections were numbered cleanly as 1., 2., 3. without prepending the Roman Part numerals.Throughout this entire debugging and refinement cycle, MarkCharm's prime architectural invariant was strictly preserved:
\bstjheader, \bstjbyline, \prooflabel, \bit, \entropy, \channelcapacity) and visual tokens remain strictly encapsulated inside src/markcharm/engine/plugins/shannon1948/.compiler.py, macros.py, linter.py) contains zero hardcoded assumptions about Shannon, BSTJ, ABNT, or IEEE standards. The improvements made were 100% generic, benefiting any document and any style in the MarkCharm ecosystem.Built for humans. Loved by AI. Working for all.