arXiv is now an independent nonprofit! Learn more
License: CC BY 4.0
arXiv:2608.23828v1 [cs.CC] 24 Aug 2026

Exact CVP Is NP-Complete for Principal Cyclotomic Ideals

Jiaqi Liu    Yansong Feng    Yanbin Pan

State Key Laboratory of Mathematical Sciences,

Academy of Mathematics and Systems Science, Beijing, China

{ljqi,fengyansong,panyanbin}@amss.ac.cn

We prove that exact Euclidean decision-CVP is 𝖭𝖯\mathsf{NP}-complete on the coefficient lattices of nonzero principal ideals in the power-of-two cyclotomic rings Rd=ℤ⁡[y]/(yd+1)R_{d}=\mathbb{Z}[y]/(y^{d}+1). A deterministic reduction from Exact Cover by 3-Sets (X3C) produces an integral target and an integer squared threshold Δ\Delta such that the closest squared distance is exactly Δ\Delta in YES instances and at least Δ+4\Delta+4 in NO instances. Moreover, the ideal elements whose squared distance from the target under the coefficient embedding is at most Δ\Delta are in bijection with the exact covers of the given X3C instance. This also gives 𝖭𝖯\mathsf{NP}-hardness of exact search-CVP under polynomial-time Turing reductions.

We also transfer the resulting principal-ideal CVP instances to full-rank principal ideals of the cyclic quotient ring ℤ⁡[X]/(XD−1)\mathbb{Z}[X]/(X^{D}-1), where D=2​dD=2d. Their coefficient lattices are invariant under a cyclic rotation by one coordinate. The lift preserves principality, doubles the dimension, and scales the squared distances of corresponding elements by eight. Thus, on principal cyclic ideal lattices, exact decision-CVP is 𝖭𝖯\mathsf{NP}-complete and exact search-CVP is 𝖭𝖯\mathsf{NP}-hard.

The cyclotomic and cyclic hardness results also admit uniformly computable fixed-family forms. For each X3C universe size, one principal cyclotomic ideal and one principal cyclic ideal can be fixed before the collection of triples is known, and only the respective targets and squared thresholds depend on the collection. Thus exact decision-CVP remains 𝖭𝖯\mathsf{NP}-complete on both fixed families. If exact decision-CVP with preprocessing (CVPP) were solvable in polynomial time on either family, then 𝖭𝖯⊆𝖯/poly\mathsf{NP}\subseteq\mathsf{P}/\mathrm{poly}. By the Karp–Lipton theorem, such a preprocessing scheme would collapse the polynomial hierarchy to Σ2𝖯\Sigma_{2}^{\mathsf{P}}. To our knowledge, the cyclic results resolve the exact decision versions of Micciancio’s questions of whether CVP is 𝖭𝖯\mathsf{NP}-hard on cyclic lattices and on a fixed family of cyclic lattices, even under the stronger restriction to full-rank principal cyclic ideals.

1 Introduction

A lattice is the set of all integer combinations of linearly independent vectors. Two basic lattice problems are the shortest vector problem (SVP) and the closest vector problem (CVP). SVP asks for a shortest nonzero lattice vector. CVP asks for a lattice point closest to a given target. Both problems are central in the study of lattices and in lattice-based cryptography; see [17] for background.

Cryptographic schemes often use lattices with extra algebraic structure. An ideal in a polynomial quotient ring is closed under multiplication by every ring element, and a principal ideal is generated by a single element. In coefficient coordinates, ring multiplication becomes polynomial convolution. For example, ideals in ℤ⁡[X]/(XD−1)\mathbb{Z}[X]/(X^{D}-1) give lattices closed under cyclic rotation. This structure gives shorter descriptions and faster arithmetic. It is used in lattice-based cryptography, including the NTRU cryptosystem, Ring-LWE-based schemes, compact one-way functions, collision-resistant hashing, and fully homomorphic encryption [12, 16, 20, 22, 15, 9]. The same structure may also enable specialized algorithms.

For general lattices, much is known about hardness. Exact Euclidean decision-CVP is 𝖭𝖯\mathsf{NP}-complete [24]. CVP is also 𝖭𝖯\mathsf{NP}-hard to approximate within almost-polynomial factors [5]. Exact Euclidean SVP is 𝖭𝖯\mathsf{NP}-hard under randomized reductions [1]. Approximating Euclidean SVP within some constant factor is also 𝖭𝖯\mathsf{NP}-hard under randomized reductions [18]. Hair and Sahai recently proved deterministic 𝖭𝖯\mathsf{NP}-hardness of exact SVP in the ℓp\ell_{p}-norm for every p>2p>2 [11], and almost-polynomial-factor hardness for every finite p≥2p\geq 2 under deterministic subexponential-time reductions [10]. These reductions can build arbitrary lattice bases and need not preserve the ideal or principal ideal structure. Earlier work gave reductions between problems on ideal lattices, but these reductions do not prove the 𝖭𝖯\mathsf{NP}-hardness of exact CVP on principal ideals [23]. This gap matters because cyclotomic structure can lead to special algorithms. Examples include recovering short generators of some principal ideals [3] and, under number-theoretic assumptions, finding mildly short vectors in cyclotomic ideal lattices in quantum polynomial time [4].

CVP with preprocessing (CVPP) asks what happens when the lattice is known before the target. The offline step may take unlimited time, but it may keep only polynomially many bits; the online step must answer target-and-threshold queries in polynomial time. Micciancio showed that exact decision-CVPP has no polynomial-time solution on general lattices unless 𝖭𝖯⊆𝖯/poly\mathsf{NP}\subseteq\mathsf{P}/\mathrm{poly} [19]. For approximate CVPP, constant-factor approximation is hard [7]. Stronger inapproximability factors are known under quasipolynomial-time hardness assumptions [2, 14]. Separately, Micciancio asked whether CVP is 𝖭𝖯\mathsf{NP}-hard on cyclic lattices and whether it remains hard for a fixed family with one cyclic lattice for each input size [21].

This leads to our main question.

Is exact Euclidean CVP 𝖭𝖯\mathsf{NP}-hard for ideal and cyclic lattices, even for full-rank principal ideals? Does this hardness still hold for a uniformly computable family with one ideal per input size, fixed before the target is known?

1.1 Our results

Our answer to both questions is yes. Our main result concerns principal ideals in the power-of-two cyclotomic rings

Rd=ℤ⁡[y]/(yd+1),R_{d}=\mathbb{Z}[y]/(y^{d}+1),

where dd is a power of two.

Theorem 1.1 (Principal cyclotomic ideals, informal).

For dd ranging over powers of two, exact Euclidean decision-CVP is 𝖭𝖯\mathsf{NP}-complete on the coefficient lattices of nonzero principal ideals in RdR_{d}. A deterministic polynomial-time many-one reduction from Exact Cover by 3-Sets (X3C) produces an integral target and an integer squared threshold Δ\Delta. The closest squared distance is exactly Δ\Delta in a YES instance and at least Δ+4\Delta+4 in a NO instance. Moreover, the ideal elements whose squared distance from the target under the coefficient embedding is at most Δ\Delta are in bijection with the exact covers of the X3C instance.

Every nonzero ideal in RdR_{d} has full ℤ\mathbb{Z}-rank. By Lemma 2.3, the theorem also holds under the canonical embedding after multiplying all squared distances and thresholds by dd. This bijection also gives 𝖭𝖯\mathsf{NP}-hardness of exact search-CVP under polynomial-time Turing reductions.

The construction also lifts to full-rank principal ideals in SD=ℤ⁡[X]/(XD−1)S_{D}=\mathbb{Z}[X]/(X^{D}-1), where D=2​dD=2d, and proves 𝖭𝖯\mathsf{NP}-completeness of exact decision-CVP on their coefficient lattices, which are cyclic lattices. Exact search-CVP on these lattices is 𝖭𝖯\mathsf{NP}-hard under polynomial-time Turing reductions. Since XD−1X^{D}-1 is reducible, these are coefficient lattices in a cyclic quotient, not canonical ideal lattices from the ring of integers of a single number field.

For each X3C universe size mm, we also give one uniformly computable principal cyclotomic ideal and one principal cyclic ideal, both of dimension Θ⁡(m7)\Theta(m^{7}). Only the target and squared threshold depend on the triple collection, while exact decision-CVP remains 𝖭𝖯\mathsf{NP}-complete. Unless 𝖭𝖯⊆𝖯/poly\mathsf{NP}\subseteq\mathsf{P}/\mathrm{poly}, exact decision-CVPP has no polynomial-time solution on either family. Consequently, the polynomial hierarchy would collapse to Σ2𝖯\Sigma_{2}^{\mathsf{P}} if such a solution existed [13]. To our knowledge, these cyclic results answer Micciancio’s two open questions about exact CVP.

1.2 Technical overview

The main challenge is to control every element of the ideal. In a reduction to a general lattice, we may choose the basis vectors separately. For a principal ideal (g)⊆Rd(g)\subseteq R_{d} generated by gg, however, the natural basis vectors are the negacyclic shifts

g,y​g,…,yd−1​g,g,yg,\ldots,y^{d-1}g,

and every element of (g)(g) has the form g​qgq for some q∈Rdq\in R_{d}. Thus we must encode Boolean vectors by suitable choices of qq and rule out every other g​qgq.

We achieve our goal by reducing from X3C [8]. An X3C instance consists of a universe of size mm and nn three-element subsets, called triples, and asks whether some subcollection covers every element exactly once. We write this condition as the following integer linear system with Boolean unknowns:

𝐀​𝝃=𝐛,𝐀∈{0,1}m×n,𝐛∈{0,1}m,𝝃∈{0,1}n.\mathbf{A}\boldsymbol{\xi}=\mathbf{b},\hskip 20.00003pt\mathbf{A}\in\{0,1\}^{m\times n},\hskip 10.00002pt\mathbf{b}\in\{0,1\}^{m},\hskip 10.00002pt\boldsymbol{\xi}\in\{0,1\}^{n}. (1)

Here 𝐀\mathbf{A} is the incidence matrix and 𝐛=𝟏m\mathbf{b}=\mathbf{1}_{m}. A Boolean solution 𝝃\boldsymbol{\xi} specifies an exact cover. We encode 𝝃\boldsymbol{\xi} as

a𝝃​(x):=∑k=1nξk​xαk.a_{\boldsymbol{\xi}}(x):=\sum_{k=1}^{n}\xi_{k}x^{\alpha_{k}}.

Encoding the Boolean equations.

We choose the exponents α1,…,αn\alpha_{1},\ldots,\alpha_{n} so that all nonzero ordered differences αk−αj\alpha_{k}-\alpha_{j} are distinct. A classical Sidon construction provides such exponents of size O⁡(n2)O(n^{2}) [6]. We choose pairwise well-separated coefficient positions ρ1,…,ρm\rho_{1},\ldots,\rho_{m} for the mm rows and set

h(x):=∑i,j:Ai​j=1xρi−αj.h(x):=\sum_{i,j:A_{ij}=1}x^{\rho_{i}-\alpha_{j}}.

The product xρi−αj​xαkx^{\rho_{i}-\alpha_{j}}x^{\alpha_{k}} contributes at coefficient position

ρi−αj+αk.\rho_{i}-\alpha_{j}+\alpha_{k}.

When k=jk=j, all contributions for row ii occur at ρi\rho_{i} and sum to (𝐀​𝝃)i(\mathbf{A}\boldsymbol{\xi})_{i}. When k≠jk\neq j, these products occupy pairwise distinct positions, all separate from the row positions ρi′\rho_{i^{\prime}}.

To obtain a gap in coefficient ℓ2\ell_{2}-distance, we define the target polynomial tt by assigning coefficient 2​bi2b_{i} at xρix^{\rho_{i}} and coefficient one at every position ρi−αj+αk\rho_{i}-\alpha_{j}+\alpha_{k} with Ai​j=1A_{ij}=1 and k≠jk\neq j. The positions ρi\rho_{i} contribute 4​‖𝐀​𝝃−𝐛‖224\|\mathbf{A}\boldsymbol{\xi}-\mathbf{b}\|_{2}^{2}. At every other specified position the difference is 2​ξk−1∈{−1,1}2\xi_{k}-1\in\{-1,1\}. We denote the number of these positions by ν\nu, so their total squared contribution is ν\nu, independently of 𝝃\boldsymbol{\xi}. This gives

‖2​h​a𝝃−t‖22=ν+4​‖𝐀​𝝃−𝐛‖22.\|2ha_{\boldsymbol{\xi}}-t\|_{2}^{2}=\nu+4\|\mathbf{A}\boldsymbol{\xi}-\mathbf{b}\|_{2}^{2}.

Thus every Boolean vector satisfying (1) has squared distance ν\nu, whereas every Boolean vector violating at least one constraint in (1) has squared distance at least ν+4\nu+4.

Controlling every ideal element.

The identity above applies only to the polynomials a𝝃a_{\boldsymbol{\xi}} encoding Boolean vectors. To handle every q∈Rdq\in R_{d}, we place the construction in the even coordinates of a larger cyclotomic ring by replacing xx with y2y^{2}. The degree-<d<d representative of qq then decomposes uniquely as

q⁡(y)=a⁡(y2)+y​b​(y2).q(y)=a(y^{2})+yb(y^{2}).

Here aa and bb are the integer polynomials formed by the even and odd coefficients of qq, respectively. A mask 𝝁∈{0,1}n\boldsymbol{\mu}\in\{0,1\}^{n} records which coordinates of 𝝃\boldsymbol{\xi} may equal one, and we set u𝝁​(x):=∑kμk​xαku_{\boldsymbol{\mu}}(x):=\sum_{k}\mu_{k}x^{\alpha_{k}}. The basic X3C reduction takes 𝝁=𝟏n\boldsymbol{\mu}=\mathbf{1}_{n}. For a sufficiently large integer PP, we set

g⁡(y)\displaystyle g(y) :=2​h​(y2)+2​P​y,\displaystyle:=2h(y^{2})+2Py,
T𝝁​(y)\displaystyle T_{\boldsymbol{\mu}}(y) :=t⁡(y2)+P​y​u𝝁​(y2),\displaystyle:=t(y^{2})+Py\,u_{\boldsymbol{\mu}}(y^{2}),
Δ𝝁\displaystyle\Delta_{\boldsymbol{\mu}} :=P2​‖𝝁‖0+ν.\displaystyle:=P^{2}\|\boldsymbol{\mu}\|_{0}+\nu.

Here ‖𝝁‖0\|\boldsymbol{\mu}\|_{0} denotes the number of nonzero coordinates of 𝝁\boldsymbol{\mu}. Separating g​q−T𝝁gq-T_{\boldsymbol{\mu}} into its even- and odd-degree coefficients gives

g​q−T𝝁=(2​h​a+2​P​x​b−t)​(y2)+y⁡(2​h​b+2​P​a−P​u𝝁)​(y2).gq-T_{\boldsymbol{\mu}}=(2ha+2Pxb-t)(y^{2})+y(2hb+2Pa-Pu_{\boldsymbol{\mu}})(y^{2}).

The PP-dependent part of the two displayed components has squared norm 4​P2​(‖b‖22+‖a−u𝝁/2‖22)4P^{2}(\|b\|_{2}^{2}+\|a-u_{\boldsymbol{\mu}}/2\|_{2}^{2}). Over integral coefficients, this quantity is minimized exactly when b=0b=0 and a=a𝝃a=a_{\boldsymbol{\xi}} for some Boolean 𝝃≤𝝁\boldsymbol{\xi}\leq\boldsymbol{\mu}, where the inequality is coordinatewise. Every other integral pair increases this squared norm by at least 4​P24P^{2}. We choose PP large enough that the remaining terms cannot offset this increase, making every other qq have squared distance greater than Δ𝝁+4\Delta_{\boldsymbol{\mu}}+4.

For a Boolean vector 𝝃≤𝝁\boldsymbol{\xi}\leq\boldsymbol{\mu}, the two components give

‖g​a𝝃​(y2)−T𝝁‖22=Δ𝝁+4​‖𝐀​𝝃−𝐛‖22.\|ga_{\boldsymbol{\xi}}(y^{2})-T_{\boldsymbol{\mu}}\|_{2}^{2}=\Delta_{\boldsymbol{\mu}}+4\|\mathbf{A}\boldsymbol{\xi}-\mathbf{b}\|_{2}^{2}.

Thus the elements of (g)(g) at squared distance at most Δ𝝁\Delta_{\boldsymbol{\mu}} from T𝝁T_{\boldsymbol{\mu}} are exactly those encoding solutions, and every other element has squared distance at least Δ𝝁+4\Delta_{\boldsymbol{\mu}}+4. The main technical step is extending this distance separation from the Boolean encodings a𝝃​(y2)a_{\boldsymbol{\xi}}(y^{2}) to every q∈Rdq\in R_{d}.

Full rank follows because RdR_{d} is an integral domain and the generator is nonzero. Fourier orthogonality shows that squared distances under the canonical embedding are dd times those under the coefficient embedding.

Cyclic and fixed-family extensions.

For the cyclic case, we convert each constructed principal cyclotomic ideal into a principal cyclic ideal of twice the dimension, while multiplying the squared distances of corresponding elements by eight. For the fixed families, we use the matrix of all (m3)\binom{m}{3} triples and place the input collection only in 𝝁\boldsymbol{\mu}. The resulting principal cyclotomic and cyclic ideals then depend only on mm. The details appear in Section 3.3 and Section 4, respectively.

Organization.

Section 2 reviews lattices and ideal lattices. Section 3 proves 𝖭𝖯\mathsf{NP}-completeness of exact decision-CVP on principal cyclotomic and principal cyclic ideal lattices. Section 4 proves that exact decision-CVPP has no polynomial-time solution on the resulting fixed principal-ideal families unless 𝖭𝖯⊆𝖯/poly\mathsf{NP}\subseteq\mathsf{P}/\mathrm{poly}. Section 5 summarizes the results.

2 Preliminaries

Notation.

For r≥1r\geq 1, write [r]:={1,…,r}[r]:=\{1,\ldots,r\}. We use bold lowercase Roman or Greek letters for vectors and bold uppercase letters for matrices. For a vector 𝐯\mathbf{v}, its kk-th coordinate is denoted by vkv_{k}. For a matrix 𝐀\mathbf{A}, its entry in row ii and column jj is denoted by Ai​jA_{ij}. Vector inequalities are coordinatewise. For 1≤p≤∞1\leq p\leq\infty, ‖𝐯‖p\|\mathbf{v}\|_{p} is the usual ℓp\ell_{p}-norm, while ‖𝐯‖0:=|{i:vi≠0}|\|\mathbf{v}\|_{0}:=|\{i:v_{i}\neq 0\}| is the support size. We write 𝟎r\mathbf{0}_{r} and 𝟏r\mathbf{1}_{r} for the length-rr all-zero and all-ones vectors. For scalars, finite sets, and binary strings, |⋅||\cdot| denotes absolute value, cardinality, and bit length, respectively.

2.1 Lattices

For integers m≥n≥1m\geq n\geq 1, let 𝐁∈ℝm×n\mathbf{B}\in\mathbb{R}^{m\times n} have linearly independent columns. The lattice generated by 𝐁\mathbf{B} is defined by

ℒ⁡(𝐁)=𝐁​ℤn={𝐁𝐳:𝐳∈ℤn}.\mathcal{L}(\mathbf{B})=\mathbf{B}\mathbb{Z}^{n}=\{\mathbf{B}\mathbf{z}:\mathbf{z}\in\mathbb{Z}^{n}\}.

The columns of 𝐁\mathbf{B} form a basis of ℒ⁡(𝐁)\mathcal{L}(\mathbf{B}). If m=nm=n, then ℒ⁡(𝐁)\mathcal{L}(\mathbf{B}) is called full rank. We write ∥⋅∥2\|\cdot\|_{2} for the Euclidean norm.

For a lattice ℒ⊆ℝm\mathcal{L}\subseteq\mathbb{R}^{m} and 𝐭∈ℝm\mathbf{t}\in\mathbb{R}^{m}, define

dist⁡(𝐭,ℒ)=min𝐯∈ℒ⁡‖𝐭−𝐯‖2.\operatorname{dist}(\mathbf{t},\mathcal{L})=\min_{\mathbf{v}\in\mathcal{L}}\|\mathbf{t}-\mathbf{v}\|_{2}.
Definition 2.1 (Exact CVP).

Given a rational lattice basis 𝐁\mathbf{B}, a rational target 𝐭\mathbf{t}, and a nonnegative rational squared threshold Δ\Delta, exact decision-CVP asks whether

dist⁡(𝐭,ℒ⁡(𝐁))2≤Δ.\operatorname{dist}\bigl(\mathbf{t},\mathcal{L}(\mathbf{B})\bigr)^{2}\leq\Delta.

Given 𝐁\mathbf{B} and 𝐭\mathbf{t}, exact search-CVP asks for a vector 𝐯∈ℒ⁡(𝐁)\mathbf{v}\in\mathcal{L}(\mathbf{B}) satisfying

‖𝐭−𝐯‖2=dist⁡(𝐭,ℒ⁡(𝐁)).\|\mathbf{t}-\mathbf{v}\|_{2}=\operatorname{dist}\bigl(\mathbf{t},\mathcal{L}(\mathbf{B})\bigr).

The exact shortest vector problem (SVP) is the corresponding problem with 𝐭=𝟎m\mathbf{t}=\mathbf{0}_{m}, except that the zero lattice vector is excluded.

We use the following formulation of exact decision-CVPP, following Micciancio [19].

Definition 2.2 (Exact decision-CVPP).

An exact decision-CVPP scheme consists of a preprocessing function 𝖯𝗋𝖾\mathsf{Pre}, a uniform polynomial-time decoder 𝖣𝖾𝖼\mathsf{Dec}, and a polynomial pp with the following properties.

  • •

    Given a rational lattice basis 𝐁\mathbf{B}, the offline stage outputs a string π𝐁:=𝖯𝗋𝖾⁡(𝐁)\pi_{\mathbf{B}}:=\mathsf{Pre}(\mathbf{B}) satisfying |π𝐁|≤p⁡(|⟨𝐁⟩|)|\pi_{\mathbf{B}}|\leq p(|\langle\mathbf{B}\rangle|), where ⟨𝐁⟩\langle\mathbf{B}\rangle is the standard binary encoding of 𝐁\mathbf{B}. No running-time bound is imposed on 𝖯𝗋𝖾\mathsf{Pre}.

  • •

    Given π𝐁\pi_{\mathbf{B}}, a rational target 𝐭\mathbf{t}, and a nonnegative rational squared threshold Δ\Delta, the online stage satisfies

    𝖣𝖾𝖼(π𝐁,𝐭,Δ)=1⟺dist(𝐭,ℒ(𝐁))2≤Δ.\mathsf{Dec}(\pi_{\mathbf{B}},\mathbf{t},\Delta)=1\hskip 10.00002pt\Longleftrightarrow\hskip 10.00002pt\operatorname{dist}(\mathbf{t},\mathcal{L}(\mathbf{B}))^{2}\leq\Delta.

    Its running time is polynomial in the total length of these inputs.

We say that exact decision-CVPP is solvable in polynomial time on a lattice family with one specified basis for each lattice if a single such scheme works for all these bases.

2.2 Algebraic Number Theory and Ideal Lattices

Let KK be a number field of degree nn, and let R:=𝒪KR:=\mathcal{O}_{K} be its ring of integers.

Coefficient embedding.

Fix an algebraic integer θ∈R\theta\in R such that K=ℚ⁡(θ)K=\mathbb{Q}(\theta), and let F⁡(z)∈ℤ⁡[z]F(z)\in\mathbb{Z}[z] be the monic minimal polynomial of θ\theta. Then K≅ℚ⁡[z]/(F⁡(z))K\cong\mathbb{Q}[z]/(F(z)). Every element a∈Ka\in K has a unique representation

a=a0+a1​θ+⋯+an−1​θn−1,a0,…,an−1∈ℚ.a=a_{0}+a_{1}\theta+\cdots+a_{n-1}\theta^{n-1},\hskip 20.00003pta_{0},\ldots,a_{n-1}\in\mathbb{Q}.

Its coefficient embedding with respect to the power basis 1,θ,…,θn−11,\theta,\ldots,\theta^{n-1} is

coeff⁡(a):=(a0,a1,…,an−1)⊤∈ℚn.\operatorname{coeff}(a):=(a_{0},a_{1},\ldots,a_{n-1})^{\top}\in\mathbb{Q}^{n}.

If I⊆RI\subseteq R is a nonzero ideal, then

ℒ⁡(I):={coeff⁡(a):a∈I}\mathcal{L}(I):=\{\operatorname{coeff}(a):a\in I\}

is a full-rank lattice in ℝn\mathbb{R}^{n}. For a target T∈KT\in K, its distance from II under the coefficient embedding is

dist⁡(coeff⁡(T),ℒ⁡(I)):=mina∈I⁡‖coeff⁡(T−a)‖2.\operatorname{dist}\bigl(\operatorname{coeff}(T),\mathcal{L}(I)\bigr):=\min_{a\in I}\|\operatorname{coeff}(T-a)\|_{2}.

Canonical embedding.

Let σ1,…,σn:K⟶ℂ\sigma_{1},\ldots,\sigma_{n}:K\longrightarrow\mathbb{C} be all embeddings of KK into ℂ\mathbb{C}. The canonical embedding is defined by

σ⁡(a):=(σ1​(a),…,σn​(a))∈ℂn.\sigma(a):=(\sigma_{1}(a),\ldots,\sigma_{n}(a))\in\mathbb{C}^{n}.

Because the complex embeddings occur in conjugate pairs, σ⁡(K)\sigma(K) lies in a real subspace of ℂn\mathbb{C}^{n} of dimension nn. If I⊆RI\subseteq R is a nonzero ideal, then

σ⁡(I):={σ⁡(a):a∈I}\sigma(I):=\{\sigma(a):a\in I\}

is a full-rank lattice in this real subspace. For T∈KT\in K, its distance from II under the canonical embedding is

dist⁡(σ⁡(T),σ⁡(I)):=mina∈I⁡‖σ⁡(T−a)‖2.\operatorname{dist}\bigl(\sigma(T),\sigma(I)\bigr):=\min_{a\in I}\|\sigma(T-a)\|_{2}.

In general, the coefficient and canonical embeddings induce different Euclidean lengths. We now specialize to power-of-two cyclotomic fields, for which the two lengths differ only by a fixed scaling factor.

The power-of-two cyclotomic case.

Let dd be a power of two and put ζ=eπ​i/d\zeta=e^{\pi i/d}, a primitive 2​d2d-th root of unity. We specialize to

K=Kd=ℚ⁡(ζ),R=Rd=𝒪Kd=ℤ⁡[ζ]≅ℤ⁡[y]/(yd+1).K=K_{d}=\mathbb{Q}(\zeta),\hskip 20.00003ptR=R_{d}=\mathcal{O}_{K_{d}}=\mathbb{Z}[\zeta]\cong\mathbb{Z}[y]/(y^{d}+1).

In a quotient by a monic polynomial of degree rr, we identify each element with its unique representative of degree less than rr. Every f∈Kdf\in K_{d} has a unique representation

f=f0+f1​y+⋯+fd−1​yd−1,f0,…,fd−1∈ℚ,f=f_{0}+f_{1}y+\cdots+f_{d-1}y^{d-1},\hskip 20.00003ptf_{0},\ldots,f_{d-1}\in\mathbb{Q},

with coefficient vector

coeff⁡(f)=(f0,…,fd−1)⊤.\operatorname{coeff}(f)=(f_{0},\ldots,f_{d-1})^{\top}.

The dd canonical embeddings of KdK_{d} send yy to ζ2​k+1\zeta^{2k+1} for k=0,…,d−1k=0,\ldots,d-1. Accordingly, we write

σd​(f)=(f⁡(ζ),f⁡(ζ3),…,f⁡(ζ2​d−1)).\sigma_{d}(f)=\bigl(f(\zeta),f(\zeta^{3}),\ldots,f(\zeta^{2d-1})\bigr).

For 1≤p≤∞1\leq p\leq\infty, we use ‖f‖p:=‖coeff⁡(f)‖p\|f\|_{p}:=\|\operatorname{coeff}(f)\|_{p} for the coefficient ℓp\ell_{p}-norm of f∈Kdf\in K_{d}.

We will use Young’s convolution inequality in the following form. For every r≥1r\geq 1 and f,g∈ℝ⁡[z]/(zr+1)f,g\in\mathbb{R}[z]/(z^{r}+1), with coefficient norms taken on their degree-<r<r representatives,

‖f​g‖2≤‖f‖1​‖g‖2.\|fg\|_{2}\leq\|f\|_{1}\|g\|_{2}.

Indeed, multiplication by a monomial is a signed coordinate permutation, so the inequality follows from the triangle inequality.

For g∈Rdg\in R_{d}, write (g):=g​Rd={g​q:q∈Rd}(g):=gR_{d}=\{gq:q\in R_{d}\} for the principal ideal generated by gg. We write I⊲RI\lhd R to mean that II is an ideal of RR. For 0≠g∈Rd0\neq g\in R_{d}, let

𝐁g:=[coeff(g)coeff(yg)⋯coeff(yd−1g)].\mathbf{B}_{g}:=\bigl[\operatorname{coeff}(g)\ \operatorname{coeff}(yg)\ \cdots\ \operatorname{coeff}(y^{d-1}g)\bigr].

Since RdR_{d} is a domain, these columns form a ℤ\mathbb{Z}-basis of ℒ⁡((g))\mathcal{L}((g)). We refer to 𝐁g\mathbf{B}_{g} as its multiplication basis.

Lemma 2.3 (Equivalence of coefficient and canonical norms).

For every f∈Kdf\in K_{d},

‖σd​(f)‖22=d​‖coeff⁡(f)‖22.\|\sigma_{d}(f)\|_{2}^{2}=d\|\operatorname{coeff}(f)\|_{2}^{2}.

Consequently, for every nonzero ideal I⊆RdI\subseteq R_{d} and every target T∈KdT\in K_{d},

dist⁡(σd​(T),σd​(I))2=d​dist​(coeff⁡(T),ℒ⁡(I))2.\operatorname{dist}\bigl(\sigma_{d}(T),\sigma_{d}(I)\bigr)^{2}=d\operatorname{dist}\bigl(\operatorname{coeff}(T),\mathcal{L}(I)\bigr)^{2}.

Therefore, exact CVP and SVP under the two embeddings are equivalent after multiplying each squared threshold by dd.

Proof.

For 0≤r,s<d0\leq r,s<d, Fourier orthogonality gives

∑k=0d−1ζ(2​k+1)​(r−s)={d,r=s,0,r≠s.\sum_{k=0}^{d-1}\zeta^{(2k+1)(r-s)}=\begin{cases}d,&r=s,\\ 0,&r\neq s.\end{cases}

Expanding the squared canonical norm therefore yields

‖σd​(f)‖22\displaystyle\|\sigma_{d}(f)\|_{2}^{2} =∑r,s=0d−1fr​fs¯​∑k=0d−1ζ(2​k+1)​(r−s)\displaystyle=\sum_{r,s=0}^{d-1}f_{r}\overline{f_{s}}\sum_{k=0}^{d-1}\zeta^{(2k+1)(r-s)}
=d​∑r=0d−1|fr|2\displaystyle=d\sum_{r=0}^{d-1}|f_{r}|^{2}
=d​‖coeff⁡(f)‖22.\displaystyle=d\|\operatorname{coeff}(f)\|_{2}^{2}.

The remaining statements follow because the canonical embedding scales every Euclidean length in the coefficient embedding by d\sqrt{d}. ∎

2.3 Exact Cover by 3-Sets (X3C).

Let 𝒰={u1,…,um}\mathcal{U}=\{u_{1},\ldots,u_{m}\}, where mm is a positive multiple of 33, and let 𝒞={C1,…,Cn}\mathcal{C}=\{C_{1},\ldots,C_{n}\} be a collection of 33-element subsets of 𝒰\mathcal{U} (called triples). Write n=|𝒞|n=|\mathcal{C}|. The incidence matrix of the instance is 𝐇∈{0,1}m×n\mathbf{H}\in\{0,1\}^{m\times n} defined by

Hi​j={1if ​ui∈Cj,0otherwise.H_{ij}=\begin{cases}1&\text{if }u_{i}\in C_{j},\\[2.0pt] 0&\text{otherwise.}\end{cases}

An exact cover is a vector 𝝃∈{0,1}n\boldsymbol{\xi}\in\{0,1\}^{n} satisfying the binary linear system

𝐇​𝝃=𝟏m,\mathbf{H}\boldsymbol{\xi}=\mathbf{1}_{m},

where 𝟏m∈{0,1}m\mathbf{1}_{m}\in\{0,1\}^{m} denotes the all-ones vector. X3C asks whether such an exact cover exists. Equivalently, the selected subfamily 𝒞′={Cj:ξj=1}⊆𝒞\mathcal{C}^{\prime}=\{C_{j}:\xi_{j}=1\}\subseteq\mathcal{C} must be pairwise disjoint and cover every element of 𝒰\mathcal{U} exactly once:

⋃Cj∈𝒞′Cj=𝒰,Cj∩Cj′=∅​ for all distinct ​Cj,Cj′∈𝒞′.\bigcup_{C_{j}\in\mathcal{C}^{\prime}}C_{j}=\mathcal{U},\hskip 20.00003ptC_{j}\cap C_{j^{\prime}}=\varnothing\;\text{ for all distinct }C_{j},C_{j^{\prime}}\in\mathcal{C}^{\prime}.

It is well known that X3C is 𝖭𝖯\mathsf{NP}-complete [8].

3 Reduction from X3C to CVP on principal ideal lattices

We use the following masked generalization of X3C. For the general masked system below, MM denotes the number of equations. In the X3C specialization, M=mM=m. Let M,n≥1M,n\geq 1, and consider the masked Boolean system

𝐀​𝝃=𝐛,𝝃∈{0,1}n,𝝃≤𝝁,\mathbf{A}\boldsymbol{\xi}=\mathbf{b},\hskip 20.00003pt\boldsymbol{\xi}\in\{0,1\}^{n},\hskip 20.00003pt\boldsymbol{\xi}\leq\boldsymbol{\mu}, (2)

where 𝐀∈{0,1}M×n\mathbf{A}\in\{0,1\}^{M\times n}, 𝐛∈{0,1}M\mathbf{b}\in\{0,1\}^{M}, and 𝝁∈{0,1}n\boldsymbol{\mu}\in\{0,1\}^{n}.

In this paper, we call 𝝁\boldsymbol{\mu} the mask. The constraint 𝝃≤𝝁\boldsymbol{\xi}\leq\boldsymbol{\mu} permits ξk=1\xi_{k}=1 only when μk=1\mu_{k}=1. The feasibility problem for masked Boolean systems is 𝖭𝖯\mathsf{NP}-complete, since X3C is the special case obtained by setting

(𝐀,𝐛,𝝁)=(𝐇,𝟏m,𝟏n).(\mathbf{A},\mathbf{b},\boldsymbol{\mu})=(\mathbf{H},\mathbf{1}_{m},\mathbf{1}_{n}).

We reduce this feasibility problem to exact decision-CVP on principal ideal lattices. Roughly speaking, for each Boolean vector 𝝃≤𝝁\boldsymbol{\xi}\leq\boldsymbol{\mu}, we form a sparse polynomial a𝝃a_{\boldsymbol{\xi}} and construct a principal ideal (g)(g), a target T𝝁T_{\boldsymbol{\mu}}, and a threshold Δ𝝁\Delta_{\boldsymbol{\mu}} with

‖g​a𝝃​(y2)−T𝝁‖22=Δ𝝁+4​‖𝐀​𝝃−𝐛‖22.\|ga_{\boldsymbol{\xi}}(y^{2})-T_{\boldsymbol{\mu}}\|_{2}^{2}=\Delta_{\boldsymbol{\mu}}+4\|\mathbf{A}\boldsymbol{\xi}-\mathbf{b}\|_{2}^{2}.

We then add coefficients at odd powers of yy so that every ideal element g​qgq for which qq is not of the form a𝝃​(y2)a_{\boldsymbol{\xi}}(y^{2}) for any 𝝃∈{0,1}n\boldsymbol{\xi}\in\{0,1\}^{n} satisfying 𝝃≤𝝁\boldsymbol{\xi}\leq\boldsymbol{\mu} has squared distance from T𝝁T_{\boldsymbol{\mu}} greater than Δ𝝁+4\Delta_{\boldsymbol{\mu}}+4. Thus the closest squared distance is Δ𝝁\Delta_{\boldsymbol{\mu}} for a YES instance and at least Δ𝝁+4\Delta_{\boldsymbol{\mu}}+4 for a NO instance.

3.1 Encoding the Boolean equations

We first choose coefficient positions α1,…,αn\alpha_{1},\ldots,\alpha_{n} whose nonzero ordered differences are pairwise distinct.

Lemma 3.1.

For every n≥1n\geq 1, one can compute in polynomial time integers

0=α1<⋯<αn,αn=Θ(n2)(n≥2),0=\alpha_{1}<\cdots<\alpha_{n},\hskip 20.00003pt\alpha_{n}=\Theta(n^{2})\hskip 10.00002pt(n\geq 2),

whose nonzero ordered differences αk−αj\alpha_{k}-\alpha_{j} are pairwise distinct.

Proof.

For n=1n=1, take α1=0\alpha_{1}=0. Otherwise we can always choose an odd prime p∈[n,2​n)p\in[n,2n) by Bertrand’s postulate. Let rjr_{j} be the least residue of (j−1)2(j-1)^{2} modulo pp, and set

αj:=2​p​(j−1)+rj.\alpha_{j}:=2p(j-1)+r_{j}.

This is exactly the classical Erdős–Turán Sidon construction [6], which ensures all nonzero ordered differences αk−αj\alpha_{k}-\alpha_{j} are pairwise distinct. The construction runs in polynomial time. Finally, p<2​np<2n and rn<pr_{n}<p give αn=O⁡(n2)\alpha_{n}=O(n^{2}), while p≥np\geq n gives

αn≥2​p​(n−1)≥2​n​(n−1).\alpha_{n}\geq 2p(n-1)\geq 2n(n-1).

Hence αn=Θ⁡(n2)\alpha_{n}=\Theta(n^{2}) for n≥2n\geq 2. ∎

Denote

c:=αn,L:=2c+1,ρi:=c+(i−1)L(i∈[M]).c:=\alpha_{n},\hskip 10.00002ptL:=2c+1,\hskip 10.00002pt\rho_{i}:=c+(i-1)L\hskip 10.00002pt(i\in[M]).

We call ρi\rho_{i} the row coordinate of row ii. For Ai​j=1A_{ij}=1 and k≠jk\neq j, the position ρi−αj+αk\rho_{i}-\alpha_{j}+\alpha_{k} is a cross-term coordinate. Set

W:=∑i∈[M]∑j∈[n]Ai​j,ν:=(n−1)​W.W:=\sum_{i\in[M]}\sum_{j\in[n]}A_{ij},\hskip 20.00003pt\nu:=(n-1)W.

Let NN be the least power of two greater than ρM+c\rho_{M}+c, and work in RN−:=ℤ⁡[x]/(xN+1)R_{N}^{-}:=\mathbb{Z}[x]/(x^{N}+1). We use degree-<N<N representatives and their coefficient norms. Define

h⁡(x)\displaystyle h(x) :=∑Ai​j=1xρi−αj,\displaystyle:=\sum_{A_{ij}=1}x^{\rho_{i}-\alpha_{j}},
t⁡(x)\displaystyle t(x) :=2​∑i=1Mbi​xρi+∑Ai​j=1k≠jxρi−αj+αk,\displaystyle:=2\sum_{i=1}^{M}b_{i}x^{\rho_{i}}+\sum_{\begin{subarray}{c}A_{ij}=1\\ k\neq j\end{subarray}}x^{\rho_{i}-\alpha_{j}+\alpha_{k}},
a𝝃​(x)\displaystyle a_{\boldsymbol{\xi}}(x) :=∑k=1nξk​xαk.\displaystyle:=\sum_{k=1}^{n}\xi_{k}x^{\alpha_{k}}.

The construction satisfies the following identity.

Lemma 3.2.

For every 𝛏∈{0,1}n\boldsymbol{\xi}\in\{0,1\}^{n},

‖2​h​a𝝃−t‖22=ν+4​‖𝐀​𝝃−𝐛‖22.\|2ha_{\boldsymbol{\xi}}-t\|_{2}^{2}=\nu+4\|\mathbf{A}\boldsymbol{\xi}-\mathbf{b}\|_{2}^{2}.
Proof.

Note that

2​h​(x)​a𝝃​(x)=2​∑Ai​j=1∑k=1nξk​xρi−αj+αk.2h(x)a_{\boldsymbol{\xi}}(x)=2\sum_{A_{ij}=1}\sum_{k=1}^{n}\xi_{k}x^{\rho_{i}-\alpha_{j}+\alpha_{k}}.

Splitting the inner sum according to k=jk=j and k≠jk\neq j yields

2​h​(x)​a𝝃​(x)=2​∑Ai​j=1ξj​xρi+2​∑Ai​j=1k≠jξk​xρi−αj+αk.2h(x)a_{\boldsymbol{\xi}}(x)=2\sum_{A_{ij}=1}\xi_{j}x^{\rho_{i}}+2\sum_{\begin{subarray}{c}A_{ij}=1\\ k\neq j\end{subarray}}\xi_{k}x^{\rho_{i}-\alpha_{j}+\alpha_{k}}. (3)

Subtracting t⁡(x)t(x) from (3) gives

2h(x)a𝝃(x)−t(x)=2∑i=1M(∑j:Ai​j=1ξj−bi)xρi+∑Ai​j=1k≠j(2ξk−1)xρi−αj+αk.2h(x)a_{\boldsymbol{\xi}}(x)-t(x)=2\sum_{i=1}^{M}\Bigl(\sum_{j:A_{ij}=1}\xi_{j}-b_{i}\Bigr)x^{\rho_{i}}+\sum_{\begin{subarray}{c}A_{ij}=1\\ k\neq j\end{subarray}}(2\xi_{k}-1)x^{\rho_{i}-\alpha_{j}+\alpha_{k}}. (4)

Because (𝐀𝝃)i=∑j:Ai​j=1ξj(\mathbf{A}\boldsymbol{\xi})_{i}=\sum_{j:A_{ij}=1}\xi_{j}, the coefficient of xρix^{\rho_{i}} in (4) is precisely 2​((𝐀​𝝃)i−bi)2((\mathbf{A}\boldsymbol{\xi})_{i}-b_{i}).

To compute the ℓ2\ell_{2}-norm of (4), we must verify that all its monomials have distinct exponents. The row coordinates ρi\rho_{i} are pairwise distinct because L>0L>0.

(i) Cross-term coordinates do not equal row coordinates. A row coordinate is some ρi′=c+(i′−1)​L\rho_{i^{\prime}}=c+(i^{\prime}-1)L. A cross-term coordinate is ρi−αj+αk\rho_{i}-\alpha_{j}+\alpha_{k} with Ai​j=1A_{ij}=1 and k≠jk\neq j. Equality of the two would require ρi′−ρi=αk−αj\rho_{i^{\prime}}-\rho_{i}=\alpha_{k}-\alpha_{j}. If i′=ii^{\prime}=i this forces αj=αk\alpha_{j}=\alpha_{k}, hence j=kj=k, contradicting k≠jk\neq j. If i′≠ii^{\prime}\neq i then |ρi′−ρi|≥L=2​c+1|\rho_{i^{\prime}}-\rho_{i}|\geq L=2c+1, whereas |αk−αj|≤c|\alpha_{k}-\alpha_{j}|\leq c because 0≤αj,αk≤c0\leq\alpha_{j},\alpha_{k}\leq c; thus equality is impossible.

(ii) Cross-term coordinates for a fixed row are distinct. Fix ii and suppose

ρi−αj+αk=ρi−αj′+αk′with ​k≠j,k′≠j′.\rho_{i}-\alpha_{j}+\alpha_{k}=\rho_{i}-\alpha_{j^{\prime}}+\alpha_{k^{\prime}}\hskip 10.00002pt\text{with }k\neq j,\;k^{\prime}\neq j^{\prime}.

Cancelling ρi\rho_{i} gives αk−αj=αk′−αj′\alpha_{k}-\alpha_{j}=\alpha_{k^{\prime}}-\alpha_{j^{\prime}}. By Lemma 3.1 all nonzero ordered differences αk−αj\alpha_{k}-\alpha_{j} are distinct, so (j,k)=(j′,k′)(j,k)=(j^{\prime},k^{\prime}).

(iii) Cross-term coordinates for different rows are distinct. All cross-term coordinates for row ii lie in [ρi−c,ρi+c]=[(i−1)​L,i​L−1][\rho_{i}-c,\rho_{i}+c]=[(i-1)L,iL-1]. These intervals are disjoint for distinct rows.

Since NN is a power of two larger than ρM+c\rho_{M}+c, all exponents lie in [0,N)[0,N) and no wrap-around modulo xN+1x^{N}+1 occurs. Consequently, the two sums in (4) have disjoint supports. The second sum contains exactly ν=(n−1)​W\nu=(n-1)W monomials, one for each triple (i,j,k)(i,j,k) with Ai​j=1A_{ij}=1 and k≠jk\neq j. Because ξk∈{0,1}\xi_{k}\in\{0,1\}, each coefficient satisfies (2​ξk−1)2=1(2\xi_{k}-1)^{2}=1. Therefore

‖2​h​a𝝃−t‖22\displaystyle\|2ha_{\boldsymbol{\xi}}-t\|_{2}^{2} =∑i=1M[2​((𝐀​𝝃)i−bi)]2+∑Ai​j=1k≠j(2​ξk−1)2\displaystyle=\sum_{i=1}^{M}\bigl[2((\mathbf{A}\boldsymbol{\xi})_{i}-b_{i})\bigr]^{2}+\sum_{\begin{subarray}{c}A_{ij}=1\\ k\neq j\end{subarray}}(2\xi_{k}-1)^{2}
=4​‖𝐀​𝝃−𝐛‖22+ν.\displaystyle=4\|\mathbf{A}\boldsymbol{\xi}-\mathbf{b}\|_{2}^{2}+\nu.

This completes the proof. ∎

3.2 Controlling every ideal element

Lemma 3.2 applies only to the polynomials a𝝃a_{\boldsymbol{\xi}} encoding Boolean vectors. We now add coefficients at odd powers of yy so that every q∈Rdq\in R_{d} not of the form a𝝃​(y2)a_{\boldsymbol{\xi}}(y^{2}) with 𝝃≤𝝁\boldsymbol{\xi}\leq\boldsymbol{\mu} satisfies ‖g​q−T𝝁‖22>Δ𝝁+4\|gq-T_{\boldsymbol{\mu}}\|_{2}^{2}>\Delta_{\boldsymbol{\mu}}+4.

Lemma 3.3.

The polynomial h⁡(x)=∑Ai​j=1xρi−αjh(x)=\sum_{A_{ij}=1}x^{\rho_{i}-\alpha_{j}} has exactly WW distinct monomials. Equivalently, the exponents ρi−αj\rho_{i}-\alpha_{j} with Ai​j=1A_{ij}=1 are pairwise distinct.

Proof.

Suppose (i,j)≠(i′,j′)(i,j)\neq(i^{\prime},j^{\prime}), Ai​j=Ai′​j′=1A_{ij}=A_{i^{\prime}j^{\prime}}=1, and

ρi−αj=ρi′−αj′.\rho_{i}-\alpha_{j}=\rho_{i^{\prime}}-\alpha_{j^{\prime}}.

Case 1: i=i′i=i^{\prime}. Then αj=αj′\alpha_{j}=\alpha_{j^{\prime}}, so strict monotonicity of the αj\alpha_{j}’s gives j=j′j=j^{\prime}, a contradiction.

Case 2: i≠i′i\neq i^{\prime}. The spacing of the row coordinates gives

|ρi′−ρi|≥L=2​c+1,|αj′−αj|≤c,|\rho_{i^{\prime}}-\rho_{i}|\geq L=2c+1,\hskip 20.00003pt|\alpha_{j^{\prime}}-\alpha_{j}|\leq c,

which is incompatible with ρi′−ρi=αj′−αj\rho_{i^{\prime}}-\rho_{i}=\alpha_{j^{\prime}}-\alpha_{j}.

Finally, 0≤ρi−αj≤ρM<N0\leq\rho_{i}-\alpha_{j}\leq\rho_{M}<N, so no wrap-around occurs in RN−R_{N}^{-}. Hence all WW exponents are distinct. ∎

Since these WW monomials have unit coefficients, ‖h‖1=W\|h\|_{1}=W. Set

s:=⌈n+4⌉,P:=1+s⁡(s​W+⌈‖t‖2⌉+⌈ν+4⌉).s:=\lceil\sqrt{n+4}\rceil,\hskip 20.00003ptP:=1+s\bigl(sW+\lceil\|t\|_{2}\rceil+\lceil\sqrt{\nu+4}\rceil\bigr).

Let d:=2​Nd:=2N and identify RN−R_{N}^{-} with the even-coordinate subring of Rd=ℤ⁡[y]/(yd+1)R_{d}=\mathbb{Z}[y]/(y^{d}+1) by x=y2x=y^{2}. For a mask 𝝁∈{0,1}n\boldsymbol{\mu}\in\{0,1\}^{n}, put

u𝝁​(x):=∑k=1nμk​xαku_{\boldsymbol{\mu}}(x):=\sum_{k=1}^{n}\mu_{k}x^{\alpha_{k}}

and define

g⁡(y)\displaystyle g(y) :=2​h​(y2)+2​P​y,\displaystyle:=2h(y^{2})+2Py, (5)
T𝝁​(y)\displaystyle T_{\boldsymbol{\mu}}(y) :=t⁡(y2)+P​y​u𝝁​(y2),\displaystyle:=t(y^{2})+Py\,u_{\boldsymbol{\mu}}(y^{2}), (6)
Δ𝝁\displaystyle\Delta_{\boldsymbol{\mu}} :=P2​‖𝝁‖0+ν.\displaystyle:=P^{2}\|\boldsymbol{\mu}\|_{0}+\nu. (7)

Consider the principal ideal generated by gg. Every q∈Rdq\in R_{d} has a unique form q=a⁡(y2)+y​b​(y2)q=a(y^{2})+yb(y^{2}) with a,b∈RN−a,b\in R_{N}^{-}. Direct multiplication gives

g​q−T𝝁=(2​h​a+2​P​x​b−t)​(y2)+y⁡(2​h​b+2​P​a−P​u𝝁)​(y2),gq-T_{\boldsymbol{\mu}}=(2ha+2Pxb-t)(y^{2})+y(2hb+2Pa-Pu_{\boldsymbol{\mu}})(y^{2}), (8)

where both 2​h​a+2​P​x​b−t2ha+2Pxb-t and 2​h​b+2​P​a−P​u𝝁2hb+2Pa-Pu_{\boldsymbol{\mu}} belong to RN−R_{N}^{-}.

Lemma 3.4.

If 𝛏∈{0,1}n\boldsymbol{\xi}\in\{0,1\}^{n} and 𝛏≤𝛍\boldsymbol{\xi}\leq\boldsymbol{\mu}, then

‖g​a𝝃​(y2)−T𝝁‖22=Δ𝝁+4​‖𝐀​𝝃−𝐛‖22.\|ga_{\boldsymbol{\xi}}(y^{2})-T_{\boldsymbol{\mu}}\|_{2}^{2}=\Delta_{\boldsymbol{\mu}}+4\|\mathbf{A}\boldsymbol{\xi}-\mathbf{b}\|_{2}^{2}. (9)

Every q∈Rdq\in R_{d} not of the form a𝛏​(y2)a_{\boldsymbol{\xi}}(y^{2}) for some 𝛏∈{0,1}n\boldsymbol{\xi}\in\{0,1\}^{n} with 𝛏≤𝛍\boldsymbol{\xi}\leq\boldsymbol{\mu} satisfies

‖g​q−T𝝁‖22>Δ𝝁+4.\|gq-T_{\boldsymbol{\mu}}\|_{2}^{2}>\Delta_{\boldsymbol{\mu}}+4.
Proof.

Let ω:=‖𝝁‖0\omega:=\|\boldsymbol{\mu}\|_{0}.

Case 1: q=a𝝃​(y2)q=a_{\boldsymbol{\xi}}(y^{2}) for a Boolean vector 𝝃≤𝝁\boldsymbol{\xi}\leq\boldsymbol{\mu}. Equation (8) gives

g​q−T𝝁=(2​h​a𝝃−t)​(y2)+P​y​(2​a𝝃−u𝝁)​(y2).gq-T_{\boldsymbol{\mu}}=\bigl(2ha_{\boldsymbol{\xi}}-t\bigr)(y^{2})+Py\bigl(2a_{\boldsymbol{\xi}}-u_{\boldsymbol{\mu}}\bigr)(y^{2}).

The even block.

The first summand in the displayed expression for g​q−T𝝁gq-T_{\boldsymbol{\mu}} is (2​h​a𝝃−t)​(y2)\bigl(2ha_{\boldsymbol{\xi}}-t\bigr)(y^{2}). Substituting x=y2x=y^{2} places the coefficients of 2​h​a𝝃−t2ha_{\boldsymbol{\xi}}-t in the even coordinates and does not change its coefficient ℓ2\ell_{2}-norm. Hence Lemma 3.2 gives

‖(2​h​a𝝃−t)​(y2)‖22=‖2​h​a𝝃−t‖22=ν+4​‖𝐀​𝝃−𝐛‖22.\bigl\|\bigl(2ha_{\boldsymbol{\xi}}-t\bigr)(y^{2})\bigr\|_{2}^{2}=\|2ha_{\boldsymbol{\xi}}-t\|_{2}^{2}=\nu+4\|\mathbf{A}\boldsymbol{\xi}-\mathbf{b}\|_{2}^{2}.

The odd block.

The second summand is

P​y​(2​a𝝃−u𝝁)​(y2)=P​∑k=1n(2​ξk−μk)​y2​αk+1.Py\bigl(2a_{\boldsymbol{\xi}}-u_{\boldsymbol{\mu}}\bigr)(y^{2})=P\sum_{k=1}^{n}(2\xi_{k}-\mu_{k})y^{2\alpha_{k}+1}.

For every kk, the conditions 𝝃≤𝝁\boldsymbol{\xi}\leq\boldsymbol{\mu} and 𝝃,𝝁∈{0,1}n\boldsymbol{\xi},\boldsymbol{\mu}\in\{0,1\}^{n} imply (2​ξk−μk)2=μk(2\xi_{k}-\mu_{k})^{2}=\mu_{k}. Moreover, 2​αk+1≤2​c+1≤N<d2\alpha_{k}+1\leq 2c+1\leq N<d, so the corresponding odd-coordinate positions are distinct and do not wrap around in RdR_{d}. Hence the second summand has squared norm

P2​∑k=1n(2​ξk−μk)2=P2​‖𝝁‖0=P2​ω.P^{2}\sum_{k=1}^{n}(2\xi_{k}-\mu_{k})^{2}=P^{2}\|\boldsymbol{\mu}\|_{0}=P^{2}\omega.

Since the even and odd coordinates are disjoint, adding the two contributions proves (9).

Case 2: all remaining q∈Rdq\in R_{d}. Write q=a⁡(y2)+y​b​(y2)q=a(y^{2})+yb(y^{2}) with a,b∈RN−a,b\in R_{N}^{-}, and set

Φ⁡(a,b):=‖b‖22+‖a−u𝝁2‖22.\Phi(a,b):=\|b\|_{2}^{2}+\left\|a-\frac{u_{\boldsymbol{\mu}}}{2}\right\|_{2}^{2}.

For 0≤r<N0\leq r<N, write ara_{r} for the coefficient of xrx^{r} in aa. For each kk with μk=1\mu_{k}=1, integrality gives (aαk−1/2)2≥1/4(a_{\alpha_{k}}-1/2)^{2}\geq 1/4, with equality exactly when aαk∈{0,1}a_{\alpha_{k}}\in\{0,1\}. All coefficients of aa outside these positions and all coefficients of bb contribute integer squares. Consequently,

Φ⁡(a,b)=ω4\Phi(a,b)=\frac{\omega}{4}

exactly when b=0b=0 and a=a𝝃a=a_{\boldsymbol{\xi}} for some Boolean vector 𝝃≤𝝁\boldsymbol{\xi}\leq\boldsymbol{\mu}. For every other pair, Φ⁡(a,b)\Phi(a,b) is larger by at least 11. Hence

Φ⁡(a,b)≥ω+44.\Phi(a,b)\geq\frac{\omega+4}{4}.

Identify a polynomial in RdR_{d} with the ordered pair of its even- and odd-degree coefficient blocks, equipped with the product Euclidean norm. Equation (8) becomes

g​q−T𝝁=2​P​((x​b,a)−(0,u𝝁/2))+2​(h​a,h​b)−(t,0).gq-T_{\boldsymbol{\mu}}=2P\bigl((xb,a)-(0,u_{\boldsymbol{\mu}}/2)\bigr)+2(ha,hb)-(t,0).

Multiplication by xx is an isometry in RN−R_{N}^{-}, so ‖x​b‖2=‖b‖2\|xb\|_{2}=\|b\|_{2}. Young’s inequality and ‖h‖1=W\|h\|_{1}=W give the first bound below, while the triangle inequality gives the second:

‖(h​a,h​b)‖2≤W​‖(a,b)‖2,‖(a,b)‖2≤Φ⁡(a,b)+ω2.\|(ha,hb)\|_{2}\leq W\|(a,b)\|_{2},\hskip 20.00003pt\|(a,b)\|_{2}\leq\sqrt{\Phi(a,b)}+\frac{\sqrt{\omega}}{2}.

The reverse triangle inequality therefore yields

‖g​q−T𝝁‖2≥2​(P−W)​Φ⁡(a,b)−W​ω−‖t‖2.\|gq-T_{\boldsymbol{\mu}}\|_{2}\geq 2(P-W)\sqrt{\Phi(a,b)}-W\sqrt{\omega}-\|t\|_{2}.

Since P≥1+s2​W>WP\geq 1+s^{2}W>W, the lower bound on Φ⁡(a,b)\Phi(a,b) gives

‖g​q−T𝝁‖2≥P​ω+4−W⁡(ω+4+ω)−‖t‖2.\|gq-T_{\boldsymbol{\mu}}\|_{2}\geq P\sqrt{\omega+4}-W\bigl(\sqrt{\omega+4}+\sqrt{\omega}\bigr)-\|t\|_{2}.

Because 0≤ω≤n0\leq\omega\leq n and s=⌈n+4⌉s=\lceil\sqrt{n+4}\rceil,

ω+4−ω≥2s,ω+4+ω≤2​s.\sqrt{\omega+4}-\sqrt{\omega}\geq\frac{2}{s},\hskip 20.00003pt\sqrt{\omega+4}+\sqrt{\omega}\leq 2s.

The definition of PP also gives the strict inequality

2​Ps=2s+2​s​W+2​⌈‖t‖2⌉+2​⌈ν+4⌉>2​s​W+‖t‖2+ν+4.\frac{2P}{s}=\frac{2}{s}+2sW+2\lceil\|t\|_{2}\rceil+2\lceil\sqrt{\nu+4}\rceil>2sW+\|t\|_{2}+\sqrt{\nu+4}.

Combining these estimates gives

‖g​q−T𝝁‖2−P​ω\displaystyle\|gq-T_{\boldsymbol{\mu}}\|_{2}-P\sqrt{\omega} ≥P⁡(ω+4−ω)−W⁡(ω+4+ω)−‖t‖2\displaystyle\geq P\bigl(\sqrt{\omega+4}-\sqrt{\omega}\bigr)-W\bigl(\sqrt{\omega+4}+\sqrt{\omega}\bigr)-\|t\|_{2}
>ν+4.\displaystyle>\sqrt{\nu+4}.

Squaring and discarding the nonnegative cross term now gives

‖g​q−T𝝁‖22>(P​ω+ν+4)2≥P2​ω+ν+4=Δ𝝁+4.\|gq-T_{\boldsymbol{\mu}}\|_{2}^{2}>\bigl(P\sqrt{\omega}+\sqrt{\nu+4}\bigr)^{2}\geq P^{2}\omega+\nu+4=\Delta_{\boldsymbol{\mu}}+4.

This proves the second assertion. ∎

The preceding lemma yields the reduction for masked Boolean systems. Its X3C specialization gives the main hardness result, while the fact that the ideal is independent of the mask will be used for the fixed-family construction in Section 4. For a full-rank principal ideal I=(g)⊲RdI=(g)\lhd R_{d}, we use (I,T,Δ)(I,T,\Delta) as shorthand for the standard CVP input (𝐁g,coeff⁡(T),Δ)(\mathbf{B}_{g},\operatorname{coeff}(T),\Delta).

Theorem 3.5.

There is a polynomial-time reduction from the masked Boolean system (2) to exact decision-CVP that maps (𝐀,𝐛,𝛍)(\mathbf{A},\mathbf{b},\boldsymbol{\mu}) to (I,T𝛍,Δ𝛍)(I,T_{\boldsymbol{\mu}},\Delta_{\boldsymbol{\mu}}), where I=(g)⊲RdI=(g)\lhd R_{d} is a full-rank principal ideal with a multiplication basis depending only on (𝐀,𝐛)(\mathbf{A},\mathbf{b}). Here d=O⁡((M+1)​n2)d=O((M+1)n^{2}) is a power of two, and T𝛍T_{\boldsymbol{\mu}} and Δ𝛍\Delta_{\boldsymbol{\mu}} are integral.

Proof.

Equation (9), together with the integrality of 𝐀​𝝃−𝐛\mathbf{A}\boldsymbol{\xi}-\mathbf{b}, shows that the element g​a𝝃​(y2)ga_{\boldsymbol{\xi}}(y^{2}) associated with a Boolean vector 𝝃≤𝝁\boldsymbol{\xi}\leq\boldsymbol{\mu} has squared distance Δ𝝁\Delta_{\boldsymbol{\mu}} from T𝝁T_{\boldsymbol{\mu}} exactly when it is a solution and at least Δ𝝁+4\Delta_{\boldsymbol{\mu}}+4 otherwise. The second assertion of Lemma 3.4 gives the same lower bound for every remaining q∈Rdq\in R_{d}. Consequently,

minq∈Rd⁡‖g​q−T𝝁‖22\displaystyle\min_{q\in R_{d}}\|gq-T_{\boldsymbol{\mu}}\|_{2}^{2} =Δ𝝁\displaystyle=\Delta_{\boldsymbol{\mu}} in a YES instance,\displaystyle\text{in a YES instance},
minq∈Rd⁡‖g​q−T𝝁‖22\displaystyle\min_{q\in R_{d}}\|gq-T_{\boldsymbol{\mu}}\|_{2}^{2} ≥Δ𝝁+4\displaystyle\geq\Delta_{\boldsymbol{\mu}}+4 in a NO instance.\displaystyle\text{in a NO instance}.

Since the coefficient of yy in gg is 2​P≠02P\neq 0 and RdR_{d} is an integral domain, multiplication by gg is injective, so (g)(g) has full ℤ\mathbb{Z}-rank. Moreover, the elements v∈(g)v\in(g) satisfying ‖v−T𝝁‖22≤Δ𝝁\|v-T_{\boldsymbol{\mu}}\|_{2}^{2}\leq\Delta_{\boldsymbol{\mu}} are in bijection with the solutions of (2).

Finally, c=O⁡(n2)c=O(n^{2}) and ρM+c=O⁡((M+1)​n2)\rho_{M}+c=O((M+1)n^{2}), giving the bound on dd. Moreover, W≤M​nW\leq Mn, ν≤M​n2\nu\leq Mn^{2}, and ‖t‖22=4​‖𝐛‖0+ν\|t\|_{2}^{2}=4\|\mathbf{b}\|_{0}+\nu, so all quantities in the construction have polynomial encoding length and are computable in polynomial time. The generator gg and its multiplication basis depend only on (𝐀,𝐛)(\mathbf{A},\mathbf{b}), whereas T𝝁T_{\boldsymbol{\mu}} and Δ𝝁\Delta_{\boldsymbol{\mu}} also depend on the mask 𝝁\boldsymbol{\mu}. ∎

We now apply the theorem with (𝐀,𝐛,𝝁)=(𝐇,𝟏m,𝟏n)(\mathbf{A},\mathbf{b},\boldsymbol{\mu})=(\mathbf{H},\mathbf{1}_{m},\mathbf{1}_{n}).

Theorem 3.6.

Exact decision-CVP is 𝖭𝖯\mathsf{NP}-complete on the coefficient lattices of full-rank principal ideals in the power-of-two cyclotomic rings RdR_{d}. The hard instances have squared-distance gap Δ\Delta versus Δ+4\Delta+4.

Proof.

Theorem 3.5 gives a deterministic reduction from X3C and the claimed gap. For membership in 𝖭𝖯\mathsf{NP}, a YES certificate is coeff⁡(v)\operatorname{coeff}(v) for an element v∈(g)v\in(g) satisfying ‖v−T‖22≤Δ\|v-T\|_{2}^{2}\leq\Delta. Write coeff⁡(v)=(v0,…,vd−1)⊤\operatorname{coeff}(v)=(v_{0},\ldots,v_{d-1})^{\top} and coeff⁡(T)=(T0,…,Td−1)⊤\operatorname{coeff}(T)=(T_{0},\ldots,T_{d-1})^{\top}. Each coefficient satisfies |vr|≤|Tr|+⌈Δ⌉|v_{r}|\leq|T_{r}|+\lceil\sqrt{\Delta}\rceil, and membership in (g)(g) is verified by solving the nonsingular multiplication system 𝐁g​𝐳=coeff⁡(v)\mathbf{B}_{g}\mathbf{z}=\operatorname{coeff}(v) and checking 𝐳∈ℤd\mathbf{z}\in\mathbb{Z}^{d}. The verifier also checks ‖v−T‖22≤Δ\|v-T\|_{2}^{2}\leq\Delta.

∎

The same characterization of the elements satisfying the distance threshold shows that exact search-CVP on these ideals is 𝖭𝖯\mathsf{NP}-hard under polynomial-time Turing reductions. Indeed, one call to an exact search-CVP oracle returns a closest lattice vector coeff⁡(v)\operatorname{coeff}(v) for some v∈(g)v\in(g). If ‖v−T‖22≤Δ\|v-T\|_{2}^{2}\leq\Delta, solving 𝐁g​𝐳=coeff⁡(v)\mathbf{B}_{g}\mathbf{z}=\operatorname{coeff}(v) recovers qq through 𝐳=coeff⁡(q)\mathbf{z}=\operatorname{coeff}(q). The coefficients of qq at y2​αky^{2\alpha_{k}} give the exact cover. Otherwise the X3C instance is negative.

By Lemma 2.3, both results hold under the canonical embedding. Squared thresholds and gaps are multiplied by dd, and the closest elements are unchanged.

3.3 Cyclic extension

We next lift these principal-ideal instances to principal cyclic ideals. Let SD:=ℤ⁡[X]/(XD−1)S_{D}:=\mathbb{Z}[X]/(X^{D}-1), identified with ℤD\mathbb{Z}^{D} by coefficient vectors. Multiplication by XX rotates the coordinates, so every full-rank ideal of SDS_{D} is a cyclic lattice.

The following lemma lifts a principal ideal in RdR_{d} to a principal cyclic ideal in S2​dS_{2d}. Under the lift, squared distances are multiplied by 88, and points of II within squared distance HH of TT correspond bijectively to points of the lifted ideal within squared distance 8​H8H of the lifted target.

Lemma 3.7.

Let dd be a power of two, I=(g)⊲RdI=(g)\lhd R_{d} with g≠0g\neq 0, and T∈RdT\in R_{d}. Fix H≥0H\geq 0, choose an integer BB with B2>4​HB^{2}>4H, and set D:=2​dD:=2d. Let ιd:Rd→SD\iota_{d}:R_{d}\to S_{D} copy the degree-<d<d representative, and define

G:=(1−Xd)​ιd​(g)+B⁡(1+Xd),T^:=2​(1−Xd)​ιd​(T).G:=(1-X^{d})\iota_{d}(g)+B(1+X^{d}),\hskip 20.00003pt\widehat{T}:=2(1-X^{d})\iota_{d}(T).

Then J:=(G)J:=(G) is full rank, and

‖2​(1−Xd)​ιd​(v)−T^‖22=8​‖v−T‖22(v∈I).\|2(1-X^{d})\iota_{d}(v)-\widehat{T}\|_{2}^{2}=8\|v-T\|_{2}^{2}\hskip 20.00003pt(v\in I).

Every w∈Jw\in J satisfying ‖w−T^‖22≤8​H\|w-\widehat{T}\|_{2}^{2}\leq 8H arises uniquely in this way.

Proof.

For an arbitrary Q∈SDQ\in S_{D}, write Q=p+Xd​qQ=p+X^{d}q, where p,q∈ℤ⁡[X]p,q\in\mathbb{Z}[X] have degree less than dd, and put r:=p+qr:=p+q and z:=p−qz:=p-q. We view these degree-<d<d polynomials as elements of RdR_{d} in products with gg. If F:=G​Q−T^=F0+Xd​F1F:=GQ-\widehat{T}=F_{0}+X^{d}F_{1}, direct expansion in RdR_{d} gives

F0=Br+gz−2T,F1=Br−(gz−2T),‖F‖22=‖F0‖22+‖F1‖22=2​‖g​z−2​T‖22+2​B2​‖r‖22.\begin{gathered}F_{0}=Br+gz-2T,\qquad F_{1}=Br-(gz-2T),\\ \|F\|_{2}^{2}=\|F_{0}\|_{2}^{2}+\|F_{1}\|_{2}^{2}=2\|gz-2T\|_{2}^{2}+2B^{2}\|r\|_{2}^{2}.\end{gathered} (10)

If r≠0r\neq 0, then its integer coefficient vector has squared norm at least one, so (10) is at least 2​B2>8​H2B^{2}>8H. Hence ‖G​Q−T^‖22≤8​H\|GQ-\widehat{T}\|_{2}^{2}\leq 8H implies r=0r=0 and therefore Q=(1−Xd)​pQ=(1-X^{d})p. Using (1−Xd)​(1+Xd)=0(1-X^{d})(1+X^{d})=0, (1−Xd)2=2​(1−Xd)(1-X^{d})^{2}=2(1-X^{d}), and reducing ιd​(g)​p\iota_{d}(g)p modulo Xd+1X^{d}+1, we obtain

G​Q=2​(1−Xd)​ιd​(g​p),‖G​Q−T^‖22=8​‖g​p−T‖22.GQ=2(1-X^{d})\iota_{d}(gp),\hskip 20.00003pt\|GQ-\widehat{T}\|_{2}^{2}=8\|gp-T\|_{2}^{2}.

Thus v=g​pv=gp maps to 2​(1−Xd)​ιd​(v)2(1-X^{d})\iota_{d}(v). The coefficients of degrees 0,…,d−10,\ldots,d-1 in this image equal those of 2​v2v, so vv is uniquely determined.

Over ℚ\mathbb{Q}, the Chinese remainder theorem gives

SD⊗ℤℚ≅ℚ⁡[X]/(Xd−1)×ℚ⁡[X]/(Xd+1),G⟼(2​B,2​g).S_{D}\otimes_{\mathbb{Z}}\mathbb{Q}\cong\mathbb{Q}[X]/(X^{d}-1)\times\mathbb{Q}[X]/(X^{d}+1),\hskip 20.00003ptG\longmapsto(2B,2g).

Both components are units: 2​B2B is a nonzero scalar and 2​g≠02g\neq 0 in the field ℚ⁡[X]/(Xd+1)\mathbb{Q}[X]/(X^{d}+1). Hence multiplication by GG is invertible over ℚ\mathbb{Q}, and JJ has full rank. ∎

Theorem 3.8.

Exact decision-CVP for tuples (D,G,T^,Δ^)(D,G,\widehat{T},\widehat{\Delta}), where DD is a power of two, (G)⊲SD(G)\lhd S_{D} is full rank, and Δ^≥0\widehat{\Delta}\geq 0, is 𝖭𝖯\mathsf{NP}-complete. The lattice basis is computed from the DD cyclic shifts of GG. The reduction has squared-distance gap Δ^\widehat{\Delta} versus Δ^+32\widehat{\Delta}+32.

Proof.

Apply Lemma 3.7 to the instance from Theorem 3.6 with

H:=Δ+4,B:=2​⌈H⌉+1,Δ^:=8​Δ.H:=\Delta+4,\hskip 20.00003ptB:=2\lceil\sqrt{H}\rceil+1,\hskip 20.00003pt\widehat{\Delta}:=8\Delta.

The closest squared distance equals Δ^\widehat{\Delta} in a YES instance and is at least Δ^+32\widehat{\Delta}+32 in a NO instance. All lifted data have polynomial encoding length. Membership in 𝖭𝖯\mathsf{NP} follows as in Theorem 3.6, using the cyclic shifts of GG as a basis. ∎

Remark 3.9.

Theorem 3.8 settles one of Micciancio’s open questions: exact Euclidean decision-CVP is 𝖭𝖯\mathsf{NP}-hard on cyclic lattices [21]. The lift also gives 𝖭𝖯\mathsf{NP}-hardness of exact search-CVP on the same cyclic ideals under polynomial-time Turing reductions. Given a closest v^∈J\widehat{v}\in J, if ‖v^−T^‖22>Δ^\|\widehat{v}-\widehat{T}\|_{2}^{2}>\widehat{\Delta}, the X3C instance is negative. Otherwise, Lemma 3.7 applies, and halving the coefficients of degrees 0,…,d−10,\ldots,d-1 recovers coeff⁡(v)\operatorname{coeff}(v). Solving 𝐁g​𝐳=coeff⁡(v)\mathbf{B}_{g}\mathbf{z}=\operatorname{coeff}(v) then yields 𝐳=coeff⁡(q)\mathbf{z}=\operatorname{coeff}(q), whose coefficients at y2​αky^{2\alpha_{k}} give the exact cover.

4 Fixed principal-ideal families and preprocessing

The closest vector problem with preprocessing (CVPP) [19] allows all lattice-dependent work to be performed before the target is known. We show that exact decision-CVPP on the fixed principal-ideal family below has no polynomial-time solution unless 𝖭𝖯⊆𝖯/poly\mathsf{NP}\subseteq\mathsf{P}/\mathrm{poly}.

For a fixed lattice, the preprocessing string is common to all target queries and can serve as a nonuniform advice string depending only on the input length. We therefore encode every X3C instance of a given size using only the target and threshold.

The all-triples X3C system.

For m≥3m\geq 3, let km:=(m3)k_{m}:=\binom{m}{3}, and let 𝐔m∈{0,1}m×km\mathbf{U}_{m}\in\{0,1\}^{m\times k_{m}} be the matrix whose columns are the incidence vectors of all three-element subsets of [m][m], listed in lexicographic order. A mask 𝝁∈{0,1}km\boldsymbol{\mu}\in\{0,1\}^{k_{m}} specifies which of these triples belong to the input collection. The collection has an exact cover precisely when

𝐔m​𝝃=𝟏mfor some𝝃∈{0,1}km​ with ​𝝃≤𝝁.\mathbf{U}_{m}\boldsymbol{\xi}=\mathbf{1}_{m}\hskip 10.00002pt\text{for some}\hskip 10.00002pt\boldsymbol{\xi}\in\{0,1\}^{k_{m}}\text{ with }\boldsymbol{\xi}\leq\boldsymbol{\mu}.

Thus (𝐔m,𝟏m)(\mathbf{U}_{m},\mathbf{1}_{m}) depends only on mm, while the collection appears only through the mask.

Theorem 4.1.

There exists a polynomial-time reduction from X3C to exact decision-CVP such that every X3C instance on a universe of size mm is mapped to an instance (Im,T𝛍,Δ𝛍)(I_{m},T_{\boldsymbol{\mu}},\Delta_{\boldsymbol{\mu}}), where Im=(gm)⊲RdmI_{m}=(g_{m})\lhd R_{d_{m}} is a full-rank principal ideal and its multiplication basis 𝐁gm\mathbf{B}_{g_{m}} depends only on mm.

Proof.

Apply Theorem 3.5 to the fixed system (𝐔m,𝟏m)(\mathbf{U}_{m},\mathbf{1}_{m}). It produces Im=(gm)⊲RdmI_{m}=(g_{m})\lhd R_{d_{m}} and its multiplication basis independently of the mask, while the target and threshold encode the collection. With the notation of Section 3, M=mM=m and n=kmn=k_{m}. Thus km=Θ⁡(m3)k_{m}=\Theta(m^{3}), and the explicit Sidon construction gives c=αkm=Θ⁡(km2)c=\alpha_{k_{m}}=\Theta(k_{m}^{2}). Since ρm+c=Θ⁡(m​c)\rho_{m}+c=\Theta(mc), rounding up to a power of two gives dm=Θ⁡(m​km2)=Θ⁡(m7)d_{m}=\Theta(mk_{m}^{2})=\Theta(m^{7}). The closest squared distance is Δ𝝁\Delta_{\boldsymbol{\mu}} for a YES instance and at least Δ𝝁+4\Delta_{\boldsymbol{\mu}}+4 for a NO instance. ∎

Together with the certificate argument of Theorem 3.6, the theorem shows that exact decision-CVP on this fixed family is 𝖭𝖯\mathsf{NP}-complete. Its main consequence is the following preprocessing lower bound.

Corollary 4.2.

If exact decision-CVPP is solvable in polynomial time on the family {ℒ⁡(Im)}m≥3\{\mathcal{L}(I_{m})\}_{m\geq 3}, each of which is represented by the corresponding multiplication basis from Theorem 4.1, then

𝖭𝖯⊆𝖯/poly.\mathsf{NP}\subseteq\mathsf{P}/\mathrm{poly}.
Proof.

Fix a scheme (𝖯𝗋𝖾,𝖣𝖾𝖼,p)(\mathsf{Pre},\mathsf{Dec},p) satisfying the premise of the corollary. For every m≥3m\geq 3, let the length-kmk_{m} strings of LmaskL_{\rm mask} be precisely the masks 𝝁∈{0,1}km\boldsymbol{\mu}\in\{0,1\}^{k_{m}} whose selected triples admit an exact cover. The standard collection and mask encodings of X3C can be converted into each other in polynomial time, so LmaskL_{\rm mask} is 𝖭𝖯\mathsf{NP}-complete. Since km=(m3)k_{m}=\binom{m}{3} is strictly increasing, the input length determines mm. Other lengths are rejected. For length kmk_{m}, use as advice πm:=𝖯𝗋𝖾⁡(𝐁gm)\pi_{m}:=\mathsf{Pre}(\mathbf{B}_{g_{m}}). The basis has encoding length mO⁡(1)m^{O(1)}, hence kmO⁡(1)k_{m}^{O(1)}, and Definition 2.2 gives the same advice bound. Given 𝝁\boldsymbol{\mu}, Theorem 4.1 computes the target and threshold in polynomial time, and the online decoder uses the advice to decide whether 𝝁∈Lmask\boldsymbol{\mu}\in L_{\rm mask}. Therefore Lmask∈𝖯/polyL_{\rm mask}\in\mathsf{P}/\mathrm{poly}, implying 𝖭𝖯⊆𝖯/poly\mathsf{NP}\subseteq\mathsf{P}/\mathrm{poly}. ∎

By the Karp–Lipton theorem [13], such a preprocessing scheme would collapse the polynomial hierarchy to Σ2𝖯\Sigma_{2}^{\mathsf{P}}.

Remark 4.3.

Analogues of Theorem 4.1 and Corollary 4.2 hold after lifting the fixed family to principal cyclic ideal lattices. Let Pm,νmP_{m},\nu_{m} be the values from Section 3 for (𝐔m,𝟏m)(\mathbf{U}_{m},\mathbf{1}_{m}), and set Hm:=Pm2​km+νm+4H_{m}:=P_{m}^{2}k_{m}+\nu_{m}+4 and Bm:=2​⌈Hm⌉+1B_{m}:=2\lceil\sqrt{H_{m}}\rceil+1. Since Δ𝝁+4≤Hm\Delta_{\boldsymbol{\mu}}+4\leq H_{m}, applying Lemma 3.7 with H=HmH=H_{m} and B=BmB=B_{m} yields, for each mm, one principal cyclic ideal whose basis consists of the cyclic shifts of its generator. Only the lifted target and threshold depend on the mask. The threshold is 8​Δ𝝁8\Delta_{\boldsymbol{\mu}}, and the squared-distance gap is 3232.

A polynomial-time solution to exact decision-CVPP on this fixed cyclic family would imply 𝖭𝖯⊆𝖯/poly\mathsf{NP}\subseteq\mathsf{P}/\mathrm{poly}. Exact decision-CVP on the same family remains 𝖭𝖯\mathsf{NP}-complete, thereby answering the exact decision version of Micciancio’s question of whether CVP is 𝖭𝖯\mathsf{NP}-hard even for a fixed family of cyclic lattices [21].

5 Conclusion

In this work, we prove that exact Euclidean decision-CVP is 𝖭𝖯\mathsf{NP}-complete on the coefficient lattices of nonzero principal ideals in power-of-two cyclotomic rings. The construction also yields 𝖭𝖯\mathsf{NP}-hardness for exact search-CVP. We extend both results to full-rank principal cyclic ideal lattices using a lift that scales squared distances exactly. We also construct uniformly computable fixed cyclotomic and cyclic principal-ideal families on which exact decision-CVP remains 𝖭𝖯\mathsf{NP}-complete. A polynomial-time solution to exact decision-CVPP on either family would imply 𝖭𝖯⊆𝖯/poly\mathsf{NP}\subseteq\mathsf{P}/\mathrm{poly}.

Use of generative AI.

The authors used GPT-5.6-sol (Codex) to assist with language editing, presentation, and preliminary verification of mathematical arguments during the early drafting stage. All mathematical claims and proofs in this manuscript were checked by the authors, who take full responsibility for the content of the paper.

References

  • [AJT98] M. Ajtai (1998) The shortest vector problem in L2L_{2} is NP-hard for randomized reductions (extended abstract). In Proceedings of the 30th Annual ACM Symposium on Theory of Computing (STOC), pp. 10–19. External Links: Document Cited by: §1.
  • [AKK+05] M. Alekhnovich, S. A. Khot, G. Kindler, and N. K. Vishnoi (2005) Hardness of approximating the closest vector problem with pre-processing. In Proceedings of the 46th Annual IEEE Symposium on Foundations of Computer Science (FOCS), pp. 216–225. External Links: Document Cited by: §1.
  • [CDP+16] R. Cramer, L. Ducas, C. Peikert, and O. Regev (2016) Recovering short generators of principal ideals in cyclotomic rings. In Advances in Cryptology—EUROCRYPT 2016, Part II, Lecture Notes in Computer Science, Vol. 9666, pp. 559–585. External Links: Document Cited by: §1.
  • [CDW21] R. Cramer, L. Ducas, and B. Wesolowski (2021) Mildly short vectors in cyclotomic ideal lattices in quantum polynomial time. Journal of the ACM 68 (2), pp. 1–26. External Links: Document Cited by: §1.
  • [DKS98] I. Dinur, G. Kindler, and S. Safra (1998) Approximating-CVP to within almost-polynomial factors is NP-hard. In Proceedings of the 39th Annual IEEE Symposium on Foundations of Computer Science (FOCS), pp. 99–111. External Links: Document Cited by: §1.
  • [ET41] P. Erdős and P. Turán (1941) On a problem of Sidon in additive number theory, and on some related problems. Journal of the London Mathematical Society 16 (4), pp. 212–215. External Links: Document Cited by: §1.2, §3.1.
  • [FM04] U. Feige and D. Micciancio (2004) The inapproximability of lattice and coding problems with preprocessing. Journal of Computer and System Sciences 69 (1), pp. 45–67. External Links: Document Cited by: §1.
  • [GJ79] M. R. Garey and D. S. Johnson (1979) Computers and intractability: a guide to the theory of np-completeness. W. H. Freeman, San Francisco. Cited by: §1.2, §2.3.
  • [GEN09] C. Gentry (2009) Fully homomorphic encryption using ideal lattices. In Proceedings of the 41st Annual ACM Symposium on Theory of Computing (STOC), pp. 169–178. External Links: Document Cited by: §1.
  • [HS26a] I. M. Hair and A. Sahai (2026) Deterministic hardness of approximation for SVP in all finite ℓp\ell_{p} norms. In Proceedings of the 67th Annual IEEE Symposium on Foundations of Computer Science (FOCS), Note: To appear External Links: 2604.01451 Cited by: §1.
  • [HS26b] I. M. Hair and A. Sahai (2026) SVPp\mathrm{SVP}_{p} Is Deterministically NP-Hard for All p>2p>2, Even to Approximate within a Factor of 2log1−ε⁡n2^{\log^{1-\varepsilon}n}. In Proceedings of the 58th Annual ACM Symposium on Theory of Computing (STOC), pp. 1716–1727. External Links: Document, 2511.04125 Cited by: §1.
  • [HPS98] J. Hoffstein, J. Pipher, and J. H. Silverman (1998) NTRU: a ring-based public key cryptosystem. In Algorithmic Number Theory, Lecture Notes in Computer Science, Vol. 1423, pp. 267–288. External Links: Document Cited by: §1.
  • [KL80] R. M. Karp and R. J. Lipton (1980) Some connections between nonuniform and uniform complexity classes. In Proceedings of the 12th Annual ACM Symposium on Theory of Computing (STOC), pp. 302–309. External Links: Document Cited by: §1.1, §4.
  • [KPV12] S. A. Khot, P. Popat, and N. K. Vishnoi (2012) 2log1−ε⁡n2^{\log^{1-\varepsilon}n} hardness for the closest vector problem with preprocessing. In Proceedings of the 44th Annual ACM Symposium on Theory of Computing (STOC), pp. 277–288. External Links: Document Cited by: §1.
  • [LM06] V. Lyubashevsky and D. Micciancio (2006) Generalized compact knapsacks are collision resistant. In Automata, Languages and Programming, Part II, Lecture Notes in Computer Science, Vol. 4052, pp. 144–155. External Links: Document Cited by: §1.
  • [LPR10] V. Lyubashevsky, C. Peikert, and O. Regev (2010) On ideal lattices and learning with errors over rings. In Advances in Cryptology—EUROCRYPT 2010, Lecture Notes in Computer Science, Vol. 6110, pp. 1–23. External Links: Document Cited by: §1.
  • [MG02] D. Micciancio and S. Goldwasser (2002) Complexity of lattice problems: a cryptographic perspective. The Kluwer International Series in Engineering and Computer Science, Vol. 671, Kluwer Academic Publishers, Boston, MA. External Links: Document Cited by: §1.
  • [MIC98] D. Micciancio (1998) The shortest vector in a lattice is hard to approximate to within some constant. In Proceedings of the 39th Annual IEEE Symposium on Foundations of Computer Science (FOCS), pp. 92–98. External Links: Document Cited by: §1.
  • [MIC01] D. Micciancio (2001) The hardness of the closest vector problem with preprocessing. IEEE Transactions on Information Theory 47 (3), pp. 1212–1215. External Links: Document Cited by: §1, §2.1, §4.
  • [MIC02] D. Micciancio (2002) Generalized compact knapsacks, cyclic lattices, and efficient one-way functions from worst-case complexity assumptions. In Proceedings of the 43rd Annual IEEE Symposium on Foundations of Computer Science (FOCS), pp. 356–365. External Links: Document Cited by: §1.
  • [MIC07] D. Micciancio (2007) Generalized compact knapsacks, cyclic lattices, and efficient one-way functions. Computational Complexity 16 (4), pp. 365–411. External Links: Document Cited by: §1, Remark 3.9, Remark 4.3.
  • [PR06] C. Peikert and A. Rosen (2006) Efficient collision-resistant hashing from worst-case assumptions on cyclic lattices. In Theory of Cryptography, Lecture Notes in Computer Science, Vol. 3876, pp. 145–166. External Links: Document Cited by: §1.
  • [PR07] C. Peikert and A. Rosen (2007) Lattices that admit logarithmic worst-case to average-case connection factors. In Proceedings of the 39th Annual ACM Symposium on Theory of Computing (STOC), pp. 478–487. External Links: Document Cited by: §1.
  • [VAN81] P. van Emde Boas (1981) Another NP-complete partition problem and the complexity of computing short vectors in a lattice. Technical report Technical Report 81-04, Mathematisch Instituut, Universiteit van Amsterdam. Cited by: §1.