duaLab Contribute

Calculus in characteristic 2

Project: Games as recursive coalgebras

Contents

Why does the nim-sum, the binary addition without carry, appear from the mex, which is defined by the order of the natural numbers? In a Rota-Baxter rig, the answer does not use the mex: if the values of the integral square to $1$, then the values of the Nim heaps multiply by the nim-sum. Calculus over the field with two elements is a Rota-Baxter rig of this kind, and there the statement is Lucas' theorem on binomial coefficients modulo $2$.

1. Idea

In Nim, a move reduces the size of one heap. Compare adding a stone to a heap of size one with placing a second heap of size one beside it. The first operation gives a heap of size two. In the second position each player must take one stone, so the second player wins, just as with an empty heap. The question is why combining heaps of any two sizes adds their sizes in binary without carry.

To see where integration enters, count the sequences of moves from a heap, including sequences that stop before the game ends. For a heap of size $n$, write $c_{n,k}$ for the number of sequences of length $k$, and form the polynomial

$$e_n(x)=\sum_{k=0}^n c_{n,k}\frac{x^k}{k!}.$$

There is one empty sequence. Every nonempty sequence begins with a move to a smaller heap. Prepending that move increases the length by one, just as integration from $0$ to $x$ sends $x^k/k!$ to $x^{k+1}/(k+1)!$. Thus in the Rota-Baxter rig of smooth functions $C^\infty(\mathbb R)$ we have $e_0(x)=1$ and

$$e_n(x)=1+\int_0^x\big(e_0(t)+\cdots+e_{n-1}(t)\big)\,dt\qquad(n\geq 1).$$

Now consider the two heaps of size one again. There are two possible first moves and two possible sequences of length two, according to which heap is played first. Counting modulo $2$ leaves just the empty sequence, exactly as for a heap of size zero. This illustrates the general result: for two heaps, the parity of the number of sequences of each length agrees with that for a single heap whose size is the binary sum without carry.

2. Calculus over the field with two elements

For the Laguerre values, the condition of the nim-sum criterion for heaps holds in calculus in characteristic $2$, once the powers $x^n$ are replaced by the divided powers $x^n/n!$.

Definition 2.1 (Divided power calculus)

Let $\mathbb F_2\langle x\rangle$ be the divided power algebra over the field $\mathbb F_2$ with two elements. It has a basis consisting of elements $x^{[n]}$ for $n\geq0$. The element $x^{[0]}$ is the unit, and

$$x^{[m]}x^{[n]}=\binom{m+n}{m}x^{[m+n]}.$$

The element $x^{[n]}$ stands for $x^n/n!$. Let $J$ be the linear map with $Jx^{[n]}=x^{[n+1]}$, which stands for $\int_0^x$, and put $\int f=1+Jf$.

Fact 2.2 (Lucas' theorem [Luc78])

Let $p$ be a prime, and write $m=\sum_im_ip^i$ and $n=\sum_in_ip^i$ in base $p$. With the convention that $\binom ab=0$ for $b>a$,

$$\binom mn\equiv\prod_i\binom{m_i}{n_i}\pmod p.$$

For $p=2$, the number $\binom mn$ is odd if and only if every binary digit $1$ of $n$ is a binary digit $1$ of $m$.

See [Luc78] and Lucas's theorem.

Proposition 2.3 (Integrals are involutions)☆

The algebra $\mathbb F_2\langle x\rangle$ with $\int$ is a Rota-Baxter rig, and $(\int f)^2=1$ for every $f$.

Proof

By Pascal's rule, $J(f)J(g)=J(fJ(g)+J(f)g)$ on the basis, hence for all $f,g$. It follows that

$$(1+Jf)(1+Jg)=1+J\big(f(1+Jg)+(1+Jf)g\big),$$

which is the binary equation. In characteristic $2$ we have $(1+Jf)^2=1+(Jf)^2$, and the square of $\sum_na_nx^{[n]}$ is $\sum_na_n\binom{2n}nx^{[2n]}$. This vanishes for $Jf$, because $\binom{2n}n$ is even for $n\geq1$.

Proposition 2.4 (Laguerre values as binary products)☆

For $n\geq0$, let $D(n)$ be the set of positions of the binary digits $1$ of $n$. In $\mathbb F_2\langle x\rangle$,

$$e_n=\sum_{k}\binom nk x^{[k]}=\prod_{i\in D(n)}\big(1+x^{[2^i]}\big).$$

Hence $e_me_n=e_{m\oplus n}$, and $n\mapsto e_n$ is an isomorphism from the group algebra of $(\mathbb N,\oplus)$ over $\mathbb F_2$ to $\mathbb F_2\langle x\rangle$.

Proof

The first equality holds as in the smooth function example. By Lucas' theorem, $x^{[k]}=\prod_{i\in D(k)}x^{[2^i]}$, and $\binom nk$ is odd exactly when $D(k)\subseteq D(n)$; expanding the product gives the second equality. Since $(1+x^{[2^i]})^2=1$, the Laguerre values multiply by the nim-sum. They form a basis, because $e_n$ is $x^{[n]}$ plus a combination of the $x^{[k]}$ with $k<n$.

Example 2.5 (The first Laguerre values)

The first Laguerre values are as follows; for instance $e_1e_1=1+2x+2x^{[2]}=1=e_0$, and $e_1e_2=e_3$.

$$\begin{array}{c|c|c} n & \text{binary digits} & e_n\\ \hline 0 & 0 & 1\\ 1 & 1 & 1+x\\ 2 & 10 & 1+x^{[2]}\\ 3 & 11 & (1+x)(1+x^{[2]})=1+x+x^{[2]}+x^{[3]} \end{array}$$

Remark 2.6 (Counting plays modulo 2)

A play of length $k$ of a pointed game $(X,x)$ is a sequence of moves $x\to x_1\to\dots\to x_k$; it need not end at a terminal position. Let $c_k$ be the number of plays of length $k$, modulo $2$. The value of the game in $\mathbb F_2\langle x\rangle$ is $\sum_kc_kx^{[k]}$. Game evaluation sends the Conway addition of a game with itself to $1$, because exchanging the two components is an involution without fixed points on the plays of positive length.

3. Order and algebra

The divided power algebra carries the order and the algebra of the heaps at the same time.

Remark 3.1 (Two additions)

The linear bijection $\mathbb F_2[T]\to\mathbb F_2\langle x\rangle$ sending $T^n$ to $x^{[n]}=J^n1$ sends $(1+T)^n$ to $e_n$, and multiplication by $T$ to $J$. The product of polynomials adds the exponents of $1+T$, and the product of $\mathbb F_2\langle x\rangle$ combines them by the nim-sum:

$$(1+T)^m(1+T)^n=(1+T)^{m+n},\qquad e_me_n=e_{m\oplus n}.$$

4. Frobenius kernels

In characteristic $p$, the divided power algebra is a standard object of the theory of algebraic groups. The algebra of distributions of an algebraic group consists of the linear forms on functions that are supported at the unit, with the product induced by the group law. The $r$-th Frobenius kernel of a group is the kernel of the $r$-th power of its Frobenius morphism. The doubling of the remark on invariant sums is the passage from one Frobenius kernel to the next.

Fact 4.1 (Distributions on the additive group [Jan03])

Over a field $k$ of characteristic $p$, the algebra of distributions of the additive group is the divided power algebra $k\langle x\rangle$. The algebra of distributions of the $r$-th Frobenius kernel of the additive group is its subalgebra spanned by the $x^{[n]}$ with $n<p^r$.

See [Jan03], Part I, Chapters 7 and 9.

Remark 4.2 (Laguerre values and Frobenius kernels)

For $p=2$, the Laguerre values $e_n$ with $n<2^r$ form a basis of the algebra of distributions of the $r$-th Frobenius kernel, by the proposition. So, as algebras, the group algebras of the heaps below $1,2,4,8,\dots$ are the algebras of distributions of the Frobenius kernels, and each doubling adjoins $x^{[2^r]}$.

6. References

Last edited