Manuscript Offprint
arXiv:2611.07313Exact -CVP via Euclidean SVP in Polynomial Space
Abstract
We give a randomized, rank-preserving reduction from exact -CVP to exact Euclidean SVP for every integer . For rational inputs of bit length on full-rank lattices , the reduction uses oracle calls and additional bit operations, where is an absolute constant. It uses working space outside the oracle, and all oracle queries have rank and bit complexity.
For , the reduction transfers polynomial-space exact SVP algorithms to exact CVP with time overhead. Instantiating it with the SVP algorithms of Kannan and of Feng, Gao and Liu yields randomized polynomial-space CVP algorithms running in time and , respectively. For every fixed integer , the same reduction yields exact -CVP algorithms for arbitrary rational targets either in randomized time and space , or in randomized time and polynomial space. These algorithmic bounds are up to polynomial factors in .
The reduction performs local search sequentially over the cosets of , where is the input lattice, while tracking the excess of the current objective value over the optimum. Within a coset containing a closest vector, midpoint inequalities bound the unknown correction in terms of this excess, which in turn allows us to construct many short corrections that reduce the excess bound by a factor of four. A counting argument shows that these improving corrections form a sufficiently large fraction of the lattice points in a known search region, and a sparsification-based sampler assigns sufficiently large probability to every nonzero vector in that region, using at most one SVP call per sample. Repeating this improvement over polynomially many stages yields exact recovery. For , the same framework is extended using a diagonal weighted norm computed from the current point.
1 Introduction
The Shortest Vector Problem (SVP) and the Closest Vector Problem (CVP) are two fundamental computational problems on lattices. A rank- lattice is the set of all integer combinations of linearly independent vectors. Given such a lattice, SVP asks for a shortest nonzero vector of , while CVP asks for a lattice vector closest to a given target . We study the exact versions of these problems, in which an optimal vector must be found.
In the Euclidean norm, SVP reduces to CVP without increasing the rank [GMSS99]. In contrast, reducing CVP to SVP is particularly interesting under space constraints. With exponential space, exact Euclidean CVP can be solved in time [ADS15], while exact Euclidean SVP admits faster algorithms, most recently Hhan's algorithm with time and space [Hha26, Theorem 1.1]. In polynomial space, however, a substantial gap has persisted. Kannan's enumeration algorithm solves SVP in time , whereas the corresponding CVP bound is [Kan83, HS07]; Fu [Fu16] improves only a lower-order factor in the latter bound. More recently, Feng, Gao and Liu announced a randomized polynomial-space SVP algorithm running in time [FGL26]. Thus, the best known worst-case polynomial-space running times for SVP and CVP have differed by a factor of .
This gap reflects a limitation of known algorithms rather than a known separation between the problems. The fastest exact CVP algorithms rely on large collections of lattice objects, such as Voronoi-relevant vectors [MV10] or exponentially many discrete Gaussian samples [ADS15]. This raises a natural question: can exact CVP be solved using an SVP oracle while maintaining only polynomial working space? We answer this question affirmatively with a randomized, rank-preserving reduction from exact CVP to exact Euclidean SVP that uses polynomial working space outside the oracle.
Our approach also addresses a longstanding question about exact CVP in non-Euclidean norms. For an integer , let , and define -CVP as the problem of finding a lattice vector minimizing . For every fixed integer , single-exponential algorithms for exact -CVP were known when the distance from the target to the lattice is at most a constant multiple of the shortest-vector length [DPV11], [DV12, Theorem 1.9], but not for arbitrary targets. Micciancio and Voulgaris [MV10, Section 1.2] explicitly identified extending single-exponential exact CVP algorithms to other norms, even with randomization, as an open problem. Blömer and Kohn [BK18, Theorem 7] showed that the number of Voronoi-relevant vectors can be unbounded even for the norm in dimension three, illustrating a fundamental obstacle to extending the Euclidean Voronoi-cell approach. For arbitrary targets, previous algorithms achieve time in polynomial space [BN11] or time via integer programming [RR26, Theorem 5]. Known reductions between norms [ACK21, EV20] incur approximation loss and therefore do not resolve the exact problem.
Our reduction addresses both gaps within a unified framework. For , it transfers polynomial-space exact SVP algorithms to exact CVP with only single-exponential overhead, while preserving the rank. For every fixed integer , it converts Euclidean SVP algorithms into arbitrary-target exact -CVP algorithms, yielding either a single-exponential time-and-space instantiation or a polynomial-space instantiation. In both cases, the reduction itself uses only polynomial working space outside the oracle.
Theorem 1.1. There exist an absolute constant and a randomized algorithm with access to an exact Euclidean SVP oracle such that, for every integer , every rational , and every input as described above, the algorithm outputs an -closest vector to the target with probability at least . For , the output is represented by its coefficient vector with respect to . On every execution, it
(i) makes at most poly oracle calls and performs as many additional bit operations, (ii) queries the oracle only on lattices of rank given by poly-bit Gram matrices, and (iii) uses poly space outside the oracle.
With the same asymptotic bounds and success probability, the reduction can output all closest vectors exactly once. There are at most such vectors, and this is tight for and .
For , the main consequence of Theorem 1.1 is a transfer of polynomial-space SVP bounds to exact Euclidean CVP. Plugging in the best available polynomial-space SVP algorithms gives the following concrete bounds.
Corollary 1.2. Exact Euclidean CVP on the rank- inputs described in Theorem 1.1 can be solved with probability at least by randomized polynomial-space algorithms with running times
obtained respectively from Kannan's SVP algorithm [HS07, Theorem 2] and the algorithm of Feng, Gao and Liu [FGL26, Theorem 4.1].
The underlying parameterized transfer is stated in Corollary 7.3. Together with the reduction of [GMSS99] in the opposite direction, it also shows that the randomized polynomial-space time complexities of exact Euclidean SVP and CVP agree up to a factor poly; see Corollary 7.4.
For every fixed integer , Theorem 1.1 also yields two complementary time-space tradeoffs for full-rank lattices with arbitrary rational targets.
Corollary 1.3. For every fixed integer , exact -CVP on full-rank lattices given by rational bases, with arbitrary rational targets, can be solved with probability at least either in randomized time and space poly, or in randomized time poly and polynomial space.
The first bound uses the deterministic single-exponential SVP algorithm of Micciancio and Voulgaris [MV10] after the rank-preserving integer-basis conversion of Lemma A.1. The second uses the polynomial-space algorithm of Feng, Gao and Liu [FGL26, Theorem 4.1], together with Lemmas A.1 and A.2.
1.2 Technical Overview
The reduction is a randomized local search for a closest vector. We first explain the Euclidean case. Fix a target , a closest vector , and a current lattice point . If were known, the vector would move to the optimum in one step. Since is unknown, the algorithm instead searches for short lattice vectors that make substantial progress toward the optimum.
To make such a local search possible, we need to relate progress in the objective to geometric distance from . For a lattice point , define its excess by . This quantity measures how far the objective value at is above the optimum. The algorithm does not know the excess, because it does not know ; it is used only in the analysis. Ideally, a small excess would imply that is close to , because then the unknown correction would necessarily be short. This implication, however, is false in general.
From small excess to geometric closeness. For example, take and with . The target lies slightly to the left of the midpoint between 0 and 1, so its closest lattice vector is . Consider instead the neighboring lattice point . Its excess is . As tends to zero, this excess becomes arbitrarily small: the two lattice points 0 and 1 are almost equally good with respect to the objective. Nevertheless, remains fixed. Thus, having a small excess does not by itself imply being geometrically close to a closest vector, and hence does not guarantee that the desired correction has small length.
This difficulty disappears once we restrict attention to a single coset of the sublattice 2L. Suppose that and lie in the same coset, so that . Then, their midpoint is itself a lattice point. Since is closest to , this midpoint cannot be closer to than : . Expanding this inequality yields a special case of the parity-clustering inequality of Aggarwal, Dadush and Stephens-Davidowitz [ADS15, Lemma 5.3]:
Therefore, within the coset of , an excess of at most implies . In other words, within a coset of , a small excess guarantees that the current point is geometrically close to a closest vector, and hence that the required correction is short. Notice that the two points 0 and 1 in the example above belong to different cosets of , so the counterexample no longer applies.
This provides the geometric control needed for local search, but only in a coset containing a closest vector. Rather than identifying such a coset in advance, the algorithm runs the same search independently in all cosets of 2L in L. In a coset containing a closest vector y, the bound above ensures that a small excess makes the correction short, and the analysis below shows that the search recovers y with high probability. In other cosets, no such guarantee is needed. After processing all cosets, the algorithm compares the resulting candidates by their distance to t and returns the closest one.
From one unknown correction to many good corrections. It remains to explain how the search makes progress in a coset containing a closest vector. Suppose that lies in the same coset of as a closest vector and has excess at most , and let . The bound above gives , so the length of the unknown correction is controlled by the current excess bound. The key observation is that the algorithm does not need to recover itself.
Let , where denotes the Euclidean ball of radius centered at the origin. For every , the point has excess at most : by Lemma 4.1,
Starting from , the same point is reached by the correction , since . Hence, every vector in the translated set is a successful correction that reduces the excess bound from to . Thus, instead of relying on the single unknown correction , we have an entire set of successful corrections, with . Figure 1(a) illustrates the good points around , while Figure 1(b) shows the corresponding corrections in .
It therefore suffices to draw a random vector from a distribution on 2L such that with sufficient probability; a realized sample is denoted by in Figure 1. All vectors of have length less than , a radius that the algorithm knows. To compare the successful corrections with all lattice vectors in this search ball, cover by balls of radius . By Lemma 2.2, at most such balls are needed. If one of these smaller balls contains a lattice point , then any other lattice point in the same ball satisfies . Since
(a) The coset of

has excess at most for every
(b) Good vectors

succeeds if , and
(c) Counting the ball
the lattice points of each small ball lie in some , so
Figure 1: Constructing and counting improving corrections in the coset of a closest vector , where .
, we have , or equivalently . Thus, every smaller ball contains at most points of (Lemma 2.1), and hence
for every lattice, independently of its shape. This counting argument is illustrated in Figure 1(c). Consequently, if assigns probability at least to every nonzero point of , then is at least (Lemma 4.2). Neither nor the radius depends on .
Sampling only what the reduction needs. We now need a way to sample vectors from the search ball using an SVP oracle such that every nonzero lattice vector in the search ball has a sufficiently large chance of being returned. Some vectors may be sampled more often than others; the reduction only needs to ensure that none of them is too unlikely. The sampler of Theorem 3.1 provides exactly this guarantee, with , using at most one exact SVP call per sample.
The basic idea is to use lattice sparsification to isolate one short lattice direction. Fix any nonzero vector in the search ball. There is a unique way to write , where is an integer and is primitive, meaning that is not itself an integer multiple of another lattice vector. Thus, to produce , it is enough to recover the direction and guess the multiplier .
To recover , the sampler chooses a prime and imposes a random linear equation modulo on the coefficient vectors of the lattice. Only the vectors satisfying this equation are kept, and they form a full-rank sublattice. A fixed primitive vector survives this filtering with probability . Thus, controls how strongly the lattice is sparsified: increasing removes more competing vectors, but also makes it less likely that itself survives.
For an appropriate scale of , there is sufficient probability that survive while all other vectors that could be as short as are removed. On this event, are the unique shortest nonzero vectors of the sparsified lattice, so a single SVP call returns up to sign. Multiplying the result by the guessed value of then gives .
The sampler does not know the correct multiplier or the appropriate scale of in advance, so it guesses both. The analysis shows that, despite these guesses, every nonzero vector in the search ball is returned with sufficiently large probability. This sparsification step follows the primitive-vector sampling approach of Stephens-Davidowitz [Ste16, Section 4.1], building on Khot [Kho05] and Dadush and Kun [DK16]; see Remark 3.2 for a brief comparison and Section 6.3 for further details.
From local progress to exact recovery. The search proceeds in stages with excess bounds decreasing by a factor of four. In the coset containing , samples suffice at each stage to obtain the next-scale improvement with high probability. After polynomially many stages, the excess bound is below , and the midpoint inequality forces the current point to equal . Since the cosets and all samples are processed sequentially, the reduction stores only a constant number of lattice points, one sampler workspace, and a few counters, yielding polynomial working space outside the oracle.
The case. For an integer , the same strategy still applies: work within cosets of , show that many short corrections make a constant-factor improvement, and use the same sparsification sampler to hit one of them. The new difficulty is geometric. The Euclidean length of a correction alone no longer provides the control needed to bound its effect on . A displacement in a coordinate with large residual is more expensive than the same displacement in a coordinate with small residual.
We therefore replace the Euclidean norm by a diagonal weighted norm computed from the current point :
The curvature relevant to perturbations around the optimum depends on the unknown minimizer , rather than the current point . Midpoint inequalities are what make the construction usable: if and lie in the same coset and , then they imply that is short in the computable norm and that the weights at control those around (Lemmas 5.1 and 5.2).
The good perturbations around are now chosen from a coordinate box rather than a ball. This gives coordinatewise control of the Taylor remainder of without losing an factor in volume. By symmetry, at least half of the lattice points in this box also make the first-order term nonpositive. A covering argument then shows that a fraction of the lattice points in a known -ball yield the same factor-four improvement (Lemma 5.4). Since Theorem 3.1 works for any rational positive-definite metric, the same sparsification sampler applies to . Finally, the rationality of the input makes the possible values of discrete, so once the maintained excess bound is smaller than the minimum positive difference between distinct objective values, the current point is exactly optimal.
1.3 Related Work
Ajtai, Kumar and Sivakumar [AKS02] solve -approximate CVP in time and exponential space. Naszödi and Venzin [NV22] solve -approximate CVP in norms for fixed , whereas our result concerns exact -CVP. Arya, da Fonseca and Mount [AdFM24] give a randomized -CVP algorithm for arbitrary norms with running time , up to polynomial factors in the input size. Dubey and Holenstein [DH11] give a polynomial-time Turing reduction from -approximate Euclidean CVP to -approximate Euclidean SVP. The CVP-to-SVP reductions of [ACK+21] incur approximation loss and increase the lattice rank from to . Dadush and Micciancio [DM13, Section 5.4] discuss a potential application of densest-sublattice preprocessing to faster polynomial-space enumeration for CVP with preprocessing, under a heuristic assumption. Hunkenschröder, Reuland and Schymura [HRS20] solve CVP in polynomial space given a basis in which every facet normal of the Voronoi cell has coefficients bounded by some , in time poly. For Haar-random lattices, Laarhoven [Laa26, Theorem 1.8] obtains a polynomial-space exact CVP with preprocessing (CVPP) algorithm with query time , excluding preprocessing costs. Stephens-Davidowitz [Ste16] gives polynomial-time, dimension-preserving reductions from centered discrete Gaussian sampling to SVP and from shifted discrete Gaussian sampling to CVP. The exact CVP algorithm of [ADS15] uses shifted samples and requires time and space, so these results together do not give a polynomial-space reduction from CVP to SVP. Dadush, Eisenbrand and Rothvoss [DER25] make approximate integer programming exact when the residues of a solution modulo are known, and guessing these residues costs . In contrast, our reduction enumerates only the residue classes modulo 2, using midpoint inequalities specific to the objective.
Organization. Section 2 introduces notation and two counting lemmas; Section 3 presents the short-vector sampler and states its guarantees; and Sections 4 and 5 prove Theorem 1.1. Section 6 proves the sampling theorem, Section 7 gives the deferred CVP proofs and polynomial-space consequences, and Appendix A treats oracle implementation details.
2 Preliminaries
We introduce the notation and geometric tools used throughout the paper.
Lattices. A lattice of rank is for a nonsingular with columns . Its Gram matrix is , and we write for the minimum length of a nonzero vector of .
For the Euclidean reduction, a lattice vector is represented by its coefficient vector , and the target by . Thus, . In our reduction for , only the positive definite rational matrix and the rational vector are given; a basis with is never computed. We will use a simple lower bound on the least eigenvalue of to convert length bounds into bounds on coefficient vectors. Put . Since each of the remaining eigenvalues is at most , , and hence . Therefore,
When is rational, is computed exactly from . In particular, , because every nonzero lattice vector has a nonzero integer coefficient vector.
We write , and for the natural logarithm. The cosets of in are , .
Norms given by positive definite matrices. For symmetric matrices and , we write if is positive semidefinite, and if is positive definite. In particular, means that is positive definite. For a symmetric positive definite matrix , which we call a metric, let , and . We drop when . For , we have , so the pair is described by the Gram matrix . In our algorithms, this matrix is rational and squared lengths are compared exactly.
SVP oracles. An SVP oracle receives a positive definite rational Gram matrix and returns the coefficient vector of a shortest nonzero vector. When there are several shortest vectors, the oracle may choose among them by any rule that depends on the history of the computation and on independent random bits. Our guarantees hold for every such rule. In Appendix A, Lemma A.1 converts a rational Gram matrix into an integer basis of the same rank whose shortest coefficient vectors are shortest for the original matrix, and Lemma A.2 shows how to simulate the exact oracle using an SVP algorithm that succeeds with probability 2/3.
Primitive vectors. A nonzero is primitive if for every integer , equivalently if the greatest common divisor of its coefficients is 1. Every nonzero equals for exactly one integer and one primitive . Following [Ste16], for we write for the number of primitive vectors of in , counting each pair once.
Counting lattice points. Let be the volume of the Euclidean unit ball, so that . Since for ,
The next two lemmas are standard packing and covering bounds; their proofs are deferred to Section 7. They compare the numbers of lattice points in two sets of different sizes or shapes and require no assumption on the lattice. If a large set is covered by translates of half of a small symmetric convex set , then it contains at most times as many lattice points as .
Lemma 2.1. Let be a lattice and a convex, compact, symmetric set. If for some , then .
Lemma 2.2. The following covering bounds hold.
(i) For every positive definite metric and , the ball is contained in a union of at most translates of .
(ii) For the Euclidean norm, and , the ball is contained in a union of at most translates of the cube .
3 Sampling Short Lattice Vectors with an SVP Oracle
Throughout this section, denotes the lattice given to the sampler, to distinguish it from the CVP lattice used in Sections 4 and 5. The progress arguments in those sections require only a pointwise lower bound on the probability of every nonzero lattice vector in a known ball. More precisely, for a distribution on , a radius , and a number , we require
If , then summing over in (3) gives for every . No upper bound on is needed, and may assign large probability to 0. Algorithm 1 gives the sampler used in the reduction; the following theorem states its guarantees.
Theorem 3.1. Let and let be a metric such that . Let and be rational numbers satisfying . There is a randomized algorithm with access to an exact SVP oracle that, given , , and , outputs a coefficient vector representing a lattice vector in . Let be the induced distribution of this lattice vector, and let . Then the following properties hold.
Algorithm 1: Sampling short lattice vectors
Input : Rational , , and
Output: Coefficient vector of a point of
1 if then return 0
2
3
4 choose , , and then by procedure (1), using independent random bits
5 choose a prime by procedure (2) and by procedure (3)
6 if any of procedures (1)–(3) fails then return 0
7 compute as defined at the beginning of Section 6
8 , where is the oracle answer on
9 if then return or , each with probability
10 return 0
(a) ; equivalently, with probability 1.
(b) satisfies (3) with
conditionally on any history of earlier computations and for every rule by which the oracle chooses among shortest vectors.
(c) The algorithm makes at most one oracle call, on a full-rank sublattice of in the metric given by a Gram matrix whose bit length is polynomial in that of the input. Its other bit operations and its space are polynomial in the bit lengths of the input and of the oracle answer.
The reductions supply a computable lower bound on ; the proof of Theorem 3.1 is deferred to Section 6.
Construction. Write every nonzero uniquely as with primitive. The sampler guesses and a sparsification scale, and uses a random congruence to isolate in a full-rank sublattice. Writing , for a prime and define
If is a basis matrix of , then the query Gram matrix is and an oracle answer corresponds to the coefficient vector in .
For a fixed , one choice of the multiplier range and prime scale makes the random congruence isolate with sufficient probability. The basis , the bounded-randomness procedures (1)–(3), the counting and isolation bounds, and the exact calculation of (3) are specified in Section 6.
Remark 3.2. The sparsification step follows Stephens-Davidowitz [Ste16, Section 4.1]. Our reduction does not use the shifted/discrete-Gaussian part of that work: it needs only centered short-vector samples and the pointwise bound (3). The detailed comparison is in Section 6.
4 Exact CVP in the Euclidean Norm
We first prove Theorem 1.1 for . Throughout the section, has positive definite rational Gram matrix , and with .
4.1 Geometry and One-Step Progress
The following two lemmas formalize the Euclidean ingredients of Section 1.2; full proofs are deferred to Section 7.2. The consequence in Lemma 4.1 is the exact-CVP specialization of the parity-clustering inequality of Aggarwal, Dadush and Stephens-Davidowitz [ADS15, Lemma 5.3]; here we use it as part of the construction of a sufficiently large set of improving corrections.
Lemma 4.1. Let be a closest vector of to . For every ,
Consequently, for every and every with ,
(i) ;
(ii) if , then .
In particular, each coset of in contains at most one closest vector of to .
Lemma 4.2. Let be a closest vector of to , let , and let satisfy and . Let be a distribution on satisfying (3) with , , and some , and let . Then
For the proof, put , , and . Lemma 4.1 makes every vector of improving and places inside the sampled ball, while Lemmas 2.2 and 2.1 give . Thus at least a fraction of the relevant nonzero vectors are good; see Section 7.2.
4.2 Algorithm for Exact Euclidean CVP
Algorithm 2 presents our algorithm for exact Euclidean CVP. It processes the cosets of separately and uses stages with excess bounds decreasing by a factor of four. Put
Here, bounds the squared distance from to every starting point , , and , so the final scale forces exactness. Here, since . In stage the sampler is called on . With
we have and .
Correctness and resources. For the coset containing a closest vector , maintain . By Lemma 4.2 and Theorem 3.1, each trial reaches the next scale with conditional probability at least ; repetition and a union bound over stages and cosets give the required success probability, and the last scale forces . The algorithm makes rank- oracle calls, and all stored quantities and queries have polynomial bit length, so the non-oracle space is polynomial. The two-run all-closest-vector variant and the bounded-error-oracle substitution use Lemmas 4.1 and A.2. Hence, Theorem 1.1 holds for ; full details are in Section 7.2.
Algorithm 2: Exact CVP in the Euclidean norm
Input : Rational Gram matrix , target coefficients , rational
Output: Coefficient vector of a closest lattice point in the Euclidean norm
1
2 for do
3
4
5
6
7
9
10 return
5 Exact CVP in Norms
We now prove Theorem 1.1 for an integer . The reduction keeps the coset-by-coset structure of Algorithm 2, but measures corrections in a diagonal metric computed from the current point. Throughout the section, for a nonsingular and . Write
A closest vector in the norm is a minimizer of on .
5.1 Midpoint Inequalities
Let be a minimizer and let . Since , minimality of gives a midpoint inequality. The following bounds are the quantitative form needed below; the proof is deferred to Section 7.4.
Lemma 5.1. Let be a minimizer of on , let , and let satisfy . Write , and . Then,
5.2 A Weighted Norm Computed at the Current Point
The local curvature of at the unknown minimizer is unavailable to the algorithm. We instead use weights computed from the current point . For , put and let be the least number of the form , , such that . Thus . Define
The metric is rational and computable from and ; the numbers are used only in the analysis.
Lemma 5.2. Let be a minimizer of on , let , and let satisfy . With (4),
The first bound places the unknown correction inside a known -ball. The other two bounds compare the computable weights at with the curvature around . The proof is given in Section 7.4.
5.3 Progress in the Weighted Norm
We use the following coordinatewise Taylor bound; its proof is also deferred to Section 7.4.
Lemma 5.3. For and with ,
The next lemma is the analogue of Lemma 4.2. It is the only new geometric ingredient needed to reuse the Euclidean iteration.
Lemma 5.4. Let be a minimizer of on , let , and let satisfy and . Let be defined by (4), let be a distribution on satisfying (3) with , , and some , and let . Then
Proof sketch. Let , , and for all . Keep the half of on which the linear term is nonpositive. Symmetry preserves at least half the points, and Lemmas 5.2 and 5.3 show that every retained gives and that lies in . After the map , Lemmas 2.1 and 2.2 show that this box contains, up to the factor , enough points of the sampled ball. Hence at least a fraction of its relevant nonzero vectors are improving, and (3) gives the lemma. See Section 7.4 for the coordinate estimates and covering calculation.
Reduction and completion of the proof. Use Algorithm 2, but at the beginning of stage freeze from (4) and use this metric for every sample in that stage. If is the least common multiple of the denominators of and , put
Then for every starting coset representative, while , so the last scale forces exact optimality. Also , since nonsingularity of gives . In stage the sampler input and the uniform success bound are
and we take . By Lemma 5.4 and Theorem 3.1, repetition preserves the invariant through all stages of each coset containing a minimizer with the required probability. All metrics, coefficient vectors, and queries have bits, giving time outside the oracle and polynomial working space. Hence Theorem 1.1 holds for every integer ; full pseudocode, resource bounds, the all-closest-vector variant, and the bounded-error-oracle argument are in Section 7.4.
6 Proof of the Short-Vector Sampler Theorem
In this section, we prove Theorem 3.1 for Algorithm 1. Let denote the distribution of the lattice vector represented by the algorithm's output coefficient vector, and let . Fix a nonzero vector , where and is primitive. The proof has three steps. We first establish counting bounds for lattice points in balls. We then show that a suitable random sparsification isolates with sufficient probability. Finally, we combine these bounds with the random choices of Algorithm 1 to prove the pointwise probability bound (3) and the claimed resource bounds.
Throughout this section, , and are as in Section 3. All norms and balls are taken with respect to , and we drop from the notation. We write and . For a lattice vector , we write for its coefficient vector.
Basis for the Sparsified Sublattices. For a prime and , recall
If , take . If , fix a coordinate with and let represent for . Taking and , , as columns gives an integer matrix with whose columns form a basis of . Hence, has Gram matrix , whose bit length is polynomial in that of and in , and an oracle answer for corresponds to the coefficient vector in .
Relation to Stephens–Davidowitz. The sparsification step follows the primitive-vector sampler of Stephens-Davidowitz [Ste16, Section 4.1], which builds on Khot [Kho05] and Dadush and Kun [DK16]. The results of Stephens-Davidowitz [Ste16, Lemma 2.18, Theorem 4.1, Proposition 4.2] isolate a primitive direction under conditions involving the number of short primitive vectors and a lower bound on . The lemmas below replace these conditions by the single inequality for , counting all lattice points and absorbing the loss through Lemma 6.2. We also guess the order of magnitude of instead of estimating the number of short primitive vectors. Finally, unlike the discrete-Gaussian sampler of [Ste16, Theorem 4.6], our construction needs only the centered pointwise lower bound (3); no shifted sampler is used.
6.1 Counting Lattice Points in Balls
The first lemma bounds the number of lattice points in a ball in terms of the minimum distance, and compares balls whose radii differ by a factor of two.
Lemma 6.1. For every , . For every , .
Proof. Distinct points of are at distance at least . Hence the open balls of radius centered at the points of are pairwise disjoint, and they are contained in . Comparing volumes gives , which is the first bound. For the second bound, Lemma 2.2(i) with and covers by translates of , and Lemma 2.1 with gives the claim.
The second lemma compares the number of lattice points in a ball of radius with the number in a ball of radius . Every primitive vector of length at most has the signed multiples in the larger ball, and Lemma 6.2 makes this count precise when ranges over all primitive vectors.
Lemma 6.2. Let , let be an integer, and let . Then,
Proof. Since every nonzero vector is mu for a unique and a unique primitive u,
For , let . The sets partition the positive integers into blocks of consecutive integers. Since is nondecreasing, every satisfies . Therefore,
and the lemma follows from the identity above.
6.2 Sparsification
We use the sublattices defined in Section 3. To isolate a primitive vector , the other short primitive vectors must be independent of modulo , and no multiple of a removed primitive vector may be shorter than . Lemmas 6.3 and 6.4 establish both properties under the single condition for a radius . They are the variant of [Ste16, Proposition 4.2] described in Remark 3.2.
Lemma 6.3. Let and let be a prime with . If are primitive and , then the coefficient vectors of and are linearly independent over .
Proof. We show that a dependence modulo forces at least lattice points into the parallelogram spanned by and , which lies in . The coefficient vectors and have greatest common divisor 1, so neither vanishes modulo . Suppose that they are linearly dependent over . Then for some integer , that is, . Two primitive vectors on a common line through the origin are equal up to sign, so and are linearly independent over . Thus, is a lattice of rank two, in which is primitive. Since , the vector lies in the sublattice .
We compute the index of . The quotient has elements, and the image of in it is the subgroup generated by the image of . This image is nonzero because is primitive in , so the subgroup has elements and . Since , it follows that .
The half-open parallelogram is a fundamental domain of , so it contains exactly points of . Each of them has norm less than . Hence , contradicting the choice of .
Lemma 6.4. Let , let be a prime with , and let be primitive with . If is uniform in , then with probability at least the shortest nonzero vectors of are exactly and .
Proof. We first bound the probability that is, up to sign, the only primitive vector of in . We then show that in this case no other nonzero vector of is as short as .
The vector 0 and the two vectors in each of the primitive pairs in are distinct points of . Hence, . Let be the event that and that for every primitive
with . Choose one representative of each of the other primitive pairs in . By Lemma 6.3, the coefficient vectors of and are linearly independent over , so a union bound gives
Now assume , and let be nonzero with . Write with and primitive. Since , we have . If , then by the definition of , and forces . If , then while (mod ), so divides and . The multiples of a shortest nonzero vector show that , so , which is impossible. Hence on the shortest nonzero vectors of are exactly and .
6.3 Analysis of Theorem 3.1
We begin by restating Theorem 3.1 for convenience.
Theorem 3.1 (restated). Let and let be a metric such that . Let and be rational numbers satisfying . There is a randomized algorithm with access to an exact SVP oracle that, given , , and , outputs a coefficient vector representing a lattice vector in . Let be the induced distribution of this lattice vector, and let . Then the following properties hold.
(a) ; equivalently, with probability 1.
(b) D satisfies (3) with
conditionally on any history of earlier computations and for every rule by which the oracle chooses among shortest vectors.
(c) The algorithm makes at most one oracle call, on a full-rank sublattice of K in the metric H given by a Gram matrix whose bit length is polynomial in that of the input. Its other bit operations and its space are polynomial in the bit lengths of the input and of the oracle answer.
We first describe the random sampling procedures used by Algorithm 1, and then prove the three guarantees of Theorem 3.1.
Random choices. Lines 4 and 5 of Algorithm 1 use the following procedures.
(1) To sample from a set of consecutive integers using a bounded number of random bits, the procedure draws random bits and reads them as an integer . It returns if , and returns FAIL otherwise. Conditioned on success, the returned element is uniform over the set. Unconditionally, each element is returned with probability , which equals when is a power of 2.
(2) A prime in , , is obtained by drawing at most uniform integers from this interval and returning the first prime among them, where primality is tested deterministically [AKS04]. By [Sho03, Theorem 5.11], for . With , a uniform integer from is prime with probability greater than , so a prime is returned with probability greater than .
(3) A uniform vector , for a prime , is obtained coordinate by coordinate. For each coordinate the procedure draws up to integers of bits and keeps the first that is less than . Each draw is kept with probability at least , so a given coordinate fails with probability at most , and all coordinates are obtained with probability at least . Conditioned on this event, is uniform on .
Support (proof of Theorem 3.1(a)). In any execution, the output is 0 or a coefficient vector representing the realized lattice vector . The output test ensures
so . Thus, , proving part (a) of Theorem 3.1.
Pointwise lower bound (proof of Theorem 3.1(b)). Fix a nonzero , so that . We identify random choices under which Algorithm 1 returns , bound the product of their probabilities, and compare it with .
Write with and primitive, and let , and . Since , we have , that is, , as defined in Line 2 of Algorithm 1. Since , we have , and in particular . The next claim shows that some exponent in the range of the algorithm yields primes for which Lemma 6.4 applies.
Claim 6.5. Let be the least integer with . Then , and every prime satisfies .
Proof. By Lemma 6.1, , where we used . Hence, . Since contains and , we have , so and . Therefore, .
The algorithm returns if the following events occur. Each probability bound holds conditionally on the preceding events and on any earlier history.
(E1) Procedure (1) returns this , and this : probability at least , since the range of has elements.
(E2) Procedures (2) and (3) succeed: probability at least . Then is uniform on .
(E3) The shortest nonzero vectors of are exactly : probability at least , by Lemma 6.4 and Claim 6.5. On this event the oracle returns a coefficient vector with for every rule of choosing among shortest vectors, and the output test passes because .
(E4) The random sign of the output is the one that gives : probability .
Multiplying these bounds gives
It remains to compare with . By Lemma 6.1, the inequality , and Lemma 6.2,
Finally, and . Combining the three displays,
which is (3) with the value of in Theorem 3.1(b). This proves part (b).
Resources (proof of Theorem 3.1(c)). If , the algorithm returns 0 before making an oracle call, and the resource bounds are immediate. Hence assume . The algorithm makes at most one oracle call, on the full-rank sublattice of , which is itself for . Since , the numbers and are polynomial in the input length, and so are the bit lengths of , , and , the number of random bits, and the number of primality tests. In particular, has at most bits, by the definition of . Since the entries of have bits and is a rational input matrix, standard rational matrix multiplication shows that every entry of the query has bit length polynomial in the input length. All remaining computations involve rationals whose bit length is polynomial in the bit lengths of the input and of the oracle answer. This proves part (c) and completes the proof of Theorem 3.1.
7 Deferred Proofs and Details for the CVP Reductions
This section contains the proofs and detailed bookkeeping deferred from Sections 2, 4 and 5. After the Euclidean proofs, we record polynomial-space consequences of the CVP reductions before turning to the deferred proofs.
7.1 Counting and Covering Lemmas
We prove Lemmas 2.1 and 2.2, restating them for convenience.
Lemma 2.1 (restated). Let be a lattice and a convex, compact, symmetric set. If for some , then .
Proof of Lemma 2.1. Fix such that contains a point . For every in this set, , and because is convex and symmetric. As , we obtain . Summing over proves the lemma.
Lemma 2.2 (restated). The following covering bounds hold.
(i) For every positive definite metric and , the ball is contained in a union of at most translates of .
(ii) For the Euclidean norm, and , the ball is contained in a union of at most translates of the cube .
Proof of Lemma 2.2. (i) Let be maximal subject to for distinct . The balls , , are disjoint and contained in , so . By maximality, .
(ii) The cubes , , are disjoint and have diameter . Each cube that meets is contained in , so at most cubes meet , and their closures cover .
7.2 Deferred Euclidean Proofs
We first prove Lemmas 4.1 and 4.2. We then give the detailed correctness and resource analysis of Algorithm 2 and complete the proof of Theorem 1.1 for p = 2.
Lemma 4.1 (restated). Let y be a closest vector of L to t. For every ,
Consequently, for every and every with ,
(i) ;
(ii) if , then x = y.
In particular, each coset of 2L in L contains at most one closest vector of L to t.
Proof of Lemma 4.1. Since , both and lie in . As is a closest vector, neither of them is closer to than , and expanding the squares gives
Hence, . Inserting this bound into the identity gives both inequalities.
For (i), apply the lower bound to . For (ii), suppose that . Then is a nonzero vector of , so , which contradicts (i). The last statement is (ii) with .
Lemma 4.2 (restated). Let be a closest vector of to , let , and let satisfy and . Let be a distribution on satisfying (3) with , , and some , and let . Then
Proof of Lemma 4.2. Let , let , and let . We show that
(a) for every ,
(b) , and
(c) .
Then (3) gives , and (a) proves the lemma.
-
For (a), let with . Then , and the upper bound of Lemma 4.1 gives .
-
For (b), because , and by Lemma 4.1(i). Hence, every satisfies .
-
For (c), Lemma 2.2(i) with and covers by at most translates of . By Lemma 2.1 with ,
Finally , and contains because . Hence .
Detailed probability and resource analysis. We provide the detailed correctness and resource analysis underlying the proof sketch in Section 4.2.
Lemma 7.1. Assume that the oracle is exact. Let be a closest vector of to , and let satisfy . Then, with probability at least , the iteration of Algorithm 2 for a ends with .
Proof. For , let be the current point at the start of stage , where denotes the point at the end of the last stage. All these points lie in , since the algorithm adds only vectors of to . We have , so the invariant holds initially.
Fix and condition on the computation up to the start of stage , assuming that . We show that with probability at least . If , then , because the current point changes only when its distance to decreases strictly. Otherwise, Lemma 4.2 with and , together with Theorem 3.1(b), shows that each sample of stage satisfies with probability at least , conditionally on the earlier samples. Hence, all samples fail with probability at most
where we used for . If some sample succeeds, then is at least as close to as for that sample, which proves the claim.
By a union bound over the stages, with probability at least . Since , Lemma 4.1(ii) then gives .
Lemma 7.2 bounds the resources of Algorithm 2. It also applies to an oracle that may err, provided that each answer is an integer vector of bounded bit length, a condition enforced by Lemma A.2.
Lemma 7.2. Algorithm 2 makes at most oracle calls, each on a full-rank sublattice of given by a poly()-bit Gram matrix. If every oracle answer is an integer vector of poly() bits, in particular if the oracle is exact, then the algorithm uses poly() other bit operations and poly() space outside the oracle.
Proof. The algorithm makes calls of the sampler, and each of them makes at most one oracle call by Theorem 3.1(c). The input of every call of the sampler has bit length polynomial in , so Theorem 3.1(c) bounds the bit lengths of the queries and the cost of each call by poly(). Since poly() and , the number of bit operations is poly().
For the space bound, the current point satisfies at all times, because it starts at a point with and its distance to never increases. By (1), , so has poly() bits. The same holds for and . Every sample lies in by Theorem 3.1(a), and (1) bounds its coefficients in the same way. Besides the workspace of one call of the sampler, which is reused, the algorithm stores three coefficient vectors and the loop counters.
Proof of Theorem 1.1 for . Suppose first that the oracle is exact. Let be a closest vector of to , and let satisfy . By Lemma 7.1, with probability at least the iteration for ends at . In this event, the returned coefficient vector represents , which is at least as close to as and hence is a closest vector. Lemma 7.2 gives the bounds (i)–(iii) of Theorem 1.1.
To output every closest vector, we run Algorithm 2 twice with independent random bits and modify the final comparison of each coset. Let denote the point at the end of the iteration for
in the first run, and put . In the second run, define and analogously, and output whenever . By Lemma 4.1, every coset contains at most one closest vector. By Lemma 7.1 and a union bound over the at most iterations for cosets that contain a closest vector, with probability at least every such iteration ends at the closest vector in both runs. In this event , and the second run outputs the coefficient vectors representing exactly the closest vectors, each of them once.
Finally, suppose that the oracle is replaced by an SVP algorithm that succeeds with probability at least 2/3. We run the algorithm, in either variant, with in place of , so that is computed for . Before its first oracle call, the algorithm computes , which by Lemma 7.2 bounds the number of oracle calls of two runs, and a bound on the bit lengths of all queries and of their shortest vectors (see the remark after Lemma A.2). Lemma A.2 with shows that the success probability is at least . Each oracle call is answered by runs of the SVP algorithm, and every answer that passes the check of Lemma A.2 has at most bits, so Lemma 7.2 applies.
7.3 Polynomial-Space Consequences
We first present the parameterized transfer underlying the Euclidean bounds in Corollary 1.2.
Corollary 7.3. Suppose that an algorithm solves exact SVP with probability at least 2/3 on every rank- lattice given by an -bit integer basis, in time and space on every execution, where and are nondecreasing in . Then, there is a polynomial such that, for every rational , exact CVP on rank- inputs of bit length , where includes the bit length of , can be solved with probability at least in time and space .
Proof. Apply Theorem 1.1 with and the SVP algorithm in place of the oracle, as in the detailed proof in Section 7.2. All queries have rank and poly() bits, and there are poly() of them. Lemma A.1 converts each query into an integer basis of poly() bits whose shortest coefficient vectors are shortest for the query. Using Lemma A.2 as in Section 7.2, we run the reduction with in place of and amplify the bounded-error SVP algorithm using poly() repetitions per oracle call, so that the oracle simulation fails with probability at most . The queries are answered one at a time, so the space used by the SVP algorithm is reused.
The reduction of Goldreich, Micciancio, Safra and Seifert [GMSS99] goes in the opposite direction. Together with Corollary 7.3 it shows that the two problems have the same time complexity for randomized polynomial-space algorithms, up to a factor poly().
Corollary 7.4. Let be a function. If exact Euclidean SVP on lattices of rank can be solved with probability at least 2/3 in time poly() and space poly(), then so can exact Euclidean CVP in time poly(). Conversely, if exact Euclidean CVP on lattices of rank can be solved with probability at least 2/3 in time poly() and space poly(), then so can exact Euclidean SVP.
Proof. The first statement is Corollary 7.3 with poly(), and . For the second, let with columns . For , let be the sublattice of vectors whose th coefficient is even, and let be a closest vector of to . The vector has an odd th coefficient, so it is nonzero. Let be a shortest nonzero vector of . Some coefficient is odd, since otherwise would be a shorter nonzero vector of . Then, , so , and the shortest of is a shortest nonzero vector of . The instances of CVP have rank and poly() bits, and they are solved one after another. Running the CVP algorithm independently times on each instance and keeping the closest valid lattice vector makes all answers correct with probability at least .
We next justify the polynomial-space instantiation in Corollary 1.3. For every fixed integer , the reduction of Theorem 1.1 can be instantiated with the polynomial-space SVP algorithm of Feng, Gao and Liu [FGL26, Theorem 4.1], using Lemmas A.1 and A.2. Lemma A.1 converts each rank- rational Gram-matrix query into an equivalent rank- integer-basis instance of polynomial bit length, and Lemma A.2 simulates the exact SVP oracle using the bounded-error SVP algorithm with only polynomial overhead. Since , which is for fixed , the poly() running time of [FGL26, Theorem 4.1] absorbs the overhead of the reduction. Thus, exact -CVP on full-rank lattices with arbitrary rational targets can be solved in randomized time poly() and polynomial space. The oracle calls are made sequentially, so the workspace used to answer them can be reused.
7.4 Deferred Proofs for the Reduction
We first prove Lemmas 5.1–5.4. We then give the full pseudocode and parameter choices for Algorithm 3, analyze its correctness and resource bounds, and complete the proof of Theorem 1.1 for .
7.4.1 Geometric and Progress Lemmas
Lemma 5.1 (restated). Let be a minimizer of on , let , and let satisfy . Write , and . Then,
Proof of Lemma 5.1. For let . Since and is a minimizer,
We bound from below in two ways. Put , and , and assume , since both bounds are trivial for . Taylor's formula with integral remainder, applied to at in the directions , gives
One of and equals . Hence,
For the second bound, the triangle inequality and convexity of on give
so . Summing each bound over with and using (5) proves the second and third inequalities. The first follows from the second, because gives .
Lemma 5.2 (restated). Let be a minimizer of on , let , and let satisfy . With (4),
Proof of Lemma 5.2. We use the notation of Lemma 5.1, so that and . By Hölder's inequality and Lemma 5.1, . With this gives . Since , Lemma 5.1 also gives . Adding the two bounds proves .
Since , raising to the power and using for gives
Divide by , which is at least and at least , and bound the sum of the last terms by Hölder's inequality and the third bound of Lemma 5.1:
where the middle step uses . Since and , the second claim follows. Finally .
Lemma 5.3 (restated). For and with ,
Proof of Lemma 5.3. The lower bound holds because is convex. By Taylor's theorem the middle term equals for some between and . As ,
Lemma 5.4 (restated). Let be a minimizer of on , let , and let satisfy and . Let be defined by (4), let be a distribution on satisfying (3) with , , and some , and let . Then
Full proof of Lemma 5.4. We use the notation of Lemma 5.1 and of (4), and we let . We construct a set such that every satisfies and . Then (3) gives the lemma. The set is , where will be chosen so that every satisfies . We define through a box and a sign condition. The box gives the bound on each required by Lemma 5.3 at a smaller cost in the count than a ball, and the sign condition ensures that the linear term of the Taylor expansion of at is nonpositive.
Let , and define
The set is symmetric and the sum in the definition of changes sign with , so or lies in for every . Hence .
Claim 7.5 (Improvement). For every , .
Proof. Let . By Lemma 5.2, , so
We have
and the first sum is at most 0 because . Bounding each term of the second sum by Lemma 5.3 with and , and then using Lemma 5.2, we obtain
Since , the right-hand side is less than .
Claim 7.6 (Containment in the sampling ball). .
Proof. For , since . With Lemma 5.2, .
Claim 7.7 (Counting bound). .
Proof. The linear map sends to the lattice , the set to the cube , and to . Since , Lemma 2.2(ii) with and (2) cover by at most
translates of , which is a translate of . Lemma 2.1 applied to proves the claim.
Let . By Claim 7.5, every satisfies . Since and contains , the argument in the proof of Lemma 4.2 gives . By Claims 7.6 and 7.7 and (3),
7.4.2 Full pseudocode and parameters
Algorithm 3 presents our algorithm for exact -CVP for integer , following the structure of Algorithm 2. It represents a lattice point by its coefficient vector and evaluates exactly in rational arithmetic.
Description. The algorithm processes the cosets , , one at a time and runs the same fixed sequence of stages in each coset. At the start of stage , it stores the current point and computes the diagonal metric from (4) with . This metric is kept fixed throughout the stage. Every sampled correction is added to the same point , and the algorithm keeps the best point found so far according to . Thus, the structure is the same as in Algorithm 2, except that the metric is recomputed at the start of each stage and the sampler is run in that weighted metric.
Parameters. Let be the least common multiple of the denominators of the entries of and . The algorithm uses the numbers
For , we have , so . The number of stages is chosen as follows. Every coordinate of a lattice point or of lies in , so every value of on lies in . Hence, a lattice point with for a minimizer satisfies . Since and are positive rationals of poly bit length, we have . Each row of the nonsingular matrix has a nonzero entry, whose absolute value is at least . Hence , and in particular .
At stage , the lattice in the metric has Gram matrix . A nonzero vector of has a coordinate of absolute value at least , so its squared -length is at least . The algorithm calls the sampler of Theorem 3.1 on , that is, with radius and .
To bound the success probability uniformly over the stages, we bound . For , we have , and since ,
Hence , and because . Thus in every stage. By Lemma 5.4 and Theorem 3.1(b), a sample of stage therefore succeeds with probability at least
Both and are integers, and .
Algorithm 3: Exact CVP in the norm for an integer
Input : Nonsingular , target , integer , rational
Output: Coefficient vector of a closest lattice point in the norm
1
2 for do
3
4
5
6
10 return
7.4.3 Correctness and Resource Analysis
We prove the correctness and resource bounds of Algorithm 3, completing the proof of Theorem 1.1 for .
Lemma 7.8. Assume that the oracle is exact. Let be a minimizer of on , and let satisfy . Then, with probability at least , the iteration of Algorithm 3 for a ends with .
Proof. The proof follows that of Lemma 7.1. Let be the current point at the start of stage , and let be the point at the end of the last stage. All these points lie in , and
so the invariant holds initially. Fix and condition on the computation up to the start of stage , assuming that . If , then , because the current point changes only when decreases strictly. Otherwise, Lemma 5.4 with and , together with Theorem 3.1(b), shows that each sample of stage yields a point with with probability at least , conditionally on the earlier samples. As in the proof of Lemma 7.1, all samples fail with probability at most . A union bound over the stages shows that with probability at least . In this event, by the choice of , so is also a minimizer of on . Since is strictly convex, two distinct minimizers in the same coset of would give a lattice point with . Hence, .
Lemma 7.9. Algorithm 3 makes at most oracle calls, each on a full-rank sublattice of in a diagonal metric, given by a poly -bit Gram matrix. If every oracle answer is an integer vector of poly bits, in particular if the oracle is exact, then the algorithm uses poly other bit operations, for an absolute constant , and poly space outside the oracle.
Proof. Each of the stages makes calls of the sampler, and each of them makes at most one oracle call by Theorem 3.1(c). The current point satisfies at all times, because it starts at a point with and never increases. Hence, , and since , the vector has poly bits. The same holds for and . The number lies between and , so , and have poly bits. Hence, Theorem 3.1(c) implies that every SVP query has poly-bit Gram matrix. For an exact oracle, every shortest coefficient vector for such a query has poly bits by the coefficient bound following Lemma A.2. Under the stated assumption on oracle answers, Theorem 3.1(c) therefore implies that each call of the sampler uses poly non-oracle bit operations and space. Every sample lies in by Theorem 3.1(a). Since , its ambient coordinates have poly bits; applying the rational matrix then shows that its coefficient vector with respect to the basis also has poly bits. Since poly and , the number of bit operations is poly. Besides the workspace of one call of the sampler, the algorithm stores three coefficient vectors, one diagonal matrix, and the loop counters.
Proof of Theorem 1.1 for . The proof follows that for , with Lemmas 7.8 and 7.9 in place of Lemmas 7.1 and 7.2. By Lemma 7.8, the coefficient vector returned by Algorithm 3 represents a minimizer of on , and hence an -closest vector, with probability at least . Each coset of contains at most one minimizer by the strict convexity argument at the end of the proof of Lemma 7.8. Applying the two-run procedure of Section 7.2 to Algorithm 3, with comparisons made using , outputs every minimizer exactly once with probability at least . For an SVP algorithm that succeeds with probability at least , Lemma A.2 applies as in the proof for , with in place of and .
8 Conclusion
We have presented a randomized, rank-preserving reduction from exact -CVP to exact Euclidean SVP for every integer , using only polynomial working space outside the oracle. For , our reduction shows that the randomized polynomial-space time complexities of exact Euclidean SVP and CVP agree up to a poly factor. For every fixed integer , it yields exact -CVP algorithms for arbitrary rational targets with either single-exponential time and space or poly time and polynomial space. The reduction combines local search within cosets of , counting arguments for improving corrections, and SVP-based sampling. An interesting direction for future work is to reduce the exponential overhead while preserving its rank and space guarantees.
A Oracle Details
This appendix presents two implementation facts used in the reductions. First, we show that an SVP query given by a positive definite rational Gram matrix can be converted, without increasing the rank, into an equivalent query on an integer basis. Second, we show how an exact SVP oracle can be replaced by a bounded-error SVP algorithm with only polynomial overhead.
Lemma A.1 (Rational Gram matrices). Exact SVP for a positive definite rational Gram matrix reduces in polynomial time to exact SVP on an integer square basis of rank , in the sense that every shortest coefficient vector for the new basis is a shortest coefficient vector for .
Proof. Let clear the denominators of , and put , and . Distinct values of , , differ by at least . Choose a positive rational satisfying
A rational decomposition of , followed by sufficiently accurate dyadic approximations of the square roots of the diagonal entries in the decomposition, gives a rational square matrix with . Here, an entrywise error bound multiplied by bounds the operator norm. Write .
Since , we have , and the least eigenvalue of is at least . Let and be shortest coefficient vectors for and for , respectively. Comparing with unit vectors gives and . Hence, by (1), and . For both vectors the two quadratic forms differ by less than . If , then , and therefore , which contradicts the choice of . Hence is shortest for .
Let be a positive integer clearing the denominators of . Then is an integer basis with Gram matrix , so its shortest coefficient vectors are exactly those of . The entries of the rational decomposition are ratios of minors of , and is polynomial in the bit length of because , and are. Thus, can be chosen with polynomial bit length, and all numbers involved have polynomial bit length.
Lemma A.2 (Bounded-error SVP algorithms). Let and . Let be a randomized algorithm with an exact SVP oracle that succeeds with probability at least for every rule by which the oracle chooses among shortest vectors. Suppose that before its first call computes and such that, for all answers that pass the check below, it makes at most calls, each on a lattice whose Gram matrix and shortest nonzero coefficient vectors have at most bits. Let be an SVP algorithm that always halts within its time bound and returns a shortest nonzero vector with probability at least . Answer each call by running independently times and returning the shortest output that is a nonzero integer coefficient vector of the correct dimension and of at most bits, or aborting if there is none. Then, succeeds with probability at least , and each call costs runs of .
Proof. The idea is to amplify each oracle call enough that, with high probability, at least one of the repeated runs returns an actual shortest vector. Conditioned on the history, all runs fail to return a shortest vector with probability at most . If at least one run succeeds, then one retained output is a shortest vector; since every retained nonzero integer vector represents a lattice vector, the shortest retained output is also shortest.
Couple the execution with one that uses an exact oracle returning the same answer whenever the simulation returns a shortest vector. The two executions agree until the first call at which the simulation fails to return a shortest vector, including the case that it aborts, and a union bound over at most calls bounds the probability of such a failure by . Therefore, the overall success probability is at least .
The coefficient bound required in Lemma A.2 can be computed directly from the query Gram matrix. For a query with Gram matrix , a shortest vector with coefficient vector a satisfies
where the upper bound follows by comparing the shortest vector with the unit coefficient vectors. Hence,
Thus, when has polynomial bit length, the right-hand side has polynomial bit length, and the coordinates of every shortest coefficient vector have polynomial bit length as well.
AI Methodology
We used OpenAI Codex, ChatGPT and Claude to assist with developing and checking proofs, comparing the literature, and editing. The tools materially affected Sections 3, 4, 5 and 6, in particular the counting arguments of Lemmas 4.2 and 5.4, and the short-vector sampler in Section 3 and its analysis in Section 6.
References
[ACK+21] Divesh Aggarwal, Yanlin Chen, Rajendra Kumar, Zeyong Li, and Noah Stephens-Davidowitz. Dimension-preserving reductions between SVP and CVP in different p-norms. In Proceedings of the 2021 ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2444–2462, 2021. doi:10.1137/1.9781611976465.145.
[AdFM24] Sunil Arya, Guilherme D. da Fonseca, and David M. Mount. Economical convex coverings and applications. SIAM Journal on Computing, 53(4):1002–1038, 2024. doi: 10.1137/23M1568351.
[ADS15] Divesh Aggarwal, Daniel Dadush, and Noah Stephens-Davidowitz. Solving the closest vector problem in 2^n time—the discrete Gaussian strikes again!, 2015. Version 2, 29 September 2015. URL: https://arxiv.org/abs/1504.01995v2, arXiv:1504.01995.
[AKS02] Miklós Ajtai, Ravi Kumar, and D. Sivakumar. Sampling short lattice vectors and the closest lattice vector problem. In Proceedings of the 17th IEEE Annual Conference on Computational Complexity, pages 53–57, 2002. URL: https://research.ibm.com/publications/sampling-short-lattice-vectors-and-the-closest-lattice-vector-problem.
[AKS04] Manindra Agrawal, Neeraj Kayal, and Nitin Saxena. PRIMES is in P. Annals of Mathematics, 160(2):781–793, 2004. doi:10.4007/annals.2004.160.781.
[BK18] Johannes Blömer and Kathlén Kohn. Voronoi cells of lattices with respect to arbitrary norms. SIAM Journal on Applied Algebra and Geometry, 2(2):314–338, 2018. doi: 10.1137/17M1132045.
[BN11] Johannes Blömer and Stefanie Naewe. Solving the closest vector problem with respect to norms, 2011. Version 4, 26 September 2011. URL: https://arxiv.org/abs/1104.3720v4, arXiv:1104.3720.
[DER25] Daniel Dadush, Friedrich Eisenbrand, and Thomas Rothvoss. From approximate to exact integer programming. Mathematical Programming, 210:223–241, 2025. Full version arXiv:2211.03859v4, 8 April 2024. URL: https://arxiv.org/abs/2211.03859v4, doi:10.1007/s10107-024-02084-1.
[DH11] Chandan Dubey and Thomas Holenstein. Approximating the closest vector problem using an approximate shortest vector oracle. In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques, volume 6845 of Lecture Notes in Computer Science, pages 184–193. Springer, 2011. doi:10.1007/978-3-642-22935-0_16.
[DK16] Daniel Dadush and Gábor Kun. Lattice sparsification and the approximate closest vector problem. Theory of Computing, 12(2):1–34, 2016. doi:10.4086/toc.2016.v012a002.
[DM13] Daniel Dadush and Daniele Micciancio. Algorithms for the densest sub-lattice problem, 2013. Author full version dated 24 December 2012; SODA 2013. URL: https://homepages.cwi.nl/~dadush/papers/min-det.pdf.
[DPV11] Daniel Dadush, Chris Peikert, and Santosh Vempala. Enumerative lattice algorithms in any norm via M-ellipsoid coverings. In 2011 IEEE 52nd Annual Symposium on Foundations of Computer Science (FOCS), pages 580–589, 2011. doi:10.1109/FOCS.2011.31.
[DV12] Daniel Dadush and Santosh Vempala. Near-optimal deterministic algorithms for volume computation via M-ellipsoids, 2012. Author version, May 2012. URL: https://homepages.cwi.nl/~dadush/papers/m-ellipsoid.pdf.
[EV20] Friedrich Eisenbrand and Moritz Venzin. Approximate CVP in time . In 28th Annual European Symposium on Algorithms (ESA 2020), volume 173 of Leibniz International Proceedings in Informatics, pages 43:1–43:15, 2020. doi:10.4230/LIPIcs.ESA.2020.43.
[FGL26] Yansong Feng, Yiming Gao, and Jiaqi Liu. Faster SVP in polynomial space, 2026. Version 1, 18 September 2026. URL: https://arxiv.org/abs/2609.21612v1, arXiv:2609.21612.
[Fu16] Lianzhi Fu. Improvements in the analysis of Kannan's CVP algorithm. Theoretical Computer Science, 621:103–112, 2016. doi:10.1016/j.tcs.2016.01.038.
[GMSS99] Oded Goldreich, Daniele Micciancio, Shmuel Safra, and Jean-Pierre Seifert. Approximating shortest lattice vectors is not harder than approximating closest lattice vectors. Information Processing Letters, 71(2):55–61, 1999. URL: https://cseweb.ucsd.edu/~daniele/papers/GMSS.pdf, doi:10.1016/S0020-0190(99)00083-6.
[Hha26] Minki Hhan. Finding a shortest vector and more in time using q-ary coset difference tree, 2026. Version 1, 2 September 2026. URL: https://arxiv.org/abs/2609.02764v1, arXiv:2609.02764.
[HRS20] Christoph Hunkenschröder, Gina Reuland, and Matthias Schymura. On compact representations of Voronoi cells of lattices. Mathematical Programming, 183:337–358, 2020. doi:10.1007/s10107-019-01463-3.
[HS07] Guillaume Hanrot and Damien Stehlé. Improved analysis of Kannan's shortest lattice vector algorithm, 2007. Full version of the CRYPTO 2007 paper, version 2, 9 May 2007. URL: https://arxiv.org/abs/0705.0965v2, arXiv:0705.0965.
[Kan83] Ravi Kannan. Improved algorithms for integer programming and related lattice problems. In Proceedings of the Fifteenth Annual ACM Symposium on Theory of Computing (STOC), pages 193–206, 1983. doi:10.1145/800061.808749.
[Kho05] Subhash Khot. Hardness of approximating the shortest vector problem in lattices. Journal of the ACM, 52(5):789–808, 2005. doi:10.1145/1089023.1089027.
[Laa26] Thijs Laarhoven. Asymptotics of random-lattice enumeration: Beyond HKZ via dense sublattices, 2026. Version 1, 11 October 2026. URL: https://arxiv.org/abs/2610.15265v1, arXiv:2610.15265.
[MV10] Daniele Micciancio and Panagiotis Voulgaris. A deterministic single exponential time algorithm for most lattice problems based on voronoi cell computations, 2010. Full version, ECCC TR10-014, revision 1. URL: https://eccc.weizmann.ac.il/report/2010/014/revision/1/download.
[NV22] Márton Nazódi and Moritz Venzin. Covering convex bodies and the closest vector problem. Discrete & Computational Geometry, 67:1191–1210, 2022. doi:10.1007/s00454-022-00392-x.
[RR26] Victor Reis and Thomas Rothvoss. The subspace flatness conjecture and faster integer programming, 2026. Full version of the FOCS 2023 paper; version 5, 27 March 2026. URL: https://arxiv.org/abs/2303.14605v5, arXiv:2303.14605.
[Sho03] Victor Shoup. A computational introduction to number theory and algebra, 2003. Beta version 1, Theorem 5.11, p. 51. URL: https://shoup.net/ntb/ntb-b1.pdf.
[Ste16] Noah Stephens-Davidowitz. Discrete Gaussian sampling reduces to CVP and SVP, 2016. Full version of the SODA 2016 paper, version 4, 19 April 2016. URL: https://arxiv.org/abs/1506.07490v4, arXiv:1506.07490.