Note: The construction comes from the XOR swap network at the core of OpenAI's sub-$n\log n$ integer multiplication algorithm, Integer multiplication below n log n (entry 109 in openai/math). Afshani, Freksen, Kamma and Larsen showed that the network coding conjecture implies an
$\Omega(n\log n)$ lower bound for constant-degree Boolean circuits for multiplication (arXiv:1902.10935). The counterexamples were extracted using Astra 6.1 and Opus 5.5.
Writeup: Swap, Don't Route (LaTeX source) — the 33-vertex counterexample (NC = 1 > 149/150 ≥ MCF), with the 32-vertex version (MCF ≤ 125/126) in Appendix C.
Counterexamples to the network coding conjecture for undirected graphs: instances where network coding achieves rate 1 but the maximum concurrent flow (routing) is strictly below 1.
| 33-vertex (main text) | 32-vertex (Appendix C, current best) | |
|---|---|---|
| vertices | 33 | 32 |
| edges | 91 | 84 |
| unit messages | 30 | 30 |
| source–sink pairs | 7 | 13 |
| bound | MCF ≤ 149/150 | MCF ≤ 125/126 |
scripts/verify-network-coding-32.py— standard-library exact checker for the 32-vertex code and routing bound.scripts/cut-slack-32.py— standard-library cut-slack analysis of the 32-vertex graph, and the 31-vertex merged graph on which coding and routing tie.scripts/verify-network-coding-33.py— standard-library exact checker for the 33-vertex code and routing bound.writeup/— the LaTeX writeup, its PDF, andgen_full_graph.py, which draws the full-network figure from the checker's edge table.lean/— a Lean 4 + Mathlib formalization of the 33-vertex counterexample, with nosorry. Its final theorem,NetCoding.not_undirectedMultipleUnicastConjectureinMain.lean, refutes the conjecture with the entropy-based coding rate of Braverman–Garg–Schvartzman (Definition A.3). Along the way it proves that the XOR code achieves rate 1, that routing is at most 149/150 (by weak LP duality with distance potentials), and that the coding rate is exactly 1 (by the cut bound). All finite facts about the instance are checked by the kernel withdecide +kernel; nonative_decideis used.
python3 scripts/verify-network-coding-32.py
python3 scripts/cut-slack-32.py --merged
python3 scripts/verify-network-coding-33.pyTo check the Lean proof (Lean toolchain v4.33.1, installed automatically by elan):
cd lean && lake exe cache get && lake buildThe network coding conjecture (Li and Li, 2004) says that in undirected graphs, network coding achieves no higher rate than multicommodity flow. Several superlinear lower bounds were proved conditionally on it, by turning a fast algorithm or small circuit into a network code and then bounding the network's flow. A counterexample means these arguments no longer give lower bounds, so this route to them is closed.
A fixed constant gap is enough. Braverman, Garg and Schvartzman (arXiv:1608.06545) show that any
Conditional lower bounds that relied on the conjecture:
-
Oblivious matrix transposition:
$\Omega(p\log p)$ I/Os in the I/O model, which also implies lower bounds in the oblivious cell-probe model and for two-tape oblivious Turing machines (Adler, Harvey, Jain, Kleinberg, Lehman). -
Integer sorting and matrix transpose: tight lower bounds for external-memory integer sorting and matrix transpose without obliviousness assumptions, and
$\Omega(n\log n)$ for oblivious internal-memory sorting of$\Theta(\log n)$ -bit keys (Farhadi, Hajiaghayi, Larsen, Shi). -
Multiplication:
$\Omega(n\log n)$ size for constant-degree Boolean circuits multiplying two$n$ -bit integers, via the same bound for the shift problem. The conjecture also implies one of Valiant's circuit-complexity conjectures (Afshani, Freksen, Kamma, Larsen). -
Sorting circuits: optimality, up to
$\mathrm{poly}\log^* n$ factors, of$o(n\log n)$ -size circuits for sorting$n$ keys of$k=O(\log n)$ bits (Asharov, Lin, Shi). - Data structures: links to non-adaptive function inversion and polynomial evaluation and interpolation, which in turn imply superlinear circuit lower bounds for explicit functions such as integer sorting and multipoint polynomial evaluation (Dvořák, Koucký, Král, Slívová).
Both counterexamples also refute Theorem 6.3 of T. Xiahou, Z. Li, C. Wu, J. Huang, A geometric perspective to multiple-unicast network coding, IEEE Transactions on Information Theory 60(5):2884–2895, 2014.
That theorem is about the cost version of the conjecture, which is equivalent to the original by LP duality: each edge has a cost instead of a capacity, and the claim is that no code meets the sessions' rates more cheaply than routing along shortest paths. Theorem 6.3 states that in a layered network (every edge joins two consecutive layers) in which each source and its sink lie in different layers, coding is cheaper than routing by at most the factor
Both counterexamples are layered networks of this kind. With unit costs their codes cost 149 and 125, one per transmission, while routing along shortest paths costs at least 150 and 126.
The error is in Step 2 of the proof. It places each layer on a vertical line in the plane with the
- M. Braverman, S. Garg, A. Schvartzman, Network coding in undirected graphs is either very helpful or not helpful at all (arXiv:1608.06545).
- R. J. Lipton and K. W. Regan, Network Coding Yields Lower Bounds, Gödel's Lost Letter and P=NP, April 30, 2019.
- R. J. Lipton and K. W. Regan, The Network Coding Conjecture Is Powerful, Gödel's Lost Letter and P=NP, May 6, 2019.
- M. Adler, N. J. A. Harvey, K. Jain, R. Kleinberg, A. R. Lehman, On the capacity of information networks, SODA 2006.
- A. Farhadi, M. Hajiaghayi, K. G. Larsen, E. Shi, Lower bounds for external memory integer sorting via network coding (arXiv:1811.01313), STOC 2019.
- P. Afshani, C. B. Freksen, L. Kamma, K. G. Larsen, Lower bounds for multiplication via network coding (arXiv:1902.10935), ICALP 2019.
- G. Asharov, W.-K. Lin, E. Shi, Sorting short keys in circuits of size o(n log n) (arXiv:2010.09884), SODA 2021.
- P. Dvořák, M. Koucký, K. Král, V. Slívová, Data structures lower bounds and popular conjectures (arXiv:2102.09294).