Rotational puzzles on graphs — Jaap's (x, y, z) classification
Abstract the cube's face turns to any graph: a connected graph with marked faces (directed cycles); each face gives a generator that cyclically rotates its pieces. The puzzle group Γ is a subgroup of Sn (n = piece count). Natural question: which graphs give Γ=Sn, which An, which something exotic?
31.1 Formalisation: graph, face, generator
Definition 31.1 — rotational graph puzzle
Given a finite connected graph G=(V,E) with ∣V∣=n, plus a family of marked directed closed cyclesF1,F2,…,Fk called faces. Each face is an ordered subset of V. Pieces {1,2,…,n} sit on vertices one-to-one. Each face Fi gives a generator ρi∈Sn that cyclically pushes pieces along the cycle. The puzzle group isΓ=⟨ρ1,ρ2,…,ρk⟩≤Sn.
Three immediate examples:
3×3 corners: G = the 8 corner-vertices of a 3-cube; 6 length-4 face cycles; Γ on positions contains A8 (orientation tracked separately).
Pyraminx edges: G = midpoints of the 6 edges of a tetrahedron; 4 length-3 face cycles; gives a subgroup of A6.
15-puzzle (as a degenerate example): a 4×4 grid plus one "blank." Cycling the blank around any 2×2 face is essentially a face turn — Wilson's 1974 bridge.
A subtle point: a face need not be a "face" in the planar-embedding sense — it is just a marked directed cycle, so the same graph can carry different face sets. Jaap focuses on the two-face case: exactly two cycles, together covering every vertex.
31.2 Two-face theorem — the (x, y, z) triple
Two faces share a contiguous segment. Let face 1 have x unique pieces, face 2 have z unique, and y be shared, so n=x+y+z. Without loss of generality x≤z. Face lengths are f1=x+y, f2=y+z.
Suppose f1,f2≥3. ThenΓ(x,y,z)=⎩⎨⎧S5(order 120)AnSnif (x,y,z)∈{(2,2,2),(1,3,2)},if both f1,f2 are odd,otherwise.When min(f1,f2)<3 the puzzle is degenerate: face too short to yield a 3-cycle.
Proof sketch (Jaap's exposition):
Parity: ρ1 is an f1-cycle with sgn(ρ1)=(−1)f1−1. If both fi are odd, Γ⊆An; if one is even, Γ contains an odd permutation, so it can equal Sn once we know An⊆Γ.
Constructing a 3-cycle: the commutator ρ1ρ2ρ1−1ρ2−1 is non-trivial and, in most face-size combinations, equals a 3-cycle or factors into 3-cycles. Key cases:
y = 1: with one shared piece, the commutator is exactly a 3-cycle (ρ1 pushes it one step on face 1, ρ2 pushes onto face 2, the inverses retrace — three vertices touched).
y ≥ 3 and (x,z) ≠ (2,2): a seven-step combination of ρ1ρ2 and ρ2−1ρ1−1 produces a 3-cycle. Since 3-cycles generate An, we get Γ⊇An.
Verifying the exceptions: (2,2,2) and (1,3,2) both have n=6 but order stops at 120 = 5! < 360 = 6!/2. Direct group-theoretic computation or GAP confirms.
What is this order-120 group? It is not the standard S5-on-5-points but the exceptional action of S5 on 6 points coming from PGL2(F5) on the projective line P1(F5) (6 points). This is the same "6-vs-5" sporadic isomorphism that drives §30.
(x, y, z) live classifier
group generated
A5
|G| = 60
both faces odd length ⇒ only even permutations ⇒ A_n
This covers Pyraminx two-face (2,1,2 ⇒ A5), Impossiball two-face (3,2,3 ⇒ A8), Alexander's Star (4,1,4 ⇒ A9). It also explains why (2, 2, 2) feels special — its 6 corners are exactly the §30 story.
31.3 Worked examples — eight (x, y, z) specimens
Substitute the theorem into eight notable triples and see where each falls. The "construction" column gives an explicit short commutator producing a 3-cycle — easy to verify by hand:
(x, y, z)
n
(f₁, f₂)
group
|Γ|
construction
(1, 1, 1)
3
(2, 2)
Z3
3
degenerate (faces too short)
(1, 2, 1)
4
(3, 3)
A4
12
[ρ1,ρ2] = 3-cycle
(2, 1, 2)
5
(3, 3)
A5
60
[ρ1,ρ2]; Pyraminx local
(1, 3, 2)
6
(4, 5)
S5(exceptional)
120
isomorphic to (2,2,2); kernel of Wilson's θ₀
(2, 2, 2)
6
(4, 4)
S5(exceptional)
120
PGL2(F5)↷P1(F5)
(3, 2, 3)
8
(5, 5)
A8
20,160
both odd faces; Impossiball local
(4, 1, 4)
9
(5, 5)
A9
181,440
Alexander's Star local
(3, 3, 3)
9
(6, 6)
S9
362,880
even faces ⇒ odd perm ⇒ full S
Note (2,1,2) ⇒ A5 of order 60 — the smallest non-Abelian simple group, proven in §21. Pyraminx's two-face local pattern realises the very bottom of the classification of finite simple groups. A plastic toy bottoms out one of the 19th century's greatest mathematical achievements.
Two-face turner — live parity & cycle type
current permidentity e
parity+1 (even)
cycle type1^5
Try (2,1,2): press L, R, L⁻¹, R⁻¹ — you should see a 3-cycle (type 3·1², sgn = +1). Try (2,2,2): the same commutator yields a longer cycle, not a 3-cycle — visual evidence of (2,2,2)'s "stuck at 5!" anomaly.
31.4 Three faces and beyond — open classification
Real physical puzzles are mostly not two-faced. The cube has 6 faces, the Megaminx 12, the Pyraminx 4 — each extra face is a new generator and the combinatorics explodes. What's known:
Three-face "rescue": add a third face to (2,2,2); if the new face pairs with one of the original two in a non-exceptional way (falling into the An or Sn branch of Thm 31.2), the whole group jumps up to An or Sn. This is why (2,2,2) is abstractly fascinating but never the bottom line of any physical puzzle — a third face always erases the anomaly.
Independent piece types: physical puzzles usually have "corners + edges" (3×3) or "edges + centres + tips" (Pyraminx); pieces of different types are never mixed by face turns. The group factors asΓ↪Γcorners×Γedges×⋯and parity/orientation laws are then imposed. This is the heart of §6's "right place, wrong orientation" classification.
Open problem (Jaap): given k≥3 faces with pairwise overlap lengths yij and face sizes fi, classify Γ. No full theorem is known for k≥3 — only "large enough ⇒ An or Sn" partial results. Whether the exception list is finite remains open.
Multi-arc overlaps: Hungarian Rings and friends have two faces sharing on two disjoint arcs. This breaks the (x,y,z) parameterisation; Singmaster's Cubic Circular handles special cases, no general answer.
31.5 Wilson 1974 — the sliding-puzzle companion classification
In 1974 R. M. Wilson published Graph Puzzles, Homotopy, and the Alternating Group giving the complete classification for sliding puzzles: a single "blank" slides along edges of a connected graph G from initial vertex b. The state group is generated by "blank-around-a-face" operations — essentially the "blank-included" cousin of Thm 31.2.
Theorem 31.3 — Wilson (1974)
Suppose G is connected with minimum degree ≥ 2. The sliding-puzzle group W(G,b) equals:W(G,b)=⎩⎨⎧Zn⟨(123456)⟩⋊⟨(26)(35)⟩≅PGL2(F5)An−1Sn−1G=Cn (a cycle),G=θ0 (7-vertex exception),otherwise, if G bipartite,otherwise.Here θ0 is the unique sporadic graph: two length-4 paths sharing two endpoints plus an extra edge connecting the midpoints — equivalent to inserting a blank into the central shared segment of the (1,3,2) rotational puzzle.
Three families of exceptions:
Cycle Cn: blank traversing once gives cyclic Zn, far short of An−1
Bipartite graph (not a cycle): the blank alternates between two parts on each move, so its parity is constrained, W⊆An−1
θ₀: sporadic 7-vertex exception with ∣W∣=120 — isomorphic to (1,3,2) of Thm 31.2
Wilson three-cases visualiser
The θ₀ graph: Wilson 1974's unique sporadic exception. 7 vertices (1 blank + 6 tiles), state group PGL2(F5)≅S5 of order 120 — isomorphic to (2,2,2) and (1,3,2), and to §30's exotic S_5 on 6 points. Merging the two trivalent vertices recovers the (1,3,2) rotational puzzle.
The 15-puzzle is bipartite (the 4×4 grid is two-coloured by checkerboard), so Wilson's theorem gives A15, not S15. That is the algebraic explanation of Loyd's 1880 "$1000 prize for swapping 14 and 15": the swap is a transposition, an odd permutation in S15∖A15 — provably unreachable.
Wilson's proof goes through homotopy: view G as a 1-complex; blank moves are edge paths; "around a face" is a null-homotopic loop. The state group is essentially the image of π1(G) in the representation. Combinatorics translated to algebraic topology — a strikingly modern observation for 1974.
Given generators {g1,…,gk} compute ∣G∣. Brute enumeration is exponential. In 1970 C. Sims gave a polynomial-time algorithm — Schreier-Sims:
Choose a base(b1,b2,…,bm) so that G⊃Gb1⊃Gb1b2⊃⋯⊃{e}
For each stabiliser layer compute its orbit via "Schreier generators"
Orbit-stabiliser yields ∣G∣=∏i∣orbiti∣
Complexity O(n5log∣G∣); Seress 2003 surveys many refinements that handle n∼106. GAP, sympy and Magma ship Schreier-Sims out of the box: feed in the cube's six face generators and get ∣G∣=43,252,003,274,489,856,000 in seconds.
Schreier-Sims step trace on S₅
step 0 / 5
generators
g₁ = (1 2 3 4 5), g₂ = (1 2). Candidate G ⊆ S₅
12345
current generators: g₁, g₂
Schreier-Sims output for small puzzle groups:
puzzle
# gens
n
|G|
time
15-puzzle
12
15
10,461,394,944,000
< 1 s
2×2×2
6
24
3,674,160
< 1 s
Pyraminx
8
14
75,582,720
< 1 s
Skewb
8
14
3,149,280
< 1 s
3×3×3
6
48
4.33 × 1019
< 10 s
Megaminx
12
132
1.01 × 1068
minutes
4×4×4
12
96
7.40 × 1045
minutes
31.7 Surfaces, quotients, and wreath products
Strip away the physical packaging and a rotational puzzle is a discrete quotient of a manifold rotation action. The 2×2×2 corner state space is exactly(Z3)7⋊S8,where (Z3)7 tracks "the 7 independent corner orientations (the 8th is forced by the orientation-sum conservation law)" and S8 tracks corner positions. The semidirect product encodes "positions move first, orientations follow."
More generally, the wreath productZn≀Sk describes "k objects, each with Zn orientation, freely permuted and individually twisted":Zn≀Sk=(Zn)k⋊Sk,with Sk acting on (Zn)k by permuting coordinates. Order ∣Zn≀Sk∣=nk⋅k!.
2×2×2 corners: (Z3≀S8)/Z3 (quotient by the orientation-sum law). Order 38⋅8!/3=3,674,160.
3×3 corners: same, coupled to edges by parity — full group is the index-2 subgroup of (Z3≀S8)×(Z2≀S12).
Pyraminx: the 4 tips are independent (Z3)4 (non-interacting); the 6 edges form A6×(Z2)?; the 4 centres each Z3 with constraints — assembled by semidirect product.
Wreath products correspond directly to covering spaces: each Zn is one piece's orientation circle (S1), and the configuration space of k pieces is a (kn)-fold quotient; the wreath product is the discrete symmetry of this "position × orientation" total manifold. See M. Davis, The Geometry and Topology of Coxeter Groups.
31.8 Puzzle gallery — 12 physical specimens vs (x, y, z)
Apply the classification to physical puzzles. Click each card to inspect its (x,y,z) decomposition (when applicable), its group, its order, and a one-line intuition:
12 puzzles, one by one
Exceptional (2,2,2)
(x, y, z) = (2, 2, 2) n = 6
S_5
|G| = 120
6 pieces but only 120 reachable — matches §30 exotic S_5 on 6 points
Note that (2,1,2) recurs: Pyraminx, Skewb, and any "tetrahedron-face-plus-an-axis" local pattern look like this, making A5 the "algebraic LCM of tetrahedral symmetry." This is exactly why the Pyraminx's edge positions embed in A6 — 6 edges modulo 4 face rotations equals the induced action of A5.
"Every plastic puzzle is a missionary for some finite group."
— modern group-theory teaching folklore
31.9 Open problems
k-face classification: the two-face theorem has 2 exceptions. For k=3 how many exceptions are there? Is the list finite? Jaap lists a few specific three-face anomalies but no general theorem.
Disconnected overlap: Hungarian Rings, Whip-It, etc. share two disjoint arcs. The (x,y,z) parameterisation fails; one needs the multiset {y1,y2,…} of overlap lengths. Only scattered results.
Oriented graph puzzles: Jaap's classification assumes unoriented pieces. Add per-vertex Zn orientation with conservation laws, the puzzle group becomes a subgroup of Zn≀Γ — which conservation laws can arise?
Jumbling puzzles: helicopter cube and friends have "non-integer face turns"; the state space is no longer a group but a manifold. Modern attempts beyond Hofstadter are sparse — the next frontier of puzzle algebra.
Diameter: for (x,y,z) rotational puzzles, what is the Cayley diameter of Γ? The exceptional (2,2,2) has diameter 5. No closed form is known for the generic case.
31.10 Wreath products S_k ≀ ℤ_n — the algebra of orientation
Take k objects each carrying Zn orientation (n = 2 for edges, n = 3 for corners, n = 4 for cube centres). Orientation is a function f:{1,…,k}→Zn; permuting positions σ∈Sk drags orientations along. The total group isZn≀Sk=Znk⋊Sk,∣Zn≀Sk∣=nk⋅k!.Multiplication rule:(f,σ)(g,τ)=(f+σ⋅g,στ),where (σ⋅g)(i)=g(σ−1(i)) ("permute, then twist").
The group of an actual puzzle is the subgroup of a wreath product cut out by conservation laws. For example:
G2×2 corners=ker(Σ:Z3≀S8→Z3), the kernel of the twist-sum, index 3
G3×3=ker(Σc,Σe,sgnc⋅sgne) with three conservation laws, index 12
GMegaminx sits inside (Z3≀S20)×(Z2≀S30)×(S5≀stuff) — full formula in §15.1
Graph-theoretic side: Zn≀Sk is the symmetry of "k dangling Zn-strings, freely permuted." In Cayley-graph theory wreath products are the classical recipe for constructing groups of large diameter, used in the 1930s to settle questions about maximal subgroups of Sn. Modern view: a wreath product is the automorphism group of a "coloured forest" (the algebraic dual of Boyer-Moore data structures).
This section promotes "Rubik's cube" to "rotational puzzle on a graph": two faces give (x, y, z); many faces give wreath subgroups; computation runs through Schreier-Sims; the limit is jumbling manifolds. Wilson 1974's sliding cousin supplies the dual viewpoint, and homotopy translates combinatorics into algebraic topology. The exception lives forever at (2,2,2): PGL2(F5)≅S5 acting on 6 points — the puzzle theory's smallest pretty counterexample, and the stitch that sews this section into §30.