Abstract
We address two sets of long-standing open questions in linear algebra and probability theory, from a computational complexity perspective: stochastic matrix divisibility, and divisibility and decomposability of probability distributions. We prove that finite divisibility of stochastic matrices is an NP-complete problem, and extend this result to nonnegative matrices, and completely-positive trace-preserving maps, i.e. the quantum analogue of stochastic matrices. We further prove a complexity hierarchy for the divisibility and decomposability of probability distributions, showing that finite distribution divisibility is in P, but decomposability is NP-hard. For the former, we give an explicit polynomial-time algorithm. All results on distributions extend to weak-membership formulations, proving that the complexity of these problems is robust to perturbations.
MSC: 60-08, 81-08, 68Q30
Keywords: Stochastic matrices, cptp maps, Probability distributions, Divisibility, Decomposability, Complexity theory
1. Introduction and overview
People have pondered divisibility questions throughout most of Western science and philosophy. Perhaps the earliest written mention of divisibility is in Aristotle's Physics in 350 BC, in the form of the Arrow paradox—one of Zeno of Elea's paradoxes (ca. 490–430 BC). Aristotle's lengthy discussion of divisibility (he devotes an entire chapter to the topic) was motivated by the same basic question as more modern divisibility problems in mathematics: can the behaviour of an object—physical or mathematical—be subdivided into smaller parts?
For example, given a description of the evolution of a system over some time interval t, what can we say about its evolution over the time interval ? If the system is stochastic, this question finds a precise formulation in the divisibility problem for stochastic matrices [19]: given a stochastic matrix P, can we find a stochastic matrix Q such that ?
This question has many applications. For example, in information theory stochastic matrices model noisy communication channels, and divisibility becomes important in relay coding, when signals must be transmitted between two parties where direct end-to-end communication is not available [23]. Another direct use is in the analysis of chronic disease progression [3], where the transition matrix is based on sparse observations of patients, but finer-grained time-resolution is needed. In finance, changes in companies' credit ratings can be modelled using discrete time Markov chains, where rating agencies provide a transition matrix based on annual estimates—however, for valuation or risk analysis, a transition matrix for a much shorter time periods needs to be inferred [17].
We can also ask about the evolution of the system for all times up to time t, i.e. whether the system can be described by some continuous evolution. For stochastic matrices, this has a precise formulation in the embedding problem: given a stochastic matrix P, can we find a generator Q of a continuous-time Markov process such that ? The embedding problem seems to date back further still, and was already discussed by Elfving in 1937 [10]. Again, this problem occurs frequently in the field of systems analysis, and in analysis of experimental time-series snapshots [7], [22], [27].
Many generalizations of these divisibility problems have been studied in the mathematics and physics literature. For example, the question of square-roots of (entry-wise) nonnegative matrices is an old open problem in matrix analysis [24]: given an entry-wise nonnegative matrix M, does it have an entry-wise nonnegative square-root? In quantum mechanics, the analogue of a stochastic matrix is a completely-positive trace preserving (cptp) map, and the corresponding divisibility problem asks: when can a cptp map T be decomposed as , where R is itself cptp? The continuous version of this, whether a cptp can be embedded into a completely-positive semi-group, is sometimes called the Markovianity problem in physics [8]—the latter again has applications to subdivision coding of quantum channels in quantum information theory [26].
Instead of dynamics, we can also ask whether the description of the static state of a system can be subdivided into smaller, simpler parts. Once again, probability theory provides a rich source of such problems. The most basic of these is the classic topic of divisible distributions: given a random variable X, can it be decomposed into where are some other random variables? What if Y and Z are identically distributed? If we instead ask for a decomposition into infinitely many random variables, this becomes the question of whether a distribution is infinitely divisible.
In this work, we address two of the most long-standing open problems on divisibility: divisibility of stochastic matrices, and divisibility and decomposability of probability distributions. We also extend our results to divisibility of nonnegative matrices and completely positive maps. Surprisingly little is known about the divisibility of stochastic matrices. Dating back to 1962 [19], the most complete characterization remains for the case of a stochastic matrix [14]. The infinite divisibility problem has recently been solved [8], but the finite case remains an open problem. Divisibility of random variables, on the other hand, is a widely-studied topic. Yet, despite first results dating back as far as 1934 [5], no general method of answering whether a random variable can be written as the sum of two or more random variables—whether distributed identically, or differently—is known.
We focus on the computational complexity of these divisibility problems. In each case, we show which of the divisibility problems have efficient solutions—for these, we give an explicit efficient algorithm. For all other cases, we prove reductions to the famous -conjecture, showing that those problems are NP-hard. This essentially implies that—unless —the geometry of the corresponding divisible and non-divisible is highly complex, and these sets have no simple characterization beyond explicit enumeration. In particular, this shows that any future concrete classification of these NP-hard problems will be at least as hard as answering .
The following theorems summarize our main results on maps. Precise formulations and proofs can be found in section 2.
Theorem 1
Given a stochastic matrix P, deciding whether there exists a stochastic matrix Q such that is NP-complete.
Theorem 2
Given a cptp map B, deciding whether there exists a cptp map A such that is NP-complete.
In fact, the last two theorems are strengthenings of the following result.
Theorem 3
Given a nonnegative matrix M, deciding whether there exists a nonnegative matrix N such that is NP-complete.
The following theorems summarize our main results on distributions. Precise formulations and proofs can be found in section 3.
Theorem 4
Let X be a finite discrete random variable. Deciding whether X is n-divisible—i.e. whether there exists a random variable Y such that —is in P.
Theorem 5
Let X be a finite discrete random variable, and . Deciding whether there exists a random variable Y ϵ-close to X such that Y is n-divisible, or that there exists such a Y that is nondivisible, is contained in P.
Theorem 6
Let X be a finite discrete random variable. Deciding whether X is decomposable—i.e. whether there exist random variables such that —is NP-complete.
Theorem 7
Let X be a finite discrete random variable, and . Deciding whether there exists a random variable Y ϵ-close to X such that Y is decomposable, or that there exists such an ϵ-close Y that is indecomposable, is NP-complete.
It is interesting to contrast the results on maps and distributions. In the case of maps, the homogeneous 2-divisibility problems are already NP-hard, whereas finding an inhomogeneous decomposition is straightforward. For distributions, on the other hand, the homogeneous divisibility problems are efficiently solvable to all orders, but becomes NP-hard if we relax it to the inhomogeneous decomposability problem.
This difference is even more pronounced for infinite divisibility. The infinite divisibility problem for maps is NP-hard (shown in [8]), whereas the infinite divisibility and decomposability problems for distributions are computationally trivial, since indivisible and indecomposable distributions are both dense—see section 3.5.8 and 3.4.5.
The paper is divided into two parts. We first address stochastic matrix and cptp divisibility in section 2, obtaining results on entry-wise positive matrix roots along the way. Divisibility and decomposability of probability distributions is addressed in section 3. In both sections, we first give an overview of the history of the problem, stating previous results and giving precise definitions of the problems. We introduce the necessary notation at the beginning of each section, so that each section is largely self-contained.
2. CPTP and stochastic matrix divisibility
2.1. Introduction
Mathematically, subdividing Markov chains is known as the finite divisibility problem. The simplest case is the question of finding a stochastic root of the transition matrix (or a cptp root of a cptp map in the quantum setting), which corresponds to asking for the evolution over half of the time interval. While the question of divisibility is rather simple to state mathematically, it is not clear a priori whether a stochastic matrix root for a given stochastic matrix exists at all. Historically, this has been a long-standing open question, dating back to at least 1962 [19]. Matrix roots were also suggested early on in other fields, such as economics and general trade theory, at least as far back as 1967 [31], to model businesses and the flow of goods. Despite this long history, very little is known about the existence of stochastic roots of stochastic matrices. The most complete result to date is a full characterization of matrices, as given for example in [14]. The authors mention that “…it is quite possible that we have to deal with the stochastic root problem on a case-by-case basis.” This already suggests that there might not be a simple mathematical characterization of divisible stochastic matrices—meaning one that is simpler than enumerating the exponentially many roots and checking each one for stochasticity.
There are similarly few results if we relax the conditions on the matrix normalization slightly, and ask for (entry-wise) nonnegative roots of (entry-wise) nonnegative matrices—for a precise formulation, see Definition 10, Definition 11. An extensive overview can be found in [24]. Following this long history of classical results, quantum channel divisibility recently gained attention in the quantum information literature. The foundations were laid in [33], where the authors first introduced the notion of channel divisibility. A divisible quantum channel is a cptp map that can be written as a nontrivial concatenation of two or more quantum channels.
A related question is to ask for the evolution under infinitesimal time steps, which is equivalent to the existence of a logarithm of a stochastic matrix (or cptp map) that generates a stochastic (resp. cptp) semi-group. Classically, the question is known as Elfving's problem or the embedding problem, and it seems to date back even further than the finite case, to 1937 [10]. In the language of Markov chains, this corresponds to determining whether a given stochastic matrix can be embedded into an underlying continuous time Markov chain. Analogously, infinite quantum channel divisibility—also known as the Markovianity condition for a cptp map—asks whether the dynamics of the quantum system can be described by a Lindblad master equation [21], [12]. The infinite divisibility problems in both the classical and quantum case were recently shown to be NP-hard [8]. Formulated as weak membership problems, these results imply that it is NP-hard to extract dynamics from experimental data [7].
However, while related, it is not at all clear that there exists a reduction of the finite divisibility question to the case of infinite divisibility. In fact, mathematically, the infinite divisibility case is a special case of finite divisibility, as a stochastic matrix is infinitely divisible if and only if it admits an nth root for all [19].
The finite divisibility problem for stochastic matrices is still an open question, as are the nonnegative matrix and cptp map divisibility problems. We will show that the question of existence of stochastic roots of a stochastic matrix is NP-hard. We also extend this result to (doubly) stochastic matrices, nonnegative matrices, and cptp maps.
We start out by introducing the machinery we will use to prove Theorem 1, Theorem 3 in section 2.2. A reduction from the quantum to the classical case can be found in section 2.4, from the nonnegative to the stochastic case in section 2.5 and the main result—in a mathematically rigorous formulation—is then presented as Theorem 20 in section 2.6.
2.2. Preliminaries
2.2.1. Roots of matrices
In our study of matrix roots we restrict ourselves to the case of square roots. The more general case of pth roots of matrices remains to be discussed. We will refer to square roots simply as roots. To be explicit, we state the following definition.
Definition 8
Let , , some field. Then we say that is a root of M if . We denote the set of all roots of M with .
Following the theory of matrix functions—see for example [15]—we remark that in the case of nonsingular M, is nonempty and can be expressed in Jordan normal form via for some invertible Z, where . Here denotes the ±-branch of the root function of the Jordan block corresponding to the ith eigenvalue ,
If M is diagonalizable, J simply reduces to the canonical diagonal form .
If M is derogatory—i.e. there exist multiple Jordan blocks sharing the same eigenvalue λ—it has continuous families of so-called nonprimary roots , where U is an arbitrary nonsingular matrix that commutes with the Jordan normal form .
We cite the following result from [16, Th. 2.6].
Theorem 9 Classification of roots —
Let have the Jordan canonical form , where , such that collects all Jordan blocks corresponding to the eigenvalue 0, and collects the remaining ones. Assume further that
has the property that for all , no more than one element of the sequence satisfies . Then , where .
For a given matrix, the classification gives the set of all roots. If M is a real matrix, a similar theorem holds and there exist various numerical algorithms for calculating real square roots, see for example [15].
2.2.2. Roots of stochastic matrices
Remember the following two definitions.
Definition 10
A matrix is said to be nonnegative if .
Definition 11
A matrix is said to be stochastic if it is nonnegative and .
In contrast to finding a general root of a matrix, very little is known about the existence of nonnegative roots of nonnegative matrices—or stochastic roots of stochastic matrices—if . For stochastic matrices and in the case , a complete characterization can be given explicitly, and for , all real stochastic roots that are functions of the original matrix are known, as demonstrated in [14]. Further special classes of matrices for which a definite answer exists can be found in [16]. But even for , the general case is still an open question—see [20, ch. 2.3] for details.
Indeed, a stochastic matrix may have no stochastic root, a primary or nonprimary root—or both. To make things worse, if a matrix has a pth stochastic root, it might or might not have a qth stochastic root if —p is not a divisor of q—, or , .
A related open problem is the inverse eigenspectrum problem, as described in the extensive overview in [9]. While the sets —denoting all the possible valid eigenvalues of an n-dimensional stochastic matrix—can be given explicitly, and hence also , almost nothing is known about the sets of valid eigenspectra. Any progress in this area might yield necessary conditions for the existence of stochastic roots.
In recent years, some approaches have been developed to approximate stochastic roots numerically, see the comments in [14, sec. 4]. Unfortunately, most algorithms are highly unstable and do not necessarily converge to a stochastic root. A direct method using nonlinear optimization techniques is difficult and depends heavily on the algorithm employed [20].
It remains an open question whether there exists an efficient algorithm that decides whether a stochastic matrix Q has a stochastic root.
In this paper, we will prove that this question is NP-hard to answer.
2.2.3. The Choi isomorphism
For the results on cptp maps, we will need the following basic definition and results.
Definition 12
Let be a linear map on . We say that A is positive if for all Hermitian and positive definite , is Hermitian and positive definite. It is said to be completely positive if is positive .
A map A which is completely positive and trace-preserving—i.e. —is called a completely positive trace-preserving map, or short cptp map.
In contrast to positivity, complete positivity is easily characterized using the well-known Choi–Jamiolkowski isomorphism—cf. [4, Th. 2].
Remark 13
Let the notation be as in Definition 12 and pick a basis of . Then A is completely positive if and only if the Choi matrix
is positive semidefinite, where .
The condition of trace-preservation then translates to the following.
Remark 14
A map A is trace-preserving if and only if , where denotes the partial trace over the second pair of indices.
2.3. Equivalence of computational questions
In the following we denote with S some arbitrary finite index set, not necessarily the same for all problems. We begin by defining the following decision problems.
Definition 15 cptp Divisibility —
- Instance.
cptp map .
- Question.
Does there exist a cptp map ?
Definition 16 cptp Root —
- Instance.
Family of matrices that comprises all the roots of a matrix B.
- Question.
Does there exist an is a cptp map?
Definition 17 Stochastic Divisibility —
- Instance.
Stochastic matrix .
- Question.
Does there exist a stochastic matrix ?
Definition 18 Stochastic Root —
- Instance.
Family of matrices comprising all the roots of a matrix P.
- Question.
Does there exist an stochastic?
Definition 19 Nonnegative Root —
- Instance.
Family of matrices comprising all the roots of a matrix N, where all have at least one positive entry.
- Question.
Does there exist an nonnegative?
Theorem 20
The reductions as shown in Fig. 1 hold.
Fig. 1.
Complete chain of reduction for our programs. The dashed line between the Divisibility and Root problems hold for non-derogatory matrices, respectively. The dotted line between Stochastic Root and Nonnegative Root holds only for irreducible matrices. The doubly stochastic and nonnegative branch are included for completeness but not described in detail here—see Corollary 27.
Proof
The implication Stochastic Divisibility⟵Stochastic Root needs one intermediate step. If P is not stochastic, the answer is negative. If it is stochastic, we can apply Stochastic Divisibility. The opposite direction holds for non-derogatory stochastic P: in this case we can enumerate all roots of P as a finite family which forms a valid instance for Stochastic Root.
The reduction Stochastic Root⟵Nonnegative Root can be resolved by Lemma 25 and Lemma 26—we construct a family of matrices that contains a stochastic root iff contains a nonnegative root. The result then follows from applying Stochastic Root. If our stochastic matrix P is irreducible, then any nonnegative root is stochastic, and in that case Stochastic Root⟷Nonnegative Root—see [16, sec. 3] for details.
The link cptp Divisibility⟵cptp Root again needs the following intermediate step. If A is not cptp, the answer is negative. If it is cptp, then we can apply cptp Divisibility. Similarly, if A is non-derogatory, the reduction works in the opposite direction as well.
The direction cptp Root⟵Stochastic Root follows from Corollary 24. We start out with a family comprising all the roots of a stochastic matrix P. Then let —this family then comprises all of the roots of . Furthermore, by Lemma 23, there exists a cptp if and only if there exists a stochastic , and the reduction follows.
Finally, we can extend our reduction to the programs Doubly Stochastic Root and Doubly Stochastic Divisibility as well as Nonnegative Divisibility, defined analogously, see our comment in Corollary 27 and the complete reduction tree in Fig. 1. □
At this point, we observe the following fact.
Lemma 21
All the above Divisibility and Root problems in Definition 15, Definition 16, Definition 17, Definition 18, Definition 19 are contained in NP.
Proof
It is straightforward to come up with a witness and a verifier circuit that satisfies the definition of the decision class NP. For example in the cptp case, a witness is a matrix root that can be checked to be a cptp map using Remark 13 and squared in polynomial time, which is the verifier circuit. Both circuit and witness are clearly poly-sized and hence the claim follows. □
By encoding an instance of 1-in-3sat into a family of nonnegative matrices , we show the implication 1-in-3sat⟶Nonnegative Root and 1-in-3sat⟶(Doubly) Stochastic/cptp Divisibility, accordingly, from which NP-hardness of (Doubly) Stochastic/cptp Divisibility follows. The entire chain of reduction can be seen in Fig. 1.
2.4. Reduction of Stochastic Root to CPTP Root
This reduction is based on the following embedding.
Definition 22
Let be an orthonormal basis of . The embedding emb is defined as
We observe the following.
Lemma 23
We use the same notation as in Remark 13. Let and . Then A is positive (nonnegative) if and only if the Choi matrix is positive (semi-)definite. Furthermore, the row sums of A are 1—i.e. —if and only if . In addition, the spectrum of B satisfies .
Proof
The first claim follows directly from the matrix representation of our operators. There, the Choi isomorphism is manifest as the reshuffling operation or partial transpose
For more details, see e.g. [2].
The second statement follows from
The final claim is trivial. □
This remark immediately yields the following consequence.
Corollary 24
For a family of stochastic matrices parametrized by the index set S, there exists a family of square matrices , such that contains a stochastic matrix if and only if contains a cptp matrix.
2.5. Reduction of Nonnegative Root to Stochastic Root
The difference between Nonnegative Root and Stochastic Root is the extra normalization condition in the latter, see Definition 11. The following two lemmas show that this normalization does not pose an issue, so we can efficiently reduce the problem Nonnegative Root to Stochastic Root.
Lemma 25
For a family of square matrices parametrized by the index set S, all of which with at least one positive entry, there exists a family of square matrices such that contains a nonnegative matrix if and only if contains a stochastic matrix and such that . Furthermore, can be constructed efficiently from .
Proof
We explicitly construct our family as follows. Pick an and denote . Let d be the dimension of M. We first pick such that 1 and define
where by sum of matrix M and scalar x we mean , , and
Observe that form an orthogonal set—if one wishes, normalizing and pulling out the constant as eigenvalue to the corresponding eigenprojectors would work equally well.
By construction, is nonnegative if and only if is. Since the row sums of are always 1, is stochastic if and only if is nonnegative, and the claim follows. □
Lemma 26
Let the notation be as in Lemma 25 and write for the set of roots of N, see Definition 8. Assume for some . Then there exists a , such that and . Furthermore, the complement of in does not contain any stochastic roots.
Proof
The first statement is obvious, since for all ,
and hence clearly .
The last statement is not quite as straightforward—it is the main reason our carefully crafted matrix has its slightly unusual shape. All possible roots of P are of the form
It is easy to check that none of the other sign choices yields any stochastic matrix, so the claim follows.2 □
Corollary 27
The results of Lemma 25, Lemma 26 also hold for doubly stochastic matrices—observe that our construction of is already doubly stochastic.
2.6. Reduction of 1-in-3sat to Nonnegative Root
We now embed an instance of a boolean satisfiability problem, 1-in-3sat—see Definition 87 for details—into a family of matrices in a way that there exists an s such that is nonnegative if and only if the instance of 1-in-3sat is satisfiable. The construction is inspired by [8].
We identify
| (1) |
Denote with the three boolean variables occurring in the ith boolean clause, and let stand for the single ith boolean variable. Then 1-in-3sat translates to the inequalities
| (2) |
Theorem 28
Let be a 1-in-3sat instance. Then there exists a family of matrices such that nonnegative iff the instance is satisfiable.
To prove this, we first need the following technical lemma.
Lemma 29
Let be a 1-in-3sat instance. Then there exists a family of matrices such that ∃s: the first on-diagonal blocks of are nonnegative iff the instance is satisfiable. In addition, we have . Furthermore, , and the complement contains no nonnegative root.
Proof
For every boolean variable , define a vector such that their first elements are defined via
We will specify the dimension d later—obviously , and the free entries are used to orthonormalize all vectors in the end. For now, we denote the orthonormalization region with . We further define the vectors to have all 1s in the first entries, i.e. . Let then
(3) The variables denote a specific rescaled choice of the boolean variables , which—in order to avoid degeneracy—have to be distinct, i.e. via
(4) The are defined accordingly from the and is large but fixed.
Let further
where we have used an obvious block notation to pad with zeroes, which will come into play later.
The on-diagonal blocks of then encode the 1-in-3sat inequalities from equation (2)—demanding nonnegativity—as the set of equations
Note that we leave enough head space such that the rescaling in equation (4) does not affect any of the inequalities—see section 2.8 for details.
Observe further that the eigenvalues corresponding to each eigenprojector in the last term of equation (3) necessarily have opposite sign, otherwise we create complex entries. We will later rescale by a positive factor, under which the inequalities are invariant, so the first claim follows.
We can always orthonormalize the vectors and using the freedom left in , hence we can achieve that . It is straightforward to check that no other sign choice for the eigenvalues of the first two terms yields nonnegative blocks—see Fig. 2 for details. From this, the last two claims follow. □
Fig. 2.
for various sign choices of the eigenvalues cij, i,j = 1,2 corresponding to the eigenvectors c1,2. Only all positive signs and m:=∑jmij = −1 yields a nonnegative block (third from right in top row). Hatching signifies complex numbers, the colour scale is the same as in Fig. 3, i.e. light green denotes negative numbers, dark purple nonnegative entries.
2.7. Orthonormalization and handling the unwanted inequalities
As in [8], we have unwanted inequalities—the off-diagonal blocks in the first entries and the blocks involving the orthonormalization region . We first deal with the off-diagonal blocks in favour of enlarging the orthonormalization region, creating more—potentially negative—entries in there, and then fix the latter.
Off-diagonal blocks. We begin with the following lemma.
Lemma 30
Let the family be defined as in the proof of Lemma 29, and the corresponding 1-in-3sat instance. Then there exists a matrix such that the top left block of has at least one negative entry ∀s iff the instance is not satisfiable. Furthermore, , and has negative entries ∀s, .
Proof
Define
Then has rank 1.
From this mask, we now erase the first on-diagonal -blocks, while leaving all other entries in the upper left block positive. Define for where denotes the ith unit vector, and let
The variables are chosen close to 1 but distinct, e.g.
(5) where large but fixed. Then E has rank , and adding E to trivializes all unwanted inequalities in the upper left block. By picking M large enough, the on-diagonal inequalities are left intact.
One can check that all other possible sign choices for the roots of E create negative entries in parts of the upper left block where is zero ∀s. Furthermore, and E have distinct nonzero eigenvalues by construction—the orthogonality condition is again straightforward, hence the last two claims follow. □
Orthonormalization region.
Lemma 31
Let and . There exists a nonnegative rank 2 matrix such that the top left block of D has entries if and the rest of the matrix entries are . If , either the same holds true for , or .
Proof
Define
and let , where . Let further
where is used to orthonormalize Δ and , which is the case if
By explicitly writing out the rank 2 matrix
it is straightforward to check that D fulfils all the claims of the lemma—see Fig. 3 for an example. □
Fig. 3.
One branch of an unsatisfiable instance of 1-in-3sat encoded into a matrix of total rank 19. The negative entries—two bright dots—in the upper left block in the combined matrix (d) indicate that this branch does not satisfy the given instance. By looking at all other blocks, one sees that none translates to a nonnegative matrix. Observe that in this naïve implementation the orthonormalization region is suboptimally large.
2.8. Lifting singularities
The reader will have noted by now that even though we have orthonormalized all our eigenspaces, ensuring that the nonzero eigenvalues are all distinct, we have at the same time introduced a high-dimensional kernel in , E and D. The following lemma shows that this does not pose an issue.
Lemma 32
Let be the family of primary rational roots of some degenerate . Then there exists a non-degenerate matrix , such that for the family of roots of , we have positive iff positive. Furthermore, the entries of are rational with bit complexity .
Proof
Take a matrix . We need to distort the zero eigenvalues slightly away from 0. Using notation from Definition 36, a conservative estimate for the required smallness without affecting positivity would be
where we used the Jordan canonical form for some invertible Z and , such that collects all Jordan blocks corresponding to the eigenvalue 0, and collects the remaining ones. □
This will lift all remaining degeneracies and singularities, without affecting our line of argument above. Observe that all inequalities in our construction were bounded away from 0 with enough head space independent of the problem size, so positivity in the lemma is sufficient.
We thus constructed an embedding of 1-in-3sat into non-derogatory and non-degenerate matrices, as desired. It is crucial to note that we do not lose anything by restricting the proof to the study of these matrices, as the following lemma shows.
Lemma 33
There exists a Karp reduction of the Divisibility problems when defined for all matrices to the case of non-degenerate and non-derogatory matrices.
Proof
As shown in Lemma 21, containment in NP for this problem is easy to see, also in the degenerate or derogatory case. Since 1-in-3sat is NP-complete, there has to exist a poly-time reduction of the Divisibility problems—when defined for all matrices—to 1-in-3sat. Now embed this 1-in-3sat-instance with our construction. This yields a poly-time reduction to the non-degenerate non-derogatory case. □
2.9. Complete embedding
We now finally come to the proof of Theorem 28.
Proof of Theorem 28
Construct the family using Lemma 29 and Lemma 30, ensuring that all orthonormalizing is done, which preliminarily fixes the dimension d. By Lemma 31, we now construct a mask of dimension , where is picked such that we can also orthonormalize all previous vectors with respect to and δ.
By Lemma 29, Lemma 30, Lemma 31, Lemma 32, the perturbed family —where N and are chosen big enough so that all unwanted inequalities are trivially satisfied—fulfils the claims of the theorem and the proof follows. □
We finalize the construction as follows. In Theorem 28, we have embedded a given 1-in-3sat instance into a family of matrices , such that the instance is satisfiable if and only if at least one of those matrices is nonnegative.
By rescaling the entire matrix such that , we could show that this instance of 1-in-3sat is satisfiable if and only if the normalized matrix family , which we construct explicitly, contains a stochastic matrix.
As shown in section 2.3, this can clearly be answered by Stochastic Divisibility, as the family comprises all the roots of a unique matrix P. If this matrix is not stochastic, our instance of 1-in-3sat is trivially not satisfiable. If the matrix is stochastic, we ask Stochastic Divisibility for an answer—a positive outcome signifies satisfiability, a negative one non-satisfiability.
2.10. Bit complexity of embedding
To show that our results holds for only polynomially growing bit complexity, observe the following proposition.
Proposition 34
The bit complexity of the constructed embedding of a 1-in-3sat instance equals .
Proof
We can ignore any construction that multiplies by a constant prefactor, for example Lemma 25 and Lemma 26. The renormalization for Lemma 25 to does not affect either.
The rescaling in equation (4) and equation (5) yields a complexity of , and the same thus holds true for Lemma 29 and Lemma 30.
The only other place of concern is the orthonormalization region. Let us write for all vectors that need orthonormalization. In the nth step, we need to make up for entries with our orthonormalization, using the same amount of precision to solve the linear equations . This has to be done with a variant of the standard Gauss algorithm, e.g. the Bareiss algorithm—see for example [1]—which has nonexponential bit complexity.
Together with the lifting of our singularities, which has polynomial precision, we obtain . Completing the embedding in section 2.9 changes the bit complexity by at most another polynomial factor, and hence the claim follows. □
3. Distribution divisibility
3.1. Introduction
Underlying stochastic and quantum channel divisibility, and—to some extent—a more fundamental topic, is the question of divisibility and decomposability of probability distributions and random variables. An illustrative example is the distribution of the sum of two rolls of a standard six-sided die, in contrast to the single roll of a twelve-sided die. Whereas in the first case the resulting random variable is obviously the sum of two uniformly distributed random variables on the numbers , there is no way to achieve the outcome of the twelve-sided die as any sum of nontrivial “smaller” dice—in fact, there is no way of dividing any uniformly distributed discrete random variable into the sum of non-constant random variables. In contrast, a uniform continuous distribution can always be decomposed3 into two different distributions.
To be more precise, a random variable X is said to be divisible if it can be written as , where Y and Z are non-constant independent random variables that are identically distributed (iid). Analogously, infinite divisibility refers to the case where X can be written as an infinite sum of such iid random variables.
If we relax the condition —i.e. we allow Y and Z to have different distributions—we obtain the much weaker notion of decomposability. This includes using other sources of randomness, not necessarily uniformly distributed.
Both divisibility and decomposability have been studied extensively in various branches of probability theory and statistics. Early examples include Cramer's theorem [6], proven in 1936, a result stating that a Gaussian random variable can only be decomposed into random variables which are also normally distributed. A related result on distributions by Cochran [5], dating back to 1934, has important implications for the analysis of covariance.
An early overview over divisibility of distributions is given in [28]. Important applications of n-divisibility—the divisibility into n iid terms—is in modelling, for example of bug populations in entomology [18], or in financial aspects of various insurance models [30], [29]. Both examples study the overall distribution and ask if it is compatible with an underlying subdivision into smaller random events. The authors also give various conditions on distributions to be infinitely divisible, and list numerous infinitely divisible distributions.
Important examples for infinite divisibility include the Gaussian, Laplace, Gamma and Cauchy distributions, and in general all normal distributions. It is clear that those distributions are also finitely divisible, and decomposable. Examples of indecomposable distributions are Bernoulli and discrete uniform distributions.
However, there does not yet exist a straightforward way of checking whether a given discrete distribution is divisible or decomposable. We will show in this work that the question of decomposability is NP-hard, whereas divisibility is in P. In the latter case, we outline a computationally efficient algorithm for solving the divisibility question. We extend our results to weak-membership formulations (where the solution is only required to within an error ϵ in total variation distance), and argue that the continuous case is computationally trivial as the indecomposable distributions form a dense subset.
We start out in section 3.2 by introducing general notation and a rigorous formulation of divisibility and decomposability as computational problems. The foundation of all our distribution results is by showing equivalence to polynomial factorization, proven in section 3.3. This will allow us to prove our main divisibility and decomposability results in section 3.4 and 3.5, respectively.
3.2. Preliminaries
3.2.1. Discrete distributions
In our discussion of distribution divisibility and decomposability, we will use the standard notation and language as described in the following definition.
Definition 35
Let be a discrete probability space, i.e. Ω is at most countably infinite and the probability mass function —or pmf, for short—fulfils . We take the σ-algebra to be maximal, i.e. , and without loss of generality assume that the state space . Denote the distribution described by p with . A random variable is a measurable function from the sample space to some set B, where usually .
For the sake of completeness, we repeat the following well-known definition of characteristic functions.
Definition 36
Let be a discrete probability distribution with pmf p, and . Then
defines the characteristic function of .
It is well-known that two random variables with the same characteristic function have the same cumulative density function.
Definition 37
Let the notation be as in Definition 35. Then the distribution is called finite if for some .
Remark 38
Let be a discrete probability distribution with pmf p. We will—without loss of generality—assume that and for the pmf p of a finite distribution. It is a straightforward shift of the origin that achieves this.
3.2.2. Continuous distributions
Definition 39
Let be a measurable space, where is the σ-algebra of . The probability distribution of a random variable X on is the Radon–Nikodym derivative f, which is a measurable function with , where μ is a reference measure on .
Observe that this definition is more general than Definition 35, where the reference measure is simply the counting measure over the discrete sample space Ω. Since we are only interested in real-valued univariate continuous random variables, observe the following important remark.
Remark 40
We restrict ourselves to the case of with the Borel sets as measurable subsets and the Lebesgue measure μ. In particular, we only regard distributions with a probability density function f—or pdf, for short—i.e. we require the cumulative distribution function to be absolutely continuous.
Corollary 41
The cumulative distribution function P of a continuous random variable X is almost everywhere differentiable, and any piecewise continuous function f with defines a valid continuous distribution.
3.2.3. Divisibility and decomposability of distributions
To make the terms mentioned in the introduction rigorous, note the two following definitions.
Definition 42
Let X be a random variable. It is said to be n-decomposable if for some , where are independent non-constant random variables. X is said to be indecomposable if it is not decomposable.
Definition 43
Let X be a random variable. It is said to be n-divisible if it is n-decomposable as and . X is said to be infinitely divisible if , with for some nontrivial distribution .
If we are not interested in the exact number of terms, we also simply speak of decomposable and divisible. We will show in section 3.5.7 that—in contrast to divisibility—the question of decomposability into more than two terms is not well-motivated.
Observe the following extension of Remark 38.
Lemma 44
Let be a discrete probability distribution with pmf p. If p obeys Remark 38, then we can assume that its factors do as well. In the continuous case, we can without loss of generality assume the same.
Proof
Obvious from positivity of convolutions in case of divisibility. For decomposability, we can achieve this by shifting the terms symmetrically. □
3.2.4. Markov chains
To establish notation, we briefly state some well-known properties of Markov chains.
Remark 45
Take discrete iid random variables and write for all , independent of . Define further
Then defines a discrete-time Markov chain, since
This last property is also called stationary independent increments, i.e. we add an iid random variable at each step.
Remark 46
Let the notation be as in Remark 45. The transition probabilities of the Markov chain are then given by
In matrix form, we write the transition matrix
Working with transition matrices is straightforward—if the initial distribution is given by , then obviously . Iterating P then yields the distributions of , respectively—e.g. .
We know that is divisible—namely into , by construction—but what if we ask this question the other way round? We will show in the next section that there exists a relatively straightforward way to calculate if an (infinite) matrix in the shape of P has a stochastic root—i.e. if is divisible. Observe that this is not in contradiction with Theorem 1, as the theorem does not apply to infinite operators.
In contrast, the more general question of whether we can write a finite discrete random variable as a sum of nontrivial, potentially distinct random variables will be shown to be NP-hard.
3.3. Equivalence to polynomial factorization
Starting from our digression in section 3.2.4 and using the same notation, we begin with the following definition.
Definition 47
Denote with S the shift matrix . Then we can write
Since S just acts as a symbol, we write
and , . We call the characteristic polynomial of —not to be confused with the characteristic polynomial of a matrix. The equivalence space defines the set of all characteristic polynomials, and can be written as
We mod out the overall scaling in order to keep the normalization condition implicit—if we write , we will always assume . An alternative way to define these characteristic polynomials is via characteristic functions, as given in Definition 36.
Definition 48
.
The reason for this definition is that it allows us to reduce operations on the transition matrix P or products of characteristic functions to algebraic operations on . This enables us to translate the divisibility problem into a polynomial factorization problem and use algebraic methods to answer it. Observe that the are normed vector spaces, which we will make use of later.
Definition 49
We define norms on the space of characteristic polynomials of degree N——via . If N is not explicitly specified, we usually assume .
First note the following proposition.
Proposition 50
There is a 1-to-1 correspondence between finite distributions and characteristic polynomials , as defined in Definition 47.
Proof
Clear by Definition 48 and the uniqueness of characteristic functions. □
While this might seem obvious, it is worth clarifying, since this correspondence will allow us to directly translate results on polynomials to distributions.
The following lemma reduces the question of divisibility and decomposability—see Definition 42, Definition 43—to polynomial factorization.
Lemma 51
A finite discrete distribution is n-divisible iff there exists a polynomial such that . is n-decomposable iff there exist polynomials such that .
Proof
Assume that is n-divisible, i.e. that there exists a distribution and random variables such that . Denote with Q the transition matrix of , as defined in Remark 46, and write q for its probability mass function. Then
as before. Write for the characteristic polynomial of . By Definition 47, , and hence . Observe that
and hence is normalized automatically.
The other direction is similar, as well as the case of decomposability, and the claim follows. □
3.4. Divisibility
3.4.1. Computational problems
We state an exact variant of the computational formulation of the question according to Definition 43—i.e. one with an allowed margin of error—as well as a weak membership formulation.
Definition 52 —
- Instance.
Finite discrete random variable .
- Question.
Does there exist a finite discrete distribution for random variables ?
Observe that this includes the case , which we defined in Definition 43.
Definition 53 —
- Instance.
Finite discrete random variable with pmf .
- Question.
If there exists a finite discrete random variable Y with pmf , such that and such that
- 1.
Y is n-divisible—return Yes- 2.
Y is not n-divisible—return No.
3.4.2. Exact divisibility
Theorem 54
.
Proof
By Lemma 51 it is enough to show that for a characteristic polynomial , we can find a in polynomial time. In order to achieve this, write as a Taylor expansion with rest, i.e.
If , then n-divides f, and then the distribution described by f is n-divisible. Since the series expansion is constructive and can be done efficiently—see [25]—the claim follows.
If the distribution coefficients are rational numbers, another method is to completely factorize the polynomial—e.g. using the LLL algorithm, which is known to be easy in this setting—sort and recombine the linear factors, which is also in , see for example [13]. Then check if all the polynomial root coefficients are positive. □
We collect some further facts before we move on.
Remark 55
Let p be the probability mass function for a finite discrete distribution , and write . If , then is obviously not n-divisible for , and furthermore not for any n that do not divide . Indeed, is not n-divisible if the latter condition holds for either or .
Remark 56
Let be an n-divisible random variable, i.e. . Then is unique.
Proof
This is clear, because is a unique factorization domain. □
3.4.3. Divisibility with variation
As an intermediate step, we need to extend Theorem 54 to allow for a margin of error ϵ, as captured by the following definition.
Definition 57 —
- Instance.
Finite discrete random variable with pmf .
- Question.
Do there exist finite random variables with pmfs , such that ?
Lemma 58
is in P.
Proof
Let be the characteristic polynomial of a finite discrete distribution, and . By padding the distribution with 0s, we can assume without loss of generality that is a multiple of n. A polynomial root—if it exists—has the form , where . Then
Comparing coefficients in the divisibility condition , the latter translates to the set of inequalities
Each term but the first one is of the form , where is monotonic. This can be rewritten as . It is now easy to solve the system iteratively, keeping track of the allowed intervals for the .
If for some i, we return No, otherwise Yes. We have thus developed an efficient algorithm to answer , and the claim of Lemma 58 follows. □
Remark 59
Given a random variable X, the algorithm constructed in the proof of Lemma 58 allows us to calculate the closest n-divisible distribution to X in polynomial time.
Proof
Straightforward, e.g. by using binary search over ϵ. □
3.4.4. Weak divisibility
For the weak membership problem, we reduce to .
Theorem 60
.
Proof
Let be a finite discrete distribution. If answers Yes, we know that there exists an n-divisible distribution ϵ-close to . In case of No, itself is not n-divisible, hence we know that there exists a non-n-divisible distribution close to . □
3.4.5. Continuous distributions
Let us briefly discuss the case of continuous distributions—continuous meaning a non-discrete state space , as specified in section 3.2.2. Although divisibility of continuous distributions is well-defined and widely studied, formatting the continuous case as a computational problem is delicate, as the continuous distribution must be specified by a finite amount of data for the question to be computationally meaningful. The most natural formulation is the continuous analogue of Definition 43 as a weak-membership problem. However, we can show that this problem is computationally trivial.
First observe the following intermediate result.
Lemma 61
Take with , where , . We claim that if f is divisible, then both and are divisible.
Proof
Due to symmetry, it is enough to show divisibility for . Assuming f is divisible, we can write , i.e. . It is straightforward to show that . Define
(6) where . Then
We see that for . For , the support of the integrand is contained in , and hence we can write . It hence remains to show that . The integrand . The difference in the integration domains can be seen in Fig. 4. We get two cases.
Let . Assume such that . Let . We then have , and due to continuity , contradiction, because .
Analogously fix . Assume such that , and thus , where , . Then , due to continuity , again contradiction. □
Fig. 4.
(a) Integration domains in Proposition 62 for (dark purple shading) and f|A (light green shading), respectively. (b) Example for integration domains in Proposition 85 for (dark purple shading) and f|A (light green shading), respectively.
Proposition 62
Let denote the set of piecewise continuous nonnegative functions of bounded support. Then the set of nondivisible functions, is dense in .
Proof
It is enough to show the claim for functions with . Let , and . Take to be nondivisible with , and define
By construction, , but is not divisible, hence by Lemma 61 g is not divisible, and the claim follows. □
Corollary 63
Let . Let X be a continuous random variable with pdf . Then there exists a nondivisible random variable Y with pdf , such that .
Proof
Let small. Since , we can pick and with . Then
and Proposition 62 finishes the claim. □
Corollary 64
Any weak membership formulation of divisibility in the continuous setting is trivial to answer, as for all , there always exists a nondivisible distribution ϵ close to the one at hand. Similar considerations apply to other formulations of the continuous divisibility problem.
3.4.6. Infinite divisibility
Let us finally and briefly discuss the case of infinite divisibility. While interesting from a mathematical point of view, the question of infinite divisibility is ill-posed computationally. Trivially, discrete distributions cannot be infinitely divisible, as follows directly from Theorem 54. A similar argument shows that neither the ϵ, nor the weak variant of the discrete problem is a useful question to ask, as can be seen from Lemma 58, Theorem 60.
By the same arguments as in section 3.4.5, the weak membership version is thus easy to answer and therefore trivially in P.
3.5. Decomposability
3.5.1. Computational problems
We define the decomposability analogue of Definition 52, Definition 53 as follows.
Definition 65 Distribution Decomposability —
- Instance.
Finite discrete random variable .
- Question.
Do there exist finite discrete distributions for random variables ?
Definition 66 —
- Instance.
Finite discrete random variable with pmf .
- Question.
If there exists a finite discrete random variable Y with pmf , such that and such that
- 1.
Y is decomposable—return Yes- 2.
Y is indecomposable—return No.
In this section, we will show that Distribution Decomposability is NP-hard, for which we will need a series of intermediate results. Requiring the support of the first random variable to have a certain size, i.e. , yields the following program.
Definition 67 —
- Instance.
Finite discrete random variable with .
- Question.
Do there exist finite discrete distributions for random variables and such that ?
We then define Distribution Even Decomposability to be the case where the two factors have equal support.
The full reduction tree can be seen in Fig. 5.
Fig. 5.
Complete chain of reduction for our discrete programs. The dashed lines are obvious and not mentioned explicitly.
Analogous to Lemma 21, we state the following observation.
Lemma 68
All the above Decomposability problems in Definition 65, Definition 66 are contained in NP.
Proof
It is straightforward to construct a witness and a verifier that satisfies the definition of the decision class NP. For example in Definition 78, a witness is given by two tables of numbers which are easily checked to form finite discrete distributions. Convolving these lists and comparing the result to the given distribution can clearly be done in polynomial time. Both verification and witness are thus poly-sized, and the claim follows. □
3.5.2. Even decomposability
We continue by proving that Distribution Even Decomposability is NP-hard. We will make use of the following variant of the well-known Subset Sum problem, which is NP-hard—see Lemma 92 for a proof. The interested reader will find a rigorous digression in section A.1.
Definition 69 Even Subset Sum —
- Instance.
Multiset S of reals with even, .
- Question.
Does there exist a multiset with and such that ?
This immediately leads us to the following intermediate result.
Lemma 70
Distribution Even Decomposability is NP-hard.
Proof
Let be an instance of Even Subset Sum. We will show that there exists a polynomial of degree such that f is divisible into with iff is a Yes instance. We will explicitly construct the polynomial . As a first step, we transform the Even Subset Sum instance , making it suited for embedding into f.
Let and denote the elements in S with . We perform a linear transformation on the elements via
(7) where is a free scaling parameter chosen later such that small. Let . By Lemma 93, we see that . Since further , we know that is a Yes instance if and only if there exist two non-empty disjoint subsets such that both
(8) The next step is to construct the polynomial f and prove that it is divisible into two polynomial factors if and only if is a Yes instance. We first define quadratic polynomials for , and set for . Observe that for suitably small δ, the are irreducible over . With this notation, we claim that has the required properties.
In order to prove this claim, we first show that for sufficiently small scaling parameter a, a generic subset with and , the coefficients satisfy
(9)
(10)
(11)
(12) where . Indeed, if then , where , then and for aforementioned subsets , and conversely if is a Yes instance, then —remember that is a unique factorization domain, so all polynomials of the shape necessarily decompose into quadratic factors.
By construction, and , so the first two assertions follow immediately. To address equation (11) and (12), we further split up the even and odd coefficients into
(13) where is the coefficient of . We thus have in the limit —we will implicitly assume the limit in this proof and drop it for brevity. Our goal is to show that the scaling in δ suppresses the combinatorial factors, i.e. that is dominated by its first terms and , respectively.
In order to achieve this, we need some more machinery. First regard . It is immediate that for an expansion
we get coefficient-wise inequalities
(14) We will calculate the coefficients of explicitly and use them to bound the coefficients of .
Using a standard Cauchy summation and the uniqueness of polynomial functions, we obtain
With we denote the falling factorial, i.e. . By convention, .
Regarding even and odd powers of x separately, we can thus deduce that
A straightforward estimate shows that for the even and odd case, we obtain the coefficient scaling
which means that e.g. picking is enough to exponentially suppress the higher order combinatorial factors.
We will now separately address the even and odd cases—equation (11) and (12).
Even case. As the constant coefficients in δ, it is the same as for and by equation (14), we immediately get
Odd case. Note that if , we are done, so assume in the following. A simple combinatorial argument gives
so it remains to show that . Analogously to the even case, by equation (14), we conclude
which finalizes our proof. □
3.5.3. m-Support decomposability
In the next two sections we will generalize the last result to . As a first observation, we note the following.
Lemma 71
Let be such that . Then .
Proof
See proof of Theorem 54, and an easy scaling argument for completes the proof. As in Remark 91, this symmetrically extends to . □
Observe that yields exponential growth, hence the remark is consistent with the findings in section 3.5.2.
We now regard the general case. As in the last section, we need variants of the Subset Sum problem, which are given in the following two definitions.
Definition 72 —
- Instance.
Multiset S of reals with even, .
- Question.
Does there exist a multiset with and such that ?
Definition 73 —
- Instance.
Multiset S of positive integers or reals, .
- Question.
Does there exist a multiset with and such that ?
Both are shown to be NP-hard in Lemma 90, Lemma 94, or by the following observation. In order to avoid having to take absolute values in the definition of , we reduce it to multiple instances of , by using the following interval partition of the entire range .
Remark 74
For every , there exists a partition of the interval with suitable such that and
This finally leads us to the following result.
Lemma 75
is NP-hard.
Proof
We will show the reduction . Let m be fixed. Let be an Subset Sum instance. For brevity, we write . Without loss of generality, by Corollary 89, we again assume . Now define . Using Remark 74, pick a suitable subdivision of the interval , such that
One can verify that
where we chose . The latter program we can answer using the same argument as for the proof of Lemma 70, and the claim follows. □
As a side remark, this also confirms the following well-known fact.
Corollary 76
Let be as in Lemma 71. Then .
3.5.4. General decomposability
We have already invented all the necessary machinery to answer the general case.
Theorem 77
Distribution Decomposability is NP-hard.
Proof
Follows immediately from Lemma 70, where we regard the special set of Subset Sum instances for which is such that . We show in Lemma 96 that is still NP-hard, thus the claim follows. □
3.5.5. Decomposability with variation
As a further intermediate result—and analogously to Definition 57—we need to allow for a margin of error ϵ.
Definition 78 —
- Instance.
Finite discrete random variable with pmf .
- Question.
Do there exist finite discrete random variables with pmfs , , such that ?
This definition leads us to the following result.
Lemma 79
is NP-hard.
Proof
First observe that we can restate this problem in the following equivalent form. Given a finite discrete distribution with characteristic polynomial , do there exist two finite discrete distributions with characteristic polynomials such that ? Here, we are using the maximum norm from Definition 49, and assume without loss of generality that .
As is a polynomial, we can regard its Viète map , where , which continuously maps the polynomial roots to its coefficients. It is a well-known fact—see [32] for a standard reference—that v induces an isomorphism of algebraic varieties , where is the nth symmetric group. This shows that is polynomial, and hence the roots of lie in an -ball around those of . By a standard uniqueness argument we thus know that if with as in the proof of Lemma 70, then with , where , —we again implicitly assume the limit .
We continue by proving the reduction , which is NP-hard as shown in Lemma 97. Let be a Subset Sum multiset. We claim that it is satisfiable if and only if the generated characteristic function —where we used the notation of the proof of Lemma 70—defines a finite discrete probability distribution and the corresponding random variable X is a Yes instance for .
First assume is such a Yes instance. Then , and there exist two characteristic polynomials and as above and such that . We also know that if , then such that , where and denotes an ϵ ball around the set T, and analogously for , with . Regarding the linear coefficients, we thus have
(15) Now the case if is a No instance. Assume there exists a nontrivial multiset satisfying
Then by construction and , contradiction, and the claim follows. □
3.5.6. Weak decomposability
Analogously to section 3.4.4, we now regard the weak membership problem of decomposability.
Theorem 80
is NP-hard.
Proof
In order to show the claim, we prove the reduction , where the function . It is clear that the polynomial factor leaves the NP-hardness of the latter program intact.
We use the same notation as in the proof of Lemma 79. Let be a Yes instance of , and define . From equation (15) it immediately follows that is a Yes instance of Distribution , where we allow . We have hence shown that there exists an ball around each Yes instance that solely contains Yes instances.
A similar argument holds for the No instances. It is clear that these cases can be answered using , and the claim follows. □
3.5.7. Complete decomposability
Another interesting question to ask is for the complete decomposition of a finite distribution into a sum of indecomposable distributions. We argue that this decomposition is not unique.
Proposition 81
There exists a family of finite distributions with probability mass functions and such that, for each , there are at least n! distinct decompositions into indecomposable distributions.
Proof
We explicitly construct the family . Let . We will define a set of irreducible quadratic polynomials such that are not positive, but are positive quartics —and thus define valid probability distributions. Since is a unique factorization domain the claim then follows.
Following the findings in the proof of Lemma 70, it is in fact enough to construct a set and such that —then let , . It is straightforward to verify that e.g.
fulfil these properties. As an illustration, and the roots of its characteristic polynomial are shown in Fig. 6. □
Remark 82
Observe that for , the construction in Proposition 81 allows decompositions into m indecomposable terms, where .
Corollary 83
is not a unique factorization domain.
Proposition 81 and Remark 82 show that an exponential number of complete decompositions—all of which have different distributions—do not give any further insight into the distribution of interest–indeed, as the number of positive indecomposable factors is not even unique. Asking for a non-maximal decomposition into indecomposable terms does therefore not answer more than whether the distribution is decomposable at all.
Fig. 6.
Construction of a family of distributions with at least n! distinct decompositions, cf. Proposition 81. Shown is for n = 3. The dashed line shows a normal distribution for comparison.
Indeed, the question whether one can decompose a distribution into indecomposable parts can be trivially answered with Yes, but if we include the condition that the factors have to be non-trivial, or for decomposability into a certain number of terms—say or the maximum number of terms—the problem is also obviously NP-hard by the previous results.
In short, by Theorem 77, we immediately obtain the following result.
Corollary 84
Let be a finite discrete distribution. Deciding whether one can write as any nontrivial sum of irreducible distributions is NP-hard.
3.5.8. Continuous distributions
Analogous to our discussion in section 3.4.5, the exact and ϵ variants of the decomposability question are computationally ill-posed. We again point out that answering the weak membership version is trivial, since the set of indecomposable distributions is dense, as the following proposition shows.
Proposition 85
Let denote the piecewise linear nonnegative functions of bounded support. Then the set of indecomposable functions, is dense in .
Proof
We first extend Lemma 61, and again take . While not automatically true that , we can assume this by shifting r and s symmetrically. We also assume , and hence —see Lemma 44 for details.
Since , we immediately get . Furthermore, . Analogously to equation (6), we define
(16) The integration domain difference is derived analogously, and can be seen in an example in Fig. 4. We again regard the two cases separately.
Let . Assume such that . Then , contradiction. Now fix , and assume . Since , yields another contradiction.
The rest of the proof goes through analogously. □
Corollary 86
Let . Let X be a continuous random variable with pmf . Then there exists an indecomposable random variable Y with pmf , such that .
Proof
See Corollary 63. □
4. Conclusion
In section 2, we have shown that the question of existence of a stochastic root for a given stochastic matrix is in general at least as hard as answering 1-in-3sat, i.e. it is NP-hard. By Corollary 27, this NP-hardness result also extends to Nonnegative and Doubly Stochastic Divisibility, which proves Theorem 1. A similar reduction goes through for cptp Divisibility in Corollary 24, proving NP-hardness of the question of existence of a cptp root for a given cptp map.
In section 3, we have shown that—in contrast to cptp and stochastic matrix divisibility—distribution divisibility is in P, proving Theorem 4. On the other hand, if we relax divisibility to the more general decomposability problem, it becomes NP-hard as shown in Theorem 6. We have also extended these results to weak membership formulations in Theorem 5, Theorem 7—i.e. where we only require a solution to within ϵ in the appropriate metric—showing that all the complexity results are robust to perturbation.
Finally, in section 3.4.5 and 3.5.8, we point out that for continuous distributions—where the only computationally the only meaningful formulations are the weak membership problems or closely related variants—questions of divisibility and decomposability become computationally trivial, as the nondivisible and indecomposable distributions independently form dense sets.
As containment in NP for all of the NP-hard problems is easy to show (Lemma 21, Lemma 68), these problems are also NP-complete. Thus our results imply that, apart for the distribution divisibility problem which is efficiently solvable, all other divisibility problems for maps and distributions are equivalent to the famous conjecture, in the following precise sense: A polynomial-time algorithm for answering any one of these questions—(Doubly) Stochastic, Nonnegative or cptp Divisibility, or either of the Decomposability variants—would prove . Conversely, solving would imply that there exists a polynomial-time algorithm to solve all of these Divisibility problems.
Acknowledgements
Johannes Bausch would like to thank the German National Academic Foundation and EPSRC (grant number 1600123) for financial support. Toby Cubitt is supported by the Royal Society (grant number UF110164). The authors are grateful to the Isaac Newton Institute for Mathematical Sciences, where part of this work was carried out, for their hospitality during the 2013 programme “Mathematical Challenges in Quantum Information Theory”.
Submitted by V. Mehrmann
Footnotes
The exact bound is .
The reader may try to find a simpler matrix that does the trick.
All continuous uniform distributions decompose into the sum of a discrete Bernoulli distribution and another continuous uniform distribution. This decomposition is never unique.
Contributor Information
Johannes Bausch, Email: jkrb2@cam.ac.uk.
Toby Cubitt, Email: t.cubitt@ucl.ac.uk.
Appendix A.
A.1. NP-toolbox
Boolean satisfiability problems.
Definition 87 1-in-3sat —
- Instance:
boolean variables and clauses where , usually denoted as a 4-tuple . The boolean operator R satisfies
- Question:
Does there exist a truth assignment to the boolean variables such that every clause contains exactly one true variable?
Subset sum problems. We start out with the following variant of a well-known NP-complete problem—see for example [11] for a reference.
Definition 88 Subset Sum, variant —
- Instance.
Multiset S of integer or rational numbers, .
- Question.
Does there exist a multiset such that ?
From the definition, we immediately observe the following rescaling property.
Corollary 89
Let and a Subset Sum instance. Then .
For a special version of Subset Sum, —as defined in Definition 72—we observe the following.
Lemma 90
.
Proof
If is a Subset Sum instance, then
□
Remark 91
It is clear that for . Furthermore, .
Observe that this remark indeed makes sense, as should give False, which is the desired outcome for . We further reduce Subset Sum to Even Subset Sum, as defined in Definition 69.
Lemma 92
Even Subset Sum⟵Subset Sum.
Proof
Let be an Subset Sum instance. Define . Then if , we know that there exists . Let then without the 0s. It is obvious that then . The False case reduces analogously, hence the claim follows. □
For Even Subset Sum, we generalize Corollary 89 to the following scaling property.
Lemma 93
Let , , and an Even Subset Sum instance. Then , where addition and multiplication is defined element-wise.
Proof
Straightforward, since we require . □
For Definition 73, we finally show
Lemma 94
.
Proof
Immediate from . □
Partition problems. Another well-known NP-complete problem which will come into play in the proof of Theorem 77 is set partitioning.
Definition 95 Partition —
- Instance.
Multiset A of positive integers or reals.
- Question.
Does there exist a multiset with ?
Lemma 96
For the special case of Subset Sum with instance , where the bound equals the total sum of the instance numbers , we obtain the equivalence .
Proof
Let S be the multiset of a Subset Sum instance , where we assume without loss of generality that all . Now first assume . In that case the claim follows immediately, since the problems are identical.
Without loss of generality, we can thus assume and regard the set , such that .
If now , we know that there exists . Now assume T contains both copies of . Then clearly
since . The same argument shows that exactly one , and hence .
On the other hand, if , then it immediately follows that . □
Finally observe the following extension of Lemma 96.
Lemma 97
Let , f a polynomial. Then .
Proof
The proof is the same as for Lemma 96, but we regard instead. □
References
- 1.Bareiss E.H. Sylvester's identity and multistep integer-preserving Gaussian elimination. Math. Comp. sep 1968;22(103):565–578. [Google Scholar]
- 2.Bengtsson I., Życzkowski K. Cambridge University Press; 2006. Geometry of Quantum States: An Introduction to Quantum Entanglement. [Google Scholar]
- 3.Charitos T., de Waal P.R., van der Gaag L.C. Computing short-interval transition matrices of a discrete-time Markov chain from partially observed data. Stat. Med. mar 2008;27(6):905–921. doi: 10.1002/sim.2970. [DOI] [PubMed] [Google Scholar]
- 4.Choi M.-D. Completely positive linear maps on complex matrices. Linear Algebra Appl. 1975;10(3):285–290. [Google Scholar]
- 5.Cochran W.G. The distribution of quadratic forms in a normal system, with applications to the analysis of covariance. Math. Proc. Cambridge Philos. Soc. oct 1934;30(02):178–191. [Google Scholar]
- 6.Cramér H. Über eine Eigenschaft der normalen Verteilungsfunktion. Math. Z. dec 1936;41(1):405–414. [Google Scholar]
- 7.Cubitt T.S., Eisert J., Wolf M.M. Extracting dynamical equations from experimental data is NP hard. Phys. Rev. Lett. mar 2012;108(12) doi: 10.1103/PhysRevLett.108.120503. [DOI] [PubMed] [Google Scholar]
- 8.Cubitt T.S., Eisert J., Wolf M.M. The complexity of relating quantum channels to master equations. Comm. Math. Phys. jan 2012;310(2):383–418. [Google Scholar]
- 9.Egleston P.D., Lenker T.D., Narayan S.K. The nonnegative inverse eigenvalue problem. Linear Algebra Appl. mar 2004;379:475–490. [Google Scholar]
- 10.Elfving G. Zur Theorie der Markoffschen Ketten. Acta Soc. Sci. Fennicae N. Ser. A. 1937;2(8):1–17. [Google Scholar]
- 11.Garey M.R., Johnson D.S. W.H. Freeman & Co.; jan 1979. Computers and Intractability: A Guide to the Theory of NP-Completeness. [Google Scholar]
- 12.Gorini V. Completely positive dynamical semigroups of N-level systems. J. Math. Phys. aug 1976;17(5):821. [Google Scholar]
- 13.Hart W., van Hoeij M., Novocin A. Proceedings of the 36th International Symposium on Symbolic and Algebraic Computation – ISSAC '11. ACM Press New York; New York, USA: jun 2011. Practical polynomial factoring in polynomial time; p. 163. [Google Scholar]
- 14.He Q.-M., Gunn E. A note on the stochastic roots of stochastic matrices. J. Syst. Sci. Syst. Eng. jun 2003;12(2):210–223. [Google Scholar]
- 15.Higham N.J. Computing real square roots of a real matrix. Linear Algebra Appl. apr 1987;88–89:405–430. [Google Scholar]
- 16.Higham N.J., Lin L. On pth roots of stochastic matrices. Linear Algebra Appl. aug 2011;435(3):448–463. [Google Scholar]
- 17.Jarrow R.A. A Markov model for the term structure of credit risk spreads. Rev. Financ. Stud. apr 1997;10(2):481–523. [Google Scholar]
- 18.S.K. Katti, Infinite divisibility of discrete distributions. III, 1977.
- 19.Kingman J.F.C. The imbedding problem for finite Markov chains. Probab. Theory Related Fields. 1962;1(1):14–24. [Google Scholar]
- 20.Lin L. University of Manchester; 2011. Roots of stochastic matrices and fractional matrix powers. PhD thesis. [Google Scholar]
- 21.Lindblad G. On the generators of quantum dynamical semigroups. Comm. Math. Phys. 1976;48(2):119–130. [Google Scholar]
- 22.Ljung L. Prentice Hall; 1987. System Identification: Theory for the User. [Google Scholar]
- 23.Loring A.E. D. Van Nostrand; 1878. A Hand-Book of the Electromagnetic Telegraph. [Google Scholar]
- 24.Minc H. Wiley; 1988. Nonnegative Matrices. [Google Scholar]
- 25.Müller N.T. Uniform computational complexity of Taylor series. In: Ottmann T., editor. Proceedings of the 13th International Colloquium on Automata, Languages and Programming. vol. 267. Springer Berlin Heidelberg; Berlin, Heidelberg: jan 1987. pp. 435–444. (Lecture Notes in Computer Science). [Google Scholar]
- 26.Müller-Hermes A., Reeb D., Wolf M.M. Quantum subdivision capacities and continuous-time quantum coding. IEEE Trans. Inform. Theory. 2015;61(1):565–581. [Google Scholar]
- 27.Nielsen M.A., Knill E., Laflamme R. Complete quantum teleportation using nuclear magnetic resonance. Nature. nov 1998;396(6706):15. [Google Scholar]
- 28.Steutel F., Kent J. Infinite divisibility in theory and practice. Scand. J. Stat. 1979;6(2):57–64. [Google Scholar]
- 29.Thorin O. On the infinite divisibility of the Pareto distribution. Scand. Actuar. J. jan 1977;1977(1):31–40. [Google Scholar]
- 30.Thorin O. On the infinite divisibility of the lognormal distribution. Scand. Actuar. J. mar 1977;1977(3):121–148. [Google Scholar]
- 31.Waugh F.V., Abel M.E. On fractional powers of a matrix. J. Amer. Statist. Assoc. sep 1967;62(319):1018–1021. [Google Scholar]
- 32.Whitney H. Addison–Wesley; 1972. Complex Analytic Varieties. (Addison-Wesley Series in Mathematics). [Google Scholar]
- 33.Wolf M.M., Cirac J.I. Dividing quantum channels. Comm. Math. Phys. feb 2008;279(1):147–168. [Google Scholar]






