Polynomial-time Tractable Problems over the
p-adic Numbers
This paper settles the computational complexity of deciding satisfiability for systems of linear equations with valuation constraints $v_p(x)=c$ over the $p$-adic numbers. The problem is NP-complete for $p=3$ (resolving the open case for $\mathbb{Z}_3$ and $\mathbb{Q}_3$) and in P for $p=2$ ($\mathbb{Z}_2$ and $\mathbb{Q}_2$). Polynomial-time algorithms are also given for constraints of the form $v_p(x)\leq c$ or $v_p(x)\geq c$ over $\mathbb{Q}_p$, extending to simultaneous constraints over several primes.