$\def\puz{\mathop{\strut\mathrm{puz}}}$
Lemma 2.3.1 Let $X$ be a finite set, $|X|\ge 3$, $x,y\in X$. Then the 3-cycles $C=\{(x,y,z)\vert z\in X\backslash \{x,y\}\}$ generate $A(X)$.
Proof. A 3-cycle is an even permutation, so the group $G$ generated by $C$ is contained in $A(X)$. Suppose $\sigma\in A(X)$, so $\sigma$ is a product of an even number of transpositions, $\sigma=(x_1,y_1)\cdots(x_k,y_k)$. Any transposition $(a,b)$ with $y\notin \{a,b\}$ can be written $(a,b)=(y,a)(y,b)(y,a)$, so $\sigma$ can be written as $\sigma=(y,a_1)(y,a_2)\cdots(y,a_m)$, $m$ even, by replacing each $(x_i,y_i)$ not containing $y$ with a product of three transpositions. Hence $\sigma=(y,a_2,a_1)(y,a_4,a_3)\cdots(y,a_m,a_{m-1})$, since $(y,a)(y,b)=(y,b,a)$. If $a_{2i-1}=x$, $(y,a_{2i},a_{2i-1})=(x,y,a_{2i})$. If $a_{2i}=x$, $(y,a_{2i},a_{2i-1})=(x,y,a_{2i-1})^2$. Otherwise, $(y,a_{2i},a_{2i-1})=(x,y,a_{2i})(x,y,a_{2i-1})(x,y,a_{2i})^{2}$. Thus, $\sigma$ can be written as a product of 3-cycles of the form $(x,y,z)$, so $A(X)\subseteq G$. $\qed$
Definition 2.3.2 If $\sigma\in S(X)$, the support of $\sigma$, denoted $\|\sigma\|$, is $\{x\in X | \sigma(x)\not=x\}$. $\square$
Definition 2.3.3 A subgroup $H\le S(X)$ is transitive on $X$ if for all $x,y\in X$ there is a $\sigma\in H$ such that $\sigma(x)=y$. $\square$
Definition 2.3.4 If $\Sigma\subseteq S(X)$, $\langle\Sigma\rangle$ is the subgroup of $S(X)$ generated by $\Sigma$. $\square$
Lemma 2.3.5 Suppose $\Sigma$ is a set of 3-cycles in $S(X)$, $|X|\ge 3$. Then the following are equivalent.
1. $\langle\Sigma\rangle = A(X)$
2. $\langle\Sigma\rangle$ is transitive on $X$.
Proof. If $H\le S(X)$ and $Y\subseteq X$, let $H|_Y=\{\sigma\in H | \|\sigma\|\subseteq Y\}$. $H|_Y$ is a subgroup of $S(X)$ but we interpret it as a subgroup of $S(Y)$.
It is easy to see that (1) implies (2). Suppose that $\Sigma$ has property 2. Let $Y\subseteq X$ such that $|Y|\ge 3$, $\langle\Sigma\rangle|_Y=A(Y)$, and $Y$ is maximal with these properties. We show that $Y=X$, which finishes the proof.
There is a set $Y$ with the first two properties: Let $\sigma=(a,b,c)\in\Sigma$, and let $Y=\{a,b,c\}$. Then $\langle\Sigma\rangle|_Y=\{e,(a,b,c),(a,c,b)\}=A(Y)$. Now let $Y$ be a maximal set with these properties, and suppose that $Y\not=X$.
Since $\Sigma$ has property 2, $\langle\Sigma\rangle$ contains a permutation $\sigma$ that maps an element of $Y$ to an element of $X\backslash Y$. Therefore, $\Sigma$ contains a 3-cycle that maps an element of $Y$ to an element of $X\backslash Y$. This 3-cycle has one of two forms: $(x,y,z)$ with $x,y\in Y$ and $z\notin Y$, or $(x,y,z)$ with $z\in Y$ and $x,y\notin Y$.
In the first case, since $\langle\Sigma\rangle|_Y=A(Y)$, $\langle\Sigma\rangle$ contains all 3-cycles $(x,y,t)$, $t\in Y$. Thus $\langle\Sigma\rangle$ contains all 3-cycles $(x,y,t)$, $t\in Y\cup \{z\}$. By lemma 2.3.1, $\langle\Sigma\rangle|_{Y\cup\{z\}}=A(Y\cup\{z\})$ contradicting the maximality of $Y$.
In the second case, for each $t\in Y$, $\langle\Sigma\rangle|_Y$ contains a permutation $\sigma$ such that $\sigma(z)=t$, because $\langle\Sigma\rangle|_Y=A(Y)$. Hence $\sigma(xyz)\sigma^{-1}=(xyt)\in\langle\Sigma\rangle$. Since this is true for every $t\in Y$, $\langle\Sigma\rangle|_{Y\cup\{x,y\}}=A(Y\cup\{x,y\})$, again by lemma 2.3.1, which is again a contradiction. $\qed$
Definition 2.3.6 A permutation group $G$ on $X$, $|X|\ge 3$ is primitive if it preserves no non-trivial partition of $X$. (The single set $X$ and the collection of all singleton subsets are the trivial partitions. $G$ preserves a partition if every $\sigma\in G$ induces a permutation of the sets of the partition.) $\square$
Definition 2.3.7 A permutation group $G$ on $X$ is doubly transitive if it is transitive and for every $x,y,z\in X$, with $x\notin\{y,z\}$, there is a $\sigma\in G$ such that $\sigma(x)=x$ and $\sigma(y)=z$. $\square$
It is easy to see that if $G$ is doubly transitive then it is primitive.
Lemma 2.3.8 Suppose $G$ is a primitive transitive permutation group on $X$, and $G$ contains a 3-cycle. Then $A(X)\subseteq G$.
Proof. Let $\Sigma$ be the set of 3-cycles in $G$. We claim that $G$ preserves the orbits of $\langle\Sigma\rangle$.
First, we show that $\langle\Sigma\rangle\triangleleft G$. Suppose $\sigma\in\langle\Sigma\rangle$, that is, $\sigma$ is a product of 3-cycles. Let $\tau\in G$; we need to show that $\tau\sigma\tau^{-1}\in \langle\Sigma\rangle$. Write $$ \tau\sigma\tau^{-1}=\tau c_1 c_2 c_3\cdots c_k\tau^{-1} =\tau c_1\tau\tau^{-1} c_2\tau\tau^{-1} c_3\tau\tau^{-1} \cdots \tau\tau^{-1}c_k\tau^{-1}, $$ where the $c_i$ are 3-cycles. Now it suffices to show that $\tau c_i\tau^{-1}$ is a 3-cycle. It is easy to verify that $\tau (a,b,c)\tau^{-1}=(\tau(a),\tau(b),\tau(c))$.
Now suppose that $\tau\in G$, that $X_1$ and $X_2$ are orbits of $\langle\Sigma\rangle$, that $x\in X_1$, and that $\tau(x)\in X_2$. We need to show that $\tau(X_1)=X_2$. Suppose that $y\in X_1$, so there is a $\sigma\in\langle\Sigma\rangle$ such that $\sigma(x)=y$. Then $\tau(y)=\tau\sigma\tau^{-1}(\tau(x))$. Since $\tau\sigma\tau^{-1}\in\langle\Sigma\rangle$, $\tau(y)\in X_2$, so $\tau(X_1)\subseteq X_2$.
If $z\in X_2$, there is a $\sigma\in\langle\Sigma\rangle$ such that $\sigma\tau(x)=z$. Then $z=\sigma\tau(x)=\tau(\tau^{-1}\sigma\tau(x))$, and since $\tau^{-1}\sigma\tau\in \langle\Sigma\rangle$, $\tau^{-1}\sigma\tau(x)\in X_1$, and so $z\in \tau(X_1)$. Thus, $\tau(X_1)\supseteq X_2$.
Since $G$ is primitive and preserves the orbits of $\langle\Sigma\rangle$, the orbits must form a trivial partition of $X$. Since $\langle\Sigma\rangle$ contains a 3-cycle, the orbits cannot be the singletons, so there must be a single orbit, all of $X$. Thus, $\langle\Sigma\rangle$ is transitive and by lemma 2.3.5, $A(X)=\langle\Sigma\rangle\subseteq G$. $\qed$
Lemma 2.3.9 Let $X=\{y,a_1,a_2,\ldots,a_n,z,b_1,b_2,\ldots,b_m\}$, $n\ge m\ge 0$, and let $$\eqalign{ \pi &= (a_1,a_2,\ldots,a_n,z,b_1,b_2,\ldots,b_m)\cr \rho &= (b_1,b_2,\ldots,b_m,y,a_1,a_2,\ldots,a_n).\cr }$$ Then $\langle \pi,\rho\rangle=S(X)$ if $n+m$ is odd and $\langle \pi,\rho\rangle=A(X)$ if $n+m$ is even, unless
1. $n=2$, $m=1$,
2. $n=m=2$, or
3. $n=4$, $m=2$.
Proof. Without loss of generality, we may assume $n\ge m$.
It suffices to show that $A(X)\subseteq\langle\pi,\rho\rangle$, since $\pi$ and $\rho$ have the same parity as $m+n$.
The group $\langle \pi,\rho\rangle$ is doubly transitive on $X$: it is clearly transitive on $X$, and it is then not hard, but somewhat tedious, to see that it is doubly transitive and hence primitive. For example, suppose we seek a $\sigma$ that fixes $a_i$ and such that $\sigma(b_k)=a_j$, $i\not=j$. First, note that $\pi^{n-i+1}(a_i)=z$ and $\pi^{n-i+1}(b_k)=x$, where $x\in \{a_1,…,a_n,b_1,\ldots,b_m\}$. Then there is a $p$ such that $\rho^p(x)=\pi^{n-i+1}(a_j)\in \{a_1,…,a_n,b_1,\ldots,b_m\}$. Now $\pi^{i-n-1}\circ\rho^p\circ\pi^{n-i+1}$ fixes $a_i$ and maps $b_k$ to $a_j$.
If $n=m=0$, $\langle \pi,\rho\rangle=\{\epsilon\}=A(\{y,z\})$. Otherwise, by lemma 2.3.8, it suffices to show that $\langle\pi,\rho\rangle$ contains a 3-cycle.
Suppose first that $n\ge m\ge 3$. Then $\langle\pi,\rho\rangle$ contains the following permutations: $$\eqalign{ \sigma_1&=\rho\pi^{-1}=(y,a_1)(z,b_1)\cr \sigma_2&=\pi\sigma_1\pi^{-1}=(y,a_2,b_1,b_2)\cr \sigma_3&=\pi\sigma_2\pi^{-1}=(y,a_3,b_2,b_3)\cr \sigma_4&=\rho^{-m}\sigma_1\rho^m=(b_1,b_2)(z,a_{k+1}), k=n-m\le n-3\cr \sigma_5&=\sigma_2\sigma_4\cr \sigma_6&=\pi\sigma_5\pi^{-1}\cr \sigma_7&=\rho^{1-m}\sigma_1\rho^{m-1}\cr \sigma_8&=\sigma_7\sigma_3=(y,a_3)(z,a_{k+2})\cr \sigma_9&=\sigma_8\sigma_6=(z,a_{k+2},b_1).\cr }$$
Next, suppose $n>m\ge 0$, $n\not=2m$, $m< 3$. If $m=0$, $\rho\pi^{-1}=(a_1,z,y)$. If $m>0$, $$\eqalign{ \tau_1&=\rho\pi^{-1}=(y,a_1)(z,b_1)\cr \tau_2&=\rho^m\tau_1\rho^{-m}=(a_m,a_{m+1})(zy)\cr \tau_3&=\pi^{2m}\tau_1\pi^{-2m}=(y,c)(a_m,a_{m+1}),\cr }$$ where $c=\pi^{2m}(a_1)\notin\{y,z,a_m,a_{m+1}\}$. Then $\tau_3\tau_2=(y,z,c)$.
The only remaining case is $n=m=1$, in which case $\pi$ and $\rho$ are 3-cycles. $\qed$
In fact, in the three excluded cases of the lemma, the lemma is false, but we will not prove this. Wilson (Graph puzzles, homotopy, and the alternating group, Journal of Combinatorial Theory (B), 16 (1974), pp. 86-96.) does compute $\langle\pi,\rho\rangle$.
Lemma 2.3.10 (The Handle Theorem) Suppose $G$ is 2-connected and $K$ is a 2-connected proper subgraph of $G$. Then there are subgraphs $H$ and $A$ (the handle) of $G$ such that $H$ is 2-connected, $H$ contains $K$, $A$ is a simple path, $H$ and $A$ share exactly the endpoints of $A$, and $G$ is the union of $H$ and $A$.
Proof. Given $G$ and $K$, let $H$ be a maximal proper subgraph of $G$ containing $K$. If $V(H)=V(G)$, let $e$ be an edge not in $H$. Since $H$ plus the edge $e$ is 2-connected, it must be $G$, by the maximality of $H$. Hence $A$ is the path consisting of $e$ and its endpoints.
Suppose that $v$ is in $V(G)$ but not $V(H)$. Let $u$ be a vertex of $H$. Since $G$ is 2-connected, there is a cycle $C$ containing $v$ and $u$. Following this cycle from $v$ to $u$, Let $w$ be the first vertex in $H$. Continuing on the cycle from $u$ to $v$, let $x$ be the last vertex in $H$. If $x\not=w$, let $A$ be the path $(x,v_1,v_2,\ldots,v_k,v=v_{k+1},v_{k+2},\ldots,v_m,w)$, that is, the portion of the cycle between $x$ and $w$ containing no vertices of $H$ except $x$ and $w$. Since $H$ together with $A$ is 2-connected, it is $G$, as desired.
If $x=w$ then $x=w=u$. Let $y$ be a vertex of $H$ other than $u$. Since $G$ is 2-connected, there is a path $P$ from $v$ to $y$ that does not include $u$. Let $v_j$ be the last vertex on $P$ that is in $\{v_1,\ldots,v,\ldots,v_m\}$; without loss of generality, suppose $j\ge k+1$. Let $z$ be the first vertex on $P$ after $v_j$ that is in $H$. Then let $A$ be the path $(u,v_1,\ldots,v=v_{k+1},\ldots, v_j,\ldots,z)$, where from $v_j$ to $z$ we follow path $P$. Now $H\cup A$ is a 2-connected subgraph of $G$, but it is not $G$, as it does not contain the edge $\{u,v_m\}$, contradicting the maximality of $H$. Thus $x\not=w$. $\qed$
Definition 2.3.11 If $G$ is a graph, $\beta(G)=|E(G)|-|V(G)|+1$ is the cyclomatic number or Betti number of $G$. $\square$
When we prove the main lemma, 2.2.6, the induction will be on $\beta(G)$. It is easy to see that if $G=H\cup A$ as in lemma 2.3.10, $\beta(H)=\beta(G)-1$.
If $G$ is 2-connected and $\beta(G)=1$, $G$ is a cycle. When $\beta(G)=2$, $G$ is a $\theta$-graph, and this will be the base case for the induction. Because $\theta_0$ is excluded in our result, the case $\beta(G)=3$ will require that we can remove a handle from $G$ to get a $\theta$-graph that is not $\theta_0$. This is always possible, and not hard to prove, but somewhat tedious. We need to see that after adding a handle to $\theta_0$, we can remove a handle to leave a $\theta$-graph that is not $\theta_0$.
Lemma 2.3.12 If $\beta(G)=3$, it is possible to remove a handle leaving a $\theta$-graph other than $\theta_0$.
Proof. There are eight distinct ways to add a handle to $\theta_0$:
In the first case, we may remove the handle with interior node $v$ to form a $\theta$-graph of type $(x,0,4)$. The rest are similar. $\qed$
Exercises 2.3
Ex 2.3.1 Let $\Sigma$ be the set of 3-cycles in $G$. Show that $\langle\Sigma\rangle$ is the set of all products of 3-cycles.
Ex 2.3.2 If $\tau\colon X\to Y$ is a bijection, and $a,b,c\in X$, verify that $\tau (a,b,c)\tau^{-1}=(\tau(a),\tau(b),\tau(c))$.
Ex 2.3.3 State and prove a theorem analogous to the previous exercise, with $(a,b,c)$ replaced by any cycle $(a_1,a_2,\ldots,a_i)$.
Ex 2.3.4 Show that a doubly transitive group is primitive.
Ex 2.3.5 Show that if $|X|\not=2$, then the requirement that $G$ be transitive is not necessary in the definition of doubly transitive. That is, if $G$ is a permutation group such that for every $x,y,z\in X$, with $x\notin\{y,z\}$, there is a $\sigma\in G$ such that $\sigma(x)=x$ and $\sigma(y)=z$, then $G$ is transitive.
Ex 2.3.6 Prove that if $|X|\ge 4$ then $A(X)$ is doubly transitive on $X$.
Ex 2.3.7 A permutation group $G$ on $X$ is 2-transitive if for all $w\not=x$ and $y\not=z$ there is $\sigma\in G$ such that $\sigma(w)=y$ and $\sigma(x)=z$. Show that $G$ is 2-transitive if and only if $G$ is doubly transitive.
Ex 2.3.8 Finish the proof of lemma 2.3.12.