The Hairy Ball Problem is PPAD-Complete
Paul W. Goldberg, Alexandros Hollender
Introduction
The Hairy Ball Theorem (HBT) is a well-known topological theorem stating that there is no non-vanishing continuous tangent vector field on an even-dimensional -sphere. It has various informal statements such as “you can’t comb a hairy ball flat without creating a cowlick”https://en.wikipedia.org/wiki/Hairy_ball_theorem, or “there is a point on the surface of the earth with zero horizontal wind velocity”. The HBT is superficially reminiscent of the Borsuk-Ulam Theorem, stating that given any continuous mapping from the 2-sphere to the plane, there are two antipodal points that map to the same value. (Informally, “there are two antipodal points on the surface of the earth where the temperature and pressure are the same”). As we shall see, the present paper highlights a fundamental difference between the two, in terms of the complexity class naturally associated with each of them.
The HBT was first proved in 1885 by Poincaré for the case . The theorem as stated for all even was proved in 1912 by Brouwer . Accordingly, this result is sometimes also called the Poincaré-Brouwer theorem. In fact, the result proved by Poincaré is stronger than stated above. It follows from it that for any (sufficiently well-behaved) 2-dimensional manifold with genus , any continuous tangent vector field must have a zero. In particular, this means that the HBT also holds for the torus of genus for , i.e. the 2-dimensional torus with holes. It is easy to see that it does not hold for the standard single-hole torus.
Over the years, various papers in the American Mathematical Monthly have presented alternative proofs of the Hairy Ball Theorem and variants, for example .
Topological existence results (such as the HBT, Borsuk-Ulam, and the Brouwer and Banach fixpoint theorems) have a very interesting relationship with complexity classes of search problems in which any instance has a guaranteed solution. Any such theorem has a corresponding computational challenge, of searching for such a solution, given a circuit that computes an appropriate function. The assumption that these complexity classes are distinct from each other (the ones of main interest here being PPAD and PPA, discussed below in more detail) provides a taxonomy of these theorems. Our results highlight a fundamental distinction between the HBT and Borsuk-Ulam, by showing that the corresponding search problem for the HBT is characterised by the complexity class PPAD, in contrast to Borsuk-Ulam, which is characterised by PPA . The complexity-theoretic analysis of topological search problems provides a well-defined sense in which the HBT is “Brouwer-like” rather than “Borsuk-Ulam-like”. It has previously been noted that the HBT may be used to prove Brouwer’s fixed point theorem , but not the other way around. Indeed, the existing proof of HBT using Sperner’s Lemma actually uses a generalisation of Sperner’s Lemma, which was not known to be equivalent to Brouwer’s fixed point theorem prior to our work.
The complexity class TFNP is the set of all total function computation problems in NP: functions where every input has an efficiently-checkable solution (in Section 2.2 we give a precise definition). Many problems in TFNP appear to be computationally difficult, notably Factoring, the problem of computing a prime factorisation of a given number, also Nash, the problem of computing a Nash equilibrium of a game. However, such problems are unlikely to be NP-hard, due to the 1991 result of Megiddo and Papadimitriou showing that TFNP problems cannot be NP-hard unless NP is equal to co-NP. This basic fact, that hard TFNP problems are in a very strong sense “NP-intermediate”, provides TFNP’s strong theoretical appeal. This has led to the classification of these problems in terms of certain syntactic subclasses of TFNP, whose problems are shown to be total due to some basic combinatorial principle. The best-known of these classes are PLS, PPP, PPAD, and PPA, identified by Papadimitriou in 1994 .
PPAD consists of problems whose totality is based on the principle that given a source in a directed graph whose vertices have in-degree and out-degree at most 1, there exists another degree-1 vertex. Its canonical problem End-of-Line consists of an exponentially-large graph of this kind, presented concisely via a circuit.
PPA differs from PPAD in that the graph need not be directed; being a more general principle, PPA is thus a superset of PPAD. Its canonical problem Leaf is similar, only the graph is undirected.
Subsequently, many TFNP problems of interest were shown PPAD-complete , while more recently others were shown PPA-complete . Despite their similar definitions, PPAD and PPA are usually conjectured to be different, and (along with other syntactic TFNP subclasses) are separated by oracles .
2 Our results and their significance
Given the long-standing interest in the Hairy Ball Theorem, it is natural to study the corresponding computational search problem. In this paper, we prove that computing an approximate zero of a Hairy Ball vector field is PPAD-complete. While many PPAD-completeness results already exist, a noteworthy novelty of our results is that we find that computing HBT solutions corresponds with multiple-source variants of the End-of-Line problem: given a large directed graph implicitly represented by a circuit, suppose you are shown several sources and told to find another degree-1 vertex. This is in contrast with previous PPAD-complete problems that naturally reduce to standard single-source End-of-Line.
In Section 8 we prove that these multiple-source End-of-Line variants are PPAD-complete (membership of PPAD being the tricky aspect). Our results make progress on the general question (studied in ) of whether there exist combinatorial principles indicating totality of search problems, that are fundamentally different from the known ones that give rise to complexity classes such as PPAD. In particular, in Section 8.2, we note that a proof of PPAD-completeness for the Imbalance problem by Beame et al. is incomplete and provide a full proof using our results.
The generalisation of Poincaré’s result to higher dimensions is called the Poincaré-Hopf theorem (see e.g. ). This theorem relates the number and types of zeros of a vector field on a manifold with its Euler characteristic, a topological invariant. In particular, if the Euler characteristic of a manifold is not , then any continuous tangent vector field on the surface must have a zero. The Euler characteristic of even-dimensional spheres is , while it is for 2-dimensional toruses of genus . For odd-dimensional spheres it is .
We believe that the reduction to multiple-source End-of-Line is not an artefact of our techniques, but instead intrinsically related to the Euler characteristic of the domain. Indeed, the reduction from the HBT problem on even-dimensional spheres to End-of-Line yields sources (Section 4). On the other hand, if we consider the HBT problem on the 2-dimensional torus of genus , then we obtain sources (Section 7). The connection between HBT and directed graph problems has previously only appeared in a proof for the 2-dimensional sphere case .
Finally, we note that PPAD-hardness is obtained by constructing a HBT vector field from multiple copies of a discrete Brouwer fixpoint problem. The usage of multiple copies is a new conceptual feature, closely related to the multi-source aspect. Using the same high-level idea, we also provide a FIXP-hardness result for the problem of computing an exact solution (Section 5.2).
3 Other related work
Banach’s Fixed Point Theorem says that a contraction map has a unique fixpoint. Its corresponding computational problem Contraction, is to find a fixed point of a given contraction map. Some versions of Contraction have been shown complete for CLS, a subclassA very recent result shows that, in fact, CLS = PPAD PLS. of PPAD . The search for Brouwer fixpoints (including discretised versions of Brouwer functions) is PPAD-complete for most variants of the problem , which is why we say the HBT is “Brouwer-like”. Finally — in contrast — the computational problem of searching for a Borsuk-Ulam solution is PPA-complete . Other topological existence results that have PPA-complete search problems include the Hobby-Rice theorem and the Ham Sandwich Theorem .
4 Future research directions
We have obtained a satisfying answer to the question of the computational complexity of the Hairy Ball Theorem, if we are looking for an approximate solution. For other solution concepts related to exact solutions, we have provided a FIXP-hardness result. This leaves open the question of whether the problem is FIXP-complete in this case. A first step in that direction would be to try to reduce Hairy Ball to Borsuk-Ulam, even though no such (fully constructive) mathematical proof seems to be known.
Our reduction from approximate Hairy Ball to approximate Brouwer cannot be used on the exact versions of these problems, because the step where we reduce from multi-source End-of-Line to standard End-of-Line corresponds to a discontinuous mapping between the corresponding topological structures. This raises the question of whether continuous mappings are an important subclass of reductions and motivates further study on this topic.
Our results on multiple-source variants of the End-of-Line problem open the way for two new research directions. First, they provide a new tool for showing membership of PPAD, which can be used to put further problems in this class. It seems very unlikely that the Hairy Ball Theorem should be the only “natural” application of these results. Furthermore, a second interesting research direction is investigating the complexity of End-of-Line with a super-polynomial number of known sources (implicitly given in the input).
Preliminaries
We work in the standard Turing machine model. All numbers appearing in computations are rational numbers where the numerator and denominator are integers represented in binary. For a rational number , denotes the size of the representation of , i.e. the sum of the representation length of its numerator and denominator in binary. For an arithmetic circuit , denotes the number of gates in the circuit added to the representation length of any rational constants used by the circuit.
2 Formal definition of TFNP
A computational search problem is given by a binary relation , interpreted as follows: is a solution to instance , if and only if . The search problem is in FNP (Functions in NP), if is polynomial-time computable (i.e. can be decided in polynomial time in ) and there exists some polynomial such that . Here denotes all finite length bit-strings and is the length of bit-string .
The class TFNP (Total Functions in NP ) contains all search problems that are in FNP and are total, i.e. every instance has at least one solution. Formally, this corresponds to requiring that for every there exists such that .
Let and be total search problems in TFNP. We say that (many-one) reduces to , if there exist polynomial-time computable functions such that
Note that if is polynomial-time solvable, then so is . We say that two problems and are (polynomial-time) equivalent, if reduces to and reduces to .
3 The End-of-Line problem
To be PPAD-complete, a problem must be equivalent to End-of-Line. The End-of-Line problem is informally defined as follows: given a directed graph where each vertex has in- and out-degree at most and given a known source of this graph, find a sink or another source. The problem is computationally challenging, because the graph is not given explicitly in the input. Instead, we are given an implicit concise representation of the graph through circuits that compute the predecessor and successor of a vertex in the graph. In what follows, we sometimes interpret the input and output of the circuits, which are elements in , as the numbers .
The End-of-Line problem is defined as: given Boolean circuits with input bits and output bits and such that , find such that or .
The circuits define a graph as follows. There is a directed edge from vertex to (), if and only if and . Note that any badly defined edge, i.e. and , or and , qualifies as a solution of End-of-Line as defined above (because or respectively). Note that is a source of the graph, unless , in which case is a valid solution to the problem as stated above.
It is easy to check that this formal definition of the problem is computationally equivalent to the informal description given above. By definition, End-of-Line is PPAD-complete . Furthermore, reduction from End-of-Line is a very common technique to show PPAD-hardness (e.g. ). In Section 8 we show that the multiple-source version MS-EoL (Definition 9) is equivalent to End-of-Line.
The Hairy-Ball Problem
The Hairy Ball Theorem naturally yields a corresponding computational problem. We are given a continuous tangent vector field on the unit sphere and have to find a point where it is zero. In trying to formalise this, some issues need to be addressed. First, one has to decide how the vector field should be represented in the input. Here we take the usual approach of assuming that it is represented as an arithmetic circuit.
Before we discuss the types of gates that we want to allow in the circuit, let us briefly handle the second issue: the vector field might not have a rational zero. Indeed, consider the following example: at the vector field is simply the vector projected onto the tangent space of at . In this case, the only solutions are . Thus, we cannot hope to always output an exact solution. We bypass this problem by asking for an approximate solution instead, i.e. a point such that for some provided in the input. This notion of approximate solution is the standard one used when studying topological existence theorems in the context of TFNP (e.g. Brouwer’s fixed point theorem or the Borsuk-Ulam theorem).
As mentioned above, the vector field will be represented as an arithmetic circuit. In the case of , the circuit will have three input gates and three output gates. The arithmetic circuit will be allowed to use gates and rational constants. All the gates have fan-in 2, except which has fan-in 1 and corresponds to multiplication by a rational constant . Note that such a circuit is polynomially equivalent to a circuit only using gates and rational constants, since the other gates can be efficiently simulated using these. These circuits correspond to LINEAR-FIXP-type circuits that are known to be sufficient to obtain PPAD-hardness of Brouwer . A discussion about why we don’t use more powerful gates in our definition can be found in the next section.
This type of circuit yields piece-wise affine functions that are continuous. Furthermore, it has the following nice property: for any such arithmetic circuit , and any rational , we can compute exactly in polynomial time in and . One potential issue is that might not be tangent to the sphere, but this is easy to fix by simply considering the vector field given by the projection of onto the corresponding tangent space to the sphere. Thus, we define the computational problem as follows:
Let be even. The D-Hairy-Ball problem is defined as: given and an arithmetic circuit with inputs and outputs, using gates and rational constants, find such that .
D-Hairy-Ball lies in TFNP. Clearly, any solution can be checked in polynomial time. Totality of D-Hairy-Ball will immediately follow when we prove that it lies in PPAD (Corollary 5).
It is easy to see that if functions and are - and -Lipschitz respectively, then is -Lipschitz and is -Lipschitz. Since any rational constant used in has absolute value bounded by , it follows that is -Lipschitz. Using the fact that each input gate corresponds to a -Lipschitz function, it follows that must be -Lipschitz.
Using the same kind of argument it is easy to show that for we always have . Using the fact that is -Lipschitz and the definition , we obtain that is Lipschitz-continuous on with constant . ∎
Our main result is Theorem 3. Containment in PPAD, which turns out to be the most challenging part of this result, is presented in Section 4 (using the multiple-source End-of-Line results of Section 8). PPAD-hardness is presented in Section 5.
For all even , D-Hairy-Ball is PPAD-complete.
2 About the power of the arithmetic circuit
The main disadvantage of defining D-Hairy-Ball as in Definition 2 is that the type of circuit used seems quite restrictive. Clearly, it would be natural to also allow -gates that compute the product of two intermediate outputs (as opposed to just multiplication by a fixed constant). Unfortunately, allowing the -gate leads to technical complications in the definition of the problem because of repeated squaring (see below). These technicalities would make Definition 2 more cumbersome and less intuitive overall. In the interest of simplicity and clarity of exposition we have thus decided to use the simpler definition that only allows gates.
From the standpoint of computational complexity, this restriction turns out to be irrelevant. Indeed, in Section 4 we prove that a very abstract formulation of the Hairy-Ball problem lies in PPAD. Namely, we only require that the tangent vector field be polynomially computable and polynomially continuous (Definition 3). These two assumptions are very natural and desirable in any TFNP-style definition of the problem. In particular, properly defining the problem with the additional -gates would also yield a problem that lies in PPAD. Furthermore, in Section 5 we prove that D-Hairy-Ball is PPAD-hard. It immediately follows that formulations with more powerful circuits are also PPAD-hard. Thus, it turns out that allowing -gates yields a problem that is polynomially equivalent to this more restricted version that we use.
Before we close this section, we give some details about the complication that arises when allowing the -gates and how this can be circumvented in order to define a TFNP-problem. The main issue is that if the circuit is allowed to use -gates, then we might not be able to evaluate the function it represents efficiently. For example, consider the arithmetic circuit that does repeated squaring, i.e. it has a sequence of -gates that multiply the output of the previous gate by itself. On input , this circuit outputs , which is doubly exponential in the size of the circuit and input to the circuit. Even putting aside the fact that we cannot efficiently represent this number in our model, this also causes the Lipschitz-constant to be doubly exponential. In order to solve this we can enforce an upper bound on all computations of the circuit. This means that every gate would have an output in . would have representation size polynomial in the size of the circuit. Without loss of generality we can take . However, we still might not be able to compute the output of the (bounded) circuit exactly. Indeed, the same circuit as earlier, on input , would output . We would need an exponential (w.r.t. the number of bits of the input and the size of the circuit) number of bits to represent this.
One nice property of this kind of circuit is that the condition that be tangential to can be enforced syntactically. Indeed, we can extend the circuit to output , instead of . Some care is required here, because the computations of the circuit are bounded in $F(x)1/k\varepsilon/k\varepsilon$. Thus, we could always assume that the circuit given in the input describes a tangential vector field on the sphere.
As mentioned above, we do not use this kind of circuit because it introduces unnecessary complications and clutter.Another more elegant option would be to consider well-behaved circuits, as defined in . However, a closer inspection of the proof of Theorem 4 yields that this problem also lies in PPAD and thus turns out to be equivalent to D-Hairy-Ball.
The Hairy-Ball Problem is in PPAD
In this section we present our main result: the problem of computing an approximate Hairy Ball solution reduces to End-of-Line, the canonical PPAD-complete problem.
From a purely mathematical standpoint, our proof can be used to provide a (fairly cumbersome) proof of the Hairy Ball theorem by using Brouwer’s fixed point theorem. Indeed, it is known that End-of-Line reduces to Brouwer (in fact, even 2D-Brouwer ). Thus, given a Hairy Ball function , using our reduction and Brouwer’s fixed point theorem, one can prove the existence of a point such that for any (using the fact that must be uniformly continuous since the sphere is compact). Then, since any sequence in a compact set must have a converging subsequence it follows that there must exist such that . Finding a more direct way to deduce the Hairy Ball theorem from Brouwer’s fixed point theorem is an interesting open question.
Our goal is to prove that the Hairy Ball problem lies in PPAD in a setting that is as general and encompassing as possible. The way the function is represented, as a circuit or otherwise, should not play a role. Thus, we are only going to make two assumptions about the tangent vector field: that it can be evaluated in polynomial time and that it is polynomially continuous in some well-defined sense. The first assumption is very natural: if we are given a Hairy Ball function, we expect to be able to evaluate it efficiently. The motivation for the second assumption is that if we omit it, then there is no guarantee that there will exist an approximate solution with representation size that is polynomial in the input size.
Let be a class of Hairy Ball functions.
is polynomially computable, if there exists some polynomial such that for any and any rational input , can be computed in time .
is polynomially continuous, if there exists some polynomial such that for any and any rational , there exists a rational with such that for all we have .
Note that D-Hairy-Ball yields a class that is both polynomially computable and polynomially continuous (by Lemma 2).
Let be a class of Hairy Ball functions. The problem Hairy-Ball() is defined as: given and , find such that .
For simplicity we assume that we can recognise whether some string in represents an element in polynomial time. If this does not hold, then Hairy-Ball() has to be studied as a promise problem. The reduction to End-of-Line given in the proof below still holds. However, this does not imply that the problem lies in PPAD, because TFNP requires the problem to be total without any promise.
2 The general problem lies in PPAD
Let be a class of Hairy Ball functions that is polynomially computable and polynomially continuous. Then, Hairy-Ball() lies in PPAD.
For all even , D-Hairy-Ball lies in PPAD.
The proof can be subdivided into two parts. In the first part, we reduce D-Hairy-Ball to a 2-source End-of-Line problem. In the second part, we show that the 2-source version reduces to the standard version of End-of-Line, where a single source is known. Surprisingly, the reduction from 2 sources to 1 is non-trivial. The proof for this is presented separately in Section 8. In fact, we prove the more general result: as long as the number of known sources in an End-of-Line instance is polynomial, we can reduce to standard End-of-Line. Various implications of this result are also presented in Section 8.
We now give some details about the first part of the proof, in which we reduce D-Hairy-Ball to 2-source End-of-Line through a Sperner argument. The inspiration for this comes from a proof of the 2-dimensional Hairy Ball Theorem via a generalisation of Sperner’s Lemma, given by Jarvis and Tanton . Our contribution here is two-fold: we extend their proof to any higher (even) dimension and we turn it into a polynomial-time reduction. Even though Sperner’s Lemma is known to be PPAD-complete , this result does not apply to the general version of Sperner’s Lemma that is used here. Indeed, by using standard techniques, this general version can only be reduced to a 2-source instance of End-of-Line. This is why we then require our technical results about multiple-source End-of-Line from Section 8.
where indicates the th coordinate for . It is straightforward to check that are continuous tangent vector fields that yield an orthonormal basis of the tangent space of at every .
Continuity of . Clearly, is continuous. Moreover, since is polynomially continuous, we can extend this to in the following sense.
First, let us prove a bound on for all . Let be such that if . Recall that is polynomially bounded in . Since is continuous on the sphere , there exists some such that . The arc distance between and is at most and we pick points along the arc such that and . We can take (assuming ). Then, we have
Note that for all , is Lipschitz-continuous with a Lipschitz constant of the form for some constant ( is enough). This can be checked by direct computation. Recalling that is short for , the fact that is -Lipschitz and is polynomially continuous, the claim then follows. ∎
Pick so that implies
By 1, it is possible to pick such with .
Let the -fine -simplex be panchromatic. Since for all , there exists such that . However, it must hold that and thus . Since , it follows by (2) that , i.e. yields a solution. ∎
Intuitively, we want to pick a -fine triangulation of the ball and construct a directed graph on the triangles. There is a directed edge between two triangles if they share a facet coloured and the edge is directed such that it crosses the facet with the colour on its left-hand side and the colour is on its right-hand side. Then, because of the structure of the colouring on the boundary, we obtain two known sources and any sink or other source of this directed graph corresponds to a panchromatic simplex, i.e. a solution.
This intuition is formalised in the following lemma, which is proved below.
By Theorem 14 in Section 8 it then follows that the problem lies in PPAD, which concludes the proof of Theorem 4. ∎
In order to investigate the colouring, we first prove some properties of an ideal colouring that we define below and then show that the actual colouring is “close” enough to the ideal colouring and also satisfies these properties.
The following properties of are easy to check by direct computation.
If , then or .
The ideal colouring is “close” to the actual colouring. We now show that if is sufficiently large, then the ideal colouring is very close to the actual colouring. Namely, we will show that is almost equal to , a “normalisation” of defined by , where . Note that and yield the exact same colour for any .
Since is polynomially continuous, there exists such that with . Using the definition of it is easy to check that . Thus, we can construct with such that for all with .
Let denote the colour-direction obtained at if we use , instead of , i.e. . Then, for all with , we have
Recalling that and using equation (1) and the definition of , we can write for all
We obtain that for any with
where we used (3), and . ∎
The unit cross-polytope can be triangulated efficiently by using a standard efficient triangulation of the -simplex (see e.g. ) and then extending it to the rest of the cross-polytope by mirroring along each axis. Thus, using a -fine efficient triangulation of the simplex, extending it to the cross-polytope and then scaling to , yields an efficient -fine triangulation of . We call this triangulation . In particular, given a simplex of and one of its facets, we can compute the other simplex of that shares this facet in polynomial time (or decide that it does not exist, if the facet lies on the boundary of ). Note that is polynomial in the size of the input.
The restriction of the triangulation to does not contain any -simplex coloured (in the actual colouring).
Let be a -fine -simplex on such that has colour . By 3 (Item 3) it suffices to show that for all . Note that since , it follows by (2)
since and .
Orientation of and . The following simple observation is crucial.
The -simplices and have the same orientation with respect to the Sperner boundary conditions.
This is the only point in the proof where we use the fact that is even. However, it is indeed crucial, since this ensures that the two ends of line that we know are both sources (or both sinks), as we will see below. If is odd, our reduction yields an instance with a known source and sink. In this case, there is no guarantee that a solution – another end of line – even exists.
2-source End-of-Line. We now explain how the problem of finding a panchromatic -simplex in the triangulation of reduces to a 2-source End-of-Line problem. Let us briefly recall how a standard -dimensional Sperner instance reduces to End-of-Line. A fully detailed and formal presentation of this is given in [15, Proposition 2.2]. In the standard -dimensional Sperner problem, we have a big -simplex triangulated into -simplices and a colouring that satisfies the Sperner boundary conditions. The End-of-Line graph is constructed as follows. Every -simplex of the triangulation is a node in the graph. There is an edge between two nodes if the corresponding -simplices have a common facet coloured (called a door-facet). The edge is directed by considering the orientation of the -simplices with respect to the common facet. This yields an End-of-Line graph where every degree-1 node is either a panchromatic -simplex or a -simplex that has a door-facet lying on the boundary of the instance, i.e. on the boundary of the big -simplex. Note that all the door-facets lying on the boundary of the instance lie on the -facet of the big -simplex. In order to obtain a single source, there are various standard tricks, see e.g. [33, Chapter 4]. If we use the so-called “artificial start” trick, then as shown in , we obtain a slightly larger Sperner instance that has a single door-facet “exposed” to the outside, i.e. lying on the boundary of the instance.
We can use these standard techniques on our problem. The boundary of our instance is . By 6, all door-facets on the boundary are contained in or . By applying the trick mentioned above on (interpreted as a facet of a -dimensional Sperner instance) we obtain a single door-facet that is “exposed” in this whole region. Applying the exact same trick on also yields a single door-facet that is “exposed” in this whole region. Thus, overall we only have two door-facets that lie on the boundary of our instance. Fig. 2 shows how the “artificial start” trick is used on a 2-dimensional example.
Finally, the important observation here is that the orientation of the “exposed” door-facet obtained by using the trick only depends on the orientation of the big facet on which it is used. Since and have the same orientation (7), the two “exposed” door-facets have the same orientation. This means that we have two “entrances” for the standard Sperner path-following algorithm. By applying the formal arguments in the reduction from Sperner to End-of-Line this yields a two-source End-of-Line instance. ∎
Computational Hardness for Hairy Ball Problems
By making this idea fully constructive and efficient, we obtain reductions from Brouwer problems to Hairy Ball problems. Thus, existing PPAD- and FIXP-hardness results for Brouwer also hold for the corresponding Hairy Ball problems. We note that these reductions always involve using two copies of a Brouwer instance to obtain a single Hairy Ball instance. This further supports our claim that the fact that we obtain two sources when reducing D-Hairy-Ball to End-of-Line (Section 4) is not an artefact of our reduction, but intrinsic to the problem.
For all even , D-Hairy-Ball is PPAD-hard.
Note that this result is particularly strong, because the type of circuit allowed in the definition of D-Hairy-Ball (Definition 2) is particularly weak. Furthermore, the hardness is proved for inversely exponential (where is the Lipschitz constant of the function), which is the best we can hope for in the fixed dimension case. Indeed, if is inversely polynomial, then the following is a polynomial time algorithm that solves the problem: divide the domain into a sufficiently small (but polynomial) number of regions and check an arbitrary point in each region.
Our reduction essentially shows that some hardness results known for the Brouwer problem also hold for the Hairy Ball problem. One direction that we do not explore here is the hardness of approximation when the dimension is not fixed. It seems quite likely that the problem should be hard even for constant in that case, since this is known to hold for the Brouwer problem .
One way to prove this result is to take an instance of a 2D-Brouwer problem, which is known to be PPAD-complete , and embed a copy and a copy on the south and north hemisphere of respectively. However, since our D-Hairy-Ball circuit can only use gates in , we first shrink the domain of so that we embed it in a small region around the south pole. This ensures that even after projection onto the tangent space, no bogus solutions will appear. We do the same for in the north pole and then define on the rest of the sphere in such a way that no solution appears there.
In spirit, we follow this general proof idea, but take a slight detour, because it gives us the chance to define and study a discrete analog to D-Hairy-Ball: the D-Hairy-Cube problem. Intuitively, this problem is obtained from D-Hairy-Ball the same way that discrete 2D-Brouwer is obtained from continuous 2D-Brouwer. The domain is discretised by a grid and a circuit computes the local direction of the function in every grid-square. The natural way to discretise the sphere is to replace it by a cube with a grid on each face. The advantage of D-Hairy-Cube is that PPAD-hardness is easy to prove: just put a (slightly modified) discrete 2D-Brouwer instance on one face, and the inverse instance on the opposite face. Defining the instance on the remaining faces is trivial in this case. Section 6 defines the problem and proves PPAD-hardness.
The next step is reducing D-Hairy-Cube to D-Hairy-Ball. Even though it seems natural that this should hold, the reduction is technically tedious. In particular, we have to simulate a Boolean circuit using an arithmetic circuit, but the input bits cannot always be computed exactly. Thus, we need to use an averaging trick (see ). The details are in Appendix A.
This yields PPAD-hardness for D-Hairy-Ball. The final step is to extend this to D-Hairy-Ball, by showing that D-Hairy-Ball reduces to D-Hairy-Ball. The proof can be found in Appendix B. ∎
2 FIXP-hardness
Up to this point we have only considered the problem of computing an approximate Hairy Ball solution. However, there are other computational problems one could consider, e.g. computing a point that is close to an exact solution, or computing the first bits of an exact solution.
The corresponding problems for Brouwer fixed points have been studied by Etessami and Yannakakis . In particular, they define the class FIXP that captures the complexity of computing an exact fixed point of a function given by an arithmetic circuit and mapping the unit cube into itself. They prove that computing an exact Nash equilibrium of a 3-player game is FIXP-complete. In doing so, they use a special type of reduction, called an SL-reduction, that ensures that the reduction also holds for three problems that can be studied in the standard Turing machine model: the “strong approximation problem” (i.e. find a point close to an exact solution), the “partial computation” problem (i.e. compute the first bits of an exact solution) and various decision problems. This means that computing a strong approximation for 3-player Nash is as hard as computing a strong approximation of a Brouwer function given by an arithmetic circuit. We prove that the corresponding problems for the Hairy Ball Theorem are at least as hard as their Brouwer counterparts. For the formal definition of the class FIXP, see [15, p. 2570, Lemma 4.1, Theorem 4.7], and for the formal definition of SL-reductions, see [15, p. 2540]. We define our exact computation problem for the Hairy Ball Theorem as follows:
Note that the vector field will be continuous since we never divide by . The vector field can be syntactically forced to be tangent to the sphere because we can compute the projection exactly using this kind of circuit.
Exact-Hairy-Ball is FIXP-hard. Furthermore, the corresponding strong approximation, partial computation and decision problems are also hard for the corresponding versions of FIXP (as defined in ).
Following Etessami and Yannakakis, we could define a class HB that captures the complexity of computing an exact Hairy Ball solution (and corresponding versions of the class for the related problems) by taking the set of all problems that reduce to Exact-Hairy-Ball. Then, Theorem 8 is saying that FIXP HB. Note that the three discrete problems that can be studied in the Turing machine model lie in PSPACE, by using the same technique as in [15, Proposition 4.2].
The proof is based on an idea used by Milnor to show that the Hairy Ball theorem implies Brouwer’s fixed point theorem. Note, however, that Milnor’s proof proceeds by contradiction, whereas our proof is fully constructive.
We embed two copies of a Brouwer instance (after some preprocessing) on the sphere such that any exact Hairy Ball solution yields an exact Brouwer fixed point. Note that this reduction makes use of the and gates and cannot be used to prove PPAD-hardness of D-Hairy-Ball.
Compute
Output
Step 2: From Brouwer to Hairy Ball. The high-level idea in order to construct a Hairy Ball vector field is to use the output of as coordinates in some continuous tangent basis on . However, as noted before, it is impossible to define a continuous tangent basis on all of . As a result, we use two different bases (namely and ) and obtain two tangent vectors at : and . The final output is then obtained by taking a convex combination of and , according to a parameter . This parameter ensures that we do not use a tangent basis when we are close to the pole where it is not a basis. Furthermore, it also ensures that the case where is obtained as a strict convex combination (namely ) can only occur at points where , which makes this case easier to analyse.
Compute
Compute and
Compute
is the non-normalised version of the tangent basis used in the proof of Theorem 4. In particular, the form an orthogonal basis of the tangent space at (as long as ) and we have . Note that the output of the circuit is always tangent to the sphere at .
If , then , and thus, using the fact that the form an orthogonal basis, we obtain
Since , this implies that , i.e. . This means that any zero of yields a zero of by dropping the first coordinate.
If , then , and the analogous computation yields that . Since , we again obtain that , and the same conclusion follows.
The last remaining case is when . If we let , then, since , it must be that , which implies that . It follows that
which implies that has no zero in this region.
The reduction we have provided is an SL-reduction, since a solution of the original instance can be obtained by applying a separable linear transformation (with rational coefficients that are computable in polynomial time from the original instance) to any solution of the final instance. Furthermore, the coefficients of the separable linear transformation are always powers of . It follows (see ) that the corresponding strong approximation, partial computation and decision problems are also hard for the corresponding FIXP classes. ∎
The 2D-Hairy-Cube Problem
In this section we define the 2D-Hairy-Cube problem: a discretised version of 2D-Hairy-Ball. As the name suggests, one of the main differences is that 2D-Hairy-Cube is defined on the surface of a cube instead of the surface of a ball. It will follow from our results that this discretised problem is indeed computationally equivalent to the continuous formulation.
We consider this problem mainly for two reasons. First of all, we believe it is nice to have a corresponding discrete version of 2D-Hairy-Ball that might easier to work with in some cases. This is similar to Brouwer, where the discrete version is often very useful. Another more technical point is that 2D-Hairy-Cube also serves as an intermediate step to prove PPAD-hardness of 2D-Hairy-Ball. Indeed, as we will see below, proving PPAD-hardness for 2D-Hairy-Cube is pretty straightforward using a result by Chen and Deng on a 2-dimensional Brouwer fixpoint problem.
The 2D-Hairy-Cube problem is defined on the surface of the unit cube. Every face of the cube is subdivided into identical small squares, that we call squarelets. Every squarelet contains one of four possible axis-aligned arrows tangential to its face. A solution is given by two adjacent squarelets that contain arrows going into opposite directions. Here adjacent is taken to mean that the squarelets touch, even in a single point. However, we need one additional type of solution, namely at corners. Three squarelets adjacent at a corner form a solution, if the three arrows all point towards the corner or all three point away from the corner. An arrow points towards the corner if it points towards an edge that contains the corner. Thus, for any corner squarelet, out of the four possible arrows that it can contain, two point towards the corner and two point away from it.
Note that any two adjacent faces of the cube can be thought of as being one big plane, because we can rotate one of the faces so that this is the case. This is the interpretation that is used when deciding whether two adjacent squarelets, lying on two different but adjacent faces, form a solution: we rotate one of the two faces until it is on the same plane as the other one, and then proceed as if the two squarelets were on the same face. Fig. 3 shows a 2D-Hairy-Cube instance with various solutions.
For any integer , we let . Note that we can interpret elements in as elements in .
For the definition of the computational problem we assume that we are given a Boolean circuit that represents a function . The input in is interpreted as an element in that determines a face of the cube. The input in determines a squarelet on that face. The output in is interpreted as an element in , which yields one of the four arrows allowed on this face. We say that computes a discrete field on the cube surface.
The 2D-Hairy-Cube problem is defined as: given a Boolean circuit that computes a discrete field on the cube surface, find:
two adjacent squarelets that contain arrows going in opposite directions, or
three adjacent corner squarelets, such that all three arrows point towards the corner, or all three point away from the corner.
In Appendix A we prove that this problem reduces to 2D-Hairy-Ball (Proposition 18). Thus, it also lies in PPAD by Corollary 5. Below we prove that it is also PPAD-hard (Proposition 11), which yields:
2 PPAD-hardness
In this section we prove that 2D-Hairy-Cube is PPAD-hard. The proof uses the PPAD-hardness of the discrete 2D-Brouwer problem by embedding an instance of a slightly modified discrete 2D-Brouwer problem on two opposite faces of the cube. We start by defining the modified discrete 2D-Brouwer problem and proving that it is PPAD-hard.
The 2-dimensional discrete Brouwer fixpoint problem we will consider is defined on a big square that is partitioned into squarelets. Every squarelet contains one of four possible cardinal direction arrows: right, left, up, down. A solution is given by two adjacent squarelets that contain arrows pointing in opposite directions. Two squarelets are adjacent if they have at least one point in common (in particular, squarelets can also be adjacent diagonally).
The input is a Boolean circuit that computes the cardinal arrow in a given input squarelet. We say that satisfies the Brouwer boundary conditions, if , , and , for all and . This corresponds to requiring that, in squarelets forming the boundary of the domain, the arrows point inwards. Note that this condition can be enforced syntactically on the circuit. If satisfies the Brouwer boundary conditions, then there must exist a solution. Otherwise, we could use the instance to define a continuous function from the square to itself which does not have a fixpoint, a contradiction to Brouwer’s Fixpoint theorem. We now give the formal definition of the problem.
The problem 2D-Variant-Brouwer is defined as: given a Boolean circuit such that , , and , for all and , find and such that and .
The main difference to the standard discrete 2D-Brouwer problem is that we have possible arrows instead of the three and we are looking for a place where two opposite arrows meet, instead of a place where all three types of arrows meet. Any 2D-Variant-Brouwer instance can also be interpreted as a 2D-Tucker instance . Indeed, if we interpret as , then the boundary satisfies the Tucker conditions (i.e. two boundary squarelets that are diametrically opposite each other with respect to the centre of the domain, contain opposite numbers). Furthermore, 2D-Variant-Brouwer-solutions exactly correspond to 2D-Tucker-solutions. Thus, one might think that 2D-Variant-Brouwer could be PPA-complete instead of PPAD-complete. However, the corresponding 2D-Tucker instances have the specificity of having monochromatic sides (except for the corners) and this puts the problem in PPAD. Indeed, the proof of PPA-hardness of 2D-Tucker uses instances with non-monochromatic sides .
Membership in PPAD follows from the fact that 2D-Variant-Brouwer reduces to 2D-Hairy-Cube (Proposition 11), which reduces to 2D-Hairy-Ball (Proposition 18) which is in PPAD (Corollary 5). Alternatively, one could also reduce 2D-Variant-Brouwer to the continuous 2D-Brouwer problem (by interpolating between centres of the squarelets) which takes a continuous function as input (represented as an arithmetic circuit) and is known to lie in PPAD .
It remains to show that 2D-Variant-Brouwer is PPAD-hard. This is done by using the same idea as for the standard 2D-Brouwer problem , namely by embedding a 2-dimensional End-of-Line instance on the grid into a 2D-Variant-Brouwer instance. Since the 2-dimensional End-of-Line problem is PPAD-hard , the result follows.
The only difference with is that in our case, paths are implemented using an “upward” arrow at the centre of the path, a “right” arrow on the left side of the path, and a “left” arrow on the right side of the path. The environment, where there is no path, is filled with “downward” arrows. As a result, a solution, i.e., a point where two opposite arrows meet, can only occur when a path starts or stops in the environment. The same type of construction for the paths (if we interpret labels as arrows) was used to show that 2D-Tucker is PPAD-hard . The correctness of the reduction follows by the arguments presented in .
We provide a few more details about the construction for the interested reader. Consider any 2-dimensional End-of-Line instance on the grid. We will construct a 2D-Variant-Brouwer instance on the grid. Every grid node in the original End-of-Line instance corresponds to a region of squarelets. In this region, the End-of-Line path is represented by squarelets containing the “upward” arrow . Thus, if the path comes into the grid node from the left neighbour and leaves towards the bottom neighbour, then the region will contain a width-2 path of squarelets that starts at the centre of the left side of the region, makes a right angle at the centre of the region and then goes to the centre of the bottom side of the region. All the squarelets on this width- path get the arrow . Any squarelets that are adjacent to the path from the left side (with respect to the direction of the path) get the arrow . Any squarelets that are adjacent to the path from the right side get the arrow . All other squarelets get the arrow .
If a grid node is isolated, then we just assign the arrow to all of its squarelets. If a grid node is a source or a sink, then there will be a solution, since the path of arrows will touch the environment of arrows. The 2D-Variant-Brouwer boundary conditions can be enforced without changing the solutions. We just need to be careful at the bottom side, since the boundary has arrow and we don’t want them to touch the environment of arrows. To avoid this we also require that the stripe of width just above the bottom boundary be filled with arrows. It is easy to see that a careful construction of the region corresponding to the origin of the grid (the known source of the End-of-Line instance) ensures that no solution occurs there. It follows that any solution to the 2D-Variant-Brouwer instance must yield a solution to the 2-dimensional End-of-Line instance. Furthermore, the circuit computing the arrow in each squarelet can be constructed efficiently. ∎
We reduce from 2D-Variant-Brouwer. By Lemma 10 the result then follows. Consider an instance of 2D-Variant-Brouwer. We construct an instance of 2D-Hairy-Cube as follows. The top face of the cube is identical to the instance represented by . The bottom face is identical to the negation of the instance represented by , i.e. all arrows are negated (in particular, on the boundary they point outwards, instead of inwards). The other four faces of the cube are uniformly filled with an arrow pointing towards the top face. It is easy to check that a solution can only appear on the top or bottom face and corresponds to a solution to the original problem. Furthermore, the circuit computing the arrow in any squarelet of the surface of the cube can be constructed efficiently from . ∎
The Hairy-Ball Problem on the Torus of Genus g𝑔g
In this section we consider the 2-dimensional torus of genus (also called -holed torus, or -torus) instead of the sphere. The Hairy Ball theorem does not hold on the torus of genus , i.e. the standard torus. It is straightforward to define a continuous tangent field that never vanishes. However, as proved by Poincaré , the theorem does hold for the 2-dimensional torus of genus for all .
We prove that the corresponding computational problem is again PPAD-complete. Even though the general techniques are very similar to those seen in previous sections, the interesting point is that the reduction to End-of-Line yields sources instead of . Thus, we can make full use of the multiple-source End-of-Line results of Section 8. We believe that the reduction to a -source End-of-Line instance is a natural and necessary step in the reduction and that this multiple source aspect is intrinsic to the problem, since the torus of genus has Euler characteristic .
We use the term “-torus” to refer to the torus of genus , i.e. the 2-dimensional torus with holes, embedded in -dimensional space. This should not be confused with the 1-holed torus embedded in -dimensional space. We mainly work with the 2-torus, since all the arguments generalise to the -torus in a straightforward way. We define the 2-torus as follows: lies on the 2-torus if it satisfies the equation
where is the distance of to , is the distance to , and is the distance to the segment -. Fig. 4 provides an illustration of this 2-torus.
Using the expression above, one can always efficiently check whether a given lies on the 2-torus. However, it is not always possible to exactly compute the projection of a vector onto the tangent space at some point on the 2-torus.
This construction is easy to generalise to the -hole torus, for any . We call the corresponding object the -torus and denote it by .
Both of our reductions will use a base field , which is defined everywhere except on the two flat regions of the 2-torus. If or if and , then . If or if and , then . If and , then . This partial field is continuous and does not have any zeros. Note that the field does not depend on and is always contained in the -plane.
The computational problem is defined as follows:
Let . The Hairy--Torus problem is defined as: given and an arithmetic circuit with 3 inputs and outputs, using gates and rational constants, find such that .
Here denotes the projection onto the tangent space to at with error at most , i.e. , where is the exact projection.
For any , Hairy--Torus is PPAD-complete.
In Proposition 13 below, we show that Hairy--Torus reduces to -source End-of-Line. Using the results in Section 8 (Theorem 14), it follows that the problem lies in PPAD. PPAD-hardness is proved in Appendix C by embedding modified copies of a 2D-Variant-Brouwer instance. ∎
2 Hairy-g𝑔g-Torus is in PPAD
For any , Hairy--Torus reduces to -source End-of-Line.
We will prove the result for . The proof immediately generalises to any other larger value of .
For this proof we need a sufficiently fine triangulation of the -torus that is also locally efficiently computable. For any point on the -torus, we should be able to efficiently compute all nearby triangles. In particular, given a triangle we should be able to efficiently obtain all adjacent triangles. Moreover, the triangulation should be sufficiently fine, meaning that, given some , we should have a triangulation such that all corners of a triangle are within distance of each other. We call this a -fine triangulation.
We can construct such a triangulation as follows. We start with a fixed triangulation of the -torus, such that the curved region delimited by each triangle is sufficiently flat. Then, we can easily construct a fine triangulation of every triangle. Finally, we compute the (approximate) projection of the points of this fine triangulation on the surface of the -torus. By taking a fine enough triangulation of the triangles and a good enough approximation of the projection, we can ensure that the triangulation is -fine. Note that when we take the approximate projection, we compute a point that exactly lies on the -torus and is close to the true projection. Thus, all the points of the triangulation lie exactly on .
Let be an instance of Hairy--Torus. Using similar arguments to the proof of Lemma 2, it is straightforward to show that is -Lipschitz continuous on the -torus, for a similar value of . Pick a -fine triangulation of the -torus as described above with . We will now colour every node of the triangulation with one of three colours and use a Sperner argument on this colouring. To construct the colouring we will use the base field , defined earlier. We just need to decide how to extend the base field to also be defined on the two flat regions (at and ). Here, the simplest way to do this is to draw an X-shape on the flat region and assign one of the four cardinal flat vectors to each of the four regions (see Fig. 5). Then, the base field is defined for any point on (if the point lies on a boundary, resolve ties arbitrarily), even though it is no longer continuous.
For any node of the triangulation, its colour depends on : the angle between and the base field at . The angle is measured from to the base field vector in counter-clockwise direction when looking from outside the -torus. If then the colour is , if it is , and if it is . Unfortunately, we cannot exactly compute , nor the angle between two vectors. Thus, we compute a sufficiently good approximation of and of the angle and choose the colour based on this approximation. Specifically, we compute a good enough approximation such that if , then the angle has error at most .
We can assume that at the centre of the cross in the top flat region (), the triangulation is such that there are four points such that each lies in one of the four regions, and they form two triangles of the triangulation. Let be those four points. Note that the pairwise distance between any of those four points is at most . Thus, by the choice of , we must have that , for any . Note that since we are in the flat region, we can project exactly, i.e. . If there exists such that , then we are done. If this is not the case, then the angle of varies by at most one degree for . It follows that the angle computed for each of the four points is equal to the angle between the base field and some fixed vector, with an error of at most . Since the four points’ base vectors correspond to the four cardinal flat vectors, it is easy to check that the four points get the colours in clockwise order (and one of the colours is repeated, i.e. or or ). The segment is our first Sperner-source. Applying the same arguments to the bottom flat region () yields four points that again get the colours in clockwise order. Thus, we get a second segment that is another Sperner-source. Each of those sources is the beginning of a Sperner path that will eventually lead to a trichromatic triangle. Since the -torus is orientable, the two paths cannot cancel each other out.
It remains to show that any trichromatic triangle yields a solution to the Hairy--Torus instance. Consider any trichromatic triangle with three vertices . Assuming we have picked smaller than some constant, the base field can vary at most by an angle of on these three vertices. If for some , then we are done. Assume that this is not the case. For all we also have that and thus the angle between those two vectors is at most (because ). Thus, the can vary by at most for (because every is computed with error at most in this case). It follows that it is impossible to get all three colours.
For larger , we define the base field by just repeating the same pattern and the rest works as before. Note that we obtain two sources for every region between two adjacent holes, i.e. sources. ∎
End-of-Line: One Source to Rule Them All
End-of-Line is the canonical problem used to define PPAD. Investigating variants of the problem is of independent interest, in particular in order to gain a better understanding of PPAD and how it relates to other similar subclasses of TFNP. An additional motivation for studying these variants is given by this paper, since a multiple-source variant of End-of-Line is used to prove that finding an approximate Hairy Ball solution lies in PPAD (Section 4).
This section is an improved version of the corresponding content in the technical report . In we use these results to show that a computational problem related to the Mutilated Chessboard puzzle is PPAD-complete.
Recall that in the End-of-Line problem (Definition 1), we are given a directed graph where each vertex has in- and out-degree at most and a known source of this graph, and we wish to find a sink or another source. But, what if, instead of just one, we already know two sources of an End-of-Line instance? We are still interested in finding any sink or any other source. Intuitively, the problem might seem easier, because the existence of two sources implies the existence of at least two sinks, hence more potential solutions. In fact, it is easy to see that this problem is actually at least as hard as End-of-Line: just duplicate the whole End-of-Line instance.
The other direction, however, is not trivial. Indeed, if we interpret our 2-source End-of-Line instance as a standard End-of-Line instance (and pick one of the two sources as the standard source), then the other known source is a valid solution to End-of-Line, but not a valid solution to our original problem. In other words, it is not clear how to solve this problem if we are given access to an oracle solving End-of-Line, because the oracle could just return the other known source. We consider the following more general problem, where we are given an End-of-Line graph and an explicit list of known sources.
The Multiple-Source End-of-Line problem, abbreviated MS-EoL, is defined as: given circuits with inputs and outputs and such that for all , find such that or such that .
In passing, let us note that in the undirected case this kind of generalisation is trivial. The undirected analogue of End-of-Line is Leaf: given an undirected graph where every vertex has degree at most and given a vertex of degree , find another vertex of degree , i.e. another leaf. Assume that we know leaves instead of just one. If is even, then the problem is not even in TFNP. If is odd, then we can add edges between known leaves until exactly one is left. Thus, the problem is equivalent to Leaf. This kind of reduction does not work for the directed case. Nevertheless, we obtainThis problem was discussed in an online thread (https://cstheory.stackexchange.com/q/37481). E. Jeřábek proved membership in PPADS and PPA- for every prime (but not membership in PPAD).:
Multiple-Source End-of-Line is equivalent to End-of-Line.
A natural generalisation of Multiple-Source End-of-Line is the following problem: given an End-of-Line graph and a list of known sources and known sinks, find another source or sink. Note that for this problem to be in TFNP, we must require . Using Theorem 14, it is easy to see that this problem is equivalent to End-of-Line. If , then we add an edge from each of the known sinks to some corresponding known source and obtain an instance with known sources and no known sinks. Similarly, if , then we first reverse all directed edges and then apply the same trick.
We now give the proof of Theorem 14. The next two sections then present additional consequences of this result.
The reduction from End-of-Line to MS-EoL is trivial. The challenging step is the reduction from MS-EoL to End-of-Line.
Let be an instance of MS-EoL with a list of known sources, where the vertex set is , also interpreted as . Without loss of generality, we assume that the known sources are . This is easy to achieve by applying an efficient bijection on the vertex set.
For simplicity, we are going to assume that for all . We also assume that for all we have unless , and unless . The first assumption corresponds to requiring that the first vertices indeed be sources. Note that we can check this using evaluations of the circuits, i.e. in polynomial time in , and any “false” source is a solution to the MS-EoL instance. Here, denotes the size of the input, i.e. the sum of the sizes of the two circuits and the length of the list of known sources given in the input. The second assumption corresponds to requiring that the graph is in some sense well-defined. This requirement can be enforced by a slight modification of the circuits that can be done in time polynomial in . Any solution of the modified instance is a solution of the original instance.
Let be the following subsets of :
. This corresponds to all the sources of the graph.
. This corresponds to all the sinks of the graph.
. This corresponds to all the vertices that are not isolated, but are neither sources nor sinks. We call those path vertices.
Note that members of all those subsets are recognisable in polynomial time in . Let . Note that isolated vertices are not contained in .
Let be the graph represented by circuits (without isolated vertices). Below we will give an inductive construction of the graph that will have the following properties:
The sources of are all the sets of the form , where are distinct sources of the original graph.
The sinks of are all the sets of the form , where are distinct sinks of the original graph.
Every vertex of can be represented using at most bits. There exists a polynomial algorithm that for each such bit-string decides whether it represents a vertex of or not.
The successor and predecessor circuits have polynomial size with respect to and can be constructed in polynomial time.
Note that the only known source of is . Any other source or any sink of contains at least one unknown source or sink of the original graph. Thus, if we can construct (in polynomial time in ) circuits that represent this graph, then we have a polynomial reduction from MS-EoL to End-of-Line.
Furthermore, if we also have (i.e. at least one path vertex and sink), then we define
2 The Imbalance problem
Up to this point, we have only considered graphs where every vertex has in- and out-degree at most . However, the principle that guarantees the existence of a solution in an End-of-Line graph can be generalised to higher degree graphs. If we are given a directed graph and an unbalanced vertex, i.e. a vertex with in-degree out-degree, then there must exist another unbalanced vertex.
Beame et al. defined the corresponding problem Imbalance, which is seemingly more general than End-of-Line. In this problem, every vertex is not constrained to have in- and out-degree at most . Instead, in- and out-degree are bounded by some polynomial of the input lengthNote that this trivially holds, if the input consists of circuits that explicitly output the predecessor and successor list.. We are given a vertex that is unbalanced and have to find another unbalanced vertex (which is guaranteed to exist). The problem can be informally defined as follows:
The Imbalance problem is defined as: given a directed graph (represented concisely by predecessor and successor functions) and a vertex that has in-degree out-degree, find a vertex that also has in-degree out-degree.
Beame et al. claim that Imbalance reduces to End-of-Line, using the same argument as for the corresponding problems on undirected graphs. However, if the graph is directed, a complication arises (that is not an issue in the undirected case). Indeed, their proof idea is incomplete, because they overlook the fact that their reduction yields an End-of-Line instance with multiple known sources. Using Theorem 14 we can provide a full proof of their claim.
Let us now define the problem formally. Similarly to End-of-Line, the graph is provided implicitly through circuits computing successors and predecessors respectively. For , encodes the successors of as follows: if , then it is a potential successor of . Thus, if , then is the only potential successor of . We abuse notation and let denote the set of all potential successors of (i.e. turn into the set ). We use the same interpretation and notation for the predecessor circuit . Thus, a directed edge exists, if and only if and .
Using this notation we can formally define the problem as follows.
The Imbalance problem is defined as: given circuits and a vertex with , find
such that
or such that or .
Note that the number of incoming and outgoing edges at a vertex is bounded by a polynomial in the size of the input, because is bounded by the size of the circuits. Beame et al. defined this problem in a black box model, namely the predecessor and successor functions are oracles. Since our reductions do not make use of the white box aspect of the input circuits (they don’t look inside the circuit, but just use it as a black box), the results also hold in their model.
PPAD-hardness is trivial, since Imbalance generalises End-of-Line. To show membership in PPAD we follow the proof idea given by Beame et al. .
The undirected analogue of End-of-Line is Leaf: given an undirected graph where every vertex has degree at most and given a vertex of degree , find another vertex of degree , i.e. another leaf. The generalisation of Leaf is called Odd: given an undirected graph and a vertex of odd degree, find another vertex of odd degree. It is quite straightforward to show that Odd is equivalent to Leaf. Clearly, Leaf trivially reduces to Odd. To show that Odd reduces to Leaf, Papadimitriou and Beame et al. use the chessplayer algorithm (which is based on an Euler tour argument). Intuitively, the idea is to separate vertices into multiple copies such that every copy has degree at most 2.
As claimed by Papadimitriou and Beame et al. , the chessplayer algorithm can also be applied to the directed case. Let be an instance of Imbalance, where . First of all, note that we can assume wlog that all edges are well-defined, i.e. we have . This can be achieved by a simple modification of the circuits: the modified circuit outputs instead of . Along with the analogous modification for , this yields an instance where the solutions can only be of the first type, and any such solution yields a solution (of the first or second type) of the original instance.
Note that for any , the successor and predecessor lists can be ordered lexicographically. For any and , let denote the th successor of , if is ordered lexicographically. If has less than successors, then let . Finally, let correspond to the index of in the successor list of , i.e. . Define and analogously.
It is easy to see that for any balanced vertex in the graph given by , all of its versions in the graph given by will either have in- and out-degree one, or be isolated. Thus, if is a source or sink, then is unbalanced in the graph given by . Furthermore, all edges are well-defined.
Beame et al. claim that this reduction is sufficient to prove that Imbalance reduces to End-of-Line (which they call SOURCE-OR-SINK). However, consider the case where the imbalance in the known unbalanced vertex is strictly greater than one, i.e. . Then, there exist such that and are both sources or both sinks. For example, if and , then and are sources, and all the other are isolated vertices. If we consider this as an End-of-Line instance and pick as the known source, then is a valid solution. However, note that it does not yield a solution to the Imbalance instance.
Using our results on multiple-source End-of-Line we can complete the proof. First of all, we can make sure that is in deficiency and not in excess, i.e. , simply by inverting the role of and . Then, the reduction described above yields an End-of-Line instance with known sources , , where and . Note that all other are neither sources, nor sinks. Since we can efficiently produce an explicit list of all the known sources, we obtain an instance of MS-EoL, which lies in PPAD by Theorem 14. ∎
3 Looking for multiple solutions
If we are given an End-of-Line instance with known sources, then we can ask for sinks or unknown sources. The problem is total, because at least sinks are guaranteed to exist.
Intuitively, this problem seems harder than End-of-Line or MS-Eol, because we are now looking for more than one solution. However, using Theorem 14 we can show:
The non-trivial direction is the reduction to End-of-Line. Buss and Johnson have shown that PPAD, PPADS, PPA and PLS are closed under Turing reductions, by providing a way to transform a Turing reduction (to a complete problem of each of those classes) into a many-one reduction. Thus, it suffices to provide a Turing reduction from -Ends-of-Line to End-of-Line. By Theorem 14 we can efficiently simulate an oracle for MS-EoL, using an oracle for End-of-Line. We can solve an instance of -EoL by making repeated calls to MS-EoL oracles, with a list of all the currently known sources. If the oracle call returns a new source, then we add it to our list. If the oracle returns a sink, then we add an edge from this sink to one of the known sources, and remove that source from the list. It is easy to see that after at most oracle calls we will have obtained at least sinks or at least new sources. Note that the list of known sources will have length at most . ∎
Note that the proof still works if we are given an explicit list of the known sources in the input (as in the definition of MS-EOL), i.e. does not have to be fixed. Furthermore, the same proof also yields PPAD-completeness for the following problem. Fix some polynomial . The problem is: given sources, find sinks or sources. This seems quite surprising, as one might have expected this problem to be closer to PPADS.
We close this section by giving some analogous results for the class PPADS and its canonical complete problem Sink . Sink is identical to End-of-Line, except that we only accept a sink as a solution and are not interested in other sources. In this case the results are easier to obtain, because there is no need for an analogue of Theorem 14.
The Sink problem is defined as: given circuits with inputs and outputs and such that , find such that .
Unlike End-of-Line, it is easy to prove that multiple source Sink is equivalent to Sink. Consider the problem MS-Sink, where we are given a graph and a list of known sources and are looking to find a sink. It is easy to see that this problem is equivalent to Sink. A reduction from Sink to MS-Sink is given by simply taking copies of the original Sink instance graph. The reduction in the other direction is even more trivial. Indeed, we can just ignore the extra sources we know, because we are only interested in sinks.
We can define the analogous problem to -EOL, where we look for multiple sinks.
Sink easily reduces to -Sinks by taking copies of the graph. The other direction can again be proved by using the result by Buss and Johnson . A Turing reduction from -Sinks to Sink is obtained by doing the following: given an instance of -Sinks, use the oracle to solve the Sink problem on this instance, then add an edge from the sink we just obtained to one of the known sources. Doing this times yields distinct sinks of the original instance. ∎
Just like Theorem 16, this result also holds if there is a polynomial number of sources, in particular if they are given explicitly in the input.
Acknowledgements
This work was supported by an EPSRC doctoral studentship (Reference 1892947).
References
Appendix A Reduction from 2D-Hairy-Cube to 2D-Hairy-Ball
In this section we prove the following result.
The main idea of the proof is simple: first we obtain a continuous field on the surface of the cube by interpolation. Then, we transfer the field onto the sphere. Various technical difficulties arise, but they can all be overcome. One difficulty is that in order to simulate the Boolean circuit describing the discrete field, the arithmetic circuit first has to do “bit extraction”, but this cannot be done exactly. This issue can be resolved by using a standard technique called the averaging trick.
The reduction works by constructing an arithmetic circuit that will (among other things) simulate the Boolean circuit. To do this we need to do “bit extraction” on a rational input of the arithmetic circuit, i.e. compute the most significant bits in its binary representation. However, this is impossible to do exactly using an arithmetic circuit with gates , , , because this kind of circuit can only compute continuous functions. As a result, any bit extraction method will make mistakes in some small regions. To circumvent this obstacle, we will simulate the evaluation of the Boolean circuit at multiple points close to the actual input. By choosing those points wisely we can ensure that at most three of them can result in a bogus bit extraction. Thus, if we output the average value obtained from all those points, the mistakes will have a very limited impact on the final result. This averaging technique is a standard tool in the field, see .
Now consider a point on the surface of the unit cube and let . Let
Note that since lies on the surface of the cube, all the points in lie in at least one of the cubelets we defined above. Furthermore, note that any two cubelets that each contain a point in , have to be adjacent, i.e. they have a non-empty intersection.
We now describe how to perform bit extraction using an arithmetic circuit. Let . The arithmetic circuit can compute
We are now ready to describe the arithmetic circuit with three inputs and outputs, using gates , that will be the output of the reduction. Let be the (rational) input to the circuit. The circuit does the following:
Project onto the surface of the -cube (i.e. the set of points such that ) and then map it to the surface of the unit cube. Namely, compute where .
Compute the coordinates of the points in .
Output the average of all output vectors.
The next step is to show that if there is no discrete solution close to the point corresponding to , then is lower-bounded by a constant. Recall that denotes the projection onto the tangent space to the unit sphere at . We consider three cases depending on the type of cubelet involved. A face cubelet is one that only has one corresponding original squarelet. An edge cubelet has two corresponding original squarelets and a corner cubelet has three corresponding original squarelets.
Consider any such that there is no discrete solution close to (namely: no solution involving squarelets that are adjacent to a squarelet containing ).
Case 1: is such that all points in lie in face cubelets.
Note that in this case, all the corresponding original squarelets lie on the same face. As a result, the average will lie in the plane parallel to this face and going through the origin. Furthermore, note that cannot lie too close to any edge of the cube, otherwise we would get edge cubelets. Assume wlog that lies on the face . It follows that must be such that . As stated above we have . One can check that in this case a (very crude) bound is .
Case 2: is such that at least one point in lies in an edge cubelet and no point lies in a corner cubelet
Note that there is a special case where can have points contained in edge cubelets from two different edges. This special case is handled exactly as in case 3 below. Here we only consider the case where all edge cubelets come from the same edge denoted . Assume wlog that is the edge given by . is the weighted average of the cardinal vectors contained in all the corresponding original squarelets. All those squarelets must be adjacent to on either side (and they are all adjacent to each other as noted earlier). Observe that cannot lie in the interior of the two quadrants given by and . Otherwise, we would have two cardinal vectors forming an edge solution.
Since is at distance at most from , it follows that satisfies . One can check that for , we get that the angle between and must satisfy . It follows that
Case 3: is such that at least one point in lies in a corner cubelet
Assume wlog that the corner is the one given by . is the weighted average of the cardinal vectors contained in all the corresponding original squarelets. It is easy to see that the original squarelets concerned are exactly the original corner squarelets. By inspection one can check that cannot lie in the two orthants given by and . Since is at distance at most from the corner, it follows that satisfies . Similarly to the previous case, we again obtain that the angle between and must satisfy (for ). Thus, the same bound holds for this case too.
Unfortunately, all output vectors for points in might not be computed correctly. Fortunately, at most of them might yield bogus outputs. Thus we can write , where and are the averages of the good and bad outputs, respectively (assume wlog that there are exactly 3 bad outputs). The arguments in the previous paragraphs yield . By construction of the arithmetic circuit , we have , which implies , and thus . Putting everything together we get
Thus picking yields the result. ∎
Appendix B Reduction from k𝑘kD-Hairy-Ball to (k+2)𝑘2(k+2)D-Hairy-Ball
𝑘2(k+2)D-Hairy-Ball Since 2D-Hairy-Cube is PPAD-hard (Proposition 11) and it reduces to 2D-Hairy-Ball (Proposition 18), it follows that 2D-Hairy-Ball is also PPAD-hard. In order to prove Theorem 7, we reduce D-Hairy-Ball to D-Hairy-Ball for all even .
For all even , D-Hairy-Ball reduces to D-Hairy-Ball.
and if . It is easy to check that is a Lipschitz-continuous tangent vector field on . Furthermore, given such that , it holds that is a well-defined point on and satisfies .
Output
Note that . Thus, the first coordinates of are . Since is a solution we have . We also have
Thus, it follows that . Compute such that (e.g. by using the stereographic projection technique). By Lemma 2 it follows that . ∎
Appendix C Hairy-g𝑔g-Torus is PPAD-hard
For any , Hairy--Torus is PPAD-hard.
We reduce from the PPAD-complete problem 2D-Variant-Brouwer (Section 6.2). Let be an instance of 2D-Variant-Brouwer. Note that we can slightly change the boundary conditions in the definition of the problem without changing its complexity. Specifically, as long as opposite sides of the square have opposite arrows, the problem remains the same. In this proof we use 2D-Variant-Brouwer instances where the top boundary contains right-arrows and the right boundary contains up-arrows (and the rest of the boundary is diametrically opposite). The boundary conditions are chosen this way to be compatible with the base field .
We give the proof for . The same arguments work for . We are going to pick an and construct an arithmetic circuit that computes a field on the -torus, such that any -approximate zero of the projection of yields a solution to the 2D-Variant-Brouwer instance. will compute a close approximation of the base field (defined in Section 7) and we will embed an interpolation of the 2D-Variant-Brouwer instance in each of the two flat regions. Thus, any approximate zero will have to lie in one of the regions corresponding to the embedded Brouwer instance.
We now describe how to construct . In the two embedding regions, we will use the averaging trick to ensure that is small only if a 2D-Variant-Brouwer solution is nearby. Since this has been explained in detail in the proof of Proposition 18 (Appendix A), we now treat this as a subroutine that we know how to implement efficiently. If one of the sampling points lies outside of the unit square, then we naturally extend the Brouwer instance there. This can be done by adding an extra layer of squarelets around the unit square and assigning the same arrow as the closest squarelet. Here we use the averaging trick with equiangle sampling of points. In this case, we get that if no solution is nearby. Thus, as long as , any -approximate zero yields a 2D-Variant-Brouwer solution.
Given input the arithmetic circuit does the following:
Compute , and
Use the averaging trick on with input . Obtain average
Compute indicators and (see below)
Output
where outputs for each of the three coordinates of . The -variables are indicator functions for various regions of the -torus. Since the arithmetic circuit can only compute continuous functions, we have to use approximate indicator functions, i.e. their value goes from 0 to 1 continuously in some small region close to the boundary of the region. The indicator bits are computed as follows:
Note that by construction, for any we have . Using , it follows that . Moreover, always lies in the -plane (i.e. ). Note also that lies in the same quadrant as and for .