betaFeedback

WorksComputer Science

Cores Characterize the One-Pass Streaming Complexity of CSPs

Abstract

We study the one-pass streaming complexity of CSPs over a fixed finite relation RR under three natural objectives: SAT(R)\textsf{SAT}(R), deciding whether all constraints can be satisfied; Min\textsf{Min}-CSP(R)\textsf{CSP}(R), approximately minimizing the number of unsatisfied constraints; and Exact-CSP(R)\textsf{Exact-CSP}(R), exactly computing the maximum number of satisfied constraints. Sharma and Velusamy (ESA 2026) characterized the streaming complexity of satisfiability for CSPs with literals using the non-redundancy parameter NRDn(R)\textsf{NRD}_n(R), which roughly measures the largest instance in which every constraint is independently necessary. For the most general setting without literals, they obtained the corresponding characterization for Boolean relations and showed obstacles to extending their techniques to larger domains. Kol, Paramonov, Saxena, and Yu (ITCS 2023) similarly characterized the streaming complexity of Exact-CSP(R)\textsf{Exact-CSP}(R) for Boolean CSPs with literals in terms of the degree deg(R)(R) of the relation when written as a polynomial, while without literals, the corresponding result was known only for Max-Cut\textsf{Max-Cut}. For all three of the objectives we study, we give tight characterizations for unweighted CSP instances over arbitrary finite domains. The streaming algorithms we provide are deterministic, while the corresponding bounds are tight up to polylogarithmic factors, even against randomized algorithms. The central idea in all three results is a reduction of RR to its core, a canonical subrelation of RR which admits gadgets that allow for the hard-pinning (or fixing) of variables.

Introduction

Constraint satisfaction problems (CSPs) are one of the basic objects in theoretical computer science. Fix a finite domain DD, an arity kk, and a relation R⊂DkR \subset D^k. An RR-constraint applies RR to an ordered kk-tuple of variables, with repetitions allowed, and an RR-instance is a collection of such constraints. The basic satisfiability problem asks whether there is an assignment that satisfies every constraint. By varying the relation RR, CSPs can capture a huge variety of natural problems, from bipartiteness, to 3-SAT, to graph coloring, and to systems of linear equations.

More recently, a line of work has emerged which studies the complexity of solving such CSPs in the streaming model. In this setting, each of the mm constraints is revealed one at a time. The goal, as before, is to decide satisfiability or a related objective for the resulting instance using as little space as possible. We assume throughout that the stream length is polynomially bounded in nn. Naturally, storing every constraint explicitly as it arrives allows one to store the entire CSP instance, meaning there is a trivial upper bound of O(nklog⁡n)O(n^k \log n) bits of space for any such task.

The streaming study of CSP optimization was initiated by Kapralov, Khanna, and Sudan [31], who proved strong lower bounds for approximating Max-Cut. Kapralov and Krachun [30] subsequently proved that there is no non-trivial approximation for Max-Cut in sublinear-space in the streaming model. Guruswami, Velingker, and Velusamy [25] and Chou, Golovnev, and Velusamy [CGV20] studied Boolean Max-CSPs of arity two, while Chou, Golovnev, Sudan, and Velusamy [16] extended this line of work to arbitrary finite Max-CSPs.

Very recently, this line of work has led to substantially broader characterizations of the streaming approximability of Max-CSPs. A sequence of works developed increasingly strong sublinear-space algorithms and lower bounds for Max-DiCut and Max-Cut [SSSV25; FMW25; Vel25; ABFS26], while Singer, Tulsiani, and Velusamy [STV25] and Fei, Minzer, and Wang [FMW26a] uncovered a close connection between streaming approximability and the standard BasicLP relaxation for CSPs. Subsequent works essentially completed this picture in the one-pass setting, giving sublinear-space algorithms up to the approximation threshold predicted by BasicLP and linear-space lower bounds beyond it [1 STV26, FMW26b]. Thus, the streaming approximability of Max-CSPs is now understood to a remarkable extent, in sharp contrast to the objectives that we study in this work.

Kol, Paramonov, Saxena, and Yu [36] studied exact optimization for Boolean CSPs with literals. Their formulation asks, for a given threshold vv, whether some assignment satisfies at least vv constraints, which is equivalent to computing the maximum number of satisfied constraints exactly. They showed that if the indicator of the predicate has polynomial degree dd, then the streaming space complexity is Θ~(nd)\widetilde{\Theta}(n^d). Other work has focused on satisfiability. Vu [Vu24] proved an Ω(nk)\Omega(n^k) lower bound for kk-SAT, while Chou, Golovnev, Sudan, and Velusamy [16] proved an Ω(n)\Omega(n) lower bound for arbitrary CSPs.

The streaming complexity of satisfiability was characterized more recently by Sharma and Velusamy [SV26a], who showed that for a relation RR, its space complexity is characterized, up to a logarithmic factor, by the non-redundancy of RR. Non-redundancy in turn is a fundamental parameter in the study of CSPs, known to govern the query complexity of learning CSPs [4, 15], the kernelizability of CSPs [28, 18, 40], and approximate sparsification of CSPs [29 FK17, BŽ20, KPS24, 34, 5]. Given this rapidly-growing list of connections, there has been a recent surge of interest in obtaining sharp asymptotic estimates for the non-redundancy of many CSP predicates [4, 18, 40, 15, 34, 5, 6, 38, 8 SV26b, 7], often combining ideas from logic, algebra, and extremal combinatorics. Recent work has obtained further bounds and structural results for non-redundancy and sparsification [BGP26b; BGP26c; BGP26d].

These characterizations rely crucially on the use of literals. In the general-domain literal model, the domain is Zq\mathbb{Z}_q and each occurrence of a variable may be replaced by x+λx+\lambda for an arbitrary shift λ∈Zq\lambda\in\mathbb{Z}_q. Over the Boolean domain, these are precisely the two literals xx and ¬x\neg x.4 Literals are more than a notational convenience in these arguments. Indeed, negations or additive shifts allow for much more powerful gadgets which lead to simpler lower bound proofs. Sharma and Velusamy [SV26a] showed that this is a fundamental obstruction in applying their techniques to general finite-domain CSPs. Over domains larger than two, the raw non-redundancy of RR need not predict the streaming complexity of CSP satisfiability.

The difficulty lies specifically in proving lower bounds. The known upper bounds continue to apply, since ordinary CSP instances are special cases of instances in the literal model. In the lower bound reductions however, literals were critical in gadget constructions that fixed the values of certain variables. Our starting question is therefore the following.

Can we derive tight characterizations of the streaming complexity of CSPs?

As our primary contribution, we give an affirmative answer to the above question, in part making use of a crucial object called the core of the CSP relation RR, denoted by core⁡(R)\operatorname{core}(R), which intuitively removes domain values that can be collapsed without changing any of these objectives. In the context of CSPs, the notion of a core originated in the 1970s in the context of designing optimal queries to a database [19, 37] but the concept was also independently developed in the graph theory literature (see [27, 26]). Perhaps the most notable use of CSP cores is their key role in the proof of the CSP dichotomy theorem [24, 12, 13 Zhu20]. Despite these many connections, our work appears to be the first to utilize the concept of a CSP core in the context of streaming.

Beyond simply studying SAT⁡(R)\operatorname{SAT}(R), which asks whether all constraints can be satisfied, we also study Min-CSP⁡(R)\operatorname{Min\text{-}CSP}(R), which approximately minimizes the number of unsatisfied constraints, and Exact-CSP⁡(R)\operatorname{Exact\text{-}CSP}(R), which computes the maximum number of satisfied constraints exactly. Thus, Exact-CSP⁡(R)\operatorname{Exact\text{-}CSP}(R) is the exact-value version of Max-CSP⁡(R)\operatorname{Max\text{-}CSP}(R), and we use the latter terminology primarily for the approximation literature. As a byproduct of our study, we show that (a) non-redundancy is even more entrenched as a crucial parameter which governs the streaming complexity of CSP problems and (b) the core is a fundamental object which allows for the extension of lower bound techniques to general finite-domain CSPs.

Our Results

We study the one-pass streaming complexity of solving three different CSP objectives defined by a fixed finite relation RR, namely SAT⁡(R)\operatorname{SAT}(R), Min-CSP⁡(R)\operatorname{Min\text{-}CSP}(R), and Exact-CSP⁡(R)\operatorname{Exact\text{-}CSP}(R). The main parameter that governs the space complexity in our results is non-redundancy. Informally, an instance is non-redundant if every constraint is non-redundant, i.e., removing it would strictly grow the set of satisfying assignments of the instance. This is equivalent to having a witness assignment for each constraint that violates it but satisfies the rest of the constraints. We write NRD⁡n(R)\operatorname{NRD}_n(R) for the largest number of constraints in such an instance on nn variables. Our first theorem takes advantage of both NRD and core⁡(R)\operatorname{core}(R) and characterizes the randomized one-pass streaming complexity of SAT⁡(R)\operatorname{SAT}(R) up to a log factor.

Theorem 1.1 (Informal Theorem 5.1 satisfiability characterization). For every fixed non-trivial relation RR, there is a deterministic one-pass algorithm that solves SAT⁡(R)\operatorname{SAT}(R) using OR(NRD⁡n(core⁡(R))log⁡n)O_R(\operatorname{NRD}_n(\operatorname{core}(R)) \log n) space, and any one-pass algorithm (even randomized) requires at least ΩR(NRD⁡n(core⁡(R)))\Omega_R(\operatorname{NRD}_n(\operatorname{core}(R))) space.

Our minimization result comes from a stronger sparsification theorem, resembling those of [KPS24; KPS25; BG25]. The goal here is, given a CSP instance CC, to build a small, re-weighted sub-instance (denoted C^\widehat{C}) such that on every assignment (x1,…,xn)∈Dn(x_1,\ldots,x_n) \in D^n, the number of unsatisfied constraints in C^\widehat{C} is essentially the same as the number of unsatisfied constraints in CC. Clearly, once such a sparsifier is constructed, one can (approximately) solve Min-CSP(RR). Importantly, we show that building and maintaining such sparsifiers can still be done in space roughly equal to the non-redundancy:

Theorem 1.2 (Informal Theorem 6.1 and Corollary 6.2 sparsification and minimization characterization). For every fixed non-trivial relation RR and every ε>0\varepsilon> 0, there is a deterministic one-pass algorithm that can store a (1±ε)(1 \pm\varepsilon)-sparsifier using OR,ε(NRDn(R)poly⁡(log⁡n))\mathrm{O}_{R,\varepsilon}(\mathrm{NRD}_n(R)\operatorname{poly}(\log n)) space. Consequently, there is a deterministic one-pass (1+ε)(1+\varepsilon)-approximation algorithm for Min-CSP(RR) using OR,ε(NRDn(core⁡(R))poly⁡(log⁡n))\mathrm{O}_{R,\varepsilon}(\mathrm{NRD}_n(\operatorname{core}(R))\operatorname{poly}(\log n)) space, and every finite-factor randomized approximation requires ΩR(NRDn(core⁡(R)))\Omega_R(\mathrm{NRD}_n(\operatorname{core}(R))) space.

Finally, for Exact-CSP, the space complexity is determined by the polynomial degree of the core.5

Theorem 1.3 (Informal Theorem 7.1 Exact-CSP characterization). Let dd be the degree of the indicator function of core⁡(R)\operatorname{core}(R). Solving Exact-CSP(RR) in one pass on simple instances requires ΩR(nd)\Omega_R(n^d) randomized space and has a deterministic OR(ndlog⁡n)\mathrm{O}_R(n^d\log n)-space algorithm.

Thus all three problems first reduce to the core. After that reduction, non-redundancy characterizes satisfiability and minimization up to polylogarithmic factors, while degree characterizes Exact-CSP up to a logarithmic factor.

The Core The reason that core⁡(R)\operatorname{core}(R) is central to each of these results is due to the core being the canonical fixed-point of RR under homomorphisms. More precisely, given a finite domain DD and a relation R⊆DkR \subseteq D^k, a homomorphism of RR to itself is a map h:D→Dh : D \to D such that for every tuple (t1,…,tk)∈R(t_1,\ldots,t_k) \in R, we have that (h(t1),…,h(tk))∈R(h(t_1),\ldots,h(t_k)) \in R. Given an RR-instance of a CSP, a homomorphism hh always maps a satisfying assignment to a satisfying assignment. Furthermore, in the optimization setting, applying a homomorphism to an arbitrary assignment cannot decrease the number of satisfied constraints. Therefore, in any of our streaming problems, we may apply any homomorphism we desire at no cost.

If the map hh is not a bijection, then hh maps RR to a smaller-domain relation h(R)h(R). Since the domain DD is finite, such a shrinking can only be done a finite number of times until a fixed point is reached—this is precisely the core of the relation. As such, for any of our streaming problems, an algorithm for core⁡(R)\operatorname{core}(R) is a natural upper bound on the problem. A corresponding lower bound follows from the fact that CSP cores have canonical gadgets that can be used to fix variables. Further explanation and concrete examples are given in the technical overview (§ 2).

AI Disclosure. Generative AI tools including GPT 5.6 Sol Medium/High were used for language editing, improving exposition, checking the clarity of parts of the manuscript and to assist with routine mathematical tasks that do not require a significant level of innovation or with verifying proofs. They were not used to generate the mathematical results or proofs, and the authors take full responsibility for the contents of the paper.

Technical overview

In this section, we explain the main structural ideas behind our results. Our central idea is to replace every relation by a reduced form called its core, which we define formally in § 3.4. We first use a relation of Sharma and Velusamy [SV26a] to explain why we must reduce to the core. We then explain the satisfiability lower bound using CUT={(0,1),(1,0)}\mathrm{CUT} = \{(0, 1), (1, 0)\} and return to CUT\mathrm{CUT} to explain the exact optimization lower bound. As we will show, the satisfiability and exact-optimization lower bounds crucially rely on whether we can hard-pin variables, meaning fix them to chosen values in the domain. RR-constraints usually cannot do this directly, so we instead build gadgets that simulate such pinnings up to unavoidable symmetries of the relation. The main fact that makes these gadgets possible is that the relation is a core. For satisfiability, we need a gadget whose satisfying assignments give the variables the desired values. For exact optimization, an optimal assignment may violate some gadget constraints, so we need a stronger construction that makes every deviation from the desired values unprofitable.

Reduction to the core

Sharma and Velusamy [SV26a] proved that the one-pass space needed to decide satisfiability for CSPs with literals is characterized, up to a logarithmic factor, by the non-redundancy parameter NRDn(R)\mathrm{NRD}_n(R). This parameter is the maximum number of constraints in an RR-instance in which every constraint is independently necessary. Equivalently, every constraint has a witness assignment that violates it and satisfies all the other constraints. We give the formal definition in § 3.3.

They also showed that without literals, NRDn(R)\mathrm{NRD}_n(R) need not be the right parameter, using the following counterexample

T={(0,1),(1,0),(0,3),(3,0),(1,2),(2,1)}⊆{0,1,2,3}2.T = \{(0, 1), (1, 0), (0, 3), (3, 0), (1, 2), (2, 1)\} \subseteq\{0, 1, 2, 3\}^{2}.

Using known characterizations of non-redundancy, one can prove that NRDn(T)=Θ(n2)\mathrm{NRD}_n(T) = \Theta(n^2) [14, 4, 34 SV26a]. However, satisfiability for TT can be checked in O(nlog⁡n)O(n \log n) space. To see this, notice that T(a,b)T(a,b) holds when aa and bb have opposite parity and at least one of them belongs to {0,1}\{0,1\}. Given a TT-instance, form its underlying graph whose vertices are the variables and whose edges are the pairs {x,y}\{x,y\} on which a constraint T(x,y)T(x,y) appears. The TT-instance is satisfiable exactly when this graph is bipartite. Indeed, every satisfying assignment gives a bipartition according to the parity of the assigned values. Conversely, any bipartition can be made satisfying by assigning 0 to one side and 1 to the other. Bipartiteness can be decided in one pass using O(nlog⁡n)O(n \log n) bits [SV26a].

This suggests that the values 2 and 3 are unnecessary for solving the instance. So, let’s consider the map

σ(0)=σ(2)=0andσ(1)=σ(3)=1.\sigma(0) = \sigma(2) = 0 \qquad\text{and} \qquad\sigma(1) = \sigma(3) = 1.

If (a,b)∈T(a,b) \in T, then aa and bb have opposite parity. Therefore (σ(a),σ(b))(\sigma(a),\sigma(b)) is either (0,1)(0,1) or (1,0)(1,0) and still belongs to TT. Applying σ\sigma to an assignment therefore preserves every constraint that was already satisfied. Thus every assignment can be replaced by a Boolean assignment satisfying at least the same constraints.

The restriction of TT to {0,1}\{0,1\} is precisely CUT={(0,1),(1,0)}\mathrm{CUT} = \{(0,1),(1,0)\}. In this sense, TT is essentially the same relation as CUT\mathrm{CUT}. Every assignment over the original domain can be mapped to a Boolean assignment without losing a satisfied constraint, while every Boolean assignment is already available over the original domain. It follows that restricting the domain to {0,1}\{0,1\} preserves satisfiability, the minimum number of unsatisfied constraints, and the maximum number of satisfied constraints. This is also the reason the bipartiteness argument above works, but the map σ\sigma states it in a form that extends to every relation.

Formally, a map that preserves a relation in this way is called an endomorphism, defined formally in § 3.4. The core of a relation is obtained by choosing an endomorphism with the smallest possible image and restricting the relation to that image. In this example, σ\sigma has image {0,1}\{0,1\}, and no endomorphism can have a one-element image because TT contains no pair (a,a)(a,a). We therefore have core⁡(T)=CUT\operatorname{core}(T) = \mathrm{CUT}.

Notice that NRDn(CUT)=Θ(n)\mathrm{NRD}_{n}(\mathrm{CUT}) = \Theta(n). If a CUT\mathrm{CUT}-instance is satisfiable and nonredundant, its graph must be a forest because every edge on a cycle is implied by the remaining edges. If it is unsatisfiable and nonredundant, removing any edge must make it bipartite, so its nonisolated part is an odd cycle. In either case it has O(n)O(n) edges, while a forest gives the matching lower bound. Reducing to the core therefore replaces the incorrect quadratic parameter NRDn(T)\mathrm{NRD}_{n}(T) by the correct linear parameter NRDn(CUT)\mathrm{NRD}_{n}(\mathrm{CUT}).

The examples above suggest the following general statement, which we prove formally in § 4.

Theorem 2.1 (Informal Lemmas 4.2 and 4.3). For every relation RR, replacing each RR-constraint by the core(R)(R)-constraint on the same scope preserves satisfiability, the minimum number of unsatisfied constraints, and the maximum number of satisfied constraints. Consequently, this replacement preserves the one-pass streaming space of all three problems we consider.

Moreover, this reduction can be performed as the stream arrives. Whenever an RR-constraint appears, we replace it by the core(R)(R)-constraint on the same scope and give it to the algorithm for the core relation.

Now, the remaining task is to prove tight space bounds for the core relation. The satisfiability upper bound now follows immediately. We reduce the stream to the core and apply the algorithm of Sharma and Velusamy [SV26a], which uses OR(NRDn(core⁡(R))log⁡n)O_R(\mathrm{NRD}_{n}(\operatorname{core}(R)) \log n) space. As we will see later in § 2.3, the upper bound for exact optimization follows as well using a simple argument. It remains to prove the lower bound matching this up to the logarithmic factor.

For both the lower bounds, we use the standard connection between streaming algorithms and one-way communication together with the hard problem INDEX, where Alice receives a string b∈{0,1}mb \in\{0,1\}^{m} and Bob receives an index jj and must recover bjb_j. At a high level, we reduce this communication problem to a streaming problem as follows. Alice runs the streaming algorithm on constraints determined by her input and sends its memory state to Bob. Bob then appends constraints determined by his query and uses the output to recover the answer. The difficulty is that every constraint Bob appends must be a constraint of the core relation. He cannot directly fix variables to the values determined by his query. The next subsection explains how the core property lets him simulate this operation for satisfiability. The corresponding construction for exact optimization will require a stronger version of the same idea.

Satisfiability and hard pinning

We now explain why every one-pass algorithm for satisfiability over a core relation RR requires ΩR(NRD⁡n(R))\Omega_R(\operatorname{NRD}_n(R)) space, as stated formally in Theorem 5.3. The proof first gives an ideal reduction in which Bob can fix variables to chosen values. We then use CUT to see why unique fixing is sometimes impossible and what weaker property is enough. Finally, we state the general hard-pinning lemma for core relations.

Let I={C1,…,Cm}I = \{C_1,\ldots,C_m\} be a maximum nonredundant instance over a core relation RR, where m=NRD⁡n(R)m = \operatorname{NRD}_n(R). Recall from § 3.3 that every constraint CjC_j has a witness assignment αj\alpha_j that violates CjC_j and satisfies every other constraint in II.

In INDEX, Alice receives a string b∈{0,1}mb \in\{0,1\}^m and inserts CiC_i whenever bi=1b_i = 1. Bob receives an index jj and must recover bjb_j. If Bob could append constraints that hard-pin every variable to the value given by αj\alpha_j, meaning that the appended constraints force this assignment, then the reduction would be immediate. If bj=0b_j = 0, the witness αj\alpha_j satisfies Alice’s entire instance. If bj=1b_j = 1, Alice also inserted CjC_j, which αj\alpha_j violates. Thus the final instance would be satisfiable exactly when bj=0b_j = 0.

The obstacle is that RR-constraints may not be able to force a unique assignment. The following example shows both the obstacle and the weaker form of pinning that we need.

Example 2.2 (Hard pinning for CUT). Consider R=CUTR = \mathrm{CUT}. Complementing every value preserves every constraint, so any instance satisfied by αj\alpha_j is also satisfied by its complement. Bob does not need uniqueness, however. It is enough to append an instance whose satisfying assignments on the original variables are αj\alpha_j and its complement.

Bob introduces two dummy variables z0,z1z_0, z_1 and adds the constraint CUT(z0,z1)\mathrm{CUT}(z_0,z_1). For every original variable xx, he adds CUT(x,z1)\mathrm{CUT}(x,z_1) if αj(x)=0\alpha_j(x) = 0 and CUT(x,z0)\mathrm{CUT}(x,z_0) if αj(x)=1\alpha_j(x) = 1. Any assignment satisfying these constraints must give z0z_0 and z1z_1 different values. Once those two values are chosen, every original variable is forced. The assignment on the original variables is therefore either αj\alpha_j or its complement.

This completes the reduction for CUT. If bj=0b_j = 0, the assignment αj\alpha_j satisfies Alice’s constraints and Bob’s constraints. If bj=1b_j = 1, Alice inserted CjC_j, which is violated by αj\alpha_j. Its complement also violates CjC_j because complementing every value preserves whether a CUT-constraint is satisfied. Hence the final instance is satisfiable exactly when bj=0b_j = 0.

The map that swaps 0 and 1 is an endomorphism of CUT that only permutes its values. Such a bijective endomorphism is called an automorphism. Applying an automorphism to every value preserves every constraint, which explains why the unavoidable ambiguity between αj\alpha_j and its complement is harmless.

The CUT example shows that Bob does not need to force one assignment uniquely. It is enough to force all original variables according to the same symmetry of the relation. For a core relation, every endomorphism is an automorphism, and this is precisely the property that makes the general construction work.

Lemma 2.3 (Informal Lemma 4.4). Let RR be a core relation and let α\alpha be an assignment to a set of variables. There is an RR-instance whose satisfying assignments on these variables are exactly the assignments π∘α\pi\circ\alpha, where the same automorphism π\pi of RR is applied to every variable.

Here is the idea behind the lemma. Introduce one dummy variable yay_a for every value aa in the domain. Add constraints among these variables so that, under any satisfying assignment, the map sending aa to the value of yay_a preserves RR and is therefore an endomorphism. Since RR is a core relation, this map must be an automorphism. We then attach every original variable xx to these dummy variables so that xx must receive the image of α(x)\alpha(x) under the same automorphism. Thus all original variables follow one common symmetry of RR.

Every assignment π∘αj\pi\circ\alpha_j satisfies and violates exactly the same RR-constraints as αj\alpha_j. Bob can therefore append the instance from the informal lemma in the ideal reduction above. If bj=0b_j = 0, an automorphic image of αj\alpha_j satisfies the final instance. If bj=1b_j = 1, every assignment satisfying Bob’s constraints violates CjC_j. A streaming algorithm for satisfiability would therefore give a one-way protocol for INDEX⁡m\operatorname{INDEX}_m, proving the ΩR(NRD⁡n(R))\Omega_R(\operatorname{NRD}_n(R)) lower bound for core relations. Reducing an arbitrary relation to its core gives the characterization in § 5.

For the sake of brevity, we next discuss the techniques that underlie the Exact-CSP results. For a discussion of the sparsification and minimization results, we encourage the reader to look at § 6.

Exact-CSP

We now explain why exact optimization requires a stronger pinning construction than satisfiability. Let dd be the degree of the indicator function of the core relation. Informally, this is the largest number of coordinates that occur together in a monomial of its polynomial representation. Our result gives an OR(ndlog⁡n)O_R(n^d \log n) upper bound and a matching ΩR(nd)\Omega_R(n^d) lower bound up to the logarithmic factor. The formal statement is Theorem 7.1, and the formal definition of degree is in § 3.5.

As before, we first reduce the relation to its core. The upper bound stores the coefficients of the low-degree polynomial representing the value of the instance. For the lower bound, the ideal reduction again asks Bob to hard-pin complete assignments. It is tempting to use Lemma 4.4 for this purpose. But that lemma is not strong enough here. It describes assignments that satisfy every pinning constraint, whereas an optimal assignment may violate some pinning constraints in order to satisfy more of Alice’s constraints. We therefore first describe the ideal reduction and then explain how a stronger pinning construction ensures that such a violation cannot improve the objective.

Example 2.4 (Degree of CUT). For CUT on the domain {0,1}\{0,1\}, the indicator is 1CUT(x,y)=x+y−2xy\mathbf{1}_{\mathrm{CUT}}(x,y) = x+y-2xy. Its degree is therefore 2.

Example 2.5 (Degree of NAE). Let RNAE⊆{0,1}3R_{\mathrm{NAE}} \subseteq\{0,1\}^3 contain the tuples whose three entries are not all equal. Its indicator is 1RNAE(x,y,z)=x+y+z−xy−xz−yz\mathbf{1}_{R_{\mathrm{NAE}}}(x,y,z) = x+y+z-xy-xz-yz. Thus RNAER_{\mathrm{NAE}} has degree 2 even though its arity is 3.

Upper bound. The upper bound follows directly from the polynomial representation. Kol, Paramonov, Saxena, and Yu [36] give the Boolean version. They write the value of an instance as a polynomial in the variables and store its coefficients. Each arriving constraint adds one fixed low-degree polynomial to this coefficient table. We use the same idea over an arbitrary finite domain, using the value indicators from § 3.5 in place of Boolean variables.

Example 2.6 (The upper bound for CUT). Consider a stream of edges defining a CUT-instance. By the expansion above, an arriving edge {xu,xv}\{x_u,x_v\} contributes xu+xv−2xuxvx_u+x_v-2x_ux_v to the value of every assignment. The algorithm adds these three coefficients to its table. After the stream, the sum of the stored terms is exactly the number of edges cut by every assignment. There are only O(n2)O(n^2) possible terms, and their coefficients use O(log⁡n)O(\log n) bits on a simple instance. The algorithm may then try every assignment, evaluate the stored polynomial, and return its maximum. Thus Exact-CSP(CUT) uses O(n2log⁡n)O(n^2\log n) space.

The same argument works over every finite domain. If the indicator of the core relation has degree dd, each arriving constraint contributes a fixed polynomial whose terms involve at most dd variables. Across all scopes, there are only OR(nd)\mathrm{O}_R(n^d) possible terms. The algorithm stores the coefficient of each term, and after the stream it tries all assignments and returns the largest value. This gives the OR(ndlog⁡n)\mathrm{O}_R(n^d \log n) upper bound and extends the Boolean argument of Kol, Paramonov, Saxena, and Yu to arbitrary finite domains.

The lower bound. We again reduce from one-way INDEX. We call the values of Alice’s instance at assignments chosen by Bob point evaluations. The following CUT example shows how degree lets Bob combine these point evaluations to recover his bit.

Example 2.7 (Four point evaluations for CUT). Alice receives bits bijb_{ij} indexed by (i,j)∈[N]2(i,j) \in[N]^2. She creates vertices x1,…,xNx_1,\ldots,x_N and y1,…,yNy_1,\ldots,y_N, and inserts the edge {xi,yj}\{x_i,y_j\} whenever bij=1b_{ij}=1. Let PP denote the resulting graph.

Bob receives a pair (p,q)(p,q). He uses four assignments. The assignment s00s_{00} sets every variable to 00. The assignment s10s_{10} sets only xpx_p to 11, the assignment s01s_{01} sets only yqy_q to 11, and the assignment s11s_{11} sets only xpx_p and yqy_q to 11. In the ideal reduction, Bob makes four copies of Alice’s streaming state and appends a different input to each copy, one for each of these assignments. The four point evaluations satisfy

val⁡P(s11)−val⁡P(s10)−val⁡P(s01)+val⁡P(s00)=−2bpq.\operatorname{val}_P(s_{11})-\operatorname{val}_P(s_{10})-\operatorname{val}_P(s_{01})+\operatorname{val}_P(s_{00})=-2b_{pq}.

To see the cancellation, consider one edge of PP. An edge not incident to xpx_p or yqy_q contributes zero to the signed sum. An edge incident to exactly one of them contributes equally to two terms with opposite signs. The only edge that can remain is {xp,yq}\{x_p,y_q\}. If it is present, it is cut under s10s_{10} and s01s_{01} but not under s00s_{00} or s11s_{11}, giving a total contribution of −2-2.

Thus Bob can recover bpqb_{pq} if the run from each copy reveals the value of PP at its chosen assignment. If Bob could directly hard-pin the chosen assignment, he could append the required constraints in each run. For CUT, it is enough to force either that assignment or its complement, since complementation preserves the value of every CUT-instance. The optimum of the resulting instance, after subtracting the known number of pinning constraints, would reveal the required point evaluation.

Roughly, the same ideal reduction extends to every core relation of degree dd. Alice’s bits are indexed by [N]d[N]^d, and Bob considers 2d2^d assignments obtained by changing the selected variable in each of dd groups. A signed sum of their values cancels every constraint except the one indexed by Bob’s query. If Bob could hard-pin each assignment in one run of the streaming algorithm, these 2d2^d optimum values would reveal his bit.

It would be tempting to use the same satisfiability hard-pinning lemma, Lemma 4.4. However, it only controls assignments that satisfy the whole pinning instance. An optimum for the exact-optimization problem might instead violate one pinning constraint and gain many constraints from Alice’s instance. We therefore replace the constant-size pinning gadget by large blocks whose constraints outweigh every possible gain from PP.

Example 2.8 (Strong pinning for CUT). The graph PP has 2N2N vertices, at most N2N^2 edges, and maximum degree at most NN. Fix an assignment ss to its vertices. We want to add a gadget that forces every optimum to agree with ss on the original vertices, up to complementing every value. To do this, we introduce extra vertices. Let L=1000NL=1000N, and create two blocks Z0,Z1Z_0,Z_1, each containing

LL vertices. Add every edge between the two blocks. For every original vertex xx, add 10N10N edges from xx to distinct vertices in Z1Z_1 when s(x)=0s(x)=0, and to distinct vertices in Z0Z_0 when s(x)=1s(x)=1.

We first show that every optimum makes the two blocks monochromatic, meaning that all vertices in each block receive the same value, and gives the blocks opposite values. Choose a most frequent value in each block. If these two values are the same, at least L2/4L^2/4 edges between the blocks are uncut. Making the blocks monochromatic with opposite values cuts all block edges and loses at most the 20N220N^2 edges attached to the original vertices. Since L2/4>20N2L^2/4>20N^2, an optimum must have opposite majority values. Up to complementing the entire cut, assume that the majority value of Z0Z_0 is 0 and that of Z1Z_1 is 1.

Let aa be the number of vertices assigned 1 in Z0Z_0, and let cc be the number assigned 0 in Z1Z_1. The number of uncut edges between the blocks is a(L−c)+(L−a)c=L(a+c)−2ac≥L(a+c)/2a(L-c)+(L-a)c=L(a+c)-2ac\ge L(a+c)/2. Making both blocks monochromatic according to their majority values gains these edges and loses at most 2N(a+c)2N(a+c) attached edges. Since L/2>2NL/2>2N, an optimum must have a=c=0a=c=0. Thus Z0Z_0 is entirely 0 and Z1Z_1 is entirely 1, up to complementing all values.

Once the blocks are fixed, every original vertex xx receives all its 10N10N attached edges exactly when x=s(x)x=s(x). Giving xx the other value loses 10N10N attached edges and can gain at most its NN incident edges in PP. Hence every optimum agrees with ss on all original vertices, up to complementing the whole assignment.

Let HsH_s denote the block and attached edges. The intended assignment cuts every edge of HsH_s, and complementation preserves the value of every CUT-instance. Therefore

OPT⁡max⁡(P∪Hs)=∣Hs∣+val⁡P(s).\operatorname{OPT}_{\max}(P\cup H_s)=|H_s|+\operatorname{val}_P(s).

The construction depends only on the public value NN and on ss, so Bob can build it without knowing which edges Alice inserted.

Bob now makes four copies of Alice’s streaming state and appends Hs00H_{s_{00}}, Hs10H_{s_{10}}, Hs01H_{s_{01}}, and Hs11H_{s_{11}} to the respective copies. From each optimum, he subtracts the known size of the appended gadget and obtains one point evaluation of PP. Their alternating sum reveals bpqb_{pq}, giving an Ω(N2)\Omega(N^2) lower bound for Exact-CSP(CUT).6

For a general core relation of degree dd, the construction in Lemma 4.6 plays the same role. It replaces the two CUT blocks by one block for every value in the core domain. The constraints among the blocks force their most frequent values to define one common endomorphism, which must be an automorphism because the relation is a core. The attached constraints then force the original variables to follow the desired assignment under this automorphism. As in the CUT example, the blocks are large enough that every deviation loses more attached constraints than it can gain in Alice’s instance.

The formal construction gives exactly the property needed in the communication reduction.

Lemma 2.9 (Informal Lemma 4.6). Let RR be a core relation, and let PP be a simple RR-instance on OR(N)O_R(N) variables with at most NdN^d constraints and maximum variable degree at most Nd−1N^{d-1}. For every assignment ss to the variables of PP, there is an RR-instance HsH_s, using OR(N)O_R(N) additional variables and constructible without knowing the constraints of PP, such that OPT⁡max⁡(P∪Hs)=∣Hs∣+val⁡P(s)\operatorname{OPT}_{\max}(P\cup H_s)=|H_s|+\operatorname{val}_P(s).

Alice’s instance and each pinning gadget use only OR(N)O_R(N) variables. Bob can therefore recover the 2d2^d point evaluations needed by the signed sum, and the lower bound for INDEX⁡Nd\operatorname{INDEX}_{N^d} gives the ΩR(nd)\Omega_R(n^d) space lower bound.

The two lower bounds therefore use the same structural principle. We first reduce exactly to the core and then recover the variable pinnings. For satisfiability, it is enough to restrict the satisfying assignments up to one common automorphism. For exact optimization, the restriction must additionally be strong enough that violating it is never profitable. The sparsification result uses the same core reduction to obtain the minimization characterization.

Relation to prior work

We first explain how our results extend the earlier work of Sharma and Velusamy [SV26a]. Here, a constraint language is a fixed finite set of relations over the same domain. They proved the satisfiability characterization in two settings. First, they considered every finite domain but allowed literals: when the domain is Zq\mathbb{Z}_q, each occurrence of a variable xx in a constraint may be replaced by x+λx+\lambda modulo qq, for an arbitrary λ∈Zq\lambda\in\mathbb{Z}_q. In the Boolean setting, this is exactly the choice between xx and ¬x\neg x. These shifts give the lower bound construction more freedom. For a fixed relation, a lower bound that uses nonzero shifts need not apply when all shifts are zero.

Their second result concerns positive Boolean CSPs, meaning Boolean CSPs without literals. They assume that the constraint language is not “constant-satisfiable”. This means that there is no value c∈{0,1}c \in\{0,1\} for which assigning every variable the value cc satisfies every relation in the language. This is the general interesting case for positive Boolean CSPs, since otherwise every instance has the same constant satisfying assignment.

Lemma 2.10 (Informal Lemmas A.2 and A.7). Reducing a language with literals to its core does not change its non-redundancy. Moreover, a Boolean constraint language is a core if and only if it is not constant-satisfiable.

Our core viewpoint uses these two facts to explain both earlier results. For the literal model, treat every shifted use of a relation as a separate relation. The resulting language is shift-closed, so the first part of the lemma shows that passing to its core does not change its non-redundancy. Our general core characterization therefore gives the earlier characterization for CSPs with literals. For the positive Boolean result, the only non-bijective maps on the Boolean domain are the two constant maps, which send both domain values to 0 or both to 1. The second part of the lemma therefore shows that the assumption of not being constant-satisfiable is exactly the assumption that the language is a core.

Our work then goes beyond both results by giving a characterization in the most general finite-domain setting. The precise statements and their proofs are given in Section A.

We also compare our exact-optimization result with the work of Kol, Paramonov, Saxena, and Yu [36]. Their general characterization is restricted to Boolean CSPs with literals and constants. Our result applies to arbitrary relations, requiring neither literals nor constants, giving a characterization in the more general CSP setting. However, their lower bound does extend to a constant number of passes. We view an extension of our result to the multi-pass setting as an exciting future direction.

Preliminaries

In this section, we state the definitions used in the rest of the paper.

CSPs

Throughout the paper, DD is a fixed finite nonempty domain and R⊆DkR \subseteq D^k is a fixed relation of arity k≥1k \ge1. We work with ordinary RR-constraints, without literals or shifts. We refer to this as the general finite-domain setting, since the finite domain and relation are arbitrary. We call RR non-trivial if ∅⊊R⊊Dk\varnothing\subsetneq R \subsetneq D^k. The asymptotic symbols ORO_R, ΩR\Omega_R, and ΘR\Theta_R hide constants that may depend on RR.

Let V={x1,…,xn}V = \{x_1,\ldots,x_n\} be a set of variables. An RR-constraint is an expression R(xi1,…,xik)R(x_{i_1},\ldots,x_{i_k}), and its scope is the ordered variable tuple (xi1,…,xik)(x_{i_1},\ldots,x_{i_k}). The order matters unless RR is symmetric. Variables may repeat within a scope. An assignment α:V→D\alpha: V \to D satisfies this constraint if (α(xi1),…,α(xik))∈R(\alpha(x_{i_1}),\ldots,\alpha(x_{i_k})) \in R.

An unweighted RR-instance II is a finite multiset of RR-constraints. Thus the same constraint may occur more than once, and ∣I∣|I| counts constraints with multiplicity. A weighted instance gives every occurrence of a constraint CC a nonnegative rational weight w(C)w(C) represented in binary. Unweighted instances are the special case in which every weight is 1. The support of a weighted instance is the set of constraint occurrences with nonzero weight. A weighted subinstance H⊆IH \subseteq I uses only occurrences from II, but it may give them new nonnegative weights.

An instance is simple if no ordered scope occurs more than once. The degree of a variable is the number of constraint occurrences whose scopes contain it. A constraint contributes once to this degree even if the variable appears more than once in its scope. The maximum variable degree is denoted by Δ(I)\Delta(I). A relation is symmetric if membership in RR is unchanged by permuting the kk coordinates. For a symmetric relation, we also use the stronger notion of unordered simplicity. This means that no two scopes become the same multiset of variables after their coordinates are reordered.

Example 3.1. Let D={0,1}D = \{0,1\} and CUT={(0,1),(1,0)}\mathrm{CUT} = \{(0,1),(1,0)\}. A CUT-constraint CUT(x,y)\mathrm{CUT}(x,y) requires xx and yy to receive different values. Thus a CUT-instance is a graph, with one variable at each vertex and one constraint at each edge.

Objectives and streaming space

We next define the three objectives studied in the paper. We state them for a weighted RR-instance, which is the more general setting. The inputs to our three problems are unweighted unless we say otherwise. Let II be a weighted RR-instance and let α\alpha be an assignment to its variables. We write

val⁡I(α)=∑C∈Iα satisfies Cw(C)andunsatval⁡I(α)=∑C∈Iα violates Cw(C).\operatorname{val}_I(\alpha) = \sum_{\substack{C \in I\\ \alpha\text{ satisfies }C}} w(C) \qquad\text{and} \qquad\operatorname{unsatval}_I(\alpha) = \sum_{\substack{C \in I\\ \alpha\text{ violates }C}} w(C).

Thus val⁡I(α)\operatorname{val}_I(\alpha) is the weight of the satisfied constraints and unsatval⁡I(α)\operatorname{unsatval}_I(\alpha) is the weight of the violated constraints. We define

OPT⁡max⁡(I)=max⁡αval⁡I(α)andOPT⁡min⁡(I)=min⁡αunsatval⁡I(α).\operatorname{OPT}_{\max}(I) = \max_{\alpha} \operatorname{val}_I(\alpha) \qquad\text{and} \qquad\operatorname{OPT}_{\min}(I) = \min_{\alpha} \operatorname{unsatval}_I(\alpha).

The set of satisfying assignments is Sat⁡(I)={α:unsatval⁡I(α)=0}\operatorname{Sat}(I) = \{\alpha: \operatorname{unsatval}_I(\alpha) = 0\}. The problem SAT(R)\mathrm{SAT}(R) asks whether Sat⁡(I)\operatorname{Sat}(I) is nonempty. The problem Min-CSP(R)\mathrm{Min\text{-}CSP}(R) asks for OPT⁡min⁡(I)\operatorname{OPT}_{\min}(I), and a γ\gamma-approximation must return a number between OPT⁡min⁡(I)\operatorname{OPT}_{\min}(I) and γOPT⁡min⁡(I)\gamma\operatorname{OPT}_{\min}(I). We write Min-CSPγ(R)\mathrm{Min\text{-}CSP}_{\gamma}(R) for this approximation problem. Finally, Exact-CSP(R)\mathrm{Exact\text{-}CSP}(R) asks for the exact value OPT⁡max⁡(I)\operatorname{OPT}_{\max}(I). Instances are unweighted unless we explicitly say otherwise.

We will also use a stronger guarantee than merely approximating OPT⁡min⁡(I)\operatorname{OPT}_{\min}(I). A weighted subinstance H⊆IH \subseteq I is a (1±ε)(1 \pm\varepsilon) sparsifier of II if (1−ε)unsatval⁡I(α)≤unsatval⁡H(α)≤(1+(1-\varepsilon)\operatorname{unsatval}_I(\alpha) \le\operatorname{unsatval}_H(\alpha) \le(1+ ε\varepsilon) unsatval⁡I(α)\operatorname{unsatval}_{I}(\alpha) for every assignment α\alpha. As we show in Corollary 6.2, running the sparsifier with a slightly smaller error and minimizing these inequalities gives a (1+ε)(1+\varepsilon)-approximation to OPT⁡min⁡(I)\operatorname{OPT}_{\min}(I).

In the streaming model, the constraints arrive one at a time in an arbitrary order, and the algorithm makes one pass over this insertion-only stream. The domain and relation are fixed and are not part of the stream. We use nn for the number of variables and mm for the stream length. There is no restriction on the update time or on the time used after the stream. We measure only the number of stored bits.

Unless stated otherwise, a randomized algorithm must be correct with probability at least 2/32/3 on every input. We write SPACE⁡(Π)\operatorname{SPACE}(\Pi) for the minimum worst-case space of such a one-pass algorithm for a problem Π\Pi. Upper bounds described as deterministic use no randomness, while all lower bounds also apply to randomized bounded-error algorithms.

Non-redundancy

Non-redundancy measures how many constraints can be independently necessary for satisfiability. Let II be an unweighted RR-instance and let C∈IC \in I. We call CC redundant in II if every assignment satisfying all constraints obtained by removing this occurrence of CC also satisfies CC. Otherwise, there is an assignment that violates CC and satisfies every other constraint of II. We call such an assignment a witness for CC. The instance II is nonredundant if every one of its constraints has a witness.

We define NRD⁡n(R)\operatorname{NRD}_{n}(R) to be the maximum number of constraints in a nonredundant RR-instance on at most nn variables.

Example 3.2. For the relation CUT, every forest gives a nonredundant instance. Fix an edge and remove it. The two endpoints are now in different components. We can properly 2-color each component and choose the colors so that these endpoints receive the same value. This assignment violates the removed edge and satisfies every other edge, so it is a witness for that edge.

We will use the following elementary lower bound to account for the space needed to store an assignment.

Observation 3.3. If R⊊DkR \subsetneq D^{k} is nonempty, then NRD⁡n(R)=ΩR(n)\operatorname{NRD}_{n}(R) = \Omega_{R}(n).

Proof. Choose a tuple r∈Rr \in R and a tuple u∈Dk∖Ru \in D^{k} \setminus R. Partition k⌊n/k⌋k\lfloor n/k\rfloor variables into disjoint ordered scopes of size kk, and put one RR-constraint on each scope. To witness one chosen constraint, assign the tuple uu to its scope and the tuple rr to every other scope. The chosen constraint is violated and all other constraints are satisfied. The resulting instance is nonredundant and has ⌊n/k⌋=ΩR(n)\lfloor n/k\rfloor= \Omega_{R}(n) constraints.

By definition, a non-trivial relation is nonempty and is not equal to DkD^{k}. Thus the observation shows that non-redundancy is at least linear for every non-trivial fixed relation, although it may be much larger. Our satisfiability and minimization results depend on its value for the core of RR, which we define next.

Cores, automorphisms, and hard pinnings

We now define the core of a relation. A map σ:D→D\sigma: D \to D is an endomorphism of RR if applying σ\sigma to every coordinate of a tuple in RR always gives another tuple in RR. Equivalently, σ(R)⊆R\sigma(R) \subseteq R. An endomorphism is an automorphism if it is a bijection. In this case σ(R)=R\sigma(R) = R. We write Aut⁡(R)\operatorname{Aut}(R) for the set of automorphisms of RR. An endomorphism σ\sigma is idempotent if σ(σ(a))=σ(a)\sigma(\sigma(a)) = \sigma(a) for every a∈Da \in D. Choose an endomorphism with minimum image. Its restriction to its image is a permutation, since applying the map again cannot make the image smaller. A suitable power is therefore the identity on its image and is idempotent. We fix such an idempotent endomorphism σ\sigma and write C=σ(D)C = \sigma(D). We define

core⁡(R)=σ(R)=R∩Ck\operatorname{core}(R) = \sigma(R) = R \cap C^k

and call CC its core domain. We fix one such choice throughout the paper. The equality holds because an idempotent map fixes every value in its image. The relation core⁡(R)\operatorname{core}(R) is a core relation because every one of its endomorphisms is an automorphism. Indeed, a non-bijective endomorphism composed with σ\sigma would give an endomorphism of RR with image smaller than CC. We call RR itself a core relation when every endomorphism of RR is an automorphism.

Example 3.4. For CUT, every endomorphism must send 0 and 1 to different values. Hence its only endomorphisms are the identity and the map that swaps 0 and 1. Both are automorphisms, so CUT is a core relation.

For a relation that is not a core, let D={0,1,2}D = \{0,1,2\} and let

Rstar={(0,1),(1,0),(0,2),(2,0)}.R_{\mathrm{star}} = \{(0,1),(1,0),(0,2),(2,0)\}.

The map that fixes 0 and 1 and sends 2 to 1 is a non-bijective endomorphism of RstarR_{\mathrm{star}}. Therefore RstarR_{\mathrm{star}} is not a core relation. Its image is {0,1}\{0,1\}, and restricting the relation to this image gives CUT. Hence core⁡(Rstar)=CUT\operatorname{core}(R_{\mathrm{star}}) = \mathrm{CUT} on the core domain {0,1}\{0,1\}.

The automorphisms of a core relation are the only unavoidable ambiguity when we try to force variables to chosen values. Let XX be a set of variables and let s:X→Ds : X \to D be a fixed assignment. We say that an RR-instance PsP_s hard-pins ss up to one common automorphism if it may use additional variables and

{α∣X:α∈Sat⁡(Ps)}={σ∘s:σ∈Aut⁡(R)}.\{\alpha|_X : \alpha\in\operatorname{Sat}(P_s)\} = \{\sigma\circ s : \sigma\in\operatorname{Aut}(R)\}.

Example 3.5. For CUT, introduce two variables y0,y1y_0,y_1 and require CUT(y0,y1)\mathrm{CUT}(y_0,y_1). If s(x)=0s(x) = 0, add CUT(x,y1)\mathrm{CUT}(x,y_1). If s(x)=1s(x) = 1, add CUT(x,y0)\mathrm{CUT}(x,y_0). These constraints force every x∈Xx \in X to agree with ss after either the identity or the common swap of 0 and 1.

The relation RstarR_{\mathrm{star}} above explains why we first reduce to a core. Its non-bijective endomorphism replaces the value 2 by 1. Applying this map to any satisfying assignment gives another satisfying assignment, so constraints over RstarR_{\mathrm{star}} cannot in general distinguish these two values. After reducing RstarR_{\mathrm{star}} to its core CUT, the construction above applies.

In § 4.2, we prove that every core relation admits the same kind of construction.

Finite-domain degree

The parameter for Exact-CSP is the degree of the indicator function of the core relation. We define degree for any function f:Dk→Rf : D^k \to\mathbb{R}. The domain DD need not contain a value already called 0. We choose any value of DD and call it 0. This choice only fixes the notation, and the reader may think of it as the usual value 0. For each coordinate i∈[k]i \in[k] and each a∈D∖{0}a \in D \setminus\{0\}, define Zi,a(z)=1[zi=a]Z_{i,a}(z) = 1[z_i = a].

Every function f:Dk→Rf : D^k \to\mathbb{R} has a unique expansion

f(z)=∑T⊆[k] ∑b∈(D∖{0})Tf^(T,b)∏i∈TZi,bi(z)f(z) = \sum_{T \subseteq[k]} \ \sum_{b \in(D \setminus\{0\})^T} \widehat{f}(T,b) \prod_{i \in T} Z_{i,b_i}(z)

where bb chooses one nonzero value bib_i for every i∈Ti \in T. These products form a basis for all real-valued functions on DkD^k. This follows by evaluating the function on points that are 0 outside TT and using inclusion-exclusion. In particular, when ff is integer-valued, all the coefficients f^(T,b)\widehat{f}(T,b) are integers. We define deg⁡D(f)\deg_D(f) to be the largest ∣T∣|T| for which f^(T,b)≠0\widehat{f}(T,b) \ne0, with constant functions having degree 0. Changing the basepoint changes the coefficients but not the degree. Indeed, the indicator of the old basepoint is one minus the sum of the indicators of all other values. Thus either set of indicators can be written using the other without increasing degree.

For a relation R⊆DkR \subseteq D^k, we write 1R\mathbf{1}_R for its indicator function and use deg⁡D(1R)\deg_D(\mathbf{1}_R) as the degree of RR.

Example 3.6. For CUT, let Zi(z)=1[zi=1]Z_i(z) = \mathbf{1}[z_i = 1]. Then

1CUT(z1,z2)=Z1(z)+Z2(z)−2Z1(z)Z2(z),\mathbf{1}_{\mathrm{CUT}}(z_1,z_2) = Z_1(z) + Z_2(z) - 2Z_1(z)Z_2(z),

so deg⁡{0,1}(1CUT)=2\deg_{\{0,1\}}(\mathbf{1}_{\mathrm{CUT}}) = 2.

As another example, let RNAE⊆{0,1}3R_{\mathrm{NAE}} \subseteq\{0,1\}^3 contain the tuples that are not constant. With Zi(z)=1[zi=1]Z_i(z) = \mathbf{1}[z_i = 1], we have

1RNAE(z)=Z1(z)+Z2(z)+Z3(z)−Z1(z)Z2(z)−Z1(z)Z3(z)−Z2(z)Z3(z).\mathbf{1}_{R_{\mathrm{NAE}}}(z) = Z_1(z) + Z_2(z) + Z_3(z) - Z_1(z)Z_2(z) - Z_1(z)Z_3(z) - Z_2(z)Z_3(z).

Thus deg⁡{0,1}(1RNAE)=2\deg_{\{0,1\}}(\mathbf{1}_{R_{\mathrm{NAE}}}) = 2, even though RNAER_{\mathrm{NAE}} has arity 3.

The upper and lower bounds for Exact-CSP will both use this degree after reducing the relation to its core.

Communication complexity

Our streaming lower bounds use the one-way communication problem INDEXM\mathrm{INDEX}_M. Alice receives a string b∈{0,1}Mb \in\{0,1\}^M, Bob receives an index i∈[M]i \in[M], and Bob must output bib_i. In a public-coin one-way protocol, Alice and Bob share a random string, Alice sends one message to Bob, and Bob produces the answer from this message, his index, and the shared randomness.

The connection to streaming is standard. Alice creates the first part of a stream from her input, runs the streaming algorithm on it, and sends the memory state to Bob. Bob resumes the algorithm from this state and appends constraints determined by his index. The memory state is the only message, so an ss-space streaming algorithm gives a one-way protocol with ss bits of communication. The random tape of the streaming algorithm can be treated as the public random string.

We use the following standard lower bound.

Lemma 3.7 (One-way complexity of INDEX, [3, 32]). Every randomized public-coin one-way protocol for INDEXM\mathrm{INDEX}_M with constant error uses Ω(M)\Omega(M) bits of communication.

In each of our lower bounds, Alice’s part of the stream encodes her string, while Bob appends constraints that reveal the bit at his index. The rest of each reduction is devoted to constructing those constraints.

Properties of Cores

In this section, we prove the facts about cores that we will use throughout the paper. We first show that reducing to the core does not change any of our three objectives. We then give two ways to force an assignment using only constraints from a core relation. The first forces the assignment up to one common automorphism and will be used for satisfiability. The second makes the same idea strong enough for exact optimization.

We will repeatedly use the fact that applying one automorphism to every assigned value changes nothing. We state it in the following observation.

Observation 4.1. Let R⊆DkR \subseteq D^k, let II be an RR-instance, and let σ∈Aut⁡(R)\sigma\in\operatorname{Aut}(R). For every assignment α\alpha, we have val⁡I(σ∘α)=val⁡I(α)\operatorname{val}_I(\sigma\circ\alpha) = \operatorname{val}_I(\alpha). Therefore, unsatval⁡I(σ∘α)=unsatval⁡I(α)\operatorname{unsatval}_I(\sigma\circ\alpha) = \operatorname{unsatval}_I(\alpha).

Proof. Consider a constraint R(x1,…,xk)R(x_1,\ldots,x_k) of II. Since σ\sigma is an automorphism, the constraint is satisfied by α\alpha if and only if it is satisfied by σ∘α\sigma\circ\alpha. This holds for every constraint, which proves both equalities.

Reduction to the core

The first goal is to reduce all three streaming problems from RR to its core R⋆R^{\star}. The reduction keeps every constraint on the same scope. It only replaces the relation RR by R⋆R^{\star}. The next lemma states that this preserves the streaming space exactly.

Lemma 4.2. Let R⋆=core⁡(R)R^{\star} = \operatorname{core}(R). The following statements hold.

(i) SPACE⁡(SAT⁡(R))=SPACE⁡(SAT⁡(R⋆))\operatorname{SPACE}(\operatorname{SAT}(R)) = \operatorname{SPACE}(\operatorname{SAT}(R^{\star})).

(ii) for every γ≥1\gamma\geq1, SPACE⁡(Min-CSP⁡γ(R))=SPACE⁡(Min-CSP⁡γ(R⋆))\operatorname{SPACE}(\operatorname{Min\text{-}CSP}_{\gamma}(R)) = \operatorname{SPACE}(\operatorname{Min\text{-}CSP}_{\gamma}(R^{\star})).

(iii) SPACE⁡(Exact-CSP⁡(R))=SPACE⁡(Exact-CSP⁡(R⋆))\operatorname{SPACE}(\operatorname{Exact\text{-}CSP}(R)) = \operatorname{SPACE}(\operatorname{Exact\text{-}CSP}(R^{\star})).

The reductions preserve the number of variables and constraints, the scope of each corresponding constraint, stream order, and simplicity. If RR is symmetric, then R⋆R^{\star} is symmetric as well.

To prove Lemma 4.2, we first prove that the same replacement preserves the two optimum values of every instance.

Lemma 4.3. Let R⊆DkR \subseteq D^k, let σ:D→C\sigma: D \to C be an idempotent endomorphism of minimum image, and let R⋆=core⁡(R)=σ(R)=R∩CkR^{\star} = \operatorname{core}(R) = \sigma(R) = R \cap C^k. Given an RR-instance II, let I⋆I^{\star} be the R⋆R^{\star}-instance obtained by replacing every constraint R(x1,…,xk)R(x_1,\ldots,x_k) by R⋆(x1,…,xk)R^{\star}(x_1,\ldots,x_k) on the same scope. Then OPT⁡max⁡(I)=OPT⁡max⁡(I⋆)\operatorname{OPT}_{\max}(I) = \operatorname{OPT}_{\max}(I^{\star}) and OPT⁡min⁡(I)=OPT⁡min⁡(I⋆)\operatorname{OPT}_{\min}(I) = \operatorname{OPT}_{\min}(I^{\star}). In particular, II is satisfiable if and only if I⋆I^{\star} is satisfiable.

Proof. Let α\alpha be any assignment for II. If R(x1,…,xk)R(x_1,\ldots,x_k) is satisfied by α\alpha, then (α(x1),…,α(xk))∈R(\alpha(x_1),\ldots,\alpha(x_k)) \in R, and applying the endomorphism σ\sigma gives (σ(α(x1)),…,σ(α(xk)))∈σ(R)=R⋆(\sigma(\alpha(x_1)),\ldots,\sigma(\alpha(x_k))) \in\sigma(R) = R^{\star}. Hence val⁡I⋆(σ∘α)≥val⁡I(α)\operatorname{val}_{I^{\star}}(\sigma\circ\alpha) \geq\operatorname{val}_I(\alpha) and unsatval⁡I⋆(σ∘α)≤unsatval⁡I(α)\operatorname{unsatval}_{I^{\star}}(\sigma\circ\alpha) \leq\operatorname{unsatval}_I(\alpha). Taking an assignment that is optimal for the relevant objective gives OPT⁡max⁡(I⋆)≥OPT⁡max⁡(I)\operatorname{OPT}_{\max}(I^{\star}) \geq\operatorname{OPT}_{\max}(I) and OPT⁡min⁡(I⋆)≤OPT⁡min⁡(I)\operatorname{OPT}_{\min}(I^{\star}) \leq\operatorname{OPT}_{\min}(I).

For the reverse direction, consider any assignment β\beta taking values in CC. Since R⋆=R∩CkR^{\star} = R \cap C^k, every constraint is satisfied by β\beta as an RR-constraint if and only if it is satisfied by β\beta as an R⋆R^{\star}-constraint. In particular, an assignment attaining either optimum for I⋆I^{\star} is also an assignment for II with the same value. Therefore OPT⁡max⁡(I)≥OPT⁡max⁡(I⋆)\operatorname{OPT}_{\max}(I) \geq\operatorname{OPT}_{\max}(I^{\star}) and OPT⁡min⁡(I)≤OPT⁡min⁡(I⋆)\operatorname{OPT}_{\min}(I) \leq\operatorname{OPT}_{\min}(I^{\star}). Combining the two directions proves both equalities, and the satisfiability claim follows from OPT⁡min⁡=0\operatorname{OPT}_{\min} = 0.

We can now prove the streaming reduction. The point is that the instance level argument did not change any scope. Proof of Lemma 4.2. Given a stream of RR-constraints, replace each arriving constraint by the R⋆R^\star-constraint on the same scope and run an algorithm for R⋆R^\star. By Lemma 4.3, the final instance has the same two optimum values and is satisfiable exactly when the original instance is satisfiable. Conversely, replace every R⋆R^\star-constraint by the RR-constraint on the same scope and use the same lemma again. Both transformations use only constant extra space and preserve the number of variables and constraints, the stream order, and simplicity. Finally, if RR is symmetric, then R⋆=R∩CkR^\star= R \cap C^k is symmetric as well. □

Thus, from this point on, we may reduce to the core before proving any upper or lower bound.

Hard pinnings in a core relation

For the satisfiability lower bound, Bob will want to force the variables to a chosen witness assignment ss. Ordinary RR-constraints may not be able to distinguish ss from σ∘s\sigma\circ s for an automorphism σ\sigma, but this ambiguity is harmless by Observation 4.1. The next lemma shows that this is the only ambiguity we need to keep.

Lemma 4.4 (Hard pinning). Let R⊆DkR \subseteq D^k be a core relation, let XX be a set of variables, and let s:X→Ds : X \to D. There is an RR-instance PsP_s on XX and OR(1)O_R(1) additional variables such that

{α∣X:α∈Sat⁡(Ps)}={σ∘s:σ∈Aut⁡(R)}.\{\alpha|_X : \alpha\in\operatorname{Sat}(P_s)\} = \{\sigma\circ s : \sigma\in\operatorname{Aut}(R)\}.

Moreover, PsP_s has OR(∣X∣+1)O_R(|X| + 1) constraints.

The proof uses the following property of cores. Changing one domain value to another must make some tuple leave the relation.

Lemma 4.5. Let R⊆DkR \subseteq D^k be a core relation. For every distinct a,b∈Da,b \in D, there is a tuple r=(r1,…,rk)∈Rr=(r_1,\ldots,r_k) \in R and a coordinate t∈[k]t \in[k] such that rt=ar_t=a and $r^{t\gets b} \notin R.

Proof. Define σ:D→D\sigma: D \to D by σ(a)=b\sigma(a)=b and σ(c)=c\sigma(c)=c for c≠ac \ne a. The map σ\sigma is not injective, so it cannot be an endomorphism of the core relation RR. Choose r∈Rr \in R such that σ(r)∉R\sigma(r) \notin R, and replace the occurrences of aa in rr by bb one at a time. The initial tuple is in RR and the final tuple is not, so at some first replacement we obtain a tuple outside RR. Immediately before that replacement we have a tuple r′∈Rr' \in R with rt′=ar'_t=a, while (r′)t←b∉R(r')^{t\gets b} \notin R. This is the required tuple. □

We now build the hard-pinning instance. Intuitively, we introduce additional variables to represent the values of DD, and a group of constraints forces their assigned values to form one automorphism of RR.

Proof of Lemma 4.4. The first step is to introduce extra variables that represent the values in the domain, up to one common automorphism. For CUT, these are two adjacent variables, so they must receive opposite values. More formally, for every a∈Da \in D, introduce an extra variable yay_a. For every tuple r=(r1,…,rk)∈Rr=(r_1,\ldots,r_k) \in R, add the constraint R(yr1,…,yrk)R(y_{r_1},\ldots,y_{r_k}). Next, we add constraints that pin the variables in XX to ss up to the same automorphism. For every x∈Xx \in X, every r∈Rr \in R, and every t∈[k]t \in[k] with rt=s(x)r_t=s(x), also add R(yr1,…,yrt−1,x,yrt+1,…,yrk)R(y_{r_1},\ldots,y_{r_{t-1}},x,y_{r_{t+1}},\ldots,y_{r_k}). Call the resulting instance PsP_s. It uses ∣D∣=OR(1)|D|=O_R(1) extra variables and OR(∣X∣+1)O_R(|X|+1) constraints.

We now prove that the added constraints give the required hard pinning. Let α\alpha satisfy PsP_s and define σ:D→D\sigma: D \to D by σ(a)=α(ya)\sigma(a)=\alpha(y_a). The first family of constraints shows that σ(r)∈R\sigma(r) \in R for every r∈Rr \in R, so σ\sigma is an endomorphism of RR. Since RR is a core, σ\sigma is an automorphism. Fix x∈Xx \in X, put a=s(x)a=s(x), and let b=σ−1(α(x))b=\sigma^{-1}(\alpha(x)). Suppose b≠ab \ne a. By Lemma 4.5, there are r∈Rr \in R and t∈[k]t \in[k] such that that rt=ar_t=a and rt←b∉Rr^{t\leftarrow b}\notin R. The corresponding constraint from the second family is assigned the tuple σ(rt←b)\sigma(r^{t\leftarrow b}), which is not in RR because σ\sigma is an automorphism. This contradicts that α\alpha satisfies PsP_s. Hence α(x)=σ(s(x))\alpha(x)=\sigma(s(x)) for every x∈Xx\in X.

Conversely, fix any σ∈Aut⁡(R)\sigma\in\operatorname{Aut}(R) and assign ya↦σ(a)y_a\mapsto\sigma(a) and x↦σ(s(x))x\mapsto\sigma(s(x)). Every constraint in both families is then assigned a tuple of the form σ(r)\sigma(r) for some r∈Rr\in R, so all constraints are satisfied. The restrictions of satisfying assignments to XX are therefore exactly the assignments σ∘s\sigma\circ s with σ∈Aut⁡(R)\sigma\in\operatorname{Aut}(R).

The gadget therefore behaves like a genuine pinning whenever the objective is unchanged by a common automorphism. For exact optimization we need more because the goal is not merely to satisfy the whole instance. An assignment may gain constraints in the original instance by violating some constraints in the pinning gadget. We therefore need to ensure that deviating from the intended assignment loses more gadget constraints than it can gain in the original instance. We do this next.

Pinning for exact optimization

We now strengthen the construction for exact optimization. The input instance PP may reward an assignment for moving away from ss, so a merely satisfiable pinning gadget is not enough. Intuitively, we replace each domain value by a block of many variables. The constraints among the blocks create a large loss unless their most frequent values form an automorphism, and the constraints joining PP to the blocks create a large loss whenever an original variable disagrees with ss under that automorphism.

Lemma 4.6. Let R⊆DkR\subseteq D^k be a core relation with k≥2k\ge2, and fix 1≤d≤k1\le d\le k. Let PP be a simple RR-instance on OR(N)O_R(N) variables, with at most NdN^d constraints and maximum variable degree at most Nd−1N^{d-1}. For every assignment ss to the variables of PP, there is an unweighted RR-instance HsH_s, using the variables of PP and OR(N)O_R(N) additional variables, such that P∪HsP\cup H_s is simple and

OPT⁡max⁡(P∪Hs)=∣Hs∣+val⁡P(s).\operatorname{OPT}_{\max}(P\cup H_s)=|H_s|+\operatorname{val}_P(s).

If RR is symmetric and PP has no repeated unordered scope, then P∪HsP\cup H_s has no repeated unordered scope. Moreover, HsH_s can be constructed from RR, the variable set of PP, the assignment ss, and the public parameters NN and dd. It does not depend on the constraints of PP.

Proof of Lemma 4.6. Let XX be the variable set of PP, let BB be the number of constraints in PP, and let Δ\Delta be its maximum variable degree. Thus B≤NdB\le N^d and Δ≤Nd−1\Delta\le N^{d-1}. We will choose a constant CRC_R below and set m=CRNm=C_RN.

The construction follows the same idea as Lemma 4.4. We first create many variables that represent each value of the domain up to one common automorphism. We then connect the variables of PP to these new variables. More formally, for every a∈Da\in D, create a block ZaZ_a of mm new variables. For every tuple r=(r1,…,rk)∈Rr=(r_1,\ldots,r_k)\in R and every choice of pairwise distinct variables zi∈Zriz_i\in Z_{r_i}, add the constraint R(z1,…,zk)R(z_1,\ldots,z_k). We call these the block constraints. Next fix x∈Xx\in X and put r=s(x)r=s(x). For every r∈Rr\in R, every t∈[k]t\in[k] with rt=ar_t=a, and every choice of pairwise distinct variables zj∈Zrjz_j\in Z_{r_j} for j≠tj\ne t, add the constraint R(z1,…,zt−1,x,zt+1,…,zk)R(z_1,\ldots,z_{t-1},x,z_{t+1},\ldots,z_k). We call these the attached constraints for xx. If the same ordered scope arises more than once, keep only one constraint. When RR is symmetric, keep only one constraint for each unordered scope. Let HsH_s be the union of the block constraints and all the attached constraints.

Firstly note that the instance P∪HsP\cup H_s is simple. This is because the constraints of PP use only variables in XX, block constraints use only variables from the blocks, and an attached constraint for xx uses xx together with k−1k-1 variables from the blocks. The removal of duplicate scopes makes each family simple, and attached constraints for two different variables of XX cannot have the same scope. The number of new variables is ∣D∣m=OR(N)|D|m = O_R(N). This construction uses the variable set of PP but not its constraints, as required in the final part of the lemma.

We next show the counting bound that we need. Let q=∣D∣q = |D|. Under any assignment α\alpha, choose a most frequent value in each block ZaZ_a and denote it by σ(a)\sigma(a). This value appears at least m/qm/q times in ZaZ_a. Consider any sequence of ℓ≤k\ell\le k blocks and choose one variable from each block in order. At every step, at most k−1k-1 variables are forbidden by the earlier choices. Hence, when m≥2qkm \ge2qk, there are at least m/(2q)m/(2q) choices at every step and at least (m/(2q))ℓ(m/(2q))^\ell pairwise distinct choices in total. At most k!k! ordered choices give the same unordered scope. We may therefore fix a constant ηR>0\eta_R > 0 such that there are at least ηRmℓ\eta_Rm^\ell distinct ordered scopes, and also at least ηRmℓ\eta_Rm^\ell distinct unordered scopes when RR is symmetric. For a fixed tuple rr, different ordered choices give different ordered scopes of block constraints. The same is true for the attached constraints when xx, rr, and tt are fixed. Thus the bound continues to hold after we remove repeated scopes.

Choose CRC_R large enough that CR≥2qkC_R \ge2qk, ηRCRk>1\eta_RC_R^k > 1, and ηRCRk−1>1\eta_RC_R^{k-1} > 1. Since m=CRNm = C_RN, B≤NdB \le N^d, Δ≤Nd−1\Delta\le N^{d-1}, and d≤kd \le k, we then have ηRmk>B\eta_Rm^k > B and ηRmk−1>Δ\eta_Rm^{k-1} > \Delta for every N≥1N \ge1.

We can now compare every assignment with the intended one. Assigning x↦s(x)x \mapsto s(x) for x∈Xx \in X and assigning every variable in ZaZ_a the value aa satisfies all constraints of HsH_s. Therefore OPT⁡max⁡(P∪Hs)≥∣Hs∣+val⁡P(s)\operatorname{OPT}_{\max}(P \cup H_s) \ge|H_s| + \operatorname{val}_P(s).

For the reverse inequality, fix an arbitrary assignment α\alpha and define σ:D→D\sigma: D \to D from the most frequent values of the blocks as above. Suppose first that σ\sigma is not an endomorphism of RR. Choose r∈Rr \in R with σ(r)∉R\sigma(r) \notin R. At least ηRmk>B\eta_Rm^k > B block constraints are assigned the tuple σ(r)\sigma(r), so all of them are violated. Even if α\alpha satisfies every constraint of PP, it has value less than ∣Hs∣|H_s|, while the intended assignment has value at least ∣Hs∣|H_s|. Thus any assignment that attains the optimum must have σ\sigma as an endomorphism and, since RR is a core, as an automorphism.

Thus, we only need to consider the case in which σ\sigma is an automorphism. Let W={x∈X:α(x)≠σ(s(x))}W = \{x \in X : \alpha(x) \ne\sigma(s(x))\}. Fix x∈Wx \in W, put a=s(x)a = s(x), and put b=σ−1(α(x))b = \sigma^{-1}(\alpha(x)), so b≠ab \ne a. By Lemma 4.5, there are r∈Rr \in R and t∈[k]t \in[k] such that rt=ar_t = a and rt←b∉Rr^{t\leftarrow b} \notin R. In every other coordinate jj, choose a variable from ZrjZ_{r_j} assigned its most frequent value σ(rj)\sigma(r_j). There are at least ηRmk−1\eta_Rm^{k-1} such attached constraints for xx, and each is assigned the tuple σ(rt←b)\sigma(r^{t\leftarrow b}). All of them are violated because σ\sigma is an automorphism. The constraints counted for different variables xx are disjoint, so α\alpha violates at least ηRmk−1∣W∣\eta_Rm^{k-1}|W| attached constraints.

The assignment α∘s\alpha\circ s has value val⁡P(s)\operatorname{val}_P(s) on PP by Observation 4.1. Changing the variables in WW can affect at most Δ∣W∣\Delta|W| constraints of PP, and hence val⁡P(α∣X)≤val⁡P(s)+Δ∣W∣\operatorname{val}_P(\alpha|_X) \le\operatorname{val}_P(s) + \Delta|W|. Since α\alpha violates at least ηRmk−1∣W∣\eta_Rm^{k-1}|W| attached constraints, we have val⁡P∪Hs(α)≤∣Hs∣+val⁡P(s)+(Δ−ηRmk−1)∣W∣≤∣Hs∣+val⁡P(s)\operatorname{val}_{P\cup H_s}(\alpha) \le|H_s| + \operatorname{val}_P(s) + (\Delta- \eta_Rm^{k-1})|W| \le|H_s| + \operatorname{val}_P(s). Together with the intended assignment, this proves the required equality. □

The exact-pinning gadget still leaves one common automorphism, but that is fine since the objective of PP is invariant under it, while every other disagreement with ss loses more gadget constraints than it can gain in PP.

Satisfiability

We now characterize the one-pass streaming space needed to decide satisfiability. We will prove that after reducing to the core, the right parameter is non-redundancy. The upper bound stores a small instance with the same satisfying assignments as the constraints seen so far. For the lower bound, a maximum nonredundant instance gives the bits of an INDEX instance, and hard pinning lets Bob test the bit corresponding to his constraint.

Theorem 5.1 (Satisfiability). Let R⊆DkR \subseteq D^k be a fixed non-trivial relation and let R⋆=core⁡(R)R^\star= \operatorname{core}(R). The following statements hold.

(i) there is a deterministic one-pass streaming algorithm for SAT⁡(R)\operatorname{SAT}(R) using OR(NRD⁡n(R⋆)log⁡n)O_R(\operatorname{NRD}_n(R^\star)\log n) bits of space.

(ii) every randomized bounded-error one-pass streaming algorithm for SAT⁡(R)\operatorname{SAT}(R) uses ΩR(NRD⁡n(R⋆))\Omega_R(\operatorname{NRD}_n(R^\star)) bits of space.

Consequently,

ΩR(NRD⁡n(core⁡(R)))≤SPACE⁡(SAT⁡(R))≤OR(NRD⁡n(core⁡(R))log⁡n).\Omega_R(\operatorname{NRD}_n(\operatorname{core}(R))) \le\operatorname{SPACE}(\operatorname{SAT}(R)) \le O_R(\operatorname{NRD}_n(\operatorname{core}(R))\log n).

We prove the two bounds for a core relation and then use Lemma 4.2 to obtain the theorem for an arbitrary relation.

The upper bound is the following known consequence of non-redundancy [SV26a, Theorem 1(a)].

Lemma 5.2 (Satisfiability upper bound). [SV26a, Theorem 1(a)] If RR is a core relation, then SAT⁡(R)\operatorname{SAT}(R) has a deterministic one-pass streaming algorithm using OR(NRD⁡n(R)log⁡n)O_R(\operatorname{NRD}_n(R)\log n) bits of space.

The algorithm maintains a nonredundant subinstance with exactly the same satisfying assignments as the current prefix of the stream. When a constraint arrives, the algorithm adds it and repeatedly removes any constraint whose deletion does not change the set of satisfying assignments. The stored instance therefore has at most NRD⁡n(R)\operatorname{NRD}_n(R) constraints. Since RR is fixed, each constraint is specified by its scope using OR(log⁡n)O_R(\log n) bits. There is no update-time restriction, so redundancy and final satisfiability can be checked by trying all assignments using OR(n)O_R(n) additional bits. For a non-trivial relation, NRD⁡n(R)=ΩR(n)\operatorname{NRD}_n(R) = \Omega_R(n), so this is within the stated space bound. For a trivial relation, satisfiability is immediate.

It remains to prove the matching lower bound. The reduction uses the witnesses of a nonredundant instance in the way suggested by the definition of non-redundancy.

Lower bound for a core relation

In this subsection, we prove the following main theorem.

Theorem 5.3 (Satisfiability lower bound). Let R⊆DkR \subseteq D^k be a core relation. Every randomized bounded-error one-pass streaming algorithm for SAT⁡(R)\operatorname{SAT}(R) uses ΩR(NRD⁡n(R))\Omega_R(\operatorname{NRD}_n(R)) bits of space.

Proof. The idea is simple. Alice streams a subinstance of a maximum nonredundant instance. Bob takes the witness for his queried constraint, meaning an assignment that violates this constraint and satisfies every other constraint in the nonredundant instance, and uses Lemma 4.4 to force that witness up to one automorphism. Since automorphisms preserve which constraints are satisfied, the resulting instance tells Bob whether Alice streamed the queried constraint.

Let cRc_R be a constant such that the hard-pinning instance in Lemma 4.4 always uses at most cRc_R additional variables. Fix a sufficiently large number nn, put n0=n−cRn_0 = n - c_R, and let F={C1,…,CM}F = \{C_1,\ldots,C_M\} be a nonredundant RR-instance on n0n_0 variables with M=NRD⁡n0(R)M = \operatorname{NRD}_{n_0}(R). If M=0M = 0, the claimed lower bound is empty, so assume M≥1M \ge1. For every i∈[M]i \in[M], choose a witness assignment sis_i that violates CiC_i and satisfies every CjC_j with j≠ij \ne i.

Suppose that a randomized one-pass streaming algorithm decides SAT⁡(R)\operatorname{SAT}(R) on nn variables using S(n)S(n) bits of space. We use it to solve INDEX⁡M\operatorname{INDEX}_M. Alice receives a string x∈{0,1}Mx \in\{0,1\}^M, and Bob receives an index i∈[M]i \in[M]. Alice starts the streaming algorithm and streams CjC_j exactly when xj=1x_j = 1. She then sends the S(n)S(n)-bit memory state to Bob. Bob resumes the algorithm from this state and appends the hard-pinning instance PsiP_{s_i} from Lemma 4.4. The final instance uses at most n0+cR=nn_0+c_R=n variables.

We claim that the final instance is satisfiable if and only if xi=0x_i=0. Suppose first that xi=0x_i=0. The assignment sis_i satisfies every constraint streamed by Alice, and it extends to a satisfying assignment of PsiP_{s_i} by using the identity automorphism in Lemma 4.4. Hence the final instance is satisfiable. Now suppose that xi=1x_i=1. Any assignment satisfying PsiP_{s_i} restricts on the original variables to σ∘si\sigma\circ s_i for some σ∈Aut⁡(R)\sigma\in\operatorname{Aut}(R). The assignment sis_i violates CiC_i, so Observation 4.1 implies that σ∘si\sigma\circ s_i also violates CiC_i. Since Alice streamed CiC_i, no assignment can satisfy the final instance. This proves the claim.

Alice and Bob use the random tape of the streaming algorithm as public randomness. Bob outputs the complement of the algorithm’s answer, which recovers xix_i with the same constant error probability. We have therefore obtained a public-coin one-way protocol for INDEXM\mathrm{INDEX}_M with S(n)S(n) bits of communication. By Lemma 3.7, S(n)=Ω(M)=Ω(NRD⁡n0(R))S(n)=\Omega(M)=\Omega(\operatorname{NRD}_{n_0}(R)).

Finally, we need to prove that removing a constant number of variables changes non-redundancy by at most a constant factor depending only on RR. We start with a maximum nonredundant instance on at most nn variables and add unused variables so that its variable set has size exactly nn. Choose a uniformly random set of n0=n−cRn_0=n-c_R variables. A constraint uses at most kk distinct variables, so for all sufficiently large nn the probability that all variables in its scope are chosen is bounded below by a positive constant dependent only on RR. Some choice therefore keeps ΩR(NRD⁡n(R))\Omega_R(\operatorname{NRD}_n(R)) constraints. These constraints remain nonredundant because their original witnesses can be restricted to the chosen variables. Thus NRD⁡n0(R)=ΩR(NRD⁡n(R))\operatorname{NRD}_{n_0}(R)=\Omega_R(\operatorname{NRD}_n(R)), and consequently S(n)=ΩR(NRD⁡n(R))S(n)=\Omega_R(\operatorname{NRD}_n(R)).

We now combine the core reduction with the two core relation bounds to conclude the proof of Theorem 5.1.

Proof of Theorem 5.1. By Lemma 4.2, deciding SAT⁡(R)\operatorname{SAT}(R) has the same streaming space complexity as deciding SAT⁡(R⋆)\operatorname{SAT}(R^\star). Apply Lemma 5.2 to R⋆R^\star for the deterministic upper bound and Theorem 5.3 to R⋆R^\star for the randomized lower bound. This gives both parts of the theorem and the claimed characterization.

Thus the streaming complexity of satisfiability is governed, up to the logarithmic factor in the upper bound, by the non-redundancy of the core relation.

Sparsification and Min-CSP

We first state our sparsification result for CSPs that are revealed in streams.

Theorem 6.1 (Sparsification). Let R⊆DkR\subseteq D^k be a fixed non-trivial relation and let ε>0\varepsilon>0. There is a deterministic one-pass streaming algorithm which, given an unweighted stream of constraints defining an RR-instance II on nn variables and with stream length mm, stores a weighted subinstance H⊆IH\subseteq I such that for every assignment α\alpha, unsat⁡H(α)∈(1±ε)unsat⁡I(α)\operatorname{unsat}_H(\alpha)\in(1\pm\varepsilon)\operatorname{unsat}_I(\alpha). The space used is OR,ε(NRD⁡n(R)⋅polylog⁡(n,m,1/ε))O_{R,\varepsilon}(\operatorname{NRD}_n(R)\cdot\operatorname{polylog}(n,m,1/\varepsilon)).

As an immediate corollary, we obtain the following.

Corollary 6.2 (Min-CSP). Let R⊆DkR\subseteq D^k be a fixed non-trivial relation, let R⋆=core⁡(R)R^\star=\operatorname{core}(R), and let ε>0\varepsilon>0.

(i) there is a deterministic one-pass (1+ε)(1+\varepsilon)-approximation algorithm for Min-CSP(R)(R) using OR,ε(NRD⁡n(R⋆)polylog⁡(n,m,1/ε))O_{R,\varepsilon}(\operatorname{NRD}_n(R^\star)\operatorname{polylog}(n,m,1/\varepsilon)) bits of space;

(ii) every randomized bounded-error one-pass finite-factor approximation algorithm for Min-CSP(R)(R) uses ΩR(NRD⁡n(R⋆))\Omega_R(\operatorname{NRD}_n(R^\star)) bits.

Consequently,

ΩR(NRD⁡n(core⁡(R)))≤SPACE⁡(Min-CSP⁡1+ε(R))≤OR,ε(NRD⁡n(core⁡(R))polylog⁡(n,m,1/ε)).\Omega_R(\operatorname{NRD}_n(\operatorname{core}(R))) \le\operatorname{SPACE}(\operatorname{Min-CSP}_{1+\varepsilon}(R)) \le O_{R,\varepsilon}(\operatorname{NRD}_n(\operatorname{core}(R))\operatorname{polylog}(n,m,1/\varepsilon)).

We first prove Theorem 6.1. The proof of Corollary 6.2 is given at the end of the section.

Sparsification

At a high level, we use a sparsify–merge–sparsify procedure for building sparsifiers in insertion-only streams. These sparsifiers have been used before in insertion-only streams; see, for instance, [41]. The only sparsification result we need as a black box is the following theorem of Brakensiek and Guruswami.

Fact 6.3 ([5]). If C⊆{0,1}MC \subseteq\{0,1\}^{M} is a binary code and 0<η<10<\eta<1, then there is a nonnegative weight vector zz such that

⟨z,c⟩∈(1±η)∥c∥1for every c∈C,\langle z,c\rangle\in(1\pm\eta)\lVert c\rVert_1 \qquad\text{for every } c\in C,

and, for an absolute constant cBG>0c_{\mathrm{BG}}>0,

∣supp⁡(z)∣≤cBGNRD⁡(C)log⁡6(4M)η2.(1)\lvert\operatorname{supp}(z)\rvert\le c_{\mathrm{BG}}\operatorname{NRD}(C)\frac{\log^6(4M)}{\eta^2}. \tag*{(1)}

Importantly, their proof allows zz to be chosen with nonnegative integer entries. Indeed, their induction starts with unit weights and, in the recursive step, assigns weight 1 to the explicitly retained coordinates and multiplies the recursively produced weights by 3.

Subsequent work sharpened and broadened this code-sparsification framework. Lovett, Meka, and Wang [39] improved the dependence on the block length from polylogarithmic to logarithmic, while Khanna, Putterman, and Sudan [35] developed a unified sparsification theory for nonnegative real-valued codes.

Note that in the above, NRD⁡(C)\operatorname{NRD}(C) refers to the largest identity submatrix that can be found in CC (when its vectors are listed as rows).

We now prove the following basic fact which shows that weighted instances (with small weights) can effectively be sparsified as unweighted instances, just by repeating constraints.

Lemma 6.5 (Integral-weight reduction). Let JJ be an integer-weighted RR-instance on at most nn variables. Let

W(J)=∑C∈supp⁡(J)wJ(C),W(J)=\sum_{C\in\operatorname{supp}(J)}w_J(C),

denote the total weight of the instance. For every 0<η<10<\eta<1, there is an integer-weighted subinstance Red⁡η(J)⊆J\operatorname{Red}_{\eta}(J)\subseteq J such that, simultaneously for every assignment α\alpha,

unsatval⁡Red⁡η(J)(α)∈(1±η)unsatval⁡J(α),(2)\operatorname{unsatval}_{\operatorname{Red}_{\eta}(J)}(\alpha)\in(1\pm\eta)\operatorname{unsatval}_{J}(\alpha), \tag*{(2)}

and

∣supp⁡(Red⁡η(J))∣≤cBGNRD⁡n(R)log⁡6(4max⁡{W(J),1})η2.(3)\lvert\operatorname{supp}(\operatorname{Red}_{\eta}(J))\rvert\le c_{\mathrm{BG}}\operatorname{NRD}_n(R)\frac{\log^6(4\max\{W(J),1\})}{\eta^2}. \tag*{(3)}

Proof. The assertion is immediate when W(J)=0W(J)=0, so assume W(J)>0W(J)>0. Because the instance is integer weighted, we simply replace each constraint CC of weight wJ(C)w_J(C) by wJ(C)w_J(C) labeled unit-weight copies. Denote the resulting unweighted multiset by J↑J^{\uparrow}; it has exactly W(J)W(J) occurrences. Now, for this unweighted CSP instance, we construct the canonical “violation code”.

CJ↑={(1[α violates C])C∈J↑:α:V(J)→D}⊆{0,1}W(J).(4)C_{J^{\uparrow}}=\left\{\left(\mathbf{1}[\alpha\text{ violates }C]\right)_{C\in J^{\uparrow}}:\alpha:V(J)\to D\right\}\subseteq\{0,1\}^{W(J)}. \tag*{(4)}

We claim that

NRD⁡(CJ↑)≤NRD⁡n(R).(5)\operatorname{NRD}(C_{J^{\uparrow}})\leq\operatorname{NRD}_{n}(R). \tag*{(5)}

Indeed, suppose that tt coordinates form an identity submatrix, and let C1,…,CtC_1,\ldots,C_t be the corresponding constraint copies. For every i∈[t]i\in[t], the row containing the iith diagonal 11 is an assignment that violates CiC_i and satisfies every CjC_j with j≠ij\ne i. Hence {C1,…,Ct}\{C_1,\ldots,C_t\} is a nonredundant RR-instance on at most nn variables. Notice also that two copies of the same constraint, or two distinct constraints operating on the same ordered tuple of variables, have identical columns and therefore cannot both appear in such an identity submatrix.

Next, we apply (1) to CJ↑C_{J^{\uparrow}}. Its integer weight vector approximately preserves the number of violated copies for every assignment. To build the ultimate sparsifier, we collapse all selected copies belonging to the same occurrence of JJ and add their weights. Since we impose no restriction on computation time, the required weight vector can be found deterministically within the stated space bound by enumerating candidate supports and integer weights and checking the inequalities over all assignments. Coordinates that are identically zero may be discarded, while every remaining selected weight is at most (1+η)W(J)(1+\eta)W(J), so this search is finite. This then yields (2) and (3).

Now, we proceed to give the streaming construction. It is enough to consider an ultimate sparsifier accuracy of 0<ε≤1/20<\varepsilon\leq1/2. For a larger error, run the construction with error 1/21/2. We then set

ηℓ=ε20(ℓ+1)2(ℓ≥1).(6)\eta_\ell=\frac{\varepsilon}{20(\ell+1)^2}\qquad(\ell\geq1). \tag*{(6)}

The algorithm maintains at most one sparsifier at each level ℓ≥0\ell\geq0. A level-ℓ\ell sparsifier represents a block of exactly 2ℓ2^\ell original constraints in the stream. Whenever the algorithm stores two sparsifiers at level ℓ\ell, we take their weighted union JJ and replace it by

Red⁡ηℓ+1(J),\operatorname{Red}_{\eta_{\ell+1}}(J),

which now constitutes a sparsifier at level ℓ+1\ell+1. We repeat this carry operation until every level again contains at most one sparsifier.

Claim 6.11. Let HBH_B be a level-ℓ\ell sparsifier and let IBI_B be the unweighted subinstance consisting of its underlying block of constraints. Then, for every assignment α\alpha,

(∏j=1ℓ(1−ηj))unsatval⁡IB(α)≤unsatval⁡HB(α)≤(∏j=1ℓ(1+ηj))unsatval⁡IB(α).(7)\left(\prod_{j=1}^{\ell}(1-\eta_j)\right)\operatorname{unsatval}_{I_B}(\alpha)\leq\operatorname{unsatval}_{H_B}(\alpha)\leq\left(\prod_{j=1}^{\ell}(1+\eta_j)\right)\operatorname{unsatval}_{I_B}(\alpha). \tag*{(7)}

Consequently, the union of the sparsifiers remaining at the end of the stream is a (1±ε)(1\pm\varepsilon)-sparsifier of the entire input.

Proof. We prove (7) by induction on ℓ\ell. It is an equality at level zero. Suppose two level-(ℓ−1)(\ell-1) sparsifiers HB1H_{B_1} and HB2H_{B_2} are merged. Since all values are nonnegative, adding their two inductive inequalities shows that their weighted union has the same multiplicative bounds relative to IB1⊎IB2I_{B_1}\mathbin{\uplus}I_{B_2}. Applying Red⁡ηℓ\operatorname{Red}_{\eta_\ell} multiplies the lower and upper bounds by 1−ηℓ1-\eta_\ell and 1+ηℓ1+\eta_\ell, respectively, thereby yielding the induction.

The schedule satisfies

s:=∑ℓ≥1ηℓ<ε20≤140.s := \sum_{\ell\ge1} \eta_\ell< \frac{\varepsilon}{20} \le\frac{1}{40}.

Therefore

∏ℓ≥1(1−ηℓ)≥1−s≥1−ε\prod_{\ell\ge1}(1-\eta_\ell) \ge1-s \ge1-\varepsilon

and, using ex≤1+2xe^x \le1+2x for 0≤x≤1/20 \le x \le1/2,

∏ℓ≥1(1+ηℓ)≤es≤1+2s≤1+ε.\prod_{\ell\ge1}(1+\eta_\ell) \le e^s \le1+2s \le1+\varepsilon.

This then finishes the claim. □

Claim 6.13. Let d=NRD⁡n(R)d=\operatorname{NRD}_n(R). A level-ℓ\ell sparsifier has support size at most

OR(dε2(ℓ+1)10)(8)O_R\left(\frac{d}{\varepsilon^2}(\ell+1)^{10}\right) \tag*{(8)}

and each of its positive weights is an integer smaller than 2ℓ+12^{\ell+1}. On a stream of length mm, the total space used is bounded by

OR(dε2log⁡11(m+2)(log⁡(n+2)+log⁡(m+2)+log⁡(1/ε+2)))(9)O_R\left(\frac{d}{\varepsilon^2}\log^{11}(m+2)\left(\log(n+2)+\log(m+2)+\log(1/\varepsilon+2)\right)\right) \tag*{(9)}

bits.

Proof. Let

bℓ=∏j=1ℓ(1+ηj).b_\ell=\prod_{j=1}^{\ell}(1+\eta_j).

The proof of Claim 6.11 gives bℓ<2b_\ell<2. If a constraint CC has positive weight in a level-ℓ\ell sparsifier HBH_B, then CC is not vacuously true (otherwise, we simply ignore the constraint), so some assignment αC\alpha_C violates it. Hence

wHB(C)≤unsatval⁡HB(αC)≤bℓunsatval⁡IB(αC)≤bℓ∣IB∣<2ℓ+1.(10)w_{H_B}(C)\le\operatorname{unsatval}_{H_B}(\alpha_C)\le b_\ell\operatorname{unsatval}_{I_B}(\alpha_C)\le b_\ell|I_B|<2^{\ell+1}. \tag*{(10)}

Integrality follows from Lemma 6.5.

Put q=∣D∣q=|D|. A uniformly random assignment violates every occurrence in the support of HBH_B with probability at least q−kq^{-k}. Therefore Claim 6.11 also gives the total-mass bound

q−kW(HB)≤Eα[unsatval⁡HB(α)]≤bℓEα[unsatval⁡IB(α)]<2ℓ+1.q^{-k}W(H_B)\le\mathbb{E}_{\alpha}[\operatorname{unsatval}_{H_B}(\alpha)]\le b_\ell\mathbb{E}_{\alpha}[\operatorname{unsatval}_{I_B}(\alpha)]<2^{\ell+1}.

Now, we consider a merge that creates a level-ℓ\ell sparsifier, where ℓ≥1\ell\ge1. Its input JJ is the union of two level-(ℓ−1)(\ell-1) sparsifiers. Adding the preceding bound for the two children gives

W(J)<2qk2ℓ=OR(2ℓ).(11)W(J)<2q^k2^\ell=O_R(2^\ell). \tag*{(11)}

Lemma 6.5 and (6) now give

∣supp⁡(HB)∣≤cBGdlog⁡26(4max⁡{W(J),1})ηℓ2≤OR(dε2(ℓ+1)10),\begin{aligned} \lvert\operatorname{supp}(H_B)\rvert\le c_{\mathrm{BG}}d\frac{\log_2^6(4\max\{W(J),1\})}{\eta_\ell^2} \\ &\le O_R\left(\frac{d}{\varepsilon^2}(\ell+1)^{10}\right), \end{aligned}

which is (8).

There is at most one sparsifier in each of 1+⌊log⁡2max⁡{m,1}⌋1+\lfloor\log_2\max\{m,1\}\rfloor levels. Summing (8) shows that the number of stored constraints across all sparsifiers is

OR(dε2log⁡11(m+2)).O_R\left(\frac{d}{\varepsilon^2}\log^{11}(m+2)\right).

Each constraint stores an ordered kk-tuple of variable indices and an integer weight. These use OR(log⁡(n+2)+log⁡(m+2))O_R(\log(n+2)+\log(m+2)) bits by (10). The level counters and the error parameter use the remaining logarithmic term in (9).

Finally, using the above, we can prove the theorem.

Proof of Theorem 6.1. If m=0m=0, output the empty instance. Otherwise, run the binary sparsify–merge–sparsify algorithm above and, after the last arrival, output the weighted union HH of the sparsifiers in the occupied levels. Every retained constraint descends from a constraint in the stream, so H⊆IH\subseteq I. Claim 6.11 gives, simultaneously for every assignment α\alpha,

unsatval⁡H(α)∈(1±ε)unsatval⁡I(α).\operatorname{unsatval}_H(\alpha)\in(1\pm\varepsilon)\operatorname{unsatval}_I(\alpha).

Claim 6.13 gives the explicit bound in (9), and hence the space claimed in the theorem. Lemma 6.5 makes every reduction deterministic. The input stream is read once. All later reductions operate only on stored sparsifiers. The algorithm need not know mm in advance because the error schedule depends only on the level.

Proof of Corollary 6.2. Let R⋆=core⁡(R)R^\star=\operatorname{core}(R), with core domain CC. If R⋆R^\star is trivial, then, since it is nonempty, R⋆=CkR^\star=C^k. Every R⋆R^\star-instance has minimum unsatisfied value zero, and the same is true for the corresponding RR-instance by Lemma 4.3. The upper bound is then immediate. Hence suppose that R⋆R^\star is non-trivial.

For the upper bound, replace every arriving RR-constraint by the R⋆R^\star-constraint on the same scope, as in Lemma 4.2. Set

δ=ε2+ε.\delta=\frac{\varepsilon}{2+\varepsilon}.

and run Theorem 6.1 with error δ\delta, obtaining a sparsifier HH of the resulting instance I⋆I^\star. Minimizing the pointwise sparsifier inequalities gives

(1−δ)OPT⁡min⁡(I⋆)≤OPT⁡min⁡(H)≤(1+δ)OPT⁡min⁡(I⋆).(12)(1-\delta)\operatorname{OPT}_{\min}(I^\star)\le\operatorname{OPT}_{\min}(H)\le(1+\delta)\operatorname{OPT}_{\min}(I^\star). \tag*{(12)}

Output

Z=OPT⁡min⁡(H)1−δ.Z=\frac{\operatorname{OPT}_{\min}(H)}{1-\delta}.

Lemma 4.3 gives OPT⁡min⁡(I⋆)=OPT⁡min⁡(I)\operatorname{OPT}_{\min}(I^\star)=\operatorname{OPT}_{\min}(I), and therefore

OPT⁡min⁡(I)≤Z≤1+δ1−δOPT⁡min⁡(I)=(1+ε)OPT⁡min⁡(I).\operatorname{OPT}_{\min}(I)\le Z\le\frac{1+\delta}{1-\delta}\operatorname{OPT}_{\min}(I)=(1+\varepsilon)\operatorname{OPT}_{\min}(I).

The exact minimum of the stored sparsifier can be found after the stream by enumerating assignments; the model places no restriction on postprocessing time. This uses OR(n)O_R(n) additional bits for one assignment, which is absorbed because R⋆R^\star is non-trivial and NRD⁡n(R⋆)=ΩR⋆(n)\operatorname{NRD}_n(R^\star)=\Omega_{R^\star}(n) by Observation 3.3. Theorem 6.1 with parameter δ\delta gives the space bound in part (i).

For part (ii), any finite-factor multiplicative approximation must output zero when OPT⁡min⁡=0\operatorname{OPT}_{\min}=0 and a positive number when OPT⁡min⁡>0\operatorname{OPT}_{\min}>0. It therefore decides satisfiability. The lower bound follows directly from Theorem 5.1.

Exact-CSP

We now determine the one-pass streaming space needed to solve Exact-CSP(RR) on simple instances. As in the previous sections, we first reduce RR to its core. After this reduction, the answer is governed by the degree of the core relation.

The two bounds use degree in different ways. For the upper bound, the degree-dd representation of 1R\mathbf{1}_{R} lets us write the number of satisfied constraints using only terms that involve at most dd variables. The algorithm keeps the coefficient of each such term. When d≥1d \ge1, the lower bound uses 2d2^d assignments and a signed sum of their values that isolates one chosen constraint. The construction in Lemma 4.6 then lets Bob recover each of these values from the exact optimum returned by the streaming algorithm.

Theorem 7.1 (Exact-CSP). Let R⊆DkR \subseteq D^k, let R⋆=core⁡(R)R^\star=\operatorname{core}(R) have core domain CC, and put d=deg⁡C(1R⋆)d=\deg_C(\mathbf{1}_{R^\star}). The following statements hold.

(i) There is a deterministic one-pass algorithm for Exact-CSP(RR) using OR(ndlog⁡(n+1))O_R(n^d\log(n+1)) bits on unweighted simple instances.

(ii) If d≥1d \ge1, every randomized bounded-error one-pass algorithm for Exact-CSP(RR) on unweighted simple instances uses ΩR(nd)\Omega_R(n^d) bits of space.

(iii) If RR is symmetric and d≥1d \ge1, the lower bound holds even when no unordered scope is repeated.

Consequently, when d≥1d \ge1,

ΩR(nd)≤SPACE⁡(Exact-CSP⁡(R))≤OR(ndlog⁡(n+1)).\Omega_R(n^d) \le\operatorname{SPACE}(\operatorname{Exact\text{-}CSP}(R)) \le O_R(n^d\log(n+1)).

When d=0d=0, the relation R⋆R^\star is either empty or equal to CkC^k. Thus the optimum is either always 00 or is the number of constraints in the stream, and it can be found using OR(log⁡(n+1))O_R(\log(n+1)) bits on simple instances.

We prove the upper bound directly. We then prove the lower bound for a core relation and use Lemma 4.2 to obtain the result for an arbitrary relation.

The upper bound follows by keeping the coefficients of a low-degree representation of the objective. The Boolean version of this argument appears in [36 Section 1.1]. We give a generalization of their result to any finite domain.

Lemma 7.2 (Exact-CSP upper bound). Let R⊆DkR \subseteq D^k, let R⋆=core⁡(R)R^\star=\operatorname{core}(R) have core domain CC, and put d=deg⁡C(1R⋆)d=\deg_C(\mathbf{1}_{R^\star}). There is a deterministic one-pass algorithm that solves Exact-CSP(RR) on an instance with nn variables and mm constraints using OR(nd(log⁡(n+1)+log⁡(m+1)))O_R(n^d(\log(n+1)+\log(m+1))) bits of space. In particular, on simple instances the space is OR(ndlog⁡(n+1))O_R(n^d\log(n+1)).

Proof. By Lemma 4.2, we may replace each arriving RR-constraint by the R∗R^*-constraint on the same scope. We will describe a small representation of the value of every assignment for this R∗R^*-instance.

Fix a basepoint 0∈C0 \in C. For a variable xx and a value a∈C∖{0}a \in C \setminus\{0\}, define the indicator Xx,a(α)=1[α(x)=a]X_{x,a}(\alpha)=1[\alpha(x)=a]. This indicator is 1 exactly when α\alpha gives xx the value aa, and it is 0 otherwise. By the definition of d=deg⁡C(1R∗)d=\deg_C(\mathbf{1}_{R^*}), membership in R∗R^* can be written as a polynomial in the indicators of coordinate values, with every monomial involving at most dd coordinates. In other words, there are constants cT,bc_{T,b} such that, for every z=(z1,…,zk)∈Ckz=(z_1,\ldots,z_k)\in C^k,

1R∗(z)=∑T⊆[k]∣T∣≤d ∑b∈(C∖{0})TcT,b∏j∈T1[zj=bj].\mathbf{1}_{R^*}(z)=\sum_{\substack{T\subseteq[k]\\ |T|\le d}}\ \sum_{b\in(C\setminus\{0\})^T}c_{T,b}\prod_{j\in T}\mathbf{1}[z_j=b_j].

The relation is fixed, so this sum has OR(1)O_R(1) terms and all the constants cT,bc_{T,b} depend only on RR. They are integers by the inclusion-exclusion description of the coefficients in § 3.5.

Consider an arriving constraint R∗(xi1,…,xik)R^*(x_{i_1},\ldots,x_{i_k}). For this constraint, set zj=α(xij)z_j=\alpha(x_{i_j}) for every j∈[k]j\in[k] in the formula above. We obtain

1[R∗(xi1,…,xik) is satisfied by α]=∑T⊆[k]∣T∣≤d ∑b∈(C∖{0})TcT,b∏j∈TXxij,bj(α).\mathbf{1}[R^*(x_{i_1},\ldots,x_{i_k})\text{ is satisfied by }\alpha]=\sum_{\substack{T\subseteq[k]\\ |T|\le d}}\ \sum_{b\in(C\setminus\{0\})^T}c_{T,b}\prod_{j\in T}X_{x_{i_j},b_j}(\alpha).

This formula expresses whether α\alpha satisfies this constraint as a sum of products of the indicators Xx,aX_{x,a}. Each product checks the values of at most dd variables from the scope. If the same variable appears twice in a product with the same required value, the two identical indicators can be replaced by one. If it appears with two different required values, no assignment can make both indicators equal to 1, so the product is always zero and can be omitted.

The algorithm keeps one integer counter for every product of the form ∏x∈UXx,ax\prod_{x\in U}X_{x,a_x} with ∣U∣≤d|U|\le d. When a constraint arrives, the algorithm writes its satisfaction indicator using the formula above and adds each cT,bc_{T,b} to the counter for the corresponding product. There are at most ∑j=0d(nj)(∣C∣−1)j=OR(nd)\sum_{j=0}^{d}\binom{n}{j}(|C|-1)^j=O_R(n^d) possible products. Each counter has magnitude OR(m)O_R(m) and therefore uses OR(log⁡(m+1))O_R(\log(m+1)) bits. Identifying its variables and values uses OR(log⁡(n+1))O_R(\log(n+1)) bits. The total space is OR(nd(log⁡(n+1)+log⁡(m+1)))O_R(n^d(\log(n+1)+\log(m+1))).

After the stream, the sum of the stored terms is exactly val⁡I∗(α)\operatorname{val}_{I^*}(\alpha) for every assignment α\alpha, where I∗I^* is the resulting R∗R^*-instance. The algorithm can try all assignments, evaluate this sum, and return its maximum. There is no restriction on the time used after the stream. By Lemma 4.3, this maximum is also OPT⁡max⁡(I)\operatorname{OPT}_{\max}(I) for the original RR-instance II. Finally, a simple instance has at most nkn^k constraints, so log⁡(m+1)=OR(log⁡(n+1))\log(m+1)=O_R(\log(n+1)). □

This proves the upper bound in Theorem 7.1, including the case d=0d=0. We now assume d≥1d\ge1 and prove the lower bound.

Lower bound for a core relation

We first prove the lower bound when RR is already a core. This is the main result of the subsection.

Theorem 7.3 (Lower bound for Exact-CSP on a core relation). Let R⊆DkR\subseteq D^k be a core relation and let d=deg⁡D(1R)≥1d=\deg_D(\mathbf{1}_R)\ge1. Every randomized bounded-error one-pass algorithm for Exact-CSP(R)(R) on unweighted simple instances uses ΩR(nd)\Omega_R(n^d) bits of space. If RR is symmetric, the statement holds with unordered simplicity.

The proof is a reduction from INDEXNd\mathrm{INDEX}_{N^d}. Alice will associate one constraint with each vector in [N]d[N]^d and stream that constraint exactly when the corresponding bit is 1. Bob must determine whether Alice streamed one chosen constraint. To do this, he will consider 2d2^d assignments and add or subtract their values. The next lemma shows that these signs can be chosen so that the selected constraint has a nonzero total contribution. Later, we will arrange that every other constraint has total contribution zero.

More precisely, each of the dd relevant coordinates will take either a basepoint 0 or one fixed value aia_i. The assignments are indexed by the sets S⊆[d]S \subseteq[d] of coordinates that receive aia_i. The expression in the next lemma is simply the value on these 2d2^d choices, added with a plus sign when d−∣S∣d-|S| is even and a minus sign when it is odd.

Lemma 7.4. Let R⊆DkR \subseteq D^k and suppose deg⁡D(1R)=d≥1\deg_D(1_R)=d \ge1. Fix any basepoint 0∈D0 \in D. Then there are distinct coordinates t1,…,td∈[k]t_1,\ldots,t_d \in[k] and values a1,…,ad∈D∖{0}a_1,\ldots,a_d \in D \setminus\{0\} such that, after fixing every coordinate outside {t1,…,td}\{t_1,\ldots,t_d\} to 0, the resulting function h:Dd→{0,1}h:D^d \to\{0,1\} satisfies

c:=∑S⊆[d](−1)d−∣S∣h(yS)≠0,c := \sum_{S \subseteq[d]} (-1)^{d-\lvert S\rvert} h(y^S) \ne0,

where yiS=aiy_i^S=a_i for i∈Si \in S and yiS=0y_i^S=0 otherwise.

Proof. For j∈[k]j \in[k] and a∈D∖{0}a \in D \setminus\{0\}, define Zj,a(x)=1[xj=a]Z_{j,a}(x)=1[x_j=a]. As in the upper bound, the definition of degree gives an expansion

1R(x)=∑T⊆[k]∑b∈(D∖{0})TcT,b∏j∈TZj,bj(x).1_R(x)=\sum_{T \subseteq[k]} \sum_{b \in(D\setminus\{0\})^T} c_{T,b}\prod_{j \in T} Z_{j,b_j}(x).

Since the degree is dd, there is a set T={t1,…,td}T=\{t_1,\ldots,t_d\} and a choice of values a1,…,ad∈D∖{0}a_1,\ldots,a_d \in D \setminus\{0\} for which the coefficient cT,ac_{T,a} is nonzero. Fix every coordinate outside TT to 0. Any term involving one of those coordinates is now zero because all the indicators in the expansion correspond to nonzero values.

Consider the signed sum in the statement one term of the expansion at a time. If a term does not use coordinate tit_i, then its value is unchanged when ii is added to or removed from SS. The sets SS and S△{i}S \mathbin{\triangle} \{i\} have opposite signs, so their contributions cancel. Therefore, only terms that use all dd coordinates in TT can remain. There are no terms of degree larger than dd, and among the degree-dd terms on TT, only the term requiring the values a1,…,ada_1,\ldots,a_d is nonzero on the chosen 2d2^d tuples. Its total contribution is its coefficient cT,ac_{T,a}. Hence the number cc in the statement equals cT,ac_{T,a} and is nonzero. □\square

We now use these 2d2^d choices in the reduction. The queried constraint will see all of them and will therefore contribute cc. Any other constraint will be unaffected by at least one of the choices. Pairing the two assignments that differ only in that choice will make its contribution cancel.

Proof of Theorem 7.3. Without loss of generality, we may assume that the coordinates t1,…,tdt_1,\ldots,t_d from Lemma 7.4 are the first dd coordinates. This is because if they are not, we can permute the coordinates of RR and apply the same permutation to every scope without changing the streaming problem. Fix the values a1,…,ada_1,\ldots,a_d and the nonzero integer cc given by that lemma. If k=1k=1 and ∣D∣>1|D|>1, a unary relation always has a non-bijective endomorphism. For a nonempty relation, use a constant map to a value in the relation. For the empty relation, use any non-bijective map. Thus a unary core relation has a one-element domain and degree zero. It follows that d≥1d \ge1 implies k≥2k \ge2, as required in Lemma 4.6.

Let NN be a positive integer and index the NdN^d bits of INDEXNd\mathrm{INDEX}_{N^d} by the vectors u=(u1,…,ud)∈[N]du=(u_1,\ldots,u_d)\in[N]^d. For each i∈[d]i\in[d], create a group of variables Xi={xi,p:p∈[N]}X_i=\{x_{i,p}:p\in[N]\}. The variable xi,uix_{i,u_i} will occupy coordinate ii of the constraint associated with uu.

We also need variables for the coordinates in [k]∖[d][k]\setminus[d]. These coordinates must receive the basepoint 00 in Bob’s assignments. Using one variable in every constraint would give that variable degree NdN^d, which is too large for Lemma 4.6. We instead create variables wj,pw_{j,p} for every j∈[k]∖[d]j\in[k]\setminus[d] and p∈[N]p\in[N], and use wj,u1w_{j,u_1} in coordinate jj of the constraint associated with uu.

Formally, for u∈[N]du\in[N]^d, define Cu=R(v1u,…,vku)C_u=R(v_1^u,\ldots,v_k^u) by setting viu=xi,uiv_i^u=x_{i,u_i} for i∈[d]i\in[d] and vju=wj,u1v_j^u=w_{j,u_1} for j∈[k]∖[d]j\in[k]\setminus[d].

Alice receives b∈{0,1}[N]db\in\{0,1\}^{[N]^d} and streams CuC_u exactly when bu=1b_u=1. Let PbP_b be the resulting instance. It uses at most kN=OR(N)kN=O_R(N) variables and at most NdN^d constraints. Every variable belongs to at most Nd−1N^{d-1} of the constraints CuC_u. Fixing the index of that variable fixes at least one coordinate of uu. The constraints have distinct ordered scopes because the variables from the groups X1,…,XdX_1,\ldots,X_d determine uu. They also have distinct unordered scopes. Indeed, the groups X1,…,XdX_1,\ldots,X_d are disjoint. If CuC_u and Cu′C_{u'} had the same unordered scope, then for every i∈[d]i\in[d] they would contain the same variable from XiX_i. This would give xi,ui=xi,ui′x_{i,u_i}=x_{i,u'_i}, and hence ui=ui′u_i=u'_i, for every ii. Therefore u=u′u=u'. This last fact is relevant when RR is symmetric.

Bob receives q=(q1,…,qd)∈[N]dq=(q_1,\ldots,q_d)\in[N]^d and wants to recover bqb_q. His goal is to make CqC_q see all 2d2^d tuples from Lemma 7.4. At the same time, every constraint CuC_u with u≠qu\ne q should miss at least one of the dd choices, so that its positive and negative contributions cancel. To achieve this, Bob changes only the variable xi,qix_{i,q_i} in each group XiX_i and leaves every other variable at the basepoint.

For each S⊆[d]S\subseteq[d], Bob considers the following assignment. In group XiX_i, the variable indexed by qiq_i receives aia_i if i∈Si\in S, and all other variables receive 00. Every variable wj,pw_{j,p} also receives 00. In symbols,

αS(xi,p)={ai,if i∈S and p=qi,0,otherwise,αS(wj,p)=0.\alpha^S(x_{i,p})= \begin{cases} a_i, & \text{if } i\in S \text{ and } p=q_i,\\ 0, & \text{otherwise}, \end{cases} \qquad \alpha^S(w_{j,p})=0.

Consider first the queried constraint CqC_q. In coordinate i∈[d]i\in[d], it receives aia_i when i∈Si\in S and 00 otherwise, while every coordinate in [k]∖[d][k]\setminus[d] receives 00. Thus, as SS ranges over all subsets of [d][d], this constraint sees exactly the 2d2^d tuples from Lemma 7.4, and its signed contribution is cc.

Now consider CuC_u for u≠qu\ne q. Choose ii for which ui≠qiu_i\ne q_i. The variable xi,uix_{i,u_i} always receives $0, whether or not ii belongs to SS. Hence the satisfaction of CuC_u is unchanged when we replace SS by S△{i}S\mathbin{\triangle}\{i\}. These two sets have opposite signs, so the contribution of CuC_u cancels. We have proved that

∑S⊆[d](−1)d−∣S∣1[Cu is satisfied by αS]={c,if u=q,0,if u≠q.\sum_{S\subseteq[d]}(-1)^{d-|S|}\mathbf{1}[C_u\text{ is satisfied by }\alpha^S] = \begin{cases} c, & \text{if } u=q,\\ 0, & \text{if } u\ne q. \end{cases}

Summing this identity over the constraints that Alice streamed gives

∑S⊆[d](−1)d−∣S∣val⁡Pb(αS)=cbq.\sum_{S\subseteq[d]}(-1)^{d-|S|}\operatorname{val}_{P_b}(\alpha^S)=c b_q.

This identity determines bqb_q from the 2d2^d numbers val⁡Pb(αS)\operatorname{val}_{P_b}(\alpha^S) because c≠0c\ne0. The difficulty is that an Exact-CSP algorithm returns an optimum, not the value of a chosen assignment. By Lemma 4.6, Bob can append constraints that hard-pin a complete assignment and make the optimum reveal any one of these values. More precisely, for each S⊆[d]S\subseteq[d], Lemma 4.6 gives an instance HαSH_{\alpha^S} satisfying

OPT⁡max⁡(Pb∪HαS)=∣HαS∣+val⁡Pb(αS).\operatorname{OPT}_{\max}(P_b\cup H_{\alpha^S})=\lvert H_{\alpha^S}\rvert+\operatorname{val}_{P_b}(\alpha^S).

By the final part of Lemma 4.6, Bob can construct HαSH_{\alpha^S} from the public variable set, the assignment αS\alpha^S, and the bounds NdN^d and Nd−1N^{d-1}. He does not need to know Alice’s string. The gadget uses OR(N)O_R(N) new variables, and Pb∪HαSP_b \cup H_{\alpha^S} is simple. When RR is symmetric, it has no repeated unordered scope.

Suppose now that the streaming algorithm uses s(n)s(n) bits of space. We first reduce its error so that each output is wrong with probability at most 1/(10⋅2d)1/(10 \cdot2^d). This requires only OR(1)O_R(1) independent copies because dd depends only on RR. Alice runs the amplified algorithm on PbP_b and sends its memory state to Bob. For each S⊆[d]S \subseteq[d], Bob starts from a copy of this state, appends HαSH_{\alpha^S}, and obtains OPT⁡max⁡(Pb∪HαS)\operatorname{OPT}_{\max}(P_b \cup H_{\alpha^S}). Subtracting the known number ∣HαS∣\lvert H_{\alpha^S}\rvert gives val⁡Pb(αS)\operatorname{val}_{P_b}(\alpha^S). A union bound shows that all 2d2^d values are correct simultaneously with constant probability, after which Bob recovers bqb_q from the signed sum above.

There is a constant ARA_R such that every final instance uses at most ARNA_RN variables. For any sufficiently large target value nn, choose N=⌊n/AR⌋N = \lfloor n/A_R \rfloor and add unused variables so that the final instance has exactly nn variables. Then N=ΘR(n)N = \Theta_R(n). We have obtained a randomized public-coin one-way protocol for INDEX⁡Nd\operatorname{INDEX}_{N^d} with OR(s(n))O_R(s(n)) communication. By Lemma 3.7, s(n)=ΩR(Nd)=ΩR(nd)s(n) = \Omega_R(N^d) = \Omega_R(n^d).

We have proved the required lower bound when RR is a core. It remains only to combine this with the reduction to the core and the upper bound proved above.

Proof of Theorem 7.1. Let R⋆=core⁡(R)R^\star= \operatorname{core}(R). By Lemma 4.2, solving Exact-CSP(R)(R) has the same streaming space complexity as solving Exact-CSP(R⋆)(R^\star). The deterministic upper bound follows from Lemma 7.2. If d=0d = 0, the indicator of R⋆R^\star is constant, so R⋆R^\star is either empty or equal to CkC^k. This gives the last statement of the theorem. Suppose now that d≥1d \ge1. The randomized lower bound follows by applying Theorem 7.3 to R⋆R^\star. The reduction to the core preserves simple instances. If RR is symmetric, then R⋆R^\star is symmetric and the reduction also preserves the unordered scopes. This proves all three parts of the theorem.

Thus the streaming complexity of Exact-CSP(R)(R) on simple instances is governed, up to the logarithmic factor in the upper bound, by the degree of the core relation.

Conclusion and Open Questions

In this paper, we demonstrated that the core of a relation is vital for characterizing the streaming complexity of many optimization problems related to constraint satisfaction problems. We hope that this work encourages further exploration of the relationship between CSP cores and streaming complexity. We conclude with a handful of open questions.

  • Can the algorithms presented in Theorem 5.1 and Theorem 6.1 be made efficient in terms of both space and time complexity? A key challenge in this regard is that there is no general technique for efficiently detecting if a CSP instance is non-redundant. If one could find such an algorithm, it would be a major milestone in the development of algorithms for CSP kernelization. See [18, 40, 15, 5] for further discussion.

  • In addition, our paper only considers insertion-only streams. What if we allow both insertions and deletions?

Literals and Non-Constant-Satisfiable CSPs

In this section, we show how our general CSPs core characterization recovers the two earlier results of Sharma and Velusamy [SV26a]. We first consider CSPs with literals and show that passing their shift/sign-closed language to the core does not change non-redundancy. We then show that a positive Boolean constraint language is a core exactly when it is not constant-satisfiable.

A constraint language Γ\Gamma is a fixed finite set of relations over the same domain. A map on the domain is an endomorphism of Γ\Gamma if it preserves every relation in Γ\Gamma, and Γ\Gamma is a core if every such endomorphism is an automorphism. As for one relation, we obtain core⁡(Γ)\operatorname{core}(\Gamma) by choosing an endomorphism ρ\rho with minimum image and restricting every relation to that image.

Without loss of generality, we claim that the core reduction and the satisfiability arguments also work for a fixed finite constraint language. In the core reduction, each arriving SS-constraint, for S∈ΓS \in\Gamma, is replaced by the ρ(S)\rho(S)-constraint on the same scope. The satisfiability hard-pinning construction may similarly use constraints from any relation in Γ\Gamma. We will use this extension below without further comment.

Literal CSPs as a special case

We first show that our general CSPs core characterization recovers the previous characterization for CSPs with literals. In the literal model, the domain is D=ZqD = \mathbb{Z}_q, and every constraint may apply an arbitrary additive shift to each coordinate. For any relation S⊆DℓS \subseteq D^\ell and any λ∈Dℓ\lambda\in D^\ell, write Sλ(x):=S(x+λ)S^\lambda(x) := S(x+\lambda). Thus, for a relation R⊆DkR \subseteq D^k, its shift closure is

ΓRlit:={Rλ:λ∈Dk}.\Gamma_R^{\mathrm{lit}} := \{R^\lambda: \lambda\in D^k\}.

Then a CSP with literals over RR is exactly a positive CSP over ΓRlit\Gamma_R^{\mathrm{lit}}. We write NRDn+(Γ)\mathrm{NRD}^{+}_{n}(\Gamma) for the largest number of constraints in a nonredundant positive Γ\Gamma-instance on nn variables. Similarly, NRDnlit(R)\mathrm{NRD}^{\mathrm{lit}}_{n}(R) denotes non-redundancy in the literal model over RR.

For a constraint language Γ\Gamma, let SAT⁡(Γ)\operatorname{SAT}(\Gamma) denote satisfiability for positive Γ\Gamma-instances. The following corollary records the language version of our satisfiability characterization.

Corollary A.1 (Satisfiability for constraint languages). For every fixed finite constraint language Γ\Gamma,

ΩΓ(NRDn+(core⁡(Γ)))≤SPACE⁡(SAT⁡(Γ))≤OΓ((NRDn+(core⁡(Γ))+1)log⁡(n+1)).\Omega_{\Gamma}\left(\mathrm{NRD}^{+}_{n}(\operatorname{core}(\Gamma))\right) \le\operatorname{SPACE}(\operatorname{SAT}(\Gamma)) \le O_{\Gamma}\left(\left(\mathrm{NRD}^{+}_{n}(\operatorname{core}(\Gamma))+1\right)\log(n+1)\right).

The upper bound is deterministic, and the lower bound holds for randomized bounded-error one-pass algorithms.

Proof. The core reduction replaces each relation in Γ\Gamma by its restriction to the core domain and preserves satisfiability and streaming space exactly, as in Lemma 4.2. For a core language, the upper bound maintains a nonredundant subinstance with the same satisfying assignments, exactly as in Lemma 5.2. If the language contains a nonempty proper relation, disjoint constraints from this relation show that its non-redundancy is ΩΓ(n)\Omega_{\Gamma}(n), so the space needed to try assignments is within the stated bound. Otherwise every relation is empty or full, and satisfiability can be decided by checking whether an empty-relation constraint appears. For the lower bound, the hard-pinning construction and the INDEX reduction in Theorem 5.3 work with constraints from any relation in the core language. This proves the two bounds. □

The following lemma shows that passing to the core does not change non-redundancy for any shift-closed language.

Lemma A.2. Let Γ\Gamma be a finite constraint language over D=ZqD=\mathbb{Z}_{q} that is closed under coordinatewise shifts. Then NRDn+(Γ)=NRDn+(core⁡(Γ))\mathrm{NRD}^{+}_{n}(\Gamma)=\mathrm{NRD}^{+}_{n}(\operatorname{core}(\Gamma)).

Proof. First, we may assume that every relation in Γ\Gamma is nonempty. Empty relations are fixed by every shift and every endomorphism. Moreover, if a nonredundant instance contains an empty-relation constraint, then it can contain no other constraint. Empty relations therefore give the same trivial size-one instances before and after passing to the core, so we may discard them. If no relations remain, the statement is immediate.

For a relation SS and a coordinate ii, let S+deiS+d e_i denote the relation obtained by adding dd to coordinate ii, where eie_i is the iith unit vector. Define

H:={d∈D:S+dei=S for every S∈Γ and every coordinate i}.H:=\{d\in D:S+d e_i=S\text{ for every }S\in\Gamma\text{ and every coordinate }i\}.

Thus HH is the subgroup of shifts that are invisible to every relation.

Choose one representative from each coset of HH, let C⊆DC\subseteq D be the set of representatives, and let ρ:D→C\rho:D\to C map every element to the representative of its coset. Since ρ(a)−a∈H\rho(a)-a\in H, for every S∈ΓS\in\Gamma and every tuple xx,

x∈S⟺ρ(x)∈S.(13)x\in S \Longleftrightarrow\rho(x)\in S. \tag*{(13)}

In particular, ρ\rho is an endomorphism.

We claim that ρ\rho is a core endomorphism. Let h:D→Dh:D\to D be any endomorphism and write δ(a):=h(a)−a\delta(a):=h(a)-a. We show that

δ(a)−δ(b)∈Hfor all a,b∈D.(14)\delta(a)-\delta(b)\in H \qquad\text{for all }a,b\in D. \tag*{(14)}

Indeed, fix S∈ΓS \in\Gamma, x∈Sx \in S, and an arbitrary tuple zz. Write δ(z)\delta(z) for the tuple obtained by applying δ\delta to every coordinate of zz. Since Γ\Gamma is shift-closed, Sx−z∈ΓS^{x-z} \in\Gamma, and z∈Sx−zz \in S^{x-z}. Applying hh gives h(z)∈Sh(z) \in S, or equivalently x+δ(z)∈Sx+\delta(z) \in S. Thus translation by δ(z)\delta(z) maps SS into itself. Since translation is a bijection and SS is finite, it preserves SS. Comparing two tuples z,z′z,z' that differ only in coordinate ii, taking the values aa and bb there, shows that translation by (δ(a)−δ(b)ei)(\delta(a)-\delta(b)e_i) preserves SS. Since SS and ii were arbitrary, (A.4) follows.

Now suppose that h(a)=h(b)h(a)=h(b). Then b−a=δ(a)−δ(b)∈Hb-a=\delta(a)-\delta(b) \in H. Hence an endomorphism cannot identify elements from distinct HH-cosets. Every endomorphism therefore has image size at least ∣D/H∣|D/H|, while ρ\rho has exactly this image size. Thus ρ\rho is a core endomorphism.

Let Δ:=ρ(Γ)=core⁡(Γ)\Delta:= \rho(\Gamma)=\operatorname{core}(\Gamma). For S∈ΓS \in\Gamma, write Sρ:=ρ(S)S^\rho:= \rho(S). By (A.3),

x∈S⟺ρ(x)∈Sρ.(15)x \in S \quad\Longleftrightarrow\quad\rho(x) \in S^\rho. \tag*{(15)}

Moreover, the map S↦SρS \mapsto S^\rho is injective. If Sρ=TρS^\rho=T^\rho, then (A.5) implies S=TS=T.

Now take any positive Γ\Gamma-instance II, and replace every relation SS by SρS^\rho, obtaining a Δ\Delta-instance IρI^\rho. This correspondence preserves the number of constraints. Moreover, (A.5) shows that an assignment and its image under ρ\rho have the same satisfaction pattern, constraint by constraint. Consequently, if aa is a witness for a constraint in II, then ρ(a)\rho(a) is a witness for the corresponding constraint in IρI^\rho. Hence IρI^\rho is nonredundant whenever II is nonredundant.

Conversely, every Δ\Delta-instance can be lifted to a Γ\Gamma-instance using the unique preimage of each relation, and every witness assignment over CC remains a witness after this lift. Thus nonredundant instances of the same size exist in both directions, proving NRDn+(Γ)=NRDn+(Δ)\mathrm{NRD}^{+}_{n}(\Gamma)=\mathrm{NRD}^{+}_{n}(\Delta). □

Applying the lemma to the shift closure gives the desired connection to the literal model.

Corollary A.6. For every R⊆ZqkR \subseteq\mathbb{Z}_q^k, NRDnlit(R)=NRDn+(core⁡(ΓRlit))\mathrm{NRD}^{\mathrm{lit}}_{n}(R)=\mathrm{NRD}^{+}_{n}(\operatorname{core}(\Gamma^{\mathrm{lit}}_{R})). Hence our general core characterization recovers the previous streaming characterization for CSPs with literals.

Proof. A literal RR-instance is exactly a positive ΓRlit\Gamma^{\mathrm{lit}}_{R}-instance, so NRDnlit(R)=NRDn+(ΓRlit)\mathrm{NRD}^{\mathrm{lit}}_{n}(R)=\mathrm{NRD}^{+}_{n}(\Gamma^{\mathrm{lit}}_{R}). Since ΓRlit\Gamma^{\mathrm{lit}}_{R} is shift-closed, Lemma A.2 gives NRDn+(ΓRlit)=NRDn+(core⁡(ΓRlit))\mathrm{NRD}^{+}_{n}(\Gamma^{\mathrm{lit}}_{R})=\mathrm{NRD}^{+}_{n}(\operatorname{core}(\Gamma^{\mathrm{lit}}_{R})). Together with Corollary A.1, this recovers the one-pass satisfiability characterization for CSPs with literals. □

Non-constant-satisfiable Boolean CSPs

We next recover the previous characterization for positive Boolean CSPs. A Boolean constraint language Γ\Gamma is constant-satisfiable if there is a value c∈{0,1}c \in\{0,1\} such that the constant tuple (c,…,c)(c,\ldots,c) belongs to every relation in Γ\Gamma. Equivalently, assigning the value cc to every variable satisfies every positive instance over Γ\Gamma. The next lemma shows that excluding this case is exactly the same as requiring the language to be a core.

Lemma A.7. Let Γ\Gamma be a Boolean constraint language in which every relation is nonempty. Then Γ\Gamma is a core if and only if it is not constant-satisfiable.

Proof. Every non-bijective map from {0,1}\{0,1\} to itself is constant. The constant map with value cc is an endomorphism of Γ\Gamma exactly when (c,…,c)(c,\ldots,c) belongs to every relation in Γ\Gamma. One direction is immediate. For the other, apply the constant map to any tuple in each nonempty relation. Thus Γ\Gamma has a non-bijective endomorphism exactly when it is constant-satisfiable. □

It follows that every non-constant-satisfiable Boolean constraint language is already a core. Applying our general CSP core characterization therefore directly recovers the positive Boolean result of Sharma and Velusamy.

References

  1. [1]Amir Azarmehr, Soheil Behnezhad, and Shane Ferrante. Single-Pass Streaming CSPs via Two-Tier Sampling. Apr. 2, 2026. arXiv: 2604.01575 [cs].arxiv.org/abs/2604.01575
  2. [3]Farid Ablayev. “Lower bounds for one-way probabilistic communication complexity and their application to space complexity”. In: Theoretical Computer Science 157.2 (1996), pp. 139–159. ISSN: 0304-3975. DOI: 10.1016/0304-3975(95)00157-3. URL: https://www.sciencedirect.com/science/article/pii/0304397595001573.DOI
  3. [4]Christian Bessiere, Clément Carbonnel, and George Katsirelos. “Chain length and CSPs learnable with few queries”. In: Proceedings of the AAAI Conference on Artificial Intelligence. Vol. 34-02. 2020, pp. 1420–1427.DOI
  4. [5]Joshua Brakensiek and Venkatesan Guruswami. “Redundancy is all you need”. In: Proceedings of the 57th Annual ACM Symposium on Theory of Computing. 2025, pp. 1614–1625.DOI
  5. [6]Joshua Brakensiek, Venkatesan Guruswami, Bart MP Jansen, Victor Lagerkvist, and Magnus Wahlström. “The Richness of CSP Non-redundancy”. In: arXiv preprint arXiv:2507.07942 (2025).arxiv.org/abs/2507.07942
  6. [7]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”. In: CoRR abs/2605.19055 (2026). DOI: 10.48550/ARXIV.2605.19055. arXiv: 2605.19055. URL: https://doi.org/10.48550/arXiv.2605.19055.
  7. [8]Joshua Brakensiek, Venkatesan Guruswami, and Aaron Putterman. “Classification of Non-Redundancy of Boolean Predicates of Arity 4”. In: 32nd International Conference on Principles and Practice of Constraint Programming, CP 2026, Lisbon, Portugal, July 20-23, 2026. Ed. by Nicolas Beldiceanu. Vol. 379. LIPICs. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2026, 8:1–8:24. DOI: 10.4230/LIPIcs.CP.2026.8. URL: https://doi.org/10.4230/LIPIcs.CP.2026.8.
  8. [12]Libor Barto, Andrei A. Krokhin, and Ross Willard. “Polymorphisms, and How to Use Them”. In: The Constraint Satisfaction Problem: Complexity and Approximability. Ed. by Andrei A. Krokhin and Stanislav Zivný. Vol. 7. Dagstuhl Follow-Ups. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2017, pp. 1–44. DOI: 10.4230/DFU.VOL7.15301.1. URL: https://doi.org/10.4230/DFU.VOL7.15301.1.
  9. [13]Andrei A. Bulatov. “A Dichotomy Theorem for Nonuniform CSPs”. In: 58th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2017, Berkeley, CA, USA, October 15-17, 2017. Ed. by Chris Umans. IEEE Computer Society, 2017, pp. 319–330. DOI: 10.1109/FOCS.2017.37. URL: https://doi.org/10.1109/FOCS.2017.37.
  10. [14]Silvia Butti and Stanislav Živný. “Sparsification of Binary CSPs”. In: SIAM Journal on Discrete Mathematics 34.1 (Jan. 2020), pp. 825–842. ISSN: 0895-4801. DOI: 10.1137/19M1242446.DOI
  11. [15]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, 11:1–11:15.DOI
  12. [16]Chi-Ning Chou, Alexander Golovnev, Madhu Sudan, and Santhoshini Velusamy. “Sketching Approximability of All Finite CSPs”. In: Journal of the ACM 71.2 (Apr. 12, 2024). Conference version in FOCS 2021, 15:1–15:74. DOI: 10.1145/3649435.DOI
  13. [18]Hubie Chen, Bart MP Jansen, and Astrid Pieterse. “Best-case and worst-case sparsifiability of Boolean CSPs”. In: Algorithmica 82.8 (2020), pp. 2200–2242.arxiv.org/abs/1809.06171
  14. [19]Ashok K. Chandra and Philip M. Merlin. “Optimal Implementation of Conjunctive Queries in Relational Data Bases”. In: Proceedings of the 9th Annual ACM Symposium on Theory of Computing, May 4-6, 1977, Boulder, Colorado, USA. Ed. by John E. Hopcroft, Emily P. Friedman, and Michael A. Harrison. ACM, 1977, pp. 77–90. DOI: 10.1145/800105.803397. URL: https://doi.org/10.1145/800105.803397.
  15. [24]Tomás Feder and Moshe Y. Vardi. “The computational structure of monotone monadic SNP and constraint satisfaction: A study through Datalog and group theory”. In: SIAM Journal on Computing 28.1 (1998), pp. 57–104.DOI
  16. [25]Venkatesan Guruswami, Ameya Velingker, and Santhoshini Velusamy. “Streaming Complexity of Approximating Max 2CSP and Max Acyclic Subgraph”. In: Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques. APPROX 2017 (Aug. 16–18, 2017). Ed. by Klaus Jansen, José D. P. Rolim, David Williamson, and Santosh S. Vempala. Vol. 81. LIPIcs. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Aug. 2017, 8:1–8:19. DOI: 10.4230/LIPIcs.APPROX-RANDOM.2017.8.DOI
  17. [26]Pavol Hell and Jaroslav Nešetřil. “Colouring, constraint satisfaction, and complexity”. In: Comput. Sci. Rev. 2.3 (2008), pp. 143–163. DOI: 10.1016/J.COSREV.2008.10.003. URL: https://doi.org/10.1016/j.cosrev.2008.10.003.
  18. [27]Pavol Hell and Jaroslav Nešetřil. “The core of a graph”. In: Discret. Math. 109.1-3 (1992), pp. 117–126. DOI: 10.1016/0012-365X(92)90282-K. URL: https://doi.org/10.1016/0012-365X(92)90282-K.
  19. [28]Bart MP Jansen and Astrid Pieterse. “Optimal sparsification for some binary CSPs using low-degree polynomials”. In: ACM Transactions on Computation Theory (TOCT) 11.4 (2019), pp. 1–26.arxiv.org/abs/1606.03233
  20. [29]Dmitry Kogan and Robert Krauthgamer. “Sketching cuts in graphs and hypergraphs”. In: Proceedings of the 2015 Conference on Innovations in Theoretical Computer Science. 2015, pp. 367–376.arxiv.org/abs/1409.2391
  21. [30]Michael Kapralov and Dmitry Krachun. “An Optimal Space Lower Bound for Approximating MAX-CUT”. In: Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing. STOC (June 23–26, 2019). Association for Computing Machinery, June 2019, pp. 277–288. DOI: 10.1145/3313276.3316364.DOI
  22. [31]Michael Kapralov, Sanjeev Khanna, and Madhu Sudan. “Streaming Lower Bounds for Approximating MAX-CUT”. In: Proceedings of the 26th Annual ACM-SIAM Symposium on Discrete Algorithms. SODA (Jan. 4–6, 2015). Society for Industrial and Applied Mathematics, Jan. 2015, pp. 1263–1282. DOI: 10.1137/1.9781611973730.84.DOI
  23. [32]Ilan Kremer, Noam Nisan, and Dana Ron. “On randomized one-round communication complexity”. In: Computational Complexity 8.1 (1999), pp. 21–49. DOI: 10.1007/PL00001596.
  24. [34]Sanjeev Khanna, Aaron Putterman, and Madhu Sudan. “Efficient algorithms and new characterizations for CSP sparsification”. In: Proceedings of the 57th Annual ACM Symposium on Theory of Computing. 2025, pp. 407–416.arxiv.org/abs/2404.06327
  25. [35]Sanjeev Khanna, Aaron Putterman, and Madhu Sudan. “A Unified Theory of Sparsification”. In: arXiv preprint arXiv:2607.16126 (2026).arxiv.org/abs/2607.16126
  26. [36]Gillat Kol, Dmitry Paramonov, Raghuvansh R. Saxena, and Huacheng Yu. “Characterizing the Multi-Pass Streaming Complexity for Solving Boolean CSPs Exactly”. In: 14th Innovations in Theoretical Computer Science Conference. ITCS 2023 (Jan. 10–13, 2023). Ed. by Yael Tauman Kalai. Vol. 251. LIPIcs. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023, 80:1–80:15. DOI: 10.4230/LIPIcs.ITCS.2023.80.DOI
  27. [37]Phokion G. Kolaitis and Moshe Y. Vardi. “A Logical Approach to Constraint Satisfaction”. In: Complexity of Constraints - An Overview of Current Research Themes [Result of a Dagstuhl Seminar]. Ed. by Nadia Creignou, Phokion G. Kolaitis, and Heribert Vollmer. Vol. 5250. Lecture Notes in Computer Science. Springer, 2008, pp. 125–155. DOI: 10.1007/978-3-540-92800-3_6. URL: https://doi.org/10.1007/978-3-540-92800-3_6.
  28. [38]Victor Lagerkvist, Johanna Groven, and Leif Eriksson. “Towards Single Exponential Time for Temporal and Spatial Reasoning: A Study via Redundancy and Dynamic Programming”. In: Fortieth AAAI Conference on Artificial Intelligence, Thirty-Eighth Conference on Innovative Applications of Artificial Intelligence, Sixteenth Symposium on Educational Advances in Artificial Intelligence, AAAI 2026, Singapore, January 20-27, 2026. Ed. by Sven Koenig, Chad Jenkins, and Matthew E. Taylor. AAAI Press, 2026, pp. 14287–14294. DOI: 10.1609/AAAI.V40I17.38443. URL: https://doi.org/10.1609/aaai.v40i17.38443.
  29. [39]Shachar Lovett, Raghu Meka, and Yimeng Wang. “Moonflowers and Efficient Code Sparsification”. In: arXiv preprint arXiv:2605.08676 (2026).arxiv.org/abs/2605.08676
  30. [40]Victor Lagerkvist and Magnus Wahlström. “Sparsification of SAT and CSP problems via tractable extensions”. In: ACM Transactions on Computation Theory (TOCT) 12.2 (2020), pp. 1–29.DOI
  31. [41]Andrew McGregor. “Graph stream algorithms: a survey”. In: ACM SIGMOD Record 43.1 (2014), pp. 9–20.DOI

Paper details

vlnc:W_zu4k9bgf
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents