15.12.3 Tensor Symmetric Basis Ordering Rule
The Tensor Symmetric Basis Ordering Rule systematically orders symmetric tensor basis elements for consistent algebraic computations.
Tensor Symmetric Basis Ordering Rule is the specific convention chosen to arrange the multi-index labels of a graded piece Sym^n(V) into a definite linear sequence, providing the total order needed to assign each basis element a unique position within an indexed list or array, a requirement not automatically supplied by the basis construction or the labeling scheme alone. While the multi-index label identifies which basis element is being referred to, it does not by itself specify any particular sequence in which the labels should be listed; the ordering rule supplies that missing sequence, and different valid ordering rules produce different, though equally correct, arrangements of the same underlying basis.
Selecting and fixing an ordering rule matters wherever symmetric tensor data is stored in a flat array, transmitted between systems, or compared component by component, since consistent behavior across these operations depends on every party using the same rule to translate between a multi-index label and its position in the sequence.
Lexicographic Ordering
Definition of the Rule
The lexicographic ordering rule compares two multi-indices alpha and beta of the same degree n by examining their entries from first to last, declaring alpha less than beta at the first position where the entries differ, with the multi-index having the smaller entry at that position ranked first:
producing a total order directly analogous to alphabetical ordering of words.
Consistency With Basis Construction
Lexicographic order matches the natural order in which the symmetric power basis construction is often described, first varying the exponent of e_1 across its full range before moving to combinations involving e_2, and so on, making it a convenient default choice tied closely to the underlying construction procedure.
Graded Lexicographic and Reverse Lexicographic Variants
Graded Lexicographic Ordering
When comparing multi-indices across different total degrees is required, the graded lexicographic ordering first compares the total degree |alpha|, ranking lower-degree multi-indices before higher-degree ones, and only falls back to ordinary lexicographic comparison among multi-indices sharing the same degree; this variant is the natural choice whenever basis elements from multiple graded pieces of Sym(V) must be listed together in a single sequence.
Reverse Lexicographic Ordering
A reverse lexicographic ordering instead compares entries from last to first, or reverses the comparison direction, producing a different but equally valid total order; this variant is common in computational algebra contexts where it interacts more favorably with certain algorithms for polynomial manipulation, though within the pure context of enumerating a symmetric tensor basis, its main role is simply to illustrate that lexicographic ordering is not the unique reasonable choice.
Consequences of Fixing an Ordering Rule
Assigning Integer Positions
Once an ordering rule is fixed, every multi-index label of a given degree receives a unique integer position, typically starting from zero or one, within the sorted sequence of all degree-n multi-indices; this position is exactly what is needed to index a flat array used for storing the independent components in the storage role discussed for symmetric tensors.
Computing Position Without Full Enumeration
For lexicographic order specifically, the position of a given multi-index alpha within the full sorted list can be computed directly using nested combinatorial sums over the possible values of alpha_1, alpha_2, and so on, without needing to explicitly enumerate every preceding multi-index in the list, an efficiency important when d or n is large enough that full enumeration would be costly.
Ordering Rule Consistency Requirements
Determinism
Any valid ordering rule must be deterministic, always placing a given pair of distinct multi-indices in the same relative order regardless of context, a property automatically satisfied by lexicographic, graded lexicographic, and reverse lexicographic orderings, since each is defined by a fixed, unambiguous comparison procedure.
Totality
The rule must also define a total order, meaning every pair of distinct multi-indices of the same degree is comparable, with exactly one of them ranked before the other; lexicographic-style orderings satisfy totality automatically because they reduce ultimately to comparing individual integer entries, which are always comparable.
Practical Importance for Interoperability
Shared Convention Between Producer and Consumer
Just as the canonical rule used for independent component selection must be agreed upon between any two parties exchanging symmetric tensor data, the ordering rule used to sequence multi-index labels must likewise be agreed upon whenever data is exchanged as a flat, positionally indexed array rather than as an explicitly labeled collection, since a mismatched ordering rule would cause values to be associated with the wrong basis elements upon receipt.
Default Choice in Practice
Lexicographic ordering, due to its direct correspondence with the most natural construction of the symmetric power basis and its straightforward computability, serves as the most commonly adopted default ordering rule whenever no other convention is specified, providing a reliable baseline compatible with the multi-index labeling scheme described for the symmetric basis structure.