Preprint
Article

This version is not peer-reviewed.

Hardness of Euclidean Closest Vector Within n1/8−ϵ and Binary Nearest Codeword Within n1/4−ϵ

Submitted:

11 August 2026

Posted:

12 August 2026

You are already at the latest version

Abstract
We prove two deterministic inapproximability results. First, for every fixed \(\epsilon>0\), Euclidean \(\mathrm{GapCVP}^{(2)}\) is NP-hard with gap factor \(n^{1/8-\epsilon}\) under deterministic polynomial-time many-one reductions, where \(n\) denotes the lattice rank. Consequently, the Euclidean closest vector problem is NP-hard to approximate within the same factor. This improves the previous \(n^{1/400}\) hardness factor in Chapter 7 of the OpenAI report [1]. Second, for every fixed \(\epsilon>0\), binary nearest codeword and binary syndrome decoding are NP-hard to approximate within \(n^{1/4-\epsilon}\) under deterministic polynomial-time many-one reductions, where \(n\) denotes the binary block length. This improves the previous \(n^{1/200}\) hardness factor in Chapter 7 of the OpenAI report [1].
Keywords: 
;  

1. Introduction

The gap version of the closest vector problem provides the standard decision formulation for studying approximation hardness. Let B Z n × n be nonsingular. Its columns generate the full-rank lattice L ( B ) : = B Z n , whose rank is n. Given a target t Q n and a norm · , the optimization version of the closest vector problem asks for z Z n minimizing t B z ; see Micciancio and Goldwasser [2][Chapter 3] for standard background.
For an approximation factor γ : N [ 1 , ) and a positive rational radius r, the promise problem GapCVP γ · asks one to distinguish
dist · ( t , L ( B ) ) r from dist · ( t , L ( B ) ) > γ ( n ) r ,
where dist · ( t , L ( B ) ) : = min z Z n t B z . Instances whose optimum lies between the two thresholds are outside the promise. A γ ( n ) -approximation algorithm for the optimization problem solves this promise problem by comparing the distance of its output with γ ( n ) r . Thus NP-hardness of GapCVP γ · rules out such an approximation algorithm unless P = NP .
The Euclidean closest vector problem is the specialization to the 2 norm. We write
dist 2 ( t , L ( B ) ) : = min z Z n t B z 2
and denote its gap version by GapCVP γ ( 2 ) . Van Emde Boas [3] proved NP-hardness of exact Euclidean CVP. Arora, Babai, Stern, and Sweedyk [4] established hardness within every fixed constant. For every fixed ϵ > 0 , they also proved hardness within 2 ( log n ) 1 ϵ under the assumption NP ¬ DTIME ( 2 ( log n ) O ( 1 ) ) [4]. Dinur, Kindler, and Safra [5], in work subsequently refined by Dinur, Kindler, Raz, and Safra [6], strengthened this to n a / log log n for some absolute constant a > 0 . Although this factor dominates every fixed power of log n , its exponent tends to zero and hence does not give n c hardness for any fixed c > 0 . The OpenAI report [1][Chapter 7] subsequently obtained the fixed polynomial factor n 1 / 400 by a deterministic reduction from 3SAT. Fixed-polynomial lattice inapproximability had previously been obtained conditionally on the Projection Games Conjecture by Moshkovitz [7][Section 5.1] and Mukhopadhyay [8]. Those conditional results are qualitatively different from the unconditional deterministic reduction from ordinary 3SAT proved here. The Exponential Time Hypothesis (ETH), introduced by Impagliazzo and Paturi [9], has also served as the basis for recent fine-grained lower bounds for constant-factor approximations of CVP and related problems [10,11]. These results concern the running time of constant-factor approximation rather than unconditional NP-hardness for polynomial approximation factors.
The square-root scale forms a complexity-theoretic barrier. Goldreich and Goldwasser [12] established interactive-proof upper bounds that constrain the nonapproximability of lattice problems. Aharonov and Regev [13] subsequently proved that, for some absolute constant C > 0 ,
GapCVP C n ( 2 ) NP coNP .
Consequently, NP-hardness at that scale under deterministic polynomial-time many-one reductions would imply NP = coNP . The range between the exponent 1 / 8 obtained here and the square-root exponent 1 / 2 remains open.
Binary nearest codeword is an optimization problem over F 2 . Given a k-dimensional binary linear code C F 2 n and a target word y F 2 n , the task is to find a codeword in C minimizing its Hamming distance from y [14]. Binary syndrome decoding takes as input a binary parity-check matrix H and a syndrome s im H , and asks for a minimum-weight binary vector e satisfying H e = s [14]. The two formulations are equivalent. Indeed, if C = ker H and s = H y , then the map c y c identifies codewords c C with vectors e satisfying H e = s . Consequently, the two instances have the same optimum value, and the correspondence preserves approximation ratios.
Berlekamp, McEliece, and van Tilborg [14] proved that binary syndrome decoding is NP-complete. For binary nearest codeword, Arora, Babai, Stern, and Sweedyk [4] proved unconditional NP-hardness of approximation within every constant factor. For every fixed ϵ > 0 , they also proved hardness within 2 ( log n ) 1 ϵ under the assumption that NP has no quasipolynomial-time algorithms, namely NP ¬ DTIME ( 2 ( log n ) O ( 1 ) ) . Arora’s thesis [15][Section 6.4] gives a contemporaneous account and explicitly records the stronger 1 ϵ exponent for nearest codeword. For nearest codeword with preprocessing, Alekhnovich, Khot, Kindler, and Vishnoi [16] proved hardness within ( log n ) 1 ϵ under the same quasipolynomial-time assumption. Khot, Popat, and Vishnoi [17] strengthened the factor to 2 ( log n ) 1 ϵ under NP ¬ DTIME ( 2 ( log n ) O ( 1 / ϵ ) ) . For ordinary nearest codeword, Bhattiprolu, Guruswami, and Ren [18] subsequently gave a PCP-free proof of the same two bounds: unconditional NP-hardness within every constant factor and 2 ( log n ) 1 ϵ = n o ( 1 ) hardness under the assumption that NP has no quasipolynomial-time algorithms. Their contribution is a new proof rather than a stronger approximation factor. Bhattiprolu, Guruswami, Lee, and Ren [19] subsequently studied the inapproximability of finding sparse vectors in codes, subspaces, and lattices via randomized reductions; their lattice result does not yield deterministic fixed-polynomial hardness for Euclidean CVP. Methodologically, Bennett and Peikert [20] also combine Reed–Solomon codes [21] with an integer-lattice lift to obtain randomized hardness for approximate SVP and identify derandomization as a central obstacle.
Bitansky, Harsha, Ishai, Rothblum, and Wu [22] showed that ETH rules out 2 o ( n ) -time approximation within a certain constant factor, using the equivalent formulation that minimizes the number of unsatisfied linear equations. Subsequently, Corollary 15 of the OpenAI report [1] established, without an additional complexity assumption, NP-hardness of approximation within n 1 / 200 for binary nearest codeword and binary syndrome decoding under deterministic polynomial-time many-one reductions. The result proved here uses the same unconditional reduction model and improves the approximation factor to n 1 / 4 ϵ for every fixed ϵ > 0 .
On the algorithmic side, Alon, Panigrahy, and Yekhanin gave several deterministic approximation algorithms and time–ratio tradeoffs [23]. Their general polynomial-time algorithm achieves an O ( n / log n ) approximation. Berman and Karpinski gave a deterministic O ( k / c ) -approximation algorithm for every fixed constant c > 0 and a randomized O ( k / log k ) -approximation algorithm [24]. Alon, Panigrahy, and Yekhanin observed that the latter analysis yields an O ( k / log n ) approximation [23].

1.1. Our Results

We first record the two Euclidean lattice problems used below.
Definition 1
(Euclidean closest vector). An instance consists of a nonsingular matrix B Z n × n and a target t Q n . The matrix B generates the full-rank lattice L ( B ) : = B Z n . The objective is to output a vector z Z n minimizing t B z 2 . Its optimum value is dist 2 ( t , L ( B ) ) : = min z Z n t B z 2 .
Definition 2
(Euclidean GapCVP). Let γ : N [ 1 , ) . An instance of GapCVP γ ( 2 ) consists of a nonsingular matrix B Z n × n , a target t Q n , and a radius r Q > 0 . It is promised that either dist 2 ( t , L ( B ) ) r , which is the YES case, or dist 2 ( t , L ( B ) ) > γ ( n ) r , which is the NO case. The task is to distinguish the two cases.
We now state our main Euclidean result. It improves the n 1 / 400 hardness factor in Theorem 1 on page 184 of the OpenAI report [1][Chapter 7].
Theorem 1
(Euclidean closest vector, informal version of Theorem 4). For every fixed ϵ > 0 , there is a deterministic polynomial-time mapping that assigns to each 3SAT formula φ a nonsingular matrix B Z n × n , a target t Z n , and a radius r Q > 0 such that
φ satisfiable dist 2 ( t , L ( B ) ) r , φ unsatisfiable dist 2 ( t , L ( B ) ) > n 1 / 8 ϵ r .
Consequently, GapCVP n 1 / 8 ϵ ( 2 ) is NP-hard under deterministic polynomial-time many-one reductions.
We next formally define the two binary problems.
Definition 3
(Binary nearest codeword). An instance consists of a binary linear code C F 2 n , given by a generator matrix, and a target word y F 2 n . The objective is to output a codeword c C minimizing wt ( y c ) . We denote the optimum value by opt nc ( C , y ) : = min c C wt ( y c ) .
Definition 4
(Binary syndrome decoding). An instance consists of a binary matrix H F 2 r × n and a syndrome s im H . The objective is to output a vector e F 2 n of minimum Hamming weight subject to H e = s . We denote the optimum value by opt sd ( H , s ) : = min { wt ( e ) : e F 2 n , H e = s } .
The following theorem improves the n 1 / 200 hardness factor established by Corollary 15 on page 213 of the OpenAI report [1][Chapter 7].
Theorem 2
(Main result, informal version of Theorem 3). For every ϵ > 0 , binary nearest codeword (Definition 3) and binary syndrome decoding (Definition 4) are NP-hard to approximate within n 1 / 4 ϵ under deterministic polynomial-time many-one reductions, where n is the binary block length.

2. Technique Overview

This section compares the mechanism behind the OpenAI reduction with the two quadratic estimates that improve its parameters. We focus on the reduction to binary nearest codeword and syndrome decoding. The Euclidean closest-vector result then follows from the dimension-preserving parity-lift reduction, which takes a binary weight gap to the square root of that gap in Euclidean distance.
Table 1. Historical hardness lower bounds and algorithmic upper bounds for Euclidean closest vector, measured as a function of the lattice rank n. Every algorithm in the second panel runs in polynomial time; D and R denote deterministic and randomized algorithms, respectively. In the 1997 row, the constant-factor hardness is unconditional, whereas the 2 ( log n ) 1 ϵ factor assumes NP ¬ DTIME ( 2 ( log n ) O ( 1 ) ) . In the 2003 row, a > 0 is an absolute constant. The final hardness row holds for every fixed ϵ > 0 .
Table 1. Historical hardness lower bounds and algorithmic upper bounds for Euclidean closest vector, measured as a function of the lattice rank n. Every algorithm in the second panel runs in polynomial time; D and R denote deterministic and randomized algorithms, respectively. In the 1997 row, the constant-factor hardness is unconditional, whereas the 2 ( log n ) 1 ϵ factor assumes NP ¬ DTIME ( 2 ( log n ) O ( 1 ) ) . In the 2003 row, a > 0 is an absolute constant. The final hardness row holds for every fixed ϵ > 0 .
Preprints 227824 i001

2.1. Overview of the OpenAI Reduction

Chapter 7 of the OpenAI report factors the reduction as
3 SAT binary affine decoding binary nearest codeword Euclidean CVP ;
see [1][Section 1.2]. The first arrow contains the main algebraic construction. Let φ be the input formula, let s be its encoding length, and let m and be its numbers of variables and clauses. Put N : = 100 + s + m + and d : = m . The variables are indexed by [ m ] : = { 1 , , m } and represented by distinct anchors a 1 , , a m in a characteristic-two field F q . A Boolean assignment σ { 0 , 1 } m determines the unique polynomial Q σ F q [ X ] of degree less than m satisfying Q σ ( a i ) = σ i , where σ i is the bit assigned to variable i. The reduction evaluates this polynomial on P : = F q { a 1 , , a m } .
The binary variables are arranged into evaluation tables. For a clause C, let I C [ m ] be the set of its variable indices and let B C { 0 , 1 } I C be its satisfying local assignments. The table types are Θ : = { 0 } { ( C , β ) : β B C } : type 0 is the global table, and ( C , β ) is the subtype asserting that clause C receives the local assignment β . Write x τ , p , w for the binary coordinate selecting the field value w F q in table τ Θ at p P , and define its fiber by S τ ( p ) : = { w F q : x τ , p , w = 1 } .
Fix a moment budget T. For 0 j T , the ordinary power sum of table τ at p is
μ τ , j ( p ) : = w S τ ( p ) w j .
For τ = ( C , β ) , i I C , and 0 j T , the shifted power sum is
η τ , i , j ( p ) : = w S τ ( p ) ( w β i p a i ) j ,
where β i is the bit assigned to variable i by β . The affine constraints require these pointwise quantities to be evaluations of low-degree polynomials and require the clause tables to reproduce the global table modulo two. Let H x = b denote the resulting binary affine system, let M : = | Θ | | P | q be its number of binary coordinates, and, when the system is consistent, define W ( H , b ) : = min { wt ( x ) : H x = b } . If σ satisfies the formula, each active fiber is the singleton { Q σ ( p ) } , exactly one subtype is active for every clause, and the resulting binary solution has weight R : = ( + 1 ) | P | .
For soundness, start with a low-weight binary solution. For a fiber cutoff κ , define the good evaluation set of table τ by P τ : = { p P : | S τ ( p ) | κ } . Markov’s inequality shows that P τ contains all but a small set of evaluation points. Reed–Solomon interpolation turns the pointwise moments into polynomials μ τ , j ( X ) in the indeterminate X. The report’s reconstruction lemma uses the associated Hankel matrix to construct a monic separable polynomial G τ F q ( X ) [ Y ] . Its roots in a common splitting field have the prescribed power sums. The shifted moments are then examined using a valuation above X a i . They force every root associated with subtype ( C , β ) to reduce to the bit β i at the anchor a i . Finally, the clause decomposition and a Vandermonde argument match a global root with a satisfying subtype for every clause. Using the same valuation for a variable wherever it occurs makes these local assignments consistent, producing a global satisfying assignment.
Table 2. Historical hardness lower bounds and algorithmic upper bounds for binary nearest codeword. In the first panel, the 2005 and 2014 rows concern nearest codeword with preprocessing; all other rows concern ordinary nearest codeword or the equivalent syndrome-decoding formulation. The constant-factor statements in the 1997 and 2025 rows are unconditional. The 2 ( log n ) 1 ϵ statements in those rows, as well as the 2005 row, assume NP ¬ DTIME ( 2 ( log n ) O ( 1 ) ) ; the 2014 row assumes NP ¬ DTIME ( 2 ( log n ) O ( 1 / ϵ ) ) . Both 2026 hardness results are unconditional, and the final row holds for every fixed ϵ > 0 . In the second panel, n denotes the binary block length, k denotes the code dimension, and R and D denote randomized and deterministic algorithms, respectively. The randomized 2002 row records the sharper O ( k / log n ) guarantee that Alon, Panigrahy, and Yekhanin observed from Berman and Karpinski’s analysis; Berman and Karpinski themselves stated O ( k / log k ) . In the first row of the second panel, c > 0 is an arbitrary fixed constant. The parameter s is a fixed positive integer, and log ( s ) n denotes the s-fold iterated logarithm.
Table 2. Historical hardness lower bounds and algorithmic upper bounds for binary nearest codeword. In the first panel, the 2005 and 2014 rows concern nearest codeword with preprocessing; all other rows concern ordinary nearest codeword or the equivalent syndrome-decoding formulation. The constant-factor statements in the 1997 and 2025 rows are unconditional. The 2 ( log n ) 1 ϵ statements in those rows, as well as the 2005 row, assume NP ¬ DTIME ( 2 ( log n ) O ( 1 ) ) ; the 2014 row assumes NP ¬ DTIME ( 2 ( log n ) O ( 1 / ϵ ) ) . Both 2026 hardness results are unconditional, and the final row holds for every fixed ϵ > 0 . In the second panel, n denotes the binary block length, k denotes the code dimension, and R and D denote randomized and deterministic algorithms, respectively. The randomized 2002 row records the sharper O ( k / log n ) guarantee that Alon, Panigrahy, and Yekhanin observed from Berman and Karpinski’s analysis; Berman and Karpinski themselves stated O ( k / log k ) . In the first row of the second panel, c > 0 is an arbitrary fixed constant. The parameter s is a fixed positive integer, and log ( s ) n denotes the s-fold iterated logarithm.
Preprints 227824 i002
The quantitative loss comes from making the reconstruction and valuation arguments hold simultaneously. The report chooses κ : = N 4 , T : = N 30 , and q = Θ ( N 200 ) . Since the number of binary coordinates is M = O ( N q 2 ) = O ( N 401 ) , soundness against solutions of weight O ( M 1 / 200 R ) gives the M 1 / 200 coding gap. The standard parity lift outputs a lattice basis B and a target t satisfying dist 2 ( t , L ( B ) ) 2 = W ( H , b ) , so this becomes the M 1 / 400 Euclidean gap.

2.2. Overview of Our Improvements

Our construction retains the evaluation tables, the ordinary and shifted Reed–Solomon moment constraints, and the completeness assignment above. The improvement comes from replacing the two most expensive parts of the soundness analysis by quadratic estimates in the fiber cutoff κ .
The first improvement is Lemma 2. Fix a table type τ and a set P P τ of good evaluation points. For readability, write μ j ( X ) : = μ τ , j ( X ) . Let h : = max p P | S τ ( p ) | be the maximum fiber size on P , and form the Hankel determinant
Δ h ( X ) : = det ( μ r + s ( X ) ) 0 r , s < h .
At a fiber of size h this determinant is a squared Vandermonde determinant, whereas it vanishes at smaller fibers. Expanding the determinant and using deg μ r + s d ( r + s ) gives deg Δ h d h ( h 1 ) . Solving the Hankel system gives a recurrence for the moments and a monic polynomial G F q ( X ) [ Y ] . Instead of propagating the recurrence one moment at a time with a fresh denominator loss, we package it into the generating-function identity
Q ( Z ) U T ( Z ) = h Q ( Z ) Z Q ( Z ) ( mod Z T + 1 ) ,
where Z is a formal variable, Q ( Z ) : = Z h G ( Z 1 ) , and U T ( Z ) : = j = 0 T μ j ( X ) Z j . Only one copy of the Hankel denominator must be cleared. This changes the sampling requirement from the report’s product-type bound 2 d κ 2 T to the additive quadratic bound
| P | d κ ( κ 1 ) > d ( T + κ 2 ) .
It also recovers all moments through T and proves that G is separable.
The second improvement is Lemma 3. Fix an anchor a i , a subtype bit β i , and reconstructed roots α 1 , , α h in a splitting field of G. Let v be an extension to this field of the ( X a i ) -adic valuation ord X a i . Put y s : = ( α s β i ) / ( X a i ) . The shifted constraints say that the power sums of the y s have nonnegative v-valuation. Suppose, for contradiction, that some y s has negative valuation, and collect all roots of minimum valuation into one cluster. A Newton-polygon segment shows that the cluster size times the absolute slope is at least one. A logarithmic-derivative identity bounds the derivatives at the reciprocal roots, while the discriminant identity
Δ h = r < s ( α s α r ) 2
bounds the total pairwise valuation. Summing over the entire minimum-slope cluster prevents cancellation among individual roots and yields a contradiction once T d κ 2 . Thus every reconstructed root satisfies v ( α s β i ) 1 . The parity-matching argument can then be reused to obtain Lemma 4.
These quadratic bounds permit a substantially smaller field. Fix an integer tuning parameter k 2 , independent of the code dimension, and choose a constant A depending only on k. Define κ : = A N k , T : = N κ 2 , q : = Θ ( N 2 κ 2 ) . The affine system then has M = O k ( N q 2 ) = O k ( N 4 k + 5 ) coordinates, where the hidden constants depend only on k. Its binary block length is n : = M . Taking δ k : = ( k 1 ) / ( 4 k + 5 ) makes the low-weight cutoff M δ k R small enough that every table retains the evaluations needed by the two quadratic lemmas. Therefore an unsatisfiable formula has binary distance greater than M δ k R , proving Theorem 3. Since δ k tends to 1 / 4 , this gives n 1 / 4 ϵ hardness for binary nearest codeword and syndrome decoding. After the parity lift, the resulting lattice has rank n : = M , and the Euclidean exponent is halved, giving the n 1 / 8 ϵ consequence stated in Theorem 4.

3. The Binary Affine System

Let φ be a 3SAT formula of encoding length s. Delete tautological clauses, repeated literals, and unused variables. The cases of an empty clause and of no remaining clauses will be handled by fixed promise instances. Otherwise let m , 1 be the numbers of variables and clauses, and put
N : = 100 + s + m + , d : = m .
Let K : = F q be a characteristic-two field, choose distinct anchors a 1 , , a m K , and define
P : = K { a 1 , , a m } .
For a clause C, let I C be its set of variable indices and let B C { 0 , 1 } I C be the satisfying local assignments. Thus | I C | 3 and | B C | 8 . The table types are
Θ : = { 0 } { ( C , β ) : β B C } .
For every τ Θ , p P , and w K , introduce a binary variable x τ , p , w . For a binary assignment x, write
S τ ( p ) : = { w K : x τ , p , w = 1 } .
Fix a moment budget T. We use the convention z 0 : = 1 , including when z = 0 .
Definition 5
(Ordinary power sum). For τ Θ , p P , and 0 j T , define
μ τ , j ( p ) : = w K x τ , p , w w j .
Definition 6
(Shifted power sum). For τ = ( C , β ) , i I C , p P , and 0 j T , define
η τ , i , j ( p ) : = w K x τ , p , w ( w β i p a i ) j .
This quantity is well defined because p P implies p a i .
The affine system H x = b consists of the following constraints.
1.
For every p P ,
w K x 0 , p , w = 1 .
2.
For every clause C, p P , and w K ,
x 0 , p , w = β B C x ( C , β ) , p , w .
3.
For every type τ and 0 j T , the vector indexed by p P whose p-th coordinate is the ordinary power sum μ τ , j ( p ) from Definition 5 belongs to the Reed–Solomon evaluation code of degree at most d j .
4.
For every τ = ( C , β ) , i I C , and 0 j T , the vector indexed by p P whose p-th coordinate is the shifted power sum η τ , i , j ( p ) from Definition 6 belongs to the Reed–Solomon evaluation code of degree at most ( d 1 ) j .
All equations above are linear over K . Expanding them in an F 2 -basis of K gives a binary affine system. Its number of variables is
M : = | Θ | | P | q .
Lemma 1
(Completeness). If φ is satisfiable, then H x = b has a binary solution of weight R : = ( + 1 ) | P | .
Proof. 
Identify the Boolean values with the prime subfield F 2 K . Let σ { 0 , 1 } m satisfy φ . Since the anchors a 1 , , a m are distinct, Lagrange interpolation gives a unique polynomial Q σ K [ X ] of degree less than m satisfying Q σ ( a i ) = σ i for every i [ m ] .
For each clause C, put β C : = σ | I C . Since σ satisfies C, we have β C B C , so ( C , β C ) is a valid and uniquely determined subtype. At every p P , put a one in the global coordinate w = Q σ ( p ) and, for each clause C, in the coordinate with subtype ( C , β C ) and field value w = Q σ ( p ) . Put zeros in every other coordinate.
For each p P , the global fiber is the singleton { Q σ ( p ) } , so Eq. (1) holds. Fix a clause C, a point p P , and w K . On the right-hand side of Eq. (2), the only possibly nonzero summand is indexed by β C , and this summand is one exactly when w = Q σ ( p ) . The left-hand side has the same value. Thus Eq. (2) holds.
Fix 0 j T . By the definition of μ (see Definition 5), for the global table and for the selected subtype of each clause, the ordinary moments are evaluations of Q σ ( X ) j . Since deg Q σ d 1 , this polynomial has degree at most ( d 1 ) j d j . Every unselected subtype has identically zero ordinary moments, which also satisfy the required Reed–Solomon constraint.
Now fix a clause C and i I C . Because Q σ ( a i ) = σ i = β i C , the factor theorem shows that X a i divides Q σ ( X ) σ i . Hence G i ( X ) : = ( Q σ ( X ) σ i ) / ( X a i ) belongs to K [ X ] . Moreover, p P implies p a i , so by Definition 6 the shifted moment of the selected subtype at p is G i ( p ) j . If d 2 , then deg G i d 2 ; if d = 1 , then G i = 0 . In either case, using the convention for zeroth powers, G i ( X ) j has degree at most ( d 1 ) j . Every unselected subtype has identically zero shifted moments. Thus all ordinary and shifted moment constraints hold.
Finally, at each p P there is one selected global coordinate and one selected coordinate for each of the clauses. These coordinates have distinct table types, so the total weight is ( + 1 ) | P | = R , as claimed. □

4. Quadratic Reconstruction

Lemma 2
(Quadratic polynomial-moment reconstruction). Let P K , let d , κ 1 , and let T 0 . For each 0 j T , suppose that μ j K [ X ] satisfies
deg μ j d j , μ j ( p ) = w S ( p ) w j
for a family ( S ( p ) ) p P with | S ( p ) | κ . Assume
T 2 κ 1 , d T < | P | , | P | d κ ( κ 1 ) > d ( T + κ 2 ) .
Put F : = K ( X ) and h : = max p P | S ( p ) | . Then there is a monic separable polynomial G F [ Y ] of degree h, with root set R : = { α 1 , , α h } in a finite separable extension of F, such that
μ j ( X ) = s = 1 h α s j ( 0 j T ) .
Moreover,
Δ h ( X ) : = det ( μ r + s ( X ) ) 0 r , s < h = 1 r < s h ( α s α r ) 2 , deg Δ h d h ( h 1 ) .
Proof. 
The inequality d T < | P | implies that P is nonempty. If h = 0 , then S ( p ) is empty for every p P , so every μ j vanishes on P . Since deg μ j d j d T < | P | , each μ j is the zero polynomial. Take G : = 1 and R : = . With the conventions that the determinant of the empty matrix and the empty product are both 1, all conclusions follow. Henceforth assume h > 0 and put
Δ h : = det ( μ r + s ) 0 r , s < h , Ω : = { p P : | S ( p ) | = h } .
Since h κ and T 2 κ 1 , we have 2 h 1 T ; hence every moment used below is among the polynomials supplied by the hypotheses.
For p P , let V p be the matrix with rows indexed by 0 r < h , columns indexed by w S ( p ) , and entry w r . The specialized Hankel matrix (see, e.g., [29]) is V p V p T . If p Ω , enumerate S ( p ) = { w 1 , , w h } . Then V p is a square Vandermonde matrix on distinct field elements, so
Δ h ( p ) = det ( V p ) 2 = 1 r < s h ( w s w r ) 2 0 .
If p Ω , then V p has fewer than h columns, so the specialized Hankel matrix has rank less than h and Δ h ( p ) = 0 .
For a permutation π of { 0 , , h 1 } , the corresponding term in the determinant has degree at most
d r = 0 h 1 ( r + π ( r ) ) = d h ( h 1 ) .
Thus deg Δ h d h ( h 1 ) . By the definition of h, the set Ω is nonempty, so the preceding Vandermonde calculation also shows that Δ h is not the zero polynomial. Every point of P Ω is a root of Δ h ; therefore
| Ω | | P | deg Δ h | P | d h ( h 1 ) > d ( T + κ 2 ) .
The Hankel matrix is invertible over F. Let c 0 , , c h 1 F be the unique solution of
l = 0 h 1 μ i + l c l = μ i + h ( 0 i < h ) ,
and define G ( Y ) : = Y h + l = 0 h 1 c l Y l . Cramer’s rule [30] gives c l = n l / Δ h for some n l K [ X ] . In the determinant defining n l , column l is replaced by ( μ i + h ) 0 i < h . The sum of the moment indices in any determinant term is
i = 0 h 1 i + ( r = 0 h 1 r l + h ) = h 2 l .
Consequently, deg n l d ( h 2 l ) .
Fix p Ω . Since Δ h ( p ) 0 , all coefficients of G can be specialized at p; denote the resulting polynomial by G p . Write
G ˜ p ( Y ) : = w S ( p ) ( Y w ) = Y h + l = 0 h 1 c ˜ l ( p ) Y l .
For every 0 i < h , this polynomial satisfies
μ i + h ( p ) + l = 0 h 1 c ˜ l ( p ) μ i + l ( p ) = w S ( p ) w i G ˜ p ( w ) = 0 .
The specialized Hankel system is invertible, so its solution is unique and
G p ( Y ) = G ˜ p ( Y ) = w S ( p ) ( Y w ) .
For 0 j T h , define
F j ( X ) : = Δ h ( X ) μ j + h ( X ) + l = 0 h 1 n l ( X ) μ j + l ( X ) .
For every p Ω , the preceding factorization gives
F j ( p ) = Δ h ( p ) w S ( p ) w j G p ( w ) = 0 .
Moreover,
deg F j d ( h 2 + j ) d ( T + h 2 ) < | Ω | .
Therefore F j = 0 , and division by Δ h yields the recurrence
μ j + h + l = 0 h 1 c l μ j + l = 0 ( 0 j T h ) .
Put
Q ( Z ) : = Z h G ( Z 1 ) = 1 + r = 1 h q r Z r , q r : = c h r , U T ( Z ) : = j = 0 T μ j Z j ,
and set q 0 : = 1 . For 0 m < h , put H m : = r = 0 m q r μ m r and H ( Z ) : = m = 0 h 1 H m Z m . For h m T , the coefficient of Z m in Q ( Z ) U T ( Z ) is the recurrence above with j = m h , and hence vanishes. The coefficients below degree h are the H m . Therefore
Q ( Z ) U T ( Z ) H ( Z ) ( mod Z T + 1 ) .
All identities in Z below are interpreted in the appropriate formal power-series ring.
For p Ω and every j 0 , define the pointwise moment μ ˜ j ( p ) : = w S ( p ) w j . It agrees with μ j ( p ) when j T . Define
U p ( Z ) : = j 0 μ ˜ j ( p ) Z j = w S ( p ) 1 1 w Z
and
Q p ( Z ) : = Z h G p ( Z 1 ) = w S ( p ) ( 1 w Z ) .
Logarithmic differentiation gives the exact identity
Q p ( Z ) U p ( Z ) = h Q p ( Z ) Z Q p ( Z ) .
For 0 m < h , only moments of order at most m contribute to the coefficient of Z m . Hence specialization at p gives H m ( p ) = ( h m ) q m ( p ) .
For 0 m < h , define
D m ( X ) : = Δ h ( X ) ( H m ( h m ) q m ) K [ X ] .
The polynomial D m vanishes at every point of Ω . Its degree is at most d ( h 2 h + m ) : the r = 0 term is Δ h μ m , every term with r 1 is n h r μ m r , and the final term is n h m when m 1 and h Δ h when m = 0 . Thus
deg D m d ( h 2 h + m ) < d h 2 < | Ω | .
It follows that D m = 0 . Since Δ h 0 , we obtain H m = ( h m ) q m for every 0 m < h , and therefore
H ( Z ) = h Q ( Z ) Z Q ( Z ) .
Let E be a splitting field of G over F, and list the roots α 1 , , α h with multiplicity. Then Q ( Z ) = s = 1 h ( 1 α s Z ) . Because Q ( 0 ) = 1 , it is invertible in E [ [ Z ] ] . Dividing the two generating-function identities gives
U T ( Z ) h Z Q ( Z ) Q ( Z ) ( mod Z T + 1 ) .
On the other hand, logarithmic differentiation of the root factorization gives the exact formal-series identity
h Z Q ( Z ) Q ( Z ) = s = 1 h 1 1 α s Z = j 0 ( s = 1 h α s j ) Z j .
Comparing coefficients through degree T shows that μ j = s = 1 h α s j for every 0 j T .
Since h κ and T 2 κ 1 , these identities include all moments through degree 2 h 2 . Define V α : = ( α s r ) 0 r < h , 1 s h . Substitution into the Hankel determinant gives
Δ h = det ( V α V α T ) = det ( V α ) 2 = 1 r < s h ( α s α r ) 2 .
Because Δ h 0 , the roots are distinct. Thus G is separable, and its splitting field E / F is a finite separable extension. □

5. Quadratic Local Valuation Extraction

Lemma 3
(Quadratic local valuation extraction). Let a K , put F : = K ( X ) , let E / F be a finite extension, and let v extend ord X a to E. Let d , κ , T 1 , let 0 h κ , and put a : = X a . Let G F [ Y ] be a monic polynomial of degree h that splits in E with distinct root set R : = { α 1 , , α h } . Suppose
μ j ( X ) = s = 1 h α s j K [ X ] ( 0 j T ) ,
and
Δ h ( X ) : = r < s ( α s α r ) 2 K [ X ] { 0 } , deg Δ h d h ( h 1 ) .
If β K and η j K [ X ] satisfy
a j η j ( X ) = r = 0 j j r ( β ) j r μ r ( X ) ( 0 j T ) ,
and T d κ 2 , then
v ( α s β ) 1 ( 1 s h ) .
Proof. 
If h = 0 , the conclusion is vacuous. Hence assume h 1 . Put
y s : = α s β X a , p j : = s = 1 h y s j .
The shifted-moment identities give p j = η j ( X ) for 0 j T ; hence v ( p j ) 0 . Suppose for contradiction that
t : = min s v ( y s ) < 0 , u : = t > 0 .
Let
A : = { s : v ( y s ) = u } , r : = | A | , b : = h r .
The set A is nonempty, so r 1 .
The y s are the roots of the monic degree-h polynomial ( X a ) h G ( ( X a ) Y + β ) F [ Y ] . Complete E with respect to v. The embedding F E extends to an embedding of the ( X a ) -adic completion of F into this completed field. We may therefore apply the Newton-polygon theorem [31][Chapter 2] to this polynomial and the valuations of its roots y s . The segment corresponding to the roots of valuation u has horizontal length r and endpoints of integral height. Its slope is u, so
r u Z > 0 , r u 1 .
Define
Q ( Z ) : = s = 1 h ( 1 y s Z ) , A T ( Z ) : = j = 1 T p j Z j 1 .
In E [ [ Z ] ] , logarithmic differentiation gives
Q ( Z ) Q ( Z ) = j 1 p j Z j 1 .
Therefore
B ( Z ) : = Q ( Z ) A T ( Z ) Q ( Z ) = Q ( Z ) j T + 1 p j Z j 1 ,
so the polynomial B is divisible by Z T . Define C : = B / Z T ; since deg B < T + h , we have deg C < h .
Write Q ( Z ) = i = 0 h q i Z i . The definition of u gives v ( y s ) u for every s, and hence v ( q i ) i u h u . Together with v ( p j ) 0 for j T , this shows that every coefficient of Q , A T Q , B, and C has valuation at least h u . For s A , the element y s is nonzero. Put z s : = 1 / y s , so v ( z s ) = u . Since Q ( z s ) = 0 ,
Q ( z s ) = B ( z s ) = z s T C ( z s ) .
Because deg C < h and every coefficient of C has valuation at least h u , we have v ( C ( z s ) ) h u . Consequently,
v ( Q ( z s ) ) ( T h ) u .
On the other hand, put
I s : = t s v ( y s y t ) .
The product formula gives
Q ( z s ) = y s t s y s y t y s ,
and therefore
v ( Q ( z s ) ) = I s + ( h 2 ) u .
Let D A A , D A B , and D B B be the sums of v ( y s y t ) over the corresponding unordered pairs. Since y s y t = ( α s α t ) / ( X a ) ,
2 ( D A A + D A B + D B B ) = v ( Δ h ) h ( h 1 ) .
Moreover, Δ h K [ X ] { 0 } and v restricts to ord X a on F, so v ( Δ h ) deg Δ h . Hence
2 ( D A A + D A B + D B B ) deg Δ h h ( h 1 ) ( d 1 ) h ( h 1 ) .
where the first step follows from the preceding identity and the bound v ( Δ h ) deg Δ h , the second step follows from the hypothesis deg Δ h d h ( h 1 ) .
Therefore
D A A + D A B + D B B B 0 : = ( d 1 ) h ( h 1 ) 2 .
For an A B -pair the two valuations are unequal, so its difference has valuation u and D A B = r b u . Every B B -difference has valuation at least u , so D B B b 2 u . Therefore
s A I s = 2 D A A + D A B 2 B 0 + ( r b + 2 b 2 ) u .
Summing the two derivative bounds over s A yields
( r ( T 2 h + 2 ) r b b ( b 1 ) ) u 2 B 0 .
Equivalently,
( r u ) ( T E h , r ) 2 B 0 , E h , r : = 2 h 2 + b + b ( b 1 ) r .
Since b h 1 and r 1 ,
E h , r 2 h 2 + b 2 h 2 1 .
In particular, T E h , r T ( h 2 1 ) > 0 . Using T d κ 2 d h 2 and r u 1 , the left-hand side is at least
T ( h 2 1 ) ( d 1 ) h 2 + 1 > ( d 1 ) h ( h 1 ) = 2 B 0 ,
where the first step follows from the bound T d h 2 , the second step follows from d , h 1 , and the third step follows from the definition of B 0 .
Thus we get a contradiction. Hence every v ( y s ) 0 , which is precisely v ( α s β ) 1 . □

6. Quadratic Soundness Criterion

Lemma 4
(Quadratic soundness criterion). In the binary affine construction of Section 3, suppose x is a binary solution, and let
P τ : = { p P : | S τ ( p ) | κ } .
If, for every table type τ,
T 2 κ 1 , T d κ 2 , T + 1 > 9 κ , d T < | P τ | ,
and
| P τ | d κ ( κ 1 ) > d ( T + κ 2 ) ,
then the original formula is satisfiable.
Proof. 
Fix a table type τ and apply Lemma 2 with P : = P τ and S ( p ) : = S τ ( p ) . The Reed–Solomon constraint and the definition of μ (see Definition 5) give deg μ τ , j d j and
μ τ , j ( p ) = w S τ ( p ) w j ( p P τ , 0 j T ) .
By the definition of P τ , every retained support has size at most κ . The remaining hypotheses of Lemma 2 are precisely T 2 κ 1 , d T < | P τ | , and | P τ | d κ ( κ 1 ) > d ( T + κ 2 ) . Consequently, for each τ there is a monic separable polynomial G τ K ( X ) [ Y ] of degree
h τ : = max p P τ | S τ ( p ) | κ
with distinct root set R τ : = { α τ , 1 , , α τ , h τ } such that
μ τ , j ( X ) = α R τ α j ( 0 j T ) .
The lemma also shows that the squared Vandermonde discriminant
Δ τ ( X ) : = 1 r < s h τ ( α τ , s α τ , r ) 2
lies in K [ X ] { 0 } and satisfies deg Δ τ d h τ ( h τ 1 ) .
Work inside a fixed algebraic closure of K ( X ) . The compositum of the finitely many finite separable splitting fields of the G τ is again a finite separable extension. Let E / K ( X ) be this compositum, so all root sets R τ lie in one field. The moment identities and discriminant bounds above remain valid in E. Notice also that restricting from P to P τ does not redefine the moment polynomials; it only selects the evaluation points used in the reconstruction argument.
For every p P , Eq. (1), the convention w 0 = 1 , and the definition of μ (see Definition 5) give μ 0 , 0 ( p ) = 1 . Since μ 0 , 0 has degree zero, μ 0 , 0 = 1 as a polynomial. The zeroth root-moment identity therefore gives 1 = | R 0 | · 1 in characteristic two. Thus | R 0 | is odd, and in particular R 0 is nonempty.
For each variable i, fix once and for all an extension v i of ord X a i to E; such an extension exists by the extension theorem for valuations. Fix a clause subtype τ = ( C , β ) and i I C , and put i : = X a i . For every p P and 0 j T , Definition 6 and the binomial theorem give
i ( p ) j η τ , i , j ( p ) = w x τ , p , w ( w β i ) j = r = 0 j j r ( β i ) j r μ τ , r ( p ) .
where the first step follows from definition of η (see Definition 6), the identity i ( p ) = p a i , and the fact that p a i , the second step follows from the binomial theorem and the definition of μ (see Definition 5).
The polynomial on the left has degree at most j + ( d 1 ) j = d j , and the polynomial on the right also has degree at most d j . Moreover, d j d T < | P τ | | P | . Since they agree at every point of P, uniqueness of Reed–Solomon interpolation gives
i j η τ , i , j ( X ) = r = 0 j j r ( β i ) j r μ τ , r ( X ) ( 0 j T ) .
We may now apply Lemma 3 with a = a i , G = G τ , h = h τ , and β = β i . Lemma 2 supplies the root-moment and discriminant hypotheses, the preceding identity supplies the shifted moments, and the present lemma assumes T d κ 2 . Hence
v i ( α β i ) 1 ( α R ( C , β ) ) .
It remains to match roots across the clause tables. Fix a clause C. For every p P , Eq. (2) and the definition of μ (see Definition 5) give
μ 0 , j ( p ) = w x 0 , p , w w j = β B C w x ( C , β ) , p , w w j = β B C μ ( C , β ) , j ( p ) .
Both sides have degree at most d j d T < | P 0 | | P | , so interpolation yields the polynomial identity
μ 0 , j ( X ) = β B C μ ( C , β ) , j ( X ) ( 0 j T ) .
Substitute the root-moment identities. In characteristic two, moving the two sides together amounts to adding them, and every root of even total multiplicity cancels. Let W C be the set of distinct roots occurring an odd number of times among R 0 and the R ( C , β ) . Then
α W C α j = 0 ( 0 j T ) .
Put q C : = | W C | . Since each root set has at most κ elements and 1 + | B C | 9 ,
q C ( 1 + | B C | ) κ 9 κ < T + 1 .
If q C > 0 , the equations for 0 j < q C say that the Vandermonde matrix on the distinct elements of W C , applied to the all-ones vector, is zero. This matrix is invertible, whereas the all-ones vector is nonzero, a contradiction. Thus W C is empty.
Every α R 0 occurs once in R 0 . Since its total multiplicity among all these root sets is even, it must occur in R ( C , β ) for at least one β B C . Choose α R 0 , and for every clause C choose one such satisfying local assignment β ( C ) .
If variable i occurs in clauses C and C , then Eq. (3), using the extension v i fixed above, gives
v i ( α β ( C ) i ) 1 , v i ( α β ( C ) i ) 1 .
If the two bits differed, then β ( C ) i β ( C ) i = 1 . The ultrametric inequality would give
v i ( 1 ) = v i ( ( α β ( C ) i ) ( α β ( C ) i ) ) min { v i ( α β ( C ) i ) , v i ( α β ( C ) i ) } 1 ,
where the first step follows from β ( C ) i β ( C ) i = 1 , the second step follows from the ultrametric inequality, and the third step follows from the two preceding valuation bounds.
This contradicts v i ( 1 ) = 0 . The chosen local assignments are therefore consistent on every shared variable. They define a global Boolean assignment, and this assignment satisfies every clause because β ( C ) B C for each C. □

7. Hardness of Binary Nearest Codeword and Syndrome Decoding

Theorem 3
(Main result, formal version of Theorem 2). Fix an integer k 2 and define
δ k : = k 1 4 k + 5 .
Binary nearest codeword (Definition 3) and binary syndrome decoding (Definition 4) are NP-hard to approximate within n δ k under deterministic polynomial-time many-one reductions, where n is the binary block length.
Remark 1.
The parameter k is fixed independently of the input. The exponents δ k increase to 1 / 4 . Equivalently, for every fixed ε > 0 , both problems are NP-hard to approximate within n 1 / 4 ε . The endpoint n 1 / 4 is not obtained by any finite choice of k.
Proof. 
Use the binary affine construction of Section 3. Recall that N 100 , d N , | Θ | 9 N , and R N q . Put
A : = 2 2 ( 4 k + 5 ) , κ : = A N k , T : = N κ 2 ,
and let q be the least power of two satisfying
q 8 N 2 κ 2 .
The minimality of q gives q < 16 N 2 κ 2 . Since | P | < q ,
M = | Θ | | P | q < 9 N q 2 < 2304 A 4 N 4 k + 5 .
where the first step follows from the definition of M, the second step follows from | Θ | 9 N and | P | < q , the third step follows from q < 16 N 2 κ 2 and κ = A N k .
Set δ : = ( k 1 ) / ( 4 k + 5 ) and suppose that the affine system has a binary solution x of weight at most 4 M δ R . Fix a table type τ . Since every p P τ satisfies | S τ ( p ) | > κ ,
κ | P P τ | p P | S τ ( p ) | wt ( x ) 4 M δ R .
where the first step follows from the definition of P τ , the second step follows from the definition of Hamming weight, the third step follows from the assumed bound wt ( x ) 4 M δ R .
Using the bounds on M and R gives
| P P τ | < 4 · 2304 δ A 4 δ 1 N δ ( 4 k + 5 ) + 1 k q .
Here the exponent of N is zero, while
4 δ 1 = 9 4 k + 5 , A 4 δ 1 = 2 18 .
Moreover, δ < 1 / 4 and 2304 1 / 4 < 7 , so
4 · 2304 δ A 4 δ 1 < 28 · 2 18 < 1 128 .
Consequently,
| P P τ | < q 128 .
Because m , d N , κ 1 , N 100 , and q 8 N 2 κ 2 ,
m + d κ ( κ 1 ) N + N κ 2 2 N κ 2 < 2 5 N 2 κ 2 q 20 .
where the first step follows from m , d N and κ ( κ 1 ) κ 2 , the second step follows from κ 1 , the third step follows from N 100 and q 8 N 2 κ 2 .
Since | P | = q m , it follows that
| P τ | d κ ( κ 1 ) = q m | P P τ | d κ ( κ 1 ) > q q 20 q 128 > 9 q 10 .
where the first step follows from | P τ | = | P | | P P τ | and | P | = q m , the second step follows from the two preceding bounds, the third step follows from 1 1 / 20 1 / 128 > 9 / 10 .
On the other hand,
d ( T + κ 2 ) = d ( N + 1 ) κ 2 < 2 N 2 κ 2 q 4 .
where the first step follows from T = N κ 2 , the second step follows from d N and N 100 , the third step follows from q 8 N 2 κ 2 .
Thus | P τ | d κ ( κ 1 ) > d ( T + κ 2 ) . We also have
d T N 2 κ 2 q 8 < 9 q 10 < | P τ | ,
where the first step follows from d N and T = N κ 2 , the second step follows from q 8 N 2 κ 2 , the third step follows from 1 / 8 < 9 / 10 , the preceding bound | P τ | d κ ( κ 1 ) > 9 q / 10 , and d κ ( κ 1 ) 0 . Moreover,
T = N κ 2 d κ 2 ,
where the equality is the definition of T, and the inequality follows from d N and κ 2 0 .
Finally, N 100 and κ 1 imply T 2 κ 1 and T + 1 > 9 κ . We have verified every hypothesis of Lemma 4. Hence any solution of weight at most 4 M δ R yields a satisfying assignment.
Taking the contrapositive, if the formula is unsatisfiable and H x = b is consistent, then
W ( H , b ) : = min { wt ( x ) : H x = b } > 4 M δ R .
Completeness, by Lemma 1, gives a solution of weight at most R whenever the formula is satisfiable.
We first produce the nearest-codeword instance in the consistent case. Gaussian elimination computes a solution u F 2 M of H u = b and a generator matrix for the binary linear code C : = ker F 2 H . The solution set of H x = b is the affine coset u + C . Therefore
dist H ( u , C ) = min c C wt ( u + c ) = min { wt ( x ) : H x = b } = W ( H , b ) .
where the first step follows from the definition of Hamming distance and the identity u c = u + c over F 2 , the second step follows from the fact that the solution set of H x = b is u + C , the third step follows from the definition of W ( H , b ) .
Output C , target u, and radius R. Its block length is n : = M . Satisfiability gives distance at most R, whereas unsatisfiability gives distance greater than 4 n δ R > n δ R .
For binary syndrome decoding in the same consistent branch, output the original binary matrix H, syndrome b, and radius R. Its optimum is exactly W ( H , b ) and its block length is again n = M . Thus satisfiability gives optimum at most R, while unsatisfiability gives optimum greater than 4 n δ R > n δ R .
It remains to specify the exceptional branches. If preprocessing finds an empty clause, the formula is unsatisfiable. If the constructed system H x = b is inconsistent, the formula is also unsatisfiable, because a satisfiable formula produces a solution by Lemma 1. In either case, output the fixed code { 00 } , target 11, and radius 1. Its block length is 2 and its distance is 2 > 2 δ . For syndrome decoding, output H : = I 2 , b : = 11 , and radius 1; its optimum is also 2 > 2 δ .
If no clauses remain after preprocessing, the formula is satisfiable. Output the code { 00 } with target 00 and radius 1, or the syndrome instance H : = I 2 , b : = 00 , with radius 1. Both instances have optimum zero. Hence every exceptional branch satisfies the required promise.
For completeness, we verify the running time. Since A depends only on the fixed integer k,
q = O k ( N 2 k + 2 ) , T = O k ( N 2 k + 1 ) , M = O k ( N 4 k + 5 ) , [ K : F 2 ] = O k ( log N ) .
A deterministic representation of F q can be found in time polynomial in q, and hence polynomial in N for fixed k. The field elements, anchors, variables, moment constraints, and their binary expansions can all be enumerated in polynomial time because q and T are polynomial in N. Gaussian elimination determines consistency, computes u, and constructs a generator matrix for ker H in polynomial time.
The reduction therefore runs in deterministic polynomial time for fixed k. An n δ -approximation algorithm for either problem would distinguish the two cases by comparing its returned cost with n δ R . Since δ = δ k , this proves the theorem. □

8. Hardness of Euclidean GapCVP

Theorem 4
(Euclidean closest vector, formal version of Theorem 1). Fix an integer k 2 and put η k : = ( k 1 ) / ( 8 k + 10 ) . There is a deterministic polynomial-time mapping that assigns to each 3SAT formula φ a nonsingular matrix B Z n × n , a target t Z n , and a radius r Q > 0 such that
φ satisfiable dist 2 ( t , L ( B ) ) r , φ unsatisfiable dist 2 ( t , L ( B ) ) > n η k r .
Consequently, GapCVP n η k ( 2 ) is NP-hard under deterministic polynomial-time many-one reductions.
Proof. 
Put
δ k : = k 1 4 k + 5 = 2 η k .
We use the binary affine system constructed in the proof of Theorem 3. Before its conversion to nearest codeword, that proof deterministically produces a binary matrix H F 2 ρ × M , a syndrome b F 2 ρ , and an integer R 1 , where ρ is the number of binary constraints. For a consistent system, write
W ( H , b ) : = min { wt ( x ) : x F 2 M , H x = b } .
The completeness and soundness conclusions proved there are
φ satisfiable H x = b is consistent and W ( H , b ) R , φ unsatisfiable and H x = b consistent W ( H , b ) > 4 M δ k R .
We convert every consistent affine system to a full-rank integer lattice without changing the dimension.
Let C : = ker F 2 H and compute a solution u F 2 M of H u = b . Gaussian elimination computes u and a basis for C. Put h : = dim C . Choosing h pivot coordinates and moving them to the first h positions transforms a generator matrix of C into systematic form [ I h A ] for some A F 2 h × ( M h ) . This coordinate permutation preserves Hamming weight. The permuted code is therefore
C : = { ( y , A T y ) : y F 2 h } .
All entries of A are henceforth represented by their lifts in { 0 , 1 } . Define
B : = I h 0 A T 2 I M h Z M × M .
We use the usual block-matrix conventions when h = 0 or h = M . The determinant of B is 2 M h , so B is nonsingular.
We next identify its lattice. The first h columns of B, reduced modulo 2, generate C , and the remaining columns reduce to zero. Moreover, 2 e j is a column of B for h < j M . If 1 i h and g i is the i-th column of B, then
2 e i = 2 g i j = 1 M h A i , j ( 2 e h + j ) .
Hence 2 Z M L ( B ) . Every column of B reduces modulo 2 to an element of C , so L ( B ) { z Z M : z mod 2 C } . For the reverse containment, let z Z M satisfy z mod 2 C . The first h columns reduce to a basis of C , so there is λ 0 L ( B ) with λ 0 mod 2 = z mod 2 . Then z λ 0 2 Z M L ( B ) , and hence z L ( B ) . Therefore
L ( B ) = { z Z M : z mod 2 C } .
Let t { 0 , 1 } M be the integer vector obtained by applying the same coordinate permutation to u. The affine coset t + C is the permuted solution set of H x = b .
For any λ L ( B ) , put x : = ( t λ ) mod 2 . Then x t + C , so x is the coordinate permutation of a solution to H x = b . Since the permutation preserves Hamming weight, wt ( x ) W ( H , b ) . Every nonzero coordinate of x comes from an odd integer coordinate of t λ , whose absolute value is at least one. Therefore
t λ 2 2 wt ( x ) W ( H , b ) .
Conversely, let x attain W ( H , b ) and let x be its coordinate permutation. Write x = t + c for some c C . Put λ : = t x . Then λ mod 2 = c C , so the lattice characterization above gives λ L ( B ) . Moreover, t λ = x , and hence
t λ 2 2 = x 2 2 = wt ( x ) = wt ( x ) = W ( H , b ) .
We have proved the exact identity
dist 2 ( t , L ( B ) ) 2 = W ( H , b ) .
Set r : = R . This is a positive integer and can be computed by deterministic integer binary search. Since R 1 ,
R r R + 1 2 R , r 2 4 R .
If φ is satisfiable, Eq. (4) gives
dist 2 ( t , L ( B ) ) = W ( H , b ) R r .
Suppose that φ is unsatisfiable and H x = b is consistent. If
dist 2 ( t , L ( B ) ) M η k r ,
then Eq. (4), the identity 2 η k = δ k , and r 2 4 R imply
W ( H , b ) M 2 η k r 2 4 M δ k R ,
contradicting soundness. Thus
dist 2 ( t , L ( B ) ) > M η k r .
The lattice rank is n : = M , so this is precisely the claimed NO threshold.
It remains to specify the exceptional branches. If preprocessing finds an empty clause, or if H x = b is inconsistent, output
B : = ( 2 ) , t : = ( 1 ) , r : = 1 2 .
This is a one-dimensional NO instance: its rank is n = 1 , so n η k r = 1 / 2 , whereas dist 2 ( 1 , 2 Z ) = 1 . A satisfiable formula never reaches the inconsistent branch by completeness. If no clauses remain after preprocessing, output
B : = ( 2 ) , t : = ( 0 ) , r : = 1 2 ,
which is a YES instance.
For fixed k, Theorem 3 constructs H, b, and R in deterministic polynomial time. Gaussian elimination, the coordinate permutation, construction of B, and integer square-root computation are also deterministic polynomial-time operations. The basis has dimension exactly M and entries in { 0 , 1 , 2 } , while t is binary. The bound R N q from the construction gives log r = O ( log R ) = O k ( log N ) , so r also has polynomial bit length. Hence the complete mapping has polynomial output size. A polynomial-time algorithm for GapCVP n η k ( 2 ) composed with this mapping would decide 3SAT in polynomial time, proving the stated NP-hardness. □
Remark 2.
The exponents η k increase to 1 / 8 . Equivalently, for every fixed ε > 0 , GapCVP n 1 / 8 ε ( 2 ) is NP-hard under deterministic polynomial-time many-one reductions. This improves the n 1 / 400 Euclidean closest-vector hardness factor established in Theorem 1 of the OpenAI report [1].

Acknowledgments

The AI tool used in preparing this paper is Codex 5.6 Sol. The author first provided the model with the OpenAI paper [1], from which it derived a finite-k inapproximability exponent of k 1 10 k + 5 for the binary nearest codeword problem, tending to 1 / 10 as k . With further efforts, the author figured out the bound can be improved to k 1 6 k + 5 , whose limit is 1 / 6 . After another level of deep discussion, the author and the AI together improved the bound to the current value 1 / 4 . The author also tried to improve the bound to 1 / 3 , but the AI found a counterexample to the proposed construction. All proofs in this paper have been carefully verified by the author.

References

  1. OpenAI. Ten Advances in Mathematics and Theoretical Computer Science. Technical report, 2026.
  2. Micciancio, D.; Goldwasser, S. Complexity of Lattice Problems: A Cryptographic Perspective; Vol. 671, The Springer International Series in Engineering and Computer Science, Springer, 2002. https://doi.org/10.1007/978-1-4615-0897-7. [CrossRef]
  3. van Emde Boas, P. Another NP-Complete Partition Problem and the Complexity of Computing Short Vectors in a Lattice. Technical Report MI-UvA-81-04, Mathematisch Instituut, University of Amsterdam, 1981. Technical Report MI-UvA-81-04.
  4. Arora, S.; Babai, L.; Stern, J.; Sweedyk, Z. The Hardness of Approximate Optima in Lattices, Codes, and Systems of Linear Equations. J. Comput. Syst. Sci. 1997, 54, 317–331. [Google Scholar] [CrossRef]
  5. Dinur, I.; Kindler, G.; Safra, S. Approximating CVP to within Almost-Polynomial Factors Is NP-Hard. In Proceedings of the Proceedings of the 39th Annual IEEE Symposium on Foundations of Computer Science, 1998, pp. 99–111. https://doi.org/10.1109/SFCS.1998.743433. 1998. [CrossRef]
  6. Dinur, I.; Kindler, G.; Raz, R.; Safra, S. Approximating CVP to Within Almost-Polynomial Factors Is NP-Hard. Combinatorica 2003, 23, 205–243. [Google Scholar] [CrossRef]
  7. Moshkovitz, D. The Projection Games Conjecture and the NP-Hardness of lnn-Approximating Set-Cover. Theory Comput. 2015, 11, 221–235. [Google Scholar] [CrossRef]
  8. Mukhopadhyay, P. The Projection Games Conjecture and the Hardness of Approximation of Super-SAT and Related Problems. J. Comput. Syst. Sci. 2022, 123, 186–201. [Google Scholar] [CrossRef]
  9. Impagliazzo, R.; Paturi, R. On the Complexity of k-SAT. J. Comput. Syst. Sci. 2001, 62, 367–375. [Google Scholar] [CrossRef]
  10. Aggarwal, D.; Gupta, R.; Morolia, A.; Zhang, C. Mind the Gap? Not for SVP Hardness Under ETH! In Proceedings of the 53rd International Colloquium on Automata, Languages, and Programming. Schloss Dagstuhl – Leibniz-Zentrum fuer Informatik, 2026, Vol. 374, Leibniz International Proceedings in Informatics, pp. 8:1–8:24. https://doi.org/10.4230/LIPIcs.ICALP.2026.8. Vol. 374. [CrossRef]
  11. Huang, J.A.; Ko, Y.K.; Wang, C. On the (Classical and Quantum) Fine-Grained Complexity of Approximate CVP and Max-Cut. In Proceedings of the 53rd International Colloquium on Automata, Languages, and Programming. Schloss Dagstuhl – Leibniz-Zentrum fuer Informatik, 2026, Vol. 374, Leibniz International Proceedings in Informatics, pp. 111:1–111:17. https://doi.org/10.4230/LIPIcs.ICALP.2026.111. Vol. 374. [CrossRef]
  12. Goldreich, O.; Goldwasser, S. On the Limits of Nonapproximability of Lattice Problems. J. Comput. Syst. Sci. 2000, 60, 540–563. [Google Scholar] [CrossRef]
  13. Aharonov, D.; Regev, O. Lattice Problems in NP ∩ coNP. J. ACM 2005, 52, 749–765. [Google Scholar] [CrossRef]
  14. Berlekamp, E.R.; McEliece, R.J.; Tilborg, H.C.A.v. On the Inherent Intractability of Certain Coding Problems. IEEE Trans. Inf. Theory 1978, 24, 384–386. [Google Scholar] [CrossRef]
  15. Arora, S. Probabilistic Checking of Proofs and Hardness of Approximation Problems. PhD thesis, University of California, Berkeley, 1994. Revised version available as Princeton technical report CS-TR-476-94. Princeton technical report CS-TR-476-94.
  16. Alekhnovich, M.; Khot, S.A.; Kindler, G.; Vishnoi, N.K. Hardness of Approximating the Closest Vector Problem with Pre-Processing. In Proceedings of the Proceedings of the 46th Annual IEEE Symposium on Foundations of Computer Science, 2005, pp. 216–225. https://doi.org/10.1109/SFCS.2005.40. 2005. [CrossRef]
  17. Khot, S.A.; Popat, P.; Vishnoi, N.K. Almost Polynomial Factor Hardness for Closest Vector Problem with Preprocessing. SIAM J. Comput. 2014, 43, 1184–1205. [Google Scholar] [CrossRef]
  18. Bhattiprolu, V.; Guruswami, V.; Ren, X. PCP-Free APX-Hardness of Nearest Codeword and Minimum Distance. Electron. Colloq. Comput. Complex. 2025, TR25-029. [Google Scholar]
  19. Bhattiprolu, V.; Guruswami, V.; Lee, E.; Ren, X. Inapproximability of Finding Sparse Vectors in Codes, Subspaces, and Lattices. In Proceedings of the Proceedings of the 66th Annual IEEE Symposium on Foundations of Computer Science, 2025, pp. 1295–1303. https://doi.org/10.1109/FOCS63196.2025.00068.
  20. Bennett, H.; Peikert, C. Hardness of the (Approximate) Shortest Vector Problem: A Simple Proof via Reed–Solomon Codes. In Proceedings of the Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques, 2023, Vol. 275, Leibniz International Proceedings in Informatics, pp. 37:1–37:20. https://doi.org/10.4230/LIPIcs.APPROX/RANDOM.2023.37. Vol. 275. [CrossRef]
  21. Reed, I.S.; Solomon, G. Polynomial Codes over Certain Finite Fields. J. Soc. Ind. Appl. Math. 1960, 8, 300–304. [Google Scholar] [CrossRef]
  22. Bitansky, N.; Harsha, P.; Ishai, Y.; Rothblum, R.D.; Wu, D.J. Dot-Product Proofs and Their Applications. In Proceedings of the Proceedings of the 65th Annual IEEE Symposium on Foundations of Computer Science, 2024, pp. 806–825. https://doi.org/10.1109/FOCS61266.2024.00057. 2024. [CrossRef]
  23. Alon, N.; Panigrahy, R.; Yekhanin, S. Deterministic Approximation Algorithms for the Nearest Codeword Problem. In Proceedings of the Algebraic Methods in Computational Complexity, 2010, Vol. 9421, Dagstuhl Seminar Proceedings, pp. 1–13. https://doi.org/10.4230/DagSemProc.09421.4.
  24. Berman, P.; Karpinski, M. Approximating Minimum Unsatisfiability of Linear Equations. In Proceedings of the Proceedings of the Thirteenth Annual ACM-SIAM Symposium on Discrete Algorithms. Society for Industrial and Applied Mathematics, 2002, pp. 514–516. 2002.
  25. Babai, L. On Lovász’ Lattice Reduction and the Nearest Lattice Point Problem. Combinatorica 1986, 6, 1–13. [Google Scholar] [CrossRef]
  26. Schnorr, C.P. A Hierarchy of Polynomial Time Lattice Basis Reduction Algorithms. Theor. Comput. Sci. 1987, 53, 201–224. [Google Scholar] [CrossRef]
  27. Ajtai, M.; Kumar, R.; Sivakumar, D. A Sieve Algorithm for the Shortest Lattice Vector Problem. In Proceedings of the Proceedings of the 33rd Annual ACM Symposium on Theory of Computing, 2001, pp. 266–275. https://doi.org/10.1145/380752.380857. 2001. [CrossRef]
  28. Micciancio, D.; Voulgaris, P. A Deterministic Single Exponential Time Algorithm for Most Lattice Problems Based on Voronoi Cell Computations. SIAM J. Comput. 2013, 42, 1364–1391. [Google Scholar] [CrossRef]
  29. Iohvidov, I.S. Hankel and Toeplitz Matrices and Forms: Algebraic Theory; Birkhäuser: Boston, 1982. Translated by G. Philip A. Thijsse.
  30. Blyth, T.S.; Robertson, E.F. Basic Linear Algebra, 2 ed.; Springer Undergraduate Mathematics Series, Springer, 2002. https://doi.org/10.1007/978-1-4471-0681-4.
  31. Kedlaya, K.S. p-adic Differential Equations; Vol. 125, Cambridge Studies in Advanced Mathematics, Cambridge University Press, 2010. https://doi.org/10.1017/CBO9780511750922. Vol. 125. [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.