Abstract 1 Introduction 2 Technical Overview 3 š’Œ-SUM is complete for existential š—™š—¢š—£ā„¤ formulas 4 On counting witnesses in š—™š—¢š—£ā„¤ 5 Completeness Theorems for General Quantifier Structures 6 The šŸ‘-SUM problem is complete for š—™š—¢š—£ā„¤ formulas with Inequality Dimension at most 3 7 Application: A lower bound on the computation of Pareto Sums 8 Future Work References

Completeness Theorems for k-SUM and Geometric Friends: Deciding Fragments of Linear Integer Arithmetic

Geri Gokaj ORCID Karlsruhe Institute of Technology, Germany Marvin Künnemann Karlsruhe Institute of Technology, Germany
Abstract

In the last three decades, the k-SUM hypothesis has emerged as a satisfying explanation of long-standing time barriers for a variety of algorithmic problems. Yet to this day, the literature knows of only few proven consequences of a refutation of this hypothesis. Taking a descriptive complexity viewpoint, we ask: What is the largest logically defined class of problems captured by the k-SUM problem?

To this end, we introduce a class š–„š–®š–Æā„¤ of problems corresponding to deciding sentences in Presburger arithmetic/linear integer arithmetic over finite subsets of integers. We establish two large fragments for which the k-SUM problem is complete under fine-grained reductions:

  1. 1.

    The k-SUM problem is complete for deciding the sentences with k existential quantifiers.

  2. 2.

    The 3-SUM problem is complete for all 3-quantifier sentences of š–„š–®š–Æā„¤ expressible using at most 3 linear inequalities.

Specifically, a faster-than-n⌈k/2āŒ‰Ā±o⁢(1) algorithm for k-SUM (or faster-than-n2±o⁢(1) algorithm for 3-SUM, respectively) directly translate to polynomial speedups of a general algorithm for all sentences in the respective fragment.

Observing a barrier for proving completeness of 3-SUM for the entire class š–„š–®š–Æā„¤, we turn to the question which other – seemingly more general – problems are complete for š–„š–®š–Æā„¤. In this direction, we establish š–„š–®š–Æā„¤-completeness of the problem pair of Pareto Sum Verification and Hausdorff Distance under n Translations under the Lāˆž/L1 norm in ℤd. In particular, our results invite to investigate Pareto Sum Verification as a high-dimensional generalization of 3-SUM.

Keywords and phrases:
fine-grained complexity theory, descriptive complexity, presburger arithmetic, completeness results, k-SUM
Copyright and License:
[Uncaptioned image] © Geri Gokaj and Marvin Künnemann; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation → Complexity theory and logic
Acknowledgements:
The authors like to thank the reviewers for constructive feedback as well as Karl Bringmann and Nick Fischer for helpful discussions.
Funding:
This research is supported by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – 462679611.
Editors:
Raghu Meka

1 Introduction

Consider a basic question in complexity theory: How can we determine for which problems an essentially quadratic-time algorithm is best possible? If a given problem A admits an algorithm running in n2+o⁢(1) time, and it is known that A cannot be solved in time O⁢(n2āˆ’Ļµ) for any ϵ>0, then clearly the n2+o⁢(1) algorithm has optimal runtime, up to subpolynomial factors. This question can be asked more generally for any k≄1 and time nk±o⁢(1). To this day, the theoretical computer science community is far from able to resolve this question unconditionally. However, a surge of results over recent years uses conditional lower bounds based on plausible hardness assumptions to shed some light on why some problems seemingly cannot be solved in time O⁢(nkāˆ’Ļµ) for any ϵ>0. Most notably, reductions from k-OV, k-SUM and the weighted k-clique problem have been used to establish nkāˆ’o⁢(1)-time conditional lower bounds, often matching known algorithms; seeĀ [50] for a detailed survey.

In this context, the 3-SUM hypothesis is arguably the first – and particularly central – hardness assumption for conditional lower bounds. Initially introduced to explain various quadratic-time barriers observed in computational geometryĀ [35], it has since been used to show quadratic-time hardness for a wealth of problems from various fieldsĀ [52, 46, 6, 40, 29, 3, 21]. Its generalization, the k-SUM111The k-SUM problem asks, given sets A1,…,Ak of n numbers, whether there exist a1∈A1,…,ak∈Ak such that āˆ‘i=1kai=0. The k-SUM hypothesis states that for no ϵ>0 there exists a O⁢(n⌈k/2āŒ‰āˆ’Ļµ) time algorithm that solves k-SUM. hypothesis, has led to further conditional lower bounds beyond the quadratic-time regimeĀ [31, 4, 1, 2, 41]. For a more comprehensive overview, we refer toĀ [50].

The centrality of the 3-SUM hypothesis for understanding quadratic-time barriers begs an interesting question: Does 3-SUM fully capture quadratic-time solvability, in the sense that it is hard for the entire class š–£š–³š–Øš–¬š–¤ā¢(n2)? Alas, Bloch, Buss, and GoldsmithĀ [10] give evidence that we are unlikely to prove this: If 3-SUM is hard for š–£š–³š–Øš–¬š–¤ā¢(n2) under quasilinear reductions, then š–Æā‰ š–­š–Æ. Thus, to understand precisely the role of 3-SUM to understand quadratic-time computation, the more reasonable question to ask is:

What is the largest class š’ž of problems such that 3-SUM is š’ž-hard?222Note that there are different reasonable notions of reductions to consider. Rather than the quasilinear reductions used by Bloch et al., we will consider the currently more commonly used notion of fine-grained reductions; see SectionĀ 1.2 for details on the notion of completeness that we will use.

Finding a large class š’ž for which 3-SUM is hard may be seen as giving evidence for the 3-SUM hypothesis. Furthermore, such a result may clarify the true expressive power of the 3-SUM hypothesis, much like the NP-completeness of 3-SAT highlights its central role for polynomial intractability.

1.1 Our approach

We approach our central question from a descriptive complexity perspective. This line of research has been initiated by Gao et al.Ā [36], who establish the sparse OV problem as complete for the class of model checking first-order properties. One can interpret this result as showing that the OV problem expresses relational database queries in the sense that a truly subquadratic algorithm for OV would improve the fine-grained data complexity of such queries (seeĀ [36] for details). Related works further delineate the fine-grained hardness of model checking first-order properties and related problem classesĀ [49, 14, 12, 7, 13, 32], see SectionĀ 1.3 for more discussion.

Towards continuing the line of research on fine-grained completeness theorems, we introduce a class of problems corresponding to deciding formulas in linear integer arithmetic over finite sets of integers. Specifically, consider the vectors

x1=(x1⁢[1],…,x1⁢[d1]),…,xk=(xk⁢[1],…,xk⁢[dk])

as quantified variables, and let t1,…,tl be free variables. Moreover, let

X:={x1⁢[1],…,x1⁢[d1],…⁢xk⁢[1],…,xk⁢[dk],t1,…,tl},

and let ψ be a quantifier-free linear arithmetic formula over variables in X. We consider the model-checking problem for formulas Ļ• in the prenex normal form

Ļ•:=Q1⁢x1⁢…⁢Qk⁢xk:ψ,

where the quantifiers Q1,…,Qk∈{∃,āˆ€} are arbitrary. Formally, for such a Ļ•, we define the model checking problem š–„š–®š–Æā„¤ā¢(Ļ•) as follows333Below, we use the notation ψ⁢[(t1,…,tl)\(t1^,…,tl^)] to denote the substitution of the variables t1,…,tl by t1^,…,tl^ respectively.

š–„š–®š–Æā„¤ā¢(Ļ•): (1)
Input: Finite sets ⁢A1āŠ†ā„¤d1,…,AkāŠ†ā„¤dk⁢ and ⁢t1^,…,tl^āˆˆā„¤.
Problem: Does ⁢Q1⁢x1∈A1⁢…⁢Qk⁢xk∈Ak:ψ⁢[(t1,…,tl)\(t1^,…,tl^)]⁢ hold?

We let n:=maxi⁔{|Ai|} denote the input size and will assume throughout the paper that all input numbers (i.e., the coordinates of the vectors in A1,…,Ak and the values t1^,…,tl^) are chosen from a polynomially sized universe, i.e., {āˆ’U,…,U} with U≤nc for someĀ c. Let š–„š–®š–Æā„¤ be the union of all š–„š–®š–Æā„¤ā¢(Ļ•) problems, where Ļ• has at least 3 quantifiers.444It is not too difficult to see that all formulas with 2 quantifiers can be model-checked in near-linear time; see the full version for details. Besides 3-SUM, a variety of interesting problems is contained in š–„š–®š–Æā„¤; we discuss a few notable examples below and in the full version.

Frequently, we will distinguish formulas in š–„š–®š–Æā„¤ using their quantifier structure; e.g., š–„š–®š–Æā„¤ā¢(āˆƒāˆƒāˆ€) describes the class of model checking problems š–„š–®š–Æā„¤ā¢(Ļ•) where in Ļ• we have Q1=Q2=∃ and Q3=āˆ€. Furthermore, we let š–„š–®š–Æā„¤k be the union of all š–„š–®š–Æā„¤ā¢(Ļ•) problems, where Ļ• consists of precisely k quantifiers, regardless of their quantifier structure. For a quantifier Q∈{∃,āˆ€}, we write Qk for the repetition Q⁢…⁢QāŸk⁢ times. Finally, we remark that a small subset of š–„š–®š–Æā„¤ has already been studied by An et al. [7], for a discussion see Section 1.3.

1.2 Our Contributions

We seek to determine completeness results for the class š–„š–®š–Æā„¤. In particular: What are the largest fragments of this class for which 3-SUM (or more generally, k-SUM) is complete? Is there a problem that is complete for the entire class?

Intuitively, we say that a TA⁢(n)-time solvable problem A is (fine-grained) complete for a Tš’žā¢(n)-time solvable class of problems š’ž, if the existence of an O⁢(TA⁢(n)1āˆ’Ļµ)-time algorithm forĀ A with ϵ>0 implies that for all problems C in š’ž there exists Ī“>0 such that C can be solved in time O⁢(Tš’žā¢(n)1āˆ’Ī“). We extend this notion to completeness of a family of problems, since strictly speaking, any (geometric) problem over ℤd expressible in linear integer arithmetic corresponds to a family of formulas š–„š–®š–Æā„¤ (one for each dāˆˆā„•). Formally, consider a family of problems š’« with an associated time bound Tš’«ā¢(n) and a class of problemsĀ š’ž with an associated time bound Tš’žā¢(n); usually Tš’«ā¢(n),Tš’žā¢(n) denote the running time of the fastest known algorithm solving all problems in š’« or š’ž, respectively (often, we omit these time bounds, as they are clear from context).555Here, we use family and class as a purely semantic and intuitive distinction: A family consists of a small set of similar problems, and a class consists of a large and diverse variety of problems. We say that š’« is (fine-grained) complete for š’ž, if

  1. 1.

    the family š’« is a subset of the class š’ž, and

  2. 2.

    if for all problems P in š’« there exists ϵ>0 such that P can be solved in time O⁢(Tš’«ā¢(n)1āˆ’Ļµ), then for all problems C in š’ž there exists some Ī“>0 such that we can solve C in time O⁢(Tš’žā¢(n)1āˆ’Ī“).

That is, a polynomial-factor improvement for solving the problems in š’« would lead to a polynomial-factor improvement in solving all problems in š’ž. If a singleton family š’«={P} is fine-grained complete for š’ž, then we also say that P is fine-grained complete for š’ž. We work with standard hypotheses and problems encountered in fine-grained complexity; for detailed definitions of these, we refer to the full version of this article.

1.2.1 š’Œ-SUM is complete for the existential fragment of š—™š—¢š—£ā„¤

Consider first the existential fragment of š–„š–®š–Æā„¤, i.e., formulas exhibiting only existential quantifiers. Any š–„š–®š–Æā„¤ formula with k existential quantifiers can be decided using a standard meet-in-the-middle approach, augmented by orthogonal range search, in time O~⁢(n⌈k/2āŒ‰)666We use the notation O~⁢(T):=T⁢logO⁢(1)⁔(T) to hide polylogarithmic factors., see the full version of the paper for details. Since k-SUM is a member of š–„š–®š–Æā„¤ā¢(∃k), this running time is optimal up to subpolynomial factors, assuming the k-SUM Hypothesis. As our first contribution, we provide a converse reduction. Specifically, we show that a polynomially improved k-SUM algorithm would give a polynomially improved algorithm for solving the entire class. In our language, we show that k-SUM is fine-grained complete for formulas of š–„š–®š–Æā„¤ with k existential quantifiers.

Theorem 1 (k-SUM is š–„š–®š–Æā„¤ā¢(∃k)-complete).

Let k≄3 and assume that k-SUM can be solved in time Tk⁢SUM⁢(n). For any problem P in š–„š–®š–Æā„¤ā¢(∃k), there exists some c such that P can be solved in time O⁢(Tk⁢SUM⁢(n)⁢logc⁔n).

Thus, if there are k≄3 and ϵ>0 such that we can solve k-SUM in time O⁢(n⌈k/2āŒ‰āˆ’Ļµ), then we can solve all problems in š–„š–®š–Æā„¤ā¢(∃k) in time O⁢(n⌈k/2āŒ‰āˆ’Ļµā€²) for any 0<ϵ′<ϵ. By a simple negation argument, we conclude that k-SUM is also complete for the class of problems š–„š–®š–Æā„¤ā¢(āˆ€k).

The above theorem generalizes and unifies previous reductions from problems expressible as š–„š–®š–Æā„¤ā¢(∃k) formulas to 3-SUM, using different proof ideas: Jafargholi and ViolaĀ [39, Lemma 4] give a simple randomized linear-time reduction from triangle detection in sparse graphs to 3-SUM, and a derandomization via certain combinatorial designs. Dudek, Gawrychowski, and StarikovskayaĀ [29] study the family of 3-linear degeneracy testing (3-LDT), which constitutes a large and interesting subset of š–„š–®š–Æā„¤ā¢(∃∃∃): This family includes, for any α1,α2,α3,tāˆˆā„¤, the 3-partite formula ∃a1∈A1⁢∃a2∈A2⁢∃a3∈A3:α1⁢a1+α2⁢a2+α3⁢a3=t and the 1-partite formula ∃α1,α2,α3∈A:α1⁢a1+α2⁢a2+α3⁢a3=t∧a1≠a2∧a2≠a3∧a1≠a3. The authors show that each such formula is either trivial or subquadratic equivalent to 3-SUM. For 3-partite formulas, a reduction to 3-SUM is essentially straightforward. For 1-partite formulas, Dudek et al.Ā [29] use color coding.777We remark that the reverse direction, i.e., 3-SUM-hardness of non-trivial formulas, is technically much more involved and can be regarded as the main technical contribution ofĀ [29]. As further examples for reductions from š–„š–®š–Æā„¤ problems to k-SUM, we highlight a reduction from Vector k-SUM to k-SUMĀ [5] as well as a reduction from (min,+)-convolution to 3-SUM (seeĀ [9, 27]) based on a well-known bit-level trick due to Vassilevska Williams and WilliamsĀ [52], which allows us to reduce inequalities to equalities.

Perhaps surprisingly in light of its generality and applicability, TheoremĀ 1 is obtained via a very simple, deterministic reduction that combines the tricks fromĀ [5, 52]. This generality comes at the cost of polylogarithmic factors (which we do not optimize), which depend on the number of inequalities occurring in the considered formula; for the details see Section 3 and the full version of the paper.

1.2.2 Completeness for counting witnesses

We provide a certain extension of the above completeness result to the problem class of counting witnesses to existential š–„š–®š–Æā„¤ formulas888A witness for a š–„š–®š–Æā„¤ā¢(∃k) formula ∃a1∈A1ā¢ā€¦ā¢āˆƒak∈Ak:φ with t1^,…,tl^āˆˆā„¤ is a tuple (a1,…,ak)∈A1×⋯×Ak that satisfies the formula φ⁢[(t1,…,tl)\(t1^,…,tl^)].. Counting witnesses is an important task particularly in database applications (usually referred to as model counting). Furthermore, we will make use of witness counting to decide certain quantified formulas in subsequent results detailed below. In Section 4, we will obtain the following result.

Theorem 2.

Let k≄3 be odd. If there is ϵ>0 such that we can count the number of witnesses for k-SUM in time O⁢(n⌈k/2āŒ‰āˆ’Ļµ), then for all problem P in š–„š–®š–Æā„¤ā¢(∃k), there is some ϵ′>0 such that we can count the number of witnesses for P in time O⁢(n⌈k/2āŒ‰āˆ’Ļµā€²).

Leveraging the recent breakthrough byĀ [22] that 3-SUM is subquadratic equivalent to counting witnesses of 3-SUM, we obtain the corollary that 3-SUM is hard even for counting witnesses of š–„š–®š–Æā„¤ā¢(∃3).

Corollary 3.

For all problems P in š–„š–®š–Æā„¤ā¢(∃3), there is some ϵP>0 such that we can count the number of witnesses for P in randomized time O⁢(n2āˆ’ĻµP) if and only if there is some ϵ′>0 such that 3-SUM can be solved in randomized time O⁢(n2āˆ’Ļµā€²).

1.2.3 Completeness for general quantifier structures of š—™š—¢š—£ā„¤

In light of our first completeness result, one might wonder whether k-SUM is complete for deciding all k-quantifier formulas in š–„š–®š–Æā„¤, regardless of the quantifier structure of the formulas. Note that for these general quantifier structures, a baseline algorithm with running time O~⁢(nkāˆ’1) can be achieved with a combination of brute-force and orthogonal range queries; see the full version for details.

However, by [7, Theorem 15] there exists a š–„š–®š–Æā„¤ā¢(∃kāˆ’1āˆ€)-formula Ļ• that cannot be solved in time O⁢(nkāˆ’1āˆ’Ļµ)-time unless the 3-uniform hyperclique hypothesis is false (see the discussion in SectionĀ 1.3). Thus, proving that 3-SUM is complete for all 3-quantifier formulas would establish that the 3-uniform hyperclique hypothesis implies the 3-SUM hypothesis – this would be a novel tight reduction among important problems/hypotheses in fine-grained complexity theory. For k≄4, it becomes even more intricate: the conditionally optimal running time of nkāˆ’1±o⁢(1) for š–„š–®š–Æā„¤ā¢(∃kāˆ€) formulas exceeds the conditionally optimal running time of n⌈k2āŒ‰Ā±o⁢(1) for š–„š–®š–Æā„¤ā¢(∃k) formulas.

We are nevertheless able to obtain a completeness result for general quantifier structures: Specifically, we show that if two geometric problems over ℤd can be solved in time O⁢(n2āˆ’Ļµd) where ϵd>0 for all d, then each k-quantifier formula in š–„š–®š–Æā„¤ can be decided in time O⁢(nkāˆ’1āˆ’Ļµ) for some ϵ>0. These problems are (1) a variation of the Hausdorff distance that we call Hausdorff distance under n Translations and (2) the Pareto Sum problem; the details are covered in Section 5.

Hausdorff Distance under š’ Translations

Among the most common translation-invariant distance measures for given point sets B and C is the Hausdorff Distance under TranslationĀ [24, 18, 19, 23, 45, 38]. To define it, we denote the directed Hausdorff distance under the Lāˆž metric by Ī“H→⁢(B,C):=maxb∈B⁔minc∈C⁔‖bāˆ’cā€–āˆž.999Since we will exclusively consider the directed Hausdorff distance under Translation, we will drop ā€œdirectedā€ throughout the paper. The Hausdorff distance under translation Ī“H→T⁢(B,C) is defined as the minimum Hausdorff distance of B and an arbitrary translation of C, i.e.,

Ī“H→T⁢(B,C)≔minĻ„āˆˆā„d⁔ΓH→⁢(B,C+{Ļ„})=minĻ„āˆˆā„d⁔maxb∈B⁔minc∈C⁔‖bāˆ’(c+Ļ„)ā€–āˆž.

For d=2, Bringmann et al.Ā [18] were able to show a (|B|⁢|C|)1āˆ’o⁢(1) time lower bound based on the orthogonal vector hypothesis, and there exists a matching O~⁢(|B|⁢|C|) upper bound by Chew et al.Ā [25].

We shall establish that restricting the translation vector to be among a set of m candidate vectors yields a central problem in š–„š–®š–Æā„¤. Specifically, we define the Hausdorff distance under Translation in A, denoted as Ī“H→T⁢(A)⁢(B,C), by

Ī“H→T⁢(A)⁢(B,C)≔minĻ„āˆˆA⁔ΓH→⁢(B,C+{Ļ„})=minĻ„āˆˆA⁔maxb∈B⁔minc∈C⁔‖bāˆ’(c+Ļ„)ā€–āˆž.

Correspondingly, we define the problem Hausdorff distance under m Translations as: Given A,B,CāŠ†ā„¤d with |A|≤m, |B|,|C|≤n and a distance value Ī³āˆˆā„•, determine whether Ī“H→T⁢(A)⁢(B,C)≤γ. Note that this can be rewritten as a š–„š–®š–Æā„¤ā¢(āˆƒāˆ€āˆƒ)-formula, see the full version of the paper for details.

The Hausdorff distance under m Translations occurs naturally when approximating the Hausdorff distance under translation: Specifically, common algorithms compute a setĀ A of |A|=f⁢(ϵ) translations such that Ī“H→T⁢(A)⁢(B,C)≤(1+ϵ)⁢ΓH→T⁢(B,C). Generally, this problem is then solved by performing |A| computations of the Hausdorff distance, which yields O~⁢(|A|⁢n)=O~⁢(f⁢(ϵ)⁢n)-time algorithms [48]. Improving over the O~⁢(m⁢n)-time baseline for Hausdorff Distance under m Translations would thus lead to immediate improvements for approximating the Hausdorff Distance under Translation. Our results will establish additional consequences of fast algorithms for this problem: an O⁢(n2āˆ’Ļµd)-time algorithm with ϵd>0 for Hausdorff distance under n Translations would give an algorithmic improvement for the classes of š–„š–®š–Æā„¤ā¢(āˆƒāˆ€āˆƒ)- and š–„š–®š–Æā„¤ā¢(āˆ€āˆƒāˆ€)-formulas.

Verification of Pareto Sums

Our second geometric problem is a verification version of computing Pareto sums: Given point sets A,BāŠ†ā„¤d, the Pareto sum C of A,B is defined as the Pareto front of their sumset A+B={a+b∣a∈A,b∈B}. Put differently, the Pareto sum of A,B is a set of points C satisfying (1) CāŠ†A+B, (2) for every a∈A and b∈B, the vector a+b is dominated101010We consider the usual domination notion: A vector uāˆˆā„¤d is dominated by some vector vāˆˆā„¤d (written u≤v) if and only if in all dimensions i∈[d] it holds that u⁢[i]≤v⁢[i]. by some c∈C and (3) there are no distinct c,cā€²āˆˆC such that c′ dominates c. The task of computing Pareto sums appears in various multicriteria optimization settingsĀ [8, 47, 30, 44]; fast output-sensitive algorithms (both in theory and in practice) have recently been investigated by Hespe, Sanders, Storandt, and TruschelĀ [37].

We consider the following problem as Pareto Sum Verification: Given A,B,CāŠ†ā„¤d, determine whether

āˆ€a∈Aā¢āˆ€b∈B⁢∃c∈C:a+b≤c.

The complexity of Pareto Sum Verification111111We remark that our problem definition only checks a single of the three given conditions, specifically, conditionĀ (2). However, in SectionĀ 7, we will establish that the verifying all three conditions reduces to verifying this single condition. More specifically, for sets A,B,C of size at most n, we obtain that if we can solve Pareto Sum Verification in time T⁢(n), then we can check whether C is the Pareto sum of A,B in time O⁢(T⁢(n)). is tightly connected to output-sensitive algorithms for Pareto Sum. Specifically, solving Pareto Sum Verification reduces to computing the Pareto sum C when given inputs A,B of size at most n with the promise that |C|=Θ⁢(n); see SectionĀ 7 for details. The work of Hespe et al.Ā [37] gives a practically fast O⁢(n2)-time algorithm in this case for d=2; note that for d≄3, we still obtain an O~⁢(n2)-time algorithm via our Baseline Algorithm, which is described in the full version of the paper.

A problem pair that is complete for š—™š—¢š—£ā„¤

As a pair, these two geometric problems turn out to be fine-grained complete for the class š–„š–®š–Æā„¤.

Theorem 4.

There is a function ϵ⁢(d)>0 such that both of the following problems can be solved in time O⁢(n2āˆ’Ļµā¢(d))

  • ā– 

    Pareto Sum Verification,

  • ā– 

    Hausdorff distance under n Translations,

if and only if for each problem P in š–„š–®š–Æā„¤k with k≄3 there exists an ϵP>0 such that P can be solved in time O⁢(nkāˆ’1āˆ’ĻµP).

The above theorem shows that a single pair of natural problems captures the fine-grained complexity of the expressive and diverse class š–„š–®š–Æā„¤. As an illustration just how expressive this class is, we observe the following barriers:121212The first three statements follow from š–„š–®š–Æā„¤ generalizing the class P⁢T⁢O studied inĀ [7], see SectionĀ 1.3. The remaining statements rely on the additive structure of š–„š–®š–Æā„¤.

  1. 1.

    If there is some ϵ>0 such that all problems in š–„š–®š–Æā„¤ā¢(āˆƒāˆƒāˆ€) (or š–„š–®š–Æā„¤ā¢(āˆ€āˆ€āˆƒ)) can be solved in time O⁢(n2āˆ’Ļµ), then OVH (and thus SETH) is false [7, Theorem 16].

  2. 2.

    If there is some ϵ>0 such that all problems in š–„š–®š–Æā„¤ā¢(āˆƒāˆ€āˆƒ) (or š–„š–®š–Æā„¤ā¢(āˆ€āˆƒāˆ€)) can be solved in time O⁢(n2āˆ’Ļµ), then the Hitting Set Hypothesis is false [7, Theorem 12].

  3. 3.

    If for all problems P in š–„š–®š–Æā„¤ā¢(āˆƒāˆƒāˆ€) (or š–„š–®š–Æā„¤ā¢(āˆ€āˆ€āˆƒ)), there exists some ϵ>0 such that we can solve P in O⁢(n2āˆ’Ļµ), then the 3-uniform Hyperclique Hypothesis is false [7, Theorem 15].

  4. 4.

    If for all problems P in š–„š–®š–Æā„¤ā¢(∃∃∃) (š–„š–®š–Æā„¤ā¢(āˆ€āˆ€āˆ€),š–„š–®š–Æā„¤ā¢(āˆ€āˆ€āˆƒ), or š–„š–®š–Æā„¤ā¢(āˆƒāˆƒāˆ€)), there exists some ϵ>0 such that we can solve P in time O⁢(n2āˆ’Ļµ), then the 3-SUM Hypothesis is false (Theorem 1 with Lemma 11).

Theorem 4 raises the question whether for any constant dimension d, the Hausdorff distance under n Translations admits a subquadratic reduction to Pareto Sum Verification. A positive answer would establish Pareto Sum Verification as complete for the entire class š–„š–®š–Æā„¤. We elaborate on this in SectionĀ 8.

1.2.4 šŸ‘-SUM is complete for š—™š—¢š—£ā„¤ formulas of low inequality dimension

Returning to our motivating question, we ask: Since it appears unlikely to prove completeness of 3-SUM for all š–„š–®š–Æā„¤ formulas (as this requires a tight 3-uniform hyperclique lower bound for 3-SUM), can we at least identify a large fragment of š–„š–®š–Æā„¤ for which 3-SUM is complete? In particular, can we extend our first result of TheoremĀ 1 from existentially quantified formulas to substantially different problems in š–„š–®š–Æā„¤, displaying other quantifier structures?

Surprisingly, we are able to show that 3-SUM is complete for low-dimensional š–„š–®š–Æā„¤ formulas, independent of their quantifier structure. To formalize this, we introduce the inequality dimension of a š–„š–®š–Æā„¤ formula as the smallest number of linear inequalities required to model it. More formally, consider a š–„š–®š–Æā„¤ formula Ļ•=Q1x1∈A1,…,Qkxk∈Ak:ψ with AiāŠ†ā„¤di. The inequality dimension of Ļ• is the smallest number s such that there exists a Boolean function Ļˆā€²:{0,1}s→{0,1} and (strict or non-strict) linear inequalities L1,…,Ls in the variables {xi⁢[j]:i∈{1,…,k},j∈{1,…,di}} and the free variables such that ψ⁢(x1,…,xk) is equivalent to Ļˆā€²ā¢(L1,…,Ls). As an example, the 3-SUM formula ∃a∈A⁢∃b∈B⁢∃c∈C:a+b=c has inequality dimension 2, as a+b=c can be modelled as conjunction of the two linear inequalities a+b≤c and a+b≄c, whereas no single linear inequality can model a+b=c.

We show that 3-SUM is fine-grained complete for model-checking š–„š–®š–Æā„¤3 formulas with inequality dimension at most 3. This result is our perhaps most interesting technical contribution and intuitively combines our result that 3-SUM is hard for counting š–„š–®š–Æā„¤ witnesses (CorollaryĀ 3) with a geometric argument, specifically, that the union of n unit cubes in ā„3 can be decomposed into the union of O⁢(n) pairwise interior- and exterior-disjoint axis-parallel boxes. To this end, we extend a result from [23], which constructs pairwise interior-disjoint axis-parallel boxes, to also achieve exterior-disjointness. For more details, see the Technical Overview below and SectionĀ 6.

Theorem 5.

There is an algorithm deciding 3-SUM in randomized time O⁢(n2āˆ’Ļµ) for an ϵ>0, if and only if for each problem P in š–„š–®š–Æā„¤k with k≄3 and inequality dimension at most 3, there exists some ϵ>0 such that we can solve P in randomized time O⁢(nkāˆ’1āˆ’Ļµ).

Note that this fragment of š–„š–®š–Æā„¤ contains a variety of interesting problems. A general example is given by comparisons of sets defined using the sumset arithmetic131313The sumset arithmetic uses the sumset operator X+Y to denote the sumset {x+y∣x∈X,y∈Y} and λ⁢X to denote {λ⁢x∣x∈X}., which correspond to formulas of inequality dimension at most 2: E.g., checking, given sets A,B,CāŠ†ā„¤ and tāˆˆā„¤, whether C is an additive t-approximation of the sumset A+B is equivalent to verifying the conjunction of the š–„š–®š–Æā„¤ā¢(āˆ€āˆ€āˆƒ) problem141414Note that the corresponding formula is āˆ€a∈Aā¢āˆ€b∈B⁢∃c∈C:(c≤a+b)∧(a+b≤c+t), which clearly has inequality dimension at most 2. A+BāŠ†C+{0,…,t} and (2) the š–„š–®š–Æā„¤ā¢(āˆ€āˆƒāˆƒ) problem151515Note that the corresponding formula is āˆ€c∈C⁢∃a∈A⁢∃b∈B:a+b=c, which clearly has inequality dimension at most 2. CāŠ†A+B. Likewise, this extends to Ī»-multiplicative approximations of sumsets. Furthermore, the problems corresponding to general sumset comparisons like α1⁢A1+⋯+αi⁢AiāŠ†Ī±i+1⁢Ai+1+⋯+αk⁢Ak+{āˆ’ā„“,…,u} have inequality dimension at mostĀ 2 as well.

Our results of TheoremsĀ 4 andĀ 5 suggests to view Pareto Sum Verification as a geometric, high-dimensional generalization of 3-SUM. Furthermore, it remains an interesting problem to establish the highest d such that 3-SUM is complete for š–„š–®š–Æā„¤ formulas of inequality dimension at most d; for a discussion see Section 8.

Further Applications

As an immediate application of our first completeness theorem, we obtain a simple proof of a n4/3āˆ’o⁢(1) lower bound for the 4-SUM problem based on the the 3-uniform hyperclique hypothesis; see the full version of the paper for details. Specifically, by TheoremĀ 1, it suffices to model the 3-uniform 4-hyperclique problem as a problem in š–„š–®š–Æā„¤ā¢(∃∃∃∃). The resulting conditional lower bound is implicitly known in the literature, as it can alternatively be obtained by combining a 3-uniform hyperclique lower bound for 4-cycle given inĀ [43] with a folklore reduction from 4-cycle to 4-SUM (seeĀ [39] for a deterministic reduction from 3-cycle to 3-SUM).

Theorem 6.

If there is some ϵ>0 such that 4-SUM can be solved in time O⁢(n43āˆ’Ļµ), then the 3-uniform hyperclique hypothesis fails.

Similarly, we can also give a simple proof for a known lower bound for 3-SUM.

Another application of our results is to establish class-based conditional bounds. As a case in point, consider the problem of computing the Pareto sum of A,BāŠ†ā„¤d: Clearly, this problem can be solved in time O~⁢(n2) by explicitly computing the sumset A+B and computing the Pareto front using any algorithm running in near-linear time in its input, e.g.Ā [34]. We prove the following conditional optimality results already in the case when the desired output (the Pareto sum of A,B) has size Θ⁢(n).

Theorem 7 (Pareto Sum Computation Lower Bound).

The following conditional lower bounds hold for output-sensitive Pareto sum computation:

  1. 1.

    If there is ϵ>0 such that we can compute the Pareto sum C of A,BāŠ†ā„¤2, whenever C is of size Θ⁢(n), in time O⁢(n2āˆ’Ļµ), then the 3-SUM hypothesis fails (thus, for any š–„š–®š–Æā„¤k formula Ļ• of inequality dimension at most 3, there is ϵ′>0 such that Ļ• can be decided in time O⁢(nkāˆ’1āˆ’Ļµā€²)).

  2. 2.

    If for all d≄2, there is ϵ>0 such that we can compute the Pareto sum C of A,BāŠ†ā„¤d, whenever C is of size Θ⁢(n), in time O⁢(n2āˆ’Ļµ), then there is some ϵ′>0 such that we can decide all š–„š–®š–Æā„¤ formulas with k quantifiers not ending in āˆƒāˆ€āˆƒ or āˆ€āˆƒāˆ€ in time O⁢(nkāˆ’1āˆ’Ļµā€²).

Our lower bound for 2D strengthens a quadratic-time lower bound found by Funke et al.Ā [33] based on the (min,+)-convolution hypothesis to hold already under the weaker (i.e., more believable) 3-SUM hypothesis. For higher dimensions, we furthermore strengthen the conditional lower bound via its connection to š–„š–®š–Æā„¤.

We conclude with remaining open questions in Section 8.

1.3 Further Related Work

To our knowledge, the first investigation of the connection between classes of model-checking problems and central problems in fine-grained complexity was given by WilliamsĀ [49], who shows that the k-clique problem is complete for the class of existentially-quantified first order graph properties, among other results. As important follow-up work, Gao et al.Ā [36] establish OV as complete problem for model-checking any first-order property.

Subsequent results include classification results for ∃kāˆ€-quantified first-order graph propertiesĀ [14], fine-grained upper and lower bounds for counting witnesses of first-order propertiesĀ [28], completeness theorems for multidimensional ordering propertiesĀ [7] (discussed below), completeness and classification results for optimization classesĀ [12, 13] as well as an investigation of sparsity for monochromatic graph propertiesĀ [32].

We remark that An et al.Ā [7] study completeness results for a strict subset of š–„š–®š–Æā„¤ formulas: Specifically, they introduce a class š–Æš–³š–®k,d of k-quantifier first-order sentences over inputs ā„•d (or, without loss of generality {1,…,n}d) that may only use comparisons of coordinates (and constants). Note that such sentences lack additive structure, and indeed the fine-grained complexity differs decisively from š–„š–®š–Æā„¤: E.g., for š–Æš–³š–®ā¢(∃∃∃) formulas, they establish the sparse triangle detection problem as complete, establishing a conditionally tight running time of m2⁢ω/(ω+1)±o⁢(1). This is in stark contrast to š–„š–®š–Æā„¤ā¢(∃∃∃) formulas, for which we establish 3-SUM as complete problem, yielding a conditionally optimal running time of n2±o⁢(1). In particular, for each 3-quantifier structure Q1⁢Q2⁢Q3, a O⁢(n2āˆ’Ļµ)-time algorithm for all š–„š–®š–Æā„¤ā¢(Q1⁢Q2⁢Q3) problems would break a corresponding hardness barrier161616Specifically, an O⁢(n2āˆ’Ļµ) time algorithm for problems in š–„š–®š–Æā„¤ā¢(∃∃∃),š–„š–®š–Æā„¤ā¢(āˆ€āˆ€āˆ€),š–„š–®š–Æā„¤ā¢(āˆ€āˆ€āˆƒ), or š–„š–®š–Æā„¤ā¢(āˆƒāˆƒāˆ€) with ϵ>0 would refute the 3-SUM hypothesis. Furthermore, an O⁢(n2āˆ’Ļµ) time algorithm for problems in š–„š–®š–Æā„¤ā¢(āˆ€āˆƒāˆƒ), š–„š–®š–Æā„¤ā¢(āˆƒāˆ€āˆ€), š–„š–®š–Æā„¤ā¢(āˆƒāˆ€āˆƒ), or š–„š–®š–Æā„¤ā¢(āˆ€āˆƒāˆ€) with ϵ>0 would immediately yield an improvement for the MaxConv lower bound problem [27]; for details see the full version of the paper..

Since any š–Æš–³š–®k,d formula is also a š–„š–®š–Æā„¤ formula with the same quantifier structure, any hardness result inĀ [7] for š–Æš–³š–®ā¢(Q1,…,Qk) carries over to š–„š–®š–Æā„¤ā¢(Q1,…,Qk). On the other hand, any of our algorithmic results for š–„š–®š–Æā„¤ā¢(Q1,…,Qk) transfers to its subclass š–Æš–³š–®ā¢(Q1,…,Qk).

2 Technical Overview

In this section, we sketch the main ideas behind our proofs.

Completeness of š’Œ-SUM for š—™š—¢š—£ā„¤ā¢(āˆƒš’Œ)

With the right ingredients, proving that k-SUM is complete for š–„š–®š–Æā„¤ formulas with k existential quantifiers (TheoremĀ 1) is possible via a simple approach: We observe that any š–„š–®š–Æā„¤ā¢(∃k) formula Ļ• can be rewritten such that we may assume that Ļ• is a conjunction of m inequalities. We then use a slight generalization of a bit-level trick ofĀ [52] to reduce each inequality to an equality, incurring only O⁢(log⁔n) overhead per inequality (intuitively, we need to guess the most significant bit position at which the left-hand side and the right-hand side differ). Thus, we obtain O⁢(logm⁔n) conjunctions of m equalities; each such conjunction can be regarded as an instance of Vector k-SUM. Using a straightforward approach for reducing Vector k-SUM to k-SUM given inĀ [5], the reduction to k-SUM follows. We give all details in SectionĀ 3 and the full version of the paper.

Counting witnesses and handling multisets

While the reduction underlying Theorem 1 preserves the existence of solutions, it fails to preserve the number of solutions. The challenge is that when applying the bit-level trick to reduce inequalities to equalities, we need to make sure that for each witness of a š–„š–®š–Æā„¤ā¢(∃k) formula Ļ•, there is a unique witness in the k-SUM instances produced by the reduction. While it is straightforward to ensure that we do not produce multiple witnesses, the subtle issue arises that distinct witnesses for Ļ• may be mapped to the same witness in the k-SUM instances. It turns out that it suffices to solve a multiset version of #k-SUM, i.e., to count all witnesses in a k-SUM instance in which each input number may occur multiple times.

Thus, to obtain TheoremĀ 2, we show a fine-grained equivalence of Multiset #k-SUM and #k-SUM, for all odd k≄3. This fine-grained equivalence, which we prove via a heavy-light approach, might be of independent interest.171717We remark that it is plausible that the proof of the subquadratic equivalence of 3-SUM and #3-SUM due to Chan et al.Ā [22] could be extended to establish subquadratic equivalence with Multiset #3-SUM as well. Note, however, that a fine-grained equivalence of #k-SUM and k-SUM is not known for any k≄4. Combining this equivalence with an inclusion-exclusion argument, we may thus lift TheoremĀ 1 to a counting version for all odd k≄3.

In the reductions below, we will make crucial use of the immediate corollary of TheoremĀ 2 andĀ [22] that for each š–„š–®š–Æā„¤ā¢(∃∃∃) formula Ļ•, there exists a subquadratic reduction from counting witnesses for Ļ• to 3-SUM (CorollaryĀ 3).

On general quantifier structures

We perform a systematic study on the different quantifier structures for k=3. Due to simple negation arguments, we only have to perform a systematic study on the classes of problems š–„š–®š–Æā„¤ā¢(∃∃∃), š–„š–®š–Æā„¤ā¢(āˆ€āˆƒāˆƒ), š–„š–®š–Æā„¤ā¢(āˆ€āˆ€āˆƒ), š–„š–®š–Æā„¤ā¢(āˆƒāˆ€āˆƒ).

First, we state a simple lemma establishing syntactic complete problems for the classes above.

Lemma 8 (Syntactic Complete problems (Informal Version)).

Let Q1,Q2∈{∃,āˆ€}. We can reduce every formula of the class š–„š–®š–Æā„¤ā¢(Q1⁢Q2⁢∃) to the formula

Q1⁢a1~∈A1~⁢Q2⁢a2~∈A2~⁢∃a3~∈A3~:a1~+a2~≤a3~.
On the quantifier change š—™š—¢š—£ā„¤ā¢(āˆ€āˆƒāˆƒ)ā†’š—™š—¢š—£ā„¤ā¢(∃∃∃)

We rely on the subquadratic equivalence between 3-SUM and a functional version of 3-SUM called All-ints 3-SUM, which asks to determine for every a∈A whether there is a solution involving a. A randomized subquadratic equivalence was given in [51], which can be turned deterministic [42].

This equivalence allows us to use the bit-level trick to turn inequalities to equalities, despite it seemingly not interacting well with the quantifier structure āˆ€āˆƒāˆƒ at first sight. This results in a proof of the following hardness result.

Lemma 9.

If 3-SUM can be solved in time O⁢(n2āˆ’Ļµ) for an ϵ>0, then all problems P of š–„š–®š–Æā„¤ā¢(āˆ€āˆƒāˆƒ) can be solved in time O⁢(n2āˆ’ĻµP) for an ϵP>0.

On the quantifier change š—™š—¢š—£ā„¤ā¢(∃∃∃)ā†’š—™š—¢š—£ā„¤ā¢(āˆ€āˆ€āˆƒ)

As a first result for the class š–„š–®š–Æā„¤ā¢(āˆ€āˆ€āˆƒ), we are able to show equivalence to 3-SUM for a specific problem in this class, thus introducing a 3-SUM equivalent problem with a different quantifier structure in comparison to 3-SUM. Specifically, we consider the problem of verifying additive t-approximation of sumsets. We are able to precisely characterize the fine-grained complexity depending on t.

Formally, we show the following theorem.

Theorem 10.

Consider the Additive Sumset Approximation problem of deciding, given A,B,CāŠ†ā„¤,tāˆˆā„¤, whether

A+BāŠ†C+{0,…,t}.

This problem is

  • ā– 

    solvable in time O⁢(n2āˆ’Ī“) with Ī“>0, whenever t=O⁢(n1āˆ’Ļµ) for any ϵ>0,

  • ā– 

    not solvable in time O⁢(n2āˆ’Ļµ), whenever t=Ω⁢(n) assuming the Strong 3-SUM hypothesis.

Furthermore, subquadratic hardness holds under the standard 3-SUM Hypothesis if no restriction on t is made.

The above theorem is essentially enabling a quantifier change transforming the ∃∃∃ quantifier structure for which 3-SUM is complete into a subquadratic equivalent problem with a quantifier structure āˆ€āˆ€āˆƒ. Moreover, the 3-SUM hardness is a witness to the hardness of the class š–„š–®š–Æā„¤ā¢(āˆ€āˆ€āˆƒ).

Let us remark a few interesting aspects: The algorithmic part follows from sparse convolution techniques going back to Cole and HariharanĀ [26], seeĀ [16] for a recent account and also [20, 17, 15]. Specifically, whenever t=O⁢(n1āˆ’Ļµ), it holds that |C+{0,…,t}|=O⁢(n2āˆ’Ļµ) and intuitively, we can use an output-sensitive convolution algorithm to compute A+B and compare it to C+{0,…,t}.181818The argument is slightly more subtle, since we need to avoid computing A+B if its size exceeds O⁢(n2āˆ’Ļµ). Our result indicates that an explicit construction of C+{0,…,t} is required, since once it may get as large as Ω⁢(n2), we obtain a n2āˆ’o⁢(1)-time lower bound assuming the Strong 3-SUM Hypothesis.

The lower bound follows from describing the 3-SUM problem alternatively as (A+B)∩Cā‰ āˆ…, which is equivalent to the negation of (A+B)āŠ†CĀÆ, where CĀÆ denotes the complement of C. Thus, we aim to cover the complement of C by intervals of length t. While this appears impossible for 3-SUM, we employ the subquadratic equivalence of 3-SUM and its convolutional version due to Patrascu [46]. This problem will deliver us the necessary structure to represent this complement with the addition of few auxilliary points.

The reverse reduction from Additive Sumset Approximation to 3-SUM follows from TheoremĀ 5 (as Additive Sumset Approximation has inequality dimension 2).

On completeness results for š—™š—¢š—£ā„¤š’Œ

The above ingredients establish our completeness theorems by exhaustive search over remaining quantifiers. Specifically, by a combination of TheoremĀ 10, which shows that Additive Sumset Approximation is 3-SUM hard, and a combination of LemmaĀ 9 and TheoremĀ 1, we get:

Lemma 11.

There is a function ϵ⁢(d)>0 such that the Verification of Pareto Sum problem can be solved in time O⁢(n2āˆ’Ļµā¢(d)) if and only if all problems P in the classes

  • ā– 

    š–„š–®š–Æā„¤ā¢(Q1⁢…⁢Qkāˆ’3⁢∃∃∃),š–„š–®š–Æā„¤ā¢(Q1⁢…⁢Qkāˆ’3ā¢āˆ€āˆ€āˆ€),

  • ā– 

    š–„š–®š–Æā„¤ā¢(Q1⁢…⁢Qkāˆ’3ā¢āˆ€āˆƒāˆƒ),š–„š–®š–Æā„¤ā¢(Q1⁢…⁢Qkāˆ’3ā¢āˆƒāˆ€āˆ€),

  • ā– 

    š–„š–®š–Æā„¤ā¢(Q1⁢…⁢Qkāˆ’3ā¢āˆ€āˆ€āˆƒ),š–„š–®š–Æā„¤ā¢(Q1⁢…⁢Qkāˆ’3ā¢āˆƒāˆƒāˆ€),

where Q1,…⁢Qkāˆ’3∈{∃,āˆ€} and k≄3, can be solved in time O⁢(nkāˆ’1āˆ’ĻµP) for an ϵP>0.

Similarly, for quantifier structures ending in āˆƒāˆ€āˆƒ and āˆ€āˆƒāˆ€, we obtain the following completeness result.

Lemma 12.

There is a function ϵ⁢(d)>0 such that the Hausdorff Distance under n Translations problem can be solved in time O⁢(n2āˆ’Ļµā¢(d)) if and only if all problems P in the classes

  • ā– 

    š–„š–®š–Æā„¤ā¢(Q1⁢…⁢Qkāˆ’3ā¢āˆƒāˆ€āˆƒ),š–„š–®š–Æā„¤ā¢(Q1⁢…⁢Qkāˆ’3ā¢āˆ€āˆƒāˆ€),

where Q1,…⁢Qkāˆ’3∈{∃,āˆ€} and k≄3, can be solved in time O⁢(nkāˆ’1āˆ’ĻµP) for an ϵP>0.

The combination of Lemma 11 and Lemma 12, thus suffice to prove Theorem 4.

The šŸ‘-SUM completeness of formulas with inequality dimension at most šŸ‘

As a first idea, one could try to solve problems of different quantifier structures by just counting witnesses. Consider in the following the example š–„š–®š–Æā„¤ā¢(āˆ€āˆ€āˆƒ).

Assume we are promised that the formula āˆ€a∈Aā¢āˆ€b∈B⁢∃c∈C⁢ψ⁢(a,b,c) satisfies a kind of disjointness property, specifically that for every (a,b)∈AƗB there exists at most one c∈C such that ψ⁢(a,b,c). Then satisfying the formula boils down to checking whether the number of witnesses (a,b,c) satisfiying ψ⁢(a,b,c) equals to |A|ā‹…|B|.

To create this disjointness effect, we use the following geometric approach: We show that one can re-interpret the formula as āˆ€a∈Aā¢āˆ€b∈B:a+bāˆˆā‹ƒcā€²āˆˆC′V⁢(c′), where A,B,Cā€²āŠ†ā„¤3, C′ is a set of size O⁢(n) and V⁢(c′) is an orthant associated to c′. Using an adapted variant ofĀ [23], we decompose this union of orthants in ā„3 (which we may equivalently view as sufficiently large congruent cubes) into a set ā„› of O⁢(n) disjoint boxes. Thus, it remains to notice that the resulting problem – i.e., for all a∈A,b∈B is there a box Rāˆˆā„› such that a+b is contained in R – is a š–„š–®š–Æā„¤ā¢(āˆ€āˆ€āˆƒ) formula with the desired disjointness property, which can be handled as argued above.

For the class š–„š–®š–Æā„¤ā¢(āˆƒāˆ€āˆƒ), we perform a slightly more involved argument. The classes š–„š–®š–Æā„¤ā¢(∃∃∃) and š–„š–®š–Æā„¤ā¢(āˆ€āˆƒāˆƒ) reduce to 3-SUM regardless of the inequality dimension due to Theorem 1 and Lemma 9.

3 š’Œ-SUM is complete for existential š—™š—¢š—£ā„¤ formulas

We begin with a simple completeness theorem that k-SUM is complete for the class of problems š–„š–®š–Æā„¤ā¢(∃k). Since k-SUM is indeed a š–„š–®š–Æā„¤ā¢(∃k)-formula, it remains to show a fine-grained reduction from any š–„š–®š–Æā„¤ā¢(∃k) formula to k-SUM. The proofs in this section are deferred to the full version. As a first step towards this Theorem, we consider how to reduce a conjunction of m linear inequalities to a vector k-SUM instance.

Lemma 13.

Consider vectors a1∈{āˆ’U,…,U}d1,…,ak∈{āˆ’U,…,U}dk, integers S1,…,Sm∈{āˆ’U,…,U}, for each i∈{1,…,m},j∈{1,…,k}, vectors ci,jāˆˆā„¤dj, and a formula

ψ:=ā‹€i=1m(āˆ‘j=1kci,jT⁢aj≄Si).

There exist O⁢(1) time computable functions f1ā„“,ψ,…,fkā„“,ψ,gā„“,ψ,W such that the following statements are equivalent

  1. 1.

    The formula ā‹€i=1m(āˆ‘j=1kci,jT⁢aj≄Si) holds.

  2. 2.

    There are ā„“āˆˆ{1,…,⌈log2⁔(M)āŒ‰}m,W∈{1,…,k}m such that f1ā„“,ψ⁢(a1)+⋯+fkā„“,ψ⁢(ak)=gā„“,ψ,W⁢(S1,…,Sm).

Moreover, if the second item holds, there is a unique choice of such ā„“ and W.

Essentially the above lemma enables a reduction from a conjunction of inequality checks to a conjunction of equality checks. We can now continue with our completeness theorem. See 1 Ater applying LemmaĀ 13, it remains to reduce a conjunction of equality checks to k-SUM. To do so, we interpret the conjunction of equalities as a Vector k-SUM problem, which can be reduced to k-SUM in a straightforward wayĀ [5].

4 On counting witnesses in š—™š—¢š—£ā„¤

In this section, we show reductions from counting witnesses of š–„š–®š–Æā„¤ā¢(∃k) formulas to #⁢k-SUM, specifically, we prove TheoremĀ 2. To do so, we adapt the proof of TheoremĀ 1 given in SectionĀ 3 to a counting version. As discussed in SectionĀ 2, this requires us to work with a multiset version of #k-SUM. Handling multisets is thus the main challenge addressed in this section. Formally, we say that a multiset is a set A together with a function f:A→ℕ. For a∈A, we abbreviate na:=f⁢(a) as the multiplicity of a. To measure multiset sizes, we still think of each a to have na copies in the input, i.e. the size of A is āˆ‘a∈Ana. Almost all proofs in this section are deferred to the full version of the paper.

Definition 14 ((U,d)-vector Multiset #⁢k-SUM).

Let X:={āˆ’U,…,U}d. Given k multisets A1,…,AkāŠ†X and t∈X, we ask for the total number of k-SUM witnesses, that is

āˆ‘a1+⋯+ak=t,a1∈A1,…,ak∈Akāˆi=1knai.

Furthermore, define Multiset #⁢k-SUM as (U,1)-vector Multiset #⁢k-SUM and M-multiplicity #⁢k-SUM as Multiset #⁢k-SUM with the additional restriction that the multiplicity of each element is limited, that is for all a∈A1āˆŖā‹ÆāˆŖAk:na≤M holds. Lastly, #⁢k-SUM is defined as 1-Multiplicity #⁢k-SUM and (U,d)-vector #⁢k-SUM is (U,d)-vector Multiset #⁢k-SUM where for all a∈A1āˆŖā‹ÆāˆŖAk:na=1 holds.

For the case of š–„š–®š–Æā„¤3 we will also introduce the #All-ints version of the above problems, which asks to determine, for each a1∈A1, the number of witnesses involving a1.

The (deferred) proof of the following lemma is analogous to the proof of Abboud et al.Ā [5] to reduce Vector k-SUM to k-SUM.

Lemma 15 ((U,d)-vector Multiset #⁢k-SUM ā‰¤āŒˆk/2āŒ‰ Multiset #⁢k-SUM).

If Multiset #⁢k-SUM can be solved in time T⁢(n) then (U,d)-vector Multiset #⁢k-SUM can be solved in time O⁢(n⁢d⁢log⁔(U)+T⁢(n)).

Next, we give a simple approach to solve Multiset #⁢k-SUM when all multiplicities are comparably small.

Lemma 16 (M-multiplicity #⁢k-SUMā‰¤āŒˆk/2āŒ‰ #⁢k-SUM).

If #⁢k-SUM can be solved in timeĀ T⁢(n), then M-multiplicity #⁢k-SUM can be solved in time O~⁢(T⁢(n⁢Mkāˆ’1)).

For later purposes, we will need the following version of the above lemma.

Observation 17.

If #All-ints 3-SUM can be solved in time T⁢(n), then we can solve #All-ints M-multiplicity 3-SUM in time O~⁢(T⁢(n⁢M2)).

We can finally prove the main result of this section.

Lemma 18.

For odd k≄3, if there exists an algorithm for the #⁢k-SUM problem running in time O⁢(n⌈k/2āŒ‰āˆ’Ļµ) for an ϵ>0, then there exists an algorithm for the Multiset #k-SUM problem running in time O⁢(n⌈k/2āŒ‰āˆ’Ļµā€²) for an ϵ′>0.

Proof.

We proceed with a heavy-light approach. Assume there exists an O⁢(n⌈k/2āŒ‰āˆ’Ļµ) algorithm for the #⁢k-SUM problem. Set c:=(kāˆ’1)⁢(⌈k/2āŒ‰). Firstly, we count the number of solutions (a1,…,ak)∈A1×⋯×Ak, where na1,…,nak≤nϵ/c using Lemma 16. This takes time

O~⁢((nā‹…(nϵ/c)kāˆ’1)⌈k/2āŒ‰āˆ’Ļµ) =O~⁢((n1+ϵ⌈k/2āŒ‰)⌈k/2āŒ‰āˆ’Ļµ)
=O~⁢(n⌈k/2āŒ‰āˆ’Ļµ+Ļµāˆ’Ļµ2⌈k/2āŒ‰)
=O⁢(n⌈k/2āŒ‰āˆ’Ļµā€²),

where ϵ′>0. It remains to calculate the number of witnesses (a1,…,ak), where for at least one i∈{1,…,k}, we have high multiplicity, meaning nai>nϵ/c holds. Consider the case that a1∈A1 is a high-multiplicity number (the case where ai∈Ai with i≠1 is a high-multiplicity number is analogous). For each high-multiplicity number a1 in A1 we do the following. Solve the (kāˆ’1)-SUM instance with sets A2,…,Ak and target tāˆ’a1. There are at most n1āˆ’(ϵ/c) many high-multiplicity numbers in A1, and solving the (kāˆ’1)-SUM instance takes time O⁢(n(kāˆ’1)/2), since k is odd. We get a total runtime of

n1āˆ’Ļµcā‹…O~⁢(n(kāˆ’1)/2) =O~⁢(n1āˆ’(ϵ/c)+(kāˆ’1)/2)
=O~⁢(n(k+1)/2āˆ’(ϵ/c))
=O⁢(n⌈k/2āŒ‰āˆ’Ļµā€²ā€²),

where ϵ′′>0, which concludes the proof. ā—€

See 2

By combining the subquadratic equivalence between 3-SUM and #⁢3-SUM due to Chan et al. [22] and the above theorem, we obtain the following corollary. See 3

The above proof can also be adapted for the special case k=3 to count for each a1∈A1 the number of witnesses involving a1, by plugging in the appropriate All-ints versions; see the full version of the paper for details. Together with the equivalence between #All-ints 3-SUM and 3-SUM of Chan et al. [22], we get

Corollary 19.

For all problems P in š–„š–®š–Æā„¤ā¢(∃3), we are able to count for each a1∈A1 the number of witnesses involving a1 in randomized time O⁢(n2āˆ’Ļµ) for an ϵ>0, if 3-SUM can be solved in randomized time O⁢(n2āˆ’Ļµā€²) for an ϵ′>0.

5 Completeness Theorems for General Quantifier Structures

As Theorem 1 establishes 3-SUM as the complete problem for the class š–„š–®š–Æā„¤ā¢(∃∃∃), we would like to similarly explore complete problems for other quantifier structures. All proofs in this section are deferred to the full version. Let us recall our main geometric problems.

Definition 20 (Verification of d-dimensional Pareto Sum).

Given sets A,B,CāŠ†ā„¤d. Does the set C dominate A+B, that is does for all a∈A,b∈B exist a c∈C, with c≄a+b ?

It is easy to see that Verification of d-dimensional Pareto Sum is in š–„š–®š–Æā„¤ā¢(āˆ€āˆ€āˆƒ).

Definition 21 (Hausdorff Distance under n Translations).

Given sets A,B,CāŠ†ā„¤d with at most n elements and a Ī³āˆˆā„•, the Hausdorff distance under n Translations problem asks whether the following holds:

Ī“H→T⁢(A)⁢(B,C)≔minĻ„āˆˆA⁔ΓH→⁢(B,C+{Ļ„})=minĻ„āˆˆA⁔maxb∈B⁔minc∈C⁔‖bāˆ’(c+Ļ„)ā€–āˆžā‰¤Ī³.

We show the following result firstly, which allows us to assume without loss of generality a certain normal form.

Lemma 22.

A general š–„š–®š–Æā„¤ā¢(Q1⁢Q2⁢∃) formula, with input set A1āŠ†ā„¤d1,A2āŠ†ā„¤d2,A3āŠ†ā„¤d3, where |A1|=|A2|=|A3|=n, can be reduced to the š–„š–®š–Æā„¤ā¢(Q1⁢Q2⁢∃) formula

Q1⁢a1ā€²āˆˆA1′⁢Q2⁢a2ā€²āˆˆA2ā€²ā¢āˆƒa3ā€²āˆˆA3′:a1′+a2′≤a3′

in time O⁢(n), where |A1′|=|A2′|=n and |A3′|=O⁢(n).

The above lemma immediately gives us complete syntactic problems for our classes. It remains to establish connections between the different quantifier structure classes, and explore natural variants of the syntactic problems.

The syntactic complete problem for the class š–„š–®š–Æā„¤ā¢(āˆƒāˆ€āˆƒ) turns out to be equivalent to Hausdorff Distance under n Translations. We obtain:

Lemma 23 (Hausdorff Distance under n Translations is complete for š–„š–®š–Æā„¤ā¢(āˆƒāˆ€āˆƒ)).

There is a function ϵ⁢(d)>0 such that Hausdorff Distance under n Translations can be solved in time O⁢(n2āˆ’Ļµā¢(d)) if and only if all problems P in š–„š–®š–Æā„¤ā¢(āˆƒāˆ€āˆƒ) can be solved in time O⁢(n2āˆ’ĻµP) for an ϵP>0.

Similarly, the Verification of Pareto Sum problem is complete for the class š–„š–®š–Æā„¤ā¢(āˆ€āˆ€āˆƒ).

Lemma 24 (Verification of Pareto Sum is complete for š–„š–®š–Æā„¤ā¢(āˆ€āˆ€āˆƒ)).

There is a function ϵ⁢(d)>0 such that Verification of Pareto Sum can be solved in time O⁢(n2āˆ’Ļµā¢(d)) if and only if all problems P in š–„š–®š–Æā„¤ā¢(āˆ€āˆ€āˆƒ) can be solved in time O⁢(n2āˆ’ĻµP) for an ϵP>0.

5.1 š—™š—¢š—£ā„¤ā¢(āˆ€āˆƒāˆƒ)ā†’š—™š—¢š—£ā„¤ā¢(∃∃∃)

We continue with handling the class š–„š–®š–Æā„¤ā¢(āˆ€āˆƒāˆƒ). By simply making use of Corollary 19, one can easily prove that 3-SUM is hard for the class š–„š–®š–Æā„¤ā¢(āˆ€āˆƒāˆƒ). We can also show a deterministic proof, as Corollary 19 makes use of the subquadratic equivalence between 3-SUM and #All-ints 3-SUM, which relies on randomization techniques.

See 9

5.2 š—™š—¢š—£ā„¤ā¢(∃∃∃)ā†’š—™š—¢š—£ā„¤ā¢(āˆ€āˆ€āˆƒ)

We explore the connection between the problem Additive Sumset Approximation, which is a member of the class š–„š–®š–Æā„¤ā¢(āˆ€āˆ€āˆƒ), and the 3-SUM problem. The following theorem will play a key role to enable the discovery of the relationship between 3-SUM and other quantifier structures. See 10 The proof is deferred to the full version of the paper.

5.3 Completeness results for the class š—™š—¢š—£ā„¤š’Œ

We turn to combining the above insights to establish (a pair of) complete problems for the class š–„š–®š–Æā„¤. The proofs in this section are deferred to the full version of the paper.

See 11

See 12 We finally obtain our completeness theorem for the whole class š–„š–®š–Æā„¤k. See 4

Essentially, these two problems capture the complexity of the class š–„š–®š–Æā„¤3 and can be seen as the most important problems in š–„š–®š–Æā„¤k.

6 The šŸ‘-SUM problem is complete for š—™š—¢š—£ā„¤ formulas with Inequality Dimension at most 3

In this section, we show that 3-SUM problem captures an interesting subclass of š–„š–®š–Æā„¤ formulas with arbitrary quantifier structure, namely the formulas of sufficiently small inequality dimension. Let us recall the notion of inequality dimension.

Definition 25 (Inequality Dimension of a Formula).

Let Ļ•=Q1x1∈A1,…,Qkxk∈Ak:ψ be a š–„š–®š–Æā„¤ formula with AiāŠ†ā„¤di.

The inequality dimension of Ļ• is the smallest number s such that there exists a Boolean function Ļˆā€²:{0,1}s→{0,1} and (strict or non-strict) linear inequalities L1,…,Ls in the variables {xi⁢[j]:i∈{1,…,k},j∈{1,…,di}} and the free variables such that ψ⁢(x1,…,xk) is equivalent to Ļˆā€²ā¢(L1,…,Ls).

In the following, we look at the class of problems š–„š–®š–Æā„¤k with the restriction of inequality dimension at most 3. We use the following naming convention for boxes.

Definition 26.

A d-box in ā„d is the cartesian product of d proper intervals s1×⋯×sd, where si is an open, closed or half-open interval. We call a cartesian product of only closed intervals a closed box and a cartesian product of only open intervals an open box.

Given a set R of n closed boxes (represented as 2⁢d integer coordinates), and d-dimensional points a∈A,b∈B, we can express in š–„š–®š–Æā„¤ā¢(∃∃∃) whether a+b lies in one of the boxes as follows:

∃a∈A⁢∃b∈B⁢∃r∈R:ā‹€i=1dr⁢[i]≤a⁢[i]+b⁢[i]∧a⁢[i]+b⁢[i]≤r⁢[d+i].

In fact, we are not limited to closed boxes, if a box is open or half open in a dimension, one can adjust the inequalities in this dimension appropriately.

In order to prove our main theorem in this section, we need to partition the union of n unit cubes in ā„3 into pairwise interior- and exterior-disjoint boxes. While Chew et al.Ā [23] studied such a decomposition of unit cubes with the requirement of only interior-disjoint boxes, we need an extension of their result to guarantee disjoint exteriors.

Lemma 27 (Disjoint decomposition of the union of cubes in ā„3).

Let š’ž be a set of n axis-aligned congruent cubes in ā„3. The union of these cubes, can be decomposed into O⁢(n) boxes whose interiors and exteriors are disjoint in time O⁢(n⁢log2⁔n).

The proof is deferred to the full version.

Theorem 28.

There is an algorithm deciding 3-SUM in randomized time O⁢(n2āˆ’Ļµ) for an ϵ>0 if and only if for each problem P in the classes š–„š–®š–Æā„¤ā¢(āˆ€āˆ€āˆƒ) and š–„š–®š–Æā„¤ā¢(āˆƒāˆ€āˆƒ) of inequality dimension at most 3 there exists some ϵ′>0 such that we can solve P in randomized time O⁢(n2āˆ’Ļµā€²).

Proof.

For the first direction due to Theorem 10, we can reduce 3-SUM to an instance of Additive Sumset Approximation,

āˆ€a∈Aā¢āˆ€b∈B⁢∃c∈C:c≤a+b∧a+b≤c+t,

which has inequality dimension 2. Let us continue with the other direction. Let Ļ•:=Q1⁢a∈Aā¢āˆ€b∈B⁢∃c∈C:φ, where Q1∈{∃,āˆ€} and φ is a quantifier free linear arithmetic formula with inequality dimension 3. Let L1:=α1T⁢a+β1T⁢b≤γ1T⁢c+S1, L2:=α2T⁢a+β2T⁢b≤γ2T⁢c+S2 and L3:=α3T⁢a+β3T⁢b≤γ3T⁢c+S3 after replacing the free variables. Assume that the formula φ is given in DNF, thus each co-clause has at most 3 atoms, chosen from L1,L2,L3 and their negations. Let

A′:={(α1T⁢aα2T⁢aα3T⁢a):a∈A},B′:={(β1T⁢bβ2T⁢bβ3T⁢b):b∈B},C′:={(γ1T⁢c+S1γ2T⁢c+S2γ3T⁢c+S3):c∈C}

Thus each co-clause consists of conjunctions of a subset of the following set

{ a′⁢[0]+b′⁢[0]≤c′⁢[0],a′⁢[0]+b′⁢[0]≄c′⁢[0]+1,a′⁢[1]+b′⁢[1]≤c′⁢[1],
a′[1]+b′[1]≄c′[1]+1,a′[2]+b′[2]≤c′[2],a′[2]+b′[2]≄c′[2]+1}.

Let the co-clauses of φ be V1,…,Vh. Thus, we aim to decide a formula of the form:

Q1⁢aā€²āˆˆAā€²ā¢āˆ€bā€²āˆˆBā€²ā¢āˆƒcā€²āˆˆC′:⋁i=1hVi (2)

For each co-clause Vi, i∈{1,…,h} it holds that Vi is of the form

ā‹€k∈ViKLkāˆ§ā‹€j∈ViJ¬Lj,

for some ViJ,ViKāŠ†{1,2,3} and ViJ∩ViK=āˆ….

Let us consider for each fixed cā€²āˆˆC′ the following possibly empty orthant in ā„3.

š’®ā¢(Vi,c′):={xāˆˆā„3:ā‹€k∈ViKx⁢[k]≤c′⁢[k]āˆ§ā‹€j∈ViJx⁢[j]≄c′⁢[j]+1}.

By construction, it is immediate that for a fixed c′ and (a′,b′)∈A′×B′ that (a′,b′,c′) fulfill the co-clause Vi if and only if a′+bā€²āˆˆš’®ā¢(Vi,c′). Thus, equivalently to (2), we ask

Q1⁢aā€²āˆˆAā€²ā¢āˆ€bā€²āˆˆBā€²ā¢āˆƒcā€²āˆˆC′:⋁i=1h(a′+bā€²āˆˆS⁢(Vi,c′)).

Having a closer look, ⋁i=1h(a′+bā€²āˆˆS⁢(Vi,c′)) is true if and only if a′+b′ lies in one of the orthants S⁢(Vi,c′).

We argue that we may represent the orthant š’®ā¢(Vi,c′) as an appropriately chosen cube in ā„3. To this end, let M:=2ā‹…max⁔{‖a‖1+‖b‖1+‖c‖1:aā€²āˆˆA′,bā€²āˆˆB′,cā€²āˆˆC′} be a sufficiently large number. We can interpret š’®ā¢(Vi,c′) as a cube of the type š’ži,c′=[m0,m0′]Ɨ[m1,m1′]Ɨ[m2,m2′], where for u∈{0,1,2}, we define:

mu:={āˆ’Muāˆ‰ViK,uāˆ‰ViJ,āˆ’2⁢M+c⁢[u]u∈ViK,c⁢[u]+1u∈ViJ,mu′:={Muāˆ‰ViK,uāˆ‰ViJ,c⁢[u]u∈ViK,2⁢M+c⁢[u]+1u∈ViJ.

The cubes are axis-aligned and have side length 2⁢M. Due to the large size of the cube we get for fixed cā€²āˆˆC′ that a′+bā€²āˆˆš’®ā¢(Vi,c′) if and only if a′+b′ lies inside the cube š’ži,c′.

By Lemma 27, we can decompose the collection of cubes š’ži,c′ for i∈{1,…,H},cā€²āˆˆC′ into l=O⁢(n) disjoint boxes ā„›:={R1,…,Rl} in time O⁢(n⁢log2⁔n). Let us now go through a case distinction based on the first quantifier.

  • ā– 

    If Q1=āˆ€, equivalent to Ļ• we ask

    āˆ€aā€²āˆˆAā€²ā¢āˆ€bā€²āˆˆBā€²ā¢āˆƒi∈{1,…,l}:a′+b′⁢ lies in ⁢Ri.

    By replacing each i∈{1,…,l} by a 6-tuple denoting the dimensions of the box Ri, we can reduce counting the number of (a′,b′,Ri) with a′+bā€²āˆˆRi to 3-SUM using CorollaryĀ 3. Due to the disjointness of the boxes Ri, we know that no (a′,b′) can be in different boxes Ri,Ri′ with i≠i′.

    Thus, we can decide our original question by checking whether the number of such witnesses equals |A′|ā‹…|B′|, concluding the fine-grained reduction to 3-SUM.

  • ā– 

    Assume now that Q1=∃. Thus, equivalently to Ļ•, we ask.

    ∃aā€²āˆˆAā€²ā¢āˆ€bā€²āˆˆBā€²ā¢āˆƒi∈{1,…,l}:a′+b′⁢ lies in ⁢Ri.

    We can now make use of CorollaryĀ 19. Count for each aā€²āˆˆA′ the number of witnesses (a′,b′,Ri) with a′+bā€²āˆˆR′. We claim that it remains to check whether there is some a′ that is involved in |B′| witnesses. To see this, note that due to the disjointness of the Ri’s, for any aā€²āˆˆA′ we have that the number of (b′,Ri) with a′+bā€²āˆˆRi is equal to the number of b′ such that there exists Ri with a′+bā€²āˆˆRi. Again, the desired reduction to 3-SUM follows.

ā—€

We remark that, by [11], we know that the complexity of the union of orthants in ā„d has worst case complexity O⁢(n⌊d/2āŒ‹). Thus, the above proof does not seem directly generalizable to inequality dimensions larger than 3. We can extend Theorem 28 to k-quantifiers by the following theorem.

See 5

The above theorem gives us immediate reductions to 3-SUM for many seemingly unrelated problems of different quantifier structures and semantics.

For instance, as a direct application of the above theorem we can conclude the equivalence of the Additive Sumset Approximation problem to 3-SUM, together with Theorem 10.

Lemma 29 (Additive Sumset Approximation ≤2 3-SUM).

If the 3-SUM problem can be solved in randomized time O⁢(n2āˆ’Ļµ) for an ϵ>0 then Additive Sumset Approximation problem can be solved in randomized time O⁢(n2āˆ’Ļµā€²) for an ϵ′>0.

7 Application: A lower bound on the computation of Pareto Sums

In the following, we explore how the 3-SUM hardness of Verification of Pareto Sum translates to a hardness result for the problem of computing Pareto Sums. Let us first justify the naming of the Verification of Pareto Sum problem, by showing it to be subquadratic equivalent to the more natural extended version of Verification of Pareto Sum. Throughout this section, we consider dimensions d≄2.

Definition 30 (Verification of Pareto Sum (Extended version)).

Given sets A,B,CāŠ†ā„¤d, do the following properties hold simultaneously:

  • ā– 

    (Inclusion): CāŠ†A+B,

  • ā– 

    (Dominance): C dominates A+B. More formally, for every a∈A,b∈B there exists c∈C with c≄a+b.

  • ā– 

    (Minimality): There are no c,cā€²āˆˆC with c≠c′ and c≤c′.

We make use of the following lemma and its construction for the results in this section.

Lemma 31.

Given sets A,B,CāŠ†ā„¤d of size at most n, one can construct sets A~,B~,C~āŠ†ā„¤d of size Θ⁢(n) in time O~⁢(n) such that (1) A~,B~,C~ always satisfy the minimality and inclusion condition and (2) A~,B~,C~ fulfill the dominance condition if and only if A,B,C fulfill the dominance condition.

Due to space constraints, the proof had to be deferred to the full version. Using this construction, it is not difficult to obtain the following equivalence.

Lemma 32.

There is an O⁢(n2āˆ’Ļµ) time algorithm for an ϵ>0 for Verification of Pareto Sum (Extended Version) if and only if there is an O⁢(n2āˆ’Ļµā€²) time algorithm for an ϵ′>0 for Verification of Pareto Sum.

The proof can be found in the full version. Thus, for subquadratic reductions, we can restrict ourselves to the Verification of Pareto Sum problem, which essentially only checks the dominance condition.

Let us now consider the natural problem of computing the Pareto Sum.

Definition 33 (Pareto Sum).

Given sets A,BāŠ†ā„¤d, compute a set CāŠ†ā„¤, such that A,B,C satisfy the Inclusion, Dominance and Minimality condition.

In the following, we argue why the lower bounds to Verification of Pareto Sum translate to lower bounds to Computation of the Pareto Sum. Formally, we prove:

Lemma 34.

If there is an algorithm to compute the Pareto Sum C of sets A,BāŠ†ā„¤d in time O⁢(n2āˆ’Ļµ) for an ϵ>0 even when C=Θ⁢(n), then one can also decide Verification of Pareto Sum of sets A,B,C in time O⁢(n2āˆ’Ļµā€²) for an ϵ′>0.

We conclude this section with our resulting hardness results for computing Pareto Sums. See 7

8 Future Work

While we exhibit a pair of problems that is complete for the class š–„š–®š–Æā„¤, one could still ask whether there is a subquadratic reduction from Hausdorff distance under n Translations to Verification of Pareto Sum. As a result there would be a single complete problem (or rather the canonical multidimensional family of a single geometric problem) for š–„š–®š–Æā„¤.

Is Verification of Pareto Sum complete for the class š–„š–®š–Æā„¤?

Interestingly, previous completeness theorems [36] were able to establish a problem of quantifier structure āˆ€āˆ€āˆƒ (the Orthogonal Vectors problem) as complete by making use of a technique inĀ [51] that was originally used to show subcubic equivalence between All-Pairs Negative Triangle and Negative Triangle. However, a major problem we encounter is that while the third quantifier in the Orthogonal Vectors problem ranges over a sparse (intuitively: subpolynomially sized) domain (i.e., the dimensions of the vectors), the third quantifier in Pareto Sum Verification ranges over a linearly sized domain (i.e., the set C).

Finally, we ask if our 3-SUM completeness result for arbitrary quantifier structures can be improved upon.

Can we establish a d>3 such that 3-SUM is complete for š–„š–®š–Æā„¤ formulas of inequality dimension at most d?

References

  • [1] Amir Abboud, Arturs Backurs, Karl Bringmann, and Marvin Künnemann. Fine-grained complexity of analyzing compressed data: Quantifying improvements over decompress-and-solve. In Chris Umans, editor, 58th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2017, Berkeley, CA, USA, October 15-17, 2017, pages 192–203. IEEE Computer Society, 2017. doi:10.1109/FOCS.2017.26.
  • [2] Amir Abboud, Arturs Backurs, Karl Bringmann, and Marvin Künnemann. Impossibility results for grammar-compressed linear algebra. In Hugo Larochelle, Marc’Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, editors, Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020. URL: https://proceedings.neurips.cc/paper/2020/hash/645e6bfdd05d1a69c5e47b20f0a91d46-Abstract.html.
  • [3] Amir Abboud, Karl Bringmann, Seri Khoury, and OrĀ Zamir. Hardness of approximation in p via short cycle removal: cycle detection, distance oracles, and beyond. In Stefano Leonardi and Anupam Gupta, editors, STOC ’22: 54th Annual ACM SIGACT Symposium on Theory of Computing, Rome, Italy, June 20 - 24, 2022, pages 1487–1500. ACM, 2022. doi:10.1145/3519935.3520066.
  • [4] Amir Abboud and Kevin Lewi. Exact weight subgraphs and the k-sum conjecture. In FedorĀ V. Fomin, Rusins Freivalds, MartaĀ Z. Kwiatkowska, and David Peleg, editors, Automata, Languages, and Programming - 40th International Colloquium, ICALP 2013, Riga, Latvia, July 8-12, 2013, Proceedings, Part I, volume 7965 of Lecture Notes in Computer Science, pages 1–12. Springer, 2013. doi:10.1007/978-3-642-39206-1_1.
  • [5] Amir Abboud, Kevin Lewi, and Ryan Williams. Losing weight by gaining edges. In AndreasĀ S. Schulz and Dorothea Wagner, editors, Algorithms - ESA 2014 - 22th Annual European Symposium, Wroclaw, Poland, September 8-10, 2014. Proceedings, volume 8737 of Lecture Notes in Computer Science, pages 1–12. Springer, 2014. doi:10.1007/978-3-662-44777-2_1.
  • [6] Amir Abboud and VirginiaĀ Vassilevska Williams. Popular conjectures imply strong lower bounds for dynamic problems. In 55th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2014, Philadelphia, PA, USA, October 18-21, 2014, pages 434–443. IEEE Computer Society, 2014. doi:10.1109/FOCS.2014.53.
  • [7] Haozhe An, Mohit Gurumukhani, Russell Impagliazzo, Michael Jaber, Marvin Künnemann, and Maria PaulaĀ Parga Nina. The fine-grained complexity of multi-dimensional ordering properties. Algorithmica, 84(11):3156–3191, 2022. doi:10.1007/S00453-022-01014-X.
  • [8] Christian Artigues, Marie-JosĆ© Huguet, Fallou Gueye, FrĆ©dĆ©ric Schettini, and Laurent Dezou. State-based accelerations and bidirectional search for bi-objective multi-modal shortest paths. Transportation Research Part C: Emerging Technologies, 27:233–259, 2013.
  • [9] Arturs Backurs, Piotr Indyk, and Ludwig Schmidt. Better approximations for tree sparsity in nearly-linear time. In PhilipĀ N. Klein, editor, Proceedings of the Twenty-Eighth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2017, Barcelona, Spain, Hotel Porta Fira, January 16-19, pages 2215–2229. SIAM, 2017. doi:10.1137/1.9781611974782.145.
  • [10] StephenĀ A Bloch, JonathanĀ F Buss, and Judy Goldsmith. How hard are n 2-hard problems? ACM SIGACT News, 25(2):83–85, 1994. doi:10.1145/181462.181465.
  • [11] Jean-Daniel Boissonnat, Micha Sharir, Boaz Tagansky, and Mariette Yvinec. Voronoi diagrams in higher dimensions under certain polyhedral distance functions. Discret. Comput. Geom., 19(4):485–519, 1998. doi:10.1007/PL00009366.
  • [12] Karl Bringmann, Alejandro Cassis, Nick Fischer, and Marvin Künnemann. Fine-grained completeness for optimization in P. In Mary Wootters and Laura SanitĆ , editors, Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques, APPROX/RANDOM 2021, August 16-18, 2021, University of Washington, Seattle, Washington, USA (Virtual Conference), volume 207 of LIPIcs, pages 9:1–9:22. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2021. doi:10.4230/LIPICS.APPROX/RANDOM.2021.9.
  • [13] Karl Bringmann, Alejandro Cassis, Nick Fischer, and Marvin Künnemann. A structural investigation of the approximability of polynomial-time problems. In Mikolaj Bojanczyk, Emanuela Merelli, and DavidĀ P. Woodruff, editors, 49th International Colloquium on Automata, Languages, and Programming, ICALP 2022, July 4-8, 2022, Paris, France, volume 229 of LIPIcs, pages 30:1–30:20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPICS.ICALP.2022.30.
  • [14] Karl Bringmann, Nick Fischer, and Marvin Künnemann. A fine-grained analogue of schaefer’s theorem in P: dichotomy of existsˆk-forall-quantified first-order graph properties. In Amir Shpilka, editor, 34th Computational Complexity Conference, CCC 2019, July 18-20, 2019, New Brunswick, NJ, USA, volume 137 of LIPIcs, pages 31:1–31:27. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2019. doi:10.4230/LIPICS.CCC.2019.31.
  • [15] Karl Bringmann, Nick Fischer, and Vasileios Nakos. Sparse nonnegative convolution is equivalent to dense nonnegative convolution. In Samir Khuller and VirginiaĀ Vassilevska Williams, editors, STOC ’21: 53rd Annual ACM SIGACT Symposium on Theory of Computing, Virtual Event, Italy, June 21-25, 2021, pages 1711–1724. ACM, 2021. doi:10.1145/3406325.3451090.
  • [16] Karl Bringmann, Nick Fischer, and Vasileios Nakos. Deterministic and las vegas algorithms for sparse nonnegative convolution. In JosephĀ (Seffi) Naor and Niv Buchbinder, editors, Proceedings of the 2022 ACM-SIAM Symposium on Discrete Algorithms, SODA 2022, Virtual Conference / Alexandria, VA, USA, January 9 - 12, 2022, pages 3069–3090. SIAM, 2022. doi:10.1137/1.9781611977073.119.
  • [17] Karl Bringmann and Vasileios Nakos. Fast n-fold boolean convolution via additive combinatorics. In Nikhil Bansal, Emanuela Merelli, and James Worrell, editors, 48th International Colloquium on Automata, Languages, and Programming, ICALP 2021, July 12-16, 2021, Glasgow, Scotland (Virtual Conference), volume 198 of LIPIcs, pages 41:1–41:17. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2021. doi:10.4230/LIPICS.ICALP.2021.41.
  • [18] Karl Bringmann and AndrĆ© Nusser. Translating hausdorff is hard: Fine-grained lower bounds for hausdorff distance under translation. In Kevin Buchin and ƉricĀ Colin deĀ VerdiĆØre, editors, 37th International Symposium on Computational Geometry, SoCG 2021, June 7-11, 2021, Buffalo, NY, USA (Virtual Conference), volume 189 of LIPIcs, pages 18:1–18:17. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2021. doi:10.4230/LIPICS.SOCG.2021.18.
  • [19] TimothyĀ M. Chan. Minimum l_āˆž hausdorff distance of point sets under translation: Generalizing klee’s measure problem. In ErinĀ W. Chambers and Joachim Gudmundsson, editors, 39th International Symposium on Computational Geometry, SoCG 2023, June 12-15, 2023, Dallas, Texas, USA, volume 258 of LIPIcs, pages 24:1–24:13. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPICS.SOCG.2023.24.
  • [20] TimothyĀ M. Chan and Moshe Lewenstein. Clustered integer 3sum via additive combinatorics. In RoccoĀ A. Servedio and Ronitt Rubinfeld, editors, Proceedings of the Forty-Seventh Annual ACM on Symposium on Theory of Computing, STOC 2015, Portland, OR, USA, June 14-17, 2015, pages 31–40. ACM, 2015. doi:10.1145/2746539.2746568.
  • [21] TimothyĀ M. Chan, VirginiaĀ Vassilevska Williams, and Yinzhan Xu. Hardness for triangle problems under even more believable hypotheses: reductions from real apsp, real 3sum, and OV. In Stefano Leonardi and Anupam Gupta, editors, STOC ’22: 54th Annual ACM SIGACT Symposium on Theory of Computing, Rome, Italy, June 20 - 24, 2022, pages 1501–1514. ACM, 2022. doi:10.1145/3519935.3520032.
  • [22] TimothyĀ M. Chan, VirginiaĀ Vassilevska Williams, and Yinzhan Xu. Fredman’s trick meets dominance product: Fine-grained complexity of unweighted apsp, 3sum counting, and more. In Barna Saha and RoccoĀ A. Servedio, editors, Proceedings of the 55th Annual ACM Symposium on Theory of Computing, STOC 2023, Orlando, FL, USA, June 20-23, 2023, pages 419–432. ACM, 2023. doi:10.1145/3564246.3585237.
  • [23] L.Ā Paul Chew, Dorit Dor, Alon Efrat, and Klara Kedem. Geometric pattern matching in d -dimensional space. Discret. Comput. Geom., 21(2):257–274, 1999. doi:10.1007/PL00009420.
  • [24] LĀ Paul Chew and Klara Kedem. Improvements on geometric pattern matching problems. In Algorithm Theory—SWAT’92: Third Scandinavian Workshop on Algorithm Theory Helsinki, Finland, July 8–10, 1992 Proceedings 3, pages 318–325. Springer, 1992. doi:10.1007/3-540-55706-7_28.
  • [25] L.Ā Paul Chew and Klara Kedem. Improvements on geometric pattern matching problems. In Otto Nurmi and Esko Ukkonen, editors, Algorithm Theory - SWAT ’92, Third Scandinavian Workshop on Algorithm Theory, Helsinki, Finland, July 8-10, 1992, Proceedings, volume 621 of Lecture Notes in Computer Science, pages 318–325. Springer, 1992. doi:10.1007/3-540-55706-7_28.
  • [26] Richard Cole and Ramesh Hariharan. Verifying candidate matches in sparse and wildcard matching. In JohnĀ H. Reif, editor, Proceedings on 34th Annual ACM Symposium on Theory of Computing, May 19-21, 2002, MontrĆ©al, QuĆ©bec, Canada, pages 592–601. ACM, 2002. doi:10.1145/509907.509992.
  • [27] Marek Cygan, Marcin Mucha, Karol Wegrzycki, and Michal Wlodarczyk. On problems equivalent to (min, +)-convolution. ACM Trans. Algorithms, 15(1):14:1–14:25, 2019. doi:10.1145/3293465.
  • [28] Holger Dell, Marc Roth, and Philip Wellnitz. Counting answers to existential questions. In Christel Baier, Ioannis Chatzigiannakis, Paola Flocchini, and Stefano Leonardi, editors, 46th International Colloquium on Automata, Languages, and Programming, ICALP 2019, July 9-12, 2019, Patras, Greece, volume 132 of LIPIcs, pages 113:1–113:15. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2019. doi:10.4230/LIPICS.ICALP.2019.113.
  • [29] Bartlomiej Dudek, Pawel Gawrychowski, and Tatiana Starikovskaya. All non-trivial variants of 3-ldt are equivalent. In Konstantin Makarychev, Yury Makarychev, Madhur Tulsiani, Gautam Kamath, and Julia Chuzhoy, editors, Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing, STOC 2020, Chicago, IL, USA, June 22-26, 2020, pages 974–981. ACM, 2020. doi:10.1145/3357713.3384275.
  • [30] Matthias Ehrgott and Xavier Gandibleux. A survey and annotated bibliography of multiobjective combinatorial optimization. OR-spektrum, 22:425–460, 2000. doi:10.1007/S002910000046.
  • [31] Jeff Erickson. New lower bounds for convex hull problems in odd dimensions. SIAM J. Comput., 28(4):1198–1214, 1999. doi:10.1137/S0097539797315410.
  • [32] Nick Fischer, Marvin Künnemann, and Mirza Redzic. The effect of sparsity on k-dominating set and related first-order graph properties. In DavidĀ P. Woodruff, editor, Proceedings of the 2024 ACM-SIAM Symposium on Discrete Algorithms, SODA 2024, Alexandria, VA, USA, January 7-10, 2024, pages 4704–4727. SIAM, 2024. doi:10.1137/1.9781611977912.168.
  • [33] Daniel Funke, Demian Hespe, Peter Sanders, Sabine Storandt, and Carina Truschel. Pareto sums of pareto sets: Lower bounds and algorithms. CoRR, abs/2409.10232, 2024. doi:10.48550/arXiv.2409.10232.
  • [34] HaroldĀ N. Gabow, JonĀ Louis Bentley, and RobertĀ Endre Tarjan. Scaling and related techniques for geometry problems. In RichardĀ A. DeMillo, editor, Proceedings of the 16th Annual ACM Symposium on Theory of Computing, April 30 - May 2, 1984, Washington, DC, USA, pages 135–143. ACM, 1984. doi:10.1145/800057.808675.
  • [35] Anka Gajentaan and MarkĀ H. Overmars. On a class of o(n2) problems in computational geometry. Comput. Geom., 5:165–185, 1995. doi:10.1016/0925-7721(95)00022-2.
  • [36] Jiawei Gao, Russell Impagliazzo, Antonina Kolokolova, and Ryan Williams. Completeness for first-order properties on sparse structures with algorithmic applications. ACM Trans. Algorithms, 15(2):23:1–23:35, 2019. doi:10.1145/3196275.
  • [37] Demian Hespe, Peter Sanders, Sabine Storandt, and Carina Truschel. Pareto sums of pareto sets. In IngeĀ Li GĆørtz, Martin Farach-Colton, SimonĀ J. Puglisi, and Grzegorz Herman, editors, 31st Annual European Symposium on Algorithms, ESA 2023, September 4-6, 2023, Amsterdam, The Netherlands, volume 274 of LIPIcs, pages 60:1–60:17. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPICS.ESA.2023.60.
  • [38] DanielĀ P. Huttenlocher and Klara Kedem. Computing the minimum hausdorff distance for point sets under translation. In Raimund Seidel, editor, Proceedings of the Sixth Annual Symposium on Computational Geometry, Berkeley, CA, USA, June 6-8, 1990, pages 340–349. ACM, 1990. doi:10.1145/98524.98599.
  • [39] Zahra Jafargholi and Emanuele Viola. 3sum, 3xor, triangles. Algorithmica, 74(1):326–343, 2016. doi:10.1007/S00453-014-9946-9.
  • [40] Tsvi Kopelowitz, Seth Pettie, and Ely Porat. Higher lower bounds from the 3sum conjecture. In Robert Krauthgamer, editor, Proceedings of the Twenty-Seventh Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2016, Arlington, VA, USA, January 10-12, 2016, pages 1272–1287. SIAM, 2016. doi:10.1137/1.9781611974331.CH89.
  • [41] Marvin Künnemann. A tight (non-combinatorial) conditional lower bound for klee’s measure problem in 3d. In 63rd IEEE Annual Symposium on Foundations of Computer Science, FOCS 2022, Denver, CO, USA, October 31 - November 3, 2022, pages 555–566. IEEE, 2022. doi:10.1109/FOCS54457.2022.00059.
  • [42] Andrea Lincoln, VirginiaĀ Vassilevska Williams, JoshuaĀ R. Wang, and R.Ā Ryan Williams. Deterministic time-space trade-offs for k-sum. In Ioannis Chatzigiannakis, Michael Mitzenmacher, Yuval Rabani, and Davide Sangiorgi, editors, 43rd International Colloquium on Automata, Languages, and Programming, ICALP 2016, July 11-15, 2016, Rome, Italy, volumeĀ 55 of LIPIcs, pages 58:1–58:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2016. doi:10.4230/LIPICS.ICALP.2016.58.
  • [43] Andrea Lincoln, VirginiaĀ Vassilevska Williams, and R.Ā Ryan Williams. Tight hardness for shortest cycles and paths in sparse graphs. In Artur Czumaj, editor, Proceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2018, New Orleans, LA, USA, January 7-10, 2018, pages 1236–1252. SIAM, 2018. doi:10.1137/1.9781611975031.80.
  • [44] Thibaut Lust and Daniel Tuyttens. Variable and large neighborhood search to solve the multiobjective set covering problem. Journal of Heuristics, 20:165–188, 2014. doi:10.1007/S10732-013-9236-8.
  • [45] AndrĆ© Nusser. Fine-grained complexity and algorithm engineering of geometric similarity measures. PhD thesis, Saarland University, Saarbrücken, Germany, 2021. URL: https://publikationen.sulb.uni-saarland.de/handle/20.500.11880/33904.
  • [46] Mihai Puatracscu. Towards polynomial lower bounds for dynamic problems. In LeonardĀ J. Schulman, editor, Proceedings of the 42nd ACM Symposium on Theory of Computing, STOC 2010, Cambridge, Massachusetts, USA, 5-8 June 2010, pages 603–610. ACM, 2010. doi:10.1145/1806689.1806772.
  • [47] Britta Schulze, Kathrin Klamroth, and Michael Stiglmayr. Multi-objective unconstrained combinatorial optimization: a polynomial bound on the number of extreme supported solutions. Journal of Global Optimization, 74(3):495–522, 2019. doi:10.1007/S10898-019-00745-6.
  • [48] Carola Wenk. Shape matching in higher dimensions. PhD thesis, Free University of Berlin, Dahlem, Germany, 2003. URL: http://www.diss.fu-berlin.de/2003/151/index.html.
  • [49] Ryan Williams. Faster decision of first-order graph properties. In ThomasĀ A. Henzinger and Dale Miller, editors, Joint Meeting of the Twenty-Third EACSL Annual Conference on Computer Science Logic (CSL) and the Twenty-Ninth Annual ACM/IEEE Symposium on Logic in Computer Science (LICS), CSL-LICS ’14, Vienna, Austria, July 14 - 18, 2014, pages 80:1–80:6. ACM, 2014. doi:10.1145/2603088.2603121.
  • [50] VirginiaĀ Vassilevska Williams. On some fine-grained questions in algorithms and complexity. In Proceedings of the international congress of mathematicians: Rio de janeiro 2018, pages 3447–3487. World Scientific, 2018.
  • [51] VirginiaĀ Vassilevska Williams and Ryan Williams. Subcubic equivalences between path, matrix and triangle problems. In 51th Annual IEEE Symposium on Foundations of Computer Science, FOCS 2010, October 23-26, 2010, Las Vegas, Nevada, USA, pages 645–654. IEEE Computer Society, 2010. doi:10.1109/FOCS.2010.67.
  • [52] VirginiaĀ Vassilevska Williams and Ryan Williams. Finding, minimizing, and counting weighted subgraphs. SIAM J. Comput., 42(3):831–854, 2013. doi:10.1137/09076619X.