Abstract 1 Introduction 2 First Proof: Unique Sink Orientations 3 Second Proof: Rainbow Arrangements and the Poincaré-Miranda Theorem 4 Generalizing Well-Separation 5 Rainbow Arrangements and Bicolored Stretchability References

Splitting Sandwiches Unevenly via Unique Sink Orientations and Rainbow Arrangements

Michaela Borzechowski Department of Mathematics and Computer Science, Freie Universität Berlin, Germany    Sebastian Haslebacher ORCID Department of Computer Science, ETH Zürich, Switzerland    Hung P. Hoang ORCID Algorithms and Complexity Group, Faculty of Informatics, TU Wien, Austria    Patrick Schnider ORCID Department of Mathematics and Computer Science, University of Basel, Switzerland
Department of Computer Science, ETH Zürich, Switzerland
   Simon Weber ORCID Department of Computer Science, ETH Zürich, Switzerland
Abstract

The famous Ham-Sandwich theorem states that any d point sets in d can be simultaneously bisected by a single hyperplane. The α-Ham-Sandwich theorem gives a sufficient condition for the existence of biased cuts, i.e., hyperplanes that do not cut off half but some prescribed fraction of each point set. We give two new proofs for this theorem. The first proof is completely combinatorial and highlights a strong connection between the α-Ham-Sandwich theorem and Unique Sink Orientations of grids. The second proof uses point-hyperplane duality and the Poincaré-Miranda theorem and allows us to generalize the result to and beyond oriented matroids. For this we introduce a new concept of rainbow arrangements, generalizing colored pseudo-hyperplane arrangements. Along the way, we also show that the realizability problem for rainbow arrangements is -complete, which also implies that the realizability problem for grid Unique Sink Orientations is -complete.

Keywords and phrases:
α-Ham-Sandwich Theorem, Pseudo-Hyperplanes, Arrangements, Unique Sink Orientations, Oriented Matroids
Funding:
Michaela Borzechowski: DFG within GRK 2434 Facets of Complexity.
Hung P. Hoang: Austrian Science Foundation (FWF, projects 10.55776/Y1329 and ESP1136425).
Copyright and License:
[Uncaptioned image] © Michaela Borzechowski, Sebastian Haslebacher, Hung P. Hoang, Patrick Schnider,
and Simon Weber; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Computational geometry
; Theory of computation Problems, reductions and completeness ; Mathematics of computing Discrete mathematics
Related Version:
Full Version: https://arxiv.org/abs/2602.10795 [11]
Editors:
Hee-Kap Ahn, Michael Hoffmann, and Amir Nayyeri

1 Introduction

The famous Ham-Sandwich theorem, originally proven by Stone and Tukey in 1942 [30], states that given any d mass partitions or point sets in d, there is a hyperplane that simultaneously bisects all of them. As the name suggests, this can be illustrated using the following food-based analogy: assume you have a 3-dimensional sandwich consisting of bread, ham, and cheese, that you want to share with your friend. You want to do this fairly, meaning that both of you get exactly half of the bread, half of the ham, and half of the cheese. The Ham-Sandwich theorem now says that you can always get a fair division with a single straight cut, no matter how you assembled the sandwich111In his book “Algorithms in Combinatorial Geometry”, Edelsbrunner illustrates this by saying that such a cut can be found even if the cheese is still in the fridge [12]..

The Ham-Sandwich theorem has initiated the study of mass partitions, where the general question is how many mass distributions or point sets can be simultaneously bisected with some specific type of cut. Studied variants include partitions with several hyperplanes [7, 9, 18, 19, 25], partitions using general convex sets [1, 3, 8], partitions using fans and cones [6, 24, 27], or partitions using fixed shapes [26]. For more information on mass partitions, we refer to the recent survey by Roldán-Pensado and Soberón [23].

If you like cheese significantly more than your friend does, you might not want to share your sandwich fairly, but you perhaps want to have more of the cheese. A natural question is which such biased partitions are still possible with just a single cut. The α-Ham-Sandwich theorem gives a sufficient condition for when such cuts are possible. In particular, it states that if your ingredients are well-separated, then any biased cut is possible. Formally, well-separation is defined as follows (see also Figure 1 for an illustration).

Definition 1.

A family =(A1,,Ad) of d point sets (or mass distributions) is said to be well-separated if for any index set I[d],222Herein and henceforth, [d] refers to the set {1,,d}. there exists a hyperplane that separates the convex hull of (the support of) iIAi from the convex hull of (the support of) i[d]IAi.

Figure 1: A family of well-separated point sets =(P1,P2,P3) in 3. The hyperplane h separates P1P2 from P3.

The α-Ham-Sandwich theorem has been shown both for mass distributions, by Bárány, Hubard, and Jerónimo [5], as well as for finite point sets, by Steiger and Zhao [28]. In this manuscript, we focus on the discrete variant for point sets, so we only formally state this version here. However, before getting there, let us remark that we orient a hyperplane hd defined by points p1P1,,pdPd according to the orientation of the simplex (p1,,pd)h, that is, a point q is below h iff the following (d+1)×(d+1) matrix A has a negative determinant: Aj,d+1=1 for all j[d+1], Ai,=pi for all i[d] and Ad+1,=q. If the matrix A has a positive determinant we say that q is above h. If q is on h, then A has determinant 0.

With this, we can now formally define α-cuts (see also Figure 2) and state the discrete α-Ham-Sandwich theorem.

Definition 2.

Let 𝒫=(P1,Pd) be well-separated and in weak general position333Weak general position means that any hyperplane containing one point of each of the sets P1,,Pd cannot contain any other points of 𝒫.. Given (α1,,αd)[|P1|]××[|Pd|], an (α1,,αd)-cut is a hyperplane hα such that for each i[d], one point of Pi is on hα and exactly αi1 points of Pi are below it.

Theorem 3.

Let 𝒫=(P1,Pd)d be well-separated and in weak general position. Then for every (α1,,αd)[|P1|]××[|Pd|], there exists a unique (α1,,αd)-cut.

Figure 2: Well-separated point sets in 2 with two α-cuts.

The proof of the continuous version for mass distributions by Bárány, Hubard, and Jerónimo [5] uses Brouwer’s fixpoint theorem. On the other hand, the proof of the discrete version for point sets by Steiger and Zhao [28] uses an elegant inductive argument to show that every α-cut is unique and then deduces the existence from the pigeonhole principle. However, we think that there is a gap in their inductive argument, which we elaborate on in the appendix of the full version of this paper. While it is possible that their proof can be fixed using some additional arguments, we are taking a different route and instead provide two new proofs of the α-Ham-Sandwich theorem for point sets.

The first proof, presented in Section 2, uses the combinatorial framework of Unique Sink Orientations. A Unique Sink Orientation (USO) is an orientation of the edge set of a hypercube such that every subcube has a unique sink. USOs were formally defined by Szabó and Welzl [31], based on earlier work by Stickney and Watson [29] who investigated USOs as a combinatorial abstraction of the candidate solutions of a special class of linear complementarity problems. The concept of USOs has been generalized to grids, which are products of complete graphs [15]. A grid USO is an orientation of a grid where every subgrid has a unique sink.

Our second new proof of the α-Ham-Sandwich theorem, presented in Section 3, considers the setting under the well-known point-hyperplane duality: given d sets of hyperplanes with a dual notion of “well-separated”, we prove the existence of a point that lies above or below the correct number of hyperplanes in each set. In fact, we present a more general result, replacing the arrangement of hyperplanes by a rainbow arrangement, a concept that we formally introduce in Section 3.1. Informally, a colored generalized arrangement is a family =(H1,,Hd), where each Hi is a set of pseudo-hyperplanes in d. In a rainbow arrangement, we further require that any colorful choice of pseudo-hyperplanes h1H1,,hdHd intersect in a single point. The main result of Section 3.3 is the following theorem.

Theorem 4.

Let =(H1,,Hd)d be a well-separated colored generalized arrangement where each color class Hi has size ni. Then for every (α1,,αd)[n1]××[nd], there is a point xαd lying on one and above exactly αi1 pseudo-hyperplanes of color i for all i[d]. If is additionally a rainbow arrangement, then the point xα is unique.

Using the topological representation theorem, Theorem 4 allows us to deduce a version of the α-Ham-Sandwich theorem for oriented matroids (Corollary 11).

In Section 4, we generalize Theorem 4 even further by relaxing the well-separation condition to the notion of (β,γ)-separation, which we introduce in the same section.

Finally, our notion of rainbow arrangements can be viewed as a higher-dimensional generalization of bicolored order types, introduced by Aichholzer and Brötzner [2]. In Section 5, we show that deciding whether a rainbow arrangement can be realized by a hyperplane arrangement is -complete already in two dimensions (i.e., for bicolored order types, see Theorem 21). Given the connection between the α-Ham-Sandwich theorem and grid USOs, and based on recent results by Borzechowski, Fearnley, Gordon, Savani, Schnider, and Weber [10], this allows us to conclude that deciding whether a grid USO is realizable is also -complete (see Corollary 22).

2 First Proof: Unique Sink Orientations

A grid graph is a generalization of the d-dimensional hypercube: While the latter is the Cartesian product of d copies of K2 (the complete graph on two vertices), the former is the Cartesian product of complete graphs of arbitrary size. Formally, a d-dimensional grid graph Γ parameterized by n1,,nd2 is the graph on [n1]××[nd], where two vertices are adjacent if and only if they differ in exactly one coordinate. We say the grid has d dimensions and each dimension i has ni directions.

The subgraph Γ of Γ induced by the vertices V(Γ)=N1××Nd for non-empty Ni[ni] is called an induced subgrid of Γ. Note that if we have |Ni|=1 for some i, then the induced subgrid loses a dimension. If |Ni|2 for all i[d], we say that Γ is a subcube of Γ. An orientation of the edges of a grid graph is called a Unique Sink Orientation (USO) if every induced subgrid has a unique sink (i.e., a unique vertex that has no outgoing edges) [15].

Lemma 5.

Let σ be a grid orientation. Assume that every induced subgrid has a (not necessarily unique) sink, and that σ is a USO when restricted to any subcube. Then σ is a USO.

Proof.

As every subgrid has a sink by assumption, it remains to show that this sink is unique. Assume for the sake of contradiction that there is a subgrid that has two sinks a=(a1,,ad) and b=(b1,,bd). Consider now the subcube spanned by a and b (i.e., the subcube induced by {a1,b1}××{ad,bd}). As a and b were sinks in the subgrid, they are also sinks in this subcube. We have thus found a subcube with two sinks, so σ restricted to this subcube is not a USO. This is a contradiction to the second assumption.

Let 𝒫=(P1,,Pd)d be a well-separated point set in weak general position. For i[d], let Pi={p1i,,p|Pi|i}. Let Γ𝒫 be the grid graph parameterized by |P1|,,|Pd|. We recall the following orientation σ𝒫 on Γ𝒫, which was presented in [10] and is illustrated in Figure 3. For any edge between two vertices v=(a1,,ai1,ai,ai+1,,ad) and v=(a1,,ai1,ai,ai+1,,ad) of Γ𝒫, let h be the colorful hyperplane spanned by the points pa11,,pai1i1,paii,pai+1i+1,,pdd, and let h be the colorful hyperplane spanned by pa11,,pai1i1,paii,pai+1i+1,,pdd. If paii lies above h, we orient v towards v; otherwise orient v towards v. It turns out that paii lies above h if and only if paii lies below the hyperplane h,444This can be seen by projecting to 2 such that hh is mapped to the origin. so this orientation is well-defined.

Figure 3: Well-separated point sets in 2 with the corresponding grid orientation. The line drawn on the left is represented by the highlighted vertex on the right.

The following lemma is key to our first proof of Theorem 3.

Lemma 6.

Let 𝒫=(P1,,Pd)d be well-separated and in weak general position. Then the orientation σ𝒫 is a grid USO.

Note that this lemma was already proved in [10]. However, their proof uses Theorem 3. To avoid the cyclic dependency, we provide here an alternative proof that uses the following version of the α-Ham-Sandwich theorem for mass distributions.

Theorem 7 (Bárány, Hubard, and Jerónimo [5]).

Let K1,,Kd be well-separated convex bodies in d, and α1,,αd given constants with 0αi1 for i[d]. Then there is a unique hyperplane h such that for all i[d], h intersects Ki, and the proportion of the volume of Ki below h is αi.

Proof of Lemma 6.

We first show that every subgrid has a sink. By the definition of σ𝒫, a subgrid is spanned by subsets PiPi and a sink corresponds to a (1,,1)-cut. As any subset of a well-separated point set in weak general position is again well-separated and in weak general position, the existence of such a (1,,1)-cut is guaranteed by applying Theorem 7 with the convex sets being the convex hulls of P1,,Pd, and αi=0 for i[d].

We now argue that every subcube is a USO. A subcube is spanned by at most two points per Pi. Let Qi be the set of these at most two points. As argued before, (Q1,,Qd) is well-separated and in weak general position. Further, the convex hull of the at most two points per Pi is a line segment. Hence, by applying Theorem 7 on these convex hulls, we obtain the existence of all possible (α1,,αd)-cuts of (Q1,,Qd) for all (α1,,αd)[|Q1|]××[|Qd|]. Hence, in the subcube, each possible outmap (i.e., a binary vector at each vertex that encodes whether the incident edge along each dimension is incoming or outgoing) is present. This implies that the subcube is indeed a USO [31].

The claim now follows from Lemma 5.

The α-Ham-Sandwich theorem for point sets (Theorem 3) now follows easily.

Theorem 3. [Restated, see original statement.]

Let 𝒫=(P1,Pd)d be well-separated and in weak general position. Then for every (α1,,αd)[|P1|]××[|Pd|], there exists a unique (α1,,αd)-cut.

Proof.

By Lemma 6, the orientation σ𝒫 is a grid USO. We define a function r:[|P1|]××[|Pd|]{0,,|P1|1}××{0,,|Pd|1} that assigns to each vertex of the grid graph Γ𝒫 a tuple (a1,,ad) such that ai is the number of the vertex’s outgoing edges in the dimension i. Then [15, Theorem 2.14] states that r is a bijection. This implies that for every (α1,,αd)[|P1|]××[|Pd|], there is a unique (α1,,αd)-cut, as required.

3 Second Proof: Rainbow Arrangements and the Poincaré-Miranda Theorem

We provide definitions and preliminaries on the Poincaré-Miranda Theorem in Sections 3.1 and 3.2 and present the proof of Theorem 4 in Section 3.3.

3.1 Point-Hyperplane Duality and Rainbow Arrangements

In this subsection, we argue why our α-Ham-Sandwich theorem for rainbow arrangements (Theorem 4) is a generalization of the one for point sets (Theorem 3). We first consider the point-hyperplane dual of Theorem 3. The dual of every input point is a hyperplane, and the well-separation of the point set translates to the property that for every subset S of [d], there exists a point above all the dual hyperplanes of the points in iSPi and below those of the points in iSPi. The dual of an (α1,,αd)-cut is then a point lying on one dual hyperplane and above exactly αi1 hyperplanes of each color i. Theorem 3 is equivalent to the statement that such a point is unique for every (α1,,αd).

With this interpretation in mind, we now define our generalized arrangements, where we define an oriented pseudo-hyperplane as a subset of d that is homeomorphic to d1 and divides d into two parts: a positive and a negative side. We say a point p lies above (below) an oriented pseudo-hyperplane H if and only if p is contained in the positive (negative) side.

Definition 8 (Generalized Arrangement, Rainbow Arrangement).

A family of oriented pseudo-hyperplanes in d is called a generalized arrangement if for all k[d+1], the intersection of any k of them is a (not necessarily connected) (dk)-dimensional manifold555For the sake of convenience, we consider the empty set to be a manifold of any dimension. In particular, it is the only manifold of dimension 1. and d has finitely many connected components (which we call cells).

A generalized arrangement is colored if is partitioned into d pairwise disjoint subfamilies H1,,Hd. We think of this as coloring each oriented pseudo-hyperplane with one of d colors and call the Hi’s color classes.

A colored generalized arrangement is a rainbow arrangement if for each choice of one oriented pseudo-hyperplane per color class, h1H1,, hdHd, we have that the intersection h1hd is a single point.

Note that our arrangements differ significantly from the well-known concept of pseudo-hyperplane arrangements, where the intersection of any k pseudo-hyperplanes is required to be homeomorphic to dk. In particular, while every pseudo-hyperplane arrangement is also a generalized arrangement, the converse is not true.

The following definition of well-separation is a dual version of the notion of well-separation for point sets.

Definition 9 (Well-Separated).

A colored generalized arrangement =(H1,,Hd) in d is well-separated if for every sign vector s{+,}d, there exists a point xsd such that

  • xs lies in an unbounded cell,

  • xs lies above all oriented pseudo-hyperplanes in Hi iff si=+,

  • and xs lies below all oriented pseudo-hyperplanes in Hi iff si=,

for all i[d].

3.2 The Poincaré-Miranda Theorem

In our proof, we will use the Poincaré-Miranda theorem, which we briefly recall.

Theorem 10 (Poincaré-Miranda theorem).

Consider d continuous functions

f1,,fd:[1,1]d.

Assume that for each variable xi, the function fi is non-positive whenever xi=1 and non-negative whenever xi=1. Then there exists a point x in [1,1]d with fi(x)=0 for all i{1,,d}.

The theorem was first stated by Poincaré [21] without proof. It was later shown by Miranda [20] that it is equivalent to Brouwer’s fixed point theorem. Since then, the theorem has found numerous applications and generalizations; see, e.g., [4] and the references therein.

3.3 The Second Proof

We define the k-level of a family H of oriented pseudo-hyperplanes to be the set of points that lie (i) on at least one oriented pseudo-hyperplane of H and (ii) on or above exactly k oriented pseudo-hyperplanes of H. We are now ready to prove our generalization of the α-Ham-Sandwich theorem.

Theorem 4. [Restated, see original statement.]

Let =(H1,,Hd)d be a well-separated colored generalized arrangement where each color class Hi has size ni. Then for every (α1,,αd)[n1]××[nd], there is a point xαd lying on one and above exactly αi1 pseudo-hyperplanes of color i for all i[d]. If is additionally a rainbow arrangement, then the point xα is unique.

We prove the existence of a point xα by showing that the corresponding αi-levels intersect, see Figure 4 for an illustration. The uniqueness for rainbow arrangement additionally uses a counting argument.

Figure 4: A rainbow arrangement with colors red and blue. The red 3-level and the blue 2-level are highlighted and intersect in a unique point.

Proof.

By assumption is well-separated, so for each vector s{+,}d there is a point xs in an unbounded cell that lies above or below all oriented pseudo-hyperplanes of a color class. Consider a subset I[d] and a family of vectors s1,,sk in {+,}d for which si1==sik for all iI. Let =iIHi be the generalized arrangement consisting only of oriented pseudo-hyperplanes of color classes in I. We claim that the points xs1,,xsk lie in a common unbounded cell of . Indeed, assume for the sake of contradiction that two of the points xsi and xsj lie in different unbounded cells. Then there is an oriented pseudo-hyperplane of separating them. However, by definition, xsi and xsj must lie on the same side of any oriented pseudo-hyperplane in , a contradiction.

Now consider the cube [1,1]d. Note that each face of the cube can be encoded by a vector z in {,1,1}d, such that the face contains all vertices v of the cube such that vi=zi for all i with zi. We call such a face characterized by the set {izi}.

Next, consider the following embedding of the cube into d: Each vertex v in {1,1}d is mapped to the point xs with s{+,}d such that vi=1 if and only if si= for i[d]. Then as we already argued above, for every face of the cube characterized by a set I[d], all its vertices are in a common unbounded cell of I, so we can extend the embedding defined on the facets of a face to the entire face. After applying a homeomorphism on d that maps this embedding to the cube [1,1]dd we can thus assume that all oriented pseudo-hyperplanes of the color class Hi have the facet xi=1 on their negative side, and the facet xi=1 on their positive side.

Consider now the αi-level L of some color class Hi. We define a function fi for which fi(x)=0 if x is on L, fi(x)>0 if x is above L and fi(x)<0 if x is below L. To achieve this, set fi(x)=0 for all points x that lie on L. For all other points x, let d(x,L) denote the distance of x to L. If x is below L, we set fi(x)=d(x,L), and if x is above L, we set fi(x)=d(x,L). Since the distance is a continuous function, fi is continuous.

By construction, the functions fi satisfy the conditions of the Poincaré-Miranda theorem. We thus get that there is a point x in [1,1]d for which fi(x)=0 for all i{1,,d}. Recall that by the definition of a generalized arrangement, no point can lie on d+1 of our pseudo-hyperplanes. Thus, x is a point lying on exactly one and above exactly αi1 oriented pseudo-hyperplanes of color i for all i[d], as required.

Note that x lies on one oriented pseudo-hyperplane of each color class. If the arrangement is a rainbow arrangement, then there are only n1nd many possible locations for x. As each of these points can only be the solution for one α-vector and there are n1nd different α-vectors, it follows that for each α-vector the solution must be unique.

By the famous topological representation theorem of Folkman and Lawrence [14], Theorem 4 also has implications for oriented matroids. To explain this, we will assume familiarity with oriented matroids as presented for example in the Handbook of Discrete and Computational Geometry [22]. In particular, we consider uniform oriented matroids of rank d+1. We denote such an oriented matroid by M=(E,), where E is the ground set and {,0,+}E. Coloring E corresponds to a partition into classes (colors) as E=E1Ed. If we use c(e) to denote the color of element eE, then we take well-separation to mean that for all s{,+}d, there exists a covector v with ve=sc(e) for all eE. By applying the Folkman-Lawrence representation theorem and then Theorem 4, we thus get the following corollary in this setting.

Corollary 11 (α-Ham-Sandwich for Oriented Matroids).

Let M=(E,) be a uniform oriented matroid of rank d+1 in covector representation with {,0,+}E. Assume that M is well-separated, and in particular, E is partitioned into d classes E=E1Ed (colors). Then for every α[|E1|]××[|Ed|], there is a covector vα with exactly one zero and exactly (αi1) minuses on the subset Ei, for all i[d].

4 Generalizing Well-Separation

Using the Poincaré-Miranda theorem, we can prove an even more general statement by relaxing the definition of well-separation. (Recall the definition of a k-level of a set of oriented pseudo-hyperplanes, as defined in Section 3.3.)

Definition 12 ((β,γ)-separated).

Let =(H1,,Hd) be a colored generalized arrangement in d, where each color class Hi has size ni. Let β=(β1,,βd) and γ=(γ1,,γd) be vectors such that βi,γi[ni] and βiγi for all i[d]. The colored generalized arrangement is called (β,γ)-separated iff for every sign vector s{+,}d, there exists a point xsd such that

  • xs lies in an unbounded cell,

  • xs lies above the γi-level of Hi iff si=+,

  • and xs lies below the βi-level of Hi iff si=,

for all i[d].

Note that by setting β=(1,,1) and γ=(n1,,nd) we recover the definition of well-separated.

Theorem 13.

Let =(H1,,Hd) be a (β,γ)-separated colored generalized arrangement where each color class Hi has size ni. Then for every (α1,,αd){β1,,γ1}××{βd,,γd}, there is a point xαd lying on one and above exactly αi1 oriented pseudo-hyperplanes of color i for all i[d].

Proof.

By assumption is (β,γ)-separated, so for each vector s{+,}d there is a point xs in an unbounded cell that lies above or below all relevant levels of a color class as stated in Definition 12. As the arrangement has finitely many cells, we can place a large enough ball B that contains all the bounded cells. Observe that we can assume xs to lie outside of B. Consider a subset I[d] and a family of vectors s1,,sk for which si1==sik for all iI. Let be the union of all relevant levels, that is, the αi-levels for αi{βi,,γi}, of the color classes iI. We claim that the points xs1,,xsk lie in a common unbounded cell of . Indeed, assume for the sake of contradiction that two of the points xsi and xsj lie in different unbounded cells. Then there is a level of separating them outside of B. However, by definition, xsi and xsj must lie on the same side of any relevant level in .

We thus indeed have that all the points xs1,,xsk lie in a common unbounded cell of outside of B. Now we use the same argument as in the proof of Theorem 4. In particular, we can again find an embedding of the cube [1,1]d where each face FI characterized by a subset I[d] lies in this common unbounded cell of . After applying a homeomorphism on d that maps this embedding to the cube [1,1]dd we can thus assume that all relevant levels of the color class Hi have the facet xi=1 on their negative side, and the facet xi=1 on their positive side.

We now take the same functions fi as in the proof of Theorem 4, which satisfy the conditions of the Poincaré-Miranda theorem. We thus get that there is a point x in [1,1]d for which fi(x)=0 for all i{1,,d}.

We think that it is instructive to translate Theorem 13 back to the original setting of colored point sets in d (i.e., the primal setting). Note that in Definition 12, the condition that xs must lie in an unbounded face has technical reasons: In the proof of Theorem 13, it allows us to easily embed the cube that we need for the Poincaré-Miranda theorem. However, we can get away without this assumption in the case of (straight) hyperplanes: In that case, the k-levels are guaranteed to be connected and piecewise linear, and thus we can embed the cube without assuming that the points xs lie in unbounded faces. Therefore, when going to the primal setting, we can omit this technical assumption and define (β,γ)-separation for point sets as follows.

Definition 14.

Let 𝒫=(P1,,Pd)d be in weak general position and let β,γ[|P1|]××[|Pd|] with βiγi for all i[d] be arbitrary. We say that 𝒫 is (β,γ)-separated if for every sign vector s{+,}d, there exists a hyperplane hs such that

  • hs lies strictly above at least γi points of Pi iff si=+,

  • and hs lies above at most βi1 points of Pi iff si=,

for all i[d].

By dualizing the point set and applying Theorem 13 for the dual hyperplanes, we thus get the following corollary for (β,γ)-separated point sets.

Corollary 15.

Let 𝒫=(P1,,Pd)d be (β,γ)-separated for some β,γ[|P1|]××[|Pd|] and in general position666We require general position (no d+1 points on a common hyperplane) to ensure that the dual arrangement is indeed a generalized arrangement. However, one could easily adapt our proofs to also make this work for weak general position.. Then for every (α1,,αd){β1,,γ1}××{βd,,γd}, there exists a unique (α1,,αd)-cut.

5 Rainbow Arrangements and Bicolored Stretchability

In this section, we take a closer look at well-separated rainbow arrangements in 2, where pseudo-hyperplanes are also called pseudo-lines. Concretely, such an arrangement consists of well-separated blue and red oriented pseudo-lines such that every blue and red pseudo-line intersect (and thus cross) exactly once.

Figure 5: A well-separated rainbow arrangement in 2. Red pseudo-lines are oriented from left to right, blue pseudo-lines from top to bottom. Note that in order to intersect the blue pseudo-lines in this order, the two red pseudo-lines need to cross twice. In particular, this means that there is no combinatorially equivalent arrangement using straight lines, i.e., this is a NO-instance of bicolored stretchability.

An interesting question is whether a given rainbow arrangement can be realized using (straight) lines. In the following, we will prove that deciding this is -complete. Concretely, we prove that the following formalization of what we call bicolored stretchability is -complete.

Definition 16 (Bicolored Stretchability).

Given a combinatorial description of a well-separated rainbow arrangement in 2 (by specifying for each blue pseudo-line, the order in which it crosses the red pseudo-lines, and vice versa), bicolored stretchability is the problem of deciding whether there exists a two-colored well-separated line arrangement with the same combinatorial description.

In particular, in a YES-instance of bicolored stretchability, all colorful crossings along every line have to happen in the prescribed order.

Observe that, given an instance of bicolored stretchability and a guess for the line arrangement (specifying each line and its color), we can efficiently verify (in a real-RAM machine) whether this guess indeed describes a well-separated line arrangement that is combinatorially equivalent to the bicolored stretchability instance (well-separation can be checked e.g. by comparing the slopes of the lines). Erickson, van der Hoog, and Miltzow [13] conveniently proved that such a verification algorithm on a real-RAM machine is enough to prove membership in .

Figure 6: A YES-instance of allowable sequences. The sequence of permutations π1,,π5 can be found in the arrangement by sweeping from left to right.

In order to prove -hardness, we will provide a reduction from the -complete problem allowable sequences [17]. This problem can be formulated both in its primal form (using point sets) as well as its dual form (using line arrangements). For more details regarding this duality, see e.g., [16]. The following dual formulation will be convenient for our purpose.

Definition 17 (Allowable Sequences).

Given a sequence of permutations π1,,πk of [n], where πi+1 differs from πi by a swap of two adjacent items for all i[k1], allowable sequences is the problem of deciding whether there exists a line arrangement of n lines such that sweeping the arrangement from left to right and recording how the relative order of the lines changes yields a sequence of permutations that contains the sequence π1,,πk.

Consider now such a sequence π1,,πk of permutations of [n], i.e., an instance of allowable sequences. We build an instance of bicolored stretchability as follows: We introduce n+4 red pseudo-lines r1,r0,r1,,rn,rn+1,rn+2 and 2k blue pseudo-lines b1,,bk and b1,,bk. We call the four red lines r1,r0,rn+1,rn+2 control lines. For each i[k], we require both bi and bi to first intersect r1,r0 in order, then r1,,rn in the order of the permutation πi, and finally rn+1 and rn+2 in order. Conversely, for each i[n], we require ri to intersect the 2k blue pseudo-lines in the order b1,b1,b2,b2,,bk,bk. Finally, the control lines are specified such that

  • r1 intersects the blue pseudo-lines in the order b1,b1,,bk,bk,

  • r0 intersects the blue pseudo-lines in the order b1,b1,,bk,bk,

  • rn+1 has to first intersect b1,,bk and then b1,,bk in that order,

  • and rn+2 has to first intersect bk,,b1 and then bk,b1.

Clearly, this construction can be implemented in polynomial time and it remains to prove correctness. However, before getting to the correctness proof, we first observe that this indeed yields a combinatorial description of a rainbow arrangement.

Figure 7: An illustration of the proof of Lemma 18 with k=n=3. Concretely, r1,r0,r4,r5 are the four control lines.
Lemma 18.

There exists a well-separated rainbow arrangement with the combinatorial description described in the construction above.

Proof.

This proof is illustrated in Figure 7. We start by drawing the four control lines as straight horizontal lines in the order (top to bottom) r1,r0,rn+1,rn+2, making sure that the pairs r1,r0 and rn+1,rn+2 are relatively close to each other while there is a big gap between r0 and rn+1. Next, we place k points p1,,pk with increasing x-coordinates between r1 and r0, and we place two points q and q with increasing x-coordinates between rn+1 and rn+2. The blue lines bi and bi are then drawn as straight lines where bi goes through pi and q, and bi goes through pi and q for all i[k]. It remains to draw r1,,rn as pseudo-lines just below r0. Note that just below r0, the blue lines read as b1,b1,,bk,bk from left to right, which is what we need for our red pseudo-lines. Clearly, the red pseudo-lines can be drawn such as to ensure the proper intersections along each of the blue lines. It is not hard to see that this thus yields a well-separated rainbow arrangement.

Next, we prove that applying the construction to a YES-instance of allowable sequences yields a YES-instance of bicolored stretchability. The construction is similar to the proof of Lemma 18. The difference is that, by our assumption that we are given a YES-instance of allowable sequences, we can now ensure that all red lines are straight as well.

Lemma 19.

If the permutation π1,,πk can be realized by a line arrangement (with straight lines), then the corresponding instance of bicolored stretchability can also be realized with straight lines.

Proof.

We take the line arrangement that realizes π1,,πk and color all n lines red. Next, choose k points p1,,pk above the arrangement with increasing x-coordinates, corresponding to the permutations π1,,πk. In other words, by walking from pi vertically downward, we are guaranteed to observe the permutation πi, for all i[k]. Moreover, we ensure that we will not observe any crossing of two red lines while walking vertically downward. This means that we could even walk at a very small angle (i.e., almost vertically) and still observe the correct permutation.

Next, we choose two points q,q below the arrangement such that q is to the left of q. By moving both q and q vertically down towards negative infinity, we can guarantee that for all i[k], the straight blue line bi (or bi, respectively) drawn through pi and q (or q, respectively) observes the permutation πi. It remains to draw the control lines:

  • r1 is drawn as a horizontal line just above the points p1,,pk,

  • r0 is drawn as a horizontal line just below p1,,pk,

  • rn+1 is drawn as a horizontal line just above q,q,

  • and rn+2 is drawn horizontally just below q,q.

It remains to prove the other direction, i.e., that a realization of the constructed instance of bicolored stretchability also implies a realization of the allowable sequences instance.

Lemma 20.

Assume that given π1,,πk, the constructed instance of bicolored stretchability can be realized using straight lines. Then there also exists a straight-line realization of the allowable sequences instance π1,,πk.

Proof.

Consider the straight-line realization of the bicolored stretchability instance. By construction of the control lines r1 and r0, bi and bi have to cross at a point pi that lies above the lines r1,,rn for all i[k]. Moreover, we know that the control line rn+2 lies below the other lines and intersects the blue lines in the order bk,,b1,bk,,b1. In particular, let q be an arbitrary point on rn+2 that lies in-between b1 and bk.

Next, for each i[k], draw a new line bi′′ through pi and q. Observe that bi′′ intersects rn+2 in q, and in particular q lies between the intersections of rn+2 with bi and bi, respectively. Since bi and bi intersect r1,,rn in the same order (given by πi), so does bi′′. This means that each of the lines bi′′ observes the correct permutation, and they all pass through the same point q that lies on rn+2. Thus, we can apply a projective transformation that turns rn+2 into the line at infinity, which in turn ensures that the lines b1′′,,bk′′ are parallel. We conclude that the red lines r1,,rn after the transformation are a realization of the original allowable sequences instance.

Putting all of this together, we conclude that bicolored stretchability is indeed -complete.

Theorem 21.

Bicolored stretchability is -complete.

Proof.

We argued that it is contained in by using the verification-approach in [13]. -hardness follows from our reduction from allowable sequences above, where correctness follows from combining Lemma 19 and Lemma 20.

Certainly, Theorem 21 also implies -hardness for the realizability problem of more general two-colored rainbow arrangements (that are not necessarily well-separated). Concretely, this also implies that realizability of bicolored order types (that were studied in, e.g., [2]) is -hard. However, the well-separation condition is useful for us, as it allows us to also conclude that realizability of grid USO777A grid USO is called realizable if it is induced by an instance of the P-Matrix Generalized Linear Complementarity Problem (PGLCP). We do not elaborate on the details of realizability of grid USOs here and instead rely on prior work that establishes the appropriate connection with hyperplane arrangements [10]. is -complete.

Corollary 22.

Deciding whether a given grid USO is realizable is -complete, even in two dimensions.

Proof.

Note that containment in follows again by giving a real-RAM verifier, and we will not go into the details of this. Instead, we explain why USO realizability is -hard based on prior work: It was proven in [10] that realizable grid USOs correspond to well-separated hyperplane arrangements. This allows us to reduce bicolored stretchability to realizability of two-dimensional grid USO: Given the well-separated rainbow arrangement, construct the orientation as described in Section 2. This must yield a two-dimensional grid USO. If this grid USO is realizable, then by [10] there exists a well-separated line arrangement corresponding to this grid USO, which hence must have the same combinatorial description as the initial well-separated rainbow arrangement. Conversely, any well-separated line arrangement with the same combinatorial information implies that the constructed orientation is realizable.

References

  • [1] Oswin Aichholzer, Nieves Atienza, José M. Díaz-Báñez, Ruy Fabila-Monroy, David Flores-Peñaloza, Pablo Pérez-Lantero, Birgit Vogtenhuber, and Jorge Urrutia. Computing balanced islands in two colored point sets in the plane. Information Processing Letters, 135:28–32, July 2018. doi:10.1016/j.ipl.2018.02.008.
  • [2] Oswin Aichholzer and Anna Brötzner. Bicolored Order Types. Computing in Geometry and Topology, 3(2):3:1–3:17, 2024. doi:10.57717/cgt.v3i2.46.
  • [3] Arseniy Akopyan and Roman N. Karasev. Cutting the Same Fraction of Several Measures. Discrete & Computational Geometry, 49(2):402–410, March 2013. doi:10.1007/s00454-012-9450-4.
  • [4] David Ariza-Ruiz, Jesús Garcia-Falset, and Simeon Reich. The Bolzano-Poincaré-Miranda theorem in infinite-dimensional Banach spaces. J. Fixed Point Theory Appl., 21(2):Paper No. 59, 12, 2019. doi:10.1007/s11784-019-0701-3.
  • [5] Imre Bárány, Alfredo Hubard, and Jesús Jerónimo. Slicing Convex Sets and Measures by a Hyperplane. Discrete & Computational Geometry, 39(1):67–75, 2008. doi:10.1007/s00454-007-9021-2.
  • [6] Imre Bárány and Jiří Matoušek. Equipartition of two measures by a 4-fan. Discrete & Computational Geometry, 27(3):293–301, 2002. doi:10.1007/S00454-001-0071-6.
  • [7] Luis Barba, Alexander Pilz, and Patrick Schnider. Sharing a pizza: bisecting masses with two cuts. arXiv preprint arXiv:1904.02502, 2019. arXiv:1904.02502.
  • [8] Pavle V. M. Blagojević and Aleksandra Dimitrijević Blagojević. Using equivariant obstruction theory in combinatorial geometry. Topology and its Applications, 154(14):2635–2655, 2007. doi:10.1016/j.topol.2007.04.007.
  • [9] Pavle V. M. Blagojević, Aleksandra Dimitrijević Blagojević, Roman Karasev, and Jonathan Kliem. More bisections by hyperplane arrangements. Discrete Comput. Geom., 67(1):33–64, 2022. doi:10.1007/s00454-021-00337-w.
  • [10] Michaela Borzechowski, John Fearnley, Spencer Gordon, Rahul Savani, Patrick Schnider, and Simon Weber. Two Choices Are Enough for P-LCPs, USOs, and Colorful Tangents. In 51st International Colloquium on Automata, Languages, and Programming (ICALP 2024), volume 297, pages 32:1–32:18, Dagstuhl, Germany, 2024. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ICALP.2024.32.
  • [11] Michaela Borzechowski, Sebastian Haslebacher, Hung P. Hoang, Patrick Schnider, and Simon Weber. Splitting sandwiches unevenly via unique sink orientations and rainbow arrangements, 2026. arXiv:2602.10795.
  • [12] Herbert Edelsbrunner. Algorithms in Combinatorial Geometry. Springer-Verlag New York, Inc., New York, NY, USA, 1987.
  • [13] Jeff Erickson, Ivor van der Hoog, and Tillmann Miltzow. Smoothing the Gap Between NP and ER. SIAM Journal on Computing, 53(6):FOCS20–102, 2024. doi:10.1137/20M1385287.
  • [14] Jon Folkman and Jim Lawrence. Oriented matroids. Journal of Combinatorial Theory, Series B, 25(2):199–236, 1978. doi:10.1016/0095-8956(78)90039-4.
  • [15] Bernd Gärtner, Walter D. Morris jr., and Leo Rüst. Unique sink orientations of grids. Algorithmica, 51(2):200–235, 2008. doi:10.1007/s00453-007-9090-x.
  • [16] Jacob E. Goodman and Richard Pollack. Allowable Sequences and Order Types in Discrete and Computational Geometry. In New Trends in Discrete and Computational Geometry, pages 103–134. Springer, Berlin, Heidelberg, 1993. doi:10.1007/978-3-642-58043-7_6.
  • [17] Udo Hoffmann and Keno Merckx. A universality theorem for allowable sequences with applications. doi:10.48550/arXiv.1801.05992.
  • [18] Alfredo Hubard and Roman Karasev. Bisecting measures with hyperplane arrangements. Mathematical Proceedings of the Cambridge Philosophical Society, 169(3):639–647, 2019. doi:10.1017/S0305004119000380.
  • [19] Alfredo Hubard and Pablo Soberón. Bisecting masses with families of parallel hyperplanes. arXiv preprint arXiv:2404.14320, 2024.
  • [20] Carlo Miranda. Un’osservazione su un teorema di Brouwer. Boll. Un. Mat. Ital. (2), 3:5–7, 1940.
  • [21] Henri Poincaré. Sur certaines solutions particulières du problème des trois corps. Bulletin astronomique, Observatoire de Paris, 1(1):65–74, 1884. doi:10.3406/bastr.1884.9762.
  • [22] Jürgen Richter-Gebert and Günter M. Ziegler. Oriented matroids. In Handbook of Discrete and Computational Geometry, pages 111–132. CRC Press, Inc., USA, 1997.
  • [23] Edgardo Roldán-Pensado and Pablo Soberón. A survey of mass partitions. Bull. Amer. Math. Soc. (N.S.), 59(2):227–267, 2022. doi:10.1090/bull/1725.
  • [24] Patrick Schnider. Equipartitions with wedges and cones. arXiv preprint arXiv:1910.13352, 2019. arXiv:1910.13352.
  • [25] Patrick Schnider. The Complexity of Sharing a Pizza. In 32nd International Symposium on Algorithms and Computation (ISAAC 2021), volume 212, pages 13:1–13:15, Dagstuhl, Germany, 2021. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ISAAC.2021.13.
  • [26] Patrick Schnider and Pablo Soberón. Cookie cutters: Bisections with fixed shapes. Advances in Applied Mathematics, 171:102957, 2025. doi:10.1016/j.aam.2025.102957.
  • [27] Pablo Soberón and Yuki Takahashi. Lifting Methods in Mass Partition Problems. International Mathematics Research Notices, 2023(16):14103–14130, 2023. doi:10.1093/imrn/rnac224.
  • [28] William Steiger and Jihui Zhao. Generalized Ham-Sandwich Cuts. Discrete & Computational Geometry, 44(3):535–545, 2010. doi:10.1007/s00454-009-9225-8.
  • [29] Alan Stickney and Layne Watson. Digraph models of Bard-type algorithms for the linear complementarity problem. Mathematics of Operations Research, 3(4):322–333, 1978. doi:10.1287/MOOR.3.4.322.
  • [30] A. H. Stone and J. W. Tukey. Generalized “sandwich” theorems. Duke Math. J., 9(2):356–359, June 1942. doi:10.1215/S0012-7094-42-00925-6.
  • [31] Tibor Szabó and Emo Welzl. Unique sink orientations of cubes. In Proceedings of the 42nd IEEE Symposium on Foundations of Computer Science, pages 547–555, 2001. doi:10.1109/SFCS.2001.959931.