Pizza Sharing is PPA-hard
Argyrios Deligkas, John Fearnley, Themistoklis Melissourgos
Introduction
Mass partition problems ask to fairly divide measurable objects that are embedded into Euclidean space [RS20]. Perhaps the most popular mass partition problem is the ham sandwich problem, in which three masses are given in three-dimensional Euclidean space, and the goal is to find a single plane that cuts all three masses in half. Recently, there has been interest in pizza sharing problems, which are mass partition problems in the two-dimensional plane, and in this paper we study the computational complexity of such problems.
In the straight-cut pizza sharing problem, we are given two-dimensional masses in the plane, and we are asked to find straight lines that simultaneously bisect all of the masses. See Figure 1(a) for an example. It has been shown that this problem always has a solution: the first result on the topic showed that solutions always exist when [BPS19], and this was subsequently extended to show existence for all [HK20].
R^{+} and (shaded and non-shaded areas respectively). Another related problem is the square-cut pizza sharing. In this problem, there are masses in the plane, and the task is to simultaneously bisect all masses using cuts, but the method of generating the cuts is different. Specifically, we seek a square-cut, which consists of a single path that is the union of horizontal and vertical line segments. See Figure 1(b) and Figure 1(c) for two examples of square-cuts. Intuitively, we can imagine that a pizza cutter is placed on the plane, and is then moved horizontally and vertically without being lifted in order to produce the cut. Note that the path is allowed to wrap around on the horizontal axis: if it exits the left or right boundary, then it re-appears on the opposite boundary. So the cut in Figure 1(c) is still considered to be a single square-cut.
It has been shown by [KRPS16] that, given masses, there always exists a square-cut-path (termed SC-path) which makes at most turns and simultaneously bisects all of the masses. This holds even if the SC-path is required to be -monotone, meaning that the path never moves downwards.
Two-dimensional fair division is usually called land division in the literature. Land division is a prominent topic of interest in the Economics and AI communities that studies ways of fairly allocating two-dimensional objects among agents [Cha05, SHNHA17, SNHA20, ESS21, AD15, IH09, Hüs11]. The first popular appearance of such problems in a mathematical description was done by [Ste48], and since then, the existence of allocations under various fairness criteria have been extensively studied, together with algorithms that achieve them. These problems find applications from division of resources on land itself, to the Law of the Sea [SS03], to redistricting [LRY09, LS14].
Consensus halving is a problem that asks us to split a one-dimensional resource into two parts such that agents have equal value in both parts. Here, we study the same fairness criterion for agents, but for a two-dimensional resource. One can see that when we have the same fairness criterion at hand for any -dimensional resource, , we can always translate the problem into its one-dimensional version, by integrating each agent’s measure to a single dimension. Then a solution can be given by applying consensus halving. However, the solutions we get by doing so, are not taking into account the dimensionality of the problem, and as a result they might produce very unnatural solutions to a high-dimensional problem. For example, in land division, applying consensus halving would produce two parts, each of which can possibly be a union of disjoint land strips. Can we get better solutions by exploiting all the dimensions of the problem?
In this work we investigate different cutting methods of the two-dimensional objects, and in particular, two pizza sharing methods for which a solution is guaranteed. While based on intuition one might assume that exploiting the two dimensions would allow the complexity of finding a solution to be lower, our results show that this is not the case. We present polynomial time reductions from the one-dimensional problem to the two-dimensional problems showing that the latter are at least as hard as the former, i.e., PPA-hard. Apart from the hardness results themselves, we believe that our reductions are interesting from another aspect too. They show ways to efficiently turn a problem into one of higher dimension, a task that has no standardised methods to be achieved (even for non-efficient reductions), and whose inverse is trivially achievable.
Computational complexity of fair division problems. There has been much interest recently in the computational complexity of fair division problems. In particular, the complexity class PPA has risen to prominence, because it appears to naturally capture the complexity of solving these problems. For example, it has recently been shown by [FRG18, FRG19] that the consensus halving problem, the ham sandwich problem, and the well-known necklace splitting problem are all PPA-complete.
The other class of relevance here is the class BU, which consists of all problems that can be polynomial-time reduced to finding an exact solution to a Borsuk-Ulam function. This class was defined by [DFMS21] and is believed to be substantially harder than the class PPA, because it is possible to construct a Borsuk-Ulam function that only has irrational solutions. Due to this, it is not currently expected that BU will be contained in FNP, whereas the containment of PPA in FNP is immediate.
Unfortunately, it is not currently known whether BU has complete problems. However, in [DFMS21] it was shown that exact consensus halving is in BU and also FIXP-hard, implying that . FIXP, defined by Etessami and Yannakakis [EY10], is the class of problems that can be reduced to finding an exact fixed point of a Brouwer function. It is known by the aforementioned work, that FIXP contains the problem Square Root Sum, which has as input positive integers and , and asks whether . The question of whether Square Root Sum is in NP has been open for more than 40 years ([GGJ76, Pap77, Tiw92]). Furthermore, since there exist Brouwer functions that only have irrational fixed points, it is likewise not expected that FIXP will be contained in FNP.
Our contribution. We study the computational complexity of the straight-cut and square-cut pizza sharing problems, and we specifically study the cases where (i) all mass distributions are unions of weighted polygons, and (ii) we are given unweighted point sets. We show that it is PPA-complete to find approximate solutions of the approximate versions of all the problems, while their decision variants are NP-complete. We also show that the exact square-cut pizza sharing problem with mass distributions is FIXP-hard and in BU, while its decision variant is ETR-complete. All of our hardness results are summarized in Table 1 and Table 2.
These results represent, to the best of our knowledge, the first PPA-hardness results for problems arising from computational geometry. We also note that pizza sharing problems do not need a circuit as part of the input, which makes them in some sense more “natural” than problems that are specified by circuits. Other known “natural” PPA-hard problems are one-dimensional, such as consensus halving [FHSZ20] and necklace splitting [FRG19]. Here we show the first known PPA-hardness result for a “natural” two-dimensional problem. Let us also mention here that shortly after the appearance of our result, Schnider in [Sch21] proved that the discrete version of straight-cut pizza sharing where each mass is represented by unweighted points is PPA-complete, while its continuous version for a more general input representation is FIXP-hard.
Recently, [BHH21] made great improvement towards showing BU-hardness of exact consensus halving. They introduced a class named BBU whose typical problem is an equivalent, alternative definition of the Borsuk-Ulam theorem, and they considered the strong approximation version of the classes BU and BBU, named and , respectively. Some of the most notable results of the aforementioned paper is that and that the strong approximation version of consensus halving is complete for . We believe that some of our reductions will be able to be translated into the framework of strong approximation and yield analogous -hardness results for the strong approximation version of pizza sharing problems. However, we remark that BU-completeness of either exact consensus halving or any of the pizza sharing problems is yet to be proven.
For both the straight-cut and the square-cut pizza sharing problems, we show that it is PPA-complete to find an -approximate solution for any constant . This holds even when lines are permitted in a straight-cut pizza sharing instance with mass distributions, and when turns of the square-cut path are permitted in a square-cut pizza sharing instance with mass distributions, for constant . Furthermore, the PPA-hardness holds even when each mass distribution is uniform over polynomially many axis-aligned rectangles, and there is no overlap between any two mass distributions. The inapproximability for such high values of is possible due to a recent advancement in the inapproximability of consensus halving [DFHM22]. The PPA-inclusion holds even for inverse polynomial and inverse exponential , and for weighted polygons with holes (that is, the most general type of allowed input). Furthermore, we show that there exists an such that deciding whether an -approximate solution of straight-cut pizza sharing with at most lines (resp. an -approximate solution of square-cut pizza sharing with at most turns) exists or, is NP-complete. All of these results hold also for the discrete version of the problems.
We then turn our attention to the computational complexity of finding an exact solution to the square-cut problem. We show that the problem of finding an SC-path with at most turns that exactly bisects masses lies in BU, and is FIXP-hard. This hardness result applies even if all mass distributions are unions of weighted axis-aligned squares and right-angled triangles. In order to prove containment in BU, we provide a simpler existence proof for a solution to the square-cut pizza sharing problem that follows the lines of the original proof by [KRPS16], while to prove the FIXP-hardness, we reduce from the problem of finding an exact Consensus-Halving solution [DFMS21]. Regarding the decision version of the square-cut problem, we show that deciding whether there exists an exact solution with at most turns is ETR-complete, where ETR consists of every decision problem that can be formulated in the existential theory of the reals (see Section 2 for its definition).
From a technical viewpoint, our PPA containment result for straight-cut pizza sharing is based on a reduction that transforms mass distributions to point sets in general position and then employs a recent result by [Sch21]. On the contrary, our containment results for square-cut pizza sharing are shown by directly reducing it to the Borsuk-Ulam problem. Our hardness results are obtained by reducing from the consensus halving problem, historically the first fair-division problem shown to be PPA-complete [FRG18]. It is worth mentioning that, if in the future, consensus halving with linear valuation densities (see definitions of -block-triangle valuations in Section 2) is shown to be BU-complete, then our work implies BU-completeness of exact square-cut pizza sharing.
Further related work. Since mass partitions lie in the intersection of topology, discrete geometry, and computer science there are several surveys on the topic; [BFHZ18, DLGMM19, Mat08, Živ17] focus on the topological point of view, while [AE+99, Ede12, KK03, Mat02] focus on computational aspects. Consensus halving [SS03] is the mass partition problem that received the majority of attention in Economics and Computation so far [DFH21, FRFGZ18, FRG19, FHSZ20, FRHSZ21]. Recently, Haviv [Hav22] showed PPA-completeness of finding fair independent sets on cycle graphs, having as a starting point the latter problem.
Preliminaries
Mass distributions. A mass distribution on is a measure on the plane such that all open subsets of are measurable, , and for every subset of with dimension lower than 2. A mass distribution is finite-separable, or simply separable, if it can be decomposed into a finite set of non-overlapping areas such that . In addition, a separable mass distribution is piece-wise uniform, if for every and every it holds that for some weight independent of . When additionally for all then the mass distribution is called uniform. Finally, a mass distribution is normalised if . The support of mass distribution , denoted by , is the area which has the property that for every with non-zero Lebesgue measure we have . Let . A set of mass distributions , or colours, has overlap if . In order to easily present our results that concern additive approximations, throughout this work we consider all mass distributions to be normalised, which is without loss of generality.
Set of straight-cuts. A set of straight-cuts, or cut-lines, or simply lines defines subdivisions of the plane . Figure 1(a) shows an example of a set of straight-cuts. Each line creates two half-spaces, and arbitrarily assigns number “” to one and “” to the other. A subdivision of is labeled “” (and belongs to ) if its parity is odd (according to the labels given to the half-spaces) and “” (and belongs to ) otherwise. Observe that by flipping the numbers of two half-spaces defined by a line, we flip all the subdivisions’ labels. Thus, there are only two possible labelings of the subdivisions.
Square-cut-path. A square-cut-path, denoted for brevity SC-path, is a non-crossing directed path that is formed only by horizontal and vertical line segments and in addition it is allowed to “wrap around” in the horizontal dimension. Figure 1(b), Figure 1(c) show two examples of SC-paths. A turn of the path is where a horizontal segment meets with a vertical segment. An SC-path is -monotone if all of its horizontal segments are monotone with respect to the axis. Any SC-path partitions the plane into two regions, that we call and .
Pizza sharing. A set of lines (resp. a SC-path) -bisects a mass distribution , if . It simultaneously -bisects a set of mass distributions if for every .
R^{+} and using at most lines such that for each , it holds that . Definition 3. For any , the problem -SC-Pizza-Sharing is defined as follows: • Input: and mass distributions on . • Output: A partition of to and using a SC-path with at most turns such that for each , it holds that . In [KRPS16], it was proved that -SC-Pizza-Sharing always admits a solution for arbitrary continuous measures with respect to the Lebesgue measure, and for any . In this work, we are interested in the computational aspect of the problem, hence we need to specify its input representation. For simplicity, we deal with measures determined by sets of polygons with holes, since even these simply-defined measures suffice to yield PPA-hardness. The precise input representation is described in Appendix A.
Although it is not hard to construct instances of -SC-Pizza-Sharing where turns are necessary for any SC-path in order to constitute a solution, there might be cases where a solution can be achieved with an SC-path with fewer turns. Hence, we also study the decision version of the problem, in which we ask whether we can find a solution with turns, where .
Consensus halving. The hardness results that we will show in this paper will be shown by a reduction from the consensus halving problem.
In the -Consensus-Halving problem, there is a set of agents with valuation functions over the interval $+-ni\mathcal{I}^{+}+\mathcal{I}^{-}-\varepsilon|v_{i}(\mathcal{I}^{+})-v_{i}(\mathcal{I}^{-})|\leq\varepsilonv_{i}$; see Figure 2 for a visualization.
-block uniform. is -block and the density of every interval is .
Complexity classes. -SC-Pizza-Sharing is an example of a total problem, which is a problem that always has a solution. The complexity class TFNP (Total Function NP) defined in [MP91], contains all total problems whose solutions can be verified in polynomial time.
There are several well-known subclasses of TFNP that we will use in this paper. The class PPA, defined by Papadimitriou [Pap94], captures problems whose totality is guaranteed by the parity argument on undirected graphs. The complexity class is the subclass of PPA containing all problems whose totality is guaranteed by the parity argument on directed graphs.
The complexity class ETR consists of all decision problems that can be formulated in the existential theory of the reals [Mat14, Sch09]. It is known that [Can88], and it is generally believed that ETR is distinct from the other two classes. The class FETR (Function ETR) consists of all search problems whose decision version is in ETR. The class TFETR is the subclass of FETR which contains only problems that admit a solution (i.e. all the instances of their decision version are “yes” instances). Both FETR and TFETR were introduced in [DFMS21] as the natural analogues of FNP and TFNP in the real RAM model of computation. For a definition of the real RAM model we refer the reader to the detailed work of Erickson, van der Hoog, and Miltzow [EvM20].
In this paper, our focus regarding computational complexity will be on the following two classes contained in TFETR. As mentioned earlier, the class was introduced in [DFMS21] and captures problems whose totality is guaranteed by the Borsuk-Ulam theorem. The class was defined in [EY10] and captures problems whose totality is guaranteed by Brouwer’s fixed point theorem.
Hardness results
Here we show all hardness results regarding the exact and approximate versions of our pizza sharing problems for mass distributions, as well as for point sets.
We start by proving that -Straight-Pizza-Sharing is PPA-hard for any , even for very simple mass distributions. We prove our result via a reduction from -Consensus-Halving with -block valuations, which for the special case of -block uniform valuations has been shown to be PPA-complete [DFHM22]. In addition, we explain how to combine the machinery of our reduction with that of [FRFGZ18] in order to get NP-hardness for -Straight-Pizza-Sharing, where is a small constant.
We reduce from Consensus-Halving with agents, and for each agent we create a corresponding mass in Straight-Pizza-Sharing. Firstly, we finely discretize the $y=x^{2}x\geq 0R^{+}+I_{P}(\varepsilon-\varepsilon^{\prime})2n\varepsilon^{\prime}=\frac{1}{\textup{poly}(n)}<\varepsilonI_{\textsc{CH}}\varepsilon2nk$-block valuations.
Let , where is the value density of agent ’s -th block in , and observe that since the total valuation of any agent over $1I_{\textsc{CH}}d:=\frac{1}{\left\lceil 4\cdot n^{2}\cdot c_{\max}\right\rceil}\left[(j-1)\cdot d,j\cdot d\right]jdI_{\textsc{CH}}j\in[1/d]$.
We now describe the instance . For ease of presentation, the space of the instance is inflated to , but by scaling the construction down, the results are attained. We consider two kinds of square tiles; large square tiles of size , each of which contains smaller square tiles of size on its diagonal. We will call the former type big-tile and denote it by and the latter one small-tile and denote it by for some , .
The centers of consecutive big-tiles are positioned with distance apart in the -axis. For we define . For every agent we will create a uniform mass distribution that consists of at most many axis-aligned small-tiles. Each big-tile , , is centered at while, in it, each small-tile , , belonging to mass distribution has its bottom left corner at . Each small-tile contains total mass (belonging to ) of exactly the same total value as that of agent ’s -th -block in . Observe that, by definition, the value of the -th -block for agent is at most , and therefore it fits inside the small tile of size . In particular, the mass inside has width and height . Figure 3 and Figure 4 depict our construction.
The proof of the following lemma can be found in LABEL:app:_{lem:lines-to-cuts}.
This, together with the fact that -Consensus-Halving is PPA -hard for any , due to [DFHM22], implies the main theorem of this section.
-Straight-Pizza-Sharing with mass distributions is PPA-hard for any constant , even when lines are allowed for any given constant , every mass distribution is uniform over polynomially many rectangles, and there is no overlap between any two mass distributions.
We will now shift our attention to studying the decision version of the problem, where we are asking to find a solution that uses at most straight lines, and notice that there is no guarantee for such a solution. We employ the NP-hard instances of -Consensus-Halving for their constant from [FRFGZ18], and reduce them according to the above reduction procedure to -Straight-Pizza-Sharing instances for some that is inverse polynomial in the input size, e.g., . This gives the following.
There exists a constant for which it is NP-hard to decide if an -Straight-Pizza-Sharing instance with mass distributions admits a solution with at most lines, even when every mass distribution is uniform over polynomially many rectangles, and there is no overlap between any two mass distributions.
2 Hardness of approximate SC-Pizza-Sharing
In this section we prove hardness results for -SC-Pizza-Sharing. We provide a reduction from -Consensus-Halving with -block valuations, which was shown to be PPA-complete in [DFHM22] for any constant even for -block uniform valuations. Our construction shows that -SC-Pizza-Sharing remains PPA-hard even when there is no overlap between any two mass distributions. Notice that the case of non-overlapping mass distributions is the most simple type of an instance, since we can easily reduce it to one where an arbitrarily large number of masses overlap: make “dummy” exact copies of an existing mass distribution. Also, the machinery that we present, combined with the reduction by [FRFGZ18] implies NP-hardness for the decision version of -SC-Pizza-Sharing when is a small constant.
We reduce from a general -Consensus-Halving instance to an -SC-Pizza-Sharing instance, and the idea is to create a mass for each agent. For any , given an instance of -Consensus-Halving with agents and -block valuations we will show a polynomial time construction to an -SC-Pizza-Sharing instance .
For our construction, we will use the same components as those in the proof of Lemma 4. In particular, let , where is the value density of agent ’s -th block in (and again note that since the total valuation of the agent over $1I_{\textsc{CH}}d:=\frac{1}{\left\lceil n^{2}\cdot c_{\max}\right\rceil}j\in[1/d]\left[(j-1)\cdot d,j\cdot d\right]jdI_{\textsc{CH}}$.
To simplify the presentation, all the analysis of instance will be for the scaled version of it, that is, in . It is easy to verify, though, that by proper re-scaling we can put the instance in as required. We will be using the same gadgets that were constructed for the proof of Lemma 4, namely the big-tiles, which contain small-tiles. In particular, we have square big-tiles of size , each of which contains square small-tiles of size on its diagonal. For any , , we denote them by and , respectively.
In this construction, however, the positioning of big-tiles will be different than that of the aforementioned proof. In particular, we will be placing them on the diagonal of as shown in Figure 4(b). For every agent we will create a uniform mass distribution that consists of at most many axis-aligned small-tiles. For each , the bottom-left corner of big-tile is at . In it, each small-tile , , belonging to mass distribution has its bottom left corner at .
Inside a given big-tile , the total mass of each small-tile contains total mass (belonging to ) of exactly the same total value as that of agent ’s -th -block in . The shape of that mass is rectangular, and has width and height . Using identical arguments to those of Lemma 4 we conclude that the total value of the -block fits inside the small tile of size . Figure 4 depicts our construction.
We will now define how a solution to , i.e., an SC-path, is mapped back to a solution of , i.e., a set of cuts. This is identical to that of the aforementioned lemma’s translation. In particular, we consider again the big-tiles in sequential order and we add one cut at whenever we find two big-tiles and that belong to different regions. Suppose that, following the aforementioned procedure, the next cut falls at for some . If belongs to region “” (resp. “”) and belongs to “” (resp. “”), then the interval gets label “” (resp. “”), and vice versa. This translation obviously takes polynomial time.
Fix a constant , and some , where and . Let an SC-path with at most turns be a solution to -SC-Pizza-Sharing instance . Then we can find in polynomial time a solution to -Consensus-Halving instance with at most cuts.
The above translation of the SC-path to cuts indicates that each cut introduces a discrepancy between the “” and “” regions of , of value at most for each valuation , . This results in total discrepancy of for each agent . We now denote by and the regions in which correspond to the regions and of respectively, induced by the SC-path after disregarding the intersected big-tiles. Then for the discrepancy in the valuation of agent in we get
where the last inequality is due to the fact that in our reduction we can pick . This is always possible since, by assumption, for some , and additionally, according to our reduction, is required to be at most . ∎
The above, together with the fact that -Consensus-Halving is PPA -hard for any ([DFHM22]) implies the main theorem of this section.
-SC-Pizza-Sharing with mass distributions is PPA-hard for any constant , even when turns are allowed in the SC-path for any given constant , every mass distribution is uniform over polynomially many rectangles, and there is no overlap between any two mass distributions.
Similarly to the case of the decision variant of -Straight-Pizza-Sharing (Theorem 6), we can get the following result by reducing from the NP-hard instances of -Consensus-Halving for constant .
There exists a constant for which it is NP-hard to decide if an -SC-Pizza-Sharing instance with mass distributions admits a solution consisting of an SC-path with at most turns, even when every mass distribution is uniform over polynomially many rectangles, and there is no overlap between any two mass distributions.
3 Hardness of discrete Straight-Pizza-Sharing and SC-Pizza-Sharing
In this section, we study the discrete versions of Straight-Pizza-Sharing and SC-Pizza-Sharing.
R^{+} and using at most lines such that for each it holds that . A point that is intersected by a line does not belong to any of , . Definition 11. For any , the problem -Discrete-SC-Pizza-Sharing is defined as follows: • Input: and point sets on . • Output: One of the following. (a) Two points with the same - or -coordinate. (b) A partition of to and using a -monotone SC-path with at most turns such that for each it holds that . A point that is intersected by a line does not belong to any of , . Notice that the first kind of allowed output for both problems (Definition 10(a), Definition 11(a)) is a witness that the input points are not in general position or that their - or -coordinates are not unique, respectively, which can be checked in polynomial time. The second kind of output (Definition 10(b), Definition 11(b)) is the one that is interesting and can encode the hard instances studied here. In case the first kind of output does not exist, the other one is guaranteed to exist due to [Sch21] for -Discrete-Straight-Pizza-Sharing, while for -Discrete-SC-Pizza-Sharing its existence is guaranteed for every due to a reduction we present in Section 4.4 which shows containment in PPA.
The definition of -Discrete-Straight-Pizza-Sharing is a slightly modified form of the one that appears in [Sch21], where it is referred to as DiscretePizzaCutting. In our definition, we avoid having to “promise” an input of points that are in general position, by allowing as output a witness of an inappropriate input. Furthermore, the definition we present is more general, since it accommodates an approximation factor ; in particular, for we get the definition of the aforementioned paper. Similarly, we define -Discrete-SC-Pizza-Sharing, which to the best of our knowledge, has not been stated in previous work. Note that, if the input consists of points that are in general position, in an -Discrete-Straight-Pizza-Sharing solution only up to two points are allowed to be intersected by the same line, while in an -Discrete-SC-Pizza-Sharing solution only up to two points are allowed to be intersected by the same line segment.
Recall that in -SC-Pizza-Sharing we are given mass distributions, while in -Straight-Pizza-Sharing we are given mass distributions as input. In Appendix C, we describe a general construction that takes as an input mass distributions normalized on , represented by weighted polygons with holes (see Appendix A for the detailed description), and turns it into sets of points on whose union is in general position and furthermore, they have unique - and -coordinates. We prove that, given a set of lines or an SC-path of at most turns, that partition into and such that , the same lines and SC-path, respectively, separate the mass distributions such that .
Let be the input size of any of our two pizza sharing problems, and let the smallest area triangle in the mass distributions’ triangulation be . For any , where and are at least inverse polynomial in , the construction results to a polynomial time reduction from -Straight-Pizza-Sharing to -Discrete-Straight-Pizza-Sharing and from -SC-Pizza-Sharing to -Discrete-SC-Pizza-Sharing. The reduction can be performed in time polynomial in the input size and in . It consists of two parts: (i) First we “pixelate” the mass distributions finely enough so that they are represented by a sufficiently large number of pixels. This will ensure a high enough “resolution” of the pixelated distributions. (ii) The pixels will then be turned into points, which we have to perturb in order to guarantee they are in general position and with unique coordinates, as required. In particular, in Appendix C, we prove the following.
Let be the input size of an approximate pizza sharing problem (either -Straight-Pizza-Sharing or -SC-Pizza-Sharing) whose triangulation has no triangle with area less than . Also, let , where is a fixed constant, and . Then, the instance can be reduced in time to its approximate discrete version, that is, -Discrete-Straight-Pizza-Sharing or -Discrete-SC-Pizza-Sharing.
Given Theorem 5 and Theorem 8, and since their instances are constructed such that is an at least inverse polynomial function of the input size, the above lemma implies the following hardness results.
-Discrete-Straight-Pizza-Sharing with point sets is PPA-hard for any constant , even when lines are allowed for any given constant .
-Discrete-SC-Pizza-Sharing with point sets is PPA-hard for any constant , even when turns are allowed in the SC-path for any given constant .
We note that PPA-hardness for -Discrete-Straight-Pizza-Sharing was so far known only for any (which is equivalent to ), due to [Sch21]. Since, in the aforementioned paper’s constructions, , our result strengthens the hardness of the problem significantly.
Lemma 12 is general enough that allows us to derive NP-hardness results for the decision variants of the two discrete versions of the pizza sharing problems. If we ask for a solution with at most straight lines or turns in -Discrete-Straight-Pizza-Sharing and -Discrete-SC-Pizza-Sharing, respectively, then we can easily reduce to them from the instances of Theorem 6 and Theorem 9, picking to be some inverse polynomial function of , e.g., . In particular, we get the following.
There exists a constant for which it is NP-hard to decide whether a solution of -Discrete-Straight-Pizza-Sharing with point sets and at most lines exists.
There exists a constant for which it is NP-hard to decide whether a solution of -Discrete-SC-Pizza-Sharing with point sets and an SC-path with at most turns exists.
4 Hardness of exact SC-Pizza-Sharing
In this section, we show hardness results for exact SC-Pizza-Sharing. We prove that solving SC-Pizza-Sharing is FIXP-hard and that deciding whether there exists a solution for SC-Pizza-Sharing with fewer than turns is ETR-hard.
As mentioned earlier, computing an exact solution of a FIXP-hard problem may require computing an irrational number. To showcase this for SC-Pizza-Sharing, consider the following simple instance. Let us have a single mass distribution in the shape of a right-angled triangle, whose corners are on , , and . It is normalised, i.e., its total mass is , therefore its weight is . An exact solution of SC-Pizza-Sharing is either a horizontal or a vertical straight line (with turns), which cuts the triangle such that each half-space has half of the mass, that is, . One can easily check that the solution is either the horizontal line , or the vertical line .
We provide a main reduction from (exact) Consensus-Halving to (exact) SC-Pizza-Sharing, whose gadgets are then employed to show the ETR-hardness of the decision version. This time, as a starting point, we will use the instances of Consensus-Halving produced in [DFMS21], which we will denote by . When clear from context, by we will denote a particular instance of the aforementioned family. We note that here the input consists of sets of points, i.e., we describe polygons by their vertices. For a detailed description of the input representation, see Appendix A. In [DFMS21], the FIXP-hard family of instances we reduce from has as input arithmetic circuits capturing the cumulative valuation of agents on $$, which were piece-wise polynomials of maximum degree 2. However, since their (density) valuation functions are piece-wise linear, the input of SC-Pizza-Sharing suffices to consist of only rectangles and triangles, and no other shape. Therefore, there is no need for extra translation of the input of Consensus-Halving to the input of SC-Pizza-Sharing.
The reduction. Here we show the main reduction, which will conclude with the proof that finding an exact solution to SC-Pizza-Sharing is FIXP-hard, and then will be used to show that its decision version is ETR-hard. We reduce from a Consensus-Halving instance with agents and -block-triangle valuations to an SC-Pizza-Sharing instance with mass distributions. When requesting a solution in with at most turns in the SC-path, then we get FIXP-hardness, while when requesting to decide if is solvable with turns, then we get ETR-hardness. Both of these results are due to [DFMS21], and hold even for -block-triangle valuations.
As in our previous proofs, for ease of presentation, the space of the instance is inflated to , and by scaling the construction down to the correctness is attained. The key difference between this reduction and the previous reductions on the approximate versions is that the starting point of the reduction, i.e., instance , besides rectangular, also contains triangular-shaped valuations for agents. More specifically, all of the following hold:
the valuation function of every agent is 4-block-triangle, or 6-block;
every triangle has height 2 and belongs to exactly one interval of interest of the form ;
for every agent there exists an interval that contains more than half of their total valuation, and in addition, for every we have .
Also, in this reduction, the resulting SC-Pizza-Sharing instances will contain weighted mass distributions (see definition in Section 2).
For each subinterval of , we will construct a tile of size . Let the total value of agent in the -th interval of be . If for agent the valuation in the -th interval has constant density (i.e., the total valuation has a rectangular shape), then we create a square mass that belongs to , of size inside , with weight . If her valuation has linear density (i.e., the total valuation has a triangular shape), then we create a mass of right-triangular shape that belongs to , with two of its sides being of length and touching the top and right sides of , while its right angle touches the top-right corner of , and its weight is . Observe that, for any given , the total value of a subinterval in is equal to its total mass in the corresponding tile. Finally, we place the tiles sequentially in a diagonal manner, i.e., each tile is axis-aligned and placed with its bottom-left corner at point . See Figure 5 and Figure 6 for a depiction.
Now we need to show how an exact solution of , that is, an SC-path with many turns is mapped back to a solution of with cuts. Consider the first tile that is intersected by the SC-path, resulting in a part of it belonging to and the rest of it to . Let , and by our definition above, it is implied that . We then place a cut in the -th subinterval of at point , and label the interval with “”, and the interval with “”. Next, consider the second tile that is intersected by the SC-path, resulting in a part of it belonging to and the rest of it to . For this tile, we will place a cut in the -th subinterval of at point , and label the interval with “”, and the interval with “”. We continue in this fashion with the translation of the SC-path into cuts and labels of , where, the -th in order intersected tile will be of the kind if is odd, and of the kind if is even. This will result in a set of cuts that define regions with alternating signs.
It remains to prove that this is a solution to . To do this, we will use the following crucial observation.
In any solution of created by , there can be no turn inside a tile.
The truth of the statement can become apparent if one considers Item 3 of the above facts on , together with the fact that the endpoints of each are points of interest. It is implied then, that in any of the solutions, there needs to be at least one cut in each interval for each . And since we are allowed to draw at most cuts, there will be a single cut in each of those intervals. Also, due to the fact that are points of interest, each cut in belongs to a different subinterval, and therefore, there will be exactly cuts in distinct subintervals. Focusing now on our construction, the SC-path with turns consists of a total of horizontal and vertical line segments. If any of those does not intersect any tile, then this SC-path will correspond to a set of at most cuts in , which cannot be a solution. Therefore, every line segment intersects some tile.
Notice that, due to the diagonal placement of tiles, any SC-path that is a solution has to be -monotone and -monotone, i.e., to have a “staircase” form. Also, this diagonal placement of tiles dictates that, if there was a turn of the SC inside a tile, then two line segments are used to intersect it instead of one. This means that at most tiles will be intersected, and therefore this translates to a set of at most cuts in , which cannot be a solution. ∎
Put differently, having a turn inside a tile would be a “waste”, and in our instances, all turns are needed in order for a solution to exist.
Let us now focus on a tile . We consider two cases that can appear in :
For all , is nonnegative constant in the -th subinterval. Let be a tile as the aforementioned . Now notice that the “” part of the -th subinterval equals , and the “” part equals . If on the other hand, is a tile as the aforementioned , it is again easy to see that, for every , the total “” and “” parts of have mass equal to the corresponding “” and “” parts of the -th subinterval.
There is an such that is linear in the -th subinterval. Due to the previous case, for all , the total “” and “” parts of the tile have mass equal to the corresponding “” and “” parts of the corresponding subinterval in . For , due to the structure of , the slope of is , and the length of the subinterval is , therefore we have . Let be a tile as the aforementioned , and without loss of generality, let the SC-path intersect it horizontally at (y-coordinate), and its bottom part is labelled “”, while the top part is labelled “”. According to the previous case, a cut should be placed at point in the -th subinterval, and its part to the left should be labelled “” while the one to its right should be labelled “”. Now notice that for agent the “” part of the -th subinterval equals , while her “” mass in is , since . Similarly, both the “” parts of and are equal in the subinterval and the tile, respectively. Finally, if, is a tile as the aforementioned , it is again easy to see that the total “” and “” parts of have mass equal to the corresponding “” and “” parts of the -th subinterval.
The above analysis shows that, for any , in each individual tile the total “” mass is equal to the total “” value of the corresponding subinterval. Therefore, given a solution to where the total mass of will equal that of for every , the induced cuts on constitute a solution. Finally, due to the FIXP-hardness of exact Consensus-Halving shown in [DFMS21], we get the following.
SC-Pizza-Sharing is FIXP-hard even when every mass distribution is uniform, consists of at most six pieces that can be unit-squares or right-angled triangles, and have overlap at most 3.
We can also show that deciding whether there exists an exact SC-Pizza-Sharing solution with turns is ETR-hard. To show this, we will use a result of [DFMS21], where it was shown that deciding whether there exists an exact Consensus-Halving solution with agents and cuts is ETR-hard. We give a reduction from this version of Consensus-Halving to the decision problem for SC-Pizza-Sharing. The reduction uses the same ideas that we presented for the FIXP-hardness reduction. The full details are in Appendix D, where the following theorem is shown.
It is ETR-hard to decide if an exact SC-Pizza-Sharing instance admits a solution with a SC-path with at most turns, even when every mass distribution consists of at most six pieces that can be unit-squares or right-angled triangles, and have overlap at most 3.
Containment results
In this section, we present containment results for the exact and approximate versions of Straight-Pizza-Sharing and SC-Pizza-Sharing that we study in this paper. Our containment result for the former problem is possible by reducing it to its discrete version, which was recently shown by [Sch21] to be in PPA. For SC-Pizza-Sharing, our results revolve around a proof that solutions exist, which utilizes the Borsuk-Ulam theorem. A proof of this kind was already presented in [KRPS16], but we present a new one which is conceptually simpler, as it does not use any involved topological techniques. An advantage of our proof is that it can be made algorithmic, and so it can be used to show that SC-Pizza-Sharing is contained in BU. Then, by making simple modifications to the BU containment proof, we show that the other containment results hold. Then, we study the corresponding decision variants of the problems, and acquire containment in NP for approximate and discrete versions of the problems and ETR containment of exact SC-Pizza-Sharing.
Here we prove that -Straight-Pizza-Sharing with mass distributions is in PPA for any and , where is the input size and is the smallest area among the triangles of the triangulated mass distributions of -Straight-Pizza-Sharing. This answers a big open question left from [DFM22], where PPA containment was elusive. We also show that deciding whether a solution with at most straight lines exists is in NP. Both those results are derived by reducing the problem to its discrete version, where instead of mass distributions, the input consists of points, and the goal is to bisect (up to one point) each of the point sets using at most straight lines. The latter was recently shown by [Sch21] to be in PPA.
PPA containment. We will employ Lemma 12 in a straightforward way. In particular, given an -Straight-Pizza-Sharing instance for some , we will pick an as prescribed in the aforementioned lemma, and reduce our problem to Discrete-Straight-Pizza-Sharing in time .
-Straight-Pizza-Sharing with weighted mass distributions with holes is in PPA for any and , where is the input size and is the smallest area among the triangles of the triangulated mass distributions.
NP containment. Observe that Lemma 12 shows how to turn a set of mass distributions (weighted polygons with holes) into a set of (unweighted) points, which, if cut by at most straight lines, will result to an approximate cut of the mass distributions relaxed by an extra additive for any . When the number of straight lines is at most , this gives straightforwardly a reduction to -Discrete-Straight-Pizza-Sharing, since we can check how many of the polynomially many points of the latter instance are in and .
Deciding whether -Straight-Pizza-Sharing with weighted mass distributions with holes has a solution with at most straight lines is in NP for any and , where is the input size and is the smallest area among the triangles of the triangulated mass distributions.
2 Containment of exact SC-Pizza-Sharing
Existence of a SC-Pizza-Sharing solution. We begin by proving that a solution to exact SC-Pizza-Sharing always exists. This proof holds for arbitrary mass distributions, but for our algorithmic results, we will only consider the case where the mass distributions are unions of polygons with holes. Our proof is based on the proof of Karasev, Roldán-Pensado, and Soberón [KRPS16], but they use more involved techniques from topology, which we would like to avoid since our goal is to implement the result algorithmically.
Figure 7 (see Appendix E) gives an overview for our SC-path embedding. The embedding considers only -monotone SC-paths. The path itself is determined by the points , , …, and , , …, which define the points at which the path turns. The path begins on the boundary on the line , and then moves to , at which points it turns and moves upwards to , and it then turns to move to , and so on.
But these points alone do not fully specify the path, since the decision of whether to move to the right or to the left when moving from to has not been specified. To do this, we also include signs that are affixed to each horizontal strip. We will call the two sides of the cut side A (non-shaded) and side B (shaded). The -st strip is split into two by the vertical line segment on that starts from point and ends at , with one part being on side A, and the other being on side B. If the strip is assigned the sign then the area on the left of the strip is on side A of the cut, while if the strip is assigned the sign then the areas on the right of the strip is on side A of the cut. Once the sides of the cut have been decided, there is then a unique way to move through the points in order to separate sides A and B.
So, an SC-path with turns, can be represented by variables and signs. We then embed these into the sphere in the following way. We give an informal description here, and the full definition will be given in the proof of Theorem 22. We encode the values as variables where , while the values are encoded as values in $|x_{i}|ixz_{i}z_{i}S^{n}$ using one extra dimension as a slack variable in case the sum of the absolute values of the variables does not equal 1.
The key property is that, if a point represents an SC-path, then the point represents exactly the same SC-path but with all signs flipped, and thus sides A and B will be exchanged. Therefore, we can write down a function , where outputs the amount of mass of the -th mass distribution that lies on the A side of the cut, and therefore any point satisfying must cut all mass distributions exactly in half.
So, we get the following theorem that is proved formally in LABEL:app:sc-pizza_exists.
BU-containment. The next step is to turn this existence result into a proof that SC-Pizza-Sharing is contained in BU. We begin by recapping the definition of BU given in [DFMS21]. An arithmetic circuit is a circuit that operates on real numbers, and uses gates from the set , where a -gate outputs the constant , a gate multiplies the input by a constant , and all other gates behave according to their standard definitions. The class BU contains every problem that can be reduced in polynomial time to Borsuk-Ulam.
The key issue is how to determine how much of a polygon lies on a particular side of the cut. To do this, we first triangulate all polygons, as shown in Figure 8(a) (see Section F.1) to obtain mass distributions that are unions of triangles. We then break each individual triangle down into a sum of axis-aligned right-angled triangles. This is shown in Figure 8(b), where the triangle is represented as the sum of .
We then explicitly build an arithmetic circuit that, given the point used in Theorem 3, and a specific axis-aligned right-angled triangle, can output the amount of mass of that triangle that lies on side A of the cut. Then the function used in Theorem 3 can be built simply by summing over the right-angled triangles that arise from decomposing each of the polygons. So we get the following theorem, which is proved formally in LABEL:app:BU-inclusion.
Exact SC-Pizza-Sharing for weighted polygons with holes is in BU.
Deciding whether there exists an SC-path with turns that is an exact solution for SC-Pizza-Sharing with mass distributions is in ETR.
3 Containment of approximate SC-Pizza-Sharing
PPA containment. The following theorem shows PPA containment of -SC-Pizza-Sharing via a reduction to the problem which is in PPA [DFMS21].
-SC-Pizza-Sharing for weighted polygons with holes is in PPA.
Deciding whether there exists an SC-path with turns that is a solution of -SC-Pizza-Sharing with mass distributions is in NP.
4 Containment of discrete SC-Pizza-Sharing
It has already been shown in [Sch21] that -Discrete-Straight-Pizza-Sharing is in PPA even for . We complete the picture regarding inclusion of discrete pizza sharing problems, by showing that -Discrete-SC-Pizza-Sharing is also in PPA for , and therefore, for every . We will reduce -Discrete-SC-Pizza-Sharing to -SC-Pizza-Sharing for and , where is the input size. Finally, as one would expect from the discrete version, its decision variant is in NP since its candidate solutions are verifiable in polynomial time.
PPA containment. Consider an instance of -Discrete-SC-Pizza-Sharing with point sets , and denote . We intend to turn each point into a mass of non-zero area. To do so, we need to first scale down the landscape of the points, to create some excess free space as a “frame” around them. It suffices to scale down by an order of 3 and center it in the middle of , that is, to map each point to . Now all our points are in . For convenience, for each , we will be still denoting by the new set of points after scaling and centering.
Now, we check whether for any pair we have , which means that two points of two point sets have identical positions. Consider all and let their union be . Now consider all points that do not belong in , that is . We want to find the minimum positive difference in the - and -coordinates between any pair of points in . Let a point of be denoted , and let us denote
and finally, .
We now turn each point of into an axis-aligned square of size , with its bottom-left corner having the point’s coordinates. Notice that the total area of the squares is , therefore, by setting the weight of each square to we have the full description of a mass distribution . Notice that, since , all of the mass distributions are in .
Any SC-path that is a solution to the resulting -SC-Pizza-Sharing instance for , can be turned into a solution of -Discrete-SC-Pizza-Sharing for in polynomial time.
If a horizontal (resp. vertical) line segment of the SC-path solution intersects two squares (of any two mass distributions), this means that their corresponding points in Discrete-SC-Pizza-Sharing had the same - (resp. -) coordinate. To see this, without loss of generality, suppose that the two squares are intersected by the same horizontal line segment, and that their corresponding points do not have the same -coordinate. Then, the distance between their bottom-left corners is positive but no greater than , which implies that (by definition of ), a contradiction. A symmetric argument holds for two squares that are intersected by the same vertical line segment. In both the above cases, we return as a solution to -Discrete-SC-Pizza-Sharing the two corresponding points of the squares, which are of the kind of “Output (a)” in Definition 11.
Let . Suppose is odd for every . Then, since we are asking for an -SC-Pizza-Sharing solution, its SC-path cannot be non-intersecting with any of the squares, otherwise , a contradiction. Therefore, at least one square of is intersected, and this holds for every . If no line segment of the SC-path intersects two squares, we conclude that the SC-path with turns and line segments will intersect at most squares. But since, as discussed above, at least one square of each mass distribution has to be intersected by SC, we get that SC intersects exactly one square of each mass distribution. Each side, and of the SC-path includes at least entire squares for every , and therefore, their bottom-left corners, i.e., the corresponding points of Discrete-SC-Pizza-Sharing. This is a solution to the -Discrete-SC-Pizza-Sharing instance.
Now suppose is even for some . We can remove an arbitrary square from all mass distributions that come from point sets with even cardinality, and perform the aforementioned reduction to -SC-Pizza-Sharing. Then, let us call “-th segment” the one that intersects one square of , called -th square, and let it be a vertical segment, without loss of generality. By placing back the removed square, its bottom-left corner will be: (i) either on opposite sides with that of the -th square, (ii) or on the same side (notice that due to the allowed discrepancy , the -th segment cannot fall on the bottom-left corner of the -th square). Then, in case (i) each side contains exactly bottom-left corners of squares (i.e., points). By scaling up the positions of SC-path’s segments (recall that we have scaled down), this is a solution to the -Discrete-SC-Pizza-Sharing instance. In case (ii), suppose without loss of generality that both the inserted square and the bottom-left corner of the -th square are on the left side of the -th segment. We modify the SC-path by shifting the -th segment to the left such that it is now located to the left of -th square’s bottom-left corner. Notice that this position is to the right of the inserted square since there is at least distance between the two squares. We do the same for every has even number of points/squares. Then, each side of the SC-path for every has exactly bottom-left corners of squares which represent the initial points. After scaling up the positions of the SC-path’s segments, this is a solution to -Discrete-SC-Pizza-Sharing.
Finally, it is clear that the aforementioned operations can be performed in time. ∎
By the PPA containment of -SC-Pizza-Sharing (see Theorem 27), we get the following.
-Discrete-SC-Pizza-Sharing is in PPA for any .
NP containment. It is also easy to see that, by checking whether each of the points of each is in or as defined by a candidate SC-path solution, we can decide in polynomial time if indeed it is a solution or not to -Discrete-SC-Pizza-Sharing (since the points are polynomially many in , by definition).
Deciding whether there exists an SC-path solution to -Discrete-SC-Pizza-Sharing is in NP for any .
Conclusions
For -Straight-Pizza-Sharing we have shown that finding a solution is PPA-complete for any , where is the input size and is any constant. This result holds for both its continuous (even when the input contains only axis-aligned squares) and its discrete version. We have also shown that the same result holds for -SC-Pizza-Sharing, where the PPA containment holds even for inverse explonential . One open question that remains is “Can we prove containment in PPA of -Straight-Pizza-Sharing for inverse exponential ?”. For the decision variant of both these problem, we show that there exists a small constant such that they are NP-complete. For both these problems and their search/decision variants, a big open question is “What is the largest constant for which the problem remains PPA-hard and NP-hard, respectively?”. The most interesting open question is “are there any good algorithms that guarantee a solution in polynomial time for some constant , even when slightly more lines (resp. turns in an SC-path) are allowed?”.
We have also shown that exact SC-Pizza-Sharing is FIXP-hard and in BU. The interesting question that needs to be settled is “What is the complexity of the problem; is it complete for one of those classes or is it complete for some other class?”. Schnider in [Sch21] showed that exact Straight-Pizza-Sharing is FIXP-hard for a more general type of input than ours. So, a natural question is “When the input consists of weighted polygons with holes, is the problem FIXP-hard and inside BU, and if yes, is it complete for any of the two classes?”. For a strong approximation version of Consensus-Halving, [BHH21] showed that the problem is -complete. We conjecture that the same holds for the two pizza sharing problems studied here.
Another problem that remains open is the complexity of -Straight-Pizza-Sharing and -SC-Pizza-Sharing when every mass distribution consists of a constant number of non-overlapping rectangles. And finally, what is the complexity of the modified problem when instead of two parts we ask to fairly split the plane into equal parts?
Appendix A Input representation
While the mathematical proof of Theorem 22 holds for general measures which are absolutely continuous with respect to the Lebesgue measure, for the computational problems Straight-Pizza-Sharing and SC-Pizza-Sharing we need a standardized way to describe the input, and therefore restrict to particular classes of measures. We consider the class of mass distributions that are defined by weighted polygons with holes. This class consists of mass distributions with the property that are succinctly represented in the input of a Turing machine.
Appendix B Proof of Lemma 4
Observe that the number of big-tiles intersected by a line in the set is bounded by the number of times this line can cut . Any straight line can cut at most twice, and the same holds when instead of points we have big-tiles on if we take care of the sparsity of the big-tiles .
Recall that we present the instance as if it was instead of . But furthermore, let us do the analysis of the proof in the artificial square and show how from there we go to . In particular, in the artificial square the barycenters of consecutive big-tiles have distance 1 on the -axis, and their size is . We will prove that for any big-tile of size with there is no straight line that intersects more than two big-tiles.
For the shortest distance is
We will now show that , and therefore it does not intersect with the big-tile, since the greatest distance from a point of a big-tile to its barycenter is . By the choice of we can see that and , for every . Therefore, we have
Let us denote by the distance of the statement. We have
From the latter two claims, we conclude the following.
For and , from Equation 1 for we get
By the choice of , the numerator is strictly greater than , and . Therefore, . Similarly to the proof of 32, we require , which is true since .
For and , from Equation 1 for we get
Similarly to the previous case, the numerator is strictly greater than , and . Therefore, . We require , which is true since .
For and , from Equation 1 for we get
The numerator is strictly greater than , and . Therefore, . We require , which is true since . ∎
Any line that intersects two big-tiles cannot intersect any big-tile located below the lowest of the two.
Now we are ready to prove the main claim.
Any line can intersect at most two big-tiles.
From Corollary 34, 35, 36 and the above paragraph, we have deduced Corollary 37. To prove the current claim it remains to prove that any line that intersects two big-tiles cannot intersect any big-tile between the two or above the highest of the two. However, this is easy to show by just shift in perspective. In particular, for the sake of contradiction, consider three big-tiles namely the -th, -th and -th with that are intersected by a line. But then, by considering the latter two big-tiles and applying to them Corollary 37 we see that our assumption about the line intersecting the -th big-tile is contradicting the corollary. This completes the proof. ∎
The instance we have created is in square . It is now easy to re-normalize it in by inflating it such that the big-tiles have size instead of . This results in the barycenters of consecutive big-tiles now having distance instead of in the -axis, since we picked . Therefore, the barycenters of the big-tiles for have coordinates , where . Similarly, by further scaling the instance we can put it in .
We conclude that each cut can intersect at most two big-tiles, thus our available cuts will intersect at most big-tiles. Let us disregard the big-tiles that are intersected by the set of lines . By doing so, each cut introduces at most discrepancy for each valuation , , resulting to discrepancy in a total.
Now, we are ready to define the cuts for the Consensus-Halving instance . We consider the big-tiles in sequential order and we add one cut at whenever we find two big-tiles and that belong to different regions, i.e. “”, “”, and vice versa. This change of region can happen at most times as argued earlier. Hence, we have at most cuts in the instance . The labels of the pieces for follow the labels of the big-tiles of the instance (excluding those who contain intersected small-tiles, which are arbitrarily given the same label as that of the next big-tile).
Let us denote by and the regions in corresponding (according to the above mapping) to the regions and of respectively, induced by after disregarding the intersected big-tiles. Then for the discrepancy in the valuation of agent in we get
where the last inequality comes from the fact that in our reduction we can pick . Recall that this is always possible since for some , and additionally, according to our reduction, is required to be at most . This completes the proof.
Appendix C Proof of Lemma 12
Pixelation. We will start with the task of pixelating the mass distributions. Consider the input of an -SC-Pizza-Sharing or an -Straight-Pizza-Sharing instance, that is, mass distributions, respectively, on consisting of weighted polygons with holes (see Appendix A for details on the input representation). Let the instance’s input size be (by definition). As a first step, we perform a pixelation procedure: each polygon will be turned into a union of smaller squares that will have approximately the same total area as the polygon.
As shown in Section F.1, it is possible to decompose a polygon into a union of disjoint non-obtuse triangles. Each of those triangles’ area is rational since it can be computed by adding and subtracting the areas of five right-angled triangles with rational coordinates, which additionally, are axis-aligned. Furthermore, the cardinality of the non-obtuse triangles is a polynomial function in the input size of the polygon’s description, that is, the coordinates of the points that define its corners and the value that defines its weight. Therefore, the exact area of any mass distribution can be computed in polynomial time.
As we have discussed earlier, in order for our approximation parameter to make sense, we consider normalized mass distributions, meaning that for all . Notice that it can be the case that some mass distributions have total area constant (in which case their weight is constant), while some others might have total area exponentially small (and therefore exponentially large weight). Therefore, in our analysis, we make sure that the “resolution” we provide to any polygon is relative to its actual area rather than its measure .
Consider some polygon of mass distribution for and let it be triangulated into non-obtuse triangles, all with non-zero Lebesgue measure (strictly positive area). We will focus on one of ’s non-obtuse triangles, (see Figure 8(b)) with area and perimeter . Notice that since is in , we have and . Suppose that among all triangles of all ’s, the minimum area triangle has area . The first step is to pixelate . Let our pixels have size for , where is any fixed constant, and consider an axis-aligned square grid of pixels in our space, . We create a pixel for if and only if the pixel’s intersection with has non-zero Lebesgue measure. Then, the pixelated version of the triangle, denoted , has area , where is the excess area induced by the pixels intersected by the three sides of the triangle. By definition, is at least , and at most the area of pixels that intersect the three sides of . Therefore, by denoting the number of such pixels for each side by and referring to Figure 8(b), we have , and similarly for . This gives
where the last strict inequality comes from the fact that . To see this, we have to first notice that . Then we also have to use the known formula that connects and , namely,
which implies , and therefore .
We want to bound the proportion of excess area due to the pixelation compared to the triangle’s actual area, that is, . We have
The pixelation of results in , where .
The total area of is at most .
For any disjoint with , we have .
It suffices to show that . The first inequality is easy to see, since , which implies . For the second inequality, we have
Similarly, , or equivalently, . Therefore,
Recall that, in an -Straight-Pizza-Sharing solution, at most lines can intersect and (even though the standardized version of the problem requires at most straight lines, as we showed in Theorem 5, PPA-hardness holds even for at most lines for any constant ). Similarly for an -SC-Pizza-Sharing solution, since its SC-path comprises of at most turns, i.e., straight line segments (and again, by Theorem 8 PPA-hardness holds even for at most line segments for any constant ) By inductively applying 40 and 41 times (recall that ), we get the following.
Let at most straight lines intersect , and the side of each pixel be for any . Also, let be the set of its pixels that are intersected by the lines, and be an arbitrary partition of . Then, , and furthermore, , for any .
Turning pixels into points in general position. So far, for -SC-Pizza-Sharing and -Straight-Pizza-Sharing, with mass distributions, respectively, we have described how to turn each distribution , into a pixelated version of it. We will now turn each of those pixels into a set of points. Let consist of many polygons, and recall that each polygon has its own weight , . Let be a non-obtuse triangle belonging to the -th polygon of , and be the set of these triangles composing . Suppose a pixel contains non-zero Lebesgue measure of triangles { for some , and let us denote . Observe that, due to our assumption that the mass distributions are normalised, we have , therefore,
We will place points at the pixel’s bottom-left corner, that is, all having the same position. Each of the pixels of mass distribution has no weight, as desired, and they form a set . Recall that each of the ’s we created contains at most points, i.e., polynomially many in the instance’s description size and . That is because its pixels can be at most , with each pixel containing at most points.
Observe, however, that in the discrete version of the pizza sharing instance we created, the points of the point sets lie on vertices of a square grid with edge length . These points are not in general position, and therefore, not all solutions of that instance (a set of three points intersected by the same straight line) can be translated back to a solution of the original corresponding continuous version of the instance. That is why we need to turn this instance into one where the points in are in general position.
First, we have to slightly shift the points inside each which have identical positions. Notice that, by Equation 3, at most such points have identical positions. Let these points be for . We shift vertically each point , to . It is easy to see that none of these points have the same position. Observe also, that none of those points acquired the same position as another one from , since the closest point of to any of the points for has distance (in the -axis) at least .
Then, we have to take care of some points of for , which might have identical positions. To prevent such a case, we create a small gap between the position of any two point sets’ points, by shifting their grid in the -direction. Formally, for each , each point of with coordinates now acquires coordinates . It is immediate that two points that used to have identical positions now have different positions; it is also straightforward that we have preserved the uniqueness of position among the points inside each . What remains is to check whether a shifted point of has the same position as a point of . There are two cases: if they used to have the same -coordinate, then their minimum distance in the -coordinate is at least ; if they used to have the same -coordinate, then they must have had different -coordinates, which remained the case after the shifting. From the shifting we performed, we get the following.
The points of can lie only on vertices of a square grid in with edge length .
Now that each of the points of our instance has a unique position, we need to make sure that they are in general position, meaning that no triplet of them can be intersected by the same straight line. We will do this by further distorting the position of the points in a way, such that, even though the points will have a tiny distance from their original place (and therefore seem to remain on a square grid), they will be in general position.
To make the presentation of the analysis easier, instead of our fine grid (of 43), we will show the proof of correctness of our construction for the inflated square grid with edge length . Observe, that in such a grid, the only lines that intersect at least two points have a slope of the form , where , is any pair of points. We will call those lines of interest. Since , we deduce that the slopes of interest are actually of the form , where , and , or it is .
Consider now replacing each point in the grid, with a disk of radius centered at its corresponding point’s position. Let us identify each disk by its center, that is, its initial point on the grid. For convenience, we will be calling the grid of points point-grid and the grid of disks disk-grid. Consider now a set of at least two disks that can be intersected by the same straight line, called distorted line of interest, and let be the collection of all such sets (and again, is a finite collection since is finite).
: Then we have , where the last weak inequality holds for any .
: Without loss of generality, let , and let . Then , therefore, . Furthermore, we have that , and that . This implies that . Also, for finite , we know that , , therefore . We also have that , since is a positive integer, and . By definition of , we have
and therefore, , where the last weak inequality holds for any .
For both of the above cases, we have shown that the maximum difference in the angle of distorted lines of interest, as compared to their non-distorted version, is strictly smaller than the minimum angle between any two distorted lines of interest that intersect two pairs of disks, where each pair defines a different line of interest. ∎
The above claim shows that, for small enough disk radius , the only disks that can be intersected by the same line, are only those whose centers can be intersected by a common line. Recall now that our ultimate goal is to move each point of the grid slightly, so that they are in general position. To do that, we will properly move each point inside the first quadrant of its respective disk with radius , so that this extra distortion results in a general position.
Since each “skewed” point will be in its respective disk, by 44, if there are three points that can be intersected by a common line, the centers of their respective disks should lie on the same line of interest. Therefore, we only need to prove that no three skewed points whose original position was on the same line of interest can be intersected by a common line. We will denote by and the coordinates of an original point on the grid, and by the skewed points after moving the original ones inside their respective disk. Let , and . The “skewing” will be as follows: , and .
The skewed points are in general position.
We define the auxiliary quantities , , , , , . Let us analyse the case where is finite. Then . We have
where the last equalities hold, since , and therefore, , . We have assumed that the three skewed points are intersected by a common line, which implies that . From Equation 4, Equation 5, we get
which, after simplification, gives , or equivalently, , since , and the smallest positive slope is . The latter equality implies
We have assumed that the three skewed points are intersected by a common line, therefore, by equating the left-hand sides of Equation 6 and Equation 7, after simplification, we get , or equivalently, . Since also , the points , are identical, a contradiction. ∎
Recall now that 44 and Lemma 45 were proven for a general (original) point-grid , for any . To use them in the context of our reduction, we need to set the proper values for and then re-scale the entire grid so that it is inside . From 43, we need . Now we have a very large grid with edge length 1, so in order to be in as required, consider the grid’s edge length to be . Finally, to ensure that all our auxiliary results go through, we have to also scale down by further multiplying it with .
Consider the input of an -SC-Pizza-Sharing or an -Straight-Pizza-Sharing instance, meaning, the description of sets, respectively, of weighted polygons with holes on . By definition, its size is . In time , we perform a triangulation of each polygon into non-obtuse triangles, therefore, in total we require time for this task. Then, we perform the “pixelation” procedure, which requires, for each of mass distributions, checking whether each of pixels has a non-empty intersection with a triangle. This task can be performed in time, since is a fixed constant. Next, the points of each point set created from the respective pixels are shifted positively by an exponentially small value in their - and -coordinate, so that there is no overlap between any two points. This takes again time. Finally, these points are skewed so that they are in general position, by adding very small values in their - and -coordinates, which takes once again time. Also, we remark that the skewing procedure, results in points such that no two of them have the same - or -coordinate, thus Output (a) of Definition 11 cannot be produced. Finally, notice that, even though we have ensured that each of the created points’ position before skewing is on a vertex of an exponentially large grid, the number of points we have is .
Recall that is a non-obtuse triangle which belongs to the -th polygon of , and is the set of such triangles that compose . By we denote the pixelated version of , while are ’s respective parts of the pixels intersected by lines, that join the and the sides, respectively. To bound we will use the fact that , or equivalently, . We have
and since , we get
Now observe that, after pixelation, only the pixels at the boundary of each triangle can correspond to points instead of . Therefore, using the notation of Appendix C, where , only at most a fraction can correspond to points. So,
where the second to last inequality comes from the fact that .
where the first inequality is acquired by the reverse triangle inequality in combination with Lemma 42, and the second inequality is due to the fact that the number of points in a pixel of is , where , by definition. ∎
Appendix D Proof of Theorem 19
Before we prove the theorem, let us give a brief sketch of the ETR-hardness proof of the aforementioned Consensus-Halving decision version of [DFMS21]. We are given an instance of the following problem which was shown to be ETR-complete (Lemma 15 of the aforementioned paper). Definition 46 (). Let be a polynomial. We ask whether there exists a point that satisfies .
We will use exactly the same technique up to the point where we have a Consensus-Halving instance that checks whether . Then, we use the gadgets described in the FIXP-hardness reduction of Section 3.4 that reduce the valuation functions of agents in Consensus-Halving into mass distributions of a SC-Pizza-Sharing instance with colours. According to 17 in any solution of the resulting SC-Pizza-Sharing instance, the SC-path does not have turns inside any unit-square. This means that each horizontal/vertical segment of the SC-path that cuts a unit square in SC-Pizza-Sharing has a 1-1 correspondence to a cut of a Consensus-Halving solution, thus a Consensus-Halving solution that uses cuts would correspond to a SC-path with line segments, i.e., turns. Therefore, if and only if there is a SC-path that solves SC-Pizza-Sharing with colours and turns, there is a -cut that solves Consensus-Halving with agents. Equivalently, there is a such that , making the instance satisfiable. ∎
Appendix E Proof of Theorem 22
We also define the variables where , . The sign of , indicates the sign of the leftmost part of slice that defines, and we set the whole slice to have the sign of . Clearly, , since , and , by definition. A feasible solution of SC-Pizza-Sharing is then the vector ; this defines a directed path that consists of horizontal and vertical line segments with at most turns. We can recover this path using Algorithm 1. Note that in the algorithm we implicitly suggest to navigate using the following trick: if we are at a horizontal part of the path, say , and we hit the boundary or before we reach a vertical cut, then we wrap around in the horizontal dimension and continue from point or respectively.
Finally, we highlight that in the map-back process, is only used to indicate the sign of variable , while its absolute value has no other purpose than to serve as a remainder: it ensures that , i.e., it is .
For any given point , the Borsuk-Ulam function is defined to be the total “” (positive) measure on induced by , and we denote it by , that is, . The total positive measure is a continuous function of the variables: is a continuous function of , by the interpretation of the variables on ; and the mapping we defined from to is also continuous. To see the latter, note that for fixed signs of the variables of , the variables are continuous by definition, therefore we only need to check what happens when a variable from the latter changes sign. By the mapping we defined above, one can verify that whenever a variable changes its sign it has to necessarily pass from value 0 first, and hence the mapping is continuous.
The proof is similar when . The horizontal cuts are again , but the vertical cuts are , meaning that the top slice is not vertically cut. Also, it is easy to see that one could consider the path to be again -monotone but in the opposite direction, meaning that there is no line segment pointing upwards.
Note that a symmetric proof exists, where the slices are vertical instead of horizontal, and the cuts within the slices are horizontal instead of vertical. The analysis is similar to the one we give here, and it guarantees the existence of an SC-path which is allowed to wrap around in the vertical dimension, it bisects all measures and is -monotone with no line segment heading left (or right).
Appendix F Proof of Theorem 24
Consider an arbitrary instance of exact SC-Pizza-Sharing, i.e., the one of Definition 3, where we additionally restrict the mass distributions to be weighted polygons (with holes). For ease of presentation, we will give distinct colours to the mass distributions , and call them colours . We are given a set of polygons with holes in the input form described in Appendix A. We will first do a preprocessing of the input: (a) normalization in , and (b) triangulation. The former is needed in order to simulate the space of the mathematical existence proof of Theorem 22, while the latter allows us to construct the Borsuk-Ulam function of the aforementioned proof via circuits. For the computation of the Borsuk-Ulam function described in Appendix E we need a way of computing the “positive” measure of a polygon, as dictated by a given feasible solution . To simplify this computation, we will triangulate further the polygon to end up with only non-obtuse triangles, which can be decomposed into axis-aligned right-angled triangles (Section F.1).
For task (a) we first check among all polygons of all colours, what the smallest and greatest coordinates of their vertices are, which defines a rectangle that includes all our polygons. Then, we find the square with smallest sides within which the aforementioned rectangle can be inscribed. Finally, by shifting the rectangle so that its bottom left vertex is at , and then scaling it down so that each side is of length , we get a normalized input where each polygon is in and their relative positions and areas are preserved. Task (b) is easily taken care of via already known algorithms (e.g., [GJPT78, AAP86, Meh84, GM91]) that triangulate polygons with holes in time (which is optimal) without inserting additional vertices.
Here we first show how an arbitrary triangle can be decomposed into right-angled triangles whose right angle is additionally axis-aligned. Then, by using only the allowed gates of BU, we present a way to construct a Borsuk-Ulam function. We show that any solution of Borsuk-Ulam whose input is the aforementioned function can be mapped back in polynomial time to an exact SC-Pizza-Sharing solution.
By the definition of the Borsuk-Ulam function of Section 4, it is apparent that we need to be able to compute parts of the area of a polygon, depending on where square-cuts fall. The function we provide can compute parts of the area of axis-aligned right-angled triangles. For that reason, after a standard triangulation (e.g., using the technique of [AAP86]) we further preprocess it and decompose each obtuse triangle into two right-angled triangles, by adding an extra line segment.
In particular, we check the obtuseness of a triangle by computing the squared lengths of its sides (each is rational; a sum of squares of rationals), taking the largest one, w.l.o.g. and then checking whether . If the inequality is not true then is non-obtuse and we proceed. Otherwise, we add the line segment that starts from and ends at on side , where . We will denote by a triangle with vertices and, when clear from context, we will also use the same notation to indicate the area of the triangle. Two intersecting line segments , define two angles, denoted and . The order of the vertices implies a direction of the segments, i.e., in the former angle we have , and in the latter we have , . We consider the direction of the segments and define the angle to be the intersection of the left halfspaces of the segments. Therefore . This order will not matter if clear from context (e.g., in triangles). The coordinates of are rationals since they are the solution of the following two equations: (a) one that dictates that is on : , and (b) one that captures the fact that and are perpendicular: . In fact,
At this point the triangulation of each polygon consists of non-obtuse triangles. The following proposition makes the computation of areas of these triangles’ parts possible via a decomposition into axis-aligned right-angled triangles.
The area of any non-obtuse triangle can be computed by the areas of five axis-aligned right-angled triangles.
A proof by picture is presented in Figure 8(b), where we draw a segment from the top-left corner to the bottom-right one, and .
The proof is immediate if we show that every non-obtuse triangle can be tightly inscribed inside a rectangle, meaning that all of its vertices touch the rectangle’s perimeter. In particular, the rectangle has coordinates
First, we argue that one of ’s vertices is on a corner of the rectangle. W.l.o.g. suppose . If or then is the bottom-left or top-left corner of the rectangle, respectively. Otherwise, suppose w.l.o.g. that . If then is the bottom-right corner of the rectangle. Otherwise, . Then, if , is the top-right corner of the rectangle. Otherwise, and is the top-left corner of the rectangle. We conclude that a vertex of the triangle, w.l.o.g. , is on a corner of the rectangle.
Now we need to show that and lie on the perimeter of the rectangle. By the definition of the aforementioned rectangle’s vertices, it cannot be that both and are not on the perimeter; if, for example, is the top-right corner then , therefore vertex touches the lower side of the rectangle, and similarly if is any of the other corners. Now, for the sake of contradiction, suppose that the remaining vertex, w.l.o.g. does not touch the perimeter of the rectangle. Then, by definition of the rectangle’s vertices, is on another corner. If and are on the same side of the rectangle, then it is clear by the definition of the rectangle’s coordinates that must be on the perimeter of it. Otherwise and are diagonal corners of the rectangle. Then, is the largest side of the triangle and if is not on the boundary, it holds that , meaning that is obtuse, a contradiction. Therefore, any non-obtuse triangle can be tightly inscribed in a rectangle. ∎
F.2 Constructing the Borsuk-Ulam function
Consider the weighted polygons of the -th colour, and let us focus on a particular polygon . We have triangulated the polygon into non-obtuse triangles. Consider one such triangle and the virtual triangles , which are the corresponding five axis-aligned right-angled triangles described in the previous subsection (also see Figure 8(b)). W.l.o.g. we consider and to be the positively contributing triangles and the rest to be the negatively contributing triangles. For each of them we will be computing the positive measure that the cut of SC-Pizza-Sharing defines (see Appendix E). By the axis-aligned right-angled triangle decomposition described in the proof of Proposition 48, it suffices to show how to compute parts of areas of such a triangle, for all of its four possible orientations: , where is the orientation when, by shifting the triangle so that the vertex of the right angle is on , the whole triangle is in the -th quadrant.
First, we test the orientation of our triangle. Observe that for and we know that the orientation is and , respectively (see and in Figure 8(b)). For , we check the coordinates and identify what kind of triangles they are.
For a fixed colour , for each possible category , we show how to compute the term that an axis-aligned right-angled triangle (as in Figure 8(b)), , contributes to the Borsuk-Ulam function . Let us denote by the linear function of the line segment of ’s hypotenuse (with respect to the horizontal axis ), and note that it is easy to derive from the segment’s end-points. We also denote by and the bottom and top points that define the hypotenuse of . The vertex of the right angle is defined by these four coordinates depending on .
For any given point (feasible solution) that defines a SC-path of SC-Pizza-Sharing (see Appendix E), recall that there are slices that determine slices that partition . One can see that, given the ’s, from , the ’s can be computed by the recursive expression .
We first define the following auxiliary functions , for each and :
For an example of case see Figure 9.
Then, we get the total area that all slices up to (i.e., ) define together with from
which has the property that if (resp. ), then the computed area considers the thickness only in the part of the slice that is left (resp. right) to . For , has no thickness, its measure is 0, and consistently vanishes from the above functions.
Then, to isolate the part that only slice contributes to the positive measure, for (see definition of virtual triangles above), we define
Consequently, the positive measure that an (unweighted) non-obtuse triangle contributes to the Borsuk-Ulam function according to the SC-path is
Finally, given that colour has many weighted polygons, each of weight , , which has been decomposed into many non-obtuse triangles, ’s positive measure (i.e., the -th coordinate of the Borsuk-Ulam function) is
Appendix G Proof of Theorem 25
The proof is by showing that the aforementioned problem can be formulated as an ETR problem. We will use the machinery of the BU containment proof (Theorem 24) to build the piece-wise polynomial function . In the proof of the aforementioned theorem we construct the function so that it computes the “positive” part of measure in its -th coordinate, and we require (at most) turns in the SC-path. It is easy to modify this construction for any given number of turns: by the proof of Theorem 22, what we need to do is to cut slices (i.e., place horizontal cuts) in and another vertical cuts on them starting with the second slice from the bottom. Then, by the same mapping as in the aforementioned proof, we have a function for which, if for some we have a solution to exact SC-Pizza-Sharing with turns in its SC-path. One can see that the SC-Pizza-Sharing problems of Theorem 22 and Theorem 24 were special cases for , for which the aforementioned equality is guaranteed by the Borsuk-Ulam theorem.
Appendix H Proof of Theorem 27
Appendix I Proof of Theorem 28
As shown in the proof of Theorem 27, the function we use (proof of Theorem 24) is continuous, piece-wise polynomial, and therefore -Lipschitz continuous, where (again, note that is constant, and points where , is non-differentiable do not matter for Lipschitzness). Suppose that a point satisfies for a given , and therefore it is a solution to the decision version of when parameterized by the number of turns . Then, the following inequalities hold for any other point :
Consider now a number that is upper-bounded by an inverse-polynomial of the input size. Then, for any such that we have from Equation 9 that
meaning that is also a solution to -Borsuk-Ulam parameterized by , for . Therefore, is a solution to an instance of the same problem when additively relaxed by at most an inverse polynomial (in the input size) quantity.
By the above, we conclude that there are always polynomial-size solutions to the problem (and thus to the initial -SC-Pizza-Sharing problem) given that there are exact solutions to it. Therefore, a candidate solution can be verified in polynomial time.
Acknowledgements
The second author was supported by EPSRC grant EP/W014750/1 “New Techniques for Resolving Boundary Problems in Total Search”. The third author was supported by the Alexander von Humboldt Foundation with funds from the German Federal Ministry of Education and Research (BMBF).