betaFeedback

WorksMathematics

A classification of solvable spinning-switches puzzles

Abstract

Spinning-switches puzzles ask for a predetermined sequence of moves that works despite hidden permutations of the switches. Kagey formulated the problem using a finite group of switch states and a permutation group of positions, proved solvability when both groups are pp-groups for one prime pp, and classified the case of abelian switch groups. We prove the converse without an abelian hypothesis: for nontrivial finite groups GG and HH, with HH acting faithfully on a finite set Ω\Omega, a surjective strategy for G≀ΩHG\wr_\Omega H exists exactly when GG and HH are pp-groups for the same prime. This answers Kagey's Open Question 31. The necessity proof restricts the adversary to a prime-order element and tracks excluded configurations by cosets of prime-power subgroups. We also give a central-series proof of the known sufficient condition. The classification and its consequences for S3≀C2S_3\wr C_2 and A4≀C3A_4\wr C_3 are formalized in Lean. This work has not yet been reviewed by experts. The proofs, the Lean formalization and the text were produced by AI models, working under the author's direction.

Introduction

A player changes hidden switches while an adversary permutes their positions. The player must choose the moves in advance. Kagey’s model [1] assigns a group GG to each switch and lets a group HH act on the set of positions Ω\Omega. Write K=GΩK = G^{\Omega} for the configuration group, with pointwise multiplication, and put

(αhx)(ω)=x(h−1ω),W=K⋊αH,(x,h)(y,a)=(xαh(y),ha).(\alpha_hx)(\omega) = x(h^{-1}\omega), \qquad W = K \rtimes_{\alpha} H, \qquad(x,h)(y,a) = (x\alpha_h(y),ha).

A move is an arbitrary element of KK; in particular, it may change several switches at once. For fixed moves k1,…,kNk_1,\ldots,k_N and adversary choices h1,…,hNh_1,\ldots,h_N, put P0=1P_0 = 1 and Pj=(k1,h1)⋯(kj,hj)P_j = (k_1,h_1)\cdots(k_j,h_j). Write Pj=(bj,aj)P_j = (b_j,a_j). Following Definition 9 of [1 arXiv v1], the moves form a surjective strategy if, for every adversary sequence, {bj:0≤j≤N}=K\{b_j : 0 \leq j \leq N\} = K. Equivalently, from every initial configuration x0x_0, some x0bjx_0b_j equals 1. No observation of the spins is available.

Theorem 1. Let GG and HH be nontrivial finite groups, and let HH act faithfully on a finite set Ω\Omega. There is a surjective strategy for G≀ΩHG \wr_{\Omega} H if and only if there is a prime pp for which both GG and HH are pp-groups.

The action need not be transitive. A pp-group here means a finite group whose order is a power of pp. The nontriviality assumptions matter: trivial switches need no moves, and a trivial adversary permits a tour of any finite configuration group. If NN is the kernel of the action, each bjb_j depends only on the images of the hih_i in H/NH/N, so G≀ΩHG \wr_{\Omega} H has a surjective strategy if and only if G≀Ω(H/N)G \wr_{\Omega} (H/N) does. Hence in general a surjective strategy exists if and only if G=1G = 1, or HH acts trivially, or GG and H/NH/N are pp-groups for one prime pp.

All statement numbers below refer to arXiv:2210.09408v1, posted October 17, 2022, of Kagey’s 2023 paper [1]. Theorem 22 gives the sufficient condition in Theorem 1. Theorem 23 gives the equivalence when GG is abelian. Open Question 31 asks for the finite wreath products admitting a surjective strategy. Our contribution is necessity for arbitrary finite switch groups, including nonabelian groups; § 3 reproves the known sufficiency for a complete formal proof. Earlier rotating-table and blind-bartender puzzles were studied by Bar Yehuda, Etzion and Moran [3] and Ehrenborg and Skinner [4]; Rabinovich’s linear-action criterion [5], stated as Theorem 13 of [1 arXiv v1], says that a faithful linear action on a finite-field vector space of characteristic pp admits a strategy exactly when the acting group is a pp-group. That linear setting does not cover nonabelian switch groups; our coset invariant supplies necessity in this case.

Theorem 26 of that version asserts solvability for G≀C2G \wr C_2 when GG is generated by involutions. This assertion was already corrected: ndkrempel reported on MathOverflow on December 7, 2025 that Theorem 26 fails, and Kagey acknowledged the error there on December 8, 2025, noting that Example 27 fails [2]. The classification, not that correction, is the claim of this paper. For example, it implies that S3≀C2S_3 \wr C_2, with C2C_2 interchanging two positions, is unsolvable, refuting Conjecture 32 (already implicit in the Theorem 26 correction). It refutes Conjecture 33 for every n≥4n \ge4: An≀C3A_n \wr C_3 on three cyclically permuted positions is unsolvable because ∣An∣\lvert A_n\rvert is even; the n=3n = 3 case holds by Theorem 22. For a nontrivial pp-group HH acting faithfully, it settles Conjecture 34 exactly: a strategy exists precisely when GG is a pp-group; the trivial adversary case is always solvable, as above. The formalized negative instances are S3≀C2S_3 \wr C_2 and A4≀C3A_4 \wr C_3, with group orders 6, 2 and 12, 3, respectively.

The prime-order obstruction

Fix a prime qq, an element h∈Hh \in H of order qq, and a position ω\omega that hh moves. Its orbit OO has qq elements. Restrict the adversary to ⟨h⟩\langle h\rangle. For k∈Kk \in K and E⊆KE \subseteq K, define

Tk(E)={1}∪{y∈K:(a↦y(hna))k−1∈E for every n≥0}.(1)T_k(E) = \{1\} \cup\{y \in K : (a \mapsto y(h^n a))k^{-1} \in E \text{ for every } n \ge0\}. \tag*{(1)}

For a move sequence, set E0={1}E_0 = \{1\} and Ei=Tki(Ei−1)E_i = T_{k_i}(E_{i-1}). These are configurations excluded from surviving play, expressed in the adversary’s moving coordinates.

Lemma 2. If EN≠KE_N \ne K, the moves k1,…,kNk_1,\ldots,k_N are not a surjective strategy.

Proof. Choose zN∉ENz_N \notin E_N. Recursively, (1) gives nin_i such that zi−1=(a↦zi(hnia))ki−1∉Ei−1z_{i-1} = (a \mapsto z_i(h^{n_i}a))k_i^{-1} \notin E_{i-1}. Every ziz_i is nonidentity. Set hi=h−nih_i = h^{-n_i} and x0=z0x_0 = z_0. The multiplication in WW gives, inductively,

x0bi=x0bi−1αai−1(ki)=αai−1(zi−1ki),αai−1(x0bi)=αhi−1(zi−1ki)=zi,(2)\begin{aligned} x_0b_i &= x_0b_{i-1}\alpha_{a_{i-1}}(k_i) = \alpha_{a_{i-1}}(z_{i-1}k_i), \\ \alpha_{a_i}^{-1}(x_0b_i) &= \alpha_{h_i}^{-1}(z_{i-1}k_i) = z_i, \tag*{(2)} \end{aligned}

since ai=ai−1hia_i = a_{i-1}h_i. Thus x0bi≠1x_0b_i \ne1 for every prefix, so the base projections miss x0−1x_0^{-1}. □

Say that y∈Ky \in K is PP-aligned on OO, for a subgroup P≤GP \le G, if y(a)−1y(b)∈Py(a)^{-1}y(b) \in P for all a,b∈Oa,b \in O. This means its values on OO lie in one left coset of PP.

Lemma 3. If every member of EE is PP-aligned on OO for a qq-subgroup P≤GP \leq G, then there is a qq-subgroup P′≤GP' \leq G such that every member of Tk(E)T_k(E) is P′P'-aligned on OO.

Proof. For y∈Tk(E)y \in T_k(E) with y≠1y \ne1, rotate any t∈Ot \in O to any a∈Oa \in O in (1) and apply alignment at t,htt,ht. This gives

k(t)(y(a)−1y(ha))k(ht)−1∈P(a,t∈O).(3)k(t)\bigl(y(a)^{-1}y(ha)\bigr)k(ht)^{-1} \in P \qquad(a,t \in O). \tag*{(3)}

Put

R=⋂t∈Ok(t)−1Pk(t),C=⋂t∈Ok(t)−1Pk(ht).R = \bigcap_{t \in O} k(t)^{-1}Pk(t), \qquad C = \bigcap_{t \in O} k(t)^{-1}Pk(ht).

If Tk(E)={1}T_k(E) = \{1\}, take P′=1P' = 1. Otherwise (3) supplies c∈Cc \in C. We have C=RcC = Rc: indeed, d∈Cd \in C exactly when dc−1∈Rdc^{-1} \in R. Also cc normalizes RR. To see this, write vt=k(t)ck(ht)−1∈Pv_t = k(t)ck(ht)^{-1} \in P; for r∈Rr \in R,

k(t)crc−1k(t)−1=vt(k(ht)rk(ht)−1)vt−1∈P.k(t)crc^{-1}k(t)^{-1} = v_t\bigl(k(ht)rk(ht)^{-1}\bigr)v_t^{-1} \in P.

This proves cRc−1⊆RcRc^{-1} \subseteq R, hence equality by finiteness. Multiplying vtvht⋯vhq−1tv_tv_{ht}\cdots v_{h^{q-1}t} shows k(t)cqk(t)−1∈Pk(t)c^qk(t)^{-1} \in P, so cq∈Rc^q \in R.

The subgroup RR is a qq-group, being contained in a conjugate of PP. Consequently P′=⟨R,c⟩=R⟨c⟩P' = \langle R,c\rangle= R\langle c\rangle is a qq-group: RR is normal in P′P' and P′/RP'/R is cyclic of order dividing qq. Equation (3) puts every consecutive difference y(a)−1y(ha)y(a)^{-1}y(ha) in C⊆P′C \subseteq P'. Multiplying consecutive differences around OO gives y(a)−1y(b)∈P′y(a)^{-1}y(b) \in P' for all a,b∈Oa,b \in O. The identity configuration satisfies the same conclusion. □

Necessity in Theorem 1. Suppose a surjective strategy exists. For any prime qq dividing ∣H∣|H|, Cauchy’s theorem supplies an element hh of order qq; faithfulness supplies a position it moves. Starting with the trivial subgroup and E0={1}E_0 = \{1\}, Lemma 3 gives a qq-subgroup PNP_N such that all of ENE_N is PNP_N-aligned on OO. Lemma 2 forces EN=KE_N = K. For each g∈Gg \in G, choose a configuration with value 11 at ω\omega and gg at hωh\omega. Alignment forces g∈PNg \in P_N. Thus G=PNG = P_N is a qq-group.

Choose a prime p∣∣H∣p \mid|H|, possible since H≠1H \ne1. Then GG is a pp-group. Because G≠1G \ne1, it cannot also be a qq-group for a different prime qq. Every prime divisor of ∣H∣|H| is therefore pp, and HH is a pp-group as well. □

Sufficiency and the formal theorem

Here is a self-contained proof of Kagey’s sufficient condition. For the full adversary, replace (1) by

TkH(E)={1}∪{y:αa(y)k−1∈E for all a∈H}.T_k^H(E) = \{1\} \cup\{y : \alpha_a(y)k^{-1} \in E \text{ for all } a \in H\}.

Let EH(s)E^H(s) be the result of applying these operations to {1}\{1\} along a sequence ss. If a play from x0x_0 never reaches 11, its moving configuration zj=αaj−1(x0bj)z_j = \alpha_{a_j^{-1}}(x_0b_j) stays outside the corresponding excluded set: using (2) with a=hja = h_j in the universal condition gives αhj(zj)kj−1=zj−1\alpha_{h_j}(z_j)k_j^{-1} = z_{j-1}, so induction excludes zjz_j from TkjH(EH(k1,…,kj−1))T_{k_j}^H(E^H(k_1,\ldots,k_{j-1})). Hence EH(s)=KE^H(s) = K implies that ss is surjective.

Lemma 4. Let M◃KM \triangleleft K be HH-invariant. Suppose a sequence ss of moves in MM satisfies M⊆EH(s)M \subseteq E^H(s). If u∈K∖Mu \in K \setminus M commutes modulo MM with every element of WW, the same assertion holds for the strictly larger normal, HH-invariant subgroup L=M⟨u⟩L = M\langle u\rangle.

Proof. The commutator hypothesis makes LL normal in KK and HH-invariant, and makes HH fix each coset MujMu^j. Form a sequence consisting of rr copies of ss separated by the move u−1u^{-1}, where rr is the order of uu. After i+1i+1 copies, the excluded set contains M∪Mu−1∪⋯∪Mu−iM \cup Mu^{-1} \cup\cdots\cup Mu^{-i}. This follows by induction. The separating move sends each guaranteed coset Mu−jMu^{-j} to Mu−(j+1)Mu^{-(j+1)} in the recurrence. Each subsequent move in ss preserves these shifted cosets, because they are HH-invariant and closed under right multiplication by MM. Meanwhile the block ss restores MM: every excluded set contains 11, and the recurrence is monotone in EE. After rr copies all of LL is excluded. All moves used lie in LL.

Sufficiency in Theorem 1. If GG and HH are pp-groups, then WW is a finite pp-group and so is nilpotent. Begin with M=1M=1 and the empty sequence. For M≠KM \ne K, let Zi(W)Z_i(W) be the upper central series, and choose the least ii with K∩Zi(W)⊈MK \cap Z_i(W) \not\subseteq M. Choose uu in this difference. Its commutators with WW lie in K∩Zi−1(W)⊆MK \cap Z_{i-1}(W) \subseteq M. Lemma 4 enlarges MM while preserving the sequence property. Finiteness makes this process reach M=KM=K, giving a sequence with EH(s)=KE^H(s)=K, hence a surjective strategy.

The accompanying Lean project proves the full statement, in namespace SpinningSwitches, with the following parameters and type:

variable {G H Ω : Type*} [Group G] [Group H] [MulAction H Ω]
theorem classification [Finite G] [Finite H] [Finite Ω]
    [FaithfulSMul H Ω] [Nontrivial G] [Nontrivial H] :
    (∃ ks : List (Ω → G), IsSurjectiveStrategy H ks) ↔
      ∃ p : ℕ, p.Prime ∧ IsPGroup p G ∧ IsPGroup p H

Here IsSurjectiveStrategy quantifies over every equally long list of adversary moves and every base configuration, requiring a prefix index from zero through the list length whose base projection equals that configuration. It is exactly the definition in Section 1. For finite groups, Mathlib’s IsPGroup is equivalent to having prime-power order. The development also checks the two unsolvable examples stated above. It does not assert an optimal strategy length.

To reproduce the check, install elan, Git, and a C compiler, enter lean/ in the accompanying bundle, and run lake exe cache get, then lake build. The project pins Lean 4.34.0 and its Mathlib dependencies. The build checks the proof, its statement type, small examples, and axiom guards. The theorem uses only Lean’s standard axioms propext, Classical.choice, and Quot.sound; no compiled evaluation is used. This relies on Lean’s kernel and the stated formal definitions. The formalization uses Mathlib’s finite-group and nilpotency libraries [6]. A cached build takes several minutes.

References

  1. [1]P. Kagey, Spinning switches on a wreath product, Journal of Combinatorial Theory, Series A 200 (2023), 105795. doi:10.1016/j.jcta.2023.105795. Statement numbers refer to arXiv:2210.09408v1, October 17, 2022.DOI
  2. [2]ndkrempel and P. Kagey, comments of December 7 and December 8, 2025, on Kagey’s answer to Game on groups (generalization of spinning switches puzzle), MathOverflow, https://mathoverflow.net/a/423643.
  3. [3]R. Bar Yehuda, T. Etzion and S. Moran, Rotating-table games and derivatives of words, Theoretical Computer Science 108 (1993), 311–329. doi:10.1016/0304-3975(93)90196-Z.DOI
  4. [4]R. Ehrenborg and C. M. Skinner, The blind bartender’s problem, Journal of Combinatorial Theory, Series A 70 (1995), 249–266. doi:10.1016/0097-3165(95)90092-6.DOI
  5. [5]Y. Rabinovich, A generalization of the Blind Rotating Table game, Information Processing Letters 176 (2022), 106233. doi:10.1016/j.ipl.2021.106233.DOI
  6. [6]The mathlib Community, The Lean mathematical library, Proceedings of CPP 2020, 367–381. doi:10.1145/3372885.3373824.DOI

Paper details

vlnc:W_wys855ua
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 4

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

AI models

View statement
Looking for related papers…
Contents