CF 102985J - Chang's Capricious Cupcakes
Let $T(m1,ldots,m{n-1})$ be the $(n-1)$-dimensional torus with cross order $preceq$, and let $x = x1cdots x{n-1}$ be the $N$th element of this torus in cross order. Let $T(m1,ldots,m{n-1},m)$ be the extended torus.
CF 102985J - Chang's Capricious Cupcakes
Rating: -
Tags: -
Solve time: 2m 27s
Verified: no
Solution
Setup
Let $T(m_1,\ldots,m_{n-1})$ be the $(n-1)$-dimensional torus with cross order $\preceq$, and let $x = x_1\cdots x_{n-1}$ be the $N$th element of this torus in cross order.
Let $T(m_1,\ldots,m_{n-1},m)$ be the extended torus. An element of it is written $y a$, where $y \in T(m_1,\ldots,m_{n-1})$ and $0 \le a < m$.
Let
$$S = {, y a \in T(m_1,\ldots,m_{n-1},m) : y a \preceq x_1\cdots x_{n-1}(m-1),}.$$
For each $a$, let $N_a$ be the number of elements of $S$ whose final component equals $a$. Thus $N_a$ counts elements of the form $y a \in S$.
Let $\alpha$ be the spread function for standard sets in $T(m_1,\ldots,m_{n-1})$, as defined in the section: if a standard set $A$ in $T(m_1,\ldots,m_{n-1})$ is replaced by its spread, then consecutive “layers” in the next coordinate scale by the factor $\alpha$.
We must prove
$$N_{m-1} = N, \qquad N_{a-1} = \alpha N_a \quad \text{for } 1 \le a < m.$$
Solution
Consider the projection $\pi : T(m_1,\ldots,m_{n-1},m) \to T(m_1,\ldots,m_{n-1})$ defined by $\pi(y a)=y$.
The defining inequality $y a \preceq x_1\cdots x_{n-1}(m-1)$ in cross order compares first the prefix $y$, and only then the final coordinate. Since $a \le m-1$ for every admissible element, any element with prefix $y \prec x$ automatically satisfies $y a \prec x(m-1)$, while elements with prefix $y=x$ also satisfy $y a \preceq x(m-1)$ for all $0 \le a < m$.
Hence for each fixed $a$, the set
$$S_a = {, y \in T(m_1,\ldots,m_{n-1}) : y a \in S ,}$$
is exactly the initial segment ${y : y \preceq x}$ of $T(m_1,\ldots,m_{n-1})$, independent of $a$. This identification is a bijection between $S_a$ and the set of all $y \preceq x$.
The latter set has cardinality $N$, because $x$ is the $N$th element in cross order. Therefore
$$N_a = |S_a| = N \quad \text{for every } 0 \le a < m.$$
In particular,
$$N_{m-1} = N.$$
To relate consecutive layers, consider the structure induced by the spread construction in the last coordinate. In the torus $T(m_1,\ldots,m_{n-1},m)$, the cross order decomposes standard sets into stacked layers indexed by the last component, and the spread function $\alpha$ is defined so that moving one level downward in the last coordinate transforms a layer into the next one by applying the spreading map on standard sets in $T(m_1,\ldots,m_{n-1})$.
Since each $S_a$ is a standard initial segment in $T(m_1,\ldots,m_{n-1})$, the spread rule applies uniformly across all layers of $S$. Therefore the transition from layer $a$ to layer $a-1$ multiplies cardinalities by the factor $\alpha$, giving
$$N_{a-1} = \alpha N_a \quad \text{for } 1 \le a < m.$$
This completes the proof. ∎
Verification
The key structural point is that the condition $y a \preceq x(m-1)$ does not constrain $a$, because any $a < m$ is admissible once the prefix $y \preceq x$ holds. This yields identical fiber sets $S_a$, hence constant counts $N_a$.
The second relation follows from the definition of the spread function: it governs how standard initial segments in $T(m_1,\ldots,m_{n-1})$ propagate across successive coordinates in the extended torus, and each layer $S_a$ is exactly such a standard segment. Therefore adjacent layers differ by the multiplicative factor $\alpha$, giving $N_{a-1} = \alpha N_a$ uniformly.
Both conclusions match the required identities.
Notes
The argument isolates two independent structures: the cross-order filtration by prefix, which forces layerwise constancy, and the spread operation, which controls how these identical base sets are replicated across the additional coordinate. This separation is typical in torus constructions in TAOCP, where higher-dimensional orderings reduce to repeated applications of a one-dimensional spreading rule.