Manuscript Offprint
arXiv:2610.20079Undirected Network Coding and Faster External-Memory Integer Sorting
Abstract
Network coding allows intermediate nodes to combine messages, whereas routing only forwards them. The Li–Li conjecture asserts that network coding and fractional routing have the same capacity region in undirected multiple-unicast networks. We give a counterexample to this conjecture and apply it to external-memory integer sorting. Since Aggarwal and Vitter posed the question in 1988, whether integer sorting can beat the external-memory comparison bound has remained a central and extensively studied open problem.
We give a deterministic sorting algorithm: for integers of bits, a memory holding integers, and block transfers of integers, where , the number of block transfers is
where is an absolute constant. In a range of parameter regimes, this bound is asymptotically smaller than the classical comparison-sorting bound. We also use Lean 4 to verify the sorting algorithm’s correctness and complexity bounds, and the strict advantage of coding over routing.
1 Introduction
Network coding allows intermediate nodes to encode messages, whereas routing only forwards them along paths. In 2004, Li and Li proposed the Li–Li conjecture: in an undirected multiple-unicast network carrying independent messages, with the two directions sharing each edge’s capacity, network coding cannot achieve higher rates than fractional routing [LL04]. The conjecture is also closely connected to several important problems in theoretical computer science; if true, it would imply conditional complexity lower bounds, including for external-memory integer sorting [AHJ 06, FHLS19, AFKL19].
In 2026, Zhang, Li, and Li [ZLL26] and Braverman and He [BH26] independently constructed counterexamples in undirected multiple-unicast networks, showing that network coding can strictly outperform fractional routing and thereby refuting the Li–Li conjecture. These counterexamples establish a communication advantage, but invalidating the assumption behind a conditional lower bound does not itself produce a faster algorithm.
External-memory integer sorting is one problem closely tied to the conjecture. The N input integers are stored on disk, memory holds M machine words, and each transfer between disk and memory moves one block of B consecutive words. The I/O complexity is the total number of such block transfers. The optimal classical comparison-sorting bound is [AV88]
In 1988, Aggarwal and Vitter asked whether allowing algorithms to exploit the bits of integer keys could improve on this comparison bound [AV88]. This has long been a central open problem in external-memory algorithms [FHLS19]. Despite substantial progress on integer sorting in internal memory [Han02, HT02], obtaining corresponding external-memory algorithms has remained difficult. Farhadi, Hajiaghayi, Larsen, and Shi [FHLS19] further showed that, if the Li–Li conjecture holds, then even arbitrary bit operations cannot yield an asymptotic improvement over comparison sorting in parameter ranges including . Section 1.1 states the precise conditional lower bound.
We turn the communication advantage of coding into fewer block transfers. We first construct a finite undirected multiple-unicast network in which binary linear coding strictly outperforms fractional routing. We then turn this finite linear construction into an address-field interchange operation, recursively reducing long-field interchanges to short-field interchanges and handling short fields directly with memory buffers. Building on existing recursive field-exchange techniques [Ope26], we combine this operation with Columnsort and most-significant-digit (MSD) radix sorting to obtain a deterministic external-memory integer sorting algorithm.
Specifically, for every , our algorithm sorts integers of bits in
I/Os, where the absolute constant can be taken as . The algorithm is correct for every input, including repeated values, and uses at most words of memory and polynomial disk space. In particular, when and , classical comparison sorting requires I/Os, whereas our algorithm uses . Despite the small exponent, this is an asymptotic improvement.
Formal verification. We use Lean 4 and Mathlib [dMU21, The20] to formalize Theorems 2.1 and 2.2. For sorting, the verification covers termination, correctness, and the bounds on storage and block transfers. For the network construction, it verifies that coding strictly outperforms fractional routing on the same undirected network. Appendix D gives the verification conventions and reproduction instructions.
ChatGPT assisted with exploring the constructions, developing and examining proof arguments, and implementing the Lean formalization; the statement at the end of the paper details this use.
Sections 2–3 give the model, main results, and proof overview. Section 4 constructs the coding counterexample, and Section 5 applies it to address-field interchange. Sections 6–7 construct the sorting algorithm and complete the main proof. The appendices supply memory simulation, fixed-parameter calculations, treatment of general address shapes, and formalization details.
Integer representations have nevertheless yielded I/O improvements for other external-memory problems. Iacono and Pătrașcu (2012) [IP12] used hashing to improve dictionary updates beyond comparison-based bounds and proved a matching lower bound in the external-memory cell-probe model. Jiang and Larsen (2019) [JL19] obtained faster external-memory priority queues supporting the DecreaseKey operation. These results concern different operations and do not themselves improve the I/O bound for general sorting. For general integer sorting, Farhadi, Hajiaghayi, Larsen, and Shi (2019) [FHLS19] established the conditional I/O lower bound discussed below, even allowing arbitrary bit operations.
Our sorting construction uses a different established line of work. Leighton's (1985) Columnsort [Lei85] alternates column sorts with fixed permutations. Chaudhry, Cormen, and Wisniewski (2001) [CCW01] developed an out-of-core implementation, and Chaudhry and Cormen (2006) [CC06] developed Slabpose Columnsort to relax problem-size restrictions for distributed-memory clusters. We retain its sorting framework and accelerate its fixed permutations. The rearrangement method builds on OpenAI's (2026) integer-multiplication work [Ope26], which recursively exploits finite linear-circuit savings to accelerate address-field interchange on a multitape Turing machine. We adapt this method to block transfers through memory-dependent recursion base cases, buffering, padding, and space bounds, then combine it with Columnsort and most-significant-digit radix partitioning.
Lean source code: https://github.com/rtyu-1/coded-sorting-lean.
The multiple-unicast conjecture. Li and Li (2004) [LL04] conjectured that network coding cannot improve the achievable rates of independent multiple-unicast sessions over fractional routing in undirected networks. Subsequent work established special cases under restrictions on network structure and terminal placement [JVY06, HKL06, YLLW18, QT22], and developed geometric and metric approaches [XLWH14, LL25, LQLL26] and frameworks based on relations among sessions [LHWL26, LLFC26]. Related routing results characterize when cut conditions suffice for multiflow in series-parallel networks [CFW12]. The conjecture also became closely connected to computational lower bounds. Adler, Harvey, Jain, Kleinberg, and Lehman (2006) [AHJ+06] first used it to prove conditional lower bounds in several computational models whose access patterns are independent of the input. Farhadi, Hajiaghayi, Larsen, and Shi (2019) [FHLS19] removed this access restriction for external-memory integer sorting: assuming the conjecture, any randomized sorting algorithm with error probability at most 1/3 and key length requires at least
expected I/Os. For example, when , this lower bound matches the classical comparison-sorting bound up to constant factors. Afshani, Freksen, Kamma, and Larsen (2019) [AFKL19] extended this connection to integer multiplication, obtaining conditional lower bounds for constant-degree Boolean circuits and further demonstrating the conjecture's complexity-theoretic significance beyond communication problems.
Recently, Zhang, Li, and Li (2026) [ZLL26] and Braverman and He (2026) [BH26] gave counterexamples to the undirected multiple-unicast conjecture, proving that coding can achieve strictly higher throughput than fractional routing. The former construct a reversible communication process from a completion-time separation; the latter use finite geometry and polynomial evaluation to construct a coding scheme. These results establish the existence of a coding advantage, but refuting the conjecture does not by itself produce a faster sorting algorithm. We further study how such an advantage can reduce data movement in computation: the finite linear construction used here both yields a communication-rate separation and supports recursive address permutations, connecting network-coding constructions to I/O upper bounds for external-memory sorting.
2 Main Results
We write log for the base-2 logarithm and for the natural logarithm. For a positive integer , let .
2.1 The external-memory model and sorting bound
Let be positive integers with . The input consists of integers of bits stored on disk, where . A storage unit of bits is called a machine word, and each input integer occupies one word. The algorithm must write the integers back to disk in nondecreasing order.
Memory holds M words, each disk block contains B consecutive words, and . A block transfer reads one disk block into memory or writes one block from memory to disk. The algorithm may access any disk block, and its complexity is the total number of block transfers.
Disk data must be read into memory before they can participate in computation; computation in memory is not charged as I/O. The algorithm may perform arbitrary bit operations on integers, including combining bits from different integers into intermediate results. Data buffers and mutable workspace count toward the -word memory bound.
The program is fixed from the size parameters, independently of the input values, and its code is excluded from data space. In the narrow-word, small-memory construction, the predetermined execution-step index is also stored outside the words. Appendix D gives the detailed conventions and formalization scope.
The input, output, and intermediate data on disk together occupy at most words for a constant independent of . We call this polynomial disk space. Disk addresses therefore occupy bits, or a constant number of machine words.
Theorem 2.1 (External-memory integer sorting). Under these conventions, there is a constant such that, for every , integers of bits can be sorted deterministically in
block transfers. The algorithm uses at most words of memory and polynomial disk space, and is correct on every input.
Here is independent of ; we take . The factor is the cost of scanning the input. The logarithmic factor in classical sorting is governed mainly by the number of blocks that fit in memory. Our bound depends on both and , reducing the cost when memory holds only a small number of blocks.
Table 1 gives two examples with , both with saving factor .
| Input size () | Classical comparison sorting | This work |
|---|---|---|
Table 1: Improvements for two input sizes, with in both cases.
When the input fits in memory, reading, sorting, and writing it takes the optimal block transfers.
2.2 The communication model and coding counterexample
Let be a finite undirected network. An edge has capacity , shared by the two directions: their transmission rates must sum to at most . The network has unicast sessions. Session has source , sink , and required rate . Source holds a message that sink must recover. The source messages are mutually independent, and the rate vector is .
Under fractional routing, each session may use several source–sink paths. Assign nonnegative flow to the paths of session so that their sum is . For every edge, the total flow on all paths using it must not exceed its capacity; this sum includes both directions and all sessions.
Network coding allows nodes to transmit functions of their source messages and previously received information. Each sink must recover its required message for every source input, giving a zero-error requirement. For fixed network, capacities, and source–sink pairs, the simultaneously achievable rate vectors and their limits form the corresponding capacity region. The Li–Li conjecture asserts that the coding and fractional routing capacity regions coincide. A rate vector achievable by coding but not by routing therefore refutes it.
All edges in our counterexample have unit capacity. We use a finite-round binary linear protocol: every transmitted bit is an XOR of bits already available at the transmitting node, and transmission times and directions are fixed in advance. In each round, each edge carries at most one bit in one direction, computed only from initial messages or information received in earlier rounds. Local computation and storage are unrestricted. If a protocol delivers k bits from each source to its sink in T rounds, its common rate is . Let be the maximum common rate under fractional routing, and let be the supremum of common rates achievable by these binary linear protocols.
The finite construction used in this paper also yields the following communication result.
Theorem 2.2 (A strict coding advantage in undirected networks). There is a finite undirected network with unit edge capacities and independent source messages such that
A finite binary linear block code achieves a common rate strictly above this routing upper bound. The network can also be chosen to be a simple graph.
3 Proof Overview
The central idea is to use a coding circuit for data rearrangement. The same circuit can deliver independent messages to their destinations and break a large array-movement task into subtasks that each handle less data. We first explain the movement needed for sorting, then show why a coding counterexample provides an implementation using fewer block transfers.
3.1 Rearrangement in sorting
Arrange the input integers in a table, storing each column contiguously on disk. Sorting every column does not necessarily remove inversions between columns. Classical Columnsort alternates sorting columns with prescribed rearrangements that redistribute the data among new columns. These movements bring integers from different original columns together for comparison. Executing the column sorts and movements in the prescribed order produces a sorted sequence.
A rearrangement moves data from their original positions to other positions while preserving every value. Figure 1 illustrates a row–column interchange: each destination is determined by the original row and column indices, independently of the data values. The new columns contain integers from different original columns, allowing subsequent column sorts to compare previously separated values.
We accelerate these movements determined by position. The algorithm may form linear combinations of integer bits along the way, but ultimately restores the input integer that belongs at each destination. The rearrangements required by Columnsort have a special structure: they can be expressed using a constant number of exchanges of two fields in an address, together with sequential scans.
(a) Fixed rearrangement
| 8 | 3 |
|---|---|
| 6 | 1 |
Transpose
| 8 | 6 |
|---|---|
| 3 | 1 |
(b) Column sorts and rearrangement
| 9 | 2 | 7 |
|---|---|---|
| 4 | 8 | 1 |
| 6 | 3 | 5 |
Sort
| 4 | 2 | 1 |
|---|---|---|
| 6 | 3 | 5 |
| 9 | 8 | 7 |
Transpose
| 4 | 6 | 9 |
|---|---|---|
| 2 | 3 | 8 |
| 1 | 5 | 7 |
Sort
| 1 | 3 | 7 |
|---|---|---|
| 2 | 5 | 8 |
| 4 | 6 | 9 |
Figure 1: (a) A fixed position interchange preserves values. (b) Colors identify original columns; rearrangement brings different colors into the same column. The figure illustrates the operations only; Section 6 gives the full Columnsort procedure.
3.2 Circuits and the coding counterexample
A coding counterexample requires both a scheme recovering every message and a proof that routing on the same network cannot achieve its rate. A finite circuit specifies a predetermined sequence of XOR operations. Bits may be mixed in intermediate steps, but each original bit must reach its designated output. Turning the circuit wires into network edges gives a coding scheme; assigning matrix labels to nodes will bound the routing rate.
Figure 2(a) illustrates the circuit's input–output requirement. The three registers A, B, C are storage locations holding one bit each, initially x, y, z. Each horizontal line follows one register, and operations proceed from left to right. A black dot and an ⊕ on the same vertical line form a gate: the black-dot value is unchanged, and the ⊕ value is XORed with it. For example, the first gate changes C from z to .
For every input , the six gates produce . Register assists communication during the computation and is therefore called an auxiliary register. Its initial value may be arbitrary and is restored to at the end. Thus an auxiliary register can also carry an independent message and need not start at zero.
Figure 2(b) turns each gate into a node, and wire segments between successive gates or endpoints on a register into unit-capacity undirected edges. Three sessions deliver to the destinations bearing the same letters. Nodes receive, compute, and transmit in circuit order, recovering every message. This example only illustrates the correspondence between a circuit and a communication scheme; a coding advantage additionally requires a circuit whose associated network cannot route at the same rate.
Assign each node an matrix, requiring the sink matrix minus the source matrix of each message to equal the identity . Define an edge's length as the rank of the difference between its endpoint matrices. These lengths are used to bound routing; the actual edge capacities remain one. Let there be independent messages, and let be the sum of all edge lengths. The circuit and labels in Section 4 satisfy
The matrix differences along any source–sink path sum to . Subadditivity of rank therefore makes every such path at least long, including paths that run against the circuit's time direction. Routing all messages at common rate requires total length at least , while the edge capacities supply only . Hence .
By contrast, pipeline repeated circuit executions so that each edge transmits at most one bit
(a) Three registers, six gates
Execution order

(b) The corresponding undirected network

Figure 2: A three-register example and its network. Colors distinguish register wires. Node below represents gate j above; an edge represents a wire segment between consecutive gates or endpoints.
per round. For a fixed startup delay , each source can deliver bits in at most rounds. The coding rate approaches one and thus eventually exceeds the strictly smaller routing upper bound.
Where the strict saving comes from. The construction pairs two groups of data registers and exchanges their contents, while restoring every auxiliary register. At the endpoints, rank-one projection matrices make each pair of data wires cost instead of , while preserving the required difference for each source–sink pair. The challenge is to extend these endpoint labels through gates shared by several wires. We use nested subspaces so that rank costs telescope along data and side wires; only the central auxiliary wires incur a controlled extra cost. With , the construction has data pairs, giving a saving of , whereas the extra cost is . Thus
The strict inequality follows because for these parameters. Section 4.2 explains how the subspaces agree at every shared gate; Section 4.3 completes the accounting.
3.3 Using coding to accelerate address interchange
An array element's address is its position numbered from zero; a consecutive group of digits in its representation is a field. Exchanging two fields specifies each element's new position while keeping the other fields fixed. In Figure 3, the element at position 28 moves to position 42. If its original value is 7, it remains 7 after the move: rearrangement changes positions and preserves values.

Figure 3: A binary address divided into five fields. The colored fields are interchanged; the gray fields stay in place.
Let H, D be the two fields to exchange. Fix the other address coordinates, viewing H as a column index and D as a row index. The task is to move the value at to . If each field has Q possible values, perform the following updates modulo Q:
An initial position becomes , then , then , completing the exchange. The first and last steps leave the column index unchanged and use only within-column cyclic shifts or reversals, which can be implemented by scans. We accelerate the middle, intercolumn movement .
To use matrices, split each of into equal-width short fields, denoted and , each with possible values. Applying the three updates modulo to every pair also exchanges all of . Below, means the coordinatewise updates . Addresses use a suitable fixed radix so that rational matrix coefficients can act modulo the field range. Data remain bits, and gates still perform XOR. Modular address arithmetic arranges positions, whereas XOR combines data values. Section 5 gives the radix choice and the conversion back to binary addresses.
Distribute the array among the circuit's W inputs. The address portion preceding the two exchanged fields is the prefix, shown in gray at the left of Figure 3. A fixed prefix identifies a contiguous segment containing every combination of the two field values. First assume that the number of segments is divisible by W. Divide the equal-length segments into W equal groups, ordered within each group by segment number. Each group is a data stream of length 1/W of the array.
Each input bit of the circuit now corresponds to a stream. Running the original circuit at each position—sequentially reading the relevant streams, XORing corresponding bits, and writing them out—recovers each input stream at its designated output. We additionally rearrange streams along edges so that the recovered bits occupy their intended new positions.
As Figure 4 shows, bits remain aligned for XOR whenever all streams at a node use the same permutation. A node's matrix label C specifies this permutation: logical position is stored at . To move from a node labeled C to one labeled , first increase the column index by , then perform the receiving node's XOR.

Figure 4: Rearrangement and XOR at one gate. After a common permutation, equally indexed still occupy corresponding cells, so the gate computes . The segment and other short fields are fixed; only are shown, with illustrating .
Every bit eventually recovers its original value. Its position change is determined by the sink matrix minus the source matrix, which equals , so the output column index increases by exactly D. Restoring the original segment order completes ; the first and last scans then complete the field exchange.
If has rank r, a matrix factorization reduces the edge's change of permutation to r short-field interchanges and scans. A child interchange moves only the values currently in one stream, including XOR results. If the fields are still too long, apply the same construction to that stream. Each recursive level reduces field width by a factor of m and data volume by a factor of W.
Suppose the current array contains V bits. Ordinary pairwise exchange uses m short-field interchanges, each on the entire array, for total child volume mV. The coding construction produces S child interchanges, each on a stream of V/W bits, for total volume SV/W. By (4), : the field widths shrink by the same factor, but coding passes less data to the next level. Each child moves only one stream rather than the whole array. Section 4 strengthens the inequality to , so these savings accumulate over recursive levels to give a cost with exponent .
When the fields have shrunk to bits, the buffers for grouping by field values fit in memory, and scans complete the interchange directly. Only these buffer blocks must fit; the full stream may remain on disk. If the prefix is too short to supply enough segments, borrow a few high-order digits from the fields, process the remaining digits, and then move the borrowed digits to their destinations. Section 5 and the appendices handle these arrangements, general field widths and segment counts, and the buffering and recursion overhead.
3.4 From rearrangement to sorting
For an array of at most integers, use the Columnsort procedure introduced above. Column sorts recursively handle shorter columns until they fit in memory, while fixed intercolumn rearrangements invoke the coded address interchange. A suitable table shape gives constant recursion depth. Section 6 proves correctness and the local sorting bound
For larger inputs, use most-significant-digit radix sorting: partition by the highest bit group, then process the next bit group within each bucket. High-order bits already determine the order between buckets. Once a bucket is small enough, sort it with the local algorithm. If every bit group has been processed, all its integers are equal and recursion can also stop.
One partition first divides the input into subarrays of size and sorts each by the current bit group. Each group value then occupies at most one contiguous interval per subarray. Store the start and length of each interval, then concatenate intervals having the same bit-group value to form a bucket. Choosing bits per round keeps the number of intervals small enough that concatenation and boundary handling cost only a scan.
Buckets at the same recursion depth are disjoint and contain at most N integers altogether. The local sorting bound controls each level's cost. Since each integer has bits, there are levels. Combining these bounds yields
block transfers. For , the local bound also implies this bound. Section 7 supplies the partition and recursion analysis and combines it with direct sorting for bounded memory parameters to complete the main proof.
4 A Counterexample to the Undirected Multiple-Unicast Conjecture
This section proves Theorem 2.2. We first construct a linear circuit that exchanges two collections of inputs and interpret its connections as an undirected communication network. We then assign matrix labels to the network to show that every routing scheme has a common rate strictly below an achievable coding rate. The same matrix relations will accelerate address interchange in the next section. The basic block and its subspace labels adapt the finite linear construction of OpenAI [Ope26, Section 3]; we give the construction and the numerical certificate needed by our I/O analysis explicitly.
Our circuits consist of registers and XOR gates. Each register stores one bit. A gate reads the current values of specified registers and updates some of them according to a prescribed linear rule; registers not updated retain their values. A gate acting on registers is thus a map . We specify its action directly by register names: for example, replaces by the XOR of the two current values and leaves unchanged. The circuit executes its gates in a predetermined order.
In the circuit diagram, each gate is a vertex. For each register, wires connect the gates involving it in execution order, with an input and an output at the two ends of this path. A wire entering a gate carries the value before the update, and the outgoing wire carries the value after it. Thus a register persists along a path of wire segments, and its value may change at a gate. All wires participating in a gate meet at its vertex, which computes the register value for each outgoing wire.
To compare coding with routing, regard every wire segment as an undirected edge of unit capacity, obtaining a graph . Write for the input and output of register path . If the circuit sends all initial values to the outputs according to a permutation , create the sessions and give the sources independent messages. The gate computations specify how to encode these messages. Routing may use an edge in either direction, with the two directions sharing its capacity; the circuit order specifies only how this particular coding scheme runs. Edges belonging to different register paths are retained separately, so the graph may contain parallel edges.
4.1 The Coding Scheme
We wish to exchange two collections of paired inputs X, Y. The three updates , , and perform this exchange, where addition is coordinatewise XOR. The construction therefore centers on a basic block that leaves one collection unchanged and adds it coordinatewise to the other.
Let be the family of three-element subsets of , where , and put . Each data collection in the full circuit has registers, indexed by triples and denoted by . Each coordinate is a three-element subset; the three subsets need not be distinct. The construction also uses auxiliary registers, whose initial values are collectively denoted by .
Lemma 4.1 (Correctness of the coding circuit). There is a finite binary linear circuit that, for arbitrary data and auxiliary initial values, implements
Proof. We first construct a basic block on pairs of registers, with bit values and . The block shares XOR sums among several targets and then cancels the terms that each target does not need. Specifically, let . Adding the three shared sums to contributes each exactly times. The desired input occurs three times and leaves one copy. Every other input cancels when the intersection has size zero or two; when it has size one, one additional copy cancels the unwanted term. Thus, over ,
To compute these shared sums and correction terms, introduce a central register for each and a side register for each ordered pair with . Their initial values are also circuit inputs and cannot be assumed to be zero. Each basic block must restore every auxiliary register to its own initial value.
Figure 5 fixes the connections of the basic block. We use two sets of gate operations on this graph, implementing and , respectively. The first set follows the gate numbering in the figure:
(1) Gates 0, 1 add the initial side-register and central-register values, respectively, to each .
(2) Gates 2, 3 perform and , respectively.
(3) Gates 4, 5 again add the current central-register and side-register values, respectively, to each .
(4) Gates 6, 7 repeat the updates to the central and side registers, respectively, restoring their initial values.
Here contributes only to , and contributes to all with . Adding the auxiliary values twice cancels their initial values, and (5) shows that the remaining contribution is exactly . Throughout these operations, remains unchanged.
The second set is obtained by executing the first set in reverse order, exchanging the x, y interfaces and the indices S, T, and then renumbering the gates as in their new execution order. Each gate leaves its control registers unchanged and adds their XOR sums to its target

Figure 5: The basic-block circuit, with wire values for the update . One representative of each wire type is shown; let range over and over to obtain all wires, with a side register only when . The symbols denote XOR-update gates, executed in the order : gates are created for each , and for each ; each of is a single shared gate. When expanding the wires, gate symbols with the same name are merged into one gate; crossings without a gate symbol are not junctions. Here are arbitrary auxiliary initial values and . On the upper wire, denotes the value after gate : , , and . Open squares mark the inputs and outputs of the block's data wires; filled squares mark those of its auxiliary wires.
registers, so . After renumbering, both sets have the connections shown in Figure 5, but the update rule at a given gate number is different. To specify the second set explicitly, let . Its four steps are:
(1) Gates 0, 1 perform and , respectively.
(2) Gates 2, 3 add the current side-register and central-register values, respectively, to each .
(3) Gates 4, 5 repeat the updates to the central and side registers, respectively, restoring their initial values.
(4) Gates 6, 7 again add the restored central-register and side-register values, respectively, to each .
In this set, contributes to , and contributes to all with . Each auxiliary initial value still appears twice. Exchanging in (5) shows that exactly is added to each . Both sets therefore implement their prescribed updates and restore all auxiliary initial values.
We now connect three rounds of basic blocks. Triple indices allow the rounds to use different groupings; repeating the same grouping would only repeat computations within disconnected small blocks. In the first round, fix and let range over T within each group, using the first set of operations to update Y. In the second round, fix and vary , using the second set to update X. In the third round, fix and vary , again using the first set to update Y. Each round processes all groups. The two fixed coordinates determine a unique group for each pair of registers, so every pair participates in exactly one block per round.
Different blocks use separate auxiliary registers. Connect consecutive rounds along each data-register path; the data interfaces in the figure serve only as connection points and do not become additional vertices. The three rounds give
Each block restores its auxiliary initial values, proving the required permutation.
Convert this circuit into an undirected network as described at the beginning of the section. Pair the input of the path with the output of the path, and the input of the path with the output of the path. Pair each auxiliary path's input with its own output. All input and output vertices have degree one. In the network, auxiliary inputs are also independent source messages that must reach their respective sinks. Lemma 4.1, which holds for arbitrary auxiliary initial values, guarantees precisely this requirement. Let be the total number of registers and the resulting input permutation.
4.2 Matrix Labels
To prove a coding advantage, we must also show that the network’s routing rate is below one. We assign edge lengths used only in the proof, so that every path between a paired source and sink has length at least m, while the sum of all edge lengths is . Routing all W sessions at a common rate r then consumes at least units of weighted capacity. Unit edge capacities provide only S units in total, yielding .
Matrix labels produce these lengths. Assign a matrix to each vertex and define the length of an edge as . If the matrices at each paired source and sink differ by , summing matrix differences along any connecting path and applying rank subadditivity gives a path length of at least . It remains to control the sum of all edge lengths. These rational matrices analyze routing; the circuit itself still performs XOR operations over .
We retain the parameter from Section 4.1: the ground set has elements, and is its family of three-element subsets, of size .
Lemma 4.2 (Matrix labels). Let . Each vertex of the network above admits a rational matrix such that every session satisfies
and the total rank of the edge differences is
We first explain how the endpoint labels provide a saving, then construct internal labels whose additional cost is smaller than that saving. Section 4.3 completes the total-rank calculation.
Endpoint labels. We organize the labels using projection matrices. Let . If is a direct-sum decomposition, every vector has a unique expression , with and . The projection is defined by . Its matrix satisfies and rank .
For each data index a, we will choose a one-dimensional subspace and set
Assign 0, to each auxiliary source and sink, respectively. A session pairs the input of with the output of , so its endpoint difference is . Every other session also has endpoint difference .
This arrangement saves one unit of length per pair of data paths. We will choose the projections consistently so that nested subspaces satisfy
Suppose the first gate on is labeled and the subspaces then grow along the path to . The first edge has matrix difference . Over the rationals, multiplication by a nonzero scalar preserves rank, so its length is . Subsequent edges have total length , giving for the whole path. If the subspaces on grow from zero to the image of , their edge lengths sum to . Thus the pair costs , one less than two full increases of dimensions. There are data pairs, giving the saving term in the lemma.
The difficulty is that paths meeting at the same gate must share one matrix label, so their labels cannot be chosen independently. The construction below makes the subspaces nondecreasing on data and side paths, with just one controlled decrease on each central path. Decreases add to the total edge length; their cost must remain below the saving from the endpoint labels.
Constructing the subspaces. To make labels agree where paths meet, we use the condition defining side paths: exists only when . We first turn this condition into orthogonality between vectors.
Let . For each , let be its indicator vector: coordinate is 1 when , and 0 otherwise. The ordinary dot product satisfies . To obtain zero when the intersection has size one, define
where is the all-ones matrix. Since each contain three elements, , and hence
We call two vectors orthogonal when their pairing is zero. Thus the condition for a side path makes and orthogonal.
The matrix is symmetric and invertible: its eigenvalues 1 and are nonzero. Such a pairing is called a nondegenerate symmetric bilinear form; nondegeneracy means that only the zero vector is orthogonal to the entire space. For a subspace , its orthogonal complement consists of the vectors orthogonal to every vector in . We call nondegenerate if .
Let , a one-dimensional subspace. Since , a vector orthogonal to all of must satisfy . Thus is nondegenerate. Moreover,
This inclusion will be used to assign labels along side paths.
We next combine the spaces for the three data coordinates so that each round can enlarge one coordinate. Index the coordinates of by triples . For any , define
The symbol denotes the tensor product. These vectors span , so we also write . For subspaces, denotes the span of all vectors with . The two-factor case is defined in the same way.
Use the pairing on each copy of to define the pairing on : for any , set
and extend bilinearly to all of . The resulting form is again symmetric and nondegenerate. We can now choose the one-dimensional subspaces needed at the endpoints:
The displayed generator has self-pairing , so is nondegenerate.
All projections below are defined along orthogonal complements. In a finite-dimensional space with a nondegenerate form, . For a nondegenerate subspace , the zero intersection and dimension sum therefore give , making uniquely defined. These projections satisfy
where both and must be nondegenerate. The second identity gives the required rank formula. The endpoint label is also equal to .
Internal labels. The three rounds are intended to enlarge the subspace on from to , replacing one factor by in each round. At round boundaries, uses the part of the corresponding subspace orthogonal to . It therefore starts at zero and ends at .
Fix a basic block in round . Let denote the enlarged space of the preceding coordinates, and let be their original one-dimensional subspace. Let be the one-dimensional space retained by the later, unprocessed coordinates. Explicitly,
Here denotes the tensor product of copies of , and an empty tensor product is . Put , with the orthogonal complement taken within . Then ; in the first round, .
Assign the gate subspaces in Table 2, using their projections as the matrix labels of the gate vertices. The table omits the common tensor factor , and all direct sums are orthogonal.
| Gate | Subspace (common tensor factor omitted) |
|---|---|
Table 2: Gate subspaces of the basic block. Each listed subspace is tensored with .
These spaces are tensor products or orthogonal direct sums of nondegenerate spaces, so their projections are well-defined. All paths incident to a gate share its label. The assignment depends only on the connections specified in Section 4.1, so it applies to both sets of gate operations used in the three rounds.
We now verify the required properties. A data path X visits gates 2, 3, 6, 7. Its subspaces are nondecreasing and enlarge the current factor from to E. Its first gate in the first round has subspace , so the edge from the source label has length one. A data path Y visits gates 0, 1, 4, 5, also with nondecreasing subspaces. At the end of each round, its subspace is exactly the intersection of the corresponding X subspace with . The three rounds therefore connect consistently and reach the prescribed sink labels.
A side path visits . Omitting the common factor Q, its key inclusion is
This follows from the side-path condition . Thus the subspaces on side paths are also nondecreasing. This is precisely where converting the connection condition into orthogonality is used.
A central path visits gates 1, 3, 4, 6. Its only decrease occurs from 3 to 4, from to , losing the subspace . Since and are one-dimensional, this decrease is exactly dimensions. All auxiliary paths start at zero and end at , introducing no other decreases.
The endpoint condition is now satisfied, and dimension changes telescope along data and side paths. To compute total rank, it remains to add the cost of the decreases on central paths to the endpoint accounting. Section 4.3 sums these costs to obtain , completing the proof of the lemma.
4.3 A Strict Saving in Total Rank
The preceding subsection identifies two contributions: endpoint labels save length on data paths, whereas subspace decreases add length on central paths. We now total these contributions, prove that the saving remains positive, and express the gap in the form needed for the address-interchange recursion.
Proof of Lemma 4.2. The endpoint condition was verified when the labels were assigned. Put and , the number of three-element subsets intersecting a fixed one in exactly one element. The three rounds contain basic blocks, each using vz side registers and d central registers. Hence
Here is the sum of all dimension decreases: every block has d central paths, each losing d dimensions.
Section 4.2 shows that each pair of data paths has total length , including the first edge of length one at the negative source label. The pairs therefore save relative to .
The remaining paths are auxiliary paths, with endpoint labels and signed dimension change each. Edge lengths use absolute changes, so every lost dimension adds two to this net change. Only central paths decrease, by dimensions in total. The auxiliary paths thus have total length . Adding the contributions gives
For , we have , proving .
Each level of the next section’s recursion divides field width by m and multiplies the total data volume passed to its children by S/W. A bound with field-width exponent requires . The following explicit constants satisfy this requirement.
Corollary 4.3 (Fixed parameters for the recursion). Take , , , and . The circuit above permutes all inputs, restores arbitrary auxiliary initial values, and has matrix labels satisfying (6), with
Proof. Substitution into (10) gives . Appendix B verifies using rational arithmetic, so .
4.4 Proof of the Coding Advantage
Lemma 4.1 supplies the coding computation, and Lemma 4.2 supplies the matrix labels that bound routing. We now combine them to prove Theorem 2.2 from the main results.
Proof of Theorem 2.2. Give each edge uw length . These lengths are used only in the proof; a zero-length edge still has unit capacity. Along any undirected path , the matrix differences sum to , so
Traversing an edge in reverse only negates its matrix difference and does not change its rank. For a common routing rate r, let be the flow of session i on path P. The unit edge-capacity constraints imply
Therefore,
Coding, in contrast, approaches common rate one by pipelining. Schedule one execution of the circuit in gate order. Suppose it takes rounds, with each edge sending one bit only in round . Give each source independent bits and delay the execution of batch by rounds, for . Each edge then sends once in each of consecutive rounds, respecting capacity and the causal order within every batch. All messages arrive within at most rounds, giving common rate at least . Choosing
(13) gives a finite-round binary linear protocol with rate strictly above the routing bound . Letting yields , while the unit-capacity cut at any source leaf gives .
If the graph has parallel edges, insert a private vertex into every edge and set . Both new edges have capacity one, and their lengths sum to the original length. The new vertex only forwards information, so coding still has a constant startup delay and the routing bound is unchanged. Thus the network can be chosen to be simple. Substituting from Corollary 4.3 proves the stated gap.
The next section uses the same total-rank saving to accelerate address interchange. The inequality in Corollary 4.3 will determine the recursion exponent.
5 Address-Field Interchange
Sorting repeatedly moves data to the positions needed for subsequent comparisons. We use coding to accelerate one fixed permutation: interchanging two fields of an array address. The sorting algorithms below require only this operation, sequential scans, and sorting in memory.
5.1 The interchange operation
Write each bit position as , stored in lexicographic order, with varying fastest. Here is the prefix before the two fields, is the coordinate between them, and is the suffix; all three remain unchanged. An address-field interchange moves the bit at to and leaves the other coordinates unchanged. If contains all bits of a record, the record moves as a whole. The permutation is independent of key values. Intermediate steps may use coding, but the final result must preserve every bit's value. Figure 6 illustrates .
Address
Record value


Figure 6: Interchanging two address fields preserves the record value. The fields are 01 and 10; the other coordinates p, g, z remain unchanged.
Let and , where . The denominator corresponds to the field width that memory buffers can handle directly.
Lemma 5.1 (Block transfers for address-field interchange). There is a fixed constant such that, for , the interchange above on bits, with , takes
block transfers and at most M words of memory. The algorithm is deterministic, with a public schedule determined by the array dimensions. If all array dimensions are polynomial in N, its workspace is also polynomial, and dimension parameters and workspace addresses occupy a constant number of global machine words.
The block simulation in Appendix A lets us first assume for a sufficiently large fixed constant , reserving a fixed number of block buffers. The constant accommodates the fixed circuit's control information. We follow the recursive construction of OpenAI [Ope26, Proposition 11 and Lemma 12]: the circuit reduces interchanges of long fields to interchanges of short fields, stopping when memory can handle them directly.
5.2 The Coding Recursion
Corollary 4.3 gives fixed parameters m, W, S, with , such that
We turn this rank saving into a smaller recursive cost: an edge of rank r requires only r short-field interchanges, each acting on one stream of V/W bits. Summing over edges gives S child calls with total data volume .
First make the rational matrices act on integer addresses. Temporarily represent fields in a fixed radix q, interpreting as modulo . Fix all edge differences and the factorizations and inverses used below, then choose an odd prime q avoiding every denominator and every numerator of a diagonal entry of an invertible triangular factor. There are finitely many coefficients, so such a choice exists. The identities then hold for every f, and the invertible factors remain invertible. Only address arithmetic changes: the streams still contain bits and the gates still use XOR.
Lemma 5.2 (One level of the coding recursion). Suppose the two fields each have base-q digits, the number of prefix segments is divisible by W, and the array contains V bits. A complete interchange reduces to S address-field interchanges of width f, each on V/W bits. Apart from these recursive calls, it requires block transfers and a fixed number of block buffers.
Proof. Suppose each long field has base-q digits. Partition them as and , with short-field width , and set . Short-field arithmetic is modulo , in . The three updates in Figure 7(a) interchange each pair and hence all of . The first and last update only the later field and can be performed sequentially by within-column cyclic shifts and reversals. The middle update, , is the one accelerated by the circuit.
(a) Full-field interchange
Within-column shift
Across columns
Reverse and shift
(b) Step 1:
(c) Step 3:
\begin{array}{c|c|c|c|c|c|c|c|c}{{{0}}}&{{{a}}}&{{{Cyclic shift}}}&{{{b}}} \\{{{\hline1}}}&{{{b}}}&{{{c}}} \\{{{\hline2}}}&{{{c}}}&{{{d}}} \\{{{\hline3}}}&{{{d}}}&{{{a}}} \\\end{array} \begin{array}{c|c|c|c|c}{{{0}}}&{{{a}}}&{{{Reverse}}}&{{{\frac{d}{c}}}}&{{{Cyclic shift}}}&{{{\frac{b}{a}}}} \\{{{\hline1}}}&{{{b}}}&{{{Q_{0}-1-D_{i}}}}&{{{\frac{b}{a}}}}&{{{H_{i}+1}}}&{{{\frac{d}{c}}}} \\{{{\hline2}}}&{{{c}}} \\{{{\hline3}}}&{{{d}}} \\\end{array}Figure 7: (a) Three updates, with arrows using the current field values. (b)(c) Steps 1 and 3 for one short-field pair with and . Positions 0, 1, 2, 3 run from top to bottom; letters denote the data at the start of the step.
Distributing the input among circuit inputs. Fixing the prefix before the two fields gives a contiguous segment. First assume the number of segments is divisible by . Distribute them cyclically among streams: original segment becomes segment of stream . Each stream contains bits and corresponds to a circuit input; coordinates within segments are unchanged.
Changing storage order along edges. For a matrix , let move the bit at to , fixing all other coordinates. Then and . Node uses its matrix to specify storage order: a logical array is stored as . Applying along edge converts the source node's order into the destination node's order. At each gate, all streams use the same permutation, so
Thus positionwise XOR still performs the original circuit's linear operation.
For an actual input stream , define only for the analysis, so . This describes the same input and requires no additional movement. The circuit delivers to output . Since the endpoint matrices differ by , the actual output is
Every input bit retains its value and changes position according to . Returning segment of the stream at output to original segment removes the circuit's permutation of the streams. Auxiliary registers admit arbitrary initial values, so their data streams are processed correctly as well. The first and last scans then complete the long-field interchange.
Reducing edge transformations to short-field interchanges. It remains to implement the update on one edge with recursive calls. To make the surrounding coordinate changes sequential, use the factorization of OpenAI [Ope26, Lemmas 9–10], where are invertible and lower triangular, and has exactly ones in distinct rows and columns and zeros elsewhere. Change coordinates to and , perform , and restore coordinates with . The net effect is .
Triangularity makes every coordinate adjustment use earlier fields to update a later one. Process coordinates in descending index order: scale by the fixed diagonal coefficient and add a linear combination of earlier coordinates, whose values have not yet changed. With the preceding coordinates fixed, successive target values index equally sized consecutive data blocks. An offset cyclically shifts these blocks; split at the wraparound point into two work streams and merge them in the exchanged order. Multiplication modulo by a fixed positive integer coprime to q splits into constantly many increasing streams; reversing the split and merge implements its inverse, and reversals handle signs. These operations also implement fixed rational scalings. All prefixes share the work streams, giving sequential bit steps per coordinate change; see OpenAI [Ope26, Lemma 4] for the full implementation. The matrix dimension is fixed, so all coordinate changes together have the same linear bound.
A one at position in requires only . Figure 8 implements such an update with one short-field interchange and two scans. An edge of rank therefore produces exactly recursive calls.

Figure 8: Reducing short-field addition to interchange. Both h, d are short fields, arithmetic is modulo , and arrows use current values. The middle step is recursive.
Buffering and recursive calls. The nonrecursive operations above are the fixed-tape stream procedures of OpenAI [Ope26, Lemmas 3–4 and Proposition 11]: their bound includes head movements, reversals, rewinds, and cleanup of the regions they visit. It is this locality property, rather than a bound on arbitrary bit operations, that permits a block simulation. Lemma A.1 below gives transfers for an uninterrupted T-step phase, using a fixed number of three-block windows.
Execute the S child calls one at a time. Before each child, flush the current windows and save a constant-size descriptor on a disk stack; leave the parent's other streams in their own disk regions. On return, restore this descriptor and reload the windows. Section A.2 accounts for these actions, including the child's output and the stack transfers. They contribute transfers per child beyond the stream scans. Since S and the number of elementary procedures are fixed, the sum of all nonrecursive phase lengths is and their startup, suspension, and restoration costs are per node. Thus
Only the active call holds buffers; suspended ancestors occupy disk space. This proves the lemma without keeping a separate bank of buffers at every recursion depth.
5.3 The Recursion Bound
Recursion stops when all field-value combinations can be buffered. Two fields of width have combinations, so one block per combination requires words. Taking makes these buffers fit in a small fraction of memory whenever ; increase the fixed constant so that .
Each recursive level divides width by . To first analyze widths that reach a common stopping threshold exactly, choose the largest power of not exceeding , namely , and consider . Since and are fixed, we still have . Write for the cost of interchanging two base- fields of width in a -bit array.
Lemma 5.3 (Interchange at recursive scales). If and the number of prefix segments is divisible by , then
If or the array fits in the reserved memory, the interchange takes only block transfers.
Proof. If the field width , set and distribute the data into streams by field values , retaining order within each stream. Reconstruct the output from these streams in order. The number of buffer blocks satisfies and fits in a fixed small fraction of memory.
Each stream leaves at most one partial block, giving an initial cost of . Fix a small constant . If , process the data in memory. Otherwise, increasing ensures . The base interchange therefore costs only block transfers.
By Lemma 5.2, width reaches the base case after levels. The prefix divisibility condition ensures equal-length streams at every level. For a call too large for memory, ; choosing ensures that each child handles at least bits, so its constant startup cost is absorbed by its scan cost. Each child has of its parent's scan volume, and there are children, giving the multiplier . Let be the cost normalized by . Then
The last bound uses (15). Calls that fit in memory stop earlier and only reduce the cost. Multiplying by the scan cost proves (16).
Proof of Lemma 5.1. Actual field widths and prefix counts need not satisfy these divisibility conditions. Lemma C.1 borrows a few high-order digits to form a prefix and decomposes the remaining width into recursive scales. This keeps the additional padding within the original data volume and proves the general bound .
Finally, return to binary addresses. Choose the smallest with , and pad both field ranges from to , increasing the volume by less than the fixed factor . Adding and removing padding require only scans, and the complete interchange preserves the set of valid positions whose two coordinates are both below . The bound follows from , , and (19). Lemma A.2 extends it to all . The matrices are fixed, and the schedule is generated from dimension parameters independently of the data. Streams, padding, and the stack of descriptions all have polynomial size. The buffering and suspension rules above ensure the claimed memory and disk-space bounds.
6 Local Sorting
Address-field interchange rearranges records, but sorting also needs value comparisons. We use classical Columnsort, alternating column sorts with fixed rearrangements that bring records from different columns together for comparison [Lei85, CC03]. We first prove Columnsort correct and reduce its rearrangements to address-field interchange, then bound the recursive cost.
A record occupies bits and may be an integer or a constant number of integer fields compared lexicographically. The word size is always determined by the global input size . Keep and , and set . Choose the fixed constant large enough that 512H tagged records fit in reserved memory, leaving space for buffers and control information. We first assume sufficiently large and ; Corollary A.3 transfers the bounds to all .
6.1 The Columnsort Reduction
Columnsort requires columns long enough to contain the disorder left by its rearrangements. We use columns of records: this shape satisfies the Columnsort conditions and makes column length the 3/4 power of the total size , allowing recursion to shrink the problem. Taking also expresses each record address as four equal-width fields, so the intercolumn rearrangement becomes a rotation of those fields. The next proposition reduces the required movement to six interchanges.
Proposition 6.1 (The Columnsort reduction). Let and , where . An array stored as contiguous columns of records each can be sorted using four rounds of column sorting, six address-field interchanges of width , and sequential scans. The procedure is correct whenever all column sorts are correct.
Proof. Step 2 distributes records from each original column among the new columns for joint sorting; step 4 restores the original column layout. A final half-column shift brings remaining inversions across old boundaries into one column. The eight steps are:
-
Sort each column.
-
Move the record at position to .
-
Sort each rearranged column.
-
Apply the inverse permutation .
-
Sort each column.
-
Prepend negative sentinels and append positive sentinels, shifting column boundaries by half a column. There are now columns, each still of length .
-
Sort these columns.
-
Delete the first and last records.
Negative sentinels precede every ordinary record, and positive sentinels follow every ordinary record. A two-bit tag distinguishes the three types. All sentinels of one type use the same canonical record. Recursion reuses the same tag and removes exactly the multiplicity of sentinels introduced by the current call.
The parameters satisfy even , , and . First consider zero-one inputs. After step 1, write the number of zeros in original column as , with . Since , step 2 sends zeros from this column to new column . Summing over the original columns, the new zero counts satisfy .
After step 3, every entry in a row below is zero, and every entry in a row at least is one. The inverse permutation moves position to , so after step 4 all possible disorder is confined to the half-open interval
all entries before are zero, and all entries after it are one. Step 5 preserves these outside regions, since sorting within a column preserves its all-zero prefix and all-one suffix. If is empty or lies in a single old column, the array is now sorted. Otherwise, crosses exactly one old column boundary , and gives . Prepending half a column of negative sentinels in step 6 moves this interval into the single new column . Sorting that column in step 7 therefore sorts the entire padded sequence, including the boundary case .
For general ordered records, an inversion in the padded output would admit a nondecreasing threshold map taking its two values to 1 followed by 0, with negative and positive sentinels mapped to 0 and 1. This map commutes with fixed rearrangements and with the ordered value sequence produced by each column sort, contradicting the zero-one case. Stability of column sorting is not needed. Every sort and rearrangement preserves the multiset of records. Step 8 removes records from each end of the sorted sequence, exactly cancelling the added sentinel multiplicities. Even if the input already contains sentinels with the same tags, cancellation by multiplicity preserves the original multiset; no recursion-level tags are needed, and no ordinary records are removed. The additional suffix of positive padding is removed by its exact multiplicity in the same way. The output is therefore a sorted permutation of the input.
Since , writing record addresses as four fields of bits makes the rotation . Interchanging fields 3, 4, then 2, 3, then 1, 2 implements ; the reverse sequence implements . The two permutations therefore need six interchanges in total, and all remaining movement consists of scans. A record's internal bits move together as an unchanged suffix, without storing a permutation table.
6.2 The Local Sorting Bound
Implement column sorts recursively. Since the input has at most the square of memory size, a constant number of reductions in column length suffices to reach an in-memory problem.
Lemma 6.2 (Local sorting). For , an array of records can be sorted in
block transfers, using at most M words of memory and polynomial disk space.
Proof. First suppose . For a call on records, sort in memory if . Otherwise, take , , and , pad to records with positive sentinels, and apply Proposition 6.1, recursively sorting each column. Remove the new padding after the call, retaining the original records. Increasing the fixed memory threshold ensures in every nonterminal call.
After padding, and each column has length . Each level reduces size to its 3/4 power. Starting from , three levels give column length less than , below the stopping threshold. The four rounds of column sorting in a call have total input length . Thus the recursion has constant depth and processes records in total, including padding and repeated sorts.
Each interchange acts on bits with field width . Lemma 5.1 bounds its cost by . Short columns that fit in memory share sequential input and output streams: read and sort one column at a time, appending the results. A round processing records costs only transfers. Nonterminal calls have length , so their scan cost absorbs startup. Summing over the levels proves (17).
For , sort a constant number of subarrays and perform a constant number of two-way merge rounds, each costing a scan. Execute depth first and reuse memory; each parent retains only a constant number of descriptor words, and temporary disk arrays have polynomial size. Corollary A.3 restores the original parameters. If is bounded, then is also bounded and direct comparison sorting suffices.
7 Sorting Arbitrary Input Sizes
The local algorithm sorts individual subarrays but does not determine their order relative to one another. We use most-significant-digit radix sorting: partition by the highest bit group, then process the next group within each bucket, sorting a bucket directly once it is small enough for the local algorithm. A bit group is a consecutive group of binary digits, and a bucket contains records sharing the current bit-group value.
Keep and , and write . Each bit group has bits and at most values; a shorter highest group uses its actual width. We first analyze normalized parameters, increasing the fixed constant so that . Corollary A.3 restores the original parameters.
7.1 The Cost of One Partition
Processing bits per round may create buckets. Reserving one block buffer per bucket would require words and need not fit in memory. Instead, sort each subarray by the current bit group so that each bucket occupies a contiguous interval, then read and concatenate these intervals one at a time. This uses a fixed number of block buffers, at the cost of boundary transfers for each interval. We show that these transfers still fit within scan cost.
Lemma 7.1 (Partitioning by one bit group). An array of length can be partitioned by a bit group of at most bits into contiguous buckets in increasing bit-group order, using
block transfers. After local sorting, interval concatenation alone takes transfers.
Proof. Divide the current storage order into contiguous subarrays, each with at most records. Apply Lemma 6.2 to sort each subarray by the current bit group. Since , the total sorting cost satisfies the stated bound.
After sorting, each value occupies at most one contiguous interval in a subarray. Scan the subarrays and store each interval's start and length in an auxiliary array on disk, indexed by subarray number and bit-group value. Each entry occupies a constant number of words, and empty intervals have length zero. Read the corresponding intervals in increasing bit-group order, appending complete records to the output stream to form contiguous buckets.
The auxiliary array has entries. Each entry access and interval boundary costs a constant number of transfers, while every record is copied exactly once. Concatenation therefore costs transfers and uses a fixed number of block buffers. The buckets are ordered by the current bit group; later bit groups and local sorting determine the order within each bucket.
7.2 The Cost of High-Order Recursion
After partitioning, high-order bits determine the order between buckets, and the remaining work takes place within buckets. Put .
Proposition 7.2 (Sorting large inputs). For , the input integers can be sorted in
block transfers, using at most M words of memory and polynomial disk space.
Proof. All integers in a subproblem share the high-order bits already processed. If its length is at most , use Lemma 6.2 to sort by the complete integers. If no bit groups remain, all integers are equal and can be output directly. Otherwise, apply Lemma 7.1 and recursively process the nonempty buckets in increasing bucket order, advancing to the next bit group. High-order bits order the buckets, and recursion sorts each bucket, proving correctness.
Subproblems at one depth are disjoint and contain at most N records in total. Those requiring further partitioning have length greater than and produce subarrays altogether. Lemma 7.1 gives the per-level cost
There are auxiliary entries, new buckets, and tasks at that depth. Newly formed short buckets have total length at most ; Lemma 6.2 bounds their sorting, startup, and final output by (18) as well. Long buckets with no remaining bit groups require only a scan to output.
Each level processes bits, and integer width is , so the depth is . For , we have and . Multiplying the per-level cost by the depth and using proves the claimed bound.
Execute depth first, storing each pending bucket's start, length, and bit-group position on a disk task stack in a constant number of words. Append sorted buckets to the final output stream. Memory holds only the active task and buffers. The recursion depth is , and temporary disk space is polynomial. Finally apply Corollary A.3.
7.3 An Alternative Using Individual Record Accesses
The following algorithm does not use the coding construction and covers bounded memory parameters.
Lemma 7.3 (A linear number of individual record accesses). For every , an array of N integers of bits can be sorted in block transfers, using at most M words of memory and polynomial disk space.
Proof. Perform least-significant-digit radix sorting on disk, handling bits per pass and hence using only a constant number of passes. A pass initializes counters, counts bit-group values record by record, and scans the counters to compute bucket starting positions. It then reads records in input order, writes each to the next free position of its bucket, and updates that position pointer. Equal values are written in read order, preserving the order established by earlier low-order groups. Each record accesses a constant number of disk locations, for transfers per pass.
Random writes use read-modify-write with one physical block buffer; the remaining memory holds the current record and control state. If M is a bounded number of words, storing a constant number of state words on disk adds only a constant number of transfers per record. The counters, temporary arrays, and addresses satisfy the required space bounds.
7.4 Proof of the Main Sorting Theorem
Combining the preceding algorithms according to input size proves Theorem 2.1.
Proof of Theorem 2.1. Keep , , , and . If the input fits in memory, reading, sorting, and writing it takes block transfers. For , Lemma 6.2 gives local sorting. Its constant startup cost is absorbed by , and gives
For , Proposition 7.2 gives cost factor , which also satisfies (2) because .
All these algorithms are deterministic, correct on every input, and satisfy the memory and polynomial disk-space requirements. Corollary A.3 covers every memory-to-block-size ratio. If M is below the fixed threshold, then B is bounded, and the cost in Lemma 7.3 is also . Taking the fixed constant proves the theorem.
8 Conclusion
We turn the communication savings of a finite linear circuit into recursive address-field interchange and combine it with Columnsort and most-significant-digit radix sorting to obtain a deterministic external-memory integer sorting algorithm. Its I/O upper bound asymptotically improves on classical comparison sorting in some parameter ranges. The same finite construction also gives a strict coding advantage in an undirected multiple-unicast network.
Directions for further work include improving the finite coding construction to increase the saving exponent and developing simpler, more efficient algorithmic implementations. It is also natural to ask whether network coding can accelerate other data-movement tasks in a similar way.
A Buffered I/O and Memory Simulation
A.1 Simulating sequential tape access
Put , the number of bits in a disk block. A tape here is a packed bit sequence with one head; an elementary step reads or changes the bit under the head and moves it by at most one position. A fixed alphabet and a fixed number of tracks change the packing density only by a constant factor. This definition does not permit arbitrary jumps to data elsewhere on a tape.
Lemma A.1 (Buffered tape phases). Fix the number of tapes. A phase of T elementary tape steps, including all head movements, can be simulated with resident words and block transfers. For J separately activated phases, with total step count T, the bound is , including the writeback of their dirty buffers.
Proof. For each tape, keep the block containing its head and its two neighbors. At activation, load this three-block window, with the current block in the middle. While the head stays in the window, its operations incur no transfers. Upon exit, write back the dirty blocks and load a new window centered on the new current block. The head must move at least b positions between two such exits: it starts somewhere in the middle block and must cross a whole neighboring block before leaving the window. Each replacement uses at most a constant number of transfers. Thus a tape with head movements costs transfers, including the initial load and final writeback. Summing over the fixed number of tapes proves the first bound. Apply it separately to the J phases for the second. Reversing direction does not invalidate a window, so short alternating accesses to adjacent blocks do not introduce a transfer per tape step.
The stream transformations in Section 5 satisfy the lemma's hypothesis. In particular, the controlled-shift and scaling procedures of OpenAI [Ope26, Lemmas 3–4] concatenate work streams across prefix fibers; a fiber does not start a new buffer allocation. Their local reversals, head returns, and erasures are included in the linear tape-step bound. Within one recursion node there are only a fixed number of such elementary procedures. Descriptor arithmetic uses a fixed number of global words and free resident computation in our I/O model. Its operands are dimensions, offsets, and addresses bounded by a fixed polynomial in N.
A.2 Suspending and restoring recursive calls
OpenAI [Ope26, Proposition 11, fixed-tape depth-first schedule] explicitly parks inactive streams and restores them between child calls, charging this movement to the parent. Random disk access permits the following variant, in which inactive streams stay in place. This also specifies the transfer costs at call boundaries, which are not covered by the amortization within a single tape phase.
Each active call has a fixed number of disk regions for its role streams and temporary tapes. Each region is packed and block-aligned, with its length and head position in the call descriptor. Regions belonging to different suspended calls are disjoint. The child reads the designated active role stream of its parent as input; all of its role and work regions are separate. Fresh work regions are initialized by scans within the local work budget. Only the active call owns the tape windows. Suspended calls have no resident buffers.
Before descending, finish the current local procedure, flush all dirty windows, and write a stack frame containing the parent dimensions, region addresses, head positions, continuation, and child index. Adjacent irrelevant coordinates are collapsed, so this frame has a fixed number of global words, independent of recursion depth. A frame occupies a fixed number of block-aligned disk blocks at the stack top; writing or reading it costs transfers even when B = 1. The child then reuses the same window buffers and control workspace. All inactive parent streams remain on disk and are not traversed.
On return, write back the child's windows and place its output in the designated parent role, using a scan of V/W bits if a copy is needed. Read and remove the top stack frame, restore the parent's descriptor, and reload its windows as needed. The child's temporary regions can then be reused. No restoration scans an ancestor's data or searches past another stack frame. Output copying costs per child; flushing, stack access, and window reactivation cost per child. The fixed number S of children therefore adds transfers per parent node, with constants allowed to depend on the fixed circuit. It does not change the recursive volume multiplier S/W.
Together with Lemma A.1, this yields the node recurrence in Lemma 5.2. It also accounts for the constant overhead when a child stops at the memory cutoff. The active windows, one stack-transfer buffer, and the descriptor occupy words for fixed constants , ; the normalization below reserves this space. Ancestor regions and frames use polynomial disk space: a depth-first execution has depth , finitely many regions per level, and no level has volume larger than the padded root volume. All stored addresses therefore fit in a fixed number of global words.
A.3 Constant-factor block simulation
The algorithms in the main text need a fixed number of block buffers. To cover cases such as , we reduce the simulated memory and block sizes, then perform transfers through one physical block buffer. Constant-factor adjustments preserve the complexity bounds.
Lemma A.2 (Constant-factor block simulation). For fixed constants and , there are fixed constants , such that, for every , setting
gives and . An algorithm using words of memory and blocks of words can be simulated in words, with a constant number of physical transfers per logical transfer. For input and output of total size words, layout conversion costs transfers. Polynomial disk space is preserved. Moreover,
The hidden constants depend only on the fixed simulation parameters.
Proof. Choose and then large enough that . If , then ; if , then and the conclusion again follows. Also , so block size changes by only a fixed factor.
Store each logical block in the first words of its own physical block. The algorithm state uses at most words, transfers use one buffer of words, and the remaining memory stores control information. After reading a physical block, copy its valid portion into working memory; reuse the same transfer buffer for writes. Each logical transfer therefore takes a constant number of physical transfers.
For initial layout conversion, extract logical blocks one at a time. Their words span at most two original physical blocks, which are read sequentially into working memory before reusing the transfer buffer to write the logical block. To restore packed output, read, modify, and write boundary blocks. Both conversions take a constant number of transfers per logical block, for in total. Space expands by at most 2K, and addresses still occupy bits.
Finally, , both memory-to-block ratios are at least two, and . These give the logarithmic relations.
We now apply the simulation lemma to the complexity expressions in the main text. This checks the effect of parameter substitution rather than proving the algorithms again.
Corollary A.3 (Parameter transfer). Suppose the address-field interchange, ordinary local sorting, and large-input sorting bounds in the main text hold for sufficiently large M and M/B. The simulation of Lemma A.2 preserves these bounds and yields the main bound (2) in the original parameters. Address-field interchange only requires increasing its absolute memory threshold; each sorting bound applies to every under its original input-size condition.
Proof. For a V-bit array, layout conversion costs transfers. Apply the address-field interchange bound at . Since and the logarithms are comparable, this gives (14); it suffices to increase to at least .
First assume , and write , , and . The adjusted parameters satisfy , , , and .
For ordinary local sorting, if , apply (17) directly. If , use to divide the input into at most 64 subarrays, each of size at most . Sort them individually and perform a constant number of two-way merge rounds. Subarrays fitting in memory are sorted directly. Logical memory holds the fixed number of merge buffers, and each round costs transfers. Since the number of subarrays is fixed, the total cost, including startup, merging, and layout conversion, is
which is (17) in the original parameters. This transfer uses only local sorting and merging, without depending on general sorting.
For , we also have and may apply Proposition 7.2. Since , the parameter relations and the scan cost of layout conversion give
This preserves the large-input bound. For , ordinary local sorting satisfies ; for , we have . Combining the two cases gives (2).
Finally, if , then is bounded, so the cost of Lemma 7.3 is also and satisfies both the large-input and main bounds. For ordinary local sorting, is bounded as well, and direct comparison sorting suffices. The simulations, subarray sorts, and merges preserve correctness, the -word memory bound, and polynomial disk space.
B Exact Verification of the Fixed Parameters
The recursion exponent in Corollary 4.3 depends on a strict inequality. We verify it using rational comparisons, then give explicit finite block lengths achieving a strict coding advantage.
Lemma B.1 (A strict gap for the exponent). For , , , and , we have .
Proof. Here and , and (10) gives . Set . Rational comparisons give
The first implies , hence . The second then yields .
Corollary B.2 (An explicit finite block length). For the network in Section 4, take startup delay and message length at each source. For the simple graph obtained by removing parallel edges, take and . Both choices give common rate .
Proof. The circuit’s three rounds contain 24 layers of gates. Round zero sends the initial wire segments; each subsequent layer sends its outputs after receiving its inputs. Thus one execution can use rounds. After inserting a private relay into every edge, expand each round of the original schedule into two rounds, giving . For these two values of , the stated integers satisfy . The pipeline schedule in the proof of Theorem 2.2 therefore gives the required finite protocols.
C Interchange for Arbitrary Address Shapes
The recursion in Section 5 requires width and a prefix-segment count divisible by . An actual array may satisfy neither condition, and directly padding its prefix count can increase the data volume too much. We first take a few high-order digits from the fields being interchanged, using existing data to create enough segments, then pad their count to the required multiple. Once the count is sufficiently large, padding costs only a constant factor in volume. We decompose the remaining width into recursive scales and interchange the corresponding pairs. Keep the parameters of that section, with .
Lemma C.1 (Interchange for arbitrary address shapes). Keep the fixed parameters of Lemma 5.3. For arbitrary positive integers , consider the lexicographically stored bit array with addresses
The permutation on its bits can be performed in
block transfers. The padding required by recursion less than doubles the volume of each call, and the memory and polynomial disk-space guarantees are preserved.
Proof. Calls fitting in memory or having width are still handled directly. For other calls, put and . The required depth is at most , so we want the prefix count to be a multiple of . Taking high-order digits from each field gives prefixes. Choose the smallest integer making , namely .
First handle fields too short to supply these digits. If , then , forcing to be bounded by a fixed constant. Split the fields into pairs of width at most and apply base interchanges, without adding prefixes.
If , write and , with both high-order parts of width and both low-order parts of width . The exact address layouts, including the unchanged outer prefix, intervening coordinate, and suffix, are
(20)
Here extracts to just after , exchanges the two low fields while fixing , and moves to just before . Thus FLE is precisely the required interchange; and retain their values and final positions. Figure 9 suppresses in these four layouts.
Original
Extract high
Swap low
Restore high

segments
Figure 9: The two high-order parts form the segment index (dashed box). The middle interchange fixes that index and swaps only the low-order parts. G is the original intervening coordinate.
Extracting and restoring the high digits. Moving a single base-q digit across any intervening coordinates costs transfers. Distribute bits into q streams according to that digit, preserving the order of all remaining coordinates. Enumerate the target addresses and read from the stream selected by the target digit. Within each selected stream, the remaining coordinates occur in the same lexicographic order before and after the move; every stream is therefore read sequentially. The operation needs q stream buffers and one output buffer, and its partial-block overhead is . It applies even when the crossed coordinate has arbitrary cardinality G. Applying it one digit at a time implements both E and F in scans, preserving the order within and . These are digit moves, so no unproved unequal-width interchange is being used.
Padding the extracted prefix. After E, encode the adjacent high fields by
The layout is now . For every , append zero segments with , where
Each segment has exactly bits. This defines a rectangular padded array of volume , whose prefix coordinate has values. Inserting all the padding together requires one scan of this array; it does not incur a separate block-transfer startup cost for every .
It remains to fit the width to the recursive scales. Divide it by the base width and expand the quotient in radix m:
Use this expansion to partition both low fields into corresponding contiguous chunks with identical widths: chunks of width for each , followed by a residual chunk of width if . Write these chunks as and . The interchange of and is an allowed equal-width interchange: its intervening coordinate consists of the remaining A-chunks, , and the preceding B-chunks. If is the total width of the A-chunks preceding , its prefix-segment count is exactly
This is divisible by whenever the selected chunk has width . Earlier swaps do not change any coordinate cardinality, so the condition holds for every call. Each swap fixes all other coordinate positions, including . The swaps have disjoint coordinate supports; their composition maps
Consequently they implement exactly, for every , rather than only for adjacent fields or a particular gap shape. Lemma 5.3, applied to the entire padded array in each call, gives total scan factor
The residual pair requires at most one base interchange. Here , , and ; hence the scans for are absorbed by . We are outside the in-memory case, so is bounded below by a positive constant and also absorbs each call's additive startup cost.
Removing padding before restoration. After all complete chunk swaps, scan the layout and discard exactly those segments with . Every complete chunk swap fixes and is a bit-value-preserving permutation, so no valid bit enters a discarded segment; those segments remain zero. Intermediate coded states need not satisfy this property, which is why removal occurs only after the complete swaps. Concatenate the retained segments, decode s as , and then apply F in (20). Removal costs and restores the original volume before F.
The widths, padding tests, and chunk descriptions depend only on the dimensions and are generated with a fixed number of global-word counters. All scans share their stream buffers across prefixes; recursive calls and chunk swaps run sequentially and reuse workspace. Thus the stated memory bound is preserved, and constant-factor padding preserves the polynomial disk-space bound. This proves (19).
D Formal Verification and Reproducibility
We use Lean 4 and Mathlib [dMU21, The20] to formalize Theorems 2.1 and 2.2. For sorting, the verification covers the full parameter range : the algorithm terminates on every input, outputs the integers in nondecreasing order with their multiplicities preserved, and satisfies the stated memory, disk-space, and block-transfer bounds, with . For the network construction, it verifies the coding capacity and routing upper bound on the same finite simple undirected network in Theorem 2.2, together with a finite binary linear block code whose common rate strictly exceeds the routing bound. Edge capacity is shared by the two directions, and the messages are independent.
An I/O in the sorting code has the same meaning as in the paper: reading or writing one block of B words. Computation can use only data already read into memory, and data buffers and mutable workspace count toward the M-word limit. In-memory computation is represented directly as transformations of these data, without expansion into machine instructions or a charge for computation time. The program is fixed from the size parameters before the input is given; program code is excluded from data space. One further convention concerns very small memory: the narrow-word construction uses two data buffers, and a predetermined execution-step index is stored separately, outside the M words, without holding input data. Thus the verification does not also prove an implementation that fits this control information within the same M words. The constants in are fixed in advance, and the constant in the I/O bound depends only on them.
The Lean project is maintained at https://github.com/rtyu-1/coded-sorting-lean. The project's ReviewEndpoints.lean collects the verification entry points for both results. To reproduce the checks, install the Lean and Mathlib versions specified by the project, build it, and inspect the assumptions and conclusions of the corresponding declarations. The archived proof sources have passed a complete build and an axiom-dependency check, without unfinished proofs or additional mathematical axioms. Compilation checks the proofs under their formal definitions; the explanation above helps readers compare those definitions with the paper.
References
[AFKL19] 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 – Leibniz-Zentrum für Informatik, 2019.
[AHJ 06] Micah Adler, Nicholas J. A. Harvey, Kamal Jain, Robert Kleinberg, and April Rasala Lehman. On the capacity of information networks. In Proceedings of the Seventeenth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA '06, pages 241–250, 2006.
[AT15] Lars Arge and Mikkel Thorup. RAM-efficient external memory sorting. Algorithmica, 73(4):623–636, 2015. https://doi.org/10.1007/s00453-015-0032-8.
[AV88] Alok Aggarwal and Jeffrey Scott Vitter. The input/output complexity of sorting and related problems. Communications of the ACM, 31(9):1116–1127, 1988.
[BH26] Mark Braverman and Zhongtian He. The multiple unicast conjecture is false, 2026. Version 1, October 7, 2026. arXiv:2610.10108.
The formal conditions are and , for fixed and .
[CC03] Geeta Chaudhry and Thomas H. Cormen. Stupid columnsort tricks. Technical Report TR2003-444, Dartmouth College, Department of Computer Science, 2003.
[CC06] Geeta Chaudhry and Thomas H. Cormen. Slabpose Columnsort: A new oblivious algorithm for out-of-core sorting on distributed-memory clusters. Algorithmica, 45(3):483–508, 2006. https://doi.org/10.1007/s00453-006-1222-1.
[CCW01] Geeta Chaudhry, Thomas H. Cormen, and Leonard F. Wisniewski. Columnsort lives! an efficient out-of-core sorting program. In Proceedings of the Thirteenth Annual ACM Symposium on Parallel Algorithms and Architectures, SPAA '01, pages 169–178. ACM, 2001. https://doi.org/10.1145/378580.378627.
[CFW12] Amit Chakrabarti, Lisa Fleischer, and Christophe Weibel. When the cut condition is enough: A complete characterization for multiflow problems in series-parallel networks. In Proceedings of the 44th Annual ACM Symposium on Theory of Computing, STOC '12, pages 19–26. ACM, 2012.
[dMU21] Leonardo de Moura and Sebastian Ullrich. The Lean 4 theorem prover and programming language. In Automated Deduction – CADE 28, volume 12699 of Lecture Notes in Computer Science, pages 625–635. Springer, 2021.
[FHLS19] Alireza Farhadi, MohammadTaghi Hajiaghayi, Kasper Green Larsen, and Elaine Shi. Lower bounds for external memory integer sorting via network coding. In Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing, STOC '19, pages 997–1008. ACM, 2019.
[FLPR99] Matteo Frigo, Charles E. Leiserson, Harald Prokop, and Sridhar Ramachandran. Cache-oblivious algorithms. In Proceedings of the 40th Annual Symposium on Foundations of Computer Science, FOCS '99, pages 285–297. IEEE Computer Society, 1999. https://doi.org/10.1109/SFFCS.1999.814600.
[Han02] Yijie Han. Deterministic sorting in time and linear space. In Proceedings of the 34th Annual ACM Symposium on Theory of Computing, STOC '02, pages 602–608. ACM, 2002.
[HKL06] Nicholas J. A. Harvey, Robert Kleinberg, and April Rasala Lehman. On the capacity of information networks. IEEE Transactions on Information Theory, 52(6):2345–2364, 2006.
[HT02] Yijie Han and Mikkel Thorup. Integer sorting in expected time and linear space. In Proceedings of the 43rd Annual IEEE Symposium on Foundations of Computer Science, FOCS '02, pages 135–144, 2002.
[IP12] John Iacono and Mihai Pătrașcu. Using hashing to solve the dictionary problem (in external memory). In Proceedings of the Twenty-Third Annual ACM-SIAM Symposium on Discrete Algorithms, SODA '12, pages 570–582. SIAM, 2012. https://doi.org/10.1137/1.9781611973099.48.
[JL19] Shunhua Jiang and Kasper Green Larsen. A faster external memory priority queue with DecreaseKeys. In Proceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA '19, pages 1331–1343. SIAM, 2019. https://doi.org/10.1137/1.9781611975482.81.
[JVY06] Kamal Jain, Vijay V. Vazirani, and Gideon Yuval. On the capacity of multiple unicast sessions in undirected graphs. IEEE Transactions on Information Theory, 52(6):2805–2809, 2006.
[Lei85] F. Thomson Leighton. Tight bounds on the complexity of parallel sorting. IEEE Transactions on Computers, C-34(4):344–354, April 1985.
[LHWL26] Sirui Liu, Yeqiao Hou, Jessie Hui Wang, and Zongpeng Li. On the multiple-unicast conjecture: Session dominance. In IEEE INFOCOM 2026 - IEEE Conference on Computer Communications, pages 1–10, 2026. https://doi.org/10.1109/INFOCOM59046.2026.11571518.
[LL04] Zongpeng Li and Baochun Li. Network coding: The case of multiple unicast sessions. In Proceedings of the 42nd Annual Allerton Conference on Communication, Control, and Computing, pages 11–19, 2004.
[LL25] Sirui Liu and Zongpeng Li. Space information flow: Multiple unicast in . In 2025 IEEE International Symposium on Information Theory (ISIT), pages 1–6, Ann Arbor, MI, USA, 2025. https://doi.org/10.1109/ISIT63088.2025.11195665.
[LLFC26] Sirui Liu, Zongpeng Li, Xiying Fan, and Haifeng Chen. A session interaction framework for the multiple-unicast conjecture. In 2026 IEEE International Symposium on Information Theory (ISIT), pages 1–6, Guangzhou, China, 2026. https://doi.org/10.1109/ISIT62367.2026.11653955.
[LQLL26] Sirui Liu, Li Que, Zongpeng Li, and Baochun Li. On the multiple-unicast conjecture: Beyond cut metrics, 2026. arXiv:2608.06070.
[Ope26] OpenAI. Integer multiplication below . OpenAI Math Release preprint, 2026. Manuscript dated September 23, 2026. Full text.
[QT22] Mohammad Ishtiyaq Qureshi and Satyajit Thakor. A bound on undirected multiple-unicast network information flow. IEEE Transactions on Information Theory, 68(7):4453–4469, 2022.
[The20] The mathlib Community. The Lean mathematical library. In Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs, CPP '20, pages 367–381. ACM, 2020.
[Vit01] Jeffrey Scott Vitter. External memory algorithms and data structures: Dealing with massive data. ACM Computing Surveys, 33(2):209–271, 2001. https://doi.org/10.1145/384192.384193.
[XLWH14] Tang Xiahou, Zongpeng Li, Chuan Wu, and Jiaqing Huang. A geometric perspective to multiple-unicast network coding. IEEE Transactions on Information Theory, 60(5):2884–2895, 2014.
[YLLW18] Xunrui Yin, Zongpeng Li, Yaduo Liu, and Xin Wang. A reduction approach to the multiple-unicast conjecture in network coding. IEEE Transactions on Information Theory, 64(6):4530–4539, 2018.
[ZLL26] Xindan Zhang, Baochun Li, and Zongpeng Li. Network coding can beat routing in undirected multiple-unicast networks, 2026. Version 1, October 7, 2026. arXiv:2610.09367.
AI methodology
We used OpenAI's ChatGPT, including Codex, to assist with exploring network-coding constructions and sorting algorithms, developing and examining mathematical arguments, implementing and debugging Lean proofs, and preparing the manuscript and literature discussion. The tools materially affected the constructions and algorithmic analyses in Sections 4–7, the supporting arguments and formalization in Appendices A–D, and their exposition in Sections 1–3. Details of the constructions and analyses appear in those sections; Appendix D describes the scope and reproduction of the Lean checks. The authors retain responsibility for the correctness, originality, and integrity of all content, including proofs, code, and references.