Manuscript Offprint
arXiv:2610.38664Upper Bounds for CSP Non-redundancy via Locally Decodable Codes
Abstract
In the study of constraint satisfaction problems (CSPs), the non-redundancy of a relation measures the maximum number of clauses in a CSP instance which can be logically independent. In the last few years, CSP non-redundancy has found a number of applications including in query complexity, sparsification, kernelization and streaming.
In this paper, we present a novel technique for upper-bounding the non-redundancy of some relations using locally decodable codes (LDCs) and locally correctable codes (LCCs). More precisely, known limitations on the structure of 2-query LDCs and LCCs can be translated into limitations on the size of certain non-redundant CSP instances. This technique builds on a technique used by Brakensiek and Guruswami [STOC 2025] to bound non-redundancy via techniques from matching vector codes.
Using LDCs and LCCs, we give improved upper bounds on non-redundancy of the BCK predicate pioneered by Bessiere, Carbonnel, and Katsirelos [AAAI 2020] as well as its well-studied Boolean variant. We also give the first example of a Boolean predicate whose non-redundancy is provably not of the form for some positive integer .
*Department of Electrical Engineering and Computer Sciences, University of California, Berkeley 94720. Contact: josh.brakensiek@berkeley.edu †Department of Mathematics, California Institute of Technology, Pasadena, CA 91125. Email: dconlon@caltech.edu ‡Simons Institute for the Theory of Computing, and the Departments of EECS and Mathematics, University of California, Berkeley 94720. Contact: venkatg@berkeley.edu §School of Mathematics, Georgia Institute of Technology, Atlanta, GA 30332. Email: xhe399@gatech.edu ¶School of Mathematics, Georgia Institute of Technology, Atlanta, GA 30332. Email: jnie47@gatech.edu ||Department of Mathematics, Massachusetts Institute of Technology, Cambridge, MA 02139. Email: mayars@mit.edu **Department of Mathematics, Princeton University, Princeton, NJ 08540. Email: hansonyu@princeton.edu
1 Introduction
An emerging field in the study of constraint satisfaction problems (CSPs) is systematic understanding of the non-redundancy of various defining relations. First coined by Bessiere, Carbonnel, and Katsirelos [BCK20] to capture the VC-dimension of a query complexity problem for CSPs, the notion has since found much success in characterizing other quantities related to CSPs such as their kernelization [Car22, LW20, CJP20], sparsification [KPS24, KPS25, BG25], and streaming complexity [SV26a]. As such, there has been much motivation recently to study CSP non-redundancy as a standalone topic of interest [Car22, KPS25, BG25, BGJ 25, SV26b].
For a predicate of arity over (finite) domain , its non-redundancy on variables, denoted by , is the maximal number of -clauses one can impose on variables such that each clause is “independently falsifiable.” That is, for each clause in the instance, there is an assignment which satisfies every clause except that one. As a canonical example, for the equality predicate , to show that an instance (graph) is non-redundant, one must identify a cut which separates each clause (edge) a non-redundant. As such, non-redundant instances of are precisely forests, so .
As another example, consider the predicate . Here it turns out the complete (i.e., all pairs) instance is non-redundant as one can falsify any clause by setting its two variables to 0 while satisfying all other clauses by setting every other variables to be 1. Thus, . The work of Bessiere, Carbonnel, and Katsirelos [BCK20] (see also [FK17, BŻ20]) completely classified the non-redundant of all binary () CSPs of any domain. In particular, all such CSPs either have linear non-redundancy––or quadratic non-redundancy–.
Despite there being such a simple classification for arity 2 predicates, much less is known even for arity . The case is fully classified in the Boolean setting, as always being linear, quadratic or cubic [CJP20, KPS25], but for non-Boolean domains much more exotic behavior can occur. For example, Brakensiek and Guruswami [BG25] identified a predicate for which . That is, the dependence on in a non-redundancy function can be a non-integral polynomial. Furthermore,[BGJ25] identifies other arity 3 CSPs whose non-redundancy precisely corresponds to (unknown) tradeoffs between girth and edge-density in graphs (e.g., [FS13]). Other CSP predicates have been identified which closely relate to other landmark open problems in extremal combinatorics [Car22, BGP26]. As such, the study of CSP non-redundancy can be viewed as an important emergent test-bed for new techniques in logic and extremal combinatorics.
A key open question in the study of CSP non-redundancy is to understand the following predicate identified by Bessiere, Carbonnel, and Katsirelos [BCK20] (first called the BCK predicate in [BG25]).
That is, BCK consists of all permutations of except for the identify permutation. By relating the structure of BCK to the problem [RS78, Fox11], [BCK20] showed that . Such bounds were improved by [BG25] and [BGJ25] to and , respectively. Much effort has been put into trying to find a lower bound for better than the trivial one of , but no such attempt has succeeded (e.g., [BGJ26]).
We ignore the “trivial” predicates where or .
Among Boolean non-redundancy problems, the frontier open question is a Boolean variant of BCK, sometimes called BoolBCK in the literature, corresponding to all permutation matrices except the identity matrix:
This predicate (or close variants) has appeared in a large number of works [CJP20, LW20, KPS25, BG25], but the best known bounds on the non-redundancy of BoolBCK are
As a first result, we give a new upper bound on the non-redundancy of BCK, improving over the previous best bound of [BGJ 25].
Theorem 1.1. NRD(BCK, n) = O(n^{4/3}).
As our second result, we give a new upper bound on the non-redundancy of BoolBCK, the first to beat the barrier [CJP20, LW20, KPS25, BG25].
Theorem 1.2. NRD(BoolBCK, n) = O(n^{3/2} \log^{5/2} n).
For both BCK and BoolBCK, we cannot improve on the trivial lower bound of . However, for some closely related predicates first considered by [BGJ 26], we can apply our new upper-bound techniques to predicates with an existing lower bound. Namely, consider
Roughly speaking, these predicates are derived by deleting a coordinate (a.k.a. puncturing) BoolBCK and then applying a product trick introduced in [BGJ 25]. For both of these predicates, by utilizing a result of [BGJ 26], we can show that ; see Theorem 5.5 for details. Here, we complement these lower bounds with non-trivial upper bounds.
Theorem 1.3. and .
In particular, and are the first examples of Boolean predicates whose non-redundancy has an asymptotically non-integral exponent. This supplements existing results on non-Boolean domains by [BG25, BGJ25] as well as a result by Brakensiek, Guruswami, and Putterman [BGP26] which gives an example of a Boolean predicate (of arity 4) for which .
For succinctness, we denote long tuples as strings without commas or parentheses.
1.2 Our Techniques
We now give a brief overview of the primary technical ideas behind our main results and how they compare to prior work. To begin, we first discuss how Brakensiek and Guruswami [BG25] proved that NRD(BCK, ). Consider the largest possible non-redundant instance of BCK = {021, 102, 120, 201, 210} on variables, which we number as . Concretely, this means there is a collection of edges such that for every hyperedge , there is a witness map such the the following criteria hold.
(1) For every , we have that .
(2) .
In fact, by employing a trick known as conditional non-redundancy, one can assume (essentially) without loss of generality that , the identity permutation. We also assume without loss of generality (up to a constant factor) that is a tripartite hypergraph. That is, there is a partition of such that .
Given this family of solutions , consider an matrix, where each column is for some . We then label the rows of this matrix as . A crucial observation by Brakensiek and Guruswami is that these rows could be interpreted as linear algebraic objects by embedding them in a finite vector space via maps such that the row becomes . Importantly, this can be done in such a way such that for any hyperedge , we have that . However, by virtue of properties (1) and (2) above, for any hyperedge , the triple of vectors looks sufficiently different from any other triples of vectors (coming from some hyperedge). In particular, for any one can find a linear map such that but for all .
Such a combination of linear and combinatorial constraints is highly reminiscent of matching vector codes [Yek08, Rag07, Gop09, Efr12, DGY11]. By adapting techniques from the matching vector code literature, the authors of [BG25] managed to bound the size of by using the dimension of the space spanned by the vectors . In particular, by exploiting a certain cubic polynomial representing BCK, the authors get an upper bound of , which is sufficient to get the desired bound when . In the regime where , the authors prove using ad hoc combinatorial methods a bound of (essentially) , which when balanced with gets a desired bound of .
The LDC/LCC Perspective. The first conceptual contribution is that much of the work done by Brakensiek and Guruswami can be streamlined using the theory of locally decodable codes (LDCs) and locally correctable codes (LCCs). More precisely, let be the matrix whose rows are , and let be the linear space (a.k.a., linear code) spanned by the columns of —that is, is the generator matrix of . Now, the combinatorial properties of the vectors observed earlier become much more transparently into local correctability of the code . More precisely, the condition before that now says that for any codeword , we have that . In particular, if the symbol were erased, it could be recovered from the values for and . As such, is precisely a locally correctable code!
To complete the analysis of NRD(BCK, ) from this perspective, we need to understand what fraction of errors can reliably decode from, which is based on the minimum degree of (but can be turned into average degree with a standard peeling argument). Using established bounds on the structure of LDCs (see Lemma 2.9), we can thus relate the number of edge to the dimension of the code , allowing one to remove the hoc arguments from [BG25] while still recovering their bound.
The LDC/LCC perspective however gives us additional modularity which lets us improve the roughly bound of [BG25] to a significantly better bound of in Theorem 1.1. This is done by relaxing the requirement that each variable of the original instance corresponds to a single coordinate of the corresponding code . Instead, we give a more clever encoding where each variable of the original instance becomes three coordinates in the corresponding code. Then, the cubic polynomial previously considered by [BG25] can be replaced by a quadratic polynomial. Furthermore, by embedding into the infinite field rather than a finite field, sharp bounds on LCCs (see Lemma 2.11) can be used to obtain a crisp bound of .
Boolean Instances. Another way we distinguish our work from [BG25] is we are able to extend our technique to Boolean CSPs, particularly BoolBCK. By analyzing a certain quadratic polynomial representing BoolBCK, previous works have been able to show that NRD(BoolBCK, [CJP20, KPS25, BG25], but none have been able to surpass that until our Theorem 1.2. The primary reason is that BoolBCK is a predicate of arity 9, making its behavior much more difficult to control.
Recall that BoolBCK corresponds to the five non-identity permutation matrices. By doing a combinatorial transformation similar to the case of BCK, it suffices to understand 9-uniform hypergraphs such that there exists a 9-partition of the vertices such that . Furthermore, for every hyperedge , there is a witness map such that is the identity matrix but for all , we have that is a non-identity permutation matrix. By applying tricks similar to the proof of Theorem 1.1, we get a code corresponding to our witness maps. The key difference now is that an edge no longer corresponds to a single local constraint in the code . Rather, if we view each edge as a matrix, each row and column of (e.g., is a column) corresponds to a local constraint in . This makes counting the number of local constraints much more technical as many edges can share the same row or column.
Analyzing the structure of this code uses a variety of algebraic and combinatorial techniques. On the algebraic side, by invoking Lemma 2.9, we can bound in terms of the dimension of and the frequencies certain rows and columns appear. Furthermore, by using a certain quadratic representation of BoolBCK, we can also bound that . On the combinatorial side, if one restricts to studying the structure of induced matrices, then some surprising tree-like structure emerges (see Eq. (4), allowing for the frequencies of the rows and columns to be related back to . Combining these bounds yield Theorem 1.2.
The proof of Theorem 1.3 is more technical than the proof of Theorem 1.2 but the same primary techniques are used. As a preprocessing step, techniques in [BGJ25, BGP26] are used to transform NRD() and NRD() into questions about colorings of 8-uniform hypergraphs. Roughly speaking, these hypergraphs closely correspond to the 9-uniform hypergraphs considered in the proof of Theorem 1.2, except one of the 9 partitions of the 9-partite hypergraph is deleted— corresponding to either a “diagonal” or “off-diagonal” entry being erased in the corresponding permutation matrix. Once in this form, the techniques used to prove Theorem 1.2 can largely be adapted, except for the fact that the missing partition greatly reduced the number of linear equations we have. We show that the remaining equations can largely “pick up the slack,” but there is some loss is incurred in making such adjustments. As a result, we get a bound with asymptotics closer to and (which translates to a bound of roughly and in Theorem 1.3) rather than .
AI Usage Disclosure. ChatGPT 5.5 Pro was used in the early stage of the project, although it did not lead to any progress. It was used later to quickly summarize ideas of the authors, during which it discovered a simplification that led to the part titled “Forbidding cycles” in the proofs of Lemma 4.1 and Lemma 5.1. All text in this paper was written by the authors.
Acknowledgments. The authors all thank the hospitality of the American Institute of Mathematics in Pasadena, CA, where this collaboration originated. This project emerged as an inter-SQuaRE collaboration between the “Hypergraph Ramsey and Turán Theory” SQuaRE and the “Relaxations for promise CSPs” SQuaRE.
We thank Zeev Dvir for suggesting the use of LCCs over a field of characteristic zero to shave a polylog factor in Theorem 1.1. JB and VG thank Aaron Putterman for valuable discussions and encouragement.
JB and VG are supported in part by a Simons Investigator award and NSF grant CCF-2211972. JB is also supported in part by NSF grant DMS-2503280. DC is supported by NSF Grant DMS-2348859. HY is supported in part by a Jane Street Graduate Research Fellowship. MS was supported in part by NSF Grant DMS-2424441.
2 Preliminaries
2.1 Notation, CSPs, and Non-redundancy
We will use to denote . A hypergraph is linear if no two edges share more than one vertex. A hypergraph is -uniform if every hyperedge has exactly vertices. Such an -uniform hypergraph is further -partite if there is a partition of the vertex set such that every hyperedge contains exactly one vertex from each for all .
We define a relation (or predicate) to be a subset of , where is the arity of the predicate and is a finite domain. We say that is non-trivial if is neither empty nor itself.
Definition 2.1. Given a predicate , we define an instance of CSP to be a (directed) -uniform hypergraph with . We call each vertex a variable and each edge a clause or constraint. We define an assignment to this instance to be a map . We say that a clause is -satisfied (or just satisfied) if . Otherwise, we say that the clause is -unsatisfied.
Definition 2.2. Fix a non-trivial predicate . Given an instance of CSP, we say that is non-redundant if for every , there exists a witness assignment such that does not satisfy but satisfies every . We let denote the maximum number of edges in any non-redundant instance on variables.
We also define conditional non-redundancy as coined by [BG25], taking inspiration from [BCK20]. We define a promise relation to be a pair of predicates of the same arity and domain for which .
Definition 2.3. We say that an -uniform hypergraph is a non-redundant instance of if for all , there exists a witness assignment satisfying the following properties: (1) every is -satisfied by , (2) every is -satisfied by , and (3) is not -satisfied by . We let denote the maximum size of a non-redundant instance on variables subject to these constraints.
Observe that . We now list a few results in the literature on bounding the non-redundancy of (conditional) predicates. The first is a triangle inequality due to [BG25].
Proposition 2.4 (Proposition 7.3 of [BG25]). For any predicates , we have that
In particular, in the special case when , we have that
Second, we describe how any conditional predicate can be mapped to a non-conditional predicate while changing the non-redundancy in a controlled manner. This technique was introduced in [BGJ+25] but here we use a more general formulation due to [BGP26].
Proposition 2.5 (Adapted from [BGP26]). Assume . Consider any . Pick distinct and let . Then
Remark 2.6. Technically, [BGP26] only prove the result for , but the same proof goes through nearly verbatim for any arity .
2.2 Locally Decodable and Locally Correctable Codes
In this paper, the locally decodable codes and locally correctable codes we construct are going to take a particularly simple form. We will thus restrict our attention to those codes. For a more detailed introduction to general locally decodable and correctable codes, see [Yek12, Gop18].
Definition 2.7. A simple 2-query linear over a field with error , block length and message length consists of the following data.
-
Vectors with spanning .
-
For each , a matching on of size at least .
Those data must satisfy the condition that is a nonzero multiple of for every and .
We remark that usually for 2-query linear LDCs, we just require . However, any such code can be made simple with a small loss as shown by Dvir and Shpilka [DS05].
We also remark that given the data in Definition 2.7, the actual LDC is defined by the encoding map with for all . Here, is the invertible -by- matrix so that is the -th coordinate vector in for all . Indeed, for any and , suppose that for some . Then for any , we have . This shows that to recover the -th bit of , knowing the -th position and the -th position of suffices. Although the encoding-map perspective is closer to the usual notion of LDC, we choose to use an alternative equivalent definition for simple 2-query linear LDCs as that is closer to how it is used in the proofs later.
Locally correctable codes are stronger locally decodable codes for which bits of codewords can also be recovered. As for simple 2-query linear LDCs, instead of the usual codeword perspective, we use the following equivalent formulation.
Definition 2.8. A simple 2-query linear locally correctable code over with error , block length n and message length k consists of the following data.
-
Vectors spanning .
-
For each , a matching on of size at least .
Those data should satisfy the condition that for every and . Additionally, we require that no edges appear in two different matchings.
Given the data in Definition 2.8, the actual locally correctable code consists of codewords spanned by where is the -th coordinate of for every . That is, if we list the 's as rows of a matrix, is spanned by its columns. Indeed, if and satisfy , then any codeword satisfies , showing that the -th and -th coordinates suffice to recover the -th coordinate.
Having introduced the relevant notions of LDC and LCC for this paper, we now introduce the bounds we will need in the proofs. For simple 2-query linear LDCs, we can upper bound k in terms of n and .
Lemma 2.9. Any simple 2-query linear LDC with error , block length n and message length k satisfies
We note that, up to a constant, the lemma was proven by Dvir and Shpilka in [DS05] building on [GKST06], which proved the statement over . We nonetheless provide a proof of Lemma 2.9 to be self-contained.
Proof. For each , let be the graph with vertex set and edge set . Let V_1^{(s)},\ldots,V_t_s^{(s)} be the connected components of . Note that from the definition of a simple 2-query linear locally decodable code, it is clear that for any , and , we must have
Throughout the proof, we will keep track of the sizes of the connected components. To do so, define the potential function
We will show, for each , that
Assuming Eq. (1), we will then have
which rearranges to the desired inequality.
To compare and , we first restrict our attention on a single connected component of . Suppose that it splits into connected components in . We will show that
where consists of edges of within . Summing this over all connected components of then gives Eq. (1).
If , we claim that has no edges within . Suppose for the contradiction that span an edge in . Then is a nonzero multiple of by assumption. But we also know that as and are connected in . This shows that , contradicting the linear independence of the vectors . Therefore is empty, proving Eq. (2) when .
For , by the concavity of on and Jensen's inequality, we have
On the other hand, is a matching in , showing that
Summing the two inequalities up finish the proof of Eq. (2) for , and hence the proof of the lemma.
Since simple 2-query linear LCCs are, after some small modifications, also simple 2-query linear locally decodable codes, the bound in Lemma 2.9 also holds for them with some extra loss. The bound in Lemma 2.9 can indeed be tight over , for example when and are all the vectors in . However, over , we can save an extra logarithmic factor for simple 2-query linear locally correctable codes using a result of Dvir, Saraf and Wigderson. For the reader's convenience, we specialize and state their result here.
Lemma 2.10 ([DSW14, Corollary 1.4]). Let be positive integers. Let be an -by- real matrix satisfying the following properties:
-
each row of has at most 3 nonzero entries;
-
each column of has at least nonzero entries;
-
for any two columns, there are at most 3 rows at which the two columns are simultaneously nonzero.
Then the rank of is at least .
Lemma 2.11. Any simple 2-query linear LCC over with error , block length and message length satisfies .
Proof. We will build a matrix from any given simple 2-query linear locally correctable code and apply Lemma 2.10. The columns of are indexed by and the rows are indexed by the pair where and .
For any row index , we know that for some . The matrix is defined so that the row vector at is , where is the -th coordinate vector for any . This is defined so that if is the -by- matrix whose row vectors are , then .
Now it is clear that each row of has precisely three nonzero entries. Moreover, the -th column has at least nonzero entries. Lastly, for any , suppose that the -th column and the -th column are simultaneously nonzero at row . Then .
If , then , which occurs at most once as is a matching. Similarly can only occur at most once. Lastly, if , then we must have . As we require each edge to appear in at most once matching, this also occurs at most once. Therefore the two columns can only be simultaneously nonzero at at most three rows.
Lemma 2.10 now shows that the rank of is at least . As an immediate consequence, the (right) kernel of has dimension at most . As , this shows that the column space of has dimension at most , and thus . By assumption, span the entire , showing that , as desired.
Remark 2.12. In the definition of simple 2-query LCCs, we require each edge to be present in at most one matching. Without that assumption, the best known bound in the literature is currently by [BDYW11]. Even using the later improvement in [DSW14], the argument would only give . In our applications, both bounds are inferior to Lemma 2.9 as is polynomial in .
3 Proof of Theorem 1.1
Our first step is to convert our non-redundancy problem for BCK into an extremal combinatorics problem which can be analyzed using locally correctable codes. This first step is a mild adaptation of the techniques in [BG25].
Define be the set of all permutations of . Note that . Furthermore, it is known that , see [BG25]. Thus, by applying Proposition 2.4, we have
In other words, to prove Theorem 1.1, it suffices to show that .
To simplify the problem further, we make use of a multipartite trick (e.g., [BGJ 25]). Let be a non-redundant instance of BCK BCK . Define the 3-lift of to be the 3-partite hypergraph where and
By design is 3-partite, has the same number of edges as but . One can show that if is non-redundant, then is also non-redundant. Thus, to prove (and thus Theorem 1.1), it suffices to prove the following statement in extremal combinatorics.
Lemma 3.1. Let be a 3-uniform hypergraph such that there exists a tripartition of the vertices such that . Further assume for each , there is a map such that but for all , we have that . Then, .
Proof. First of all, we note that must be linear. Suppose for the sake of contradiction that for some two edges . Without loss of generality, suppose that and . As , we know that and . However, no matter what is, it is impossible for to lie in BCK as the projection of BCK to the first two coordinates avoids . Therefore must be linear.
We first trim the hypergraph so that its minimum degree is large. To do so, let . Whenever there is a vertex with degree less than , remove that vertex and all edges incident to it. Let be the resulting hypergraph. Then
Moreover, we know that for every .
Now for any , define three vectors as follows: for any and , set . Then for every and every , we clearly have
as every element of has precisely one coordinate equal to . Thus , where is the all-one vector.
To make those vectors a simple 2-query LCC, let be any surjective linear map whose kernel is the span of . Also fix a choice , and set .
In more detail, any assignment for corresponds to the “forgetful” assignment where . Thus, the witnesses that is non-redundant map to witnesses that is non-redundant.
Then for any . For any , let form an edge in . Since is linear, is linear as well, showing that are pairwise edge-disjoint matchings. Hence, the vectors together with the matchings form a simple 2-query LCC. Its error parameter can be bounded below by , and its message length is . By Lemma 2.11, we thus have
For any and , define so that for all . In other words, is the Hadamard product of the two vectors and . Since is bilinear, we know that .
Now for every , set . For every , we know that or 1, and it is 1 if and only if both are both 1 at . The latter is equivalent to , , which is equivalent to and by the assumption. Since is linear, this is equivalent to . Therefore is the unit vector in the -th direction, and so contains all the unit vectors in . As a consequence,
where we use Eq. (3) for the last inequality. Rearranging gives that .
Remark 3.2. The use of LCCs rather than LDCs in this proof is purely to sharpen the inequality. Using only the LDC bound of Lemma 2.9, we can prove , which is still a polynomial improvement over the state of the art.
4 Proof of Theorem 1.2
To prove Theorem 1.2, we begin by converting our CSP non-redundancy problem into a combinatorics problem analogous to the proof of Theorem 1.1. Let
be the set of all permutation matrices, written as an elements of . By results of [LW20, CJP20, KPS25, BG25], we know that . Since , by Proposition 2.4, we have that
Thus, it suffices to prove that . Similar to the argument in Section 3, with only a constant-factor loss in the instance size, we may assume our non-redundant instance of is 9-partite. As it is more convenient to index these parts as entries in a matrix, we obtain the following extremal combinatorics problem.
Lemma 4.1. Let be a 9-uniform hypergraph such that there exists a 9-partition of the vertices such that . Further assume for each , there is a map such that is the identity matrix but for all , we have that is a non-identity permutation matrix. Then, .
Proof. Since the proof is significantly more involved, we divide the proof into several pieces.
Making the shadow linear. As in the proof of Lemma 3.1, we first clean up the 9-uniform hypergraph. This time, the cleaning process is more complicated and will alter the hypergraph itself by contracting vertices.
Define to be the 3-uniform hypergraph on as follows: for each edge in , put in the edges and for each in . In other words, it is hypergraph recording the “shadows” of the edges in in each row and column. We will contract vertices in so that the corresponding shadow hypergraph is linear.
Suppose that two edges in share exactly two vertices. Without loss of generality, assume that they are and with and . As any element in BoolBCK, when put in matrix form, has rows and columns summing to one, we have
for any . Therefore we can contract and while keeping well-defined. As such contraction decreases the number of vertices by 1, eventually must become linear. Moreover, the number of edges remains unchanged throughout the process, so the task is still to prove the same upper bound on .
Dyadic decomposition. Set . For any and , let be the set of vertices with . For any , let be the set of edges with , and . It is clear that
by definition, and we will bound each separately. Therefore, we will fix the choice of until the last step. We will bound in two different ways—one using an argument similar to the proof of Lemma 3.1, and another elementary one via identifying forbidden structures. The former bound is most effective when the degree buckets are large, while the latter bound is most effective in the small-degree case. To get the best overall bounds, we carefully combine both inequalities using Cauchy-Schwarz.
Forbidding cycles. We start by showing that cycles are forbidden in some graph obtained by projecting to the - and -coordinates. For any and , let be the set of edges with and . Let be a bipartite graph on whose edges are projection of to the corresponding coordinates. We first observe that this projection is an injection. Indeed, if are sent to the same edges, then for any
. By the linearity of , we have , , and . This forces and so again by the linearity of . Moreover, if a vertex has positive degree in , then it must be in some edge with both and . Set to be the vertices in with positive degrees, and to be the vertices in with positive degrees as well.
The key claim is that is a forest. Suppose that it contains a cycle where and . Let be the edge containing . Then by the assumption, we know that . We also know that . Now for any other edges containing , it is easy to check that must either be or . Therefore we may prove by induction that and . However, , which is a contradiction. Therefore
As a consequence,
Now for each , the number of choices of for to contain can be upper bounded by . Therefore
and similarly
With Eq. (4), this shows that
Building a LDC. Now let us bound using ideas from Lemma 3.1. Similar to the proof of Lemma 3.1, we will associate each vertex with a vector recording the values of . This time, we can work over arbitrary fields. For simplicity, let us work over . For each , let be the vector with for every . We also write as the linear map from with span being its kernel.
Now suppose that is an edge in . Then there exists an edge with for every . For any , we know that must be a permutation matrix, showing that
Therefore
This shows that as we are working over . Similarly, if is an edge in , then . Therefore we are very close to getting a simple 2-query LDC over .
To actually produce a simple 2-query LDC, let
and let be such that form a basis of . Let be any projection map from the image of to , and write . Finally, for any , let be the pairs of vertices that form an edge with in . It is then clear that together with the matchings give a simple 2-query LDC with block length and message length . Moreover, since
for every , we can set the error parameter as . Lemma 2.9 then shows that
Therefore
If we set , we also have
using the same argument.
As in the proof of Lemma 3.1, we now let be such that for every . For any edge , we know that and by definition, which shows that . Moreover, it is clear that is the coordinate vector corresponding to . This shows that the image of spans the entire space, which shows that is surjective as is bilinear. By considering the dimensions of the vector spaces, we obtain that
using Eq. (6) and Eq. (7).
Final steps. Multiplying Eq. (5) and Eq. (8) now gives
and so
We now sum this bound over all with . The other cases can be similarly bounded, which would only enlarge the upper bound by a factor of six. We may now compute
where the last inequality follows from an application of Cauchy–Schwarz. Similarly we also have
Plugging the last two inequalities into Eq. (9), we have
5 Proof of Theorem 1.3
5.1 Punctured Permutation Matrices
The most important step toward proving Theorem 1.3 is to prove variants of Lemma 4.1 for “punctured” permutation matrices. To be more precise, given a subset , we say that a map is a punctured permutation matrix if is a restriction of a permutation matrix map . Likewise, is a punctured identity matrix if is a restriction of . Among puncturings that remove a single element from , without loss of generality there are two possibilities, the diagonal pucturing and the off-diagonal puncturing . In either case, we can set up a natural variant of Lemma 4.1.
Lemma 5.1. Let be a 8-uniform hypergraph such that there exists a 8-partition of the vertices such that . Further assume for each , there is a map such that is a punctured identity matrix but for all , we have that is a non-identity punctured permutation matrix. Then, .
Lemma 5.2. Let be a 8-uniform hypergraph such that there exists a 8-partition of the vertices such that . Further assume for each , there is a map such that is a punctured identity matrix but for all , we have that is a non-identity punctured permutation matrix. Then, .
The proofs of two lemmas are mostly analogous to the proof of Lemma 4.1. We start with the proof of Lemma 5.1, whose proof is the same as the proof of Lemma 4.1 except for some details.
Proof of Lemma 5.1. We still divide the proof into five parts.
Making the shadow linear. Since we do not have the full matrix anymore, we will define the shadow 3-uniform hypergraph slightly differently. For each edge in , put in the edges and now only for as is absent. The exact same argument as in Lemma 4.1 still allows us to assume is linear after finitely many contractions of vertices.
Dyadic decomposition. We still set . For any and , let be the set of vertices with . For any , let be the set of edges with and . We still have
and we will still fix until the last step. Before that, we will derive two different bounds on .
Forbidding cycles. This part of the proof of Lemma 4.1 does not use the index , and the proof works almost verbatim: we only need to change to and to omit when checking the projection is injective. Therefore we still have
Building LDC. This part of the proof of Lemma 4.1 does use , but it does not use . After swapping 1 and 3 in all the indices and replacing with , the proof in Lemma 4.1 works verbatim. Thus we still have
Final steps. This part is the only different part, although the main idea stays the same. Multiplying Eq. (10) with the square of Eq. (11), we get
and so
Now we know that
by an application of Hölder's inequality. Plugging this into Eq. (12), we obtain
The proof of Lemma 5.2 is almost the same. The main difference is that the forbidding cycles step no longer works, and this step will be replaced with a simple counting argument using the linearity of the shadow hypergraph. To make the counting argument work, the dyadic decomposition will be modified as well.
Proof of Lemma 5.2. The proof is still divided into five parts. The third part is going to be a counting argument instead.
Making the shadow linear. As before, the shadow 3-uniform hypergraph is slightly different as now is absent from the index set . For each edge in , put in the edges and for every and . The exact same argument as in Lemma 4.1 still shows that we may assume to be linear after finitely many contractions.
Dyadic decomposition. Still set . The dyadic decomposition will be done with respect to the index set . For any and , set to be the set of vertices with . For any , let be the set of edges with where for every . We still have
For the next two parts, we fix some and bound the size of in two different ways.
Simple counting. Note that by the linearity of , an edge is uniquely determined by . Now for each choice of , there are at most choices of and choices of by how the dyadic decomposition was done. Once those five vertices are determined, there are at most choices for as . Therefore
Instead of counting , we can also count . When the five vertices are determined, there are at most choices for as . Therefore we also have
As a consequence,
Now, instead of starting from , we may also start from , extend it to in at most ways and then either choose or to determine . Therefore the same counting argument gives
We may combine the two bounds above as
Building LDC. We still define for each a vector with for every . Also for every and , let
The argument in Lemma 4.1 still shows that
We will use Eq. (14) to derive two different upper bounds on .
Set to be the map with for all . We have seen that is the coordinate vector corresponding to for each . We will use and to expand . Note that for every . Using this and the fact that we are working over , we get
The right hand side is contained in
whereas the left hand side runs through all coordinate vectors in when runs through the edges in . Therefore
by Eq. (14).
For the other bound, we claim that is the coordinate vector corresponding to for each . Indeed, for any , we know that is either zero or one. Moreover, it is one if and only if and . We clearly have and . On the other hand, if and , then we must have for . Since , we have . Similarly implies . This shows that is a punctured identity matrix, and so . As a result, is the coordinate vector corresponding to .
Since is contained in the span of and , we have
again by Eq. (14).
Note that for any real numbers a,b. Therefore, by taking the better of the two bounds Eq. (15) and Eq. (16), we get
Final steps. By multiplying the square of Eq. (13) with the third power of Eq. (17), we get
To simplify, set and . Then we can rewrite the inequality as
To sum this over , note that for any fixed with , there are at most choices for so that and . Therefore
5.2 Completing the Proof of Theorem 1.3
To prove Theorem 1.3, we need to combine Lemma 5.1 and Lemma 5.2 with tools from CSP non-redundancy. To start with, we define the following predicates.
By inspection, one can verify that and . Furthermore, and . By Lemma 5.1 and Lemma 5.2, we can immediately deduce the following corollary.
Corollary 5.3. We have that and also .
Note that and are precisely BoolBCK and BoolBCK, respectively, with the last coordinate removed. Furthermore, and are precisely BoolBCK and BoolBCK, respectively, with the penultimate coordinate removed. As such, by [BGJ26] we have the following lower bounds
Proposition 5.4 (Theorem 22, [BGJ 26]). For , .
The goal of this section is to combine Corollary 5.3 and Proposition 5.4 to prove the following result concerning and .
Theorem 5.5. We have that and that .
Proof. Fix . Since , we have by Proposition 2.5 that
By plugging in Corollary 5.3 and Proposition 5.4, we thus get that
and
Thus, it suffices to prove that . A sufficient way to prove this (due to [JP19, CJP20, KPS25]) is to identify two quadratic polynomials such that for an evaluation point we have that if and only if . A suitable choice of polynomials is as follows
Note that both polynomials ignore the input . To analyze , fix and arrange the first 8 coordinate into the following matrix
If , then the first two rows and the first two columns must have exactly one 1. Furthermore, the terms and enforce that the last row and column each have at most one 1. Finally, imposes the requirement that the sum of the entries in the last row and the sum of the entries in the last column are equal. If we let , then if and only if
is a permutation matrix, which is equivalent to which in turn is also equivalent to . Thus, if and only if .
The argument for is analogous. Fix and arrange the first 8 coordinate into the following matrix
The terms of impose that the first two rows and the first and last columns of the above matrix have exactly one 1. Furthermore, the second column and the last row each have at most one 1 and this second column and last row have the same sum. Thus, if we let , we have that iff
is a permutation matrix. In other words, iff which is true iff . Therefore, if and only if , as desired.
We note that such polynomials can be found computationally using the lattice-based methods of [KPS25, BGP26]. We give ad hoc arguments in this paper for completeness.
Observe that Theorem 5.5 immediately implies Theorem 1.3.
6 Conclusion
In this paper, we show how techniques from the theory of locally decodable and locally correctable codes can be used to bound the non-redundancy of various constraint satisfaction problems. Given the rich connections that have been found between CSP non-redundancy and various other computational problems involving CSPs [LW20, CJP20, BCK20, Car22, BG25, SV26a], our results also make advances on these other questions.
We conclude with two open questions. First, is Theorem 1.1 tight? If not, is it possible that ? If the latter possibility holds, then this would lead to a new class of CSPs which have near-linear-sized CSP sparsifiers [KPS24, KPS25, BG25]. More precisely, the most general known argument for showing that a CSP has linear-sized non-redundancy is by invoking a generalized form a Gaussian elimination due to Bulatov and Dalmau [BD06, BCK20, CJP20, LW20]. However, it is known that such methods cannot work for predicates like BCK due to barriers in universal algebra [BCK20, BGJ 25]. Getting a linear-sized bound for BCK via a different method would likely open up an entirely new perspective on CSP non-redundancy and sparsification.
Second, this paper identifies a few specific problems for which the LDC/LCC method can be used to make progress. Can a more general theory be built to understand for which CSP predicates these tools are useful? Identifying the limit of these techniques could be a crucial step toward finding other methods of bounding the non-redundancy of CSPs.
References
[BCK20] Christian Bessiere, Clément Carbonnel, and George Katsirelos. Chain length and csps learnable with few queries. In The Thirty-Fourth AAAI Conference on Artificial Intelligence, AAAI 2020, The Thirty-Second Innovative Applications of Artificial Intelligence Conference, IAAI 2020, The Tenth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2020, New York, NY, USA, February 7-12, 2020, pages 1420–1427. AAAI Press, 2020.
[BD06] Andrei Bulatov and Víctor Dalmau. A Simple Algorithm for Mal'tsev Constraints. SIAM Journal on Computing, 36(1):16–27, January 2006.
[BDYW11] Boaz Barak, Zeev Dvir, Amir Yehudayoff, and Avi Wigderson. Rank bounds for design matrices with applications to combinatorial geometry and locally correctable codes. In Proceedings of the Forty-Third Annual ACM Symposium on Theory of Computing, STOC '11, pages 519–528, New York, NY, USA, June 2011. Association for Computing Machinery.
[BG25] Joshua Brakensiek and Venkatesan Guruswami. Redundancy is all you need. In Michal Koucký and Nikhil Bansal, editors, Proceedings of the 57th Annual ACM Symposium on Theory of Computing, STOC 2025, Prague, Czechia, June 23-27, 2025, pages 1614–1625. ACM, 2025.
[BGJ+25] Joshua Brakensiek, Venkatesan Guruswami, Bart M. P. Jansen, Victor Lagerkvist, and Magnus Wahlström. The richness of CSP non-redundancy. CoRR, abs/2507.07942, 2025.
[BGJ+26] Joshua Brakensiek, Venkatesan Guruswami, Bart M. P. Jansen, Victor Lagerkvist, and Magnus Wahlström. Super-linear lower bounds for CSP non-redundancy via shrinking instances. CoRR, abs/2605.19055, 2026.
[BGP26] Joshua Brakensiek, Venkatesan Guruswami, and Aaron Putterman. Classification of non-redundancy of boolean predicates of arity 4. In Nicolas Beldiceanu, editor, 32nd International Conference on Principles and Practice of Constraint Programming, CP 2026, Lisbon, Portugal, July 20-23, 2026, volume 379 of LIPIcs, pages 8:1-8:24. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2026.
[BŽ20] Silvia Butti and Stanislav Živný. Sparsification of Binary CSPs. SIAM Journal on Discrete Mathematics, 34(1):825-842, January 2020.
[Car22] Clément Carbonnel. On Redundancy in Constraint Satisfaction Problems. In 28th International Conference on Principles and Practice of Constraint Programming (CP 2022). Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022.
[CJP20] Hubie Chen, Bart M. P. Jansen, and Astrid Pieterse. Best-Case and Worst-Case Sparsifiability of Boolean CSPs. Algorithmica, 82(8):2200-2242, August 2020.
[DGY11] Zeev Dvir, Parikshit Gopalan, and Sergey Yekhanin. Matching Vector Codes. SIAM Journal on Computing, 40(4):1154-1178, January 2011.
[DS05] Zeev Dvir and Amir Shpilka. Locally decodable codes with 2 queries and polynomial identity testing for depth 3 circuits. In STOC'05: Proceedings of the 37th Annual ACM Symposium on Theory of Computing, pages 592-601. ACM, New York, 2005.
[DSW14] Zeev Dvir, Shubhangi Saraf, and Avi Wigderson. Improved rank bounds for design matrices and a new proof of Kelly's theorem. Forum Math. Sigma, 2:Paper No. e4, 24, 2014.
[Efr12] Klim Efremenko. 3-query locally decodable codes of subexponential length. volume 41, pages 1694-1703, 2012.
[FK17] Arnold Filtser and Robert Krauthgamer. Sparsification of Two-Variable Valued Constraint Satisfaction Problems. SIAM Journal on Discrete Mathematics, 31(2):1263-1276, January 2017.
[Fox11] Jacob Fox. A new proof of the graph removal lemma. Annals of Mathematics, pages 561-579, 2011.
[FS13] Zoltán Füredi and Miklós Simonovits. The history of degenerate (bipartite) extremal graph problems. In Erdős centennial, volume 25 of Bolyai Soc. Math. Stud., pages 169-264. János Bolyai Math. Soc., Budapest, 2013.
[GKST06] Oded Goldreich, Howard Karloff, Leonard J. Schulman, and Luca Trevisan. Lower bounds for linear locally decodable codes and private information retrieval. Comput. Complexity, 15(3):263–296, 2006.
[Gop09] Parikshit Gopalan. A note on Efremenko's locally decodable codes. Electron. Colloquium Comput. Complex., TR09, 2009.
[Gop18] Sivakanth Gopi. Locality in coding theory. PhD thesis, Princeton University, Princeton, NJ, USA, 2018.
[JP19] Bart M. P. Jansen and Astrid Pieterse. Optimal Sparsification for Some Binary CSPs Using Low-Degree Polynomials. ACM Trans. Comput. Theory, 11(4):28:1–28:26, August 2019.
[KPS24] Sanjeev Khanna, Aaron L. Putterman, and Madhu Sudan. Code Sparsification and its Applications. In Proceedings of the 2024 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), Proceedings, pages 5145–5168. Society for Industrial and Applied Mathematics, January 2024.
[KPS25] Sanjeev Khanna, Aaron Putterman, and Madhu Sudan. Efficient algorithms and new characterizations for CSP sparsification. pages 407–416, 2025.
[LW20] Victor Lagerkvist and Magnus Wahlström. Sparsification of SAT and CSP Problems via Tractable Extensions. ACM Transactions on Computation Theory, 12(2):1–29, June 2020.
[Rag07] Prasad Raghavendra. A note on Yekhanin's locally decodable codes. Electron. Colloquium Comput. Complex., TR07-016, 2007.
[RS78] I. Z. Ruzsa and E. Szemerédi. Triple systems with no six points carrying three triangles. In Combinatorics (Proc. Fifth Hungarian Colloq., Keszthely, 1976), Vol. II, volume 18 of Colloq. Math. Soc. János Bolyai, pages 939–945. North-Holland, Amsterdam-New York, 1978.
[SV26a] Amatya Sharma and Santhoshini Velusamy. Characterizing streaming decidability of csps via non-redundancy, 2026.
[SV26b] Amatya Sharma and Santhoshini Velusamy. Non-redundancy of low-arity symmetric boolean csps, 2026.
[Yek08] Sergey Yekhanin. Towards 3-query locally decodable codes of subexponential length. J. ACM, 55(1):1:1–1:16, February 2008.
[Yek12] Sergey Yekhanin. Locally Decodable Codes. Foundations and Trends® in Theoretical Computer Science, 6(3):139–255, October 2012.