The Tensor Algebra
Here, we drop one last key bit of algebraic machinery, necessary before we can kick off our description of ring-switching. The goal is to define the tensor algebra, an algebraic object that plays an essential role in the technique.
Throughout our treatment thus far, we have often purposefully played on both sides of a divide: the formal–algebraic divide, let's say. (This motif traces back to the beginning). On the one hand, we have formal manipulations of lists and bits (things like splitting and concatenating). On the other hand, these operations simultaneously correspond to algebraic operations (like basis-combination and decomposition).
Our treatment of the tensor algebra will follow this trend. First, we will describe it in rather surface-level terms: just to keep things down-to-earth. On the other hand, there is always an algebraic story running in parallel with the formal one. That latter story will become essential when it comes time to evaluate.
First Description
As usual, we are going to fix two tower levels . We write ; we recall that is a -dimensional vector space over , and that we have an association between -elements and lists of -elements .
In other words, -elements and lists of -elements are "the same thing".
What if we make this idea two-dimensional? Nothing stops us from defining a square, array, each of whose cells is a -element. Let's write for just such an array.
The motivation thus far is lacking, but for starters, we can make a few points. First, by looking at 's columns—and interpreting each one as a -element—we can "cast" as an array of -elements . Similarly, we can do an identical thing for 's rows, yielding a different decomposition . Thus, the square array has "two different decompositions at once". These will end up relating to each other in interesting ways.
Similarly, we can define the multiplication of by some element in two different ways. For one, we can multiply each column of by ; this will give us the column decomposition . We can also multiply each row of by , yielding .
The Algebraic Side
As it happens, this object is nothing other than an algebraic one: namely, the -algebra . That is, it's the tensor product of with itself over its own subfield . The whole thing takes place in the category of -algebras. The column and row decompositions above fall out as basic properties of the tensor product, as do the multiplication operations. This entire setup is described in [DP24, § 2.5].
Two particular algebraic operations will prove especially important. Given a single -element, we can always view it as an -element, by inscribing it (in -coordinates) into the leftmost column of a array (and putting 0s elsewhere). This gives us the column embedding . Symmetrically, we can equally embed any -element into the top row; this gives a second embedding .
The key point is that these operations are algebraic and mathematically meaning, and not just formal; this fact will become crucial in what follows.