Post · 10 min read· pp. 179–184

An Approach to Graph Isomorphism?

Graph isomorphism and classic invariant theory

images2

David Hilbert is one the greatest mathematicians of all times, but you knew that. He solved hard open problems, he unified fields, and he created his famous “program” for the foundations of mathematics. The latter was essentially destroyed by Gödel Incompleteness Theorem.

Today I want to focus on an area he made important contributions to, and is related to one of his problems from his famous list of 23{23} open questions. He presented his list at the international mathematics meeting in Paris in 1900. His list of problems have been extremely influential, and has lead to great work by many mathematicians. Hilbert was generally an excellent selector of what problems were important and could be solved.

Some of the problems were solved quickly, some were solved decades later, some are still open, and some are “fuzzier” and may never really be solved. Others were solved, then errors were found in their proofs decades later, and the problems were re-solved. See this for a wonderful treatment of the problems and the people who have worked on them.

In the category of problems that were solved quickly is Hilbert’s question about tetrahedra: his third problem. This problem was solved fairly quickly: Ron Graham once told me this problem was so “easy” that the solver, Max Dehn, found it during Hilbert’s talk, but he did miss the statements of the next two problems. Ron is slightly exaggerating the situtation, but not by much. While the proof is clever, it is not probably as hard as most of the rest of the Hilbert problems.

Today I want to talk about graph isomorphism and its relationship to classic invariant theory. Invariant theory is an area that Hilbert made major contributions to and is related to one of his problems, the fourteenth. This post is based on work that I am doing with one of my graduate students, Farbod Shokrieh, and with Ken Regan.

Graph Isomorphism

Graph Isomorphism (GI) is one of the most famous problems in complexity theory and mathematics. The appeal of this problem is that it sounds so approachable: it is just about undirected graphs, after-all. But it is one of the great “diseases,” that is it is one of those easy to state problems that has bent a little over the years, but refuses to break. There are some quite pretty results known about GI, but still it is unknown whether GI is in polynomial time. We do not even know if GI is in P/poly{\mathsf{P/poly}}, i.e. does it have polynomial size circuits, nor do we know if it is in NP∩co–NP{\mathsf{NP}\cap\mathsf{co} \text{--} \mathsf{NP}}. We owe Laszlo Babai the great insight into creating the new class AM⊇NP{\mathsf{AM} \supseteq \mathsf{NP}}, so at at least we have that GI is in NP∩co–AM{\mathsf{NP}\cap \mathsf{co} \text{--} \mathsf{AM}}.

Many special cases are known to be easy: trees, planar graphs, random graphs with high probability, and constant degree graphs: the latter is a beautiful result of Eugene Luks. There are also many equivalent problems and related results, but I will not attempt to give a complete list of all the known results.

My goal today is to outline a connection between GI and some interesting questions from classic mathematics. In the best case, it could lead to real progress on GI. In any event the idea raises questions and potential applications that beg to be explored further.

Bipartite Graphs

Instead of the general GI problem we will focus on another GI complete problem. The problem is given two 0{0}—1{1} n×n{n \times n} matrices G{G} and H{H} are there two permutations matrices P{P} and Q{Q} so that

PGQ=H.\displaystyle P G Q = H.

We claim that this problem is equivalent to GI problem. We will call this problem the restricted bipartite graph isomorphism (RBGI) problem.

The rationale for the name is that essentially it is a special case of the bipartite graph isomorphism problem. The only extra restrictions we have added is that we:

  1. We require the two color sets to have the same cardinality;
  2. We insist that the isomorphism preserve the colors.

It is easy to see that these leave the problem GI complete, since it is an old result that GI can be reduced to the bipartite case. However, it is convenient to have the more restricted problem.

For the remainder of this post we will use the matrix representation of graphs. Thus, when say that G{G} is a graph, we simply mean that G{G} is a n×n{n \times n} 0{0}—1{1} matrix. Thus, the graph G{G} is isomorphic to H{H} provided there are permutation matrices P{P} and Q{Q} so that

PGQ=H.\displaystyle P G Q = H.

Invariant Theory for the Symmetric Group

A central problem of invariant theory is given a finite group G{G} that acts on X=(x1,…,xn){X=(x_{1},\dots,x_{n})} what polynomials are invariant under the group? A polynomial f(X){f(X)} is invariant under a group G{G}, provided for all π∈G{\pi \in G},

f(X)=f(πX).\displaystyle f(X) = f(\pi X).

When the group G{G} is the full symmetric group, Sn{S_{n}} this is simply the class of symmetric polynomials. Thus,

x1+x2+⋯+xn\displaystyle x_{1} + x_{2} + \dots + x_{n}

is invariant, while

x1−x2+⋯+xn\displaystyle x_{1} - x_{2} + \dots + x_{n}

is not: a permutation that exchanges x1{x_{1}} and x2{x_{2}} changes the polynomial.

For any finite group G{G} the polynomials invariant under G{G} form an algebra. That is just a fancy way of saying that the sum and product of two invariant polynomials is still invariant. The goal is to describe this algebra in as succinct a manner as possible. Let see how this is done, first, in the basic case of the full symmetric group.

The kth{k^{th}} elementary symmetric functions ek(x1,…,xn){e_{k}(x_{1},\dots,x_{n})} are the sum of all distinct products of k{k} distinct variables:

e0(x1,…,xn)=1\displaystyle e_{0}(x_{1},\dots,x_{n}) = 1

e1(x1,…,xn)=x1+x2+⋯+xn\displaystyle e_{1}(x_{1},\dots,x_{n}) = x_{1} + x_{2} + \dots + x_{n}

⋮\displaystyle \vdots

en(x1,…,xn)=x1x2⋯xn\displaystyle e_{n}(x_{1},\dots,x_{n}) = x_{1}x_{2}\cdots x_{n}

The elementary function satisfy two basic theorems. First, they generate the algebra of all symmetric polynomials and second they are easy to compute.

Theorem: If f(X){f(X)} is a symmetric polynomial, then there is a another polynomial g(Y){g(Y)} so that

f(X)=g(e1(x),…,en(x)).\displaystyle f(X) = g(e_{1}(x),\dots,e_{n}(x)).

This can be proved by an induction on the number of variables. See this for details. Thus, the elementary symmetric functions generate, as an algebra, all the symmetric polynomials. Note, they do not generate all symmetric polynomials as a vector space: just consider a very high degree symmetric polynomial, it clearly will not be a linear combination of the elementary functions.

Theorem: Given x1,…,xn{x_{1}, \dots, x_{n}} there is an algorithm that computes all ek{e_{k}} for all k=1,…,n{k=1,\dots,n} in polynomial time.

The proof of this theorem uses the following simple insight. Let

f(t)=(t−x1)(t−x2)…(t−xn).\displaystyle f(t) = (t-x_{1}) (t-x_{2}) \dots (t-x_{n}).

Expanding this out gives,

f(t)=tn+(−1)1e1tn−1+(−1)2e2tn−2+⋯+(−1)nen.\displaystyle f(t) = t^{n} + (-1)^{1}e_{1}t^{n-1} + (-1)^{2}e_{2}t^{n-2} + \dots + (-1)^{n}e_{n}.

Thus given values x1,…,xn{x_{1}, \dots, x_{n}} we can use Lagrange interpolation to obtain the coefficients of the resulting single-variable polynomial, which give us the desired evaluations of every elementary function.

Invariant Theory for Bipartite Graphs

Let

X=(x1,1,x1,2,…,xn,n)\displaystyle X = (x_{1,1},x_{1,2}, \dots, x_{n,n})

be the general vector that stands for a general n×n{n \times n} matrix. The group that we are interested in is not the full symmetric group Sn2{S_{n^{2}}}. Instead we need to use the subgroup that is isomorphic to Sn×Sn{S_{n} \times S_{n}}. The action of a group element (r,c){(r,c)} is to permute the rows of X{X} by r{r} and then the columns by c{c}. Let’s denote the group by Bn{{\cal B}_{n}}, or just B{\cal B} when the subscript is clear. We are interested in polynomials that are invariant under this group.

Note, because the row and column permutations are independent we the invariant theory is based on a direct product of symmetric groups. Otherwise, the action would be more complex.

What we hope is that there is something like the basis of elementary functions for the polynomials invariant under B{\cal B}. We need there to be polynomials

β1(X),…,βm(X)\displaystyle \beta_{1}(X), \dots, \beta_{m}(X)

that are Bn{{\cal B}_{n}} invariant and they generate the algebra of all Bn{{\cal B}_{n}} invariant polynomials. And further:

  1. The number of the polynomials m{m} is bounded by nO(1){n^{O(1)}}.
  2. Each polynomial βk(X){\beta_{k}(X)} has a straight-line arithmetic computation that is at most nO(1){n^{O(1)}} long.

Let us call these assumptions Γ{\Gamma}. Note, the analogous assumptions are true for the symmetric polynomials. Classic results from invariant theory, I believe, show that at least a weaker result is easy. The assumption Γ{\Gamma} is true without the restriction on the number or the complexity of the polynomials βk(X){\beta_{k}(X)}. As usual we in complexity theory need more.

Invariant Theory and GI

The reason we have raised the assumption Γ{\Gamma} is that it is enough to make a breakthrough on GI.

Theorem: Suppose that Γ{\Gamma} is true, then GI is in P/poly{\mathsf{P/poly}}.

The algorithm is very simple. Suppose that G{G} and H{H} are graphs. Then, for each k{k}, check whether or not

βk(G)=βk(H).\displaystyle \beta_{k}(G) = \beta_{k}(H).

If this fails for some k{k}, then clearly G{G} cannot be isomorphic to H{H}. If on the other hand, this holds for all k{k}, then we claim that G{G} must be isomorphic to H{H}. Note, the algorithm can be done by a circuit of polynomial size by the assumption Γ{\Gamma}.

It only remains to show that the algorithm is correct. The key case is where G{G} and H{H} satisfy the above test for all k{k}, yet are not isomorphic. We will show that is impossible.

We need some definitions first. Let A{A} be a graph. Define the following function:

F(A,x1,1,x1,2,…,xn,n)=∏Aij=1xi,j×∏Aij=0(1−xi,j).\displaystyle F(A,x_{1,1},x_{1,2}, \dots, x_{n,n}) = \prod_{A_{ij}=1} x_{i,j} \times \prod_{A_{ij}=0} (1-x_{i,j}).

Lemma: Consider F(A,M){F(A,M)} as a polynomial in the matrix M{M}. Then, F(A,A)=1{F(A,A)=1} and F(A,B)=0{F(A,B)=0} for any B{B} that is not equal to A{A}.

Proof: The value of F(A,A){F(A,A)} is equal to

∏Aij=1Ai,j×∏Aij=0(1−Ai,j)\displaystyle \prod_{A_{ij}=1} A_{i,j} \times \prod_{A_{ij}=0} (1-A_{i,j})

which is clearly 1{1}. The value of The value of F(A,B){F(A,B)} is equal to

∏Aij=1Bi,j×∏Aij=0(1−Bi,j).\displaystyle \prod_{A_{ij}=1} B_{i,j} \times \prod_{A_{ij}=0} (1-B_{i,j}).

Since A{A} and B{B} are different, there is a pair of indices r,c{r,c} so that either

Arc=1 and Brc=0\displaystyle A_{rc} = 1 \text { and } B_{rc} = 0

or

Arc=0 and Brc=1.\displaystyle A_{rc} = 0 \text { and } B_{rc} = 1.

In the either case the product is clearly 0{0}. □\Box

Let X=(x1,1,x1,2,…,xn,n){X = (x_{1,1},x_{1,2}, \dots, x_{n,n})}. Then, the following is the symmetric form of the polynomial f{f}:

fB(X)=∑π∈Bf(πX).\displaystyle f^{{\cal B}}(X) = \sum_{\pi \in {\cal B}} f(\pi X).

Finally, for a graph G{G}, let ∣Aut(G)∣{|\mathsf{Aut}(G)|} be the number of elements π=(P,Q)\pi = (P,Q) of B{\cal B} such that

πG=PGQ=G.\displaystyle \pi G = P G Q = G.

Then,

Lemma: Suppose that G{G} and H{H} are isomorphic graphs, then FB(G,H)=∣Aut(G)∣{F^{\cal B}(G,H) = |\mathsf{Aut}(G)|}. Suppose that G{G} and H{H} are not isomorphic graphs, then FB(G,H)=0{F^{\cal B}(G,H) = 0}.

Proof: The key is if they are not isomorphic then the sum is over all zero’s. In the case they are isomorphic, it sums over all possible P{P} and Q{Q} so that PGQ=G{PGQ=G}. □\Box

This lemma shows that the algorithm works as claimed. For suppose that G{G} and H{H} are not isomorphic. By assumption βk(G)=βk(H){\beta_{k}(G) = \beta_{k}(H)} for all k{k}. Since the polynomials βk(X){\beta_{k}(X)} generate the algebra of all B{\cal B} invariant polynomials, it must be the case that FB(G,G)=FB(G,H){F^{\cal B}(G,G) = F^{\cal B}(G,H)}. This is a contradiction since,

FB(G,G)=∣Aut(G)∣≥1\displaystyle F^{\cal B}(G,G) = |\mathsf{Aut}(G)| \ge 1

and

FB(G,H)=0.\displaystyle F^{\cal B}(G,H) = 0.

Open Problems

The main open problem is to see if this approach can work. We need, of course, to understand the assumption Γ{\Gamma}. Note, if somehow we proved that GI did not have polynomial size circuits, then we would show something non-trivial about the action of B{\cal B}. Either there would be a super polynomial number of generators or the generators must have large complexity.

Also even if Γ{\Gamma} fails, there are weaker versions that would say something non-trivial about GI. For example, suppose Γ{\Gamma} had an exponential number of generators βk(X){\beta_{k}(X)}, but each still had polynomial complexity. Then, we would get that GI is in NP∩co–NP{\mathsf{NP}\cap\mathsf{co} \text{--} \mathsf{NP}}. The latter would require that we could efficiently go from k{k} to the circuit for βk{\beta_{k}}.