Search arXiv⌕ Search

arXiv · 2612.02080

Reopening Pandora's Box: Complexity Results of Shift-Addition/Subtraction Sequences

Abstract

Multiplication by constants is a fundamental operation in digital hardware design, with applications in many different areas. Costly generic multipliers are commonly replaced by tailored sequences of shift and add/subtract operations, giving rise to the Single Constant, Multiple Constant and Constant Matrix Multiplication (SCM, MCM, CMM) problems, and their pipelined variants (PSCM, PMCM, PCMM) in which operation outputs are registered and leave the same pipeline stage. Exact synthesis approaches based on SAT, ILP or CP are routinely observed to scale exponentially, and the problems have long been treated as intractable. The exact complexity classification of the shift-add straight-line program formulation has remained open, though, and the results usually cited as evidence of NP-hardness concern different computational models or do not transfer by polynomial-time reduction. Here we close this gap for five problems: we show that CMM, MCM, PMCM, PCMM, and MCM with fixed topology are all NP-complete. NP-hardness of CMM and PCMM hold for targets over binary vectors with only three non-zero entries already, the remaining three hold for targets with three non-zero digits in Canonical Signed Digit representation. We also show that these restrictions are tight, because the fragment over two non-zeros is decidable in polynomial time. Hardness therefore does not stem from complexity of the individual targets but rather from the combinatorial structure of the target set and the interaction between the targets.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Nicolai Fiege, Théo Cantaloube, Martin Lange, Christine Solnon. 2026-12-01. Reopening Pandora's Box: Complexity Results of Shift-Addition/Subtraction Sequences. https://searcharxiv.org/abs/2612.02080

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Probabilistically checkable proofs for the Existential Theory of the Reals

We prove a PCP theorem for the existential theory of the reals, showing that MAX-ETR-INV is $\exists\mathbb{R}$-hard to approximate to within some constant factor. The existential theory of the reals (ETR) is a decision problem asking if there exists a set of real-valued variables satisfying some constraints involving polynomials and inequalities, and $\exists\mathbb{R}$ is the complexity class of problems polynomial-time reducible to ETR. Many important geometric problems are known to be $\exists\mathbb{R}$-complete. $\exists\mathbb{R}$-hardness results frequently work by a reduction from the $\exists\mathbb{R}$-complete problem ETR-INV, which asks if there is a an assignment of real variables each in the interval $[\frac12, 2]$ satisfying some constraints of form $x=1$, $xy=1$ and $x+y=z$. MAX-ETR-INV is a related optimization problem that asks, given a set of constraints of form $x=1$, $xy=1$, and $x+y=z$, for a feasible (that is, satisfiable with variables in $[\frac12, 2]$) subset of those constraints of the largest possible size. We show that there is some constant $ε>0$ such that it is $\exists\mathbb{R}$-hard to approximate MAX-ETR-INV with a better-than-$(1-ε)$ factor. This means that even a non-deterministic polynomial-time algorithm can't approximate MAX-ETR-INV with such a factor factor unless $\exists\mathbb{R}=\text{NP}$. We also give a polynomial-time $8$-factor approximation algorithm and a non-deterministic-polynomial-time $2$-factor approximation algorithm for MAX-ETR-INV.

cs.CC↗

Asymptotic Spectral Geometry and the Complexity of Tensors

We develop asymptotic spectral geometry over arbitrary fields. At a spectral point, general-format and graph-format capacities are geometric median and fractional matching optima. Equality for all local dimension budgets characterizes real-tree spectral hulls. Leg relocation yields local deformation retractions and path-connectedness. Third-order edge weights form a spectrahedron, answering Strassen's rectangular log-convexity question. Let $\widetilde{\mathrm R},\widetilde{\mathrm C}$ denote asymptotic rank and asymptotic division-free circuit size. Let $σ_k,γ_k$ be the suprema of their base-$n$ logarithms over integers $n\ge2$ and nonzero tensors of order $k\ge2$ with local dimensions at most $n$. Superscript $\mathrm{GT}$ restricts to weighted graph tensors. For integers $m\ge1$, $σ_{2m}=σ_{2m}^{\mathrm{GT}}=m$ and $m+1/[8(2m-1)]=σ_{2m+1}^{\mathrm{GT}}<m^2/\sqrt{m^2-1/4}\leσ_{2m+1}\le m+O(m^{-1/3})$. Thus $σ_k=\lfloor k/2\rfloor$ precisely for even $k$. The $k$-vertex complete-graph tensor with edge-label dimension $q\ge2$ has asymptotic rank $q^{k^2/4}$, refuting maximum-cut equality for odd $k$. For concise tensors $T$ of order $k$ (one-leg flattening ranks equal local dimensions), $\widetilde{\mathrm C}(T)\le\widetilde{\mathrm R}(T)\le\widetilde{\mathrm C}(T)^{\lfloor k/2\rfloor}$. Ordinary and asymptotic circuit sizes fail Kronecker submultiplicativity. We obtain $Ω(\sqrt k)\leγ_k^{\mathrm{GT}}\leγ_k\le O(k/\sqrt{\log_2 k})$ and $γ_k\le2(k-1)γ_k^{\mathrm{GT}}/k$. We recover $\mathsf{VP}\ne\mathsf{VNP}$ and the refutation of ETH. For large fixed $k$, the $k$-clique coefficient tensor with $q$ labels per vertex has ordinary and asymptotic rank $q^k$ but asymptotic circuit size below $q^{3k/4}$. We extend Weis's superlinear fan-in-two Boolean circuit bound to specified SAT and promise-USAT encodings.

cs.CC↗

Exponential Lower Bounds on Semidefinite Programming Relaxations for CSPs

We prove that every semidefinite extended formulation that approximates Max 3-XOR to within a factor of $2-ε$ requires $\exp(\tildeΩ(n))$ size, improving the previous lower bound of $\exp(\log^2 n/\log\log n)$ [LRS15]. More generally, our lower bound extends to approximating any constraint satisfaction problem to a factor better than a uniformly random assignment whenever the predicate supports a pairwise uniform probability distribution. Our results follow from improving the lower bound of [LRS15] on the positive semidefinite rank of a matrix associated with a CSP instance. The proof was developed by trying to tinker with the argument of [LRS15] with GPT-6 Astra Pro. We asked GPT to factorize the noisy $\mathrm{T}_ρQ$ factor in the positive semidefinite decomposition of the pattern matrix and bound the separating functional in terms of the high-degree Fourier moments of the factor. All technical ideas in executing this plan are due to GPT Astra Pro.

cs.CC↗