arXiv:2609.11588math.RASep 2026

Manuscript Offprint

arXiv:2609.11588

Quasilinear multiplication in the real Cayley--Dickson tower

Harrison Lemley

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

HARRISON LEMLEY

ABSTRACT. Direct evaluation of the defining product in the real Cayley–Dickson algebra AnA_n, of dimension N=2nN = 2^n, has quadratic arithmetic complexity. This paper gives a uniform algorithm for multiplication using O(Nlog⁡N)O(N \log N) real arithmetic operations and O(N)O(N) auxiliary storage. The algorithm reduces multiplication to the alternating product on the imaginary subspace, then evaluates that product by a two-call recursion over one fixed quadratic coefficient extension. For n≥1n \geq 1, the resulting bilinear algorithm uses at most (9n−15)2n−1+10(9n - 15)2^{n-1} + 10 input-dependent real multiplications, and for n≥3n \geq 3, the specified arithmetic schedule uses (34n−83)2n−1+50(34n - 83)2^{n-1} + 50 real operations in total. Under this counting convention, the quasilinear schedule uses fewer operations than direct multiplication for N≥16N \geq 16 and than the uniform Cariow–Cariowa method for N≥32N \geq 32. The algorithm is implemented in the MIT-licensed C11 library fastCD, with a NumPy-backed Python interface, and its results are checked against an independent implementation of the defining recursion. In single-core benchmarks against direct multiplication and the uniform Cariow–Cariowa method, the quasilinear implementation had the lowest mean time of the three at every tested dimension N≥32N \geq 32, for both single and batched products, and was roughly 16 times faster than direct multiplication at N=1024N = 1024.

1. INTRODUCTION

Starting with A0:=RA_0 := \mathbb{R}, the Cayley–Dickson construction produces the familiar algebras A1≅CA_1 \cong \mathbb{C}, A2≅HA_2 \cong \mathbb{H}, A3≅OA_3 \cong \mathbb{O}, and their higher-dimensional successors. Each step doubles the underlying vector space such that AnA_n has dimension N=2nN = 2^n. The defining product contains four products in An−1A_{n-1}, and thus direct recursive evaluation has quadratic arithmetic complexity in NN, requiring N2N^2 real multiplications. Standard accounts of the construction and its low-dimensional members may be found in [Sch54; Bae02].

The quadratic cost of this multiplication has become a matter of practical relevance in recent years. Cao, Yan, and Tan's Numerion constructs neural-network layers over Cayley–Dickson spaces and identifies the time and

Date: September 2026.

2020 Mathematics Subject Classification. Primary 17-08; Secondary 68W30, 68W40, 15A69.

Key words and phrases. Cayley–Dickson algebras, fast multiplication, quasilinear algorithms, bilinear complexity, arithmetic complexity, hypercomplex arithmetic.

HARRISON LEMLEY

memory required for higher-dimensional multiplication as a source of computational overhead in their implementation [CYT26]. Sedenion-valued models have also appeared in forecasting and traffic prediction, while sedenion moments have been used in multiview image processing [SA20; BLA20; Zha+23], suggesting growing relevance of the Cayley–Dickson tower in applications.

A long history of work towards improving the efficiency of multiplication can be found in the literature. The signed-XOR description of basis multiplication [Bal09; RZ23] supports table-free methods [PK26], while earlier hypercomplex multiplication schemes use Walsh–Hadamard factorizations [RLC00]. Fixed-dimensional algorithms are available for the octonions [CC12; CC13b], sedenions [CC13a], and the 32-dimensional Cayley–Dickson algebra [CC14], with further octonion tensor-rank bounds given in [Jai26]. The uniform Cariow–Cariowa method uses N(N−1)/2+2N(N-1)/2+2 real multiplications together with a quadratic number of additions [CC15], thus retaining quadratic arithmetic complexity. Work aiming to accelerate high-dimensional Cayley–Dickson multiplication through GPU parallelism has also been reported, but such parallel acceleration does not by itself improve the arithmetic complexity of the underlying multiplication algorithm [Yot26; Per26]. To the author's knowledge, a uniform subquadratic algorithm for multiplying elements of the standard real Cayley–Dickson tower has never appeared in the literature; the question of a uniform subquadratic algorithm was posed explicitly on MathOverflow by Kulkov in 2023 [Kul23].

Vector-matrix descriptions of octonionic and related algebras originate with Zorn, with subsequent developments by Paige and others [Zor31; Pai57; Suh69; DD99; Gaz26]. The most direct structural precedent here is the Brown–Hopkins noncommutative matrix Jordan construction [BH92], which they iterate using the trace-zero subspace with its commutator product and trace pairing. They give explicit algebra isomorphisms relating this iteration to the Cayley–Dickson process [BH95, Lemma 3.17, Lemma 4.4, and Theorem 4.6]. After scalar extension to C, Lemma 3.17 identifies the standard Cayley–Dickson doubling parameter -1 with their normalized parameter 1. Thus, up to the corresponding coordinate changes and normalizations of the commutator and bilinear form, the recursive algebraic structure used in this paper is classical and is not claimed as a contribution of the present work.

The contribution here is a uniform quasilinear algorithm obtained by reorganizing this structure. As in Karatsuba–Ofman multiplication [KO62], the improvement comes from reducing the number of recursive calls, in this case by passing to the alternating product on imaginary elements. After adjoining one fixed central coefficient ι2=−1\iota^{2} = -1, each complex recursive step uses two half-size evaluations and linear-time recombination, while coefficientwise conjugate symmetry reduces the initial call on real inputs to one complex evaluation. The same coefficient field is used throughout, and full multiplication is recovered by scalar arithmetic and inner products. The author is not aware of a previously published uniform quasilinear upper bound for multiplication throughout the standard real Cayley–Dickson tower.

Theorem 1.1. Let n≥1n \geq 1, let AnA_n be the 2n2^n-dimensional real Cayley–Dickson algebra, and put N=2nN = 2^n. Multiplication in AnA_n admits a real bilinear algorithm of length at most

(9n−15)2n−1+10.(9n-15)2^{n-1}+10.

It can be performed using

O(n2n)=O(Nlog⁡N)O(n2^{n})=O(N\log N)

real arithmetic operations, and the construction admits a matrix-free sequential implementation using O(N)O(N) auxiliary storage.

Theorem 1.1 is proved in Section 4: the bilinear bound is Theorem 4.2, the arithmetic bound is Theorem 4.1, and the storage bound is Proposition 4.3. The argument uses no associativity, alternativity, or norm multiplicativity, and applies throughout the tower, although specialized low-dimensional base cases may improve the constants. The accompanying fastCD library provides C and NumPy-backed Python interfaces [Har+20] and comparisons with direct and uniform Cariow–Cariowa multiplication. In the reported benchmarks, quasilinear multiplication had the lowest mean time among the three methods at every tested dimension N≥32N \geq 32 for both single and batched products, while direct and Cariow–Cariowa multiplication were faster at some lower dimensions.

Sections 2 and 3 derive the recursion directly from the Cayley–Dickson product, Section 4 proves the arithmetic, bilinear, and storage bounds and gives explicit multiplication, addition, and total-operation counts, and Section 5 describes the implementation and benchmarks. Finally, Section 6 suggests some questions for future work and Section 7 gives statements and disclosures.