1 Introduction and main results

Erdős and Rényi [5] proved that almost all graphs are asymmetric, in the following sense: When choosing a graph on n vertices uniformly at random, the probability that its automorphism group is trivial tends to 1 as n tends to infinity. In contrast to this, they also showed that almost all trees are symmetric, i.e. the probability that the automorphism group of a random tree on n vertices is trivial tends to 0 as n tends to infinity.

In recent years, the notion of a quantum automorphism group of a graph was introduced by Banica in [1], modifying a preceding version by Bichon [3]. It is a compact matrix quantum group in the sense of Woronowicz (see [15]) enlarging the usual automorphism group of a graph and providing a subtler graph invariant. It is an interesting question, which graphs have a quantum automorphism group that is strictly larger than their classical automorphism group. In that case, we say that the graph has quantum symmetry. In general, this question is very hard to answer. There are some sufficient criteria that one can check but usually, there is no ’easy’ way to decide whether or not a graph has quantum symmetry. For results about specific graphs or specific classes of graphs, see [2, 9, 11].

Recently, Lupini, Mančinska, and Roberson proved a quantum version of the first Erdős Rényi theorem mentioned in the beginning: Almost all graphs are quantum asymmetric, i.e. the quantum automorphism group of almost all graphs is trivial ([7]). A crucial ingredient in their proof is the so-called coherent algebra of a graph. They show that it provides a new sufficient criterion for a graph to be quantum asymmetric. We will give a few details of this in Section 4.

In this paper, we give a proof of a quantum analogue of the second Erdős Rényi theorem mentioned above, namely: Almost all trees have quantum symmetry. The crucial ingredient of Erdős and Rényi’s proof is to show that almost all trees contain a so-called cherry (two vertices of degree one ’dangling’ like a twin cherry on a common third vertex) – indeed, by flipping this twin cherry, we obtain a non-trivial automorphism. Interestingly, for proving the quantum analogue of this, it is enough to show that almost all trees contain at least two cherries from which we may derive the existence of two non-trivial automorphisms with disjoint supports. Applying a criterion of one of the authors of this article [10] yields the result.

We summarize:

Theorem

  1. (i)

    ([5]). Almost all graphs have no symmetry.

  2. (ii)

    ([7]). Almost all graphs have no quantum symmetry.

  3. (iii)

    ([5]). Almost all trees have symmetry.

  4. (iv)

    Almost all trees have quantum symmetry.

Let us note that the almost sure existence of two cherries in a tree is probably well-known to experts. Nevertheless, we give a direct proof of this fact in order to present a complete and concise proof of the quantum version of Erdős and Rényi’s result on trees.

2 Preliminaries

In this section, we give some mathematical background on compact (matrix) quantum groups, graphs, and their (quantum) symmetries.

2.1 Graphs and trees

A graph is a tuple \(\Gamma = (V, E)\) where V is a non-empty set of vertices and \(E \subseteq V\times V\) is a set of edges (in particular, we don’t allow a graph to have multiple edges between the same pair of vertices). It is called finite if V is finite, and undirected if we have \((i, j) \in E\) whenever \((j, i) \in E\). An edge of the form \((i,i) \in E\) is called a loop. If \(v \in V\) is a vertex, we define its degree to be the number of neighbours of v, i.e. the number of vertices \(u \in V\) such that \((v,u) \in E\).

We will only be concerned with finite undirected graphs without loops and without multiple edges. Furthermore, we will usually identify the vertex set V with the set \(\{ 1, \ldots , n\}\) where \(n = |V|\).

A walk of length k in a graph \(\Gamma = (V, E)\) is a k-tuple \((e_1, \ldots , e_k)\) of edges \(e_j = (u_j, v_j) \in E\) such that \(v_j = u_{j+1}\) for all \(j=1,\ldots k-1\). It is called a cycle if \(u_1 = v_k\).

A graph is called connected if for every pair of vertices \(i, j \in V\) with \(i \ne j\), there is a walk from i to j, i.e. \(u_1 = i\) and \(v_k = j\). A tree is a connected graph without cycles.

The adjacency matrix of a graph \(\Gamma = (V, E)\) is the matrix \(A = (a_{ij})_{i,j \in V}\) with entries

$$\begin{aligned} a_{i j} :={\left\{ \begin{array}{ll} 1 &{} \text {if } (i,j) \in E, \\ 0 &{} \text {otherwise.} \end{array}\right. } \end{aligned}$$

2.2 Symmetries of graphs

An automorphism of a graph \(\Gamma = (V, E)\) is a bijection \(\sigma : V \rightarrow V\) that preserves adjacency and non-adjacency, i.e. \((i,j) \in E\) if and only if \((\sigma (i), \sigma (j)) \in E\) for all \(i, j \in V\). The set of all automorphisms of \(\Gamma \) forms a group \({{\,\mathrm{Aut}\,}}(\Gamma )\) under composition and is called the automorphism group of \(\Gamma \). It can be identified with a subgroup of the symmetric group \(S_n\) (where \(n = \#V\)) which can in turn be embedded as permutation matrices in \(M_n({\mathbb {C}})\). The automorphism group then has a nice description in terms of the adjacency matrix A of \(\Gamma \):

$$\begin{aligned} {{\,\mathrm{Aut}\,}}(\Gamma ) = \{ \sigma \in S_n \mid \sigma A = A \sigma \} \subseteq S_n. \end{aligned}$$

We call a graph \(\Gamma \)symmetric if there exists a non-trivial automorphism of \(\Gamma \), and asymmetric otherwise.

2.3 Compact matrix quantum groups

Compact matrix quantum groups were first defined by Woronowicz [15] in an attempt to generalize compact matrix groups. As a general reference for this, we refer the reader to [8, 12], or [14].

Definition 2.1

A compact matrix quantum group (CMQG) is a pair (Bu) where B is a unital \(C^*\)-algebra and \(u = (u_{ij})_{i,j=1}^n\) is a matrix with entries in B such that:

  1. (i)

    B is generated (as a \(C^*\)-algebra) by the entries of u.

  2. (ii)

    The \(*\)-homomorphism \(\Delta : B \rightarrow B \otimes B\), \(u_{ij} \mapsto \sum _{k=1}^n u_{ik} \otimes u_{kj}\) exists.

  3. (iii)

    The matrix u and its transpose \(u^t\) are invertible.

Example 2.2

Let \(G \subseteq {{\,\mathrm{GL}\,}}_n({\mathbb {C}})\) be a compact matrix group and let \((u_{ij})_{i,j=1}^n\) be the coordinate functions on G, i.e.

$$\begin{aligned} u_{ij} : G&\rightarrow {\mathbb {C}}, \\ B = (b_{kl})_{k,l=1}^n&\mapsto b_{ij}. \end{aligned}$$

Then the pair \((C(G), u = (u_{ij})_{i,j=1}^n)\), where C(G) is the algebra of continuous complex-valued functions on G, is a compact matrix quantum group. Moreover, all compact matrix quantum groups (Bu) with commutative \(C^*\)-algebra B are of this form (see [12, Proposition 6.1.11]). So under the identification of G with (C(G), u), compact matrix quantum groups generalize classical compact matrix groups.

Example 2.3

Another very important example of a compact matrix quantum group is the quantum symmetric group \(S_n^+\) defined by Wang in [13]. It is given by the universal unital \(C^*\)-algebra

$$\begin{aligned} C(S_n^+) :=C^*\left( u_{ij}, \ 1 \le i,j \le n \mid u_{ij}^* = u_{ij}^2 = u_{ij}, \ \sum _{k=1}^n u_{ik} = \sum _{k=1}^n u_{kj} = 1 \ \forall \ i, j\right) \end{aligned}$$

and it can be interpreted as a quantum analogue of the classical symmetric group \(S_n\). Indeed, we have a surjective \(*\)-homomorphism \(\varphi : C(S_n^+) \rightarrow C(S_n)\) sending generators to coordinate functions, thus we can think of \(S_n\) as a quantum subgroup of \(S_n^+\). The map \(\varphi \) is an isomorphism for \(n=1,2,3\) (so we have \(S_n^+ = S_n\) for \(n=1,2,3\)) but for \(n\ge 4\), \(C(S_n^+)\) is non-commutative and infinite-dimensional – we then have more quantum permutations than ordinary permutations.

2.4 Quantum symmetries of graphs

In 2003, Bichon [3] gave a definition of a quantum automorphism group of a finite graph. It was modified by Banica [1] in 2005. See also [11] for more on quantum symmetries of graphs.

Definition 2.4

([1]). Let \(\Gamma = (V, E)\) be a graph on n vertices without multiple edges and without loops and let A be its adjacency matrix. The quantum automorphism group \({{\,\mathrm{QAut}\,}}(\Gamma )\) of \(\Gamma \) is defined as the compact matrix quantum group with \(C^*\)-algebra

We have the inclusions \({{\,\mathrm{Aut}\,}}(\Gamma ) \subseteq {{\,\mathrm{QAut}\,}}(\Gamma ) \subseteq S_n^+\) and we say that \(\Gamma \) has quantum symmetry if the first inclusion is strict, i.e. if and only if \(C({{\,\mathrm{QAut}\,}}(\Gamma ))\) is non-commutative.

3 The existence of two cherries

In this section, we show that almost all trees contain at least two cherries. This is probably well-known to experts, but in order to keep this article self-contained, we present a direct proof. We use this in the next section to prove our main result about the quantum symmetries of trees.

Definition 3.1

Let \(\Gamma = (V,E)\) be a graph. A triple \((u_1, u_2, v)\) of vertices \(u_1, u_2, v \in V\) is called a cherry if

  1. (i)

    \(u_1\), \(u_2\), and v are pairwise distinct,

  2. (ii)

    \(u_1\) and \(u_2\) are adjacent to v,

  3. (iii)

    \(u_1\) and \(u_2\) have degree 1, and

  4. (iv)

    v has degree 3.

Remark 3.2

If a graph contains a cherry \((u_1, u_2, v)\), then it admits the non-trivial automorphism that swaps \(u_1\) and \(u_2\) and fixes any other vertex. Hence the graph has symmetry.

Erdős and Rényi showed in [5] that almost all trees contain at least one cherry, implying that almost all trees are symmetric. So one can rephrase their result as follows.

Theorem 3.3

([5]). Almost all trees contain at least one cherry, in the sense that

$$\begin{aligned} \lim _{n \rightarrow \infty } {{\,\mathrm{{\mathbb {P}}}\,}}[C_n \ge 1] = 1 \end{aligned}$$

where \(C_n\) is the number of cherries in a tree that is drawn uniformly at random from the set of all trees on n vertices.

Corollary 3.4

Almost all trees have symmetry.

We will now show that even

$$\begin{aligned} \lim _{n \rightarrow \infty } {{\,\mathrm{{\mathbb {P}}}\,}}[C_n \ge 2] = 1 \end{aligned}$$

holds in the above setting. The proof of this is only a slight modification of the proof of Theorem 3.3. Note however that we use a somewhat different notion of cherries than Erdős and Rényi. In their definition, the requirement (iv) from ours is missing. This changes the formulas in the subsequent proofs by a small degree in comparison with the original arguments in [5].

We begin by fixing some notation. For \(n \in {\mathbb {N}}\), let \(T_n\) be a tree on n vertices and denote these vertices by \(v_1, \ldots , v_n\). For every choice of indices \(i_1, i_2, j \in \{1, \ldots , n\}\), we define

$$\begin{aligned} \varepsilon _{i_1, i_2, j}(T_n) :={\left\{ \begin{array}{ll} 1 \quad &{} \text {if }(v_{i_1}, v_{i_2}, v_j)\text { is a cherry in }T_n, \\ 0 &{} \text {otherwise}. \end{array}\right. } \end{aligned}$$

We equip the set of all labelled trees on n vertices with the uniform probability measure, turning \(\varepsilon _{i_1, i_2, j}\) into a random variable.

Note furthermore that by Cayley’s formula, the number of labelled trees on n vertices is \(n^{n-2}\). We will use this fact several times in the following proofs.

Lemma 3.5

We have

$$\begin{aligned} {{\,\mathrm{{\mathbb {E}}}\,}}[\varepsilon _{i_1, i_2, j}] = \frac{(n-3)^{n-4}}{n^{n-2}} \end{aligned}$$

for all pairwise distinct \(i_1, i_2, j \in \{1, \ldots , n\}\).

Proof

Since

$$\begin{aligned} {{\,\mathrm{{\mathbb {E}}}\,}}[\varepsilon _{i_1, i_2, j}] = \frac{|\{\text {trees on } n \text { vertices with a cherry at } (i_1, i_2, j)\}|}{|\{\text {trees on } n \text { vertices}\}|}, \end{aligned}$$

we only have to calculate the numerator, as the denominator is \(n^{n-2}\) by Cayley’s formula.

Let \(T = (V,E)\) be a tree on \(n-3\) vertices labelled with \(\{1, \ldots , n\} \setminus \{i_1, i_2, j\}\). By attaching a cherry \((v_{i_1}, v_{i_2}, v_{j})\) at any vertex \(u \in V\), we can construct a tree on n vertices with a cherry at \((i_1, i_2, j)\). On the other hand, any tree on n vertices with a cherry at \((i_1, i_2, j)\) can be constructed in this way. Since T has \(n-3\) vertices, we have \(n-3\) possibilities for choosing u, thus there are \((n-3)(n-3)^{n-5} = (n-3)^{n-4}\) trees on n vertices with a cherry at \((i_1, i_2, j)\), so the claim follows. \(\square \)

Lemma 3.6

Let \(n \ge 5\) and \(i_1, i_2, j_1, i_3, i_4, j_2 \in \{1, \ldots , n\}\). We have

$$\begin{aligned} {{\,\mathrm{{\mathbb {E}}}\,}}[\varepsilon _{i_1, i_2, j_1}\varepsilon _{i_3, i_4, j_2}] = {\left\{ \begin{array}{ll} \frac{(n-6)^{n-6}}{n^{n-2}} \quad &{} \text {if }i_1,i_2,i_3,i_4,j_1,j_2\text { are all different}, \\ \frac{(n-3)^{n-4}}{n^{n-2}} &{} \text {if }i_1, i_2, j_1\text { are all different},\\ &{} j_1 = j_2,\text { and }\{i_1, i_2\} = \{i_3, i_4\}, \\ 0 &{} \text {otherwise}. \end{array}\right. } \end{aligned}$$

Proof

Similarly as above, we only have to calculate the numerator of

$$\begin{aligned}&{{\,\mathrm{{\mathbb {E}}}\,}}[\varepsilon _{i_1, i_2, j_1}\varepsilon _{i_3, i_4, j_2}] \\&\quad = \frac{|\{\text {trees on } n \text { vertices with cherries at } (i_1, i_2, j_1) \text { and } (i_3, i_4, j_2)\}|}{|\{\text {trees on } n \text { vertices}\}|}. \end{aligned}$$

So let \(T = (V,E)\) be a tree with vertices labelled with \(\{1,\ldots ,n\} \setminus \{j_1,i_1,i_2,j_2,i_3,i_4\}\).

In the case that all labels \(j_1,i_1,i_2,j_2,i_3,i_4\) are different from each other, we can attach cherries \((v_{i_1},v_{i_2},v_{j_1})\) and \((v_{i_3},v_{i_4},v_{j_2})\) at any two vertices \(u_1\) and \(u_2\) of \(\Gamma \) and thereby construct a tree on n vertices with two cherries at \((i_1,i_2,j_1)\) and \((i_3,i_4,j_2)\). On the other hand, every tree on n vertices with two cherries at \((i_1,i_2,j_1)\) and \((i_3,i_4,j_2)\) can be constructed in this way. Since T has \(n-6\) vertices, we have \(n-6\) possibilities for choosing \(u_1\) and \(u_2\) respectively. Thus there are \((n-6)(n-6)(n-6)^{n-8} = (n-6)^{n-6}\) trees on n vertices with two cherries at \((i_1,i_2,j_1)\) and \((i_3,i_4,j_2)\).

In the case that \(j_1, i_1, i_2\) are distinct, \(j_1 = j_2\), and \(\{i_1, i_2\} = \{i_3, i_4\}\), we can conclude, as in the case of three labels (see Lemma 3.5), that the number of trees on n vertices with a cherry at \((i_1,i_2,j_1)\) is \((n-3)^{n-4}\).

In all other cases, there is no tree on n vertices with cherries at \((i_1,i_2,j_1)\) and \((i_3,i_4,j_2)\). \(\square \)

As in Theorem 3.3, we denote by \(C_n(T_n)\) the number of cherries in the tree \(T_n\) on n vertices. With the notation from above, we can express this as

$$\begin{aligned} C_n(T_n) = \sum _{j=1}^n \sum _{\begin{array}{c} i_1=1\\ i_1\ne j \end{array}}^n \sum _{\begin{array}{c} i_2=1\\ i_2\ne j \end{array}}^{i_1 - 1} \varepsilon _{i_1, i_2, j}(T_n). \end{aligned}$$
(3.1)

Lemma 3.7

The expectation of \(C_n\) is

$$\begin{aligned} {{\,\mathrm{{\mathbb {E}}}\,}}[C_n] = \frac{1}{2} n(n-1)(n-2)(n-3)^{n-4} \frac{1}{n^{n-2}} = \frac{n}{2e^3} + O(1), \end{aligned}$$

Proof

The number of 3-tuples \((j, i_1, i_2) \in \{1, \ldots , n\}^3\) such that all entries are distinct is \(n(n-1)(n-2)\). The further condition that \(i_2 < i_1\) halves this number, so the expression in Equation (3.1) has \(\frac{n(n-1)(n-2)}{2}\) summands. Hence, by Lemma 3.5,

$$\begin{aligned} {{\,\mathrm{{\mathbb {E}}}\,}}[C_n]&= \sum _{j=1}^n \sum _{\begin{array}{c} i_1=1\\ i_1\ne j \end{array}}^n \sum _{\begin{array}{c} i_2=1\\ i_2\ne j \end{array}}^{i_1 - 1} {{\,\mathrm{{\mathbb {E}}}\,}}[\varepsilon _{i_1, i_2, j}] = \sum _{j=1}^n \sum _{\begin{array}{c} i_1=1\\ i_1\ne j \end{array}}^n \sum _{\begin{array}{c} i_2=1\\ i_2\ne j \end{array}}^{i_1 - 1} \frac{(n-3)^{n-4}}{n^{n-2}}\\&= \frac{n(n-1)(n-2)}{2} \frac{(n-3)^{n-4}}{n^{n-2}}. \end{aligned}$$

It remains to show that this is asymptotically \(\frac{n}{2e^3} + O(1)\), i.e. we have to show that the following expression is bounded:

$$\begin{aligned}&\frac{n(n-1)(n-2)}{2} \frac{(n-3)^{n-4}}{n^{n-2}} - \frac{n}{2e^3} = \frac{n}{2}\left( (n-1)(n-2)\frac{(n-3)^{n-4}}{n^{n-2}} - e^{-3}\right) \nonumber \\&\quad = \frac{n}{2} \left( \left( \frac{n-3}{n}\right) ^{n-2} - e^{-3} + 3 \frac{(n-3)^{n-3}}{n^{n-2}} + 2 \frac{(n-3)^{n-4}}{n^{n-2}} \right) \nonumber \\&\quad = \frac{1}{2} \left( n \left( \left( 1 - \frac{3}{n}\right) ^{n-2} - e^{-3} \right) + 3 \frac{(n-3)^{n-3}}{n^{n-3}} + 2 \frac{(n-3)^{n-4}}{n^{n-3}} \right) . \end{aligned}$$
(3.2)

The second and third summand in Term (3.2) converge to \(3e^{-3}\) and 0 respectively as \(n \rightarrow \infty \). So we have to check whether the first summand is bounded. For large n, we haveFootnote 1

$$\begin{aligned} \left( 1 - \frac{3}{n} \right) ^{n-2} - e^{-3}&= \exp \left( (n-2) \log \left( 1-\frac{3}{n} \right) \right) - e^{-3}\\&\approx \exp \left( n \left( \frac{-3}{n} - \frac{9}{2n^2} \right) \right) - e^{-3} = e^{-3} e^{-\frac{9}{2n}} - e^{-3} \\&\approx e^{-3} \left( 1- \frac{9}{2n} \right) - e^{-3} = -\frac{9e^{-3}}{2n}. \end{aligned}$$

Hence \(n \left( \left( 1 - \frac{3}{n}\right) ^{n-2} - e^{-3} \right) \) is bounded and thus \(\frac{n(n-1)(n-2)}{2} \frac{(n-3)^{n-4}}{n^{n-2}} = \frac{n}{2e^3} + O(1)\) as claimed. \(\square \)

We now want to calculate the variance of \(C_n\). For this, we need the second moment.

Lemma 3.8

The second moment of \(C_n\) is

$$\begin{aligned} {{\,\mathrm{{\mathbb {E}}}\,}}[C_n^2]= & {} \left( \frac{1}{4} \frac{n!}{(n-6)!} (n-6)^{n-6} + n(n-1)(n-2)(n-3)^{n-4} \right) \frac{1}{n^{n-2}} \\= & {} \frac{n^2}{4e^6} + O(n). \end{aligned}$$

Proof

Let \(T_n\) be a random tree on n vertices. We first compute, using Equation 3.1,

$$\begin{aligned} {{\,\mathrm{{\mathbb {E}}}\,}}[C_n^2]&= \sum _{j_1 = 1}^n \sum _{\begin{array}{c} i_1=1\\ i_1\ne j_1 \end{array}}^n \sum _{\begin{array}{c} i_2=1\\ i_2 \ne j_1 \end{array}}^{i_1-1} \sum _{j_2=1}^n \sum _{\begin{array}{c} i_3=1\\ i_3 \ne j_2 \end{array}}^n \sum _{\begin{array}{c} i_4=1\\ i_4 \ne j_2 \end{array}}^{i_3-1} {{\,\mathrm{{\mathbb {E}}}\,}}[\varepsilon _{i_1, i_2, j_1} \varepsilon _{i_3, i_4, j_2}]. \end{aligned}$$

To apply the formulas from Lemma 3.6, we split this sum into the two cases where \(j_1, i_1, i_2, j_2, i_3, i_4\) are all different and where either \(j_1 = j_2\) and \(i_1 = i_3\), \(i_2 = i_4\) or \(j_1 = j_2\) and \(i_1 = i_4\), \(i_2 = i_3\) and \(j_1, i_1, i_2\) are different.

$$\begin{aligned} {{\,\mathrm{{\mathbb {E}}}\,}}[C_n^2]= & {} \sum _{j_1=1}^n \sum _{\begin{array}{c} i_1=1\\ i_1\ne j_1 \end{array}}^n \sum _{\begin{array}{c} i_2=1\\ i_2\ne j_1 \end{array}}^{i_1-1} \sum _{\begin{array}{c} j_2=1\\ j_2\ne j_1\\ j_2\ne i_1\\ j_2\ne i_2 \end{array}}^n \sum _{\begin{array}{c} i_3=1\\ i_3\ne j_1\\ i_3\ne i_1\\ i_3\ne i_2\\ i_3\ne j_2 \end{array}}^n \sum _{\begin{array}{c} i_4=1\\ i_4\ne j_1\\ i_4\ne i_1\\ i_4\ne i_2\\ i_4\ne j_2 \end{array}}^{i_3-1} {{\,\mathrm{{\mathbb {E}}}\,}}[\varepsilon _{i_1, i_2, j_1} \varepsilon _{i_3, i_4, j_2}] \end{aligned}$$
(3.3)
$$\begin{aligned}&+ 2 \sum _{j_1=1}^n \sum _{\begin{array}{c} i_1=1\\ i_1\ne j_1 \end{array}}^n \sum _{\begin{array}{c} i_2=1\\ i_2\ne j_1 \end{array}}^{i_1-1} {{\,\mathrm{{\mathbb {E}}}\,}}[\varepsilon _{i_1, i_2, j_1}^2]. \end{aligned}$$
(3.4)

The number of 6-tuples \((j_1,i_1,i_2,j_2,i_3,i_4) \in \{1,\ldots ,n\}^6\) such that all entries are different is \(\frac{n!}{(n-6)!}\). Each of the further conditions that \(i_2 < i_1\) and \(i_4 < i_3\) halves this number. So the expression in Term (3.3) has \(\frac{1}{4}\frac{n!}{(n-6)!}\) summands. By a similar argument, the expression in Term (3.4) has \(\frac{n(n-1)(n-2)}{2}\) summands. Therefore, by Lemma 3.6 and analogous calculations as in the proof of Lemma 3.7,

$$\begin{aligned} {{\,\mathrm{{\mathbb {E}}}\,}}[C_n^2]&= \frac{1}{4}\frac{n!}{(n-6)!}\frac{(n-6)^{n-6}}{n^{n-2}} + n(n-1)(n-2) \frac{(n-3)^{n-4}}{n^{n-2}}\\&= \frac{n^2}{4e^6} + O(n). \end{aligned}$$

\(\square \)

Lemma 3.9

The following holds for \(C_n\):

$$\begin{aligned} \begin{array}{ll} (i) \ \frac{{{\,\mathrm{{\mathbb {E}}}\,}}[C_n^2]}{{{\,\mathrm{{\mathbb {E}}}\,}}[C_n]^2} \xrightarrow {n \rightarrow \infty } 1, &{}\qquad (ii) \ \frac{{{\,\mathrm{{\mathbb {E}}}\,}}[(C_n-1)^2]}{{{\,\mathrm{{\mathbb {E}}}\,}}[C_n-1]^2} \xrightarrow {n \rightarrow \infty } 1,\\ (iii) \ \frac{{{\,\mathrm{{\mathbb {V}}ar}\,}}[C_n]}{{{\,\mathrm{{\mathbb {E}}}\,}}[C_n]^2} \xrightarrow {n \rightarrow \infty } 0,&{}\qquad (iv) \ \frac{{{\,\mathrm{{\mathbb {V}}ar}\,}}[C_n-1]}{{{\,\mathrm{{\mathbb {E}}}\,}}[C_n-1]^2} \xrightarrow {n \rightarrow \infty } 0. \end{array} \end{aligned}$$

Proof

  1. (i)

    Using Lemma 3.7 and Lemma 3.8, we calculate

    $$\begin{aligned} \frac{{{\,\mathrm{{\mathbb {E}}}\,}}[C_n^2]}{{{\,\mathrm{{\mathbb {E}}}\,}}[C_n]^2}&= \frac{\frac{n^2}{4e^6} + O(n)}{\left( \frac{n}{2e^3}n + O(1) \right) ^2} = \frac{\frac{1}{4e^6} n^2 + O(n)}{\frac{1}{4e^6} n^2 + O(n)} \xrightarrow {n \rightarrow \infty } 1. \end{aligned}$$
  2. (ii)

    Again, by using Lemma 3.7 and Lemma 3.8, we get

    $$\begin{aligned} \frac{{{\,\mathrm{{\mathbb {E}}}\,}}[(C_n-1)^2]}{{{\,\mathrm{{\mathbb {E}}}\,}}[C_n-1]^2}&= \frac{{{\,\mathrm{{\mathbb {E}}}\,}}[C_n^2] - 2{{\,\mathrm{{\mathbb {E}}}\,}}[C_n] + 1}{{{\,\mathrm{{\mathbb {E}}}\,}}[C_n]^2 - 2{{\,\mathrm{{\mathbb {E}}}\,}}[C_n] + 1} = \frac{ \frac{n^2}{4e^6} + O(n) - \frac{n}{e^3} + O(1) + 1 }{ \left( \frac{n}{2e^3} + O(1) \right) ^2 - \frac{n}{e^3} + O(1) + 1 } \\&= \frac{\frac{1}{4e^6} n^2 + O(n)}{\frac{1}{4e^6} n^2 + O(n)} \xrightarrow {n \rightarrow \infty } 1. \end{aligned}$$
  3. (iii)

    + (iv) As \(\frac{{{\,\mathrm{{\mathbb {V}}ar}\,}}[X]}{{{\,\mathrm{{\mathbb {E}}}\,}}[X]^2} = \frac{{{\,\mathrm{{\mathbb {E}}}\,}}[X^2]}{{{\,\mathrm{{\mathbb {E}}}\,}}[X]^2} - 1\), we obtain (iii) and (iv) from (i) and (ii) respectively.

\(\square \)

Theorem 3.10

Almost all trees have at least two cherries, i.e.

$$\begin{aligned} \lim _{n \rightarrow \infty } {{\,\mathrm{{\mathbb {P}}}\,}}[C_n \ge 2] = 1. \end{aligned}$$

Proof

Using Chebyshev’s inequality and Lemma 3.9, we have that

$$\begin{aligned} {{\,\mathrm{{\mathbb {P}}}\,}}[C_n = 0] \le {{\,\mathrm{{\mathbb {P}}}\,}}\big [|C_n - {{\,\mathrm{{\mathbb {E}}}\,}}[C_n] |\ge {{\,\mathrm{{\mathbb {E}}}\,}}[C_n]\big ] \le \frac{{{\,\mathrm{{\mathbb {V}}ar}\,}}[C_n]}{{{\,\mathrm{{\mathbb {E}}}\,}}[C_n]^2} \xrightarrow {n \rightarrow \infty } 0 \end{aligned}$$

as well as

$$\begin{aligned} {{\,\mathrm{{\mathbb {P}}}\,}}[C_n = 1] = {{\,\mathrm{{\mathbb {P}}}\,}}[C_n - 1 = 0] \le \frac{{{\,\mathrm{{\mathbb {V}}ar}\,}}[C_n - 1]}{{{\,\mathrm{{\mathbb {E}}}\,}}[C_n - 1]^2} \xrightarrow {n \rightarrow \infty } 0. \end{aligned}$$

So \({{\,\mathrm{{\mathbb {P}}}\,}}[C_n \ge 2] = 1 - {{\,\mathrm{{\mathbb {P}}}\,}}[C_n = 0] - {{\,\mathrm{{\mathbb {P}}}\,}}[C_n = 1] \xrightarrow {n \rightarrow \infty } 1\) which completes the proof. \(\square \)

4 Asymptotics of (quantum) symmetries of graphs and trees

From Theorem 3.10 and the following criterion from [10], we may derive that almost all trees have quantum symmetry.

Let \(\Gamma = (V,E)\) be a graph and let \(\sigma : V \rightarrow V\) be an automorphism of \(\Gamma \). The set

$$\begin{aligned} \{ v \in V \mid \sigma (v) \ne v \} \end{aligned}$$

is called the support of \(\sigma \).

Proposition 4.1

([10, Theorem 2.2]). Let \(\Gamma \) be a graph. If there exist two non-trivial automorphisms \(\sigma , \tau \) of \(\Gamma \) with disjoint support, then \(\Gamma \) has quantum symmetry.

This also makes the importance of cherries clear. If a graph contains a cherry, it has a non-trivial automorphism of order two which swaps the two vertices of degree one in the cherry. So the graph has symmetry. If a graph has two cherries, it has two non-trivial disjoint automorphisms of order two. So by the above proposition, it has quantum symmetry. From this, we can conclude our main result, building on Theorem 3.10.

Theorem 4.2

Almost all trees have quantum symmetry.

For the convenience of the reader, let us briefly describe the arguments of [7] for the non-existence of quantum symmetry for graphs.

A subset \({\mathcal {A}} \subseteq M_n({\mathbb {C}})\) is called a coherent algebra if it is a selfadjoint unital subalgebra of \(M_n({\mathbb {C}})\) both with respect to ordinary matrix multiplication as well as with respect to entrywise matrix multiplication (Schur product).

A class of examples of coherent algebras can be obtained from group actions: Let G be a group acting on a finite set X with n elements and let \(R_1, \ldots , R_s\) be the orbits of the induced action of G on \(X \times X\) (these are sometimes called orbitals). For each \(R_i\) (\(i \in \{ 1, \ldots , s\}\)), we define its characteristic matrix \(A^{(i)}\) as

$$\begin{aligned} A^{(i)}_{x y} :={\left\{ \begin{array}{ll} 1 &{}\text {if } (x, y) \in R_i,\\ 0 &{}\text {otherwise.} \end{array}\right. } \end{aligned}$$

Then the linear span of these matrices is a coherent algebra.

One can also associate a coherent algebra to a graph \(\Gamma \) by considering the coherent algebra generated by its adjacency matrix, i.e. the intersection of all coherent algebras containing the adjacency matrix of \(\Gamma \). This is then called the coherent algebra of \(\Gamma \) and denoted by \({{\mathcal {C}}}{{\mathcal {A}}}(\Gamma )\).

It is a well-known fact that the coherent algebra of a graph provides a sufficient criterion for a graph to be asymmetric:

Proposition 4.3

Let \(\Gamma = (V,E)\) be a graph on n vertices. Then we have

$$\begin{aligned} {{\mathcal {C}}}{{\mathcal {A}}}(\Gamma ) = M_n({\mathbb {C}}) \Rightarrow {{\,\mathrm{Aut}\,}}(\Gamma ) = \{ {{\,\mathrm{id}\,}}\}. \end{aligned}$$

This is useful from a computational point of view since the coherent algebra of a graph can be computed in polynomial time using the two-dimensional Weisfeiler-Leman algorithm (for details on this, see [6]), whereas it is generally hard to compute the automorphism group of a graph or even to check whether or not it is trivial.

One of the key insights of Lupini, Mančinska, and Roberson was that we can strengthen Proposition 4.3 to the following.

Proposition 4.4

([7]). Let \(\Gamma = (V,E)\) be a graph on n vertices. Then we have

$$\begin{aligned} {{\mathcal {C}}}{{\mathcal {A}}}(\Gamma ) = M_n({\mathbb {C}}) \Rightarrow {{\,\mathrm{QAut}\,}}(\Gamma ) = \{ {{\,\mathrm{id}\,}}\}. \end{aligned}$$

Now, Babai and Kucera proved that almost all graphs have a maximal coherent algebra.

Proposition 4.5

([4]). Almost all graphs \(\Gamma \) satisfy \({{\mathcal {C}}}{{\mathcal {A}}}(\Gamma ) = M_n({\mathbb {C}})\).

Summarizing all of the above, we obtain:

Theorem 4.6

  1. (i)

    ([5]). Almost all graphs have no symmetry.

  2. (ii)

    ([7]). Almost all graphs have no quantum symmetry.

  3. (iii)

    ([5]). Almost all trees have symmetry.

  4. (iv)

    Almost all trees have quantum symmetry.

Proof

  1. (i)

    This follows from Proposition 4.5 and Proposition 4.3.

  2. (ii)

    By combining Proposition 4.5 and Proposition 4.4, we obtain the claimed result.

  3. (iii)

    By Theorem 3.10, almost all trees have in particular one cherry. So their automorphism group contains a copy of \({\mathbb {Z}}_2\).

  4. (iv)

    This is exactly the statement of Theorem 4.2.

\(\square \)

Remark 4.7

Note that Lupini, Mančinska, and Roberson in fact showed that \({{\,\mathrm{QAut}\,}}(\Gamma ) = \{{{\,\mathrm{id}\,}}\}\) for almost all graphs, but this implies in particular that \({{\,\mathrm{QAut}\,}}(\Gamma ) = {{\,\mathrm{Aut}\,}}(\Gamma )\) for almost all graphs, which is the actual definition of having no quantum symmetry.