Binary fraction 2026-10-25
A base-two positional fraction with a binary point separating nonnegative and negative powers of two. For example, . A finite expansion is a dyadic rational: with fractional places, its value is an integer divided by . Conversely, any nonnegative reduced fraction whose denominator is a power of two has a finite binary expansion. Leading integer zeroes and trailing fractional zeroes do not change its value.
Let
This ring consists of finite sums of rational multiples of nonnegative dyadic rational powers of , interpreted as functions on . Every pair of elements lies in one polynomial ring , so is an integral domain. The constant term defines a surjective ring homomorphism . Its kernel of a ring homomorphism is nonzero and is a maximal ideal, by the maximal ideal quotient criterion.
Every has the form for some and some polynomial . The identity
expresses it as a product of two elements of . Therefore , and for all . This shows that strict descent of powers of an ideal can fail in an integral domain, even for a nonzero maximal ideal. By the determinant trick, such an ideal cannot be finitely generated, so this ring is not a Noetherian ring.
Dyadic increment chaining 2026-10-05
For a function on the dyadic rationals in , let be its largest absolute adjacent increment on the level- grid. If for , the function extends uniquely to a Hölder continuous function with
Choose with . The level- left approximations differ by at most two grid steps, and each finer approximation adds at most one level increment. Thus the difference is bounded by . For a stochastic process with , the bound makes this series converge in the Lp norm for .
Hackenbush stalk 2026-10-20
A Hackenbush position whose graph is a single path attached to the ground at one endpoint. Finite red-blue stalks have dyadic rational game values; the initial monochromatic run determines the integer part and subsequent colors determine successive binary fractions.
Checking only midpoints is not enough for an arbitrary subset of a real vector space. The rational numbers contain the midpoint of every pair of rational numbers, but the line segment from to also contains irrational numbers. For instance lies on that line segment and is not rational. This shows why the definition quantifies over every real .
There is a useful additional hypothesis: a closed subset containing the midpoint of every pair of its points is a convex set. Repeated bisection includes all points with dyadic rational . These coefficients approach every real ; being a closed subset then includes each limit. This is a short proof outline, and the rational numbers example identifies precisely why a closed subset was required.
Suppose a binary prefix code has integer codeword lengths . Under a source with probability mass function , its average codeword length is exactly cross-entropy, . The Kraft inequality is satisfied because . This exact interpretation requires suitable dyadic rational probabilities; a general is not an integer codeword length. For positive , a prefix code with lengths exists by the Kraft inequality and has average length between and . The ceiling function causes the one-symbol rounding overhead. The cross-entropy term describes mismatch overhead; those are distinct costs.
Number game 2026-10-20
A number game is a recursively defined normal-play partizan game whose options are number games and every left option is smaller than every right option. Its value is the simplest surreal number between those options. Finite number games have dyadic rational values.
Let and let be the probability cell of symbol . Its midpoint is . Use the binary expansion terminating in zeros at a dyadic rational, so truncation to bits gives
The chosen codeword corresponds to the dyadic interval . It contains , and its width satisfies . Consequently
Thus . The probability cells are disjoint, so the code intervals are disjoint. If one binary codeword were a prefix of another, its dyadic interval would contain the other's interval, contradicting this disjointness. Hence the code is instantaneous.
Finally, . Multiplying by and summing yields
This is the Shannon-Fano-Elias code: the extra bit makes the dyadic interval narrow enough to remain inside the cell around its midpoint.
Figure 1. . An original example with probabilities two fifths, three tenths, one fifth, and one tenth. Each orange dyadic code interval contains its black midpoint and lies inside its blue probability cell, proving that the displayed codewords cannot be prefixes of one another. Details.
No. A domain with a nonzero idempotent maximal ideal is a counterexample. Consider
This can be realized concretely as a ring of functions on : its elements are finite sums of rational multiples of nonnegative dyadic rational powers of . Each stage is a polynomial ring, because a nonzero polynomial cannot vanish for all . Any two elements lie in one stage, which is an integral domain, so their product is nonzero if both are nonzero. Thus is an integral domain.
The constant term defines a surjective ring homomorphism . It is well defined because replacing by preserves the constant term. Its kernel of a ring homomorphism
is a maximal ideal, since is a field, by the maximal ideal quotient criterion. Also is nonzero.
If , choose a stage in which for a polynomial . Then
Both factors belong to , so . The reverse inclusion holds for every ideal, proving that is an idempotent ideal. Hence
The Noetherian ring hypothesis in c is therefore essential even for a maximal ideal.
The dyadic slope martingale is uniformly bounded by . The martingale convergence theorem gives an almost-sure limit , and dominated convergence gives L1 convergence. Define on the null exceptional set and at the endpoint. This gives a measurable representative with everywhere.
If are dyadic rationals, then for every sufficiently fine grid the integral telescopes:
Pass to the limit by L1 convergence. For arbitrary endpoints choose dyadic , with . The error in the integrals is at most , and Lipschitz continuity controls the error in the endpoint values by the same expression. Therefore
This constructs the bounded integral density directly, without assuming in advance that a Lipschitz function has an almost everywhere derivative.
For each sample point put . First take in the dyadic rationals, set , and choose with . The left grid approximations and are at most two grid steps apart, so .
For either endpoint , successive left approximations are equal or one step apart on the level- grid. Since is dyadic these approximations eventually equal exactly. The triangle inequality therefore gives
The second inequality is valid also for . Thus the required bound holds simultaneously for every dyadic pair whenever is finite; if it is infinite the inequality holds in the extended sense. For the left side is zero. This is dyadic increment chaining, with the stated constant two.
Fix an exponent in the range from (a), and work on the single probability-one event where and all dyadic values are finite. We give the dyadic increment chaining argument. For dyadic , put and choose with . Let and . The level- approximations are at most two grid steps apart, so their difference is bounded by . At each subsequent level an approximation either stays fixed or moves by one adjacent level increment. Because are dyadic, these approximations eventually equal . Thus
The dyadic rationals are dense in , so this uniform bound gives a unique continuous extension to the entire interval, with
All these equalities hold on that one event, not merely one event per dyadic time. Define to be the zero path on its null complement. Each is measurable as the limit of the random variables at deterministic left dyadic approximations. Alternatively, their measurable linear interpolations converge uniformly to , which also shows measurability as a random element of . This is the continuous extension version of a continuous modification.
This is an infinite binary expansion with digits in . If the usual expansion of has infinitely many digits, list their positions as . If it terminates with a final term , replace that term by
this also covers every dyadic rational. For , use . Thus every has the required form.
The representation by an infinite strictly increasing sequence is unique. If two sequences first differ at exponent , one sum contains and the other does not. The latter's entire possible tail is at most , while the former has plus its own nonempty tail, so the sums cannot agree.
The construction is the partial middle-third construction of the Cantor function. After rounds of assigning middle thirds, every remaining open interval has endpoint values
for some , and every such consecutive pair occurs. This follows by mathematical induction. Initially the endpoint values are . An interval with those consecutive endpoint values receives the value
on its closed middle third. Its two remaining open intervals therefore have consecutive endpoint values at denominator . All previously assigned endpoint values persist. Hence all even numerators at the next denominator were already present, and all odd numerators have just been assigned. Including the initial values zero and one proves
These are precisely the dyadic rational values between zero and one.
Shannon-Fano-Elias code 2026-10-31
For positive source probabilities in a fixed order, let and . The Shannon-Fano-Elias code uses the first binary digits of the midpoint , using the terminating-zero expansion at dyadic rationals. Its dyadic interval contains and has width at most , so it lies inside the probability cell . These cells are disjoint, whereas a codeword that is a prefix of another has a dyadic interval containing the other interval. The code is therefore a prefix code. Since , averaging proves . This is a direct cumulative construction and does not require sorting the probabilities or constructing a Huffman tree.