WorksComputer Science
The logarithmic exponent of integer multiplication on tapes
Abstract
A single deterministic multitape Turing machine multiplies two n-bit integers exactly in n(1 + log n)1/2+o(1) time and visits O(n) tape cells. Under the variable-count Weak Exponential Time Hypothesis for 3-SAT, every deterministic multitape multiplier requires Ω(n√log n) steps in the worst case at each sufficiently large length. Under this hypothesis the optimal logarithmic exponent is therefore 1/2. Exact integer division and integer square root have the same upper and conditional lower bounds.
Introduction
The product of two -bit integers fits in bits. Reading the operands and writing a string of that length takes only linear time. How much more work does it take to determine the bits of the product? On a tape the question concerns movement as well as arithmetic. A Fourier multiplication algorithm repeatedly combines digits stored far apart, and each tape head moves only one cell at a time.
We construct one machine whose worst-case time per input bit grows at most as . The program, the alphabet and the number of tapes are fixed once for all lengths. Under a hypothesis about the time needed to solve satisfiability, the square-root exponent is optimal.
Theorem 1.1 (One multiplier for all lengths). There is a deterministic multitape Turing machine that computes the full product of two -bit integers in worst-case time at most , visiting tape cells.
The assumption for the converse is variable-count Weak ETH. It says that for no fixed can a deterministic algorithm decide 3-SAT on variables in time times a polynomial in the input length [41, 52]. For example, a running time of is compatible with this hypothesis.
Theorem 1.2 (Multiplication lower bound). Assume variable-count Weak ETH. For every deterministic multitape machine that multiplies exactly there are constants and such that, for each , some pair of -bit operands requires at least steps.
Both theorems use a fixed finite number of one-dimensional tapes, a fixed finite alphabet, and one head per tape. Each step reads or writes at the heads and moves each head by at most one cell. The operands are nonnegative integers given in binary, high bits first, with a delimiter between them. The inputs and outputs occupy prescribed contiguous tape intervals, one bit per cell. Leading zeros are allowed, and multiplication returns the full -bit product. Space counts the cells ever visited, including temporary work tapes. All logarithms are to base two.
The upper bound in Theorem 1.1 means that the same machine takes time for every fixed . Whether time is attainable remains open. Theorem 1.2 is a statement at every sufficiently large length, with constants that may depend on the machine.
Division, square root and transposition
Exact division with remainder and the floor of the square root each have a single linear-space algorithm with the time bound of Theorem 1.1. Newton iteration reduces both tasks to products at a sequence of increasing precisions. There are also linear-time reductions in the reverse direction on exact binary inputs. One division, or three integer square roots, suffices to recover a product after padding the operands. The padding can hit every large target length. Thus under Weak ETH even computing the quotient alone or the floor square root requires worst-case time at every sufficiently large (Corollaries 6.1 and 6.2).
Matrix transposition connects the two halves of the proof. Store a square array on a tape one row after another. A scan sees the entries in each row consecutively, while consecutive entries of a column are a whole row apart. Transposing the array writes out those columns consecutively. The multiplier uses fast changes of order of this kind to bring together the digits of its short Fourier transforms. Conversely, Harvey and van der Hoeven showed how to transpose a binary matrix using integer multiplication [29].
For a matrix of side , let denote its bit count. The reduction and Theorem 1.1 give a transposition algorithm with time at most . Our conditional lower bound for this task holds even on a subset of the inputs. For each fixed , a machine that returns the correct transpose by a common deadline on at least a fraction of the matrices needs a deadline of , at every sufficiently large side length (Theorem 8.4).
Earlier bounds
Karatsuba and Ofman reduced a product to three products of half the length. Toom and Cook split the inputs into more pieces and used evaluation and interpolation to recover their product [17, 35, 57]. The nearly linear algorithms treat multiplication as convolution. Schönhage and Strassen obtained tape time using Fourier transforms over residue rings [51]. Fürer reduced the factor above to [24]. Modular arithmetic and short lattice vectors gave further constructions [21, 27, 30]. Harvey and van der Hoeven reached on a multitape machine using Gaussian resampling to obtain multidimensional Fourier transforms of power-of-two side lengths [28].
An earlier fixed-tape algorithm combines resampling with a finite network that shares butterfly operations and address rearrangements. It gives worst-case time [45], Theorem 1. Subsequent optimizations of the finite schedules give larger numerical savings under explicit assumptions on the cost of their component operations [15]. Our implementation uses the original stream algorithms and address changes. For the main convolution we use short cyclic factors and apply the Fourier operations to many occupied rows at once. The companion Fourier paper determines the exponent 1/2 for exact binary linear circuits, even when one circuit mixes the inputs of independent transforms [47 Theorem 1.1]. It also describes earlier savings in operation counts [3, 36, 43, 44, 56]. To obtain a tape algorithm we must move the rows into position, compute the coefficients to sufficient precision, and recover every product digit exactly.
For online multiplication, which must emit digits as the input arrives, Paterson, Fischer and Meyer obtained an bound even on mean time, building on the overlap argument of Cook and Aanderaa [18, 50]. For moving data, Stoß proved an lower bound for transposing an bit matrix in a model that transports its entries intact [53]. An ordinary tape machine may read both operands before writing the product and may encode several input bits together before moving them.
Network coding gives a different route to lower bounds. Adler, Harvey, Jain, Kleinberg and Lehman connected the undirected multiple-unicast conjecture to matrix transposition [1]. Assuming that conjecture, Afshani, Freksen, Kamma and Larsen proved an multiplication lower bound for Boolean circuits with bounded fan-in and fan-out [2]. Two independent constructions exhibit undirected networks where coding exceeds the capacity of fractional routing [11, 58]. Our lower bound allows arbitrary local coding and charges for communicating the resulting bits. It assumes variable-count Weak ETH, which is equivalent to the Stearns–Hunt hypothesis for CNF satisfiability [41 Theorem 2.4]. Subexponential algorithms for 3-SAT [16, 46] refute the original Exponential Time Hypothesis [33] and are compatible with this weaker assumption.
How the algorithm saves tape scans
To multiply the integers, regard their blocks of binary digits as coefficients of polynomials. Choose the convolution length large enough that cyclic convolution gives the ordinary coefficient product. Once the coefficients are known, a scan propagates the carries. The work in between is to compute Fourier transforms and place the digits needed together at each stage. A bound on the number of linear gates in a Fourier circuit does not charge for moving their inputs across a tape or for representing a complex scalar to the required precision. The algorithm in Part I accounts for both costs.
Sharing the movement. On a power-of-two square array, transposing amounts to exchanging the row and column fields of the binary address. Divide each field into chunks. Swapping the corresponding chunks in turn gives the desired permutation, but applying each swap separately entails a new pass over the array. We instead apply combinations of these swaps to many independent streams. Each swap has eigenvalues and . In a basis that diagonalizes all the swaps, their product takes its sign from the parity of the number of minus signs.
The Fourier companion paper gives a way to compute this parity in bulk [47 Section 4]. Different sign shifts on the streams give a binomial distribution of counts at each frequency. On the central interval the parity sign is exactly a polynomial of degree in the shifted queries. The exceptional streams depend on the frequency. A small set of linear combinations carries enough information into the common basis to recover the errors there, and further applications of the polynomial correct the full batch. This gives about stages, each linear in all swaps.
The tape algorithm must perform such a stage without paying for separate rearrangements. It groups transfers between streams into rectangles of source and destination labels. A change of address layout at a rectangle endpoint can be used for every query there. In the new layout the shifts needed for each query are controlled by fields that a tape scan reads earlier. These shifts cost linear time. The number of smaller interchanges per stream in a stage grows more slowly than any prescribed positive power of for a suitable choice of the finite construction. This is the saving required for the recursion in Theorem 2.1. § 2.6 uses interchange to implement bitwise addition modulo two on selected address positions and to put records back in order after each transform.
Sharing the arithmetic. The construction uses many short, pairwise coprime cyclic factors. Their product is large enough to hold the digit convolution, and their padded ranges still fit in an array of linear bit volume. The Chinese remainder theorem converts the cyclic convolution to a convolution on this product. Padding each factor afresh for its Fourier transform could multiply the space requirements across all the factors. Instead, a short transform borrows occupied coordinates and restores their contents. This lets the short transforms use the same sequence of diagonal phases, address permutations and normalized Walsh transforms (Lemma 5.2).
The one-bit Walsh transform combines two values by taking their normalized sum and difference. On selected address bits it factors into transforms on smaller sets of bits, with the unselected bits indexing many independent copies. Lemma 4.1 shows how to gather those copies, share the work and return every record to its specified place on the tape. Our use of the normalized binary algorithm of the Fourier paper keeps intermediate errors under control [47 Proposition 5.2]. With bits per numerical record the total error in the convolution coefficients is less than one half. Rounding therefore recovers the exact coefficients before the carry scan. These steps give a multiplier for every fixed exponent greater than (Theorem 5.1).
One machine. Choosing a new finite construction for each exponent gives a family of algorithms. Theorem 1.1 requires a single program with one linear bound on visited space. The finite constructions can be generated effectively, and each candidate can test its layout and precision conditions before use. To accommodate a candidate with a large space constant, the machine tries it on smaller chunks of the operands and assembles the product from the results. It runs the candidates with increasing time allowances on a fixed number of tapes, abandoning attempts that would cross fixed linear space limits. Every completed attempt gives the correct product. For each fixed exponent a suitable candidate eventually fits within the limits and incurs only a constant scheduling overhead (§ 2.14).
Why a fast transposer would contradict Weak ETH
To prove the lower bound in Part II, we record how the heads move in a tape run. For a binary matrix, split time into epochs of steps and each tape into blocks of cells. Given the block containing a head at the start of an epoch, the head can visit only that block and its two neighbors. Fix the sequence of starting blocks for all heads. Each epoch is now a vertex of a network. An edge passes the contents of a tape block to the next epoch that can touch it, and neighboring epochs exchange the control state and head positions. A time bound gives vertices. Even though the heads move in response to their data, there are only such coarse traces. Some trace is shared by enough successful inputs for the partial transposition bound to apply.
That bound prices the wires of the network using the tensor geometry of the companion papers [48, 49]. A wire carrying bits between two sites costs times their distance. Whatever is computed locally, independent bits delivered at prescribed pairs of sites cannot have greater total price than the wires supplying them. Weak ETH enters when choosing the sites. Uniform expansion for these distances would give a power saving in the variable exponent of a 3-SAT algorithm (Theorem 7.1). In the absence of expansion we find a placement with short network edges but with typical row and column terminals about one unit apart.
Every correctly transposed bit must appear at its row terminal and at its column terminal. If the trace succeeds on at least of the arrays, for , the successful arrays contain at least bits of joint entropy. Over repeated copies this yields independent wires at the corresponding rates. An auxiliary vertex choosing the rows can supply them for at most at our placement. For a positive fraction of the demand is still unpaid. This forces the network to have vertices (Theorem 8.1), and hence forces the claimed transposition time.
Finally, given a multiplier at any operand length , the reduction of Harvey and van der Hoeven transposes a matrix of side using a constant number of multiplications at that very length and other steps. This extra cost is smaller than the transposition lower bound. The argument therefore bounds multiplication at every sufficiently large , without a monotonicity assumption on its running time [29 full version, Corollaries 6.2 and 6.3].
I The multiplication algorithm
Interchanging address fields on tapes
A square matrix stored row by row becomes its transpose when the row and column fields of its address exchange places. Multiplication will need the same operation on selected fields of a much longer address. For example, the entry at must be written at . The blocks indexed by , the intervening index , and the records indexed by can all be arbitrarily large. Their total volume affects the time linearly. It is the width of and that determines the overhead per symbol.
Write and store arrays in lexicographic order, most significant index first. The address is the position of a symbol in a stream. The machine never needs a separate address record for each symbol.
Theorem 2.1 (Interchange on fixed tapes). For each there is a deterministic multitape Turing machine with a fixed finite alphabet and a fixed number of one-dimensional tapes with the following property. Given positive integers , , , in canonical binary and a bit array in lexicographic order on
it writes the array obtained by interchanging the second and fourth indices. If , it uses transitions and visits tape cells. In each transition each tape head moves by at most one cell. The same bounds hold for a stream over any fixed finite alphabet, with constants also depending on that alphabet.
For , Theorem 2.1 transposes a binary matrix of side . A digit-by-digit implementation of the swap makes a separate linear-volume pass for each of the pairs of digits. Our algorithm shares a smaller collection of passes among many pairs. We prove the result for , which implies all larger exponents as well.
Tape operations and the target for one recursive step
The recursion uses a prime radix chosen below. A field of consecutive digits takes values in . A call interchanges two such fields in a single stream, leaving all other coordinates fixed. At each level we charge separately for calls and for operations that take linear time in the stream volume.
Copying aligned streams, combining their entries by a fixed finite table, and splitting and merging streams at a fixed digit all take linear time. More generally, an invertible lower triangular rational change on a fixed number of fields, read in physical order, costs a linear number of tape steps. Apply the changes in descending order of the target field, so each controlling field still has its original value. A diagonal scaling acts on one field and each off-diagonal term shifts it by a multiple of an earlier field. These operations include preparation of the shifts in the presence of arbitrary intervening and trailing indices [45 Lemmas 3 and 4].
For instance, a fixed value of the controlling field precedes a run of at least entries containing the shifted field. This run pays for reading the control and computing the wrap point. Rotating contiguous blocks implements the shift. Multiplication by a fixed positive integer that is a unit modulo has a bounded number of increasing pieces, and a finite residue counter enumerates the outputs. Reversing the construction gives inverse scaling. For nested scans a binary counter on a separate tape tracks each range. Ripple carries, resets, and head returns cost linear time over each complete scan [45 Section 2]. For a general invertible rational change on fields, factor its matrix as with lower triangular , and a field permutation . This requires at most calls in addition to the linear work [45 Lemma 9]. For this factorization see also [26]. We choose after all the rational matrices and factorizations, avoiding their denominators and the numerators of their required units. They then specialize to every modulus .
At a recursive step the two chunks each contain main fields of width . Let exchange the th pair. Their product interchanges all main fields. On a fixed batch of independent streams, the prediction and exact repair of [47 Theorem 4.1] reduces this product to stages, together with conversions on a small fraction of the streams. Each stage combines the identity and the individual swaps linearly. Executing its swaps separately would use up the saving in the number of stages.
To implement one stage, assign a label to each batch. For the th swap each source and destination label will have its own way of expressing its physical tape address in a common coordinate system. Sending a stream to its own label in those coordinates performs the swap. We implement the identity on labels as the difference of two maps. The first mixes the labels through a matrix of small rank. The second cancels the unwanted off-diagonal transfers, whose support is partitioned into rectangles. In a rectangle every source sends to every destination, so we can add the sources together before making any copies. The cancellation is valid only if both contributions refer to the same logical address.
Two quantities therefore matter for the choice of labels. The rank fraction controls how many streams enter the full coordinate changes for individual swaps. The number of rectangles incident to one label and the dimension of an address change control the work shared by all swaps. For every we can arrange that the fraction is and that the latter two quantities are each. The calls per stream in one stage will then be . Even a very large number of labels costs only a fixed factor in the scans, since the labels are chosen before the recursion starts. This use of different fields for label transfers and address changes builds on [45]. For the index-coding interpretation see [6, 38], and for the intersection constructions underlying the two-field method see [4, 22, 39] and [45 Section 1.6].
A family of labels
Choose an odd prime and a power of two . Here is the characteristic of the data. The address maps will be built over . Set and let , of size . Call two elements of far if their Hamming distance is . A label is an element of , of size . For let be the number of coordinates in which the two inner words are far. Define the symmetric matrix on by assigning a one to each diagonal entry and to each pair differing in exactly coordinates with far inner words in all . Give the other entries value zero.
Lemma 2.2. The rank of over satisfies . Its off-diagonal support is a disjoint union of directed rectangles. Each label belongs to at most
rectangles on either side. On each rectangle across the two sides, and within either side.
Proof. For inner words at distance , the matrix of equal or far pairs has entry in . Write as the sum of coordinate inequality indicators and expand. Each resulting term depends on at most coordinates. It factors as a tensor product of matrices of rank at most on those coordinates and all-ones matrices on the others. There are terms, so . Writing for the outer distance, is the entrywise product of and the matrix with entry . Expand the latter in outer coordinate indicators. In each term at least coordinates retain , and each other coordinate has rank at most . The tensor product rank bound and summation over terms give the claimed estimate.
For an ordered far pair of inner words, specify the differing positions and the common letters elsewhere. At the first differing position fix both letters. At each other differing position partition ordered pairs of distinct letters into rectangles using the first bit at which their binary strings differ. A rectangle specifies the common prefix and the orientation of the two next bits. Each letter belongs to at most such rectangles on a specified side. This gives a disjoint inner decomposition with incidences per word on either side. Words on one side can vary in only positions, so no two are far. For the outer pairs specify the differing coordinates, fix the common inner words elsewhere, and take a product of these inner rectangles on the differing coordinates. This proves the incidence bound and both assertions about .
The scalar transfers will take place over . The same labels must also describe coordinate changes which can be prepared on tapes. For this purpose we use a rational vector space in which two labels on the same side of a rectangle have the same pairwise Gram block, while going to the other side exchanges the two coordinates.
On the rational vector space with two generators per label take the symmetric bilinear form whose block is
Let be the quotient by its radical and denote the two resulting vectors by . Its dimension satisfies . Indeed, each summand of factors through the inner words of one coordinate, and the constant matrix on labels has rank one. Each is an orthonormal pair for the induced form. Put and .
The parameter measures the cost of a general change of layout. The two levels of the label construction brought the rank fraction down to while keeping proportional to the number of inner words. These rational address changes specialize modulo . The prime continues to govern only the scalar data.
A shared application of a sum of swaps
Write the pairs of main fields in physical order as , and place reserved fields before and after them. Every field has width and ranges over all values. The reserves index occupied data, so the algorithm must restore these fields. Unmentioned spectator indices keep their places. At each label there are independent rows, each a stream over a fixed finite commutative -algebra. For the exchange of and , one stage acts by
where the are fixed scalar matrices independent of the label. The number of calls per input stream, averaged over all inputs, is at most
All other work costs linear time in the input volume, with a constant allowed to depend on the finite stage.
To prove this, choose a basis of once for each . For query the source address map uses this basis for the early reserved fields and for . These columns express the corresponding part of the address in . The late reserved fields and all spectators retain their values. The destination map uses the same basis of and the reversed columns . To specify the action of a scalar matrix on labels, write for the function giving the vector of input symbols at each address of source . For an address bijection write . Map all source addresses into common coordinates , apply the scalar transfers there, then use the inverse destination maps to return to physical addresses. With transfer matrix on labels this gives the source-to-destination block . At a fixed common address the output is consequently
For only label contributes to itself, and . Equation (4) is linear in . Thus we can use the identity
where ranges over the disjoint directed rectangles of Lemma 2.2, with sources in and destinations in . The two terms may process addresses in different physical orders. At every addition or cancellation they must identify the same .
Preparing one layout for all queries at an endpoint. A rectangle may choose its own physical order for the common addresses. We will change basis on the reserves once at each of its endpoints. After that preparation every query can reach the common layout using only shifts controlled by earlier fields.
Fix a rectangle of Lemma 2.2 and list its sources with orientation and its destinations with orientation . Write the resulting pairs as . By (xref}(2.1) every mutual oriented Gram block is . Choose a reference pair and set
Here lies in the orthogonal complement of every oriented pair. Thus the indicated sum is direct and is the span of all oriented vectors. Choose a complement to in and fix bases of and $E.
At endpoint , lift each chosen basis vector of to the orthogonal complement of by subtracting its projection onto this pair. The lifts together with the basis of form a basis of that complement. Change the early reserved fields to coordinates in this basis. Exchange the coordinates with a prescribed equal number of late spare fields. This change of address on the reserved fields costs calls and is independent of . The early positions now include the lifted coordinates, and the late positions include the coordinates. For every the remaining change to a common rectangle layout is lower triangular. In fact each lift differs from its chosen vector by an element of , and , lie in . In physical order the common layout therefore has coordinates early, the coordinates at , and coordinates late. All displaced spare coordinates have the same positions at every endpoint. The forward lower triangular change at sources and the inverse at destinations both cost linear time. Figure 1 displays the blocks of this change in physical order.

Figure 1. The address change at one endpoint of a directed rectangle. The left-hand preparation is shared by all queries. On the right, columns are the prepared endpoint coordinates, and rows are their coordinates in the common rectangle layout. Each possible off-diagonal block (*) adds a contribution from an earlier field to a later one, so the remaining change and its inverse require only linear-time tape scans. Unshown fields retain their positions during this per-query change.
Delivery by rectangles. Write a directed rectangle as , with sources and destinations . To implement , evaluate (4) on and subtract its value on each off-diagonal rectangle. For a given rectangle the quantity to send to every at a common address is the same vector
Prepare the endpoint changes on the reserved fields once for every incidence, using copies at the sources. For each the lower triangular operations then put the summands of in the same physical order. Add them in a scan, retain a copy of their sum, and send its negative to the destinations of the rectangle. Apply pointwise, and at each destination accumulate the resulting terms over after the inverse lower triangular operations. Undo the change on the reserved fields only after this accumulation.
Delivery at low rank. For the contribution choose independent rows and independent columns . Over we have
This factorization uses only intermediate vectors at each common address. Gathering them directly in one fixed address order would require reordering all the source streams for each before the first matrix could act. Instead, for basis row the vector required by at is
The singleton uses the source layout at . Every other term is a rectangle sum already produced in its rectangle layout. Disjointness of the rectangles accounts for each source in the row support exactly once. There are at most terms, irrespective of the number of sources in the support. Convert these terms to one fixed layout for , then add. Each conversion acts on the early and late fields and , , hence costs calls per internal row. In the fixed layout apply and pointwise.
The support of each column in has the same decomposition on the destination side. Convert the corresponding intermediate vector to its singleton layout and to each incident rectangle layout, then distribute it by the destination lower triangular operations. These rectangle contributions enter the same destination sums before the endpoint changes are undone. Finally add together all destined rectangle contributions and direct singleton contributions at each destination in its ordinary layout (along with the term).
Thus the changes on reserved fields cost calls for the entire stage. For each the basis rows and basis columns use at most single-stream conversions. They cost calls in total, proving (2.3). The row matrices are fixed. Their applications use a finite number of tapes and table entries.
The first term in the call count prepares the endpoints once for all queries. The second is the only term that pays a fresh coordinate change for each query. It does so on the intermediate streams at each internal row index. Since stays bounded, these two costs are of the same order after averaging over input streams.
Spectral conversion and the choice of constants
Over odd characteristic the swaps have a common spectral coordinate system. On each two-element orbit of place the sum at the address with and the difference (smaller address minus larger address) at the address with . Leave equal pairs as they are. Apply these changes independently over all . Each conversion in either direction requires one copied interchange per pair and pointwise operations, using in the inverse. The sum and difference coordinates have eigenvalues and , respectively. Since each positive-width field has at least two values, one may take a two-element orbit in every pair and independently choose its sum or difference. Thus all sign patterns occur. To generate the comparisons in linear time, fix a prefix ending immediately before . Its is known, and its -and-suffix fibre splits into three consecutive runs. If the suffix range is , computing the run lengths takes steps per prefix, absorbed by the positions in the fibre. The elementary-streams lemma provides the nested scans and amortized counters. An arbitrarily long prefix index needs only to be advanced, while its controlled field uses digits.
To compute the whole product , use the simultaneous repair program of [47], Theorem 4.1 and Corollary 4.5. It specifies the batch width and a fixed finite scalar extension over , whose elements serve as the data alphabet throughout the recursion. At each common frequency a swap has eigenvalue or . The program predicts the product of these signs on most of the batch and recovers the exceptional rows by interpolation. Its table needs only the sign pattern, which the scans just described generate. The result on every one of the independent input streams is exact.
The program uses stages of (2), pointwise operations, and at most full row conversions at each label, where . Each full conversion uses calls. The correction thus costs at most calls per input stream. The time spent in the stages is controlled by (3).
Choose . Take to be the smallest power of two at least . Then , , and
Choose sufficiently large that . For sufficiently large fixed , the complete computation of the main swaps on independent streams uses at most calls. This follows by multiplying (3) by the number of stages and adding per stream for repair. Also choose so that
All matrices, bases, row widths, and endpoint instructions have now been fixed. Choose a compatible radix prime , with . All linear operations on data, including scalar extension arithmetic, are fixed finite tables. Recursive calls move symbols of this very same alphabet, regardless of the depth of recursion.
Running the recursion
Proof of Theorem 2.1. First consider two width- fields in radix , with arbitrary spectator ranges. Set . If the width is bounded, and individual digit moves cost linear time. For , partition each width- field, from the front, into one digit, fields of width , the main fields of width , another fields of width , and a remainder of fewer than digits. The first group of fields in the earlier chunk supplies the early reserve. The second group of fields in the later chunk supplies the late reserve.
Split on the first digit of the earlier chunk. Group its values into batches of , padding the last batch, and retain the batch number as a spectator. The result consists of aligned streams, each of volume , where is the volume at this recursion node. Splitting, padding, and subsequent merging cost independently of the prefix range. Run the finite main-swap computation, implementing each call by this same general interchange algorithm on a single stream. The complete operation applies the main swaps to each row separately and preserves every other address, including both occupied reserves. Discard the padding and merge. It remains to interchange corresponding pairs of width- fields and boundedly many pairs of individual digits. Perform the former recursively on the full stream and the latter directly.
Let bound time per symbol of the input stream, uniformly over the three spectator ranges. The construction gives
Indeed the main computation makes at most calls on streams of relative volume at most . The other calls each have relative volume one. Since , (5) and induction give .
For the tape implementation use the depth-first parking schedule of [45 Proposition 11]. A main call parks the node’s other live streams on stack tapes at their current ends. Returning to the node restores them from those ends. Clearing work areas, moving heads, and copying parked streams cost at the node, including all its finitely many descents. The child descriptor collapses the spectator ranges to the prefix, gap, and suffix of its two fields. Its calculation and the local control stack use polynomial time in , absorbed by . Space at an active node is . A main descent shrinks volume by a factor at most . During each of the full-volume descents the main streams have already been merged and their workspace cleared. Pass the active stream to the child and park only a descriptor and return instruction. Consequently the parked arrays sum geometrically along any path. The depth is and the parked descriptors have total size at a root of volume , which is . Work tapes and their stack areas are reused, so these bounds also count visited cells.
Finally, for binary chunks take the least with . Pad each of the two numerical ranges from to by lexicographic scans as in [45 Lemma 12]. The volume increases by a factor less than , and the full swap preserves the set of genuine addresses. Scanning out those addresses returns the required stream. This costs linear additional time and space, and . Bits are represented by the distinct elements 0, 1 of the data algebra. A fixed larger input alphabet can be encoded in a fixed number of bit streams. This proves the theorem.
Permuting binary addresses on tapes
Consider a stream of records with two binary address fields . One step of the Walsh algorithm sends the record at to , where denotes bitwise addition modulo two. For three-bit fields, for instance, the record at goes to . Rotating by five modulo eight gives 000 in the target field because of the carry. Separately flipping every bit of would require a scan for each bit. We group bit flips into a small number of shifts and repair the records on which a carry crosses between groups. This gives a cost governed by the width of the two fields, which decreases at each level of the Walsh recursion.
Later, the conversion to Chinese remainder coordinates permutes small blocks of address bits according to other bits of the address. In that application the available budget depends on the width of the whole address. We derive both bounds from Theorem 2.1 and the bit packing of [45 Section 5.2].
Fix . A stream of records, each of bits, has bit volume . Let bound the address width up to a constant factor, and assume with fixed constants. Scanning the address counters once per record thus costs . All shapes have complete ranges in the binary fields on which we operate. A leading row range can have arbitrary positive integer length, and the spectator ranges between active fields may be combined. An address permutation moves whole records and requires no information about their contents.
The elementary stream operations of [45 Lemma 3] move a single address bit to any position, or permute the four values of any two specified bits, in steps. The bounds include the binary counters, rewinds and cleanup. Descriptors of the fields are supplied in binary. Throughout this section, the tape count and alphabet are fixed, the constants in the block widths and polynomial preparation costs are fixed, and the time bounds include this preparation in the top parameter even when the active fields are short. The space bound in each case is visited cells. Interchanges take linear space, and a fixed number of streams suffices for the scans and sorts below. Adding an -bit address to a record increases its size by a constant factor.
Parallel flips in two address fields
Lemma 3.1 (Bulk XOR between address chunks). Let be disjoint complete binary chunks of a common width , occurring in any order with arbitrary intervening spectator fields. For each target in a specified set of positions in , choose a source position in . The simultaneous changes
take fixed multitape steps. Every other address bit, including all of , is restored.
Proof. Choose a guard length , with and a fixed integer to be chosen below. For one pass, select disjoint segments of consecutive bits in and the corresponding segments in . Write for the low position of a segment, numbering from bit zero. We will flip according to a Boolean control and restore all other bits of both segments. For this pass we may use any unchanged controls preceding both chunks, provided the functions can be computed in steps from descriptions of size . For , interchange equal-width chunks to put first and undo the change of layout at the end.
A shift acting on several segments. For two unrestricted integer coordinates , let indicate . The following eight shifts use the current coordinate values in each assignment, in row order from left to right [45 Lemma 13, Equations (20)–(21)].
For these shifts fix both integers. For , on each translated square the first four assignments cycle the low-bit pairs and the last four cycle . Their composition flips the low bit of and restores .
Apply the shifts at all selected segments of at once. For example, one assignment with target is the single rotation
Interchange and if necessary to place the target last among these chunks. For every prefix preceding the target, compute the shift amount from the control bits and the parity bits of the other chunk. The target values occur consecutively as blocks with a common suffix length. Split the run at the wrap point and concatenate its two pieces in rotated order [45 Lemma 4], keeping each suffix block intact. Undo the interchange. Each prefix accounts for at least records whenever there is a segment. Choosing sufficiently large covers the polynomial cost of calculating one offset per prefix. With a fixed number of field counters and Theorem 2.1, all eight rotations cost steps.
Repairing carries. The upper bits of each selected segment form its guard. Declare an address exceptional if any guard in or has one of its first ten or last ten values. At every other address the integer in each segment stays inside its bits throughout the eight shifts, since its displacement is at most eight. Thus the performed permutation agrees there with the desired controlled flips . The map preserves every guard. Both and are bijections and agree on the complement of the exceptional set , so they both preserve . The remaining permutation need only be applied to records now in exceptional slots.
With segment pairs the exceptional fraction is at most , also within any fixed row, since each guard assumes all values equally often. A scan identifies these records in steps per address using prepared masks for the guards. It suffices to read their four low bits and test whether the higher bits are all zero or all one. Extract each exceptional record and attach its destination rank. Compute this rank from its current address by reversing the eight rotations and then performing the prescribed bit flips. This takes steps per extracted record, including address arithmetic in the rectangular layout. Sort these tagged records by destination with stable binary radix passes, then merge them into the exceptional slots in stream order. Beyond setup and full scans, this costs
There are segment pairs. After fixing the polynomial bounds for the controls, offsets and rank calculations, take large enough that this cost is . This proves an exact pass even when all auxiliary address values are occupied.
Covering the targets. Partition the target positions with by their residues modulo . Within each class the segments are disjoint, so one pass with suffices. At most high positions have too little room for a guard. Treat each by the elementary two-bit operation on . This also handles the entire case . There are passes in all.
Permuting positions and blocks
Corollary 3.2 (Permutations of address positions). An explicitly specified permutation of the binary address positions of records takes deterministic fixed multitape steps.
Proof. A permutation is a product of two involutions. On each cycle, number positions modulo its length and use the reflections and in that order. It suffices to perform the disjoint pairs of exchanges in one involution. Split the address into three chunks of width and at most two remaining bits. Handle the pairs touching the remaining bits individually. Between any two chunks perform all exchanges with three simultaneous XORs, using the third chunk as the auxiliary chunk in Lemma 3.1. Within a single chunk, assign a distinct temporary position in another chunk to each exchange . The three cross-chunk exchanges effect and restore . This uses a bounded number of applications of the lemma. The steps to prepare the cycle decompositions and position lists are absorbed by the full -record volume.
The Chinese remainder layout in § 2.10 needs to rotate the values of each of several short fields by amounts determined by other address bits. The next lemma allows an arbitrary permutation table for each such field, including a different table for every assignment of the controls.
Lemma 3.3 (Controlled permutations on small blocks). On a full -bit address space, take pairwise disjoint target blocks of specified bit positions each. Fix and a common set of at most control positions disjoint from the targets. At each block prescribe a permutation of its values depending on the control bits. At any control setting its table must be generable in tape steps, with uniform polynomial bounds on this computation and its description. Applying all block permutations, or all their inverses, to the records takes
deterministic fixed multitape steps.
Proof. We first perform controlled flips on a batch of individual targets, where for a sufficiently small and is the guard parameter above. By Corollary 3.2, place all controls first and the targets at the low positions of disjoint -bit segments of a chunk . Reserve a further positions for . The two chunks fit in the at least free positions. Use the guarded pass from Lemma 3.1 and undo the rearrangement. Including the two position permutations, the cost of one batch is . Thus a layer of flips on all targets costs . Bounded can always be handled by a direct split and merge.
For arbitrary block permutations we also need the other bits of each active block as controls. Batch the blocks so that each batch uses at most positions and at most blocks. Greedily filling batches yields batches. For large , a width-limited batch occupies positions since the next block has only bits. A count-limited batch contains blocks.
Ignore empty blocks. On a -bit block with , any permutation of the values is realized by a Beneš network with stages [7]. Each stage flips one fixed bit as a function of all other bits. For the construction, pair inputs differing in one chosen bit, and pair outputs the same way. The permutation gives a degree-two bipartite multigraph on the input and output pairs. Alternating colors on each cycle, including a doubled edge, assign one edge of each color to every pair. An input switch and an output switch along the chosen bit place the colors in separate classes. Recurse within each class on the remaining bits, with one switch when . The successive target positions are fixed, and the switch decisions are computable from the permutation table in time polynomial in . Inverting the tables gives the inverse operation.
Align these schedules within each batch, padding shorter schedules by identities. At one stage keep all active block bits except the current targets among the controls. Together with the external controls they use at most positions. There is at most one target per block, so a single batch of guarded flips implements the stage. Multiplying the cost of that batch by stages and block batches gives the bound.
Normalized Walsh layers on tapes
The multiplication algorithm uses short Fourier transforms on several address fields at once. Their factorization in § 2.10 requires a Walsh transform on one selected bit in each of several fields. On one bit the transform is the normalized butterfly
Write for its matrix. Given a set of bits in a -bit address, a selected-bit Walsh layer applies on those bits and the identity on the rest. Fixing the other bits gives independent copies of the same transform. The cost on tapes includes gathering those copies, performing the transform at fixed precision, and returning every record to the prescribed order.
Lemma 4.1 (Selected-bit Walsh layers). Fix and constants . Let , , and specify distinct address bits. There is a complex fixed-point format with fractional and signed integer widths equal to fixed multiples of in each real component. The multiples depend only on . Given records in lexicographic order representing a vector with , a deterministic fixed multitape machine computes the selected-bit Walsh layer to absolute Euclidean error at most . Its output has the same format and order. It takes
steps, including address changes and scalar preparation, and visits cells. In the exact execution, the maps from the input to any intermediate numerical array and from an additive error in such an array to any later numerical array or output have operator norm at most for fixed . The same bounds hold for the adjoint layer.
Proof. Use Corollary 3.2 to move the selected positions to the low bits. The other bits now index spectator rows, each holding a complete range of addresses. The empty selection is the identity. For odd apply one butterfly directly and transform the remaining bits. Splitting into the two bit classes aligns the operands for a scan of sums, differences and scalings, followed by a merge. At the precision chosen below this takes steps, including head returns. Bisection with dyadic integer-square comparisons prepares to that precision in steps. This settles . In every case undo the initial bit-position permutation after the arithmetic.
A batch of transforms. Use the normalized binary construction in [47], Proposition 5.2, Equation (5.3) and Section 5. It supplies fixed integers , and . On rows with address bits per row, it implements a normalized transform of those bits by child calls, each transforming one -bit slot of one work row on all its fibers. Here is even. The strict saving is
We may duplicate the batch and all its calls to obtain . Apart from the calls, the finite instruction list combines aligned rows and changes their addresses. Pointwise scalar choices depend on parities of sums of fixed functions of the columns, each an -bit tuple with one bit from each slot. An address change applies a fixed invertible binary matrix to every column. The scalars lie in a fixed finite dyadic list because the normalized child transforms already supply the normalization factors. The finite construction is effective for rational . For any other admissible one can use a rational exponent strictly between and .
Divide the even part of the selected width into pieces sized for this recursion. Write , with $0\le b_j<A$. Allocate consecutive pieces of width and transform the pieces in succession. Append zero spectator rows to make , the padded leading row count, a multiple of . Since and for large $k, we have . The bounded remaining widths admit direct butterflies. Each full piece transform acts independently on all spectator coordinates, so the added rows may be removed after the last piece.
A recursive call on tapes. At a node with consecutive active bits, , the leading row count is divisible by . Set . Split the leading rows by their residues modulo onto streams. The entries at the same position on these streams supply the aligned operands for one batch operation. Each stream has exactly of the parent’s volume and leading count , divisible by . Each child takes one work stream, designates one of its -bit slots as active, and leaves every other field as a full spectator range. Figure 2 shows this repeated layout. The outputs merge by reversing the split. At use the four-point Walsh transform with coefficients , splitting and merging its four bit classes in a bounded number of scans.

Figure 2. One level of the Walsh recursion. The leading range counts rows. The orange marks pick the same offset in each slot, so a column change acts across slots. Each child transforms one whole slot on every setting of its spectator fields. Other work streams remain parked until the child returns.
Let be the bit volume of the node, including spectator ranges and record widths. Binary elimination factors a column change into a fixed number of slot exchanges and slot additions. An exchange uses Theorem 2.1. For an addition, apply Lemma 3.1 with source and target slots of width and a third slot as auxiliary. All three ranges are complete, the auxiliary contents are restored, and the leading range may have arbitrary length. These address changes together take
steps, including the narrow slots handled by direct bit operations in Lemma 3.1. Pointwise passes take steps. To select a scalar, copy the slots from the address counter onto separate tapes, scan all the columns in parallel, accumulate the required parities, and rewind. Even a scan of the full -bit address per record is paid for by its width . There are only finitely many operands per pointwise operation. Fixed dyadic scalings use short exact products before rounding. A general product of two -bit numbers, as in the direct butterfly, costs tape steps [28].
Work and visited space. Follow the depth-first schedule of [45 Proposition 11]. Park the other streams and the parent descriptor on end-access stacks while one child runs. On return, restore them to their marked work areas. Copying, parking, erasing and rewinding add work per node. The child needs access only to its current work areas and descriptors. Row counts, active widths, and prefix, gap and suffix lengths fit in -bit descriptors and all fixed-arity descriptor computations take steps.
With the record width fixed throughout, divide time by volume and write for the resulting bound at active width , omitting the additive polynomial setup costs. The volume of each child gives
Relative to , successive levels have ratio . Geometric summation with the four-point base case yields . Also . Each piece has constant branching and depth , so all polynomial setup terms together remain , absorbed by . Including both position permutations and the one-bit butterfly gives the claimed time on a padded volume of .
One node needs a fixed number of -bit streams for its scans and for the sparse repair sort in Lemma 3.1. Theorem 2.1 also uses linear space. Along a single descent, the parked volumes are bounded by a constant multiple of . Siblings and successive pieces reuse the same tape regions. The additional descriptor and word workspace along the stack is , so the total number of visited cells is .
Precision. Give each concatenated set of live numerical arrays its Euclidean norm. At one node there are a bounded number of operations on the live arrays. Each has bounded norm when a completed child is counted as one operation, since its transform on all fibers is unitary. Copies and pointwise combinations have bounded norm from their fixed coefficient and stream lists, and permutations are isometries. For an input-to-intermediate estimate, descend only into the successive calls containing the given array. An error originating inside a child can propagate through its returned stream to the first common ancestor of its operation and a later one, then down to the later array. At most a constant norm factor is incurred per visited level. The depth is logarithmic in , giving polynomial gain. If the two operations occur in different pieces, all complete intervening pieces are unitary on the padded array. Padding and restriction themselves have norm at most one.
Round each real component after arithmetic to a grid of mesh . Choose to absolute error at most and store the fixed dyadic coefficients exactly. Temporarily allow unbounded integer parts. Rounding an array costs at most a constant times in Euclidean norm. The approximate butterfly coefficient introduces an additional error of at most a constant times times the input norm. Thus while all preceding array norms are at most , a single operation incurs at most
Each array contains at most a fixed multiple of entries. There are array operations. Freeze their actual rounding faults and propagate these vectors through the exact linear maps. The polynomial gain bound then shows that makes the total error at any array at most , for a sufficiently large constant. The corresponding ideal intermediate norms are at most . For large induction therefore preserves the assumed norm bound, justifying signed integer width . Temporary exact sums and products before rounding have the same order of width. Enlargement of the constant width factors covers the bounded remaining lengths. Finally, the layer is self-adjoint since . □
Integer multiplication on fixed tapes
Write each input as a polynomial evaluated at a power of two. To multiply the integers it suffices to convolve the coefficient lists exactly and propagate carries. We compute this convolution with two forward Fourier transforms, one coordinatewise product and one inverse transform. On tapes, the choice of the transform length determines how much time is spent reaching the records that each operation needs.
Theorem 5.1 (Multiplication at a fixed exponent). For each there is a deterministic multitape Turing machine, with fixed alphabet and tape count, that computes the full product of two -bit integers in worst-case time , visiting cells on its tapes.
Fix , and choose a rational exponent for Theorem 2.1 and Lemma 4.1. We will store the digits in records of width , with and . We arrange the convolution on many short cyclic axes. Each transform then needs only layers of record permutations, phase multiplications and selected-bit Walsh transforms, preserving the Euclidean norm at every layer boundary. The time budget for Theorem 5.1 is
Products within a single record of bits take steps with the multitape multiplier of Harvey and van der Hoeven [28]. Marking the extents of its scratch areas lets us clear them and return the heads within the same time bound.
Packing the digits into short cyclic axes
For use direct multiplication. For , let and be the radix- expansions of the inputs, with . Set
A cyclic convolution of length at least recovers every coefficient of . We choose its length as a product of pairwise coprime factors . Factor has an address field of bits, so its padded axis has positions. We require
Short axes give polynomial-size tables in . Filling a constant fraction of the padded box ensures that these tables can act on a stream of only records, even with separate binary address fields for all axes.
For all sufficiently large , put and . Take distinct odd primes from , each with . If does not divide , append , with . Baker, Harman and Pintz [5] give a prime in for all sufficiently large . The chosen interval contains disjoint intervals of this form with right endpoints near , since . Enumeration and trial division take bit steps because . The resulting volume satisfies
The machine tests the size and coprimality conditions and uses direct multiplication on the bounded initial range where they fail.
Store the positions in lexicographic order on the padded axes , with axis 1 varying fastest. A valid address has digits for every . In tape order, these valid addresses enumerate the ranks in mixed radix. Count the input length with an amortized binary counter and reverse the streams to read their low bits first. As the machine enumerates the box it places the successive radix- digits at the first valid addresses, writing zero at every other position. A simultaneous scan of the address bits and the marked fields containing their limits tests validity in steps. The writes, scans and rewinds together cost .
Changing from digit order to residue order
The digits enter the tape in increasing order of their mixed-radix rank. For convolution the indices must add coordinatewise modulo the . Put and . If has digits , use the scaled residue
These coordinates give an isomorphism . The scaling by makes the coefficient of the current digit one. The permutation can therefore use rotations controlled by earlier digits, as in the prime-factor algorithm [25] and the triangular layout of [45 Equation (42)].
Build a balanced binary tree of consecutive axis intervals, splitting an interval after the first axes. The map for is (8) with the sum restricted to . A leaf is the identity. Once the two child maps have been applied, each right-child axis only needs the rotation
The current left-child address determines its original digits by solving the triangular equations in increasing order. Use zero rotation for an invalid left-child address and fix values outside on each target axis. Each step is then a permutation of the full padded box. For the inverse map, reverse the depth order and negate the rotations.
Lemma 3.3 combines all disjoint intervals at one depth as a single controlled permutation. The control bits lie in the left children, which collectively contain at most half the axes. Since all fields except possibly the last have equal width, the controls occupy at most bits. The target blocks have width . For a given control setting we can recover the left digits and generate all local rotation tables in steps. The integers have at most bits and a table has at most entries. The lemma charges for generating these tables as well as for moving the records. A constant fraction of address bits lies outside the controls, so the lemma applies at every depth. The depths fit the budget in Equation (6) in both directions.
Short Fourier transforms on occupied fibers
After the CRT permutation, each factor has length , but its address occupies bits. A radix-two chirp computation may need several times as many coordinates as fit along that axis. Padding every axis by such a factor would increase the size of the tensor product exponentially in the number of axes. Instead we borrow coordinates from adjacent fibers, perform a short transform, and restore the borrowed values exactly in the ideal complex arithmetic.
Write , and put
Lemma 5.2 (Synchronized short Fourier transforms). For the axis lengths and widths of Equation (7), let be sufficiently large. On the coordinates of the padded residue array, both
factor into unitary layers. Partition the axes into disjoint consecutive blocks of address bits each. Every layer has one of the following forms.
A permutation acting independently within each block.
A diagonal whose value at an address is the product of one unit-modulus coefficient from each block.
A normalized Walsh transform on one designated bit from each participating block, using bits in total.
For any fixed , a deterministic fixed-tape machine constructs the schedule, the block permutations, and the block phase tables at fractional bits in steps. It can then stream the coefficients of any full diagonal to absolute error in steps.
Proof. It suffices to construct the forward transform. Reversing the schedule, inverting the permutations and conjugating the phases gives its adjoint.
An exact transform on occupied coordinates. Fix an axis of length , and take the least power of two . Inside let be the space of the first coordinates and its orthogonal projection. We construct in layers of permutations, phase diagonals and operations on disjoint pairs. The inequality will bound the number of neighboring values to borrow.
A truncated chirp gives a unitary whose compression to is a fixed positive multiple of . In detail, zero-extend , , to a cyclic kernel of length . Its Fourier multipliers are
We show below that , uniformly in . Choose and . With we have . Apply on the first coordinates, act on each pair by the unitary
then apply on the first coordinates. The compression to these coordinates is convolution by the truncated chirp times . The differences of two indices of lie in , so their representatives in this interval are unambiguous modulo . Multiplying the active coordinates by before and after the convolution therefore gives Bluestein’s factorization [9]. For the resulting unitary we have .
Amplitude amplification now makes the first block exact [8, 10, 42]. For each vector of an orthonormal basis of , put . These vectors in are orthonormal because both and are isometries. In the plane spanned by ,
The reflection fixes and reverses . On this plane reflects across , since the other vectors of the basis of are orthogonal to the plane. The product of the reflections rotates through towards . Consequently
for a unitary on , since . The only reflection we must implement in the original coordinates is a diagonal sign change.
To restore the neighboring values, we use as a change of basis. The chirp
is -periodic, and . Thus , where , and is the circulant with kernel . In the Fourier basis is a diagonal of phases,
Extending each of the three diagonals by the identity gives
Indeed the middle conjugation acts by on and by on its complement. The identity holds on arbitrary data in the borrowed coordinates (Figure 3). Each use of or its adjoint has radix-two depth [19], and the number of such uses is absolute.

Figure 3. Building on occupied coordinates. In each plane spanned by and , a pair of reflections rotates towards by (shown with ). On the right, the cyclic chirp multiplies by in the amplified basis. The two transformations of the borrowed coordinates cancel.
The uniform multiplier bound. Set and , so that . Over the traverse an interval of length less than two in steps of . With , at most three -neighborhoods of integers meet that interval. They contain at most terms, each of modulus one. The remaining terms split into at most four consecutive runs with for some integer . On each run write , where
Here and the imaginary parts are monotone. Summation by parts bounds the sum on the run by the endpoint moduli plus the variation of , at most . Adding the contributions and normalizing gives
Thus the fixed number of reflections works for every axis length.
Sharing the workspace. Divide the axes into consecutive blocks of four to seven. Such a division is possible for large , since the number of axes tends to infinity. Each block contains address bits and has only coordinates. Process its axes in turn. For the chosen axis, the other padded axes give fibers, a power of two at least eight. Divide them into eight equal batches. A batch of fibers needs fewer than borrowed coordinates, since each of its -point transforms uses more coordinates. The other seven batches supply at least coordinates. Allocate them disjointly to the active fibers and run the circuits in parallel. Only the first entries of each active fiber change. Every borrowed entry is restored before the next batch, even when it holds an earlier transform output. The eight batches and at most seven axes keep the block depth .
Three common layer types. In a layer of pair operations, complete its matching with identity pairs. A block permutation routes the pairs to the edges of a single address bit. The radix-two factorizations and the steps require only pairs acting by , , or once their permutations and phases are separated. We can realize all pairs with the same three Walsh rounds and pair-dependent phases.
For , first form . Every entry of has modulus at least
Let , , , and put
These are phase diagonals. The matrix has on its diagonal and off its diagonal. The unitary therefore agrees with on the first row and first column. Orthogonality determines the fourth entry, giving . For replace by . For the identity use in the same formulas. For a pair requiring , three Walsh rounds with identity phases give . In particular all divisions used to prepare the phases have denominators bounded away from zero.
Undo the pair-routing permutation. The block schedules now consist entirely of permutations, phase diagonals and Walsh rounds. Cycle through the three types, advancing each block whenever its next type occurs. Blocks that are idle in a slot act by the identity. Each cycle advances every unfinished block, so the total number of global layers is . Lemma 3.3 implements the permutations with empty external controls. A global phase is the product of the local phases, and a global Walsh round acts on at most one bit per block.
Streaming the coefficients. Every block has polynomially many coordinates. Its assignments of borrowed positions, pair routings, radix-two permutations and layer schedules can all be constructed in steps. The same holds for its phase tables with fractional bits. The chirp and radix-two phases are roots of unity of polynomial-size orders. The formulas for sum polynomially many such terms and scale by . Use range reduction and convergent sine and cosine series, for instance with a Machin formula for , and bisection for positive square roots. The arguments are at least , and the phase ratios above have uniformly bounded inverses of their denominators. Only a bounded number of such operations follows each sum. fractional bits therefore suffice to make the local tables accurate to , by deterministic polynomial-time fixed-tape computations.
To obtain a diagonal in tape order, extend address prefixes one block at a time, from most to least significant. Start with the single coefficient . For each coefficient on the current prefix tape, scan the next block table, multiply by each of its entries, round, and append the products to a fresh tape. Rewind the table between prefixes and alternate the two prefix tapes. The length at least doubles per pass, so fewer than products are written in all. Each table rewind costs at most the scan it repeats. Multiplying -bit words takes tape steps, giving steps for the diagonal and the same bound to apply it to the records.
If a local phase and a rounded complex product each have absolute error at most , the prefix error increases from to at most , since every ideal prefix has modulus one. After at most passes the error is for . Choosing the extra guard bits gives absolute error in the full coefficients while preserving the -bit width.
Rounding the convolution to the exact product
Write for the two padded digit arrays in residue order. The subspace supported on valid addresses is invariant under and its adjoint. The is the normalized Fourier transform of a group of order . Thus, with denoting coordinatewise multiplication, character orthogonality gives
After inverse CRT, entry at a valid address is . Indeed, , so the ordinary product has no coefficient that wraps around the cyclic index. It suffices to compute the displayed vector to absolute Euclidean error less than .
Precision for one transform. Store the real and imaginary parts of every entry on signed fixed-point grids. Suppose a forward or adjoint transform receives represented data of norm at most . Implement each selected-bit Walsh layer with Lemma 4.1, using an input norm allowance of and an absolute Euclidean error allowance of . Signed integer and fractional widths suffice. The proof of the lemma permits enlarging these widths to any larger fixed multiples of .
For a phase layer, compute the coefficients to absolute error at most , and round each complex product to absolute error at most . A diagonal perturbation has operator norm equal to its largest entry error. On inputs of norm at most , the layer error, including rounding at entries, is at most
for sufficiently large . Permutations move entire records exactly. For an adjoint transform use inverse permutations and conjugate phase tables. Every exact layer is unitary, so existing errors pass through it with unchanged norm. Induction over the layers keeps the boundary norm below and the total error relative to the exact transform of the represented input below . Lemma 4.1 also bounds the intermediate widths within each Walsh layer.
Exact recovery. A digit array has nonzero entries at most, each less than . Its norm is at most for all sufficiently large , since . Let , and let be the rounded transform outputs. By ,
Rounding the products contributes at most . The stored vector therefore has error at most and norm at most . On this input the adjoint transform introduces at most further error. Compute to absolute error by an integer square root in bit steps. Even after scaling the existing errors by , multiplying by this rounded scalar and rounding each entry, the final Euclidean error is less than . All operands and temporary exact products fit in bits. Rounding the real part of each valid entry to the nearest integer now returns every convolution coefficient exactly. The bounded initial range of input lengths again admits direct multiplication.
After inverse CRT, scan the valid addresses in increasing mixed-radix rank. Each coefficient is less than . Add the incoming carry, emit the low bits, and pass the remaining high bits to the next coefficient. This recurrence keeps the carry within bits. Reverse the digit stream and trim or pad leading zeros to write exactly bits in most-significant-first order. These scans cost .
Time and visited cells. Parameter generation, trial division, and construction of the local permutation and phase tables take steps. The full coefficient streams are generated as in Lemma 5.2. Each of the three transforms has layers. A record permutation or selected Walsh layer fits Equation (6). A phase layer, including its streamed coefficients, and the pointwise product each cost steps. Holding a full stream while another input is processed costs steps for each copy or rewind. The factor for the number of layers is absorbed by the polylogarithmic factor in Equation (6). The number of tapes and the alphabet depend only on .
A constant number of full streams occupy cells. These include the two alternating prefix streams for the phase tables. The permutations of Lemma 3.3 sort at most exceptional records with -bit destination keys. Their stream storage is , and their interchanges have linear space by Theorem 2.1. The Walsh layers visit cells by Lemma 4.1. The remaining parameter and short-word computations visit cells by their time bounds. All work areas begin at marked positions and are reused after the heads return. Hence the union of the visited cells on all tapes has size . Finally and . Our choice absorbs the remaining powers of in the time bound. This proves Theorem 5.1.
One machine for all exponents
Theorem 5.1 gives a multiplier for each exponent above . Choosing a better exponent may change its program, the number of tapes and the constant in its space bound. To prove Theorem 1.1 we construct one machine with a fixed number of heads and a fixed linear bound on the cells they visit. It runs a sequence of correct multiplication programs under time limits. Alongside each program it tries several operand lengths, so that even a program with a large space constant can succeed within the common space bound.
Constructing the candidate programs
For take the target exponent in Theorem 5.1. Choose rational intermediate exponents with strict slack. We need a generator that, given , constructs the corresponding finite templates and determines how much precision to use at any input length.
Finding the templates. The repair, Fourier and binary templates of [47 Sections 4 and 5, including Section 5.5], and the interchange template of § 2.1, are built from finite sets, integer polynomials and linear algebra over explicitly presented rings or fields. Failing offsets can be enumerated, rational bases computed by elimination, and radix primes tested against the finite lists of numerators and denominators. Thus each completed construction supplies a definite list of instructions, widths and recursive calls. Enumerate the integer template parameters, interleaving the searches if necessary. Accept a construction when its call counts meet the strict inequalities in the two recursions. Raising to integer powers decides a comparison between a positive rational and a rational power of a positive integer. The existence proofs guarantee termination for every .
For a given input length the generated program tries the trial divisions and checks the volume, coprimality and padding conditions of Equation (7). It verifies the space for borrowed coordinates and for row padding in a Walsh layer, and the digit-width bound used in the precision estimates. Here is the padded number of numerical records. The direct splits of § 2.6 apply at small address widths. Use schoolbook multiplication at degenerate lengths or if any required shape test fails. For a fixed the asymptotic estimates prove that the fast construction applies at every sufficiently large length. The program can therefore handle short inputs without having to compute a cutoff from a prime-gap estimate.
Certifying enough precision. We describe how the program obtains its working widths from the finite description and the accepted data shape. At a pointwise instruction in the Walsh template, the sum of the absolute matrix entries bounds the operator norm on its live row registers. Include the identities on retained registers and take the maximum over the finite coefficient table. Copies and merges have bounds from their finite multiplicities. A permutation or a completed normalized child transform has norm one. Choose an integer that bounds the product of all the one-level instruction bounds, each enlarged to at least one, including the base case and the direct butterfly.
For template arity the recursion depth is at most . To propagate an error between two internal instructions, follow their paths to their common ancestor. Each path costs at most in gain, and the instructions at the ancestor cost at most . The same bound works across consecutive pieces since each completed piece is unitary. The number of array instructions is polynomial in with computable exponent, by fixed branching and logarithmic depth. Enumerating these instructions takes setup time. It gives explicit polynomial bounds on both individual gains and the sum of gains for propagated faults.
At the boundaries of the transforms use a norm cap at least two above the ideal Euclidean norms obtained from the digit bound, unitarity, the final scale and . The cap is on the accepted shapes. For a fractional grid , an error in a coefficient costs its absolute size times the operand norm. Coordinate rounding costs at most in a stream of padded records. Within a layer use the boundary cap times the computed gain, allowing one extra unit of internal Euclidean error. The roots and square roots in § 2.10 give certified local tables. In a product of at most phases, each with coefficient and rounding errors at most , the total coefficient error is bounded by . Taking makes the parenthesized power at most two.
Multiply each local error bound by the corresponding propagation gain and sum. At the boundary of a completed linear layer the incoming discrepancy carries through with unit gain. At the one coordinatewise product, twice the norm cap bounds the gain from the larger of the two input discrepancies. Include the final scaling by . These operations give an integer majorant for the coefficient of in every error bound, including the internal errors of a layer executed on its represented input. Take
and allow enough fractional bits to encode the fixed dyadic coefficients exactly. Take the integer width from the computed magnitude bounds, including the extra unit. Induction through the instructions now preserves the caps. Each internal discrepancy from the exact layer on its represented input is less than one, and the discrepancies at completed boundaries are less than . Rounding the final coefficients gives the exact product. The working widths are , with the polynomial setup and time orders of § 2.10. The calculation uses actual instruction counts, so it also certifies short accepted shapes.
Using a common number of tapes
At a template node the live streams are aligned arrays. Encode the finitely many roles of a fixed candidate as tracks of one sequence of records. To replace a track, scan its data to scratch, compute its new entries and merge them back by a scan. Several tracks can be accumulated successively. To split into finitely many residue classes, scan out one class at a time and mark its positions for the return merge. This serializes the fixed fanout in the radix streams. Elementary scalings and earlier-field controlled translations in an ordered affine map use the bounded number of fields, counters and rotation streams of a single elementary operation. Any fixed split or merge inside it can be serialized in the same way. The comparisons for the spectral table in § 2.4 produce a binary mask on the role tape, one comparison at a time.
The resulting scans at a node cost for its local bit volume . For a columnwise Walsh address selector, extract the finitely many address slots in separate passes. Merge each slot with the successive column tuples to append its bit to each tuple. A sequential pass then computes the selector. This takes per address, within the record-processing budget.
Before a recursive call, extract its single input stream. Park the other live tracks and the return descriptor at the end of a stack tape. A full-volume reserve descent of interchange parks only the descriptor. Restore the frame from that same end on return and merge the child’s output. All the extra scans belong to the parent and occur only a fixed number of times there. In particular the child receives its original volume, so the coefficients of the recursive costs in the interchange and Walsh bounds are preserved. A symbol of a fixed candidate alphabet can be carried as a fixed-length binary block during interchange.
Sorting, table iteration, arithmetic in a record, reversal and output use a bounded number of streams. The candidates share the fixed short-integer multiplier. Together with the track processors and end-access stacks these routines use a common number of physical tapes over one fixed alphabet. The preceding construction therefore generates correct -tape programs with
time on two -bit operands. A fixed interpreter can simulate each candidate with one coded work tape per head and one tape for the transition list. For fixed , scanning that list and updating the tapes take constant time per step. Generating the program is a constant setup cost for that .
Let bound the physical cells visited by a complete interpreted run, including generation. Such a constant exists by the fixed-template space bounds. The serialization uses a constant number of copies of each stream for fixed , stores the same parent frames, and adds a finite program description. The schedule below never needs the value of .
Scheduling within linear space
Mark a distance on either side of the origin of each candidate work tape, once in time. Abort a run if it reaches beyond its marked region, even during program generation. Maintain the original inputs, the tentative answer and the scheduling data on separate tapes of fixed linear capacity.
An attempt chooses a program index and a chunk count , , with . Skip larger counts. With , left-pad each input to digits in base . Generate and use it for the digit products, one at a time. Accumulate the shifted products in bits and discard the leading padding on output. Only an attempt that completes all these operations returns a result. Clear and reuse the visited candidate work area between calls. For fixed , gathering the operands by sequential scans, positioning the additions and propagating carries cost in total. The loop counts and shifts use bits. Unary position marks or amortized binary counters suffice during the scans. For each , some fixed power of two makes a digit multiplication fit within the marked tapes at every sufficiently large , including its setup. That attempt runs to completion in time
All attempts, including ones that time out or cross a mark, share the same absolute bound on visited cells.
Use a weighted schedule as in universal search [37]. Number the pairs in computable diagonal order, reserving index 1 for a schoolbook multiplier with its own fixed linear space allowance. In round , restart the first attempts in turn. Give index at most actual steps and stop at the first completed output. Decoding the pair, generating its candidate, copying operands and accumulating the tentative result all count against the budget. A clock for steps is a binary counter with its head at the low end. Marking the highest nonzero bit detects exhaustion. Over ticks the decrements and head returns cost in total by summing the borrow lengths, including the initial decrement. At an abort or timeout, erase the visited scratch and tentative output and rewind the heads. Frontier marks track the visited intervals, so cleanup costs time proportional to the work of the attempt and its clock setup. The outer space marks stay in place across rounds.
The whole of round costs , including the polynomial overhead in for its clocks and control. Schoolbook multiplication terminates in steps, so the last round has . All clocks and scheduling data fit within the claimed space bound. For a fixed successful attempt of index taking steps, round allows it to finish. The sum of all round costs up to that point is , in addition to the one initial scan. For every a fixed index has time at sufficiently large . Since , this one machine has the time bound and visits cells, proving Theorem 1.1.
Quotients and square roots
Corollary 6.1 (Exact division and integer square root). On the finite-alphabet multitape model of Theorem 1.1, each of the following tasks has a single deterministic machine running in worst-case time with visited cells. For two -bit integers with , division returns and , each in bits. For an -bit integer , square root returns in bits. Leading zeros are allowed.
Proof. Use Newton’s classical reductions [12], as for the earlier tape multiplier [45 Section 10 and Corollary 2]. At each stage the number of accurate bits doubles. The same machine from Theorem 1.1 performs all the multiplications. For each fixed , its cost on -bit inputs is , where . Neither Newton routine takes as input.
Reciprocal. Normalize the divisor as with . The update squares the residual in exact arithmetic. Truncate to fractional bits and round down each of the two products to this precision. When , the new absolute residual is at most
The truncation contributes at most and the product roundings at most . Here and . The seed has residual at most , so one step at gives residual below . Given residual at most , take and for target precision . The new residual is at most .
Square root. For a positive radicand write , . Start with and update . Its exact error is . In the range the reciprocal routine, after a binary shift to normalize , gives to absolute error at most at target . Indeed the residual is at most and . Truncating , multiplying by the approximate reciprocal and rounding the average change the update by at most . The quotient error is at most before averaging. At the first step has error at most . The same capped doubling schedule now preserves and keeps in .
Use in each routine, handling a zero dividend or radicand by a scan. Multiplying the normalized reciprocal by and applying the binary scale gives an approximation to with error less than . The rescaled root also has error less than . Take the floor and correct by at most one, testing the candidate against the input by exact multiplication and comparison. For division this also supplies the remainder.
Make a copy of the normalized input in one scan so that a stage of precision reads only its own prefix. A reciprocal stage uses two -bit products, and a root stage uses one reciprocal computation and one additional product of that size. The sum of the precisions is . Since is nondecreasing, summing the reciprocal stages gives time. Applying this bound to the internal reciprocal calls and summing the root stages gives the same time. The initial scans, final products, corrections and linear output padding fit this budget. The fixed scratch tapes are reused at bounded call depth, and the total precision allocated along a call is . Rewinding and clearing each scratch area cost at most the time spent visiting it. The two routines accordingly visit cells.
Corollary 6.2 (Lower bounds for division and integer square root). Assume variable-count Weak ETH. Every fixed deterministic multitape machine computing either the quotient of two -bit integers with positive divisor or the floor square root of an -bit integer takes worst-case time at every sufficiently large . The constant and threshold may depend on the machine.
Proof. Brent proved linear equivalences among the corresponding operations at multiple floating-point precision [13 Theorem 3.1]. Here shifts and additions give reductions to exact integer operations at a prescribed length. Fix . On -bit inputs set and , padding every argument of a division or square-root call to exactly bits.
For division, one call yields
Subtracting the shift gives the product. For square root, let be one of . A call on returns . Indeed gives and , so
Subtracting from and shifting recovers . The three squares yield . For the largest square-root argument is less than , and both division arguments also fit. Constructing these arguments and extracting the result uses tape steps. If denotes the worst-case time of the given machine, each fixed thus gives a multiplier with time , using schoolbook multiplication for . Theorem 1.2 applied to these twenty fixed multipliers gives the assertion on every residue class. Taking the smallest constant and the largest threshold gives the bound at every sufficiently large .
II The conditional lower bound
Why Weak ETH rules out spectral expansion
Transposition sends each bit from its input row to its output column. A short tape computation would implement all these transfers with a bounded-degree network. To rule this out we will place the vertices in a metric space where the network edges are short and the row-to-column distances are typically large. The issue here is the existence of such placements. Uniform expansion in the relevant metrics would instead allow a deterministic algorithm to decide 3-SAT with a power saving in the number of variables.
Wire costs and expansion
In a rational tensor network each edge of width carries a string of bits. A vertex table assigns a rational coefficient to each tuple of incident strings and external indices. To contract the network, fix the external indices, multiply the table entries, and sum over all internal strings. A network with no external indices is closed. A bit network has width one on every edge.
The metric records the cost of sharing information. In the tensor language, a wire is equality of two external labels. A one-bit wire allows the joint labels and , each with coefficient one. To obtain a metric, take tensors over at a finite set of at least two sites. A spectral point in Strassen’s asymptotic spectrum takes nonnegative real values, preserves zero, one, direct sums and tensor products, and is monotone under a linear map at each site [54]. Its base-two logarithm, with a positive normalization, is a price. The prices of one-bit wires give a pseudometric on the sites. Thus a -bit wire between two sites at distance costs .
We use the class of complete CAT(0) spaces carrying compatible spectral prices for rational tensors on all finite subsets, with their distances given by the wire prices. Every finite spectral wire pseudometric occurs in a member of after sites at distance zero are identified. Rescaling prices and distances together is allowed [48 Sections 2 and 2.3, Theorem 4.3]. Place each vertex at in a member of . Applying the vertex tables as local maps to the product of the edge wires gives the contraction. Tables at coincident sites can be applied jointly. It follows by monotonicity and additivity of the price that any product of equality wires obtained in this way costs at most
For copies the right-hand side is multiplied by , even when the local maps act jointly on all copies. If all vertices coincide, every wire costs zero.
Characteristic zero admits ports when there are symmetric regular multigraphs of arbitrarily large order, with a common bound on their degrees, and a constant such that
for every placement of every such graph in . Here are independent uniform vertices and is a uniform directed arc, with a diagonal arc counted once in the degree. This is the nonlinear Poincaré inequality for the wire metrics, which depend only on the characteristic [48 Definition 11.1].
Theorem 7.1 (Expansion and 3-SAT). If characteristic zero admits ports, then for some a deterministic algorithm decides 3-SAT on variables in bit operations times a polynomial in the input length. In particular, under variable-count Weak ETH, characteristic zero does not admit ports.
Proof. Suppose characteristic zero admits ports. By the enumerable contraction theorem [49 Theorem 13.1], there is such that a closed bit network of volume (vertices plus edges) and maximum degree at most can be contracted deterministically in bit operations plus the time for that many local entry queries when its entries are integers of polynomial bit length. The topology determines an enumerable formula with fixed rational constants. For the clause and equality tables below, each query takes constant work given its arguments.
A general 3-CNF can have order clauses. To get a power saving in , we branch into formulas of smaller volume by sunflower sparsification [34]. Choose a fixed rational so small that . Put and , taking . Remove tautologies and duplicate literals, and handle an empty clause directly. Regard each remaining clause as a set of literals. At the outset and after every branch discard duplicate clauses and strict supersets of other clauses.
At each node choose the first applicable rule below, breaking ties canonically. Each rule selects clauses with a common center and pairwise disjoint, nonempty remainders, the petals.
If a literal occurs in at least two-literal clauses, take of them with that literal as center.
If a pair of literals occurs in at least three-literal clauses, take of them with that pair as center.
If a literal occurs in more than three-literal clauses, choose of them with that literal as center and disjoint two-literal petals. A petal excludes at most candidates since the preceding rule does not apply, so greedy selection suffices.
One child adds the center as a clause. The other adds every petal as a clause. An assignment satisfying the parent either satisfies the center or must satisfy every petal. Both children imply the parent. Each new clause is a strict subset of a selected clause, so no existing clause is contained in it. The new petals are disjoint and hence all survive simplification.
Consider a root-to-leaf path. At most unit clauses are added, since each persists. The initial run of the first rule adds only units. After that run, each literal belongs to fewer than pairs. Subsequent branches on triples can add one pair or a set of disjoint pairs, so they raise each pair degree by at most one. The first rule has priority and only deletes pairs. Thus pair degrees stay at most . At any node after the initial run there are surviving pairs, and each subsequent unit can delete at most of them. Only units delete pairs, so the total number of new pairs along the path is . Each step adds a unit or a pair, giving depth . Taking the child that adds all petals consumes at least new units or new pairs. Such a choice occurs only times. Recording the depths of these choices determines the leaf, hence there are at most leaves. Finding the branches and simplifying at each node take polynomial time in the input length.
At a leaf the three rules all fail, so there are clauses. Construct a closed bit network with a clause indicator at each clause and a tree of ternary equality tables to distribute each variable to its occurrences. For each unused variable, a wire joining two all-ones unary tables supplies its two possible values. Every assignment has a unique compatible labeling of the copy wires, and the product of the indicators tests all clauses. Its contraction is therefore the number of satisfying assignments of this leaf. The network has degree at most three and volume . For volumes too small to meet the degree hypothesis, direct contraction costs a constant.
Accept if any leaf contraction is positive. The logarithm of the total running time, apart from the polynomial input factor, is at most
Taking gives the claimed bound, which variable-count Weak ETH excludes.
For the tape lower bound we use the quantitative consequence of nonexpansion from [49 Theorem 4.2]. Under Weak ETH, for a regular graph on vertices of fixed positive degree, the Poincaré constant valid for all placements in must grow at least as , up to a degree-dependent factor. One can therefore choose a placement with mean squared distance one between independent vertices and mean squared distance along an edge. Lemma 8.2 applies this fact to the graph of a tape computation and controls distances to the row and column terminals.
The cost of partial transposition
Transposing a binary matrix makes each input bit available at a new place. Bit enters with row and leaves with column . On tapes the heads can decide where to move from the data they have already seen. Fixing their movements at a coarse resolution gives a small network, but only for the inputs that follow those movements. We first bound the size of a network that transposes correctly on even an exponentially small set of inputs.
Theorem 8.1 (Partial transposition). *Assume Weak ETH and fix . Let a rational tensor network have maximum degree in edge bundles, each of width at most bits. Give its input row strings and output column strings of length distinct terminals. Suppose that on a fraction at least of all binary inputs, fixing the row strings gives a nonzero scalar multiple of the basis vector for the transposed output. Then the network has vertices for every sufficiently large .
Two estimates give the bound. The first places the network so that the cost of its edges falls by a factor of order compared with that of typical row-to-column wires. The second turns the entropy of the successful inputs into a lower bound on the cost of those wires.
Charging the wires of a small network
Represent a shared string of bits by a wire of width . Place the vertices of the network in a spectral space from § 3.1. The price of each wire is its width times the distance between its ends. If is the width of edge , the total supply price is
We need a placement with three properties. The network edges must be short, typical row and column terminals must be far apart, and there must be a central point from which we can identify the chosen input rows at moderate cost. We normalize the typical terminal distance to one.
Lemma 8.2 (Short edges and distant terminals). Assume Weak ETH. Let a multigraph have vertices, maximum degree , and edge widths at most . For all sufficiently large there is a placement in some and a point with the following properties. Write for the least power of two at least . All constants below depend only on .
Here are any two lists of vertices distinct within each list, the draws from the two lists are independent and uniform, and are arbitrary. In particular, when , the mean absolute deviation in (12) is . If also and , the error in (13) is . These bounds are uniform over the lists, and the weights with the indicated bounds.
Proof. Add vertices to reach and superimpose a scalar expander on all vertices, of fixed degree and with a fixed spectral gap [23, 31]. Add diagonal arcs to make every degree equal to a fixed power of two depending only on . Each nonloop edge gives two reverse arcs, and each diagonal arc counts once. Under Weak ETH (Theorem 7.1), the logarithmic obstruction [49 Theorem 4.2], based on nonlinear spectral calculus [40], applies to (a class of Hadamard spaces without ports). It says that the best uniform Poincaré constant of this graph over (in the squared form) is at least . Thus for large some placement in a rescaled space has
Here are independent uniform vertices and a uniform directed arc of the augmented graph. Its arcs include the original edges. Multiplying their mean length by and by the maximum width gives (11) by Cauchy–Schwarz. The scalar Poincaré inequality on the expander subgraph now gives, for every real 1-Lipschitz on ,
In particular, the bound holds for distance to any fixed point and for . The conditional variance formula, applied first with fixed and then to , gives . Since the second moment is one, the mean is .
A list of distinct vertices has uniform density . Consequently its average of a nonnegative function is at most times the average over all vertices. For every we therefore have . The same bound holds for . Adding these deviations in proves (12).
Take to be the barycenter of the uniform distribution on the points. In a complete CAT(0) space the mean squared distance to a finite distribution has a unique minimizer , and its value at exceeds its minimum by at least . Both facts follow from strong convexity along geodesics, first on midpoints of a minimizing sequence and then along the segment from to [14, 55]. Averaging the inequality at gives . Apply (14) to and extend the weights by zero to the added vertices. Cauchy–Schwarz bounds the weighted deviations from the mean by the last term of (13).
Turning successful inputs into independent wires
On a good input each bit of an array appears at two prescribed terminals. The bits need not be independent, and the network may produce an incorrect output on other inputs. To charge a price for the bits that do appear, allow a central source at to select the local tables for a good input. A pin is the index of one such choice at a vertex, incorporating all choices at that vertex. Lemma 8.3 charges for transmitting the pins and credits each terminal pair with the new information in its bit. Write for Shannon entropy in bits.
Lemma 8.3 (Entropy at paired terminals). Let a network have pairs of indicated vertices (terminals) , , and let be a random binary vector. For each in its support, suppose pins at the vertices make the contracted tensor over the rationals equal to a nonzero scalar multiple of
For every placement in , every , and every ordering of the coordinates, numbered in that order, we have
Proof. To apply the price comparison we must extract a product of independent equality wires. Over many uses the two endpoints of pair see the same binary column. We assign a label to that column so that the labels can be chosen independently, at a rate approaching the conditional entropy of coordinate . It suffices by continuity to treat a rational probability law on the given support. Take the tensor product of copies of the network, allowing joint local maps at each vertex, and take through multiples of a common denominator of . We use arrays of payloads having joint type , meaning that each occurs exactly times. The number of possible th columns compatible with a fixed prefix of the prescribed type is
Each such extension still has the prescribed prefix type and can be continued to a full array. The type-counting estimate gives [20 Theorem 11.1.3].
We need a map of the th column alone, since its endpoints see only that column. Put . There is a coloring of the binary -columns by colors such that every compatible prefix admits every color as an extension. Indeed, if , independent uniform colors miss a given color among the extensions with probability at most . There are at most prefixes and colors, so the union bound applies for large with fixed. For the claim is immediate. Choosing columns successively, every tuple of colors has a preimage array of type . Fix one such array for each tuple.
We now supply exactly the arrays selected by these labels. At each array determines a stream of pins whose type is the law of . There are at most such streams, so a wire of bits from a new vertex at can supply its index. A basis index for a stream selects at the tensor product of its prescribed local tables. This defines a linear local map by extension from the basis indices. At form the sum, over the color tuples, of the basis vectors for their joint pin indices. Distinct selected arrays give distinct pin streams somewhere in the network, because the pins determine every displayed bit. Each selected array has the same output scalar , where is the one-copy scalar. Divide the tensor at by . Applying the coloring map at both ends of every column now gives each possible tuple of labels exactly once, with coefficient one. The output is therefore the product of -bit equality wires between and .
The original edges have total cost . Including the wires from , the cost comparison using (10) reads
Divide by and let tend to infinity. □
The price gap for partial transposition
Proof of Theorem 8.1. Write and for row and column terminals. Take uniform on the good arrays. At terminal , pin its row and copy it to both the input and fresh external indices there. The resulting tensor has a pair of external copies of every bit of , at its row and column (Figure 4). It suffices to consider networks with vertices.

Figure 4. An array bit in position (2, 1) appears at row terminal and column terminal . Over many uses, Lemma 8.3 turns these paired copies into independent wires, with a rate for each pair given by its conditional entropy. The prices shown are per use, with as grows. Three rows and columns illustrate the pairing.
In the placement of Lemma 8.2 with the error in pricing all terminal-pair distances at one unit, in any sum with weights in , is . Thus the left side of (15) is up to by the chain rule. Since row entropies are at most , we can use (13) on the right side at a cost of for delivering pins (recall all the relevant weights are nonnegative and vanish off row terminals). We obtain
The gap is strictly positive, while by the distinct terminal assumption. The network must therefore have vertices.
From adaptive heads to a network
Theorem 8.4 (Transposition on a subset of inputs). Assume Weak ETH and fix . On a fixed deterministic multitape machine , suppose that by time it has halted with the correct transpose on a fraction at least of all binary matrices. Inputs and outputs occupy prescribed contiguous intervals in row-major order. The initial machine configuration may include auxiliary data fixed independently of the matrix. Then, at every sufficiently large side length ,
The constants and threshold are uniform over the auxiliary data. In particular the bound holds for the worst-case time of an exact transposition machine.
Proof. Fix the auxiliary data and let be the matrices correctly transposed by time . We may assume . Divide each tape into blocks of consecutive cells and the first steps into epochs of steps. Use at least one epoch, pad the final epoch, and freeze each halted configuration while enforcing the deadline.
At each epoch boundary record just the block containing each head. A head’s recorded block number changes by at most one per epoch, so there are at most records with the fixed starting positions. Keep a record shared by the largest number of inputs in . The fraction of all matrices in this set is at least
Choose any fixed between and . Since , the fraction is at least for all sufficiently large . Individual head offsets and scanned symbols can still differ on these inputs.
Build a network with one vertex per epoch, using the recorded block numbers to specify the graph (compare the blocking method of [32]). During an epoch a head can meet only its starting block and its two neighbors. For each of these blocks carry its contents after the epoch to the next epoch in whose neighborhood it appears. Pass the control state and each head’s offset in its boundary block to the next epoch. The contents of a block require bits and all offsets and control information require bits. Figure 5 shows how an epoch can pass the contents of a block directly over an intervening epoch that cannot reach it.

Figure 5. Four epochs on one tape, each labeled by the blocks it may reach. The horizontal edges communicate the controller state and head offset at successive boundaries. The lower edges carry the contents of block 4 between possible uses. A head starting in block 6 during Epoch 3 cannot reach block 4 in steps, so its contents pass directly from Epoch 2 to Epoch 4.
The local table for an epoch is the indicator of a legal internal run with the specified incoming and outgoing block contents, states and head positions. Feed each block its initial contents at first use and read its final contents at last use. Any unused block whose initial contents affect the output can pass them through directly. The final state must be halted by the deadline. Thus local runs with matching boundary data concatenate to an actual machine run, and every run that halts by the deadline with this record satisfies the local relations. By determinism, on each selected input the network has support only at the correct output, with positive coefficient.
The fixed tape count bounds the number of incident bundles per epoch. Use a distinct terminal for each row and column. An external string crossing a block boundary is joined from at most two consecutive blocks, and a block meets at most two such strings at either interface. These extra vertices preserve bounded degree. In total there are vertices, with all widths . Applying Theorem 8.1 at density gives
as required. □
Proof of the multiplication lower bound in Theorem 1.2. Let be the worst-case time of a fixed exact multiplier on two -bit operands. Given , the reduction of Harvey and van der Hoeven [29 full version, Corollaries 6.2 and 6.3] transposes a bit matrix of side in
steps. In that reduction, padding to a larger dyadic length is followed by splitting each padded multiplication into a bounded number of calls at length . Thus the bound uses the actual value at the specified length. Copying, padding and adapting the ordinary binary input and output conventions here take additional steps.
Use as auxiliary data in Theorem 8.4, with . The lower bound on the resulting transposer is uniform in . Since and , it follows that at every sufficiently large .
References
References
- [1]M. Adler, N. J. A. Harvey, K. Jain, R. Kleinberg, and A. R. Lehman. On the capacity of information networks. In SODA 2006, pages 241–250, 2006.
- [2]Peyman Afshani, Casper Benjamin Freksen, Lior Kamma, and Kasper Green Larsen. Lower bounds for multiplication via network coding. In 46th International Colloquium on Automata, Languages, and Programming (ICALP 2019), volume 132 of Leibniz International Proceedings in Informatics, pages 10:1–10:12. Schloss Dagstuhl, 2019.arxiv.org/abs/1902.10935
- [3]Josh Alman and Kevin Rao. Faster Walsh–Hadamard and discrete Fourier transforms from matrix non-rigidity. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing, pages 455–462. ACM, 2023.arxiv.org/abs/2211.06459
- [4]Noga Alon. The Shannon capacity of a union. Combinatorica, 18(3):301–310, 1998.DOI
- [5]R. C. Baker, G. Harman, and J. Pintz. The difference between consecutive primes, II. Proceedings of the London Mathematical Society, 83(3):532–562, 2001.DOI
- [6]Ziv Bar-Yossef, Yitzhak Birk, T. S. Jayram, and Tomer Kol. Index coding with side information. In Proceedings of the 47th Annual IEEE Symposium on Foundations of Computer Science, pages 197–206. IEEE Computer Society, 2006.
- [7]V. E. Beneš. Optimal rearrangeable multistage connecting networks. Bell System Technical Journal, 43(4):1641–1656, 1964.DOI
- [8]Dominic W. Berry, Andrew M. Childs, Richard Cleve, Robin Kothari, and Rolando D. Somma. Exponential improvement in precision for simulating sparse Hamiltonians. In STOC 2014, 2014. arXiv:1312.1414.DOI
- [9]L. I. Bluestein. A linear filtering approach to the computation of discrete Fourier transform. IEEE Transactions on Audio and Electroacoustics, 18(4):451–455, 1970.DOI
- [10]Gilles Brassard, Peter Høyer, Michele Mosca, and Alain Tapp. Quantum amplitude amplification and estimation. In Quantum computation and information, volume 305 of Contemp. Math., pages 53–74. Amer. Math. Soc., 2002.
- [11]M. Braverman and Z. He. The multiple unicast conjecture is false. arXiv:2610.10108, 2026.arxiv.org/abs/2610.10108
- [12]Richard P. Brent. Fast multiple-precision evaluation of elementary functions. Journal of the ACM, 23(2):242–251, 1976.
- [13]Richard P. Brent. The complexity of multiple-precision arithmetic. In R. S. Anderssen and R. P. Brent, editors, The Complexity of Computational Problem Solving, pages 126–165. University of Queensland Press, Brisbane, 1976. Author’s edition.
- [14]Martin R. Bridson and André Haefliger. Metric Spaces of Non-Positive Curvature, volume 319 of Grundlehren der mathematischen Wissenschaften. Springer, Berlin, 1999.DOI
- [15]Jerry Chen and contributors. Shared wires and two helper splits for integer multiplication. Integer Multiplication Bounds project, 2026. Construction and contributor credits, parameter certificate and assumptions.
- [16]Claude (Anthropic). A 2^{o(n)} time algorithm for 3-SAT. Hexagon preprint 2610.00577v1, October 27, 2026. https://hexagonmath.org/2610.00577v1.
- [17]Stephen A. Cook. On the minimum computation time of functions. PhD thesis, Harvard University, 1966. Chapter III.
- [18]Stephen A. Cook and Stål O. Aanderaa. On the minimum computation time of functions. Trans. Amer. Math. Soc., 142:291–314, 1969.DOI
- [19]James W. Cooley and John W. Tukey. An algorithm for the machine calculation of complex Fourier series. Mathematics of Computation, 19(90):297–301, 1965.DOI
- [20]Thomas M. Cover and Joy A. Thomas. Elements of Information Theory. Wiley, second edition, 2006.
- [21]Anindya De, P. P. Kurur, Chandan Saha, and Ramprasad Saptharishi. Fast integer multiplication using modular arithmetic. SIAM Journal on Computing, 42(2):685–699, 2013.
- [22]Peter Frankl and Richard M. Wilson. Intersection theorems with geometric consequences. Combinatorica, 1(4):357–368, 1981.DOI
- [23]J. Friedman. A proof of Alon’s second eigenvalue conjecture and related problems. Mem. Amer. Math. Soc., 195(910), 2008.DOI
- [24]Martin Fürer. Faster integer multiplication. SIAM Journal on Computing, 39(3):979–1005, 2009. Conference version in STOC 2007, pp. 57–66.
- [25]I. J. Good. The interaction algorithm and practical Fourier analysis. Journal of the Royal Statistical Society, Series B, 20(2):361–372, 1958.
- [26]D. Yu. Grigor’ev. Additive complexity in directed computations. Theoretical Computer Science, 19:39–67, 1982.
- [27]David Harvey and Joris van der Hoeven. Faster integer multiplication using short lattice vectors. In Renate Scheidler and Jonathan Sorenson, editors, Proceedings of the Thirteenth Algorithmic Number Theory Symposium, volume 2 of The Open Book Series, pages 293–310. Mathematical Sciences Publishers, 2019. Preprint posted 22 February 2018.DOI
- [28]David Harvey and Joris van der Hoeven. Integer multiplication in time O(n log n). Annals of Mathematics, 193(2):563–617, 2021.DOI
- [29]David Harvey and Joris van der Hoeven. Integer multiplication is at least as hard as matrix transposition. In 66th Annual IEEE Symposium on Foundations of Computer Science, pages 1366–1381, 2025. Full version, arXiv:2503.22848v1.arxiv.org/abs/2503.22848
- [30]David Harvey, Joris van der Hoeven, and Grégoire Lecerf. Even faster integer multiplication. Journal of Complexity, 36:1–30, 2016.arxiv.org/abs/1407.3360
- [31]Shlomo Hoory, Nathan Linial, and Avi Wigderson. Expander graphs and their applications. Bulletin of the American Mathematical Society, 43:439–561, 2006.DOI
- [32]John Hopcroft, Wolfgang Paul, and Leslie Valiant. On time versus space. Journal of the ACM, 24(2):332–337, 1977.DOI
- [33]Russell Impagliazzo and Ramamohan Paturi. On the complexity of k-SAT. J. Comput. System Sci., 62:367–375, 2001.DOI
- [34]Russell Impagliazzo, Ramamohan Paturi, and Francis Zane. Which problems have strongly exponential complexity? J. Comput. System Sci., 63:512–530, 2001.
- [35]A. Karatsuba and Yu. Ofman. Multiplication of multidigit numbers on automata. Doklady Akademii Nauk SSSR, 145(2):293–294, 1962. English translation in Soviet Physics Doklady 7 (1963), 595–596.
- [36]Halit Ziya Kartal. Exact discrete Fourier transform and convolution with saving 312780997/10¹¹. Big O Speedrun, 2026. Construction, contributor credits, and formal proof.
- [37]Leonid A. Levin. Universal sequential search problems. Problems of Information Transmission, 9 (3):265–266, 1973.
- [38]Eyal Lubetzky and Uri Stav. Nonlinear index coding outperforming the linear optimum. IEEE Transactions on Information Theory, 55(8):3544–3551, 2009. Result numbering refers to the 16-page author preprint, https://arxiv.org/pdf/0806.1919.
- [39]Jiří Matoušek. Thirty-three Miniatures: Mathematical and Algorithmic Applications of Linear Algebra, volume 53 of Student Mathematical Library. American Mathematical Society, 2010. Miniature 29, pp. 141–143.
- [40]Manor Mendel and Assaf Naor. Nonlinear spectral calculus and super-expanders. Publications Mathématiques de l’IHÉS, 119:1–95, 2014.DOI
- [41]MIT Hardness Group, J. Brunner, E. D. Demaine, F. Frei, T. Gomez, M. Hecher, J. Li, and J. Lynch. ETH is dead, long live SH. arXiv:2611.02650, 2026.arxiv.org/abs/2611.02650
- [42]Michele Mosca and Christof Zalka. Exact quantum Fourier transforms and discrete logarithm algorithms. International Journal of Quantum Information, 2:91–100, 2004.DOI
- [43]OpenAI. An explicit power saving for the exact discrete Fourier transform. OpenAI Math Release preprint OAI:An-explicit-power-saving-for-the-exact-discrete-Fourier-transform-September-25-2026, 2026.DOI
- [44]OpenAI. Finite tensor savings and exact Fourier circuits. OpenAI Math Release preprint OAI:Finite-tensor-savings-and-exact-Fourier-circuits-September-25-2026, 2026.DOI
- [45]OpenAI. Integer multiplication below n log n. OpenAI Math Release preprint OAI:Integer-multiplication-below-n-log-n-September-23-2026, 2026.DOI
- [46]OpenAI. The Exponential Time Hypothesis is False. OpenAI Math Release preprint OAI:The-Exponential-Time-Hypothesis-is-False-October-25-2026, 2026.hub.valency.io/works/W_h8uqubsk
- [47]OpenAI. The logarithmic exponent of finite Fourier transforms. OpenAI Math Release preprint OAI:The-logarithmic-exponent-of-finite-Fourier-transforms-November-24-2026, 2026.
- [48]OpenAI. Euclidean geometry in the asymptotic spectrum of tensors. OpenAI Math Release preprint OAI:Euclidean-geometry-in-the-asymptotic-spectrum-of-tensors-November-24-2026, 2026.hub.valency.io/works/W_pmtecmdq
- [49]OpenAI. Circuit lower bounds for Hamiltonian cycle and the permanent. OpenAI Math Release preprint OAI:Circuit-lower-bounds-for-Hamiltonian-cycle-and-the-permanent-November-24-2026, 2026.hub.valency.io/works/W_rp44wyap
- [50]M. S. Paterson, M. J. Fischer, and A. R. Meyer. An improved overlap argument for on-line multiplication. In Complexity of computation, volume 7 of SIAM–AMS Proceedings, pages 97–111. Amer. Math. Soc., 1974.
- [51]Arnold Schönhage and Volker Strassen. Schnelle Multiplikation großer Zahlen. Computing, 7: 281–292, 1971.DOI
- [52]R. E. Stearns and H. B. Hunt, III. Power indices and easier hard problems. Math. Systems Theory, 23:209–225, 1990.DOI
- [53]H.-J. Stoß. Rangierkomplexität von Permutationen. Acta Inform., 2:80–96, 1973.
- [54]Volker Strassen. The asymptotic spectrum of tensors. Journal für die reine und angewandte Mathematik, 384:102–152, 1988.DOI
- [55]Karl-Theodor Sturm. Probability measures on metric spaces of nonpositive curvature. In Heat Kernels and Analysis on Manifolds, Graphs, and Metric Spaces, volume 338 of Contemporary Mathematics, pages 357–390. American Mathematical Society, 2003.DOI
- [56]Jacob Sussman. Mixed-target recursion for the exact discrete Fourier transform and convolution. Big O Speedrun, 2026. Construction and formal proof.
- [57]A. L. Toom. The complexity of a scheme of functional elements simulating the multiplication of integers. Doklady Akademii Nauk SSSR, 150(3):496–498, 1963.
- [58]X. Zhang, B. Li, and Z. Li. Network coding can beat routing in undirected multiple-unicast networks. arXiv:2610.09367, 2026.arxiv.org/abs/2610.09367