Introduction
The classical subset sum problem asks whether some of the integers in a given list sum to a given target integer. With binary-encoded integers, it is one of the fundamental NP-complete problems [27 ] . Its algorithmic complexity continues to attract considerable attention. For positive integers, Bringmann [5 ] gave a randomized pseudopolynomial algorithm whose running time is near-linear in the number of input integers plus the target integer, up to logarithmic factors. Chan [9 ] recently obtained a deterministic algorithm with the same bound, up to logarithmic factors. Independent recent preprints by Chen, Mao, and Zhang [11 ] and Jin and Mao [25 ] give deterministic pseudopolynomial algorithms with almost-linear dependence on the largest absolute value of the input integers.
In this paper, we study the parameterized complexity of subset sum, where the parameter k ∈ N k \in\mathbb{N} k ∈ N is the number of selected integers from the input list. Parameterized algorithms aim to confine the expensive part of a computation to a parameter that is determined by the input but may be small compared to the total input length. A problem belongs to the class FPT (for fixed-parameter tractable) if it can be solved with an algorithm that for input length n ∈ N n \in\mathbb{N} n ∈ N has a running time of f ( k ) ⋅ n c f(k) \cdot n^c f ( k ) ⋅ n c , where f : N → N f:\mathbb{N} \to\mathbb{N} f : N → N is computable and c ∈ N c \in\mathbb{N} c ∈ N is a constant independent of k k k . Attempts to define an analogue of NP in the parameterized world led to the W-hierarchy, W [ 1 ] ⊆ W [ 2 ] ⊆ ⋯ \mathrm{W}[1] \subseteq\mathrm{W}[2] \subseteq\cdots W [ 1 ] ⊆ W [ 2 ] ⊆ ⋯ . Hardness for one of these classes gives evidence against fixed-parameter tractability, whereas membership results relate a problem to standard problems in the W-hierarchy such as parameterized clique or weighted satisfiability. We refer to the books of Downey and Fellows [16 ] and Flum and Grohe [20 ] for the foundations of this theory.
For parameterized subset sum over the integers, denoted by pSSS[Z \mathbb{Z} Z ] in this paper, the best previously known unconditional bounds are W [ 1 ] \mathrm{W}[1] W [ 1 ] -hardness, proved by Downey and Fellows [15 Theorem 4.3] , and membership in W [ 3 ] \mathrm{W}[3] W [ 3 ] , proved by Buss and Islam [6 ] . Abboud, Lewi, and Williams [1 ] proved W[1 ] -completeness for the zero-target version when the m ≥ 1 m \ge1 m ≥ 1 input integers have absolute value at most m 2 k m^{2k} m 2 k . For arbitrary integers, they obtained a randomized fpt-reduction to parameterized clique. They also showed that this reduction can be derandomized under a circuit lower-bound assumption, saying that there is a Boolean function computable in time 2 O ( n ) 2^{O(n)} 2 O ( n ) on inputs of length n n n that requires circuits of size 2 Ω ( n ) 2^{\Omega(n)} 2 Ω ( n ) even when oracle gates for SAT are allowed. Under this assumption, pSSS[Z] is W[1 ] -complete; see Appendix B of the full version of [1 ] .
Our first result improves the unconditional upper bound for pSSS[Z] to W[2 ] (Theorem 4.3 ). After shifting the input integers to make them nonnegative and adjusting the target accordingly, we write them in base k + 1 k+1 k + 1 . Since every carry is smaller than k + 1 k+1 k + 1 , in a sum of k k k selected input integers that yields the target integer, the carry into a digit position p p p is uniquely determined by the sum of the position-p p p digits of the k k k selected integers and the position-p p p digit of the target integer (see Lemma 4.1 ). This leads to a locally checkable condition that can be described by a set of forbidden digit patterns. The absence of these forbidden digit patterns can be formulated with a CNF formula, which then yields an fpt-reduction to weighted CNF satisfiability with parameter k k k , a problem that is known to be in W[2 ] .
We next turn to permutation groups, where addition is replaced by composition of permutations. Given a list of permutations, a target permutation, and a length bound k ∈ N k \in\mathbb{N} k ∈ N , the length problem asks whether the target is a product of at most k k k permutations from the list. Repetitions are allowed, and the order of the chosen permutations is unrestricted. Even and Goldreich [18 ] proved that the problem is NP-complete when k k k is encoded in unary. For binary-encoded k k k , Jerrum [24 ] proved PSPACE-completeness, even for two input generators. In a recent preprint, Thumm and the author [30 Theorem 1.2] established a sharp distinction for nilpotent groups: the binary length problem is NP-complete for 2-step nilpotent permutation groups and PSPACE-complete already for permutation groups that are simultaneously 3-step nilpotent and metabelian.
When the length bound k k k is the parameter, the exact-length version (where a product of exactly k k k permutations from the input list must yield the target) is called Permutation Group Factorization by Cai, Chen, Downey, and Fellows [7 ] . They proved that it is W[1 ] -hard [7 Theorem 6] . In the same paper, they proved W[2 ] -hardness for the corresponding factorization problem in transformation monoids, whose elements are arbitrary self-maps of a finite set [7 Theorem 7] . Lohrey and Rosowski [29 ] denote Permutation Group Factorization by pF[S∗ _* ∗ ], where pF stands for parameterized factorization and S ∗ S_* S ∗ is the class of all symmetric groups. In the present paper, we write Sym() for this class and hence pF[Sym( )] for the problem. The related parameterized subset sum problem pSSS[Sym()] asks whether a target permutation is an ordered product of k k k entries selected from a given list of permutations, with each list element used at most once and the list order preserved. There is a simple fpt-reduction from pF[Sym( )] to pSSS[Sym()] that works for arbitrary groups and does not change the ambient group generated by the input group elements; see Lemma 3.3 . In the rest of the introduction we only consider the exact-length variants pF[Sym( )] and pSSS[Sym(*)], but all our results also hold for the variants where the target has to be produced by at most k k k elements from the input list.
The best known upper bound for pSSS[Sym(*)] is membership in Wf u n c ^{\mathrm{func}} func [2 ] , established by Lohrey and Rosowski [29 ] . The difference between Wf u n c ^{\mathrm{func}} func [2 ] and W[2 ] can be expressed using model checking: both classes can be defined as the fpt-closure of the model-checking problem for finite structures and first-order sentences with an existential quantifier block followed by one universal quantifier, but W[2 ] uses relational vocabularies, whereas Wf u n c ^{\mathrm{func}} func [2 ] also permits function symbols and nested terms. A machine-based characterization of W f u n c [ 2 ] W^{\mathrm{func}}[2] W func [ 2 ] can be found in [12 ] . By definition, we have W [ 2 ] ⊆ W f u n c [ 2 ] W[2] \subseteq W^{\mathrm{func}}[2] W [ 2 ] ⊆ W func [ 2 ] ; the reverse inclusion is not known. Despite the upper bound W f u n c [ 2 ] W^{\mathrm{func}}[2] W func [ 2 ] for pSSS [ Sym ( ∗ ) ] \operatorname{pSSS}[\operatorname{Sym}(*)] pSSS [ Sym ( ∗ )] , it remains open whether pSSS [ Sym ( ∗ ) ] \operatorname{pSSS}[\operatorname{Sym}(*)] pSSS [ Sym ( ∗ )] belongs to any fixed level of the W W W -hierarchy.
When restricting pSSS [ Sym ( ∗ ) ] \operatorname{pSSS}[\operatorname{Sym}(*)] pSSS [ Sym ( ∗ )] (or pF [ Sym ( ∗ ) ] \operatorname{pF}[\operatorname{Sym}(*)] pF [ Sym ( ∗ )] ) to the case where the input permutations generate a solvable permutation group G G G of derived length d ≥ 1 d \ge1 d ≥ 1 , where d d d is a fixed constant, we obtain an upper bound of W [ 2 d ] W[2d] W [ 2 d ] (Theorem 5.6 ). The proof is by induction on d d d and constructs from the input instance an instance of the weighted satisfiability problem for Boolean circuits of weft at most 2 d 2d 2 d and depth at most 4 d 4d 4 d . We proceed along the derived series of G G G and equip the orbits of the abelian normal subgroup G ( d − 1 ) ⊴ G G^{(d-1)} \trianglelefteq G G ( d − 1 ) ⊴ G with abelian group structures. An affine decomposition expresses product evaluation in G G G through an action of a group of smaller derived length and sums in these orbit groups (Lemma 5.4 ). Encoding the sums by positive CNFs (see Lemma 5.2 ) adds at most two to the circuit weft and four to its depth at each step, giving circuits of weft at most 2 d 2d 2 d and depth at most 4 d 4d 4 d .
For nilpotent permutation groups of any fixed nilpotency class, we can further lower the complexity to W [ 2 ] W[2] W [ 2 ] (Theorem 6.14 ). The main ingredients are Hall coordinates and the Magnus embedding to express an ordered product equation in a nilpotent group by polynomial congruences of bounded degree. An fpt-reduction then replaces these congruences by a subset sum instance over an abelian permutation group, which allows us to use the above-mentioned Theorem 5.6 for d = 1 d = 1 d = 1 .
Finally, we improve the lower bound for pF [ Sym ( ∗ ) ] \operatorname{pF}[\operatorname{Sym}(*)] pF [ Sym ( ∗ )] (and hence also for pSSS [ Sym ( ∗ ) ] \operatorname{pSSS}[\operatorname{Sym}(*)] pSSS [ Sym ( ∗ )] ) from W [ 1 ] W[1] W [ 1 ] to W [ 2 ] W[2] W [ 2 ] (Theorem 7.2 ). This lower bound holds already for the restriction where the input permutations generate a 2-group (a group in which every element has order 2 p 2^p 2 p for some p p p ), which is necessarily nilpotent. Our reduction starts from parameterized Set Cover (given sets S 1 , … , S m ⊆ U S_1,\ldots,S_m \subseteq U S 1 , … , S m ⊆ U , are there at most k k k subsets S i S_i S i that cover U U U ?) and uses nested commutators in a dihedral 2-group to test, for each element a ∈ U a \in U a ∈ U of the Set Cover instance, whether at least one selected set S i ⊆ U S_i \subseteq U S i ⊆ U contains a a a . Additional cyclic factors of order two ensure that these selected S i S_i S i , when taking all a ∈ U a \in U a ∈ U into account, form a consistent choice of at most k k k sets from S 1 , … , S m S_1,\ldots,S_m S 1 , … , S m . Finally, copies of the dihedral group of order eight force the group elements to occur in the required order that is imposed by the constructed pF [ Sym ( ∗ ) ] \operatorname{pF}[\operatorname{Sym}(*)] pF [ Sym ( ∗ )] instance. The nilpotency class of the constructed groups depends on the parameter k k k and is therefore not fixed.
Preliminaries
In this section we collect general notations and define the necessary framework from parameterized complexity and group theory (in particular, permutation groups).
General notations
We write N = { 0 , 1 , 2 , … } \mathbb{N} = \{0,1,2,\ldots\} N = { 0 , 1 , 2 , … } . For integers i , j i,j i , j we write [ i , j ] [i,j] [ i , j ] for the interval { i , i + 1 , … , j } \{i,i+1,\ldots,j\} { i , i + 1 , … , j } ; if i > j i > j i > j , this interval is empty. For a Boolean condition A A A that is either true or false we define 1 [ A ] \mathbf{1}[A] 1 [ A ] as 1 if A A A is true and otherwise as 0. We write poly ( n ) \operatorname{poly}(n) poly ( n ) for an arbitrary polynomial in n n n .
For a row vector a ˉ = ( a 1 , a 2 , … , a k ) ∈ R k \bar{a}=(a_1,a_2,\ldots,a_k)\in\mathbb{R}^k a ˉ = ( a 1 , a 2 , … , a k ) ∈ R k we define the norm ∣ a ˉ ∣ 1 = ∣ a 1 ∣ + ∣ a 2 ∣ + ⋯ + ∣ a k ∣ |\bar{a}|_1=|a_1|+|a_2|+\cdots+|a_k| ∣ a ˉ ∣ 1 = ∣ a 1 ∣ + ∣ a 2 ∣ + ⋯ + ∣ a k ∣ . The least common multiple of integers a 1 , … , a k a_1,\ldots,a_k a 1 , … , a k is denoted by lcm { a 1 , … , a k } \operatorname{lcm}\{a_1,\ldots,a_k\} lcm { a 1 , … , a k } . With 0 0 0 we denote a tuple of zeros, whose length is determined by the context and similarly for 1 1 1 . For a row vector a ˉ \bar{a} a ˉ we write a ˉ T \bar{a}^{\mathsf{T}} a ˉ T for the transposed column vector.
For a multivariate polynomial P ∈ R [ x ˉ ] P\in\mathbb{R}[\bar{x}] P ∈ R [ x ˉ ] we define the (total) degree of P P P as follows: For a monomial x 1 n 1 x 2 n 2 ⋯ x t n t x_1^{n_1}x_2^{n_2}\cdots x_t^{n_t} x 1 n 1 x 2 n 2 ⋯ x t n t the degree is n 1 + n 2 + ⋯ + n t n_1+n_2+\cdots+n_t n 1 + n 2 + ⋯ + n t and the degree of P P P is the maximal degree of a monomial in P P P . For the zero polynomial we define the degree as − ∞ -\infty − ∞ .
For a finite alphabet Σ \Sigma Σ of symbols, we denote by Σ ∗ \Sigma^* Σ ∗ the set of all finite words over Σ \Sigma Σ . The length of a word w ∈ Σ ∗ w \in\Sigma^* w ∈ Σ ∗ is denoted by ∣ w ∣ |w| ∣ w ∣ . For n ∈ N n \in\mathbb{N} n ∈ N we define Σ n = { w ∈ Σ ∗ : ∣ w ∣ = n } \Sigma^n = \{w \in\Sigma^* : |w| = n\} Σ n = { w ∈ Σ ∗ : ∣ w ∣ = n } and Σ ≤ n = { w ∈ Σ ∗ : ∣ w ∣ ≤ n } \Sigma^{\leq n} = \{w \in\Sigma^* : |w| \leq n\} Σ ≤ n = { w ∈ Σ ∗ : ∣ w ∣ ≤ n } .
Parameterized complexity
For a detailed introduction to parameterized complexity theory, the reader should consult the monograph [20 ] . A parameterized problem is a subset L ⊆ Σ ∗ × N L \subseteq\Sigma^* \times\mathbb{N} L ⊆ Σ ∗ × N for a finite alphabet Σ \Sigma Σ . For a pair ( u , k ) ∈ Σ ∗ × N (u,k) \in\Sigma^* \times\mathbb{N} ( u , k ) ∈ Σ ∗ × N , we call k k k the parameter. For a fixed number d ∈ N d \in\mathbb{N} d ∈ N , the d d d -th slice of L L L is L d = { ( u , d ) ∈ L : u ∈ Σ ∗ } L_d = \{(u,d) \in L : u \in\Sigma^*\} L d = {( u , d ) ∈ L : u ∈ Σ ∗ } . The class FPT of fixed-parameter tractable problems consists of all parameterized problems that can be decided in time f ( k ) ⋅ poly ( ∣ u ∣ ) f(k) \cdot\operatorname{poly}(|u|) f ( k ) ⋅ poly ( ∣ u ∣ ) for a computable function f : N → N f : \mathbb{N} \to\mathbb{N} f : N → N .
An fpt-reduction from L 1 ⊆ Σ 1 ∗ × N L_1 \subseteq\Sigma_1^* \times\mathbb{N} L 1 ⊆ Σ 1 ∗ × N to L 2 ⊆ Σ 2 ∗ × N L_2 \subseteq\Sigma_2^* \times\mathbb{N} L 2 ⊆ Σ 2 ∗ × N is a computable function R : Σ 1 ∗ × N → Σ 2 ∗ × N R : \Sigma_1^* \times\mathbb{N} \to\Sigma_2^* \times\mathbb{N} R : Σ 1 ∗ × N → Σ 2 ∗ × N such that the following hold for all ( u , k ) ∈ Σ 1 ∗ × N (u,k) \in\Sigma_1^* \times\mathbb{N} ( u , k ) ∈ Σ 1 ∗ × N :
( u , k ) ∈ L 1 (u,k) \in L_1 ( u , k ) ∈ L 1 if and only if R ( u , k ) ∈ L 2 R(u,k) \in L_2 R ( u , k ) ∈ L 2 ;
R ( u , k ) R(u,k) R ( u , k ) can be computed in time f ( k ) ⋅ poly ( ∣ u ∣ ) f(k) \cdot\operatorname{poly}(|u|) f ( k ) ⋅ poly ( ∣ u ∣ ) for a computable function f : N → N f : \mathbb{N} \to\mathbb{N} f : N → N ;
there is a computable function h : N → N h : \mathbb{N} \to\mathbb{N} h : N → N such that R ( u , k ) = ( u ′ , k ′ ) R(u,k) = (u',k') R ( u , k ) = ( u ′ , k ′ ) implies k ′ ≤ h ( k ) k' \leq h(k) k ′ ≤ h ( k ) .
We write L 1 ≤ f p t L 2 L_1 \leq_{\mathrm{fpt}} L_2 L 1 ≤ fpt L 2 if there is an fpt-reduction from L 1 L_1 L 1 to L 2 L_2 L 2 , and L 1 ≡ f p t L 2 L_1 \equiv_{\mathrm{fpt}} L_2 L 1 ≡ fpt L 2 if L 1 ≤ f p t L 2 ≤ f p t L 1 L_1 \leq_{\mathrm{fpt}} L_2 \leq_{\mathrm{fpt}} L_1 L 1 ≤ fpt L 2 ≤ fpt L 1 . For a parameterized problem L L L , its fpt-closure [ L ] f p t [L]^{\mathrm{fpt}} [ L ] fpt is the class of all parameterized problems K K K with K ≤ f p t L K \leq_{\mathrm{fpt}} L K ≤ fpt L .
We use the circuit characterization of the W-hierarchy [19 Remark 3.3 and Section 4.3] . Boolean circuits are built up from and- and or-gates with arbitrary fan-in and input gates that are labelled with a Boolean variable or a negated Boolean variable. An and-gate (resp., or-gate) with fan-in 0 can be identified with a constant gate carrying the truth value 1 (resp., 0). A gate is large if its fan-in is at least three. The weft of a Boolean circuit is the maximum number of large gates on a path in the circuit, and its depth is the maximum number of wires on a path. If X X X is the set of Boolean variables that appear (possibly negated) at the input gates of a circuit then a truth assignment for the circuit is a mapping ϕ : X → { 0 , 1 } \phi: X \to\{0,1\} ϕ : X → { 0 , 1 } . Under such a truth assignment, every circuit gate B B B evaluates to a truth value ϕ ( B ) \phi(B) ϕ ( B ) in the obvious way. The weight of a truth assignment ϕ : X → { 0 , 1 } \phi: X \to\{0,1\} ϕ : X → { 0 , 1 } is the number of x ∈ X x \in X x ∈ X with ϕ ( x ) = 1 \phi(x) = 1 ϕ ( x ) = 1 . For fixed d , c ≥ 1 d,c \geq1 d , c ≥ 1 , we define the following problem
Problem 2.1 (weighted circuit satisfiability for depth d d d and weft c c c , WCS[d , c d,c d , c ] for short).
Input: A Boolean circuit C C C with a distinguished output gate B B B , depth at most d d d and weft at most c c c and k ≥ 1 k \geq1 k ≥ 1 .
Parameter: k k k .
Question: Is there a truth assignment ϕ \phi ϕ for C C C of weight k k k such that ϕ ( B ) = 1 \phi(B) = 1 ϕ ( B ) = 1 ?
The class W [ k ] \mathrm{W}[k] W [ k ] for k ≥ 1 k \geq1 k ≥ 1 is defined as W [ k ] = ⋃ d ≥ 1 [ W C S [ d , k ] ] f p t \mathrm{W}[k] = \bigcup_{d \geq1}[\mathrm{WCS}[d,k]]^{\mathrm{fpt}} W [ k ] = ⋃ d ≥ 1 [ WCS [ d , k ] ] fpt .
Recall that a Boolean formula is in conjunctive normal form (CNF for short) if it is a conjunction of clauses, where a clause is a disjunction of literals (Boolean variables or negated Boolean variables). A CNF is positive if all its literals are variables. As usual, we identify a clause with a set of literals. The problem wCNFSAT is defined analogously to WCS[d , c d,c d , c ] but the Boolean circuit C C C is replaced by a CNF. This problem is W[2 ] -complete [19 Theorem 4.13] .
Groups
We assume that the reader is familiar with basic concepts in group theory (like normal subgroups, quotient groups, group homomorphisms, etc.); see [35 ] for more details. We write H ⊴ G H \trianglelefteq G H ⊴ G if H H H is a normal subgroup of G G G . For a group G G G , an element g ∈ G g \in G g ∈ G is central if g h = h g gh = hg g h = h g for all h ∈ G h \in G h ∈ G . For elements g , h ∈ G g, h \in G g , h ∈ G we define the commutator [ g , h ] = g − 1 h − 1 g h [g,h] = g^{-1}h^{-1}gh [ g , h ] = g − 1 h − 1 g h .
For A , B ⊆ G A, B \subseteq G A , B ⊆ G we write [ A , B ] [A,B] [ A , B ] for the subgroup of G G G generated by all commutators [ a , b ] [a,b] [ a , b ] with a ∈ A a \in A a ∈ A and b ∈ B b \in B b ∈ B . We define the lower central series of G G G by γ 1 ( G ) = G \gamma_1(G) = G γ 1 ( G ) = G and γ i + 1 ( G ) = [ γ i ( G ) , G ] \gamma_{i+1}(G) = [\gamma_i(G),G] γ i + 1 ( G ) = [ γ i ( G ) , G ] for i ≥ 1 i \ge1 i ≥ 1 . Every γ i ( G ) \gamma_i(G) γ i ( G ) is a normal subgroup of G G G and γ i + 1 ( G ) ⊴ γ i ( G ) \gamma_{i+1}(G) \trianglelefteq\gamma_i(G) γ i + 1 ( G ) ⊴ γ i ( G ) . Moreover, [ γ i ( G ) , γ j ( G ) ] ⊆ γ i + j ( G ) [\gamma_i(G),\gamma_j(G)] \subseteq\gamma_{i+j}(G) [ γ i ( G ) , γ j ( G )] ⊆ γ i + j ( G ) holds for all i , j ≥ 1 i,j \ge1 i , j ≥ 1 . A group G G G is called d d d -step nilpotent if γ d + 1 ( G ) = 1 \gamma_{d+1}(G) = 1 γ d + 1 ( G ) = 1 and G G G is called nilpotent if G G G is d d d -step nilpotent for some d d d . For a prime p p p , a finite p p p -group is a finite group whose order is a power of p p p . Every finite p p p -group is nilpotent [35 5.1.3] .
The derived series of a group G G G is defined by G ( 0 ) = G G^{(0)} = G G ( 0 ) = G and G ( i + 1 ) = [ G ( i ) , G ( i ) ] G^{(i+1)} = [G^{(i)},G^{(i)}] G ( i + 1 ) = [ G ( i ) , G ( i ) ] for i ∈ N i \in\mathbb{N} i ∈ N . Every G ( i ) G^{(i)} G ( i ) is a normal subgroup of G G G . If G ( d ) = 1 G^{(d)} = 1 G ( d ) = 1 then G G G is called solvable of derived length d d d and if there is a d d d with G ( d ) = 1 G^{(d)} = 1 G ( d ) = 1 then G G G is called solvable . Note that our definition implies that if G G G is solvable of derived length d d d then it is also solvable of derived length d + 1 d+1 d + 1 .
For a group G G G and a subset A ⊆ G A \subseteq G A ⊆ G we write ⟨ A ⟩ \langle A\rangle ⟨ A ⟩ for the smallest subgroup of G G G containing A A A . If G = ⟨ A ⟩ G = \langle A\rangle G = ⟨ A ⟩ then A A A is called a generating set for G G G . If A = { g 1 , … , g m } A = \{g_1,\ldots,g_m\} A = { g 1 , … , g m } then we also write ⟨ g 1 , … , g m ⟩ \langle g_1,\ldots,g_m\rangle ⟨ g 1 , … , g m ⟩ for ⟨ A ⟩ \langle A\rangle ⟨ A ⟩ .
Permutation groups
For a set Ω \Omega Ω we denote with Sym ( Ω ) \operatorname{Sym}(\Omega) Sym ( Ω ) the group of all permutations on the set Ω \Omega Ω . In this paper, Ω \Omega Ω will always be finite. If Ω = [ 1 , n ] \Omega= [1,n] Ω = [ 1 , n ] then we also write Sym ( n ) \operatorname{Sym}(n) Sym ( n ) for Sym ( Ω ) \operatorname{Sym}(\Omega) Sym ( Ω ) . For g ∈ Sym ( n ) g \in\operatorname{Sym}(n) g ∈ Sym ( n ) and a ∈ [ 1 , n ] a \in[1,n] a ∈ [ 1 , n ] we write a g a^g a g instead of g ( a ) g(a) g ( a ) . As a consequence, we have x g h = ( x g ) h x^{gh} = (x^g)^h x g h = ( x g ) h for x ∈ [ 1 , n ] x \in[1,n] x ∈ [ 1 , n ] and g , h ∈ Sym ( n ) g,h \in\operatorname{Sym}(n) g , h ∈ Sym ( n ) . A (finite) permutation group G G G is a subgroup of some Sym ( n ) \operatorname{Sym}(n) Sym ( n ) ; n n n is then also called the permutation degree of G G G .1 The description of a permutation group G ≤ Sym ( n ) G \le\operatorname{Sym}(n) G ≤ Sym ( n ) is a list g 1 , … , g m ∈ Sym ( n ) g_1,\ldots,g_m \in\operatorname{Sym}(n) g 1 , … , g m ∈ Sym ( n ) with G = ⟨ g 1 , … , g m ⟩ G = \langle g_1,\ldots,g_m\rangle G = ⟨ g 1 , … , g m ⟩ . Each permutation g ∈ Sym ( n ) g \in\operatorname{Sym}(n) g ∈ Sym ( n ) is represented by its one-line representation , which is the list [ 1 g , 2 g , … , n g ] [1^g,2^g,\ldots,n^g] [ 1 g , 2 g , … , n g ] .
By Cayley’s theorem every finite group G G G of size n n n is isomorphic to a subgroup of Sym ( n ) \operatorname{Sym}(n) Sym ( n ) . The important point about permutation groups is that the description of a permutation group by a set of generating permutations can be much more succinct than the description by a multiplication table. For instance, Sym ( n ) \operatorname{Sym}(n) Sym ( n ) has size n ! n! n ! but it can be generated by two permutations.
In this paper, we will use a few standard algorithms for permutation groups; see [37 ] for more details. Given a permutation group G ≤ Sym ( n ) G \le\operatorname{Sym}(n) G ≤ Sym ( n ) and an element g ∈ Sym ( n ) g \in\operatorname{Sym}(n) g ∈ Sym ( n ) one can check in polynomial time whether g ∈ G g \in G g ∈ G and compute ∣ G ∣ |G| ∣ G ∣ . By a straightforward enumeration, one can compute a list of all G G G -orbits { a g : g ∈ G } \{a^g : g \in G\} { a g : g ∈ G } for a ∈ [ 1 , n ] a \in[1,n] a ∈ [ 1 , n ] in polynomial time. Finally, the derived subgroup G ( 1 ) G^{(1)} G ( 1 ) of a given permutation group G G G can also be computed in polynomial time [21 ] : Start with the permutation group generated by all commutators [ a , b ] [a,b] [ a , b ] , where a a a and b b b are generators of G G G and close this group under conjugation by generators of G G G . Add a conjugate only if membership testing shows that it enlarges the current subgroup. There are at most log 2 ∣ G ∣ ≤ log 2 ( n ! ) \log_2 |G| \le\log_2(n!) log 2 ∣ G ∣ ≤ log 2 ( n !) enlargements of the group. The resulting normal closure is G ( 1 ) G^{(1)} G ( 1 ) , since the images of the original generators commute in the quotient. This construction can be iterated to compute the derived series of a given permutation group G G G in polynomial time. In the same way, one can also compute the lower central series of a given permutation group G G G in polynomial time. In particular, one can check in polynomial time whether a given permutation group is nilpotent, d d d -step nilpotent (for a fixed d d d ), solvable, or solvable of derived length d d d (for a fixed d d d ).
Straight-line programs
A straight-line program (SLP) over an alphabet Σ ≠ ∅ \Sigma\ne\emptyset Σ = ∅ is a sequence of instructions
x 1 : = α 1 ; x 2 : = α 2 ; ⋯ x m : = α m , (1) x_1 := \alpha_1; x_2 := \alpha_2; \cdots x_m := \alpha_m, \tag*{(1)} x 1 := α 1 ; x 2 := α 2 ; ⋯ x m := α m , (1)
where every α i \alpha_i α i is either a symbol from Σ \Sigma Σ or the concatenation x j x k x_jx_k x j x k of two variables x j , x k x_j,x_k x j , x k with j , k < i j,k < i j , k < i . The size of this SLP is m m m . An SLP can be evaluated in a monoid M M M provided every alphabet symbol a ∈ Σ a \in\Sigma a ∈ Σ is interpreted as an element of M M M . Given a finite nonempty subset A ⊆ M A \subseteq M A ⊆ M and an SLP P \mathcal{P} P over the alphabet A A A , we say that P \mathcal{P} P is an SLP for a ∈ M a \in M a ∈ M if the value of the last variable of P \mathcal{P} P (x m x_m x m in 1) is a a a .
By evaluating an SLP over an alphabet Σ \Sigma Σ in the free monoid Σ ∗ \Sigma^* Σ ∗ , one obtains a word, whose length can be exponential in the size of the SLP [28 ] . SLPs are frequently used in the context of black-box groups [2 ] . For permutation groups, we use the following result from [21 ] .
Theorem 2.2. Given n ≥ 1 n \ge1 n ≥ 1 , a finite nonempty set A ⊆ Sym ( n ) A \subseteq\operatorname{Sym}(n) A ⊆ Sym ( n ) and g ∈ Sym ( n ) g \in\operatorname{Sym}(n) g ∈ Sym ( n ) , one can check in polynomial time whether g ∈ ⟨ A ⟩ g \in\langle A\rangle g ∈ ⟨ A ⟩ , and in case this holds, one can compute in polynomial time an SLP for g g g over A A A of size poly ( n ) \operatorname{poly}(n) poly ( n ) .
Subset sum and factorization for classes of groups
In order to obtain a uniform description of the problems considered in this paper, we use the framework from [29 Section 4.1] . Let C \mathcal{C} C be a countable class of countable groups. We assume that there exists a description scheme that associates to every group in C \mathcal{C} C a unique finite description (e.g., a bit string) that will be part of the input below. In addition, also elements of groups in C \mathcal{C} C have a finite description. The description scheme of C \mathcal{C} C is part of the problem specification. In particular, C \mathcal{C} C may have two different description schemes that lead to different computational problems. In all group descriptions used below, group multiplication, comparison, and construction of the group identity are polynomial-time operations.
For a group G G G , a finite subset A ⊆ G A \subseteq G A ⊆ G and k ∈ N k \in\mathbb{N} k ∈ N , let
A k = { a 1 a 2 ⋯ a k : a 1 , a 2 , … , a k ∈ A } ⊆ G , A ≤ k = ⋃ s = 0 k A s , A^k = \{a_1a_2 \cdots a_k : a_1,a_2,\ldots,a_k \in A\} \subseteq G,\qquad A^{\leq k} = \bigcup_{s=0}^{k} A^s, A k = { a 1 a 2 ⋯ a k : a 1 , a 2 , … , a k ∈ A } ⊆ G , A ≤ k = s = 0 ⋃ k A s ,
where A 0 = { 1 } A^0 = \{1\} A 0 = { 1 } . We will consider the following parameterized problems for a class of groups C \mathcal{C} C with the above properties.
Problem 3.1 (parameterized subset sum for C \mathcal{C} C , pSSS[C \mathcal{C} C ] for short).
Input: the description of a group G ∈ C G \in\mathcal{C} G ∈ C , a list h , g 1 , … , g m h,g_1,\ldots,g_m h , g 1 , … , g m of elements from G G G , and k ≥ 1 k \ge1 k ≥ 1 .
Parameter: k k k .
Question: Are there ϵ 1 , … , ϵ m ∈ { 0 , 1 } \epsilon_1,\ldots,\epsilon_m \in\{0,1\} ϵ 1 , … , ϵ m ∈ { 0 , 1 } such that ∑ i = 1 m ϵ i = k \sum_{i=1}^{m}\epsilon_i = k ∑ i = 1 m ϵ i = k and h = g 1 ϵ 1 ⋯ g m ϵ m h = g_1^{\epsilon_1}\cdots g_m^{\epsilon_m} h = g 1 ϵ 1 ⋯ g m ϵ m hold?
Note that g i = g j g_i = g_j g i = g j for i < j i<j i < j may hold. An instance with k > m k>m k > m is necessarily negative. We therefore assume throughout this paper that k ∈ [ 1 , m ] k \in[1,m] k ∈ [ 1 , m ] in instances of pSSS[C \mathcal{C} C ].
Problem 3.2 (parameterized factorization for C \mathcal{C} C , pF[C \mathcal{C} C ] for short).
Input: the description of a group G ∈ C G \in\mathcal{C} G ∈ C , elements h , g 1 , … , g m ∈ G h,g_1,\ldots,g_m \in G h , g 1 , … , g m ∈ G , and k ≥ 1 k \ge1 k ≥ 1 .
Parameter: k k k .
Question: Is h ∈ { g 1 , … , g m } k h \in\{g_1,\ldots,g_m\}^k h ∈ { g 1 , … , g m } k ?
In contrast to pSSS[C], in pF[C], both the order and the multiplicities of the group elements g i g_i g i may be chosen. We write pSSS≤ _{\leq} ≤ [C] and pF≤ _{\leq} ≤ [C] for the variants with ∑ i = 1 m ϵ i ≤ k \sum_{i=1}^{m}\epsilon_i \leq k ∑ i = 1 m ϵ i ≤ k in pSSS[C] and h ∈ { g 1 , … , g m } ≤ k h \in\{g_1,\ldots,g_m\}^{\leq k} h ∈ { g 1 , … , g m } ≤ k in pF[C]. For abelian groups we use additive notation; hence, we write ∑ i = 1 m ϵ i ⋅ g i = h \sum_{i=1}^{m}\epsilon_i \cdot g_i = h ∑ i = 1 m ϵ i ⋅ g i = h in pSSS≤ _{\leq} ≤ [C]. The following simple fpt-reductions can be found in [29 Lemmas 4.7 and 4.16] .
Lemma 3.3. For every class C with the representations just described, we have pF[C] ≤ f p t \leq^{\mathrm{fpt}} ≤ fpt pSSS[C] and pF≤ _{\leq} ≤ [C] ≤ f p t \leq^{\mathrm{fpt}} ≤ fpt pSSS≤ _{\leq} ≤ [C]. Both reductions preserve the group ⟨ g 1 , … , g m ⟩ \langle g_1,\ldots,g_m\rangle ⟨ g 1 , … , g m ⟩ and the parameter k k k .
For the proof of Lemma 3.3, one only has to repeat the list g 1 , … , g m g_1,\ldots,g_m g 1 , … , g m of input group elements k k k times. By adding k k k copies of the group identity 1 1 1 to the input list g 1 , … , g m g_1,\ldots,g_m g 1 , … , g m , we obtain the following lemma:
Lemma 3.4. For every class C, for which the group identity of a given G ∈ C G \in\mathrm{C} G ∈ C can be constructed in polynomial time, we have pSSS≤ _{\leq} ≤ [C] ≤ f p t \leq^{\mathrm{fpt}} ≤ fpt pSSS[C] and pF≤ _{\leq} ≤ [C] ≤ f p t \leq^{\mathrm{fpt}} ≤ fpt pF[C]. Both reductions preserve the group ⟨ g 1 , … , g m ⟩ \langle g_1,\ldots,g_m\rangle ⟨ g 1 , … , g m ⟩ and the parameter k k k .
In Section 4 we consider the classical subset sum problem over the integers with binary-encoded integers. It is obtained by taking C = { Z } \{\mathbb{Z}\} { Z } with the convention that elements of Z \mathbb{Z} Z are given in binary notation. In Sections 5–7 we deal with the class C = { Sym ( n ) : n ≥ 1 } \{\operatorname{Sym}(n) : n \geq1\} { Sym ( n ) : n ≥ 1 } of symmetric groups on a finite domain. The representation of a symmetric group Sym ( n ) \operatorname{Sym}(n) Sym ( n ) simply consists of the number n n n (it can be encoded in unary notation). Let us write Sym ( ∗ ) \operatorname{Sym}(*) Sym ( ∗ ) for this class. Later we will consider restrictions of the problem pSSS[Sym(*)] and its variants, where the permutation group generated by the input permutations ⟨ g 1 , … , g m ⟩ \langle g_1,\ldots,g_m\rangle ⟨ g 1 , … , g m ⟩ has to satisfy certain algebraic properties.
Subset sum for integers
In this section, we will show that pSSS[Z \mathbb{Z} Z ] belongs to W[2 ] , which improves the upper bound of W[3 ] from [6 ] . The crucial technical contribution is Lemma 4.1 that allows us to reduce pSSS[Z \mathbb{Z} Z ] to wCNFSAT.
For b , ℓ ∈ N b,\ell\in\mathbb{N} b , ℓ ∈ N with b ≥ 2 b \geq2 b ≥ 2 and ℓ ≥ 1 \ell\geq1 ℓ ≥ 1 , a number x ∈ [ 0 , b ℓ − 1 ] x \in[0,b^{\ell}-1] x ∈ [ 0 , b ℓ − 1 ] , and p ∈ [ 0 , ℓ − 1 ] p \in[0,\ell-1] p ∈ [ 0 , ℓ − 1 ] , we write dig b ( x , p ) \operatorname{dig}_b(x,p) dig b ( x , p ) for the digit of x x x at position p p p when x x x is written in base b b b . Formally, the digits dig b ( x , p ) ∈ [ 0 , b − 1 ] \operatorname{dig}_b(x,p) \in[0,b-1] dig b ( x , p ) ∈ [ 0 , b − 1 ] are uniquely defined by the condition x = ∑ p ∈ [ 0 , ℓ − 1 ] dig b ( x , p ) ⋅ b p x = \sum_{p\in[0,\ell-1]} \operatorname{dig}_b(x,p)\cdot b^p x = ∑ p ∈ [ 0 , ℓ − 1 ] dig b ( x , p ) ⋅ b p . For p ∈ N p \in\mathbb{N} p ∈ N with p ≥ ℓ p \geq\ell p ≥ ℓ , we define dig b ( x , p ) = 0 \operatorname{dig}_b(x,p)=0 dig b ( x , p ) = 0 .
In the following lemma we consider the addition of k k k numbers a 1 , … , a k ∈ [ 0 , ( k + 1 ) ℓ − 1 ] a_1,\ldots,a_k \in[0,(k+1)^\ell-1] a 1 , … , a k ∈ [ 0 , ( k + 1 ) ℓ − 1 ] each having at most ℓ \ell ℓ digits when written in base k + 1 k+1 k + 1 . The digit positions of these numbers are numbered from 0 to ℓ − 1 \ell-1 ℓ − 1 .
Lemma 4.1. Let k , ℓ ≥ 1 k,\ell\geq1 k , ℓ ≥ 1 and a 1 , … , a k , t ∈ [ 0 , ( k + 1 ) ℓ − 1 ] a_1,\ldots,a_k,t \in[0,(k+1)^\ell-1] a 1 , … , a k , t ∈ [ 0 , ( k + 1 ) ℓ − 1 ] . For i ∈ [ 1 , k ] i \in[1,k] i ∈ [ 1 , k ] and p ∈ [ 0 , ℓ ] p \in[0,\ell] p ∈ [ 0 , ℓ ] define
a i , p = dig k + 1 ( a i , p ) a_{i,p}=\operatorname{dig}_{k+1}(a_i,p) a i , p = dig k + 1 ( a i , p ) ,
t p = dig k + 1 ( t , p ) t_p=\operatorname{dig}_{k+1}(t,p) t p = dig k + 1 ( t , p ) ,
s p = ∑ i = 1 k a i , p ∈ N s_p=\sum_{i=1}^{k}a_{i,p}\in\mathbb{N} s p = ∑ i = 1 k a i , p ∈ N and
c p = ( t p − s p ) m o d ( k + 1 ) ∈ [ 0 , k ] c_p=(t_p-s_p)\bmod(k+1)\in[0,k] c p = ( t p − s p ) mod ( k + 1 ) ∈ [ 0 , k ] .
Then the following conditions are equivalent:
∑ j = 1 k a j = t \sum_{j=1}^{k}a_j=t ∑ j = 1 k a j = t .
c 0 = 0 c_0=0 c 0 = 0 and ∀ p ∈ [ 0 , ℓ − 1 ] : s p + c p = t p + ( k + 1 ) ⋅ c p + 1 \forall p\in[0,\ell-1]: s_p+c_p=t_p+(k+1)\cdot c_{p+1} ∀ p ∈ [ 0 , ℓ − 1 ] : s p + c p = t p + ( k + 1 ) ⋅ c p + 1 .
Proof. Note that a i , ℓ = t ℓ = s ℓ = c ℓ = 0 a_{i,\ell}=t_{\ell}=s_{\ell}=c_{\ell}=0 a i , ℓ = t ℓ = s ℓ = c ℓ = 0 . Suppose first that (1) holds. Let c p ′ ∈ N c'_p \in\mathbb{N} c p ′ ∈ N be the carry that arrives in position p ∈ [ 0 , ℓ ] p \in[0,\ell] p ∈ [ 0 , ℓ ] when adding the a i a_i a i in base k + 1 k+1 k + 1 . We claim that c p ′ ∈ [ 0 , k − 1 ] c'_p \in[0,k-1] c p ′ ∈ [ 0 , k − 1 ] . Indeed, c ℓ ′ = c 0 ′ = 0 c'_{\ell}=c'_0=0 c ℓ ′ = c 0 ′ = 0 and if c p ′ ∈ [ 0 , k − 1 ] c'_p \in[0,k-1] c p ′ ∈ [ 0 , k − 1 ] then c p + 1 ′ ≤ ⌊ k 2 + ( k − 1 ) k + 1 ⌋ = k − 1 c'_{p+1}\leq\left\lfloor\frac{k^2+(k-1)}{k+1}\right\rfloor=k-1 c p + 1 ′ ≤ ⌊ k + 1 k 2 + ( k − 1 ) ⌋ = k − 1 .
Since c p ′ ∈ [ 0 , k − 1 ] c'_p \in[0,k-1] c p ′ ∈ [ 0 , k − 1 ] , we have t p = ( s p + c p ′ ) mod ( k + 1 ) t_p=(s_p+c'_p)\mathbin{\operatorname{mod}}(k+1) t p = ( s p + c p ′ ) mod ( k + 1 ) , i.e., c p ′ = ( t p − s p ) mod ( k + 1 ) c'_p=(t_p-s_p)\mathbin{\operatorname{mod}}(k+1) c p ′ = ( t p − s p ) mod ( k + 1 ) .2 We therefore have c p ′ = c p c'_p=c_p c p ′ = c p . Since s p + c p ′ = t p + ( k + 1 ) ⋅ c p + 1 ′ s_p+c'_p=t_p+(k+1)\cdot c'_{p+1} s p + c p ′ = t p + ( k + 1 ) ⋅ c p + 1 ′ we obtain (2).
Conversely, (2) implies
∑ j = 1 k a j − t = ∑ p = 0 ℓ − 1 ( s p − t p ) ( k + 1 ) p = ∑ p = 0 ℓ − 1 ( ( k + 1 ) c p + 1 − c p ) ( k + 1 ) p = ( k + 1 ) ℓ c ℓ − c 0 = 0 , \sum_{j=1}^{k}a_j-t=\sum_{p=0}^{\ell-1}(s_p-t_p)(k+1)^p=\sum_{p=0}^{\ell-1}\bigl((k+1)c_{p+1}-c_p\bigr)(k+1)^p=(k+1)^\ell c_\ell-c_0=0, j = 1 ∑ k a j − t = p = 0 ∑ ℓ − 1 ( s p − t p ) ( k + 1 ) p = p = 0 ∑ ℓ − 1 ( ( k + 1 ) c p + 1 − c p ) ( k + 1 ) p = ( k + 1 ) ℓ c ℓ − c 0 = 0 ,
where the last equality follows from c 0 = 0 c_0=0 c 0 = 0 and $c_\ell=(t_\ell-s_\ell)\mathbin{\operatorname{mod}}(k+1)=0.
Example 4.2. In Lemma 4.1, let k = ℓ = 3 k=\ell=3 k = ℓ = 3 and choose a 1 , a 2 , a 3 , t ∈ [ 0 , 4 3 − 1 ] a_1,a_2,a_3,t\in[0,4^3-1] a 1 , a 2 , a 3 , t ∈ [ 0 , 4 3 − 1 ] with a 1 = 27 a_1=27 a 1 = 27 , a 2 = 10 a_2=10 a 2 = 10 , a 3 = 7 a_3=7 a 3 = 7 , and t = 44 t=44 t = 44 in decimal notation. Their base-four representations are a 1 = ( 123 ) 4 a_1=(123)_4 a 1 = ( 123 ) 4 , a 2 = ( 022 ) 4 a_2=(022)_4 a 2 = ( 022 ) 4 , a 3 = ( 013 ) 4 a_3=(013)_4 a 3 = ( 013 ) 4 , and t = ( 230 ) 4 t=(230)_4 t = ( 230 ) 4 . Using the notation of the lemma, we obtain the following table:
For instance, c 1 = ( t 1 − s 1 ) mod 4 = ( 3 − 5 ) mod 4 = 2 c_1=(t_1-s_1)\mathbin{\operatorname{mod}}4=(3-5)\mathbin{\operatorname{mod}}4=2 c 1 = ( t 1 − s 1 ) mod 4 = ( 3 − 5 ) mod 4 = 2 . The equations s p + c p = t p + 4 c p + 1 s_p+c_p=t_p+4c_{p+1} s p + c p = t p + 4 c p + 1 for p = 0 , 1 , 2 p=0,1,2 p = 0 , 1 , 2 are respectively 8 + 0 = 0 + 4 ⋅ 2 8+0=0+4\cdot2 8 + 0 = 0 + 4 ⋅ 2 , 5 + 2 = 3 + 4 ⋅ 1 5+2=3+4\cdot1 5 + 2 = 3 + 4 ⋅ 1 , and 1 + 1 = 2 + 4 ⋅ 0 1+1=2+4\cdot0 1 + 1 = 2 + 4 ⋅ 0 . Moreover, c 0 = 0 c_0=0 c 0 = 0 . Thus condition (2) holds, as expected from 27 + 10 + 7 = 44 27+10+7=44 27 + 10 + 7 = 44 .
The condition c 0 = 0 c_0=0 c 0 = 0 is essential. If we replace the target by t = 45 = ( 231 ) 4 t=45=(231)_4 t = 45 = ( 231 ) 4 , then c 0 = 1 c_0=1 c 0 = 1 , c 1 = 2 c_1=2 c 1 = 2 , c 2 = 1 c_2=1 c 2 = 1 , and c 3 = 0 c_3=0 c 3 = 0 . All three local equations still hold: the first becomes 8 + 1 = 1 + 4 ⋅ 2 8+1=1+4\cdot2 8 + 1 = 1 + 4 ⋅ 2 , and the other two remain unchanged. However, c 0 ≠ 0 c_0\neq0 c 0 = 0 , so condition (2) fails.
Theorem 4.3. The problem pSSS[Z \mathbb{Z} Z ] belongs to W[2 ] .
Proof. We show that pSSS[Z \mathbb{Z} Z ] ≤ f p t \leq_{\mathrm{fpt}} ≤ fpt wCNFSAT. Consider an instance a 1 , … , a m , t ∈ Z a_1,\ldots,a_m,t\in\mathbb{Z} a 1 , … , a m , t ∈ Z , k ∈ [ 1 , m ] k\in[1,m] k ∈ [ 1 , m ] of pSSS[Z \mathbb{Z} Z ]. Choose u ∈ N u\in\mathbb{N} u ∈ N with a i + u ≥ 0 a_i+u\geq0 a i + u ≥ 0 for all i ∈ [ 1 , m ] i\in[1,m] i ∈ [ 1 , m ] . Replacing a i a_i a i by a i + u a_i+u a i + u and t t t by t + k u t+ku t + k u preserves all solutions of cardinality k k k . If the new target t t t is negative, the instance is negative. We may therefore assume that a 1 , … , a m , t ∈ N a_1,\ldots,a_m,t\in\mathbb{N} a 1 , … , a m , t ∈ N .
Choose ℓ ≥ 1 \ell\geq1 ℓ ≥ 1 such that all a 1 , … , a m , t < ( k + 1 ) ℓ a_1,\ldots,a_m,t<(k+1)^\ell a 1 , … , a m , t < ( k + 1 ) ℓ . For i ∈ [ 1 , m ] i\in[1,m] i ∈ [ 1 , m ] and p ∈ [ 0 , ℓ − 1 ] p\in[0,\ell-1] p ∈ [ 0 , ℓ − 1 ] let a i , p = dig k + 1 ( a i , p ) a_{i,p}=\operatorname{dig}_{k+1}(a_i,p) a i , p = dig k + 1 ( a i , p ) , t p = dig k + 1 ( t , p ) t_p=\operatorname{dig}_{k+1}(t,p) t p = dig k + 1 ( t , p ) , and a i , ℓ = t ℓ = 0 a_{i,\ell}=t_\ell=0 a i , ℓ = t ℓ = 0 .
We now define an instance of wCNFSAT. The parameter will be k k k . Introduce propositional variables x r , i x_{r,i} x r , i for r ∈ [ 1 , k ] r\in[1,k] r ∈ [ 1 , k ] and i ∈ [ 1 , m ] i\in[1,m] i ∈ [ 1 , m ] . The intended meaning is that the r r r -th selected index from [ 1 , m ] [1,m] [ 1 , m ] is i i i . For every r ∈ [ 1 , k ] r\in[1,k] r ∈ [ 1 , k ] , include the clause
C r = { x r , i : 1 ≤ i ≤ m } . (2) C_r=\{x_{r,i}:1\leq i\leq m\}. \tag*{(2)} C r = { x r , i : 1 ≤ i ≤ m } . (2)
Since we ask for a satisfying assignment of weight exactly k k k , the clauses C r C_r C r enforce that, for every r ∈ [ 1 , k ] r\in[1,k] r ∈ [ 1 , k ] , exactly one variable x r , i r x_{r,i_r} x r , i r is true. For all r , s ∈ [ 1 , k ] r,s\in[1,k] r , s ∈ [ 1 , k ] with r < s r<s r < s and i ∈ [ 1 , m ] i\in[1,m] i ∈ [ 1 , m ] , also include the clause
C r , s , i = { ¬ x r , i , ¬ x s , i } . (3) C_{r,s,i}=\{\neg x_{r,i},\neg x_{s,i}\}. \tag*{(3)} C r , s , i = { ¬ x r , i , ¬ x s , i } . (3)
These clauses prevent an index i ∈ [ 1 , m ] i \in[1,m] i ∈ [ 1 , m ] from being chosen twice.
For p ∈ [ 0 , ℓ − 1 ] p \in[0,\ell-1] p ∈ [ 0 , ℓ − 1 ] , consider tuples α ˉ = ( α 1 , … , α k ) \bar{\alpha}=(\alpha_1,\ldots,\alpha_k) α ˉ = ( α 1 , … , α k ) , α ˉ ′ = ( α 1 ′ , … , α k ′ ) ∈ [ 0 , k ] k \bar{\alpha}'=(\alpha'_1,\ldots,\alpha'_k)\in[0,k]^k α ˉ ′ = ( α 1 ′ , … , α k ′ ) ∈ [ 0 , k ] k . They describe proposed digits of the selected numbers at positions p p p and p + 1 p+1 p + 1 . Define a = ∑ r = 1 k α r a=\sum_{r=1}^{k}\alpha_r a = ∑ r = 1 k α r , a ′ = ∑ r = 1 k α r ′ a'=\sum_{r=1}^{k}\alpha'_r a ′ = ∑ r = 1 k α r ′ , c = ( t p − a ) m o d ( k + 1 ) ∈ [ 0 , k ] c=(t_p-a)\bmod(k+1)\in[0,k] c = ( t p − a ) mod ( k + 1 ) ∈ [ 0 , k ] , and c ′ = ( t p + 1 − a ′ ) m o d ( k + 1 ) ∈ [ 0 , k ] c'=(t_{p+1}-a')\bmod(k+1)\in[0,k] c ′ = ( t p + 1 − a ′ ) mod ( k + 1 ) ∈ [ 0 , k ] . Call the pair ( α ˉ , α ˉ ′ ) (\bar{\alpha},\bar{\alpha}') ( α ˉ , α ˉ ′ ) admissible at p p p if a + c = t p + ( k + 1 ) c ′ a+c=t_p+(k+1)c' a + c = t p + ( k + 1 ) c ′ and, when p = 0 p=0 p = 0 , also c = 0 c=0 c = 0 . For every pair ( α ˉ , α ˉ ′ ) (\bar{\alpha},\bar{\alpha}') ( α ˉ , α ˉ ′ ) with α ˉ = ( α 1 , … , α k ) \bar{\alpha}=(\alpha_1,\ldots,\alpha_k) α ˉ = ( α 1 , … , α k ) , α ˉ ′ = ( α 1 ′ , … , α k ′ ) \bar{\alpha}'=(\alpha'_1,\ldots,\alpha'_k) α ˉ ′ = ( α 1 ′ , … , α k ′ ) that is not admissible at p p p , include the clause
C α ˉ , α ˉ ′ , p = { x r , i : 1 ≤ r ≤ k , 1 ≤ i ≤ m , ( a i , p , a i , p + 1 ) ≠ ( α r , α r ′ ) } . (4) C_{\bar{\alpha},\bar{\alpha}',p}=\{x_{r,i}:1\le r\le k,1\le i\le m,(a_{i,p},a_{i,p+1})\ne(\alpha_r,\alpha'_r)\}. \tag*{(4)} C α ˉ , α ˉ ′ , p = { x r , i : 1 ≤ r ≤ k , 1 ≤ i ≤ m , ( a i , p , a i , p + 1 ) = ( α r , α r ′ )} . (4)
As usual, an empty clause is false.
Let i 1 , … , i k ∈ [ 1 , m ] i_1,\ldots,i_k\in[1,m] i 1 , … , i k ∈ [ 1 , m ] be the distinct indices determined by an assignment ϕ \phi ϕ of weight k k k satisfying all clauses from (2) and (3). Hence, for every r ∈ [ 1 , k ] r\in[1,k] r ∈ [ 1 , k ] , ϕ ( x r , i r ) = 1 \phi(x_{r,i_r})=1 ϕ ( x r , i r ) = 1 and ϕ ( x r , i ) = 0 \phi(x_{r,i})=0 ϕ ( x r , i ) = 0 for every i ∈ [ 1 , m ] ∖ { i r } i\in[1,m]\setminus\{i_r\} i ∈ [ 1 , m ] ∖ { i r } . Then the clause C α ˉ , α ˉ ′ , p C_{\bar{\alpha},\bar{\alpha}',p} C α ˉ , α ˉ ′ , p is false under the assignment ϕ \phi ϕ if and only if ( a i r , p , a i r , p + 1 ) = ( α r , α r ′ ) (a_{i_r,p},a_{i_r,p+1})=(\alpha_r,\alpha'_r) ( a i r , p , a i r , p + 1 ) = ( α r , α r ′ ) for all r ∈ [ 1 , k ] r\in[1,k] r ∈ [ 1 , k ] , which means that ( ( a i 1 , p , … , a i k , p ) , ( a i 1 , p + 1 , … , a i k , p + 1 ) ) = ( α ˉ , α ˉ ′ ) ((a_{i_1,p},\ldots,a_{i_k,p}),(a_{i_1,p+1},\ldots,a_{i_k,p+1}))=(\bar{\alpha},\bar{\alpha}') (( a i 1 , p , … , a i k , p ) , ( a i 1 , p + 1 , … , a i k , p + 1 )) = ( α ˉ , α ˉ ′ ) , where by construction ( α ˉ , α ˉ ′ ) (\bar{\alpha},\bar{\alpha}') ( α ˉ , α ˉ ′ ) is not admissible at p p p . Thus, the assignment ϕ \phi ϕ satisfies all clauses in (4) if and only if for every p ∈ [ 0 , ℓ − 1 ] p\in[0,\ell-1] p ∈ [ 0 , ℓ − 1 ] the pair ( ( a i 1 , p , … , a i k , p ) , ( a i 1 , p + 1 , … , a i k , p + 1 ) ) ((a_{i_1,p},\ldots,a_{i_k,p}),(a_{i_1,p+1},\ldots,a_{i_k,p+1})) (( a i 1 , p , … , a i k , p ) , ( a i 1 , p + 1 , … , a i k , p + 1 )) is admissible at p p p . By Lemma 4.1 , this is equivalent to ∑ r = 1 k a i r = t \sum_{r=1}^{k}a_{i_r}=t ∑ r = 1 k a i r = t . This proves correctness in both directions.
The above construction is an fpt-reduction: there are k m km k m variables x r , i x_{r,i} x r , i and the number of clauses is bounded by k + ( k 2 ) m + ℓ ( k + 1 ) 2 k k+\binom{k}{2}m+\ell(k+1)2^k k + ( 2 k ) m + ℓ ( k + 1 ) 2 k , where ℓ \ell ℓ is linearly bounded in the maximal bit length of the input numbers a 1 , … , a m , t a_1,\ldots,a_m,t a 1 , … , a m , t . Moreover, the parameter k k k does not change. ◀
With Lemmas 3.3 and 3.4 we obtain:
Corollary 4.4. The problems pF≤ _{\leq} ≤ [Z], pF[Z], pSSS≤ _{\leq} ≤ [Z] and pSSS[Z] belong to W[2 ] .
Subset sum for solvable permutation groups
In this section, d ≥ 1 d\geq1 d ≥ 1 will be a fixed constant. We then consider the restriction of the problem pSSS[Sym(∗ \ast ∗ )], where the input permutations g 1 , … , g m g_1,\ldots,g_m g 1 , … , g m generate a solvable permutation group of derived length d d d . Recall from § 2.4 that this property can be checked in polynomial time. We denote this restriction of pSSS[Sym(∗ \ast ∗ )] with pSSS[Sold _d d PG]; the problems pSSS≤ _{\leq} ≤ [Sold _d d PG], pF[Sold _d d PG] and pF≤ _{\leq} ≤ [Sold _d d PG] are defined similarly.
Positive CNFs for addition in small abelian groups
In this section we consider finite abelian groups that are given by their multiplication table. The following standard algorithmic fact also follows from the deterministic basis algorithm of Chen and Fu [10 ] : once a basis is known, enumerating its coordinate tuples gives the full table of the isomorphism. We include a proof using Smith normal form.
Lemma 5.1. Let H H H be a finite abelian group given by its addition table. In polynomial time one can compute integers q 1 , … , q m ∈ [ 2 , ∣ H ∣ ] q_1,\ldots,q_m\in[2,|H|] q 1 , … , q m ∈ [ 2 , ∣ H ∣ ] and an isomorphism θ : H → ∏ 1 ≤ i ≤ m Z / q i Z \theta:H\to\prod_{1\leq i\leq m}\mathbb{Z}/q_i\mathbb{Z} θ : H → ∏ 1 ≤ i ≤ m Z / q i Z , represented by a table containing θ ( a ) \theta(a) θ ( a ) for a ∈ H a\in H a ∈ H .
Proof. We form the integer matrix A A A with columns e x + e y − e x + y e_x+e_y-e_{x+y} e x + e y − e x + y for x , y ∈ H x,y\in H x , y ∈ H , where e x ∈ Z H e_x\in\mathbb{Z}^{H} e x ∈ Z H is the corresponding standard basis vector. The stated relations present H H H . The Smith normal form S S S of A A A yields the decomposition of H H H into cyclic subgroups [23 ] . The matrix S S S together with unimodular integer matrices U U U and V V V such that A = U S V A=USV A = U S V can be computed in polynomial time [26 ] . The moduli q i q_i q i are the diagonal entries of S S S that are different from 0, 1 and −1. To transform e x e_x e x into the corresponding tuple θ ( x ) \theta(x) θ ( x ) one computes U − 1 e x U^{-1}e_x U − 1 e x and reduces the entries modulo the q i q_i q i .
Lemma 5.2. Let k ≥ 1 k \ge1 k ≥ 1 , let H H H be a finite abelian group given by its addition table, and put n = ∣ H ∣ ≥ 1 n = |H| \ge1 n = ∣ H ∣ ≥ 1 . For h ∈ H h \in H h ∈ H , one can compute a positive CNF Φ [ H , k , h ] \Phi[H,k,h] Φ [ H , k , h ] over the propositional variables y r , a y_{r,a} y r , a , where r ∈ [ 1 , k ] r \in[1,k] r ∈ [ 1 , k ] and a ∈ H a \in H a ∈ H , with the following property. For all h 1 , … , h k ∈ H h_1,\ldots,h_k \in H h 1 , … , h k ∈ H and the corresponding truth assignment y r , a : = 1 [ a = h r ] y_{r,a} := 1[a = h_r] y r , a := 1 [ a = h r ] , we have
Φ [ H , k , h ] = 1 ⟺ ∑ r = 1 k h r = h in H . (5) \Phi[H,k,h] = 1 \quad\Longleftrightarrow\quad\sum_{r=1}^{k} h_r = h \text{ in } H. \tag*{(5)} Φ [ H , k , h ] = 1 ⟺ r = 1 ∑ k h r = h in H . (5) The size and construction time are bounded by f ( k ) ⋅ n c f(k) \cdot n^c f ( k ) ⋅ n c for a computable function f : N → N f : \mathbb{N} \to\mathbb{N} f : N → N and a constant c ∈ N c \in\mathbb{N} c ∈ N independent of k k k .
Proof. Using Lemma 5.1, we first compute in polynomial time a cyclic decomposition ∏ 1 ≤ i ≤ m Z / q i Z \prod_{1 \le i \le m} \mathbb{Z}/q_i\mathbb{Z} ∏ 1 ≤ i ≤ m Z / q i Z and an isomorphism θ : H → ∏ 1 ≤ i ≤ m Z / q i Z \theta: H \to\prod_{1 \le i \le m} \mathbb{Z}/q_i\mathbb{Z} θ : H → ∏ 1 ≤ i ≤ m Z / q i Z , represented by a table containing all values θ ( a ) \theta(a) θ ( a ) for a ∈ H a \in H a ∈ H . For a ∈ H a \in H a ∈ H we write
θ ( a ) = ( θ 1 ( a ) , … , θ m ( a ) ) ∈ ∏ 1 ≤ i ≤ m Z / q i Z = ∏ 1 ≤ i ≤ m [ 0 , q i − 1 ] . \theta(a) = (\theta_1(a),\ldots,\theta_m(a)) \in\prod_{1 \le i \le m} \mathbb{Z}/q_i\mathbb{Z} = \prod_{1 \le i \le m} [0,q_i-1]. θ ( a ) = ( θ 1 ( a ) , … , θ m ( a )) ∈ 1 ≤ i ≤ m ∏ Z / q i Z = 1 ≤ i ≤ m ∏ [ 0 , q i − 1 ] .
Fix an i ∈ [ 1 , m ] i \in[1,m] i ∈ [ 1 , m ] for the following discussion. For h 1 , … , h k ∈ H h_1,\ldots,h_k \in H h 1 , … , h k ∈ H we have
∑ r = 1 k θ i ( h r ) ≡ θ i ( h ) ( m o d q i ) ⟺ ⋁ j = 0 k − 1 ( ∑ r = 1 k θ i ( h r ) = θ i ( h ) + j q i ) . (6) \sum_{r=1}^{k} \theta_i(h_r) \equiv\theta_i(h) \pmod{q_i}
\quad\Longleftrightarrow\quad
\bigvee_{j=0}^{k-1} \left(\sum_{r=1}^{k} \theta_i(h_r) = \theta_i(h) + jq_i\right). \tag*{(6)} r = 1 ∑ k θ i ( h r ) ≡ θ i ( h ) ( mod q i ) ⟺ j = 0 ⋁ k − 1 ( r = 1 ∑ k θ i ( h r ) = θ i ( h ) + j q i ) . (6)
Indeed, the sum of the θ i ( h r ) \theta_i(h_r) θ i ( h r ) in Z \mathbb{Z} Z is strictly smaller than k q i kq_i k q i .
Let ℓ ≥ 1 \ell\ge1 ℓ ≥ 1 be minimal with ( k + 1 ) ℓ ≥ k q i (k+1)^\ell\ge kq_i ( k + 1 ) ℓ ≥ k q i . All θ i ( h r ) \theta_i(h_r) θ i ( h r ) and all targets θ i ( h ) + j q i \theta_i(h) + jq_i θ i ( h ) + j q i , for j ∈ [ 0 , k − 1 ] j \in[0,k-1] j ∈ [ 0 , k − 1 ] , are smaller than k q i kq_i k q i , and ℓ ≤ 2 + log 2 n \ell\le2 + \log_2 n ℓ ≤ 2 + log 2 n . For each j ∈ [ 0 , k − 1 ] j \in[0,k-1] j ∈ [ 0 , k − 1 ] , apply the construction from the proof of Theorem 4.3 to the equality ∑ r = 1 k θ i ( h r ) = θ i ( h ) + j q i \sum_{r=1}^{k} \theta_i(h_r) = \theta_i(h) + jq_i ∑ r = 1 k θ i ( h r ) = θ i ( h ) + j q i in (6). The variables x r , i x_{r,i} x r , i are replaced by the variables y r , a y_{r,a} y r , a (1 ≤ r ≤ k 1 \le r \le k 1 ≤ r ≤ k , a ∈ H a \in H a ∈ H ). We use only the clauses corresponding to (4). The clauses in (2) are not needed since we only consider assignments that make for every r ∈ [ 1 , k ] r \in[1,k] r ∈ [ 1 , k ] exactly one of the variables { y r , a : a ∈ H } \{y_{r,a} : a \in H\} { y r , a : a ∈ H } true and the clauses in (3) are not needed since we allow h r = h s h_r = h_s h r = h s for r < s r < s r < s in the lemma.
More explicitly, for each digit position p ∈ [ 0 , ℓ − 1 ] p \in[0,\ell-1] p ∈ [ 0 , ℓ − 1 ] , enumerate all pairs ( α ˉ , α ˉ ′ ) (\bar{\alpha},\bar{\alpha}') ( α ˉ , α ˉ ′ ) with α ˉ = ( α 1 , … , α k ) \bar{\alpha} = (\alpha_1,\ldots,\alpha_k) α ˉ = ( α 1 , … , α k ) , α ˉ ′ = ( α 1 ′ , … , α k ′ ) \bar{\alpha}' = (\alpha'_1,\ldots,\alpha'_k) α ˉ ′ = ( α 1 ′ , … , α k ′ ) that are not admissible at p p p (at most ( k + 1 ) 2 k (k+1)^{2k} ( k + 1 ) 2 k many). Here, in the definition of “admissible” in the proof of Theorem 4.3, we have to replace the target digits t p = dig k + 1 ( t , p ) t_p = \operatorname{dig}_{k+1}(t,p) t p = dig k + 1 ( t , p ) by the target digits dig k + 1 ( θ i ( h ) + j q i , p ) \operatorname{dig}_{k+1}(\theta_i(h)+jq_i,p) dig k + 1 ( θ i ( h ) + j q i , p ) . Then we construct all clauses
C α ˉ , α ˉ ′ , p = { y r , a : 1 ≤ r ≤ k , a ∈ H , ( dig k + 1 ( θ i ( a ) , p ) , dig k + 1 ( θ i ( a ) , p + 1 ) ) ≠ ( α r , α r ′ ) } . C_{\bar{\alpha},\bar{\alpha}',p} =
\{y_{r,a} : 1 \le r \le k,\ a \in H,\ (\operatorname{dig}_{k+1}(\theta_i(a),p),\operatorname{dig}_{k+1}(\theta_i(a),p+1)) \ne(\alpha_r,\alpha'_r)\}. C α ˉ , α ˉ ′ , p = { y r , a : 1 ≤ r ≤ k , a ∈ H , ( dig k + 1 ( θ i ( a ) , p ) , dig k + 1 ( θ i ( a ) , p + 1 )) = ( α r , α r ′ )} .
Let D i , j D_{i,j} D i , j be the set of all these clauses. The conjunction
Ψ i , j = ⋀ C ∈ D i , j C \Psi_{i,j} = \bigwedge_{C \in D_{i,j}} C Ψ i , j = C ∈ D i , j ⋀ C
(for i ∈ [ 1 , m ] i \in[1,m] i ∈ [ 1 , m ] and j ∈ [ 0 , k − 1 ] j \in[0,k-1] j ∈ [ 0 , k − 1 ] ) is a positive CNF with at most ℓ ( k + 1 ) 2 k \ell(k+1)^{2k} ℓ ( k + 1 ) 2 k clauses and expresses the integer equality ∑ r = 1 k θ i ( h r ) = θ i ( h ) + j q i \sum_{r=1}^{k} \theta_i(h_r) = \theta_i(h) + jq_i ∑ r = 1 k θ i ( h r ) = θ i ( h ) + j q i . Distributivity gives
Ψ i : = ⋁ j = 0 k − 1 Ψ i , j ≡ ⋀ C 0 ∈ D i , 0 ⋯ ⋀ C k − 1 ∈ D i , k − 1 ( C 0 ∨ ⋯ ∨ C k − 1 ) . (7) \Psi_i := \bigvee_{j=0}^{k-1} \Psi_{i,j}
\equiv
\bigwedge_{C_0 \in D_{i,0}} \cdots\bigwedge_{C_{k-1} \in D_{i,k-1}} (C_0 \vee\cdots\vee C_{k-1}). \tag*{(7)} Ψ i := j = 0 ⋁ k − 1 Ψ i , j ≡ C 0 ∈ D i , 0 ⋀ ⋯ C k − 1 ∈ D i , k − 1 ⋀ ( C 0 ∨ ⋯ ∨ C k − 1 ) . (7)
Each clause on the right of (7) is the union of k k k positive clauses. There are at most ( ℓ ( k + 1 ) 2 k ) k (\ell(k+1)2^k)^k ( ℓ ( k + 1 ) 2 k ) k such clauses. This is an fpt-bound with polynomial dependence on n n n : since ℓ ≤ 3 ( 1 + ln n ) \ell\le3(1+\ln n) ℓ ≤ 3 ( 1 + ln n ) and ( 1 + ln n ) k ≤ e k ! n (1+\ln n)^k \le e\,k!\,n ( 1 + ln n ) k ≤ e k ! n , we have ℓ k ≤ 3 k e k ! n \ell^k \le3^k e\,k!\,n ℓ k ≤ 3 k e k ! n . The second inequality follows from x k ≤ k ! e x x^k \le k!e^x x k ≤ k ! e x for x ∈ R ≥ 0 x \in\mathbb{R}_{\ge0} x ∈ R ≥ 0 , applied to x = 1 + ln n x=1+\ln n x = 1 + ln n .
The final output CNF is ⋁ i ∈ [ 1 , m ] Ψ i \bigvee_{i\in[1,m]}\Psi_i ⋁ i ∈ [ 1 , m ] Ψ i . There are at most log 2 n \log_2 n log 2 n nontrivial cyclic factors, and each clause contains at most k n kn k n distinct variables. This proves the asserted size and construction bounds and (5) .
An affine decomposition of the permutation action
Let n ∈ N n \in\mathbb{N} n ∈ N with n ≥ 1 n \ge1 n ≥ 1 and consider groups A ⊴ G ≤ Sym ( n ) A \trianglelefteq G \le\operatorname{Sym}(n) A ⊴ G ≤ Sym ( n ) with A A A abelian. Let O O O be the set of A A A -orbits on [ 1 , n ] [1,n] [ 1 , n ] . Normality of A A A implies that every g ∈ G g \in G g ∈ G maps each Δ ∈ O \Delta\in O Δ ∈ O onto another A A A -orbit, denoted by Δ g ∈ O \Delta^g \in O Δ g ∈ O . For each Δ ∈ O \Delta\in O Δ ∈ O , let A Δ = { a ↾ Δ : a ∈ A } A_\Delta= \{a\mathbin{\upharpoonright}\Delta: a \in A\} A Δ = { a ↾ Δ : a ∈ A } be the permutation group induced by A A A on Δ \Delta Δ . Since A A A is abelian, an element of A A A fixing one point of Δ \Delta Δ fixes every point of Δ \Delta Δ . Hence A Δ A_\Delta A Δ acts regularly on Δ \Delta Δ and ∣ A Δ ∣ = ∣ Δ ∣ |A_\Delta|=|\Delta| ∣ A Δ ∣ = ∣Δ∣ . The disjoint union Σ = ⨆ Δ ∈ O A Δ \Sigma=\bigsqcup_{\Delta\in O} A_\Delta Σ = ⨆ Δ ∈ O A Δ therefore has n n n elements.
Easdown and Praeger [17 Proposition 1.3] show that, if A ≠ 1 A\ne1 A = 1 then there is an abelian normal subgroup K ⊴ G K\trianglelefteq G K ⊴ G containing A A A such that G / K G/K G / K has a faithful permutation representation of degree strictly smaller than n n n . Seress [37 Theorem 6.3.1] describes an explicit action of G G G on Σ \Sigma Σ : for g ∈ G g\in G g ∈ G , Δ ∈ O \Delta\in O Δ ∈ O , and a ∈ A a\in A a ∈ A , the element a ↾ Δ ∈ A Δ a\mathbin{\upharpoonright}\Delta\in A_\Delta a ↾ Δ ∈ A Δ is sent to ( g − 1 a g ) ↾ Δ g ∈ A Δ g (g^{-1}ag)\mathbin{\upharpoonright}\Delta^g\in A_{\Delta^g} ( g − 1 a g ) ↾ Δ g ∈ A Δ g . One can choose the above subgroup K K K as the kernel of this action. Then K K K is normal and abelian, and the action of G G G on Σ \Sigma Σ can be constructed in polynomial time from generators for G G G and A A A . A related quotient construction is implemented in Magma as AbelianNormalQuotient [31 ] .
For each Δ ∈ O \Delta\in O Δ ∈ O , choose o Δ ∈ Δ o_\Delta\in\Delta o Δ ∈ Δ . The bijection A Δ → Δ A_\Delta\to\Delta A Δ → Δ given by a ↾ Δ ↦ o Δ a a\mathbin{\upharpoonright}\Delta\mapsto o_\Delta^a a ↾ Δ ↦ o Δ a for a ∈ A a\in A a ∈ A identifies Seress’s action with the homomorphism λ : G → Sym ( n ) \lambda:G\to\operatorname{Sym}(n) λ : G → Sym ( n ) from Lemma 5.3 below, as (10) will show. We give an additive formulation of this construction and include the proofs to make the affine product formula (11) below explicit. The operation
o Δ a + o Δ b = o Δ a b ( a , b ∈ A ) (8) o_\Delta^a+o_\Delta^b=o_\Delta^{ab}\qquad(a,b\in A) \tag*{(8)} o Δ a + o Δ b = o Δ ab ( a , b ∈ A ) (8)
defines an abelian group on Δ \Delta Δ with identity o Δ o_\Delta o Δ ; it is isomorphic to A / Stab A ( o Δ ) A/\operatorname{Stab}_A(o_\Delta) A / Stab A ( o Δ ) , where Stab A ( o Δ ) = { a ∈ A : o Δ a = o Δ } \operatorname{Stab}_A(o_\Delta)=\{a\in A:o_\Delta^a=o_\Delta\} Stab A ( o Δ ) = { a ∈ A : o Δ a = o Δ } . We call this group an orbit group . An orbit search yields for every α ∈ Δ \alpha\in\Delta α ∈ Δ an a α ∈ A a_\alpha\in A a α ∈ A with o Δ a α = α o_\Delta^{a_\alpha}=\alpha o Δ a α = α . The permutations a α a_\alpha a α allow us to compute the addition on Δ \Delta Δ directly. Hence, given generators for G G G and A A A , for every orbit Δ ∈ O \Delta\in O Δ ∈ O one can compute the addition table of the orbit group ( Δ , + ) (\Delta,+) ( Δ , + ) in polynomial time.
Define a permutation λ ( g ) ∈ Sym ( n ) \lambda(g)\in\operatorname{Sym}(n) λ ( g ) ∈ Sym ( n ) for every g ∈ G g\in G g ∈ G by
α λ ( g ) = α g − o Δ g g ( Δ ∈ O , α ∈ Δ ) . (9) \alpha^{\lambda(g)}=\alpha^g-o_{\Delta^g}^g\qquad(\Delta\in O,\ \alpha\in\Delta). \tag*{(9)} α λ ( g ) = α g − o Δ g g ( Δ ∈ O , α ∈ Δ ) . (9)
Note that − - − refers to the abelian group on Δ g \Delta^g Δ g , since α g , o Δ g g ∈ Δ g \alpha^g,o_{\Delta^g}^g\in\Delta^g α g , o Δ g g ∈ Δ g . We will in particular use the immediate consequence α g = α λ ( g ) + o Δ g g \alpha^g=\alpha^{\lambda(g)}+o_{\Delta^g}^g α g = α λ ( g ) + o Δ g g , which can be viewed as a decomposition of the action of G G G . For any given g ∈ G g\in G g ∈ G the permutation λ ( g ) \lambda(g) λ ( g ) can be computed in polynomial time.
Lemma 5.3. The following hold for all g ∈ G g\in G g ∈ G , Δ ∈ O \Delta\in O Δ ∈ O and $a\in A:
( o Δ a ) λ ( g ) = ( o Δ ) g − 1 a g − o Δ g (o_\Delta^a)^{\lambda(g)}=(o_\Delta)^{g^{-1}ag}-o_{\Delta^g} ( o Δ a ) λ ( g ) = ( o Δ ) g − 1 a g − o Δ g .
The mapping λ : G → Sym ( n ) \lambda:G\to\operatorname{Sym}(n) λ : G → Sym ( n ) is a homomorphism with A ≤ ker λ A\le\ker\lambda A ≤ ker λ .
For every g ∈ G g\in G g ∈ G , λ ( g ) : ( Δ , + ) → ( Δ g , + ) \lambda(g):(\Delta,+)\to(\Delta^g,+) λ ( g ) : ( Δ , + ) → ( Δ g , + ) is a group isomorphism.
Proof. Consider a Δ ∈ O \Delta\in O Δ ∈ O and g ∈ G g\in G g ∈ G . Choose c ∈ A c\in A c ∈ A with o Δ g = ( o Δ g ) c o_\Delta^g=(o_{\Delta^g})^c o Δ g = ( o Δ g ) c , which is possible since both points belong to Δ g \Delta^g Δ g . For a ∈ A a\in A a ∈ A , (9) gives
( o Δ a ) λ ( g ) = (9) ( o Δ ) g − 1 a g − o Δ g = ( o Δ g ) c − 1 a g − ( o Δ g ) c = (8) ( o Δ g ) c − 1 a g c − 1 = ( o Δ g ) g − 1 a g . (10) (o_\Delta^a)^{\lambda(g)} \overset{\text{(9)}}{=} (o_\Delta)^{g^{-1}ag}-o_\Delta^g=(o_{\Delta^g})^{c^{-1}ag}-(o_{\Delta^g})^c \overset{\text{(8)}}{=} (o_{\Delta^g})^{c^{-1}agc^{-1}}=(o_{\Delta^g})^{g^{-1}ag}. \tag*{(10)} ( o Δ a ) λ ( g ) = (9) ( o Δ ) g − 1 a g − o Δ g = ( o Δ g ) c − 1 a g − ( o Δ g ) c = (8) ( o Δ g ) c − 1 a g c − 1 = ( o Δ g ) g − 1 a g . (10)
Here g − 1 a g ∈ A g^{-1}ag \in A g − 1 a g ∈ A by normality, and the last equality uses that A A A is abelian. Taking a = 1 ∈ A a=1 \in A a = 1 ∈ A yields o Δ λ ( g ) = o Δ g o_{\Delta}^{\lambda(g)}=o_{\Delta^{g}} o Δ λ ( g ) = o Δ g .
Next, consider α , y ∈ Δ \alpha,y \in\Delta α , y ∈ Δ and choose a , b ∈ A a,b \in A a , b ∈ A with α = o Δ a \alpha=o_{\Delta}^{a} α = o Δ a and y = o Δ b y=o_{\Delta}^{b} y = o Δ b . By (10), we obtain
( α + y ) λ ( g ) = ( o Δ a b ) λ ( g ) = o Δ g ( g − 1 a g ) ( g − 1 b g ) = o Δ g g − 1 a g + o Δ g g − 1 b g = α λ ( g ) + y λ ( g ) . (\alpha+y)^{\lambda(g)}=(o_{\Delta}^{ab})^{\lambda(g)}=o_{\Delta^{g}}^{(g^{-1}ag)(g^{-1}bg)}=o_{\Delta^{g}}^{g^{-1}ag}+o_{\Delta^{g}}^{g^{-1}bg}=\alpha^{\lambda(g)}+y^{\lambda(g)}. ( α + y ) λ ( g ) = ( o Δ ab ) λ ( g ) = o Δ g ( g − 1 a g ) ( g − 1 b g ) = o Δ g g − 1 a g + o Δ g g − 1 b g = α λ ( g ) + y λ ( g ) .
Thus the restriction of λ ( g ) \lambda(g) λ ( g ) to Δ \Delta Δ is a group homomorphism from Δ \Delta Δ to Δ g \Delta^{g} Δ g . Since it is injective and ∣ Δ ∣ = ∣ Δ g ∣ |\Delta|=|\Delta^{g}| ∣Δ∣ = ∣ Δ g ∣ , it is an isomorphism.
We finally show that λ : G → Sym ( n ) \lambda:G\to\operatorname{Sym}(n) λ : G → Sym ( n ) is a homomorphism. Let g , h ∈ G g,h\in G g , h ∈ G , Δ ∈ O \Delta\in O Δ ∈ O , and α ∈ Δ \alpha\in\Delta α ∈ Δ . Choose a ∈ A a\in A a ∈ A with α = o Δ a \alpha=o_{\Delta}^{a} α = o Δ a . Since g − 1 a g ∈ A g^{-1}ag\in A g − 1 a g ∈ A and ( Δ g ) h = Δ g h (\Delta^{g})^{h}=\Delta^{gh} ( Δ g ) h = Δ g h , repeated application of (10) gives
α λ ( g ) λ ( h ) = ( ( o Δ ) g − 1 a g ) λ ( h ) = ( o Δ g ) h − 1 g − 1 a g h = ( o Δ g h ) ( g h ) − 1 a ( g h ) = α λ ( g h ) . \alpha^{\lambda(g)\lambda(h)}
=\left((o_{\Delta})^{g^{-1}ag}\right)^{\lambda(h)}
=(o_{\Delta^{g}})^{h^{-1}g^{-1}agh}
=(o_{\Delta^{gh}})^{(gh)^{-1}a(gh)}
=\alpha^{\lambda(gh)}. α λ ( g ) λ ( h ) = ( ( o Δ ) g − 1 a g ) λ ( h ) = ( o Δ g ) h − 1 g − 1 a g h = ( o Δ g h ) ( g h ) − 1 a ( g h ) = α λ ( g h ) .
Since the A A A -orbits partition [ 1 , n ] [1,n] [ 1 , n ] , this proves λ ( g h ) = λ ( g ) λ ( h ) \lambda(gh)=\lambda(g)\lambda(h) λ ( g h ) = λ ( g ) λ ( h ) for all g , h ∈ G g,h\in G g , h ∈ G . For every a ∈ A a\in A a ∈ A , (10) shows that λ ( a ) \lambda(a) λ ( a ) is the identity permutation.
Lemma 5.4. Let ℓ ∈ N \ell\in\mathbb{N} ℓ ∈ N , g 1 , … , g ℓ ∈ G g_1,\ldots,g_\ell\in G g 1 , … , g ℓ ∈ G , and g = g 1 ⋯ g ℓ ∈ G g=g_1\cdots g_\ell\in G g = g 1 ⋯ g ℓ ∈ G . For i ∈ [ 1 , ℓ ] i\in[1,\ell] i ∈ [ 1 , ℓ ] , put p i = g 1 ⋯ g i − 1 ∈ G p_i=g_1\cdots g_{i-1}\in G p i = g 1 ⋯ g i − 1 ∈ G and s i = g i + 1 ⋯ g ℓ ∈ G s_i=g_{i+1}\cdots g_\ell\in G s i = g i + 1 ⋯ g ℓ ∈ G . Then, for Δ ∈ O \Delta\in O Δ ∈ O and α ∈ Δ \alpha\in\Delta α ∈ Δ ,
α g = α λ ( g ) + ∑ i = 1 ℓ ( ( o Δ λ ( p i ) ) g i ) λ ( s i ) (11) \alpha^{g}=\alpha^{\lambda(g)}+\sum_{i=1}^{\ell}\left(\left(o_{\Delta}^{\lambda(p_i)}\right)^{g_i}\right)^{\lambda(s_i)} \tag*{(11)} α g = α λ ( g ) + i = 1 ∑ ℓ ( ( o Δ λ ( p i ) ) g i ) λ ( s i ) (11) Here, summation is done in the abelian group ( Δ g , + ) (\Delta^{g},+) ( Δ g , + ) .
Proof. We prove (11) by induction on ℓ \ell ℓ . Fix Δ ∈ O \Delta\in O Δ ∈ O and α ∈ Δ \alpha\in\Delta α ∈ Δ . The case ℓ = 0 \ell=0 ℓ = 0 is clear. Now let ℓ ≥ 1 \ell\geq1 ℓ ≥ 1 and assume the formula holds for ℓ − 1 \ell-1 ℓ − 1 . Put h = g 1 ⋯ g ℓ − 1 = p ℓ ∈ G h=g_1\cdots g_{\ell-1}=p_\ell\in G h = g 1 ⋯ g ℓ − 1 = p ℓ ∈ G . For i ∈ [ 1 , ℓ − 1 ] i\in[1,\ell-1] i ∈ [ 1 , ℓ − 1 ] , put t i = g i + 1 ⋯ g ℓ − 1 ∈ G t_i=g_{i+1}\cdots g_{\ell-1}\in G t i = g i + 1 ⋯ g ℓ − 1 ∈ G , so that s i = t i g ℓ s_i=t_i g_\ell s i = t i g ℓ . The prefixes p i p_i p i are unchanged. With Lemma 5.3, we obtain the following (with all summations in Δ g \Delta^{g} Δ g ):
α g = ( 9 ) ( α h ) λ ( g ℓ ) + ( o Δ h ) g ℓ = i n d . h y p . α λ ( h ) λ ( g ℓ ) + ∑ i = 1 ℓ − 1 ( ( o Δ λ ( p i ) ) g i ) λ ( t i ) λ ( g ℓ ) + ( o Δ h ) g ℓ = α λ ( g ) + ∑ i = 1 ℓ − 1 ( ( o Δ λ ( p i ) ) g i ) λ ( s i ) + ( o Δ λ ( h ) ) g ℓ = α λ ( g ) + ∑ i = 1 ℓ ( ( o Δ λ ( p i ) ) g i ) λ ( s i ) . \begin{aligned}
\alpha^{g}
&\mathrel{\overset{(9)}{=}}(\alpha^{h})^{\lambda(g_\ell)}+(o_{\Delta^{h}})^{g_\ell}\\
&\mathrel{\overset{\mathrm{ind.\ hyp.}}{=}}\alpha^{\lambda(h)\lambda(g_\ell)}
+\sum_{i=1}^{\ell-1}\left(\left(o_{\Delta}^{\lambda(p_i)}\right)^{g_i}\right)^{\lambda(t_i)\lambda(g_\ell)}
+(o_{\Delta^{h}})^{g_\ell}\\
&=\alpha^{\lambda(g)}
+\sum_{i=1}^{\ell-1}\left(\left(o_{\Delta}^{\lambda(p_i)}\right)^{g_i}\right)^{\lambda(s_i)}
+\left(o_{\Delta}^{\lambda(h)}\right)^{g_\ell}\\
&=\alpha^{\lambda(g)}
+\sum_{i=1}^{\ell}\left(\left(o_{\Delta}^{\lambda(p_i)}\right)^{g_i}\right)^{\lambda(s_i)}.
\end{aligned} α g = ( 9 ) ( α h ) λ ( g ℓ ) + ( o Δ h ) g ℓ = ind. hyp. α λ ( h ) λ ( g ℓ ) + i = 1 ∑ ℓ − 1 ( ( o Δ λ ( p i ) ) g i ) λ ( t i ) λ ( g ℓ ) + ( o Δ h ) g ℓ = α λ ( g ) + i = 1 ∑ ℓ − 1 ( ( o Δ λ ( p i ) ) g i ) λ ( s i ) + ( o Δ λ ( h ) ) g ℓ = α λ ( g ) + i = 1 ∑ ℓ ( ( o Δ λ ( p i ) ) g i ) λ ( s i ) .
This proves (11).
Constructing circuits for product evaluation in solvable groups
In this section we fix a constant d d d . Moreover, for the following construction we consider integers k , m , n ≥ 1 k,m,n\geq1 k , m , n ≥ 1 , a permutation group G ≤ Sym ( n ) G\leq\operatorname{Sym}(n) G ≤ Sym ( n ) with G ( d ) = 1 G^{(d)}=1 G ( d ) = 1 and an m m m -tuple g ˉ = ( g 1 , … , g m ) ∈ G m \bar{g}=(g_1,\ldots,g_m)\in G^m g ˉ = ( g 1 , … , g m ) ∈ G m . We define the set of Boolean variables
X k , m = { x i , j : i ∈ [ 1 , k ] , j ∈ [ 1 , m ] } . X_{k,m}=\{x_{i,j}:i\in[1,k],j\in[1,m]\}. X k , m = { x i , j : i ∈ [ 1 , k ] , j ∈ [ 1 , m ]} .
With I k ⊆ 2 [ 1 , k ] \mathcal{I}_k\subseteq2^{[1,k]} I k ⊆ 2 [ 1 , k ] we denote the set consisting of ∅ \varnothing ∅ and all intervals [ ℓ , r ] [\ell,r] [ ℓ , r ] with ℓ , r ∈ [ 1 , k ] \ell,r\in[1,k] ℓ , r ∈ [ 1 , k ] and ℓ ≤ r \ell\leq r ℓ ≤ r . A truth assignment ϕ : X k , m → { 0 , 1 } \phi:X_{k,m}\to\{0,1\} ϕ : X k , m → { 0 , 1 } such that for every i ∈ [ 1 , k ] i\in[1,k] i ∈ [ 1 , k ] there is a unique j i ∈ [ 1 , m ] j_i \in[1,m] j i ∈ [ 1 , m ] with ϕ ( x i , j ) = 1 [ j = j i ] \phi(x_{i,j}) = 1[j = j_i] ϕ ( x i , j ) = 1 [ j = j i ] is called admissible . For such a ϕ \phi ϕ and an interval I ∈ I k I \in\mathcal{I}_k I ∈ I k we define the group element
g ‾ [ I , ϕ ] = { g j ℓ g j ℓ + 1 ⋯ g j r ∈ G if I = [ ℓ , r ] with ℓ , r ∈ [ 1 , k ] and ℓ ≤ r , 1 if I = ∅ . \overline{g}[I,\phi] =
\begin{cases}
g_{j_\ell}g_{j_{\ell+1}}\cdots g_{j_r} \in G & \text{if } I=[\ell,r]\text{ with }\ell,r\in[1,k]\text{ and }\ell\le r,\\
1 & \text{if } I=\varnothing.
\end{cases} g [ I , ϕ ] = { g j ℓ g j ℓ + 1 ⋯ g j r ∈ G 1 if I = [ ℓ , r ] with ℓ , r ∈ [ 1 , k ] and ℓ ≤ r , if I = ∅ .
Lemma 5.5. Given n , m , k ≥ 1 n,m,k \ge1 n , m , k ≥ 1 , G G G and g ‾ = ( g 1 , … , g m ) ∈ G m \overline{g}=(g_1,\ldots,g_m)\in G^m g = ( g 1 , … , g m ) ∈ G m as above, one can construct a Boolean circuit C C C with input variables from X k , m X_{k,m} X k , m and distinguished gates B [ I , α , β ] B[I,\alpha,\beta] B [ I , α , β ] for all I ∈ I k I\in\mathcal{I}_k I ∈ I k and α , β ∈ [ 1 , n ] \alpha,\beta\in[1,n] α , β ∈ [ 1 , n ] such that:³
For every admissible assignment ϕ : X k , m → { 0 , 1 } \phi:X_{k,m}\to\{0,1\} ϕ : X k , m → { 0 , 1 } , ϕ ( B [ I , α , β ] ) = 1 \phi(B[I,\alpha,\beta])=1 ϕ ( B [ I , α , β ]) = 1 if and only if g ‾ [ I , ϕ ] = β \overline{g}[I,\phi]=\beta g [ I , ϕ ] = β .
C C C has weft at most 2 d 2d 2 d and depth at most 4 d 4d 4 d . Every gate B [ I , α , β ] B[I,\alpha,\beta] B [ I , α , β ] is either an input gate, a constant gate or an and-gate.
The total size and construction time for the circuit C C C are f d ( k ) ⋅ N c d f_d(k)\cdot N^{c_d} f d ( k ) ⋅ N c d for a computable function f d : N → N f_d:\mathbb{N}\to\mathbb{N} f d : N → N and a constant c d ∈ N c_d\in\mathbb{N} c d ∈ N , where N N N is the total input length.
Proof. We construct the circuit by induction on t ∈ [ 0 , d ] t\in[0,d] t ∈ [ 0 , d ] for permutation groups satisfying G ( t ) = 1 G^{(t)}=1 G ( t ) = 1 . At level t t t , the weft bound is 2 t 2t 2 t and the depth bound is 4 t 4t 4 t .
For t = 0 t=0 t = 0 we have G = 1 G=1 G = 1 , so every gate B [ I , α , β ] B[I,\alpha,\beta] B [ I , α , β ] is a constant gate carrying the truth value 1 [ α = β ] 1[\alpha=\beta] 1 [ α = β ] . Now let t ∈ [ 1 , d ] t\in[1,d] t ∈ [ 1 , d ] and suppose the assertion holds for t − 1 t-1 t − 1 .
Compute first the abelian group A = G ( t − 1 ) ⊴ G A=G^{(t-1)}\trianglelefteq G A = G ( t − 1 ) ⊴ G and apply the construction from Section 5.2. We obtain the homomorphism λ : G → Sym ( n ) \lambda:G\to\operatorname{Sym}(n) λ : G → Sym ( n ) with A ≤ ker λ A\le\ker\lambda A ≤ ker λ and the abelian group structures on the orbits of A A A . Let Q = G / ker λ = λ ( G ) ≤ Sym ( n ) Q=G/\ker\lambda=\lambda(G)\le\operatorname{Sym}(n) Q = G / ker λ = λ ( G ) ≤ Sym ( n ) . Since A ≤ ker λ A\le\ker\lambda A ≤ ker λ , we have Q ( t − 1 ) = 1 Q^{(t-1)}=1 Q ( t − 1 ) = 1 . Apply the induction hypothesis to Q Q Q and the tuple ( λ ( g 1 ) , … , λ ( g m ) ) (\lambda(g_1),\ldots,\lambda(g_m)) ( λ ( g 1 ) , … , λ ( g m )) , with the same n , m , k n,m,k n , m , k . Write C ′ C' C ′ for the resulting circuit and B ′ [ I , α , β ] B'[I,\alpha,\beta] B ′ [ I , α , β ] for its distinguished gates. We will extend C ′ C' C ′ to the circuit C C C for G G G .
All gates B [ ∅ , α , β ] B[\varnothing,\alpha,\beta] B [ ∅ , α , β ] in C C C will be constant gates carrying the truth value 1 [ α = β ] 1[\alpha=\beta] 1 [ α = β ] . Now assume that I = [ ℓ , r ] ∈ I k ∖ { ∅ } I=[\ell,r]\in\mathcal{I}_k\setminus\{\varnothing\} I = [ ℓ , r ] ∈ I k ∖ { ∅ } and α , β ∈ [ 1 , n ] \alpha,\beta\in[1,n] α , β ∈ [ 1 , n ] . For i ∈ I i\in I i ∈ I , define I < i = [ ℓ , i − 1 ] ∈ I k I_{<i}=[\ell,i-1]\in\mathcal{I}_k I < i = [ ℓ , i − 1 ] ∈ I k and I > i = [ i + 1 , r ] ∈ I k I_{>i}=[i+1,r]\in\mathcal{I}_k I > i = [ i + 1 , r ] ∈ I k . Let o ∈ [ 1 , n ] o\in[1,n] o ∈ [ 1 , n ] be the fixed representative of the A A A -orbit containing α \alpha α . For an admissible assignment ϕ \phi ϕ such that ϕ ( x i , j i ) = 1 \phi(x_{i,j_i})=1 ϕ ( x i , j i ) = 1 (with i ∈ [ 1 , k ] i\in[1,k] i ∈ [ 1 , k ] , j i ∈ [ 1 , m ] j_i\in[1,m] j i ∈ [ 1 , m ] ) we define points β i ∈ [ 1 , n ] \beta_i\in[1,n] β i ∈ [ 1 , n ] for i ∈ { 0 } ∪ I i\in\{0\}\cup I i ∈ { 0 } ∪ I by
β 0 = α λ ( g ‾ [ I , ϕ ] ) and β i = ( o λ ( g ‾ [ I < i , ϕ ] ) g j i ) λ ( g ‾ [ I > i , ϕ ] ) for i ∈ I . (12) \beta_0=\alpha^{\lambda(\overline{g}[I,\phi])}
\quad\text{and}\quad
\beta_i=\left(o^{\lambda(\overline{g}[I_{<i},\phi])g_{j_i}}\right)^{\lambda(\overline{g}[I_{>i},\phi])}
\quad\text{for }i\in I. \tag*{(12)} β 0 = α λ ( g [ I , ϕ ]) and β i = ( o λ ( g [ I < i , ϕ ]) g j i ) λ ( g [ I > i , ϕ ]) for i ∈ I . (12)
By Lemma 5.4, these points all belong to the A A A -orbit containing α g ‾ [ I , ϕ ] \alpha^{\overline{g}[I,\phi]} α g [ I , ϕ ] , and their sum in that orbit group is α g ‾ [ I , ϕ ] \alpha^{\overline{g}[I,\phi]} α g [ I , ϕ ] .
Let Δ \Delta Δ be the A A A -orbit containing β \beta β . Recall that Δ \Delta Δ carries an abelian group structure. Let s = ∣ I ∣ + 1 ∈ [ 1 , k + 1 ] s=|I|+1\in[1,k+1] s = ∣ I ∣ + 1 ∈ [ 1 , k + 1 ] . We use Lemma 5.2 to construct the CNF Φ [ Δ , s , β ] \Phi[\Delta,s,\beta] Φ [ Δ , s , β ] . Recall that its propositional variables are y i , a y_{i,a} y i , a , where i ∈ [ 1 , s ] i\in[1,s] i ∈ [ 1 , s ] and a ∈ Δ a\in\Delta a ∈ Δ . We rename these variables to y i , a y_{i,a} y i , a for i ∈ { 0 } ∪ I i\in\{0\}\cup I i ∈ { 0 } ∪ I and a ∈ Δ a\in\Delta a ∈ Δ . We then construct the positive CNF
Φ [ Δ , s , β ] ∧ ⋀ i ∈ { 0 } ∪ I ( ⋁ a ∈ Δ y i , a ) (13) \Phi[\Delta,s,\beta]\land\bigwedge_{i\in\{0\}\cup I}\left(\bigvee_{a\in\Delta}y_{i,a}\right) \tag*{(13)} Φ [ Δ , s , β ] ∧ i ∈ { 0 } ∪ I ⋀ ( a ∈ Δ ⋁ y i , a ) (13)
and view it as an unbounded fan-in circuit of depth two. The output gate of this circuit is B [ I , α , β ] B[I,\alpha,\beta] B [ I , α , β ] and its input gates are labelled with the variables y i , a y_{i,a} y i , a (i ∈ { 0 } ∪ I i\in\{0\}\cup I i ∈ { 0 } ∪ I , a ∈ Δ a\in\Delta a ∈ Δ ). Let us call the y i , a y_{i,a} y i , a -labelled input gate B i , a B_{i,a} B i , a . We then connect this CNF-circuit with the circuit C ′ C' C ′ by connecting the gates B i , a B_{i,a} B i , a as follows:
B 0 , a = B ′ [ I , α , a ] , (14) B_{0,a}=B'[I,\alpha,a], \tag*{(14)} B 0 , a = B ′ [ I , α , a ] , (14)
B i , a = ⋁ j ∈ [ 1 , m ] b ∈ [ 1 , n ] ( x i , j ∧ B ′ [ I < i , o , b ] ∧ B ′ [ I > i , b g j , a ] ) for i ∈ I . (15) B_{i,a}=\bigvee_{\substack{j\in[1,m]\\b\in[1,n]}}\left(x_{i,j}\wedge B'[I_{<i},o,b]\wedge B'[I_{>i},b^{g_j},a]\right)\quad\text{for }i\in I. \tag*{(15)} B i , a = j ∈ [ 1 , m ] b ∈ [ 1 , n ] ⋁ ( x i , j ∧ B ′ [ I < i , o , b ] ∧ B ′ [ I > i , b g j , a ] ) for i ∈ I . (15)
Here, successive or-gates of unbounded fan-in are merged into a single or-gate. This happens when (15) replaces the variable y i , a y_{i,a} y i , a in (13) .
By the induction hypothesis, B i , a B_{i,a} B i , a is true exactly when a = β i a=\beta_i a = β i in (12) . Hence the added clauses in (13) hold exactly when every β i \beta_i β i belongs to Δ \Delta Δ . Under this condition, for each position i ∈ { 0 } ∪ I i\in\{0\}\cup I i ∈ { 0 } ∪ I , exactly one a ∈ Δ a\in\Delta a ∈ Δ makes B i , a B_{i,a} B i , a true, so (5) applies. Hence, the gate B [ I , α , β ] B[I,\alpha,\beta] B [ I , α , β ] is true exactly when all summands lie in Δ \Delta Δ and sum to β \beta β , which is equivalent to α g [ I , ϕ ] = β \alpha^{g[I,\phi]}=\beta α g [ I , ϕ ] = β .
We now verify the bounds on the weft and depth. For t = 0 t=0 t = 0 , the depth and weft of the circuit are zero. If t > 0 t>0 t > 0 then the circuit C C C starts with a (possibly large) and-gate followed by a (possibly large) or-gate, both coming from the positive CNF in (13) . Then the circuit either directly enters the circuit C ′ C' C ′ (of depth at most 4 ( t − 1 ) 4(t-1) 4 ( t − 1 ) and weft at most 2 ( t − 1 ) 2(t-1) 2 ( t − 1 ) ) by (14) or it reaches the input variable x i , j x_{i,j} x i , j in (15) or it traverses at most two binary and-gates before entering C ′ C' C ′ . This yields a total depth of 4 + 4 ( t − 1 ) = 4 t 4+4(t-1)=4t 4 + 4 ( t − 1 ) = 4 t and weft 2 + 2 ( t − 1 ) = 2 t 2+2(t-1)=2t 2 + 2 ( t − 1 ) = 2 t .
The size of the circuit can be estimated as follows (we count circuit wires, which is more appropriate than counting gates for unbounded fan-in circuits): Going from the circuit C ′ C' C ′ to the circuit C C C adds ( k ( k + 1 ) / 2 + 1 ) n 2 = Θ ( k 2 n 2 ) (k(k+1)/2+1)n^2=\Theta(k^2n^2) ( k ( k + 1 ) /2 + 1 ) n 2 = Θ ( k 2 n 2 ) new gates B [ I , α , β ] B[I,\alpha,\beta] B [ I , α , β ] . For each of these gates we construct the CNF Φ [ Δ , s , β ] \Phi[\Delta,s,\beta] Φ [ Δ , s , β ] of size f ( k ) ⋅ n c f(k)\cdot n^c f ( k ) ⋅ n c (for a computable function f : N → N f:\mathbb{N}\to\mathbb{N} f : N → N and a constant c c c ) from Lemma 5.2. The additional clauses in (13) yield a CNF of size f ( k ) ⋅ n c + O ( k n ) f(k)\cdot n^c+O(kn) f ( k ) ⋅ n c + O ( k n ) . After adding the circuit wires from (15) and merging successive or-gates we obtain O ( m n ( f ( k ) n c + k n ) ) O(mn(f(k)n^c+kn)) O ( mn ( f ( k ) n c + k n )) new wires in the circuit. This has to be done for each of the Θ ( k 2 n 2 ) \Theta(k^2n^2) Θ ( k 2 n 2 ) many new gates B [ I , α , β ] B[I,\alpha,\beta] B [ I , α , β ] . In total, we add O ( m f ( k ) n c ) O(mf(k)n^c) O ( m f ( k ) n c ) new wires in the circuit for a new computable function f f f and a new constant c c c .
This is repeated d d d times, where d d d is a constant in our setting. In total, the circuit size is bounded by f d ( k ) N c d f_d(k)N^{c_d} f d ( k ) N c d for a computable function f d : N → N f_d:\mathbb{N}\to\mathbb{N} f d : N → N and a constant c d ∈ N c_d\in\mathbb{N} c d ∈ N depending only on d d d . The same bound holds for the construction time. The addition tables of the orbit groups and cyclic coordinates are computable in polynomial time. ◀
Theorem 5.6. For every fixed d ≥ 1 d\geq1 d ≥ 1 , the problem pSSS[S o l d P G \mathrm{Sol}_d\mathrm{PG} Sol d PG ] belongs to W [ 2 d ] \mathrm{W}[2d] W [ 2 d ] .
Proof. Fix an instance of pSSS[S o l d P G \mathrm{Sol}_d\mathrm{PG} Sol d PG ], consisting of g 1 , … , g m , h ∈ Sym ( n ) g_1,\ldots,g_m,h\in\operatorname{Sym}(n) g 1 , … , g m , h ∈ Sym ( n ) with G : = ⟨ g 1 , … , g m ⟩ G:=\langle g_1,\ldots,g_m\rangle G := ⟨ g 1 , … , g m ⟩ and G ( d ) = 1 G^{(d)}=1 G ( d ) = 1 , and the parameter k ∈ [ 1 , m ] k\in[1,m] k ∈ [ 1 , m ] . W.l.o.g. we can assume that h ∈ G h\in G h ∈ G . We construct the circuit C C C from Lemma 5.5 with distinguished gates B [ I , α , β ] B[I,\alpha,\beta] B [ I , α , β ] and input variables x i , j x_{i,j} x i , j , ( i ∈ [ 1 , k ] , j ∈ [ 1 , m ] ) (i\in[1,k],j\in[1,m]) ( i ∈ [ 1 , k ] , j ∈ [ 1 , m ]) and extend C C C by an output gate computing
⋀ i = 1 k ⋁ j = 1 m x i , j ∧ ⋀ i ∈ [ 1 , k − 1 ] j , j ′ ∈ [ 1 , m ] , j ≥ j ′ ( ¬ x i , j ∨ ¬ x i + 1 , j ′ ) ∧ ⋀ α ∈ [ 1 , n ] B [ [ 1 , k ] , α , α h ] . \bigwedge_{i=1}^{k}\bigvee_{j=1}^{m}x_{i,j}\wedge\bigwedge_{\substack{i\in[1,k-1]\\j,j'\in[1,m],\,j\geq j'}}(\neg x_{i,j}\vee\neg x_{i+1,j'})\wedge\bigwedge_{\alpha\in[1,n]}B[[1,k],\alpha,\alpha^h]. i = 1 ⋀ k j = 1 ⋁ m x i , j ∧ i ∈ [ 1 , k − 1 ] j , j ′ ∈ [ 1 , m ] , j ≥ j ′ ⋀ ( ¬ x i , j ∨ ¬ x i + 1 , j ′ ) ∧ α ∈ [ 1 , n ] ⋀ B [[ 1 , k ] , α , α h ] .
where the last conjunction is merged with a possible top and-gate in B [ [ 1 , k ] , α , α h ] B[[1,k],\alpha,\alpha^h] B [[ 1 , k ] , α , α h ] .
The first conjunction, together with the restriction to truth assignments of weight exactly k k k , forces for every i ∈ [ 1 , k ] i\in[1,k] i ∈ [ 1 , k ] exactly one variable x i , j x_{i,j} x i , j (j ∈ [ 1 , m ] j\in[1,m] j ∈ [ 1 , m ] ) to be true. The second conjunction forces these indices to be strictly increasing. The final conjunction then holds exactly when their ordered product is h h h . Since every gate B [ [ 1 , k ] , α , α h ] B[[1,k],\alpha,\alpha^h] B [[ 1 , k ] , α , α h ] is an and-gate, a constant gate, or an input gate in the circuit C C C , the circuit resulting from the above construction still has depth 4 d 4d 4 d and weft 2 d 2d 2 d (if d ≥ 1 d \ge1 d ≥ 1 ). Our pSSS[ S o l d P G ] [\mathrm{Sol}_d\mathrm{PG}] [ Sol d PG ] instance is positive if and only if the circuit has a satisfying assignment of weight k k k .
Theorem 5.6 gives the upper bounds W[2 ] for abelian permutation groups and W[4 ] for metabelian permutation groups. Lemmas 3.3 and 3.4 show that the problems pSSS≤ [ S o l d P G ] _{\le}[\mathrm{Sol}_d\mathrm{PG}] ≤ [ Sol d PG ] , pF≤ [ S o l d P G ] _{\le}[\mathrm{Sol}_d\mathrm{PG}] ≤ [ Sol d PG ] and pF[ S o l d P G ] [\mathrm{Sol}_d\mathrm{PG}] [ Sol d PG ] belong to W[2 d 2d 2 d ] as well.
Nilpotent permutation groups of fixed class
In this section, d ≥ 1 d \ge1 d ≥ 1 will again be a fixed constant. We consider the restriction of the problem pSSS[ S y m ( ∗ ) ] [\mathrm{Sym}(\ast)] [ Sym ( ∗ )] , where the input permutations g 1 , … , g m g_1,\ldots,g_m g 1 , … , g m generate a d d d -step nilpotent permutation group. Recall from § 2.4 that this property can be checked in polynomial time. We denote this restriction of pSSS[ S y m ( ∗ ) ] [\mathrm{Sym}(\ast)] [ Sym ( ∗ )] with pSSS[ N i l d P G ] [\mathrm{Nil}_d\mathrm{PG}] [ Nil d PG ] ; the problems pSSS≤ [ N i l d P G ] _{\le}[\mathrm{Nil}_d\mathrm{PG}] ≤ [ Nil d PG ] , pF[ N i l d P G ] [\mathrm{Nil}_d\mathrm{PG}] [ Nil d PG ] and pF≤ [ N i l d P G ] _{\le}[\mathrm{Nil}_d\mathrm{PG}] ≤ [ Nil d PG ] are defined similarly. Note that pSSS[ N i l 1 P G ] [\mathrm{Nil}_1\mathrm{PG}] [ Nil 1 PG ] is the same problem as pSSS[ S o l 1 P G ] [\mathrm{Sol}_1\mathrm{PG}] [ Sol 1 PG ] , which is the restriction of pSSS[ S y m ( ∗ ) ] [\mathrm{Sym}(\ast)] [ Sym ( ∗ )] to abelian permutation groups.
The main result of this section states that pSSS[ N i l d P G ] [\mathrm{Nil}_d\mathrm{PG}] [ Nil d PG ] belongs to W[2 ] for every d ≥ 1 d \ge1 d ≥ 1 . We start with some well-established concepts for free nilpotent groups.
Free nilpotent groups, Hall coordinates and the Magnus embedding
The main sources for this section are [22 , 34 ] . The free d d d -step nilpotent group of rank r r r with generators a 1 , … , a r a_1,\ldots,a_r a 1 , … , a r is the quotient N d , r = F r / γ d + 1 ( F r ) \mathcal{N}_{d,r} = F_r/\gamma_{d+1}(F_r) N d , r = F r / γ d + 1 ( F r ) , where F r = F r ( a 1 , … , a r ) F_r = F_r(a_1,\ldots,a_r) F r = F r ( a 1 , … , a r ) is the free group generated by a 1 , … , a r a_1,\ldots,a_r a 1 , … , a r . In our later setting, r r r will be part of the input but d d d will always be fixed and not part of the input. Let us define the alphabet Σ r = { a 1 , a 1 − 1 , … , a r , a r − 1 } \Sigma_r = \{a_1,a_1^{-1},\ldots,a_r,a_r^{-1}\} Σ r = { a 1 , a 1 − 1 , … , a r , a r − 1 } . We define the basic commutators and their order inductively following [22 Section 5] and [34 Section 4.1, (4.1.1)–(4.1.3)] . For this we first define basic expressions as formal expressions built up from the symbols a 1 , … , a r a_1,\ldots,a_r a 1 , … , a r and the binary operator [ ⋅ , ⋅ ] [\cdot,\cdot] [ ⋅ , ⋅ ] and thereby define a linear order on them. The generators a 1 < ⋯ < a r a_1 < \cdots< a_r a 1 < ⋯ < a r are basic expressions of weight 1. For n ∈ [ 2 , d ] n \in[2,d] n ∈ [ 2 , d ] and previously constructed basic expressions u , v u,v u , v of weights ℓ , m \ell,m ℓ , m with n = ℓ + m n = \ell+ m n = ℓ + m , the expression [ u , v ] [u,v] [ u , v ] is basic of weight n n n if u > v u > v u > v and the following condition holds: if u = [ u 1 , u 2 ] u = [u_1,u_2] u = [ u 1 , u 2 ] then u 2 ≤ v u_2 \le v u 2 ≤ v . We order basic expressions by increasing weight; those of the same weight greater than 1 are ordered arbitrarily. Note that basic expressions can be viewed as ordered binary trees whose leaves are labelled with symbols from a 1 , … , a r a_1,\ldots,a_r a 1 , … , a r ; they are called Hall trees in [34 ] . Note that Reutenauer’s order on Hall trees is the reverse of our order on basic expressions.
We obtain basic commutators of weight s ∈ [ 1 , d ] s \in[1,d] s ∈ [ 1 , d ] by interpreting basic expressions of weight s s s in N d , r \mathcal{N}_{d,r} N d , r . Distinct basic expressions of weight at most d d d represent distinct basic commutators in N d , r \mathcal{N}_{d,r} N d , r by Hall’s normal form theorem recalled below. Moreover, basic commutators inherit the linear order from basic expressions. Note that every basic commutator a i a_i a i belongs to γ ω i ( N d , r ) \gamma_{\omega_i}(\mathcal{N}_{d,r}) γ ω i ( N d , r ) ; this follows from the general inclusion [ γ i ( G ) , γ j ( G ) ] ⊆ γ i + j ( G ) \left[\gamma_i(G),\gamma_j(G)\right] \subseteq\gamma_{i+j}(G) [ γ i ( G ) , γ j ( G ) ] ⊆ γ i + j ( G ) .
Extend the ordered list of generators a 1 , … , a r a_1,\ldots,a_r a 1 , … , a r to the list a 1 , … , a t ∈ N d , r a_1,\ldots,a_t \in\mathcal{N}_{d,r} a 1 , … , a t ∈ N d , r of all basic commutators of weights at most d d d , listed in order, and let ω i \omega_i ω i be the weight of a i a_i a i . One has t = O ( r d ) t = O(r^d) t = O ( r d ) by Witt’s formula [22 Theorem 5.7] . The importance of basic commutators comes from the following result of Hall; see e.g. [34 Theorem 6.8] .
Theorem 6.1 (Hall’s normal form theorem). Every g ∈ N d , r g \in\mathcal{N}_{d,r} g ∈ N d , r can be uniquely written as g = a 1 y 1 ⋯ a t y t g = a_1^{y_1}\cdots a_t^{y_t} g = a 1 y 1 ⋯ a t y t with y 1 , … , y t ∈ Z y_1,\ldots,y_t \in\mathbb{Z} y 1 , … , y t ∈ Z .
We call the integers y i y_i y i the Hall coordinates of g g g and write Hall i ( g ) = y i \operatorname{Hall}_i(g)=y_i Hall i ( g ) = y i . The process of bringing a word over the alphabet Σ r \Sigma_r Σ r into the above Hall normal form is known as commutator collection. An element g ∈ N d , r g\in N_{d,r} g ∈ N d , r belongs to γ s ( N d , r ) \gamma_s(N_{d,r}) γ s ( N d , r ) if and only if Hall i ( g ) = 0 \operatorname{Hall}_i(g)=0 Hall i ( g ) = 0 for all i ∈ [ 1 , t ] i\in[1,t] i ∈ [ 1 , t ] with ω i < s \omega_i<s ω i < s [34 Theorem 6.8 and Corollary 6.15] .
The second important concept for nilpotent groups that we use is the Magnus embedding. For non-commuting variables χ 1 , … , χ r \chi_1,\ldots,\chi_r χ 1 , … , χ r we consider the free algebra Q ⟨ χ 1 , … , χ r ⟩ \mathbb{Q}\langle\chi_1,\ldots,\chi_r\rangle Q ⟨ χ 1 , … , χ r ⟩ of all non-commutative polynomials over the field Q \mathbb{Q} Q . Monomials are then simply words over the alphabet { χ 1 , … , χ r } \{\chi_1,\ldots,\chi_r\} { χ 1 , … , χ r } . With m \mathfrak{m} m we denote the two-sided ideal generated by χ 1 , … , χ r \chi_1,\ldots,\chi_r χ 1 , … , χ r . Thus m d + 1 \mathfrak{m}^{d+1} m d + 1 is the ideal generated by all words in { χ 1 , … , χ r } d + 1 \{\chi_1,\ldots,\chi_r\}^{d+1} { χ 1 , … , χ r } d + 1 . The truncated free associative algebra A d , r A_{d,r} A d , r is defined as the quotient algebra
A d , r = Q ⟨ χ 1 , … , χ r ⟩ / m d + 1 . A_{d,r}=\mathbb{Q}\langle\chi_1,\ldots,\chi_r\rangle/\mathfrak{m}^{d+1}. A d , r = Q ⟨ χ 1 , … , χ r ⟩ / m d + 1 .
Every element of A d , r A_{d,r} A d , r can be uniquely written as a Q \mathbb{Q} Q -linear combination of words from { χ 1 , … , χ r } ≤ d \{\chi_1,\ldots,\chi_r\}^{\leq d} { χ 1 , … , χ r } ≤ d . Hence, as a vector space over Q \mathbb{Q} Q , A d , r A_{d,r} A d , r has dimension Θ ( r d ) \Theta(r^d) Θ ( r d ) . For a word w ∈ { χ 1 , … , χ r } ∗ w\in\{\chi_1,\ldots,\chi_r\}^{*} w ∈ { χ 1 , … , χ r } ∗ and P ∈ A d , r P\in A_{d,r} P ∈ A d , r we write [ w ] P ∈ Q [w]P\in\mathbb{Q} [ w ] P ∈ Q for the coefficient of w w w in P P P .
The Magnus embedding μ d , r : N d , r → A d , r \mu_{d,r}:N_{d,r}\to A_{d,r} μ d , r : N d , r → A d , r is defined by μ d , r ( a j ) = 1 + χ j \mu_{d,r}(a_j)=1+\chi_j μ d , r ( a j ) = 1 + χ j for j ∈ [ 1 , r ] j\in[1,r] j ∈ [ 1 , r ] . It maps N d , r N_{d,r} N d , r injectively into the group of units of A d , r A_{d,r} A d , r [22 Theorem 5.6] , which consists of all non-commutative polynomials whose constant term is not zero. In our application the constant term will always be 0 or 1 and all other coefficients will be from Z \mathbb{Z} Z . For U ∈ A d , r U\in A_{d,r} U ∈ A d , r with zero constant term, we have ( 1 + U ) − 1 = ∑ ℓ = 0 d ( − U ) ℓ (1+U)^{-1}=\sum_{\ell=0}^{d}(-U)^\ell ( 1 + U ) − 1 = ∑ ℓ = 0 d ( − U ) ℓ , since U d + 1 = 0 U^{d+1}=0 U d + 1 = 0 .
By induction on s s s it follows easily that, for every g ∈ γ s ( N d , r ) g\in\gamma_s(N_{d,r}) g ∈ γ s ( N d , r ) , every monomial of μ d , r ( g ) − 1 ∈ A d , r \mu_{d,r}(g)-1\in A_{d,r} μ d , r ( g ) − 1 ∈ A d , r has length at least s s s [34 Lemma 6.10(iii)] . In particular, for every basic commutator a i a_i a i (i ∈ [ 1 , t ] i\in[1,t] i ∈ [ 1 , t ] ) we have μ d , r ( a i ) = 1 + A i \mu_{d,r}(a_i)=1+A_i μ d , r ( a i ) = 1 + A i , where all monomials of A i A_i A i have length at least ω i \omega_i ω i [34 Lemma 6.10(ii)] .
Lemma 6.2. Consider a product U = ∏ i = 1 k ( 1 + U i ) U=\prod_{i=1}^{k}(1+U_i) U = ∏ i = 1 k ( 1 + U i ) with k ≥ 1 k\geq1 k ≥ 1 , where every U i ∈ A d , r U_i\in A_{d,r} U i ∈ A d , r has constant term 0 and every coefficient in U i U_i U i is an integer of bit length at most σ \sigma σ . Then, every coefficient of U U U is an integer of bit length O ( log k + σ ) O(\log k+\sigma) O ( log k + σ ) .
Proof. Assume that all coefficients of the U i U_i U i have absolute value at most α ≥ 1 \alpha\geq1 α ≥ 1 . Consider a monomial w w w in U U U ; it is a word of length at most d d d . Hence, in the expansion of the product ∏ i = 1 k ( 1 + U i ) \prod_{i=1}^{k}(1+U_i) ∏ i = 1 k ( 1 + U i ) , the monomial can be obtained in at most k d + 1 k^{d+1} k d + 1 ways. Hence, the absolute value of the coefficient of w w w is bounded by k d + 1 α d k^{d+1}\alpha^d k d + 1 α d and its bit length is bounded by O ( log k + log α ) = O ( log k + σ ) O(\log k+\log\alpha)=O(\log k+\sigma) O ( log k + log α ) = O ( log k + σ ) (recall that d d d is a constant).
The main lemma
The following lemma is the main technical result of this section. We assume that polynomials in Z [ y 1 , … , y m ] \mathbb{Z}[y_1,\ldots,y_m] Z [ y 1 , … , y m ] are given by their sparse representation, which stores all monomials together with the corresponding coefficient in binary notation. The value d d d is considered as a fixed constant throughout this section. All constants hidden in the O O O -notation only depend on d d d .
Lemma 6.3. Given m , n ≥ 1 m,n\geq1 m , n ≥ 1 in unary notation, a d d d -step nilpotent group G ≤ Sym ( n ) G\leq\operatorname{Sym}(n) G ≤ Sym ( n ) and elements g 1 , … , g m , h ∈ G g_1,\ldots,g_m,h\in G g 1 , … , g m , h ∈ G , one can compute in polynomial time the binary encoding of an integer q ≥ 1 q\geq1 q ≥ 1 together with its prime factorization and polynomials P 1 , … , P t ∈ Z [ y 1 , … , y m ] P_1,\ldots,P_t\in\mathbb{Z}[y_1,\ldots,y_m] P 1 , … , P t ∈ Z [ y 1 , … , y m ] of degree at most d d d such that t = O ( m d ) t=O(m^d) t = O ( m d ) and for every ϵ ˉ = ( ϵ 1 , … , ϵ m ) ∈ { 0 , 1 } m \bar{\epsilon}=(\epsilon_1,\ldots,\epsilon_m)\in\{0,1\}^m ϵ ˉ = ( ϵ 1 , … , ϵ m ) ∈ { 0 , 1 } m ,
g 1 ϵ 1 ⋯ g m ϵ m = h ⟺ ∀ i ∈ [ 1 , t ] : P i ( ϵ ˉ ) ≡ 0 ( m o d q ) . (16) g_1^{\epsilon_1}\cdots g_m^{\epsilon_m}=h\quad\Longleftrightarrow\quad\forall i\in[1,t]:P_i(\bar{\epsilon})\equiv0\pmod q. \tag*{(16)} g 1 ϵ 1 ⋯ g m ϵ m = h ⟺ ∀ i ∈ [ 1 , t ] : P i ( ϵ ˉ ) ≡ 0 ( mod q ) . (16) If q = p 1 v 1 ⋯ p l v l q=p_1^{v_1}\cdots p_l^{v_l} q = p 1 v 1 ⋯ p l v l is the prime factorization of q q q then l = poly ( n ) l=\operatorname{poly}(n) l = poly ( n ) and p i v i = poly ( n ) p_i^{v_i}=\operatorname{poly}(n) p i v i = poly ( n ) for all i ∈ [ 1 , l ] i\in[1,l] i ∈ [ 1 , l ] .
The existence of polynomial congruences of degree at most d d d follows from [33 Theorem 9.1] . We give a construction that also satisfies the additional bounds from Lemma 6.3 . We first prove several auxiliary lemmas.
For r ≥ 1 r \ge1 r ≥ 1 , use the basic commutators a 1 , … , a t ∈ N d , r a_1,\ldots,a_t \in\mathcal{N}_{d,r} a 1 , … , a t ∈ N d , r and their weights ω i ∈ [ 1 , d ] \omega_i \in[1,d] ω i ∈ [ 1 , d ] from § 6.1 . All products indexed by a subset I ⊆ [ 1 , t ] I \subseteq[1,t] I ⊆ [ 1 , t ] are taken in increasing order on I I I , unless stated otherwise. For s ∈ [ 1 , d ] s \in[1,d] s ∈ [ 1 , d ] , define the subintervals I s = { i ∈ [ 1 , t ] : ω i = s } I_s=\{i\in[1,t]:\omega_i=s\} I s = { i ∈ [ 1 , t ] : ω i = s } and I < s = { i ∈ [ 1 , t ] : ω i < s } I_{<s}=\{i\in[1,t]:\omega_i<s\} I < s = { i ∈ [ 1 , t ] : ω i < s } of [ 1 , t ] [1,t] [ 1 , t ] and let r s = ∣ I s ∣ ∈ N r_s=|I_s|\in\mathbb{N} r s = ∣ I s ∣ ∈ N . The intervals I ≤ s I_{\leq s} I ≤ s and I ≥ s I_{\geq s} I ≥ s are defined analogously. Note that r 1 = r r_1=r r 1 = r . In the following, for a tuple u = ( u 1 , … , u t ) u=(u_1,\ldots,u_t) u = ( u 1 , … , u t ) (with the u i u_i u i from any set) we write u s = ( u i ) i ∈ I s u_s=(u_i)_{i\in I_s} u s = ( u i ) i ∈ I s and u < s = ( u i ) i ∈ I < s u_{<s}=(u_i)_{i\in I_{<s}} u < s = ( u i ) i ∈ I < s . The same notation is used for column vectors.
We start with showing that from an element g ∈ N d , r g\in\mathcal{N}_{d,r} g ∈ N d , r that is given by an SLP over the standard generators, one can compute the Hall coordinates of g g g in polynomial time.
Lemma 6.4. Given r ≥ 1 r\geq1 r ≥ 1 in unary notation and an SLP of size ℓ ≥ 1 \ell\geq1 ℓ ≥ 1 over Σ r \Sigma_r Σ r representing g ∈ N d , r g\in\mathcal{N}_{d,r} g ∈ N d , r , one can compute all Hall coordinates of g g g in time poly ( r , ℓ ) \operatorname{poly}(r,\ell) poly ( r , ℓ ) .
Proof. We use the Magnus embedding μ d , r \mu_{d,r} μ d , r introduced in § 6.1 . In the following, we write μ \mu μ for μ d , r \mu_{d,r} μ d , r and A \mathcal{A} A for A d , r \mathcal{A}_{d,r} A d , r . The list a 1 , … , a t a_1,\ldots,a_t a 1 , … , a t can be computed in polynomial time in r r r , if we allow the commutator bracket [ ⋅ , ⋅ ] [\cdot,\cdot] [ ⋅ , ⋅ ] as a syntactic operator. Every a i a_i a i can be written as a word over Σ r \Sigma_r Σ r of length depending only on d d d . Replacing in this word every symbol a j a_j a j (j ∈ [ 1 , r ] j\in[1,r] j ∈ [ 1 , r ] ) by 1 + χ j 1+\chi_j 1 + χ j and every symbol a j − 1 a_j^{-1} a j − 1 by 1 − χ j + χ j 2 − ⋯ + ( − 1 ) d χ j d 1-\chi_j+\chi_j^2-\cdots+(-1)^d\chi_j^d 1 − χ j + χ j 2 − ⋯ + ( − 1 ) d χ j d and expanding the product yields μ ( a i ) = 1 + A i \mu(a_i)=1+A_i μ ( a i ) = 1 + A i . Each A i ∈ A A_i\in\mathcal{A} A i ∈ A has O ( 1 ) O(1) O ( 1 ) monomials of length at least ω i \omega_i ω i , and all its coefficients have bit length O ( 1 ) O(1) O ( 1 ) by Lemma 6.2 .
From the SLP for g g g one can compute the polynomial μ ( g ) \mu(g) μ ( g ) explicitly. All monomials in μ ( g ) \mu(g) μ ( g ) are words over { χ 1 , … , χ r } \{\chi_1,\ldots,\chi_r\} { χ 1 , … , χ r } of length at most d d d . Hence, for each SLP instruction we have to multiply two polynomials with O ( r d ) O(r^d) O ( r d ) possible monomials. The SLP can be expanded into a word over Σ r \Sigma_r Σ r of length at most 2 ℓ 2^\ell 2 ℓ . Replacing every symbol a j ± 1 a_j^{\pm1} a j ± 1 (j ∈ [ 1 , r ] j\in[1,r] j ∈ [ 1 , r ] ) by μ ( a j ± 1 ) \mu(a_j^{\pm1}) μ ( a j ± 1 ) and applying Lemma 6.2 shows that all coefficients of μ ( g ) \mu(g) μ ( g ) have bit length O ( ℓ ) O(\ell) O ( ℓ ) . The same bound holds for every intermediate SLP result, so evaluating the SLP in A \mathcal{A} A takes time poly ( r , ℓ ) \operatorname{poly}(r,\ell) poly ( r , ℓ ) .
We now describe how to recover the Hall coordinates of g ∈ N d , r g\in\mathcal{N}_{d,r} g ∈ N d , r from μ ( g ) ∈ A \mu(g)\in\mathcal{A} μ ( g ) ∈ A . For i ∈ [ 1 , t ] i\in[1,t] i ∈ [ 1 , t ] , let B i ∈ A B_i\in\mathcal{A} B i ∈ A be the homogeneous component of degree ω i \omega_i ω i of μ ( a i ) − 1 = A i \mu(a_i)-1=A_i μ ( a i ) − 1 = A i . Thus B i B_i B i is obtained simply by retaining the monomials of length ω i \omega_i ω i in the explicitly computed polynomial μ ( a i ) − 1 \mu(a_i)-1 μ ( a i ) − 1 . By [34 Theorem 4.9(i) and Lemma 6.10(ii)] , for every s ∈ [ 1 , d ] s\in[1,d] s ∈ [ 1 , d ] the polynomials B i B_i B i for i ∈ I s i\in I_s i ∈ I s are linearly independent over Q \mathbb{Q} Q ; in particular, they are pairwise distinct.
Let z i = Hall i ( g ) ∈ Z z_i=\operatorname{Hall}_i(g)\in\mathbb{Z} z i = Hall i ( g ) ∈ Z for i ∈ [ 1 , t ] i\in[1,t] i ∈ [ 1 , t ] so that g = a 1 z 1 ⋯ a t z t g=a_1^{z_1}\cdots a_t^{z_t} g = a 1 z 1 ⋯ a t z t . We recover the coordinates z i z_i z i from μ ( g ) \mu(g) μ ( g ) successively in blocks for each weight s ∈ [ 1 , d ] s\in[1,d] s ∈ [ 1 , d ] . At the beginning of stage s s s , we maintain a polynomial V s ∈ A V_s\in\mathcal{A} V s ∈ A satisfying
V s = μ ( ∏ i ∈ I ≥ s a i z i ) . (17) V_s=\mu\left(\prod_{i\in I_{\geq s}}a_i^{z_i}\right). \tag*{(17)} V s = μ i ∈ I ≥ s ∏ a i z i . (17)
Initially, V 1 = μ ( g ) V_1=\mu(g) V 1 = μ ( g ) , so (17) holds for s = 1 s=1 s = 1 . For s ∈ [ 1 , d ] s\in[1,d] s ∈ [ 1 , d ] , let U s ∈ A U_s\in\mathcal{A} U s ∈ A be the homogeneous length-s s s component of V s − 1 V_s-1 V s − 1 . We have
∑ i ∈ I s z i B i = U s . (18) \sum_{i\in I_s}z_iB_i=U_s. \tag*{(18)} i ∈ I s ∑ z i B i = U s . (18)
Indeed, for i ∈ I s i\in I_s i ∈ I s , the polynomial μ ( a i z i ) \mu(a_i^{z_i}) μ ( a i z i ) has the form 1 + z i B i + W i 1+z_iB_i+W_i 1 + z i B i + W i for W i ∈ A W_i\in\mathcal{A} W i ∈ A , where all monomials in W i W_i W i have length larger than s s s . Multiplying these polynomials and taking the homogeneous length-s s s part yields (18).
Equating coefficients of the r s r^s r s monomials w ∈ { χ 1 , … , χ r } s w \in\{\chi_1,\ldots,\chi_r\}^s w ∈ { χ 1 , … , χ r } s turns (18) into a linear system for the r s = ∣ I s ∣ ≤ r s r_s = |I_s| \le r^s r s = ∣ I s ∣ ≤ r s unknowns z i z_i z i for i ∈ I s i \in I_s i ∈ I s . The right-hand side of the equation for w ∈ { χ 1 , … , χ r } s w \in\{\chi_1,\ldots,\chi_r\}^s w ∈ { χ 1 , … , χ r } s is the coefficient of w w w in U s U_s U s . The matrix C s ∈ Z r s × r s C_s \in\mathbb{Z}^{r^s \times r_s} C s ∈ Z r s × r s of the linear system has in row w ∈ { χ 1 , … , χ r } s w \in\{\chi_1,\ldots,\chi_r\}^s w ∈ { χ 1 , … , χ r } s and column i ∈ I s i \in I_s i ∈ I s the entry [ w ] B i [w]B_i [ w ] B i . The matrix C s C_s C s has full column rank by the linear independence of the B i B_i B i . Moreover, the system has the integer solution z i = Hall i ( g ) z_i = \operatorname{Hall}_i(g) z i = Hall i ( g ) for i ∈ I s i \in I_s i ∈ I s , which must be the unique solution over Q \mathbb{Q} Q .
If r s = 0 r_s = 0 r s = 0 , there are no coordinates z i z_i z i to recover at this stage and we set V s + 1 = V s V_{s+1} = V_s V s + 1 = V s . Assume now that r s ≥ 1 r_s \ge1 r s ≥ 1 and that every coefficient of V s V_s V s has bit length at most α ∈ N \alpha\in\mathbb{N} α ∈ N with α ≥ 1 \alpha\ge1 α ≥ 1 . Select r s r_s r s linearly independent rows of C s C_s C s to obtain an invertible matrix D s ∈ Z r s × r s D_s \in\mathbb{Z}^{r_s \times r_s} D s ∈ Z r s × r s . The absolute value of every entry of D s D_s D s is bounded by a constant c ≥ 1 c \ge1 c ≥ 1 depending only on d d d , whereas the entries of the right-hand side vector are the coefficients of U s U_s U s (and zero) and therefore have absolute value at most 2 α 2^\alpha 2 α . For i ∈ I s i \in I_s i ∈ I s , let D s , i ∈ Z r s × r s D_{s,i} \in\mathbb{Z}^{r_s \times r_s} D s , i ∈ Z r s × r s be obtained by replacing in D s D_s D s the i i i -th column by the right-hand side vector. Since ∣ det D s ∣ ≥ 1 |\det D_s| \ge1 ∣ det D s ∣ ≥ 1 , Cramer’s rule and Hadamard’s inequality give ∣ z i ∣ ≤ ∣ det D s , i ∣ ≤ 2 α r s / 2 c r s − 1 |z_i| \le|\det D_{s,i}| \le2^{\alpha r_s/2}c^{r_s-1} ∣ z i ∣ ≤ ∣ det D s , i ∣ ≤ 2 α r s /2 c r s − 1 . Thus every z i z_i z i has bit length at most α + O ( r s log r s ) ≤ α + O ( r d log r ) \alpha+ O(r_s \log r_s) \le\alpha+ O(r^d \log r) α + O ( r s log r s ) ≤ α + O ( r d log r ) . The solution ( z i ) i ∈ I s (z_i)_{i \in I_s} ( z i ) i ∈ I s can be computed in time poly ( r , α ) \operatorname{poly}(r,\alpha) poly ( r , α ) by Gaussian elimination over Q \mathbb{Q} Q [36 Theorem 3.3] .
Having recovered the Hall coordinates z i z_i z i (i ∈ I s i \in I_s i ∈ I s ), we compute the invertible polynomial
V s ′ = μ ( ∏ i ∈ I s a i − z i ) ∈ A , V'_s = \mu\left(\prod_{i \in I_s} a_i^{-z_i}\right) \in\mathcal{A}, V s ′ = μ ( i ∈ I s ∏ a i − z i ) ∈ A ,
where the product runs over the set I s I_s I s in decreasing order, and set V s + 1 = V s ′ V s V_{s+1} = V'_sV_s V s + 1 = V s ′ V s . This yields V s + 1 = μ ( ∏ i ∈ I ≥ s + 1 a i z i ) V_{s+1} = \mu\left(\prod_{i \in I_{\ge s+1}} a_i^{z_i}\right) V s + 1 = μ ( ∏ i ∈ I ≥ s + 1 a i z i ) , so (17) holds at the next stage. After stage d d d , all Hall coordinates have been recovered and V d + 1 = 1 V_{d+1} = 1 V d + 1 = 1 .
It remains to bound the coefficient lengths during these updates. For every i ∈ I s i \in I_s i ∈ I s , the finite binomial expansion μ ( a i − z i ) = ∑ j = 0 ⌊ d / s ⌋ ( − z i j ) A i j \mu(a_i^{-z_i}) = \sum_{j=0}^{\lfloor d/s\rfloor} \binom{-z_i}{j} A_i^j μ ( a i − z i ) = ∑ j = 0 ⌊ d / s ⌋ ( j − z i ) A i j holds for every z i ∈ Z z_i \in\mathbb{Z} z i ∈ Z . Since d d d is fixed and each A i A_i A i has constantly many monomials with coefficients of constant bit length, this computes every factor μ ( a i − z i ) \mu(a_i^{-z_i}) μ ( a i − z i ) with coefficient bit length O ( α + r d log r ) O(\alpha+ r^d \log r) O ( α + r d log r ) . The polynomial V s + 1 V_{s+1} V s + 1 is the product of the polynomials μ ( a i − z i ) \mu(a_i^{-z_i}) μ ( a i − z i ) (in decreasing order over I s I_s I s ) and V s V_s V s . Each of these r s + 1 ≤ r s + 1 ≤ r d + 1 r_s + 1 \le r^s + 1 \le r^d + 1 r s + 1 ≤ r s + 1 ≤ r d + 1 polynomials has coefficients of bit length bounded by O ( α + r d log r ) O(\alpha+ r^d \log r) O ( α + r d log r ) . By Lemma 6.2 , all coefficients of this product and its partial products have bit length O ( α + r d log r ) O(\alpha+ r^d \log r) O ( α + r d log r ) . There are O ( r d ) O(r^d) O ( r d ) possible monomials and at most r s + 1 ≤ r d + 1 r^s + 1 \le r^d + 1 r s + 1 ≤ r d + 1 polynomials that have to be multiplied. Hence, the running time for computing V s + 1 V_{s+1} V s + 1 from V s V_s V s is poly ( r , α ) \operatorname{poly}(r,\alpha) poly ( r , α ) .
Recall that we start with V 1 = μ ( g ) V_1 = \mu(g) V 1 = μ ( g ) , whose coefficients have bit length O ( ℓ ) O(\ell) O ( ℓ ) . There are only d = O ( 1 ) d = O(1) d = O ( 1 ) stages, and in each stage the bit length increases from α \alpha α to O ( α + r d log r ) O(\alpha+ r^d \log r) O ( α + r d log r ) . Hence all intermediate coefficients and all Hall coordinates have bit length O ( ℓ + r d log r ) = poly ( r , ℓ ) O(\ell+ r^d \log r) = \operatorname{poly}(r,\ell) O ( ℓ + r d log r ) = poly ( r , ℓ ) . This proves the claimed polynomial running time.
For the remaining lemmas, fix the input data of Lemma 6.3 . Polynomial time will always mean time poly ( m , n ) \operatorname{poly}(m,n) poly ( m , n ) . Let r = m + 1 ∈ N r = m+1 \in\mathbb{N} r = m + 1 ∈ N and let N d , r \mathcal{N}_{d,r} N d , r be the free d d d -step nilpotent group generated by a 1 , … , a r ∈ N d , r a_1,\ldots,a_r \in\mathcal{N}_{d,r} a 1 , … , a r ∈ N d , r . Let H = ⟨ g 1 , … , g m , h ⟩ ≤ G H = \langle g_1,\ldots,g_m,h\rangle\le G H = ⟨ g 1 , … , g m , h ⟩ ≤ G , and let π : N d , r → H \pi: \mathcal{N}_{d,r} \to H π : N d , r → H be the homomorphism with π ( a i ) = g i \pi(a_i)=g_i π ( a i ) = g i for i ∈ [ 1 , m ] i \in[1,m] i ∈ [ 1 , m ] and π ( a r ) = h \pi(a_r)=h π ( a r ) = h . Let K = ker π ≤ N d , r K = \ker\pi\le\mathcal{N}_{d,r} K = ker π ≤ N d , r .
We use the basic commutators a 1 , … , a t a_1,\ldots,a_t a 1 , … , a t and index sets I s I_s I s , I < s I_{<s} I < s , etc. defined above; in particular, t = O ( r d ) = O ( m d ) t = O(r^d) = O(m^d) t = O ( r d ) = O ( m d ) . For i ∈ [ 1 , t ] i \in[1,t] i ∈ [ 1 , t ] , let N i = ⟨ a i , … , a t ⟩ ≤ N d , r N_i = \langle a_i,\ldots,a_t\rangle\le\mathcal{N}_{d,r} N i = ⟨ a i , … , a t ⟩ ≤ N d , r and H i = π ( N i ) ≤ H H_i = \pi(N_i) \le H H i = π ( N i ) ≤ H , and set N t + 1 = H t + 1 = 1 N_{t+1} = H_{t+1} = 1 N t + 1 = H t + 1 = 1 . Let e i = [ H i : H i + 1 ] ∈ [ 1 , n ! ] e_i = [H_i : H_{i+1}] \in[1,n!] e i = [ H i : H i + 1 ] ∈ [ 1 , n !] for i ∈ [ 1 , t ] i \in[1,t] i ∈ [ 1 , t ] .
From the corollary to [22 Theorem 5.6] one can easily derive that the groups N i N_i N i are normal in N d , r \mathcal{N}_{d,r} N d , r , and that N i / N i + 1 N_i/N_{i+1} N i / N i + 1 is infinite cyclic, generated by a i N i + 1 a_iN_{i+1} a i N i + 1 . We present a proof of these facts to keep the paper self-contained.
Lemma 6.5. Every group N i N_i N i is normal in N d , r N_{d,r} N d , r , and N i / N i + 1 N_i/N_{i+1} N i / N i + 1 is infinite cyclic, generated by a i N i + 1 a_iN_{i+1} a i N i + 1 . For every g ∈ N i g \in N_i g ∈ N i we have Hall j ( g ) = 0 \operatorname{Hall}_j(g) = 0 Hall j ( g ) = 0 for j ∈ [ 1 , i − 1 ] j \in[1,i-1] j ∈ [ 1 , i − 1 ] .
Proof. Fix an i ∈ [ 1 , t ] i \in[1,t] i ∈ [ 1 , t ] , let s = ω i ∈ [ 1 , d ] s = \omega_i \in[1,d] s = ω i ∈ [ 1 , d ] , and let p ∈ [ i , t ] p \in[i,t] p ∈ [ i , t ] be the largest index with ω p = s \omega_p = s ω p = s . Consider the canonical epimorphism η : N d , r → N s , r \eta: N_{d,r} \to N_{s,r} η : N d , r → N s , r , and write a ^ j = η ( a j ) ∈ N s , r \hat{a}_j = \eta(a_j) \in N_{s,r} a ^ j = η ( a j ) ∈ N s , r for j ∈ [ 1 , t ] j \in[1,t] j ∈ [ 1 , t ] . Then a ^ 1 , … , a ^ p \hat{a}_1,\ldots,\hat{a}_p a ^ 1 , … , a ^ p is the ordered list of basic commutators of weight at most s s s in N s , r N_{s,r} N s , r , whereas a ^ j = 1 \hat{a}_j = 1 a ^ j = 1 for j > p j > p j > p .
Let g = a 1 y 1 ⋯ a t y t ∈ N d , r g = a_1^{y_1}\cdots a_t^{y_t} \in N_{d,r} g = a 1 y 1 ⋯ a t y t ∈ N d , r , where y 1 , … , y t ∈ Z y_1,\ldots,y_t \in\mathbb{Z} y 1 , … , y t ∈ Z are the Hall coordinates of g g g . Then η ( g ) = a ^ 1 y 1 ⋯ a ^ p y p \eta(g) = \hat{a}_1^{y_1}\cdots\hat{a}_p^{y_p} η ( g ) = a ^ 1 y 1 ⋯ a ^ p y p . By uniqueness of the Hall normal form in N s , r N_{s,r} N s , r (Theorem 6.1), we have η ( g ) = 1 \eta(g) = 1 η ( g ) = 1 if and only if y 1 = ⋯ = y p = 0 y_1 = \cdots= y_p = 0 y 1 = ⋯ = y p = 0 . Since η ( a j ) = 1 \eta(a_j) = 1 η ( a j ) = 1 for j > p j > p j > p , this proves ker η = N p + 1 \ker\eta= N_{p+1} ker η = N p + 1 , with N t + 1 = 1 N_{t+1} = 1 N t + 1 = 1 as usual.
The elements a ^ i , … , a ^ p \hat{a}_i,\ldots,\hat{a}_p a ^ i , … , a ^ p belong to γ s ( N s , r ) \gamma_s(N_{s,r}) γ s ( N s , r ) and are therefore central in N s , r N_{s,r} N s , r , which yields ⟨ a ^ i , … , a ^ p ⟩ ⊴ N s , r \langle\hat{a}_i,\ldots,\hat{a}_p\rangle\trianglelefteq N_{s,r} ⟨ a ^ i , … , a ^ p ⟩ ⊴ N s , r . Moreover, ker η = N p + 1 ⊆ N i \ker\eta= N_{p+1} \subseteq N_i ker η = N p + 1 ⊆ N i . Consequently, N i = η − 1 ( ⟨ a ^ i , … , a ^ p ⟩ ) N_i = \eta^{-1}(\langle\hat{a}_i,\ldots,\hat{a}_p\rangle) N i = η − 1 (⟨ a ^ i , … , a ^ p ⟩) is normal in N d , r N_{d,r} N d , r .
Now suppose that g = a 1 y 1 ⋯ a t y t ∈ N i g = a_1^{y_1}\cdots a_t^{y_t} \in N_i g = a 1 y 1 ⋯ a t y t ∈ N i . Since a ^ i , … , a ^ p \hat{a}_i,\ldots,\hat{a}_p a ^ i , … , a ^ p commute, there are z i , … , z p ∈ Z z_i,\ldots,z_p \in\mathbb{Z} z i , … , z p ∈ Z such that η ( g ) = a ^ i z i ⋯ a ^ p z p \eta(g) = \hat{a}_i^{z_i}\cdots\hat{a}_p^{z_p} η ( g ) = a ^ i z i ⋯ a ^ p z p . Comparing this expression with η ( g ) = a ^ 1 y 1 ⋯ a ^ p y p \eta(g) = \hat{a}_1^{y_1}\cdots\hat{a}_p^{y_p} η ( g ) = a ^ 1 y 1 ⋯ a ^ p y p , uniqueness of the Hall normal form gives y j = 0 y_j = 0 y j = 0 for j ∈ [ 1 , i − 1 ] j \in[1,i-1] j ∈ [ 1 , i − 1 ] , i.e., Hall j ( g ) = 0 \operatorname{Hall}_j(g) = 0 Hall j ( g ) = 0 for all j ∈ [ 1 , i − 1 ] j \in[1,i-1] j ∈ [ 1 , i − 1 ] .
Finally, N i = ⟨ a i , N i + 1 ⟩ N_i = \langle a_i,N_{i+1}\rangle N i = ⟨ a i , N i + 1 ⟩ , so the quotient N i / N i + 1 N_i/N_{i+1} N i / N i + 1 is cyclic and generated by a i N i + 1 a_iN_{i+1} a i N i + 1 . If z ∈ Z z \in\mathbb{Z} z ∈ Z satisfies a i z ∈ N i + 1 a_i^z \in N_{i+1} a i z ∈ N i + 1 then Hall i ( a i z ) = 0 \operatorname{Hall}_i(a_i^z) = 0 Hall i ( a i z ) = 0 by the conclusion from the previous paragraph. On the other hand, Hall i ( a i z ) = z \operatorname{Hall}_i(a_i^z) = z Hall i ( a i z ) = z by uniqueness of Hall normal form. Hence z = 0 z = 0 z = 0 , and N i / N i + 1 N_i/N_{i+1} N i / N i + 1 is infinite cyclic. ◀
The following lemma shows that one can compute SLPs for elements b i ∈ K ∩ N i b_i \in K \cap N_i b i ∈ K ∩ N i for i ∈ [ 1 , t ] i \in[1,t] i ∈ [ 1 , t ] that establish a Hall normal form for every element from the kernel K K K :
Lemma 6.6. One can compute in polynomial time SLPs over Σ r \Sigma_r Σ r for elements b i ∈ K ∩ N i b_i \in K \cap N_i b i ∈ K ∩ N i (i ∈ [ 1 , t ] i \in[1,t] i ∈ [ 1 , t ] ) such that Hall i ( b i ) = e i \operatorname{Hall}_i(b_i) = e_i Hall i ( b i ) = e i and Hall j ( b i ) = 0 \operatorname{Hall}_j(b_i) = 0 Hall j ( b i ) = 0 for j ∈ [ 1 , i − 1 ] j \in[1,i-1] j ∈ [ 1 , i − 1 ] . Every element g ∈ K g \in K g ∈ K can be uniquely written as g = b 1 s 1 ⋯ b t s t g = b_1^{s_1}\cdots b_t^{s_t} g = b 1 s 1 ⋯ b t s t for s 1 , … , s t ∈ Z s_1,\ldots,s_t \in\mathbb{Z} s 1 , … , s t ∈ Z .
Proof. We have H i = ⟨ π ( a i ) , … , π ( a t ) ⟩ H_i = \langle\pi(a_i),\ldots,\pi(a_t)\rangle H i = ⟨ π ( a i ) , … , π ( a t )⟩ and the generators π ( a j ) \pi(a_j) π ( a j ) can be computed in polynomial time by evaluating the commutator expressions for the a j a_j a j in Sym ( n ) \operatorname{Sym}(n) Sym ( n ) . For i ∈ [ 1 , t ] i \in[1,t] i ∈ [ 1 , t ] , we then compute the index e i = [ H i : H i + 1 ] ∈ [ 1 , n ! ] e_i = [H_i:H_{i+1}] \in[1,n!] e i = [ H i : H i + 1 ] ∈ [ 1 , n !] . This is possible in polynomial time, since the order of a permutation group can be computed in polynomial time [37 Section 3.1, item (c)] . Then π ( a i ) e i ∈ H i + 1 \pi(a_i)^{e_i} \in H_{i+1} π ( a i ) e i ∈ H i + 1 and using fast exponentiation, we can compute the permutation π ( a i ) e i \pi(a_i)^{e_i} π ( a i ) e i in polynomial time. By Theorem 2.2 one can produce in polynomial time an SLP of size poly ( n ) \operatorname{poly}(n) poly ( n ) over { 1 , π ( a i + 1 ) , … , π ( a t ) } \{1,\pi(a_{i+1}),\ldots,\pi(a_t)\} { 1 , π ( a i + 1 ) , … , π ( a t )} for π ( a i ) e i \pi(a_i)^{e_i} π ( a i ) e i (1 is needed if i = t i=t i = t ). We lift this SLP to an SLP for an element v i + 1 ∈ N i + 1 v_{i+1} \in N_{i+1} v i + 1 ∈ N i + 1 with π ( v i + 1 ) = π ( a i ) e i \pi(v_{i+1}) = \pi(a_i)^{e_i} π ( v i + 1 ) = π ( a i ) e i by replacing in the SLP every π ( a j ) \pi(a_j) π ( a j ) by a j a_j a j (j ∈ [ i + 1 , t ] j \in[i+1,t] j ∈ [ i + 1 , t ] ). We then define
b i = a i e i v i + 1 − 1 ∈ K ∩ N i . b_i = a_i^{e_i}v_{i+1}^{-1} \in K \cap N_i. b i = a i e i v i + 1 − 1 ∈ K ∩ N i .
We have b i N i + 1 = a i e i N i + 1 b_iN_{i+1} = a_i^{e_i}N_{i+1} b i N i + 1 = a i e i N i + 1 , Hall i ( b i ) = e i \operatorname{Hall}_i(b_i) = e_i Hall i ( b i ) = e i and Hall j ( b i ) = 0 \operatorname{Hall}_j(b_i) = 0 Hall j ( b i ) = 0 for j ∈ [ 1 , i − 1 ] j \in[1,i-1] j ∈ [ 1 , i − 1 ] . Moreover, we obtain in polynomial time an SLP for b i b_i b i over the generators a 1 ± 1 , … , a t ± 1 a_1^{\pm1},\ldots,a_t^{\pm1} a 1 ± 1 , … , a t ± 1 of N i N_i N i and its size is poly ( n ) \operatorname{poly}(n) poly ( n ) . This SLP can finally be transformed in polynomial time into an equivalent SLP over Σ r \Sigma_r Σ r , by replacing every a j ± 1 a_j^{\pm1} a j ± 1 (j ∈ [ i , t ] j \in[i,t] j ∈ [ i , t ] ) by an equivalent word over Σ r \Sigma_r Σ r . Since a j a_j a j is a basic commutator of weight at most d d d , the length of this word only depends on the constant d d d . The identity can be represented by a 1 a 1 − 1 a_1a_1^{-1} a 1 a 1 − 1 if necessary. Hence, the resulting SLP for b i b_i b i still has size poly ( n ) \operatorname{poly}(n) poly ( n ) .
For i ∈ [ 1 , t ] i \in[1,t] i ∈ [ 1 , t ] , consider an element g ∈ K ∩ N i g \in K \cap N_i g ∈ K ∩ N i . It can be uniquely written as g = a i y i a i + 1 y i + 1 ⋯ a t y t g = a_i^{y_i}a_{i+1}^{y_{i+1}}\cdots a_t^{y_t} g = a i y i a i + 1 y i + 1 ⋯ a t y t for integers y j y_j y j . Since g ∈ K g \in K g ∈ K we have π ( a i ) − y i ∈ H i + 1 \pi(a_i)^{-y_i} \in H_{i+1} π ( a i ) − y i ∈ H i + 1 , i.e., π ( a i ) − y i = 1 \pi(a_i)^{-y_i} = 1 π ( a i ) − y i = 1 in H i / H i + 1 H_i/H_{i+1} H i / H i + 1 , which implies that y i y_i y i is a multiple of e i e_i e i . Let q i = y i / e i q_i = y_i/e_i q i = y i / e i . With the normality of N i + 1 N_{i+1} N i + 1 we obtain ( b i − q i g ) N i + 1 = a i − e i q i + y i N i + 1 = N i + 1 (b_i^{-q_i}g)N_{i+1}=a_i^{-e_iq_i+y_i}N_{i+1}=N_{i+1} ( b i − q i g ) N i + 1 = a i − e i q i + y i N i + 1 = N i + 1 , i.e., b i − q i g ∈ N i + 1 b_i^{-q_i}g\in N_{i+1} b i − q i g ∈ N i + 1 . Combined with b i − q i g ∈ K b_i^{-q_i}g\in K b i − q i g ∈ K , this proves b i − q i g ∈ K ∩ N i + 1 b_i^{-q_i}g\in K\cap N_{i+1} b i − q i g ∈ K ∩ N i + 1 .
Continuing this way with b i − q i g b_i^{-q_i}g b i − q i g (and using N t + 1 = 1 N_{t+1}=1 N t + 1 = 1 ) proves the existence of the factorization from the lemma. To see uniqueness, assume that b 1 s 1 ⋯ b t s t = b 1 u 1 ⋯ b t u t b_1^{s_1}\cdots b_t^{s_t}=b_1^{u_1}\cdots b_t^{u_t} b 1 s 1 ⋯ b t s t = b 1 u 1 ⋯ b t u t and let i i i be the smallest index with s i ≠ u i s_i\ne u_i s i = u i . After cancelling the common initial factors, we obtain in the quotient N i / N i + 1 N_i/N_{i+1} N i / N i + 1 an identity b i s = 1 b_i^s=1 b i s = 1 for s = s i − u i ≠ 0 s=s_i-u_i\ne0 s = s i − u i = 0 , which yields a i e i s = 1 a_i^{e_is}=1 a i e i s = 1 in N i / N i + 1 N_i/N_{i+1} N i / N i + 1 . Since N i / N i + 1 N_i/N_{i+1} N i / N i + 1 is infinite cyclic by Lemma 6.5 and e i ≠ 0 e_i\ne0 e i = 0 , this yields a contradiction, which proves Lemma 6.6.
Introduce commuting variables x 1 , … , x t x_1,\ldots,x_t x 1 , … , x t , assign to x i x_i x i the weight ω i ≥ 1 \omega_i\ge1 ω i ≥ 1 , and set x ˉ = ( x 1 , … , x t ) \bar{x}=(x_1,\ldots,x_t) x ˉ = ( x 1 , … , x t ) . For a polynomial P ∈ Q [ x ˉ ] P\in\mathbb{Q}[\bar{x}] P ∈ Q [ x ˉ ] we define the weighted degree of P P P as follows: For a monomial x 1 n 1 x 2 n 2 ⋯ x t n t x_1^{n_1}x_2^{n_2}\cdots x_t^{n_t} x 1 n 1 x 2 n 2 ⋯ x t n t the weighted degree is n 1 ω 1 + n 2 ω 2 + ⋯ + n t ω t n_1\omega_1+n_2\omega_2+\cdots+n_t\omega_t n 1 ω 1 + n 2 ω 2 + ⋯ + n t ω t and the weighted degree of P P P is the maximal weighted degree of a monomial in P P P . For the zero polynomial we define the weighted degree as − ∞ -\infty − ∞ . The weighted degree of a vector of polynomials is the maximal weighted degree of a polynomial in the vector.
Fix the elements b 1 , … , b t b_1,\ldots,b_t b 1 , … , b t from Lemma 6.6. For s ∈ [ 1 , d ] s\in[1,d] s ∈ [ 1 , d ] , let M s ∈ Z r s × r s M_s\in\mathbb{Z}^{r_s\times r_s} M s ∈ Z r s × r s be the matrix with rows and columns indexed by I s I_s I s and entry Hall i ( b j ) \operatorname{Hall}_i(b_j) Hall i ( b j ) in row i i i and column j j j .
Lemma 6.7. Every integer matrix M s M_s M s can be computed in polynomial time and is invertible over Q \mathbb{Q} Q .
Proof. Lemma 6.6 yields Hall i ( b j ) = 0 \operatorname{Hall}_i(b_j)=0 Hall i ( b j ) = 0 for all s ∈ [ 1 , d ] s\in[1,d] s ∈ [ 1 , d ] , i , j ∈ I s i,j\in I_s i , j ∈ I s with i < j i<j i < j and Hall i ( b i ) = e i ≠ 0 \operatorname{Hall}_i(b_i)=e_i\ne0 Hall i ( b i ) = e i = 0 . Thus M s M_s M s is lower triangular with non-zero diagonal entries and therefore invertible over Q \mathbb{Q} Q . By Lemmas 6.4 and 6.6, one can compute all integers Hall i ( b j ) \operatorname{Hall}_i(b_j) Hall i ( b j ) and hence all matrices M s M_s M s in polynomial time.
Lemma 6.8. One can compute in polynomial time polynomials S i ∈ Q [ x ˉ ] S_i\in\mathbb{Q}[\bar{x}] S i ∈ Q [ x ˉ ] of weighted degree at most ω i \omega_i ω i such that
S i ( z ˉ ) = Hall i ( b 1 z 1 ⋯ b t z t ) (19) S_i(\bar{z})=\operatorname{Hall}_i(b_1^{z_1}\cdots b_t^{z_t}) \tag*{(19)} S i ( z ˉ ) = Hall i ( b 1 z 1 ⋯ b t z t ) (19) for every z ˉ ∈ Z t \bar{z}\in\mathbb{Z}^t z ˉ ∈ Z t and i ∈ [ 1 , t ] i\in[1,t] i ∈ [ 1 , t ] .
Proof. The existence of the polynomials S i S_i S i satisfying (19) follows from [22 Theorem 6.5] . We verify the weighted degree bound for the polynomials S i S_i S i . For this, we use the Magnus embedding μ d , r \mu_{d,r} μ d , r .
Fix i ∈ [ 1 , t ] i\in[1,t] i ∈ [ 1 , t ] and let W i = { w ∈ { χ 1 , … , χ r } ∗ : 1 ≤ ∣ w ∣ ≤ ω i } W_i=\{w\in\{\chi_1,\ldots,\chi_r\}^*:1\le|w|\le\omega_i\} W i = { w ∈ { χ 1 , … , χ r } ∗ : 1 ≤ ∣ w ∣ ≤ ω i } . By [34 Corollary 6.13] , there are integers c i , w c_{i,w} c i , w for w ∈ W i w\in W_i w ∈ W i such that
Hall i ( g ) = ∑ w ∈ W i c i , w ⋅ [ w ] μ d , r ( g ) (20) \operatorname{Hall}_i(g)=\sum_{w\in W_i}c_{i,w}\cdot[w]_{\mu_{d,r}}(g) \tag*{(20)} Hall i ( g ) = w ∈ W i ∑ c i , w ⋅ [ w ] μ d , r ( g ) (20)
for every g ∈ N d , r g\in\mathcal{N}_{d,r} g ∈ N d , r . Reutenauer states this identity for the free group F r F_r F r . Since ω i ≤ d \omega_i\le d ω i ≤ d , both the Hall coordinates Hall i ( g ) \operatorname{Hall}_i(g) Hall i ( g ) and the coefficients [ w ] μ d , r ( g ) [w]_{\mu_{d,r}}(g) [ w ] μ d , r ( g ) depend only on the image of g g g in F r / γ d + 1 ( F r ) = N d , r F_r/\gamma_{d+1}(F_r)=\mathcal{N}_{d,r} F r / γ d + 1 ( F r ) = N d , r .
For j ∈ [ 1 , t ] j\in[1,t] j ∈ [ 1 , t ] let U j = μ d , r ( b j ) − 1 ∈ A d , r U_j=\mu_{d,r}(b_j)-1\in A_{d,r} U j = μ d , r ( b j ) − 1 ∈ A d , r . Since b j ∈ N j ⊆ N ω j ( N d , r ) b_j\in N_j\subseteq\mathcal{N}_{\omega_j}(\mathcal{N}_{d,r}) b j ∈ N j ⊆ N ω j ( N d , r ) , every monomial of U j U_j U j has length at least ω j \omega_j ω j [34 Lemma 6.10(iii)] . Consequently, U j q = 0 U_j^q=0 U j q = 0 whenever q ⋅ ω j > d q\cdot\omega_j>d q ⋅ ω j > d , and the finite binomial expansion gives for every z ∈ Z z\in\mathbb{Z} z ∈ Z
μ d , r ( b j z ) = ∑ q = 0 ⌊ d / ω j ⌋ ( z q ) U j q \mu_{d,r}(b_j^z)=\sum_{q=0}^{\lfloor d/\omega_j\rfloor}\binom{z}{q}U_j^q μ d , r ( b j z ) = q = 0 ∑ ⌊ d / ω j ⌋ ( q z ) U j q
@page 20/31 starts_mid=1 ends_mid=1 N i + 1 N_{i+1} N i + 1 we obtain ( b i − q i g ) N i + 1 = a i − e i q i + y i N i + 1 = N i + 1 (b_i^{-q_i}g)N_{i+1}=a_i^{-e_iq_i+y_i}N_{i+1}=N_{i+1} ( b i − q i g ) N i + 1 = a i − e i q i + y i N i + 1 = N i + 1 , i.e., b i − q i g ∈ N i + 1 b_i^{-q_i}g\in N_{i+1} b i − q i g ∈ N i + 1 . Combined with b i − q i g ∈ K b_i^{-q_i}g\in K b i − q i g ∈ K , this proves b i − q i g ∈ K ∩ N i + 1 b_i^{-q_i}g\in K\cap N_{i+1} b i − q i g ∈ K ∩ N i + 1 .
Continuing this way with b i − q i g b_i^{-q_i}g b i − q i g (and using N t + 1 = 1 N_{t+1}=1 N t + 1 = 1 ) proves the existence of the factorization from the lemma. To see uniqueness, assume that b 1 s 1 ⋯ b t s t = b 1 u 1 ⋯ b t u t b_1^{s_1}\cdots b_t^{s_t}=b_1^{u_1}\cdots b_t^{u_t} b 1 s 1 ⋯ b t s t = b 1 u 1 ⋯ b t u t and let i i i be the smallest index with s i ≠ u i s_i\ne u_i s i = u i . After cancelling the common initial factors, we obtain in the quotient N i / N i + 1 N_i/N_{i+1} N i / N i + 1 an identity b i s = 1 b_i^s=1 b i s = 1 for s = s i − u i ≠ 0 s=s_i-u_i\ne0 s = s i − u i = 0 , which yields a i e i s = 1 a_i^{e_is}=1 a i e i s = 1 in N i / N i + 1 N_i/N_{i+1} N i / N i + 1 . Since N i / N i + 1 N_i/N_{i+1} N i / N i + 1 is infinite cyclic by Lemma 6.5 and e i ≠ 0 e_i\ne0 e i = 0 , this yields a contradiction, which proves Lemma 6.6.
Introduce commuting variables x 1 , … , x t x_1,\ldots,x_t x 1 , … , x t , assign to x i x_i x i the weight ω i ≥ 1 \omega_i\ge1 ω i ≥ 1 , and set x ˉ = ( x 1 , … , x t ) \bar{x}=(x_1,\ldots,x_t) x ˉ = ( x 1 , … , x t ) . For a polynomial P ∈ Q [ x ˉ ] P\in\mathbb{Q}[\bar{x}] P ∈ Q [ x ˉ ] we define the weighted degree of P P P as follows: For a monomial x 1 n 1 x 2 n 2 ⋯ x t n t x_1^{n_1}x_2^{n_2}\cdots x_t^{n_t} x 1 n 1 x 2 n 2 ⋯ x t n t the weighted degree is n 1 ω 1 + n 2 ω 2 + ⋯ + n t ω t n_1\omega_1+n_2\omega_2+\cdots+n_t\omega_t n 1 ω 1 + n 2 ω 2 + ⋯ + n t ω t and the weighted degree of P P P is the maximal weighted degree of a monomial in P P P . For the zero polynomial we define the weighted degree as − ∞ -\infty − ∞ . The weighted degree of a vector of polynomials is the maximal weighted degree of a polynomial in the vector.
Fix the elements b 1 , … , b t b_1,\ldots,b_t b 1 , … , b t from Lemma 6.6. For s ∈ [ 1 , d ] s\in[1,d] s ∈ [ 1 , d ] , let M s ∈ Z r s × r s M_s\in\mathbb{Z}^{r_s\times r_s} M s ∈ Z r s × r s be the matrix with rows and columns indexed by I s I_s I s and entry Hall i ( b j ) \operatorname{Hall}_i(b_j) Hall i ( b j ) in row i i i and column j j j .
Lemma 6.7. Every integer matrix M s M_s M s can be computed in polynomial time and is invertible over Q \mathbb{Q} Q .
Proof. Lemma 6.6 yields Hall i ( b j ) = 0 \operatorname{Hall}_i(b_j)=0 Hall i ( b j ) = 0 for all s ∈ [ 1 , d ] s\in[1,d] s ∈ [ 1 , d ] , i , j ∈ I s i,j\in I_s i , j ∈ I s with i < j i<j i < j and Hall i ( b i ) = e i ≠ 0 \operatorname{Hall}_i(b_i)=e_i\ne0 Hall i ( b i ) = e i = 0 . Thus M s M_s M s is lower triangular with non-zero diagonal entries and therefore invertible over Q \mathbb{Q} Q . By Lemmas 6.4 and 6.6, one can compute all integers Hall i ( b j ) \operatorname{Hall}_i(b_j) Hall i ( b j ) and hence all matrices M s M_s M s in polynomial time.
Lemma 6.8. One can compute in polynomial time polynomials S i ∈ Q [ x ˉ ] S_i\in\mathbb{Q}[\bar{x}] S i ∈ Q [ x ˉ ] of weighted degree at most ω i \omega_i ω i such that
S i ( z ˉ ) = Hall i ( b 1 z 1 ⋯ b t z t ) (21) S_i(\bar{z})=\operatorname{Hall}_i(b_1^{z_1}\cdots b_t^{z_t}) \tag*{(21)} S i ( z ˉ ) = Hall i ( b 1 z 1 ⋯ b t z t ) (21) for every z ˉ ∈ Z t \bar{z}\in\mathbb{Z}^t z ˉ ∈ Z t and i ∈ [ 1 , t ] i\in[1,t] i ∈ [ 1 , t ] .
Proof. The existence of the polynomials S i S_i S i satisfying (19) follows from [22 Theorem 6.5] . We verify the weighted degree bound for the polynomials S i S_i S i . For this, we use the Magnus embedding μ d , r \mu_{d,r} μ d , r .
Fix i ∈ [ 1 , t ] i\in[1,t] i ∈ [ 1 , t ] and let W i = { w ∈ { χ 1 , … , χ r } ∗ : 1 ≤ ∣ w ∣ ≤ ω i } W_i=\{w\in\{\chi_1,\ldots,\chi_r\}^*:1\le|w|\le\omega_i\} W i = { w ∈ { χ 1 , … , χ r } ∗ : 1 ≤ ∣ w ∣ ≤ ω i } . By [34 Corollary 6.13] , there are integers c i , w c_{i,w} c i , w for w ∈ W i w\in W_i w ∈ W i such that
Hall i ( g ) = ∑ w ∈ W i c i , w ⋅ [ w ] μ d , r ( g ) (22) \operatorname{Hall}_i(g)=\sum_{w\in W_i}c_{i,w}\cdot[w]_{\mu_{d,r}}(g) \tag*{(22)} Hall i ( g ) = w ∈ W i ∑ c i , w ⋅ [ w ] μ d , r ( g ) (22)
for every g ∈ N d , r g\in\mathcal{N}_{d,r} g ∈ N d , r . Reutenauer states this identity for the free group F r F_r F r . Since ω i ≤ d \omega_i\le d ω i ≤ d , both the Hall coordinates Hall i ( g ) \operatorname{Hall}_i(g) Hall i ( g ) and the coefficients [ w ] μ d , r ( g ) [w]_{\mu_{d,r}}(g) [ w ] μ d , r ( g ) depend only on the image of g g g in F r / γ d + 1 ( F r ) = N d , r F_r/\gamma_{d+1}(F_r)=\mathcal{N}_{d,r} F r / γ d + 1 ( F r ) = N d , r .
For j ∈ [ 1 , t ] j\in[1,t] j ∈ [ 1 , t ] let U j = μ d , r ( b j ) − 1 ∈ A d , r U_j=\mu_{d,r}(b_j)-1\in A_{d,r} U j = μ d , r ( b j ) − 1 ∈ A d , r . Since b j ∈ N j ⊆ N ω j ( N d , r ) b_j\in N_j\subseteq\mathcal{N}_{\omega_j}(\mathcal{N}_{d,r}) b j ∈ N j ⊆ N ω j ( N d , r ) , every monomial of U j U_j U j has length at least ω j \omega_j ω j [34 Lemma 6.10(iii)] . Consequently, U j q = 0 U_j^q=0 U j q = 0 whenever q ⋅ ω j > d q\cdot\omega_j>d q ⋅ ω j > d , and the finite binomial expansion gives for every z ∈ Z z\in\mathbb{Z} z ∈ Z
μ d , r ( b j z ) = ∑ q = 0 ⌊ d / ω j ⌋ ( z q ) U j q \mu_{d,r}(b_j^z)=\sum_{q=0}^{\lfloor d/\omega_j\rfloor}\binom{z}{q}U_j^q μ d , r ( b j z ) = q = 0 ∑ ⌊ d / ω j ⌋ ( q z ) U j q
Let w ∈ W i w \in W_i w ∈ W i . Expanding the product
μ d , r ( ∏ j = 1 t b j x j ) = ∏ j = 1 t μ d , r ( b j x j ) = ∏ j = 1 t ∑ q = 0 ⌊ d / ω j ⌋ ( x j q ) U j q \mu_{d,r}\left(\prod_{j=1}^{t} b_j^{x_j}\right)=\prod_{j=1}^{t}\mu_{d,r}\left(b_j^{x_j}\right)=\prod_{j=1}^{t}\sum_{q=0}^{\lfloor d/\omega_j\rfloor}\binom{x_j}{q}U_j^q μ d , r ( j = 1 ∏ t b j x j ) = j = 1 ∏ t μ d , r ( b j x j ) = j = 1 ∏ t q = 0 ∑ ⌊ d / ω j ⌋ ( q x j ) U j q
shows that [ w ] μ d , r ( b 1 x 1 ⋯ b t x t ) [w]\mu_{d,r}(b_1^{x_1}\cdots b_t^{x_t}) [ w ] μ d , r ( b 1 x 1 ⋯ b t x t ) is a polynomial F w ∈ Q [ x ‾ ] F_w \in\mathbb{Q}[\overline{x}] F w ∈ Q [ x ] . More precisely, it is a sum of terms of the form
( [ w ] ( U 1 q 1 ⋯ U t q t ) ) ∏ j = 1 t ( x j q j ) . (23) \left([w](U_1^{q_1}\cdots U_t^{q_t})\right)\prod_{j=1}^{t}\binom{x_j}{q_j}. \tag*{(23)} ( [ w ] ( U 1 q 1 ⋯ U t q t ) ) j = 1 ∏ t ( q j x j ) . (23)
where q ‾ = ( q 1 , … , q t ) ∈ N t \overline{q}=(q_1,\ldots,q_t)\in\mathbb{N}^t q = ( q 1 , … , q t ) ∈ N t . Every monomial of U 1 q 1 ⋯ U t q t U_1^{q_1}\cdots U_t^{q_t} U 1 q 1 ⋯ U t q t has length at least ∑ j = 1 t q j ω j \sum_{j=1}^{t}q_j\omega_j ∑ j = 1 t q j ω j . Hence the coefficient [ w ] ( U 1 q 1 ⋯ U t q t ) [w](U_1^{q_1}\cdots U_t^{q_t}) [ w ] ( U 1 q 1 ⋯ U t q t ) can be nonzero only if ∑ j = 1 t q j ω j ≤ ∣ w ∣ \sum_{j=1}^{t}q_j\omega_j\le|w| ∑ j = 1 t q j ω j ≤ ∣ w ∣ . Since x j x_j x j has weight ω j \omega_j ω j and ( x j q j ) \binom{x_j}{q_j} ( q j x j ) has ordinary degree q j q_j q j , a non-zero term of the form (21) has weighted degree ∑ j = 1 t q j ω j ≤ ∣ w ∣ \sum_{j=1}^{t}q_j\omega_j\le|w| ∑ j = 1 t q j ω j ≤ ∣ w ∣ . Thus F w F_w F w has weighted degree at most ∣ w ∣ |w| ∣ w ∣ .
Applying (20) to g = b 1 z 1 ⋯ b t z t g=b_1^{z_1}\cdots b_t^{z_t} g = b 1 z 1 ⋯ b t z t yields
S i ( z ‾ ) = Hall i ( b 1 z 1 ⋯ b t z t ) = ∑ w ∈ W i c i , w ⋅ F w ( z ‾ ) (24) S_i(\overline{z})=\operatorname{Hall}_i(b_1^{z_1}\cdots b_t^{z_t})=\sum_{w\in W_i}c_{i,w}\cdot F_w(\overline{z}) \tag*{(24)} S i ( z ) = Hall i ( b 1 z 1 ⋯ b t z t ) = w ∈ W i ∑ c i , w ⋅ F w ( z ) (24)
for every z ‾ ∈ Z t \overline{z}\in\mathbb{Z}^t z ∈ Z t . Since polynomials over Q \mathbb{Q} Q that agree on Z t \mathbb{Z}^t Z t are identical, this yields an identity in Q [ x ‾ ] \mathbb{Q}[\overline{x}] Q [ x ] . Every summand on the right-hand side of (22) has weighted degree at most ∣ w ∣ ≤ ω i |w|\le\omega_i ∣ w ∣ ≤ ω i . Therefore S i S_i S i has weighted degree at most ω i \omega_i ω i .
We finally show that every polynomial S i S_i S i can be computed in polynomial time. Fix an i ∈ [ 1 , t ] i\in[1,t] i ∈ [ 1 , t ] and consider the set D d , t = { δ ‾ ∈ N t : ∣ δ ‾ ∣ 1 ≤ d } D_{d,t}=\{\overline{\delta}\in\mathbb{N}^t:|\overline{\delta}|_1\le d\} D d , t = { δ ∈ N t : ∣ δ ∣ 1 ≤ d } . It consists of ( t + d d ) ≤ O ( t d ) = O ( m d 2 ) \binom{t+d}{d}\le O(t^d)=O(m^{d^2}) ( d t + d ) ≤ O ( t d ) = O ( m d 2 ) tuples. By [13 Corollary 2] the set D d , t D_{d,t} D d , t admits unique multivariate polynomial interpolation for polynomials in t t t variables and of degree at most d d d . To determine S i S_i S i , we compute in polynomial time Hall i ( b 1 δ 1 ⋯ b t δ t ) = S i ( δ ‾ ) \operatorname{Hall}_i(b_1^{\delta_1}\cdots b_t^{\delta_t})=S_i(\overline{\delta}) Hall i ( b 1 δ 1 ⋯ b t δ t ) = S i ( δ ) for every δ ‾ ∈ D d , t \overline{\delta}\in D_{d,t} δ ∈ D d , t using Lemmas 6.4 and 6.6 . Then S i S_i S i is the unique polynomial P P P in t t t variables and of degree at most d d d such that S i ( δ ‾ ) = P ( δ ‾ ) S_i(\overline{\delta})=P(\overline{\delta}) S i ( δ ) = P ( δ ) for all δ ‾ ∈ D d , t \overline{\delta}\in D_{d,t} δ ∈ D d , t . Since S i S_i S i has at most ( t + d d ) \binom{t+d}{d} ( d t + d ) monomials, we can write down for every δ ‾ ∈ D d , t \overline{\delta}\in D_{d,t} δ ∈ D d , t a linear equation in variables x α ‾ x_{\overline{\alpha}} x α for α ‾ ∈ D d , t \overline{\alpha}\in D_{d,t} α ∈ D d , t :
∑ α ‾ ∈ D d , t ( ∏ i = 1 t δ i α i ) ⋅ x α ‾ = S i ( δ ‾ ) . \sum_{\overline{\alpha}\in D_{d,t}}\left(\prod_{i=1}^{t}\delta_i^{\alpha_i}\right)\cdot x_{\overline{\alpha}}=S_i(\overline{\delta}). α ∈ D d , t ∑ ( i = 1 ∏ t δ i α i ) ⋅ x α = S i ( δ ) .
The matrix corresponding to this system of linear equations must be non-singular. Moreover, every matrix entry has bit length O ( d log d ) O(d\log d) O ( d log d ) and every right-hand side S i ( δ ‾ ) S_i(\overline{\delta}) S i ( δ ) also has polynomial bit length (since it has been computed in polynomial time). Hence, we can compute the unique solution of the system in polynomial time using Gaussian elimination [36 Theorem 3.3] , which yields all coefficients of S i S_i S i . ◀
Lemma 6.9. One can compute in polynomial time column vectors R ‾ s ∈ Q [ x ‾ < s ] r s \overline{R}_s\in\mathbb{Q}[\overline{x}_{<s}]^{r_s} R s ∈ Q [ x < s ] r s of weighted degree at most s s s such that
( S i ( x ‾ ) ) i ∈ I s = M s ⋅ x ‾ s + R ‾ s ( x ‾ < s ) . (25) \left(S_i(\overline{x})\right)_{i\in I_s}=M_s\cdot\overline{x}_s+\overline{R}_s(\overline{x}_{<s}). \tag*{(25)} ( S i ( x ) ) i ∈ I s = M s ⋅ x s + R s ( x < s ) . (25) Moreover, R ‾ s ( 0 ) = 0 \overline{R}_s(0)=0 R s ( 0 ) = 0 and R ‾ s ( Z ∣ I < s ∣ ) ⊆ Z r s \overline{R}_s(\mathbb{Z}^{|I_{<s}|})\subseteq\mathbb{Z}^{r_s} R s ( Z ∣ I < s ∣ ) ⊆ Z r s for every s ∈ [ 1 , d ] s\in[1,d] s ∈ [ 1 , d ] .
Proof. Fix s ∈ [ 1 , d ] s\in[1,d] s ∈ [ 1 , d ] and i ∈ I s i\in I_s i ∈ I s . Since the polynomial S i S_i S i has weighted degree at most s s s (Lemma 6.8) and every variable x j x_j x j has weight ω j ≥ 1 \omega_j\ge1 ω j ≥ 1 , a variable x j x_j x j with ω j > s \omega_j>s ω j > s cannot occur in S i S_i S i . If ω j = s \omega_j=s ω j = s then the only possible monomial containing x j x_j x j is x j x_j x j itself: a higher power or a product with another variable would result in a weighted degree greater than s s s . All remaining monomials involve only variables of weight less than s s s . Thus, we can write S i S_i S i as
S ‾ i ( x ‾ ) = ∑ j ∈ I s c i j x j + R i ( x ‾ < s ) \overline{S}_i(\overline{x})=\sum_{j\in I_s}c_{ij}x_j+R_i(\overline{x}_{<s}) S i ( x ) = j ∈ I s ∑ c ij x j + R i ( x < s )
for coefficients c i j ∈ Q c_{ij}\in\mathbb{Q} c ij ∈ Q (j ∈ I s j\in I_s j ∈ I s ) and a polynomial R i ∈ Q [ x ‾ < s ] R_i\in\mathbb{Q}[\overline{x}_{<s}] R i ∈ Q [ x < s ] of weighted degree at most s s s . Let R ‾ = ( R 1 , … , R t ) T \overline{R}=(R_1,\ldots,R_t)^{\mathsf{T}} R = ( R 1 , … , R t ) T .
We now determine the coefficients c i j c_{ij} c ij . All Hall coordinates of b 1 0 ⋯ b t 0 = 1 b_1^0\cdots b_t^0=1 b 1 0 ⋯ b t 0 = 1 are 0 0 0 , so S i ( 0 ‾ ) = 0 S_i(\overline{0})=0 S i ( 0 ) = 0 and hence R i ( 0 ‾ ) = 0 R_i(\overline{0})=0 R i ( 0 ) = 0 . In particular, R 1 = 0 R_1=0 R 1 = 0 . For j ∈ I s j\in I_s j ∈ I s , let e j ∈ Z t e_j\in\mathbb{Z}^t e j ∈ Z t be the j j j -th standard basis vector. Then c i j = S i ( e j ) = Hall i ( b j ) c_{ij}=S_i(e_j)=\operatorname{Hall}_i(b_j) c ij = S i ( e j ) = Hall i ( b j ) . In particular, c i j ∈ Z c_{ij}\in\mathbb{Z} c ij ∈ Z , and ( c i j ) i , j ∈ I s = M s (c_{ij})_{i,j\in I_s}=M_s ( c ij ) i , j ∈ I s = M s is the matrix from Lemma 6.7. This proves (23).
Finally, take an integer vector z ‾ = ( z 1 , … , z t ) ∈ Z t \overline{z}=(z_1,\ldots,z_t)\in\mathbb{Z}^t z = ( z 1 , … , z t ) ∈ Z t with z ‾ s = 0 ‾ \overline{z}_s=\overline{0} z s = 0 . Then (23) yields
R ‾ s ( z ‾ < s ) = ( Hall i ( ∏ j ∈ I < s b j z j ) ) i ∈ I s ∈ Z ∣ I s ∣ . \overline{R}_s(\overline{z}_{<s})=\left(\operatorname{Hall}_i\left(\prod_{j\in I_{<s}}b_j^{z_j}\right)\right)_{i\in I_s}\in\mathbb{Z}^{|I_s|}. R s ( z < s ) = Hall i j ∈ I < s ∏ b j z j i ∈ I s ∈ Z ∣ I s ∣ .
Hence, we have R ‾ s ( Z ∣ I < s ∣ ) ⊆ Z r s \overline{R}_s(\mathbb{Z}^{|I_{<s}|})\subseteq\mathbb{Z}^{r_s} R s ( Z ∣ I < s ∣ ) ⊆ Z r s . Once the polynomials S i S_i S i have been computed (Lemma 6.8), the equations (23) allow us to determine all vectors R ‾ s \overline{R}_s R s in polynomial time. ◀
Introduce now new commuting variables y ‾ = ( y 1 , … , y m ) \overline{y}=(y_1,\ldots,y_m) y = ( y 1 , … , y m ) and let
v ‾ = ( y 1 , … , y m , − 1 , 0 , … , 0 ) T ∈ Z [ y ‾ ] t . \overline{v}=(y_1,\ldots,y_m,-1,0,\ldots,0)^{\mathsf{T}}\in\mathbb{Z}[\overline{y}]^t. v = ( y 1 , … , y m , − 1 , 0 , … , 0 ) T ∈ Z [ y ] t .
For an integer vector y ‾ ∈ Z m \overline{y}\in\mathbb{Z}^m y ∈ Z m , this is the vector of Hall coordinates of a 1 y 1 ⋯ a m y m a r − 1 a_1^{y_1}\cdots a_m^{y_m}a_r^{-1} a 1 y 1 ⋯ a m y m a r − 1 . Note that v ‾ 1 = ( y 1 , … , y m , − 1 ) T \overline{v}_1=(y_1,\ldots,y_m,-1)^{\mathsf{T}} v 1 = ( y 1 , … , y m , − 1 ) T and v ‾ s = 0 ‾ T \overline{v}_s=\overline{0}^{\mathsf{T}} v s = 0 T for s ∈ [ 2 , d ] s\in[2,d] s ∈ [ 2 , d ] .
By induction on s ∈ [ 1 , d ] s\in[1,d] s ∈ [ 1 , d ] we define the column vector of polynomials Q ‾ = ( Q 1 , … , Q t ) T ∈ Q [ y ‾ ] t \overline{Q}=(Q_1,\ldots,Q_t)^{\mathsf{T}}\in\mathbb{Q}[\overline{y}]^t Q = ( Q 1 , … , Q t ) T ∈ Q [ y ] t as follows:
Q ‾ s = M s − 1 ⋅ ( v ‾ s − R ‾ s ( Q ‾ < s ) ) . (26) \overline{Q}_s=M_s^{-1}\cdot\left(\overline{v}_s-\overline{R}_s(\overline{Q}_{<s})\right). \tag*{(26)} Q s = M s − 1 ⋅ ( v s − R s ( Q < s ) ) . (26)
Lemma 6.10. The polynomials Q i Q_i Q i can be computed in polynomial time and satisfy deg Q i ≤ ω i \deg Q_i\leq\omega_i deg Q i ≤ ω i for i ∈ [ 1 , t ] i\in[1,t] i ∈ [ 1 , t ] . For every ϵ ‾ = ( ϵ 1 , … , ϵ m ) ∈ { 0 , 1 } m \overline{\epsilon}=(\epsilon_1,\ldots,\epsilon_m)\in\{0,1\}^m ϵ = ( ϵ 1 , … , ϵ m ) ∈ { 0 , 1 } m ,
g 1 ϵ 1 ⋯ g m ϵ m = h in H ⟺ ∀ i ∈ [ 1 , t ] : Q i ( ϵ ‾ ) ∈ Z . (27) g_1^{\epsilon_1}\cdots g_m^{\epsilon_m}=h\text{ in }H\quad\Longleftrightarrow\quad\forall i\in[1,t]:Q_i(\overline{\epsilon})\in\mathbb{Z}. \tag*{(27)} g 1 ϵ 1 ⋯ g m ϵ m = h in H ⟺ ∀ i ∈ [ 1 , t ] : Q i ( ϵ ) ∈ Z . (27)
Proof. The weighted degree bound s s s on the polynomials in R ‾ s \overline{R}_s R s implies inductively that all polynomials in Q ‾ s \overline{Q}_s Q s have ordinary degree at most s ≤ d s\leq d s ≤ d . Indeed, a monomial ∏ j ∈ I < s x j α j \prod_{j\in I_{<s}}x_j^{\alpha_j} ∏ j ∈ I < s x j α j of weighted degree at most s s s becomes ∏ j ∈ I < s Q j α j \prod_{j\in I_{<s}}Q_j^{\alpha_j} ∏ j ∈ I < s Q j α j of ordinary degree at most ∑ j ∈ I < s α j ⋅ ω j ≤ s \sum_{j\in I_{<s}}\alpha_j\cdot\omega_j\leq s ∑ j ∈ I < s α j ⋅ ω j ≤ s . The entries of v ‾ 1 \overline{v}_1 v 1 have degree at most one, v ‾ s = 0 ‾ \overline{v}_s=\overline{0} v s = 0 for s ≥ 2 s\geq2 s ≥ 2 and multiplication with the matrix M s − 1 M_s^{-1} M s − 1 does not change the degree.
By Lemmas 6.7 and 6.9, all M s M_s M s and R ‾ s \overline{R}_s R s are computable in polynomial time. All inverses M s − 1 M_s^{-1} M s − 1 can also be computed in polynomial time [36 Corollary 3.3a(iii)] . The d = O ( 1 ) d=O(1) d = O ( 1 ) rounds of substitution of Q ‾ < s \overline{Q}_{<s} Q < s into R ‾ s \overline{R}_s R s and multiplication by M s − 1 M_s^{-1} M s − 1 in (24) compute every Q ‾ s \overline{Q}_s Q s in polynomial time and preserve polynomial bit length of all coefficients. The degree bound ensures that each intermediate polynomial has only polynomially many monomials.
It remains to prove (25). Since v ‾ s = M s ⋅ Q ‾ s + R ‾ s ( Q ‾ < s ) = ( S i ( Q ‾ ) ) i ∈ I s \overline{v}_s=M_s\cdot\overline{Q}_s+\overline{R}_s(\overline{Q}_{<s})=(S_i(\overline{Q}))_{i\in I_s} v s = M s ⋅ Q s + R s ( Q < s ) = ( S i ( Q ) ) i ∈ I s for all s ∈ [ 1 , d ] s\in[1,d] s ∈ [ 1 , d ] , it follows that for every ϵ ‾ ∈ { 0 , 1 } m \overline{\epsilon}\in\{0,1\}^m ϵ ∈ { 0 , 1 } m , the vector Q ‾ ( ϵ ‾ ) ∈ Q t \overline{Q}(\overline{\epsilon})\in\mathbb{Q}^t Q ( ϵ ) ∈ Q t is the unique solution of the system ( S i ( x ‾ ) ) i ∈ [ 1 , t ] = v ‾ ( ϵ ‾ ) (S_i(\overline{x}))_{i\in[1,t]}=\overline{v}(\overline{\epsilon}) ( S i ( x ) ) i ∈ [ 1 , t ] = v ( ϵ ) (uniqueness follows from the fact that every M s M_s M s is invertible). If Q ‾ ( ϵ ‾ ) ∈ Z t \overline{Q}(\overline{\epsilon})\in\mathbb{Z}^t Q ( ϵ ) ∈ Z t then we obtain
b 1 Q 1 ( ϵ ‾ ) ⋯ b t Q t ( ϵ ‾ ) = a 1 ϵ 1 ⋯ a m ϵ m a r − 1 b_1^{Q_1(\overline{\epsilon})}\cdots b_t^{Q_t(\overline{\epsilon})}=a_1^{\epsilon_1}\cdots a_m^{\epsilon_m}a_r^{-1} b 1 Q 1 ( ϵ ) ⋯ b t Q t ( ϵ ) = a 1 ϵ 1 ⋯ a m ϵ m a r − 1
in N d , r \mathcal{N}_{d,r} N d , r . Since the left-hand side belongs to the kernel K K K , the same holds for the right-hand side, which yields g 1 ϵ 1 ⋯ g m ϵ m = h g_1^{\epsilon_1}\cdots g_m^{\epsilon_m}=h g 1 ϵ 1 ⋯ g m ϵ m = h in H H H . Conversely, if g 1 ϵ 1 ⋯ g m ϵ m = h g_1^{\epsilon_1}\cdots g_m^{\epsilon_m}=h g 1 ϵ 1 ⋯ g m ϵ m = h then a 1 ϵ 1 ⋯ a m ϵ m a r − 1 ∈ K a_1^{\epsilon_1}\cdots a_m^{\epsilon_m}a_r^{-1}\in K a 1 ϵ 1 ⋯ a m ϵ m a r − 1 ∈ K . Hence, Lemma 6.6 gives integers z 1 , … , z t ∈ Z z_1,\ldots,z_t\in\mathbb{Z} z 1 , … , z t ∈ Z with
b 1 z 1 ⋯ b t z t = a 1 ϵ 1 ⋯ a m ϵ m a r − 1 . b_1^{z_1}\cdots b_t^{z_t}=a_1^{\epsilon_1}\cdots a_m^{\epsilon_m}a_r^{-1}. b 1 z 1 ⋯ b t z t = a 1 ϵ 1 ⋯ a m ϵ m a r − 1 .
This yields an integer solution of the system ( S i ( x ‾ ) ) i ∈ [ 1 , t ] T = v ‾ ( ϵ ‾ ) (S_i(\overline{x}))^\mathsf{T}_{i\in[1,t]}=\overline{v}(\overline{\epsilon}) ( S i ( x ) ) i ∈ [ 1 , t ] T = v ( ϵ ) . Since this system has the unique solution Q ‾ ( ϵ ‾ ) \overline{Q}(\overline{\epsilon}) Q ( ϵ ) , we get Q ‾ ( ϵ ‾ ) ∈ Z t \overline{Q}(\overline{\epsilon})\in\mathbb{Z}^t Q ( ϵ ) ∈ Z t .
Let ρ = lcm { 1 , … , n } ∈ N \rho=\operatorname{lcm}\{1,\ldots,n\}\in\mathbb{N} ρ = lcm { 1 , … , n } ∈ N .
Lemma 6.11. For every s ∈ [ 1 , d ] s\in[1,d] s ∈ [ 1 , d ] , ρ ⋅ M s − 1 ∈ Z r s × r s \rho\cdot M_s^{-1}\in\mathbb{Z}^{r_s\times r_s} ρ ⋅ M s − 1 ∈ Z r s × r s .
Proof. Let s ∈ [ 1 , d ] s\in[1,d] s ∈ [ 1 , d ] . Recall that g ∈ N d , r g\in\mathcal{N}_{d,r} g ∈ N d , r belongs to γ s ( N d , r ) \gamma_s(\mathcal{N}_{d,r}) γ s ( N d , r ) if and only if Hall i ( g ) = 0 \operatorname{Hall}_i(g)=0 Hall i ( g ) = 0 for all i ∈ I < s i\in I_{<s} i ∈ I < s . Moreover, the cosets a i γ s + 1 ( N d , r ) a_i\gamma_{s+1}(\mathcal{N}_{d,r}) a i γ s + 1 ( N d , r ) with i ∈ I s i\in I_s i ∈ I s form a free abelian basis of the free abelian group γ s ( N d , r ) / γ s + 1 ( N d , r ) ≅ Z r s \gamma_s(\mathcal{N}_{d,r})/\gamma_{s+1}(\mathcal{N}_{d,r})\cong\mathbb{Z}^{r_s} γ s ( N d , r ) / γ s + 1 ( N d , r ) ≅ Z r s ; see [34 Corollary 6.16] . An isomorphism from γ s ( N d , r ) / γ s + 1 ( N d , r ) \gamma_s(\mathcal{N}_{d,r})/\gamma_{s+1}(\mathcal{N}_{d,r}) γ s ( N d , r ) / γ s + 1 ( N d , r ) to Z r s \mathbb{Z}^{r_s} Z r s is obtained by mapping g γ s + 1 ( N d , r ) g\gamma_{s+1}(\mathcal{N}_{d,r}) g γ s + 1 ( N d , r ) , for g ∈ γ s ( N d , r ) g\in\gamma_s(\mathcal{N}_{d,r}) g ∈ γ s ( N d , r ) , to ( Hall i ( g ) ) i ∈ I s T (\operatorname{Hall}_i(g))_{i\in I_s}^{\mathsf{T}} ( Hall i ( g ) ) i ∈ I s T [34 Corollary 6.16] .
We claim that under the corresponding projection from γ s ( N d , r ) \gamma_s(\mathcal{N}_{d,r}) γ s ( N d , r ) to Z r s \mathbb{Z}^{r_s} Z r s , the image of K ∩ γ s ( N d , r ) K\cap\gamma_s(\mathcal{N}_{d,r}) K ∩ γ s ( N d , r ) is the lattice M s Z r s M_s\mathbb{Z}^{r_s} M s Z r s . Let g ∈ K ∩ γ s ( N d , r ) g\in K\cap\gamma_s(\mathcal{N}_{d,r}) g ∈ K ∩ γ s ( N d , r ) have the factorization g = b 1 α 1 ⋯ b t α t g=b_1^{\alpha_1}\cdots b_t^{\alpha_t} g = b 1 α 1 ⋯ b t α t from Lemma 6.6, where α ‾ = ( α 1 , … , α t ) T ∈ Z t \overline{\alpha}=(\alpha_1,\ldots,\alpha_t)^\mathsf{T}\in\mathbb{Z}^t α = ( α 1 , … , α t ) T ∈ Z t . Then Hall i ( g ) = 0 \operatorname{Hall}_i(g)=0 Hall i ( g ) = 0 for i ∈ I < s i\in I_{<s} i ∈ I < s . Using (23), the invertibility of the matrices M 1 , … , M s − 1 M_1,\ldots,M_{s-1} M 1 , … , M s − 1 , and R ‾ ℓ ( 0 ) = 0 ‾ \overline{R}_\ell(0)=\overline{0} R ℓ ( 0 ) = 0 for every ℓ ∈ [ 1 , s − 1 ] \ell\in[1,s-1] ℓ ∈ [ 1 , s − 1 ] , we obtain successively α ‾ < s = 0 ‾ \overline{\alpha}_{<s}=\overline{0} α < s = 0 . Hence ( Hall i ( g ) ) i ∈ I s T = M s α ‾ s (\operatorname{Hall}_i(g))_{i\in I_s}^{\mathsf{T}}=M_s\overline{\alpha}_s ( Hall i ( g ) ) i ∈ I s T = M s α s by (23). Conversely, for every integer vector α ‾ s = ( α i ) i ∈ I s ∈ Z r s \overline{\alpha}_s=(\alpha_i)_{i\in I_s}\in\mathbb{Z}^{r_s} α s = ( α i ) i ∈ I s ∈ Z r s one has g = ∏ i ∈ I s b i α i ∈ K ∩ γ s ( N d , r ) g=\prod_{i\in I_s}b_i^{\alpha_i}\in K\cap\gamma_s(\mathcal{N}_{d,r}) g = ∏ i ∈ I s b i α i ∈ K ∩ γ s ( N d , r ) with ( Hall i ( g ) ) i ∈ I s T = M s α ‾ s (\operatorname{Hall}_i(g))_{i\in I_s}^{\mathsf{T}}=M_s\overline{\alpha}_s ( Hall i ( g ) ) i ∈ I s T = M s α s .
Since H ≤ Sym ( n ) H\leq\operatorname{Sym}(n) H ≤ Sym ( n ) , every element of H H H has order dividing ρ \rho ρ . Hence, for every i ∈ I s i\in I_s i ∈ I s , the element a i ρ a_i^\rho a i ρ belongs to K ∩ γ s ( N d , r ) K\cap\gamma_s(\mathcal{N}_{d,r}) K ∩ γ s ( N d , r ) . The vector ( Hall j ( a i ρ ) ) j ∈ I s (\operatorname{Hall}_j(a_i^\rho))_{j\in I_s} ( Hall j ( a i ρ ) ) j ∈ I s has entry ρ \rho ρ at i i i and zero elsewhere. Each of these vectors belongs to M s ⋅ Z r s M_s\cdot\mathbb{Z}^{r_s} M s ⋅ Z r s by the previous paragraph. It follows that ρ ⋅ Z r s ⊆ M s ⋅ Z r s \rho\cdot\mathbb{Z}^{r_s}\subseteq M_s\cdot\mathbb{Z}^{r_s} ρ ⋅ Z r s ⊆ M s ⋅ Z r s , i.e., ρ ⋅ M s − 1 ∈ Z r s × r s \rho\cdot M_s^{-1}\in\mathbb{Z}^{r_s\times r_s} ρ ⋅ M s − 1 ∈ Z r s × r s .
Define α 1 = 1 \alpha_1=1 α 1 = 1 and α s = 1 + d α s − 1 ∈ N \alpha_s=1+d\alpha_{s-1}\in\mathbb{N} α s = 1 + d α s − 1 ∈ N for s ∈ [ 2 , d ] s\in[2,d] s ∈ [ 2 , d ] and let β = d ! ρ ∈ N \beta=d!\rho\in\mathbb{N} β = d ! ρ ∈ N and q = β α d q=\beta^{\alpha_d} q = β α d . Note that α d \alpha_d α d only depends on d d d .
Lemma 6.12. For every s ∈ [ 1 , d ] s\in[1,d] s ∈ [ 1 , d ] , β α s ⋅ Q ‾ s ∈ Z [ y ‾ ] r s \beta^{\alpha_s}\cdot\overline{Q}_s\in\mathbb{Z}[\overline{y}]^{r_s} β α s ⋅ Q s ∈ Z [ y ] r s .
Proof. We first recall a fact about integer-valued polynomials. For ℓ ≥ 1 \ell\geq1 ℓ ≥ 1 , consider a polynomial P ∈ Q [ x 1 , … , x ℓ ] P\in\mathbb{Q}[x_1,\ldots,x_\ell] P ∈ Q [ x 1 , … , x ℓ ] of degree at most d d d such that P ( Z ℓ ) ⊆ Z P(\mathbb{Z}^\ell)\subseteq\mathbb{Z} P ( Z ℓ ) ⊆ Z . Then, P P P can be written as P = ∑ z ‾ ∈ C c z ‾ ∏ i = 1 ℓ ( x i z i ) P=\sum_{\overline{z}\in C}c_{\overline{z}}\prod_{i=1}^{\ell}\binom{x_i}{z_i} P = ∑ z ∈ C c z ∏ i = 1 ℓ ( z i x i ) where C = { z ‾ = ( z 1 , … , z ℓ ) ∈ N ℓ : ∑ j = 1 ℓ z j ≤ d } C=\{\overline{z}=(z_1,\ldots,z_\ell)\in\mathbb{N}^{\ell}:\sum_{j=1}^{\ell}z_j\leq d\} C = { z = ( z 1 , … , z ℓ ) ∈ N ℓ : ∑ j = 1 ℓ z j ≤ d } and c z ‾ ∈ Z c_{\overline{z}}\in\mathbb{Z} c z ∈ Z for all z ‾ ∈ C \overline{z}\in C z ∈ C ; see e.g. [8 Section 2.4] and [32 pp. 121–123] . Since ∏ i = 1 ℓ z i ! \prod_{i=1}^{\ell}z_i! ∏ i = 1 ℓ z i ! divides ( ∑ i = 1 ℓ z i ) ! (\sum_{i=1}^{\ell}z_i)! ( ∑ i = 1 ℓ z i )! (the quotient is a multinomial coefficient) it follows that d ! ⋅ P ∈ Z [ x 1 , … , x ℓ ] d!\cdot P\in\mathbb{Z}[x_1,\ldots,x_\ell] d ! ⋅ P ∈ Z [ x 1 , … , x ℓ ] .
Every polynomial R ‾ i \overline{R}_i R i with i ∈ I s i\in I_s i ∈ I s and s ∈ [ 1 , d ] s\in[1,d] s ∈ [ 1 , d ] has ordinary degree at most s ≤ d s\leq d s ≤ d , since every variable in x ‾ < s \overline{x}_{<s} x < s has weight at least one and R ‾ i \overline{R}_i R i has weighted degree at most s s s by Lemma 6.9. Applying the observation from the previous paragraph shows that d ! R ‾ s ∈ Z [ x ‾ < s ] r s d!\overline{R}_s\in\mathbb{Z}[\overline{x}_{<s}]^{r_s} d ! R s ∈ Z [ x < s ] r s . For s = 1 s=1 s = 1 , the conclusion follows directly from R ‾ 1 = 0 ‾ \overline{R}_1=\overline{0} R 1 = 0 .
We show β α s Q ‾ s ∈ Z [ y ‾ ] r s \beta^{\alpha_s}\overline{Q}_s\in\mathbb{Z}[\overline{y}]^{r_s} β α s Q s ∈ Z [ y ] r s by induction on s s s . We have Q ‾ 1 = M 1 − 1 ( y 1 , … , y m , − 1 ) T \overline{Q}_1=M_1^{-1}(y_1,\ldots,y_{m,-1})^\mathsf{T} Q 1 = M 1 − 1 ( y 1 , … , y m , − 1 ) T by (24) and R ‾ 1 = 0 ‾ \overline{R}_1=\overline{0} R 1 = 0 . By Lemma 6.11, ρ Q ‾ 1 ∈ Z [ y ‾ ] r \rho\overline{Q}_1\in\mathbb{Z}[\overline{y}]^r ρ Q 1 ∈ Z [ y ] r and hence β α 1 Q ‾ 1 ∈ Z [ y ‾ ] r \beta^{\alpha_1}\overline{Q}_1\in\mathbb{Z}[\overline{y}]^r β α 1 Q 1 ∈ Z [ y ] r . For s ∈ [ 2 , d ] s\in[2,d] s ∈ [ 2 , d ] , we have Q ‾ s = − M s − 1 ⋅ R ‾ s ( Q ‾ < s ) \overline{Q}_s=-M_s^{-1}\cdot\overline{R}_s(\overline{Q}_{<s}) Q s = − M s − 1 ⋅ R s ( Q < s ) by (24). Since the sequence ( α s ) s ∈ [ 1 , d ] (\alpha_s)_{s\in[1,d]} ( α s ) s ∈ [ 1 , d ] is increasing, the induction hypothesis shows β α s − 1 Q ‾ < s ∈ Z [ y ‾ ] r < s \beta^{\alpha_{s-1}}\overline{Q}_{<s}\in\mathbb{Z}[\overline{y}]^{r_{<s}} β α s − 1 Q < s ∈ Z [ y ] r < s . Each polynomial in R ‾ s \overline{R}_s R s has ordinary degree at most d d d , and d ! R ‾ s d!\overline{R}_s d ! R s has integer coefficients. Applying these facts to each monomial of R ‾ s ( Q ‾ < s ) \overline{R}_s(\overline{Q}_{<s}) R s ( Q < s ) gives d ! β d α s − 1 R ‾ s ( Q ‾ < s ) ∈ Z [ y ‾ ] r s d!\beta^{d\alpha_{s-1}}\overline{R}_s(\overline{Q}_{<s})\in\mathbb{Z}[\overline{y}]^{r_s} d ! β d α s − 1 R s ( Q < s ) ∈ Z [ y ] r s . Finally, with Lemma 6.11 we get β α s Q ‾ s = − ρ M s − 1 ⋅ d ! β d α s − 1 R ‾ s ( Q ‾ < s ) ∈ Z [ y ‾ ] r s \beta^{\alpha_s}\overline{Q}_s=-\rho M_s^{-1}\cdot d!\beta^{d\alpha_{s-1}}\overline{R}_s(\overline{Q}_{<s})\in\mathbb{Z}[\overline{y}]^{r_s} β α s Q s = − ρ M s − 1 ⋅ d ! β d α s − 1 R s ( Q < s ) ∈ Z [ y ] r s .
For a prime p p p , write v p ( q ) ≥ 0 v_p(q) \ge0 v p ( q ) ≥ 0 for the largest v ∈ N v \in\mathbb{N} v ∈ N such that p v p^v p v divides q q q .
Lemma 6.13. The integer q q q and its prime factorization can be computed in time poly ( n ) \operatorname{poly}(n) poly ( n ) . For every prime divisor p p p of q q q , p v p ( q ) ≤ poly ( n ) p^{v_p(q)} \le\operatorname{poly}(n) p v p ( q ) ≤ poly ( n ) and the number of prime divisors of q q q is also bounded by poly ( n ) \operatorname{poly}(n) poly ( n ) .
Proof. To factorize q = ( d ! ρ ) α d q=(d!\rho)^{\alpha_d} q = ( d ! ρ ) α d it suffices to factorize ρ \rho ρ and d ! d! d ! . The latter is a fixed constant. To factorize ρ = lcm { 1 , … , n } \rho=\operatorname{lcm}\{1,\ldots,n\} ρ = lcm { 1 , … , n } it suffices to factorize all numbers in [ 2 , n ] [2,n] [ 2 , n ] , which can be done in time poly ( n ) \operatorname{poly}(n) poly ( n ) . If p p p divides q q q then p v p ( q ) = p α d ( v p ( d ! ) + v p ( ρ ) ) ≤ ( d ! ) α d n α d = poly ( n ) p^{v_p(q)}=p^{\alpha_d(v_p(d!)+v_p(\rho))}\le(d!)^{\alpha_d}n^{\alpha_d}=\operatorname{poly}(n) p v p ( q ) = p α d ( v p ( d !) + v p ( ρ )) ≤ ( d ! ) α d n α d = poly ( n ) , since v p ( ρ ) ≤ n v_p(\rho)\le n v p ( ρ ) ≤ n , also when p > n p>n p > n . Since log ρ ≤ log ( n ! ) = poly ( n ) \log\rho\le\log(n!)=\operatorname{poly}(n) log ρ ≤ log ( n !) = poly ( n ) and α d \alpha_d α d only depends on d d d , q q q has polynomial bit length. This also shows that q q q can be computed in polynomial time using arithmetic on numbers of bit length poly ( n ) \operatorname{poly}(n) poly ( n ) . The number of distinct prime factors is bounded by log 2 q = poly ( n ) \log_2 q=\operatorname{poly}(n) log 2 q = poly ( n ) .
We can now conclude the proof of Lemma 6.3.
Proof of Lemma 6.3. Construct the kernel basis from Lemma 6.6 and the polynomials Q 1 , … , Q t Q_1,\ldots,Q_t Q 1 , … , Q t from Lemma 6.10 and set P i = q ⋅ Q i P_i=q\cdot Q_i P i = q ⋅ Q i for i ∈ [ 1 , t ] i\in[1,t] i ∈ [ 1 , t ] . By Lemma 6.12, P i ∈ Z [ y ] P_i\in\mathbb{Z}[y] P i ∈ Z [ y ] . Moreover, deg P i ≤ ω i ≤ d \deg P_i\le\omega_i\le d deg P i ≤ ω i ≤ d and t = O ( m d ) t=O(m^d) t = O ( m d ) . For every ϵ ˉ ∈ { 0 , 1 } m \bar{\epsilon}\in\{0,1\}^m ϵ ˉ ∈ { 0 , 1 } m , the condition P i ( ϵ ˉ ) ≡ 0 ( m o d q ) P_i(\bar{\epsilon})\equiv0\pmod q P i ( ϵ ˉ ) ≡ 0 ( mod q ) is equivalent to Q i ( ϵ ˉ ) ∈ Z Q_i(\bar{\epsilon})\in\mathbb{Z} Q i ( ϵ ˉ ) ∈ Z . Thus Lemma 6.10 proves (16). All constructions take polynomial time, and Lemma 6.13 provides the required factorization and prime-power bounds for q q q .
Proof of the main result on nilpotent permutation groups
Using Lemma 6.3 we can prove our main result for nilpotent permutation groups:
Theorem 6.14. For every fixed d ≥ 1 d\ge1 d ≥ 1 , there is an f p t \mathsf{fpt} fpt -reduction from p S S S [ N i l d P G ] \mathrm{pSSS}[\mathrm{Nil}_d\mathrm{PG}] pSSS [ Nil d PG ] to p S S S [ S o l 1 P G ] \mathrm{pSSS}[\mathrm{Sol}_1\mathrm{PG}] pSSS [ Sol 1 PG ] . Consequently, p S S S [ N i l d P G ] \mathrm{pSSS}[\mathrm{Nil}_d\mathrm{PG}] pSSS [ Nil d PG ] belongs to W [ 2 ] \mathrm{W}[2] W [ 2 ] .
Proof. The case d = 1 d=1 d = 1 is trivial since p S S S [ N i l 1 P G ] \mathrm{pSSS}[\mathrm{Nil}_1\mathrm{PG}] pSSS [ Nil 1 PG ] and p S S S [ S o l 1 P G ] \mathrm{pSSS}[\mathrm{Sol}_1\mathrm{PG}] pSSS [ Sol 1 PG ] are the same problem. Assume now d ≥ 2 d\ge2 d ≥ 2 . Consider an instance consisting of g 1 , … , g m , h ∈ Sym ( n ) g_1,\ldots,g_m,h\in\operatorname{Sym}(n) g 1 , … , g m , h ∈ Sym ( n ) with G : = ⟨ g 1 , … , g m ⟩ G:=\langle g_1,\ldots,g_m\rangle G := ⟨ g 1 , … , g m ⟩ d d d -step nilpotent and parameter k ∈ [ 1 , m ] k\in[1,m] k ∈ [ 1 , m ] . W.l.o.g. we can assume that h ∈ G h\in G h ∈ G . Compute t , q ≥ 1 t,q\ge1 t , q ≥ 1 and P 1 , … , P t ∈ Z [ y 1 , … , y m ] P_1,\ldots,P_t\in\mathbb{Z}[y_1,\ldots,y_m] P 1 , … , P t ∈ Z [ y 1 , … , y m ] as in Lemma 6.3.
Let A = ( Z / q Z ) t A=(\mathbb{Z}/q\mathbb{Z})^t A = ( Z / q Z ) t , written additively. Replace in every P i P_i P i all non-zero exponents of variables y j y_j y j by 1. This neither changes values on { 0 , 1 } m \{0,1\}^m { 0 , 1 } m nor increases the degree. After reducing coefficients modulo q q q , write
( P 1 ( y ˉ ) , … , P t ( y ˉ ) ) = ∑ S ⊆ [ 1 , m ] ∣ S ∣ ≤ d v S ∏ i ∈ S y i with v S ∈ A . (28) (P_1(\bar{y}),\ldots,P_t(\bar{y}))=\sum_{\substack{S\subseteq[1,m]\\|S|\le d}}v_S\prod_{i\in S}y_i\quad\text{with }v_S\in A. \tag*{(28)} ( P 1 ( y ˉ ) , … , P t ( y ˉ )) = S ⊆ [ 1 , m ] ∣ S ∣ ≤ d ∑ v S i ∈ S ∏ y i with v S ∈ A . (28)
Let u = − v ∅ ∈ A u=-v_{\varnothing}\in A u = − v ∅ ∈ A . For a set I ⊆ [ 1 , m ] I\subseteq[1,m] I ⊆ [ 1 , m ] of size k k k , the equivalence (16) and (26) show that ∏ i ∈ I g i = h \prod_{i\in I}g_i=h ∏ i ∈ I g i = h , where the product is taken in increasing order of i i i , if and only if
∑ ∅ ≠ S ⊆ I ∣ S ∣ ≤ d v S = u . (29) \sum_{\substack{\varnothing\ne S\subseteq I\\|S|\le d}}v_S=u. \tag*{(29)} ∅ = S ⊆ I ∣ S ∣ ≤ d ∑ v S = u . (29)
Let T = { P ⊆ [ 1 , k ] : 1 ≤ ∣ P ∣ ≤ d } \mathcal{T}=\{P\subseteq[1,k]:1\le|P|\le d\} T = { P ⊆ [ 1 , k ] : 1 ≤ ∣ P ∣ ≤ d } and ℓ = ∣ T ∣ = ∑ s = 1 min { d , k } ( k s ) ≤ k d + 1 \ell=|\mathcal{T}|=\sum_{s=1}^{\min\{d,k\}}\binom{k}{s}\le k^{d+1} ℓ = ∣ T ∣ = ∑ s = 1 m i n { d , k } ( s k ) ≤ k d + 1 . The sets in T \mathcal{T} T will be called types. Let E = { ( P , p ) : P ∈ T , ∣ P ∣ ≥ 2 , p ∈ P } \mathcal{E}=\{(P,p):P\in\mathcal{T},\ |P|\ge2,\ p\in P\} E = {( P , p ) : P ∈ T , ∣ P ∣ ≥ 2 , p ∈ P } . We construct an instance of p S S S [ S o l 1 P G ] \mathrm{pSSS}[\mathrm{Sol}_1\mathrm{PG}] pSSS [ Sol 1 PG ] over the abelian group
A ′ = A × ( Z / ( ℓ + 1 ) Z ) T × ( Z / ( m + 1 ) Z ) E (30) A'=A\times\left(\mathbb{Z}/(\ell+1)\mathbb{Z}\right)^{\mathcal{T}}\times\left(\mathbb{Z}/(m+1)\mathbb{Z}\right)^{\mathcal{E}} \tag*{(30)} A ′ = A × ( Z / ( ℓ + 1 ) Z ) T × ( Z / ( m + 1 ) Z ) E (30)
with target ( u , 1 ‾ , 0 ‾ ) ∈ A ′ (u,\overline{1},\overline{0}) \in A' ( u , 1 , 0 ) ∈ A ′ and parameter ℓ \ell ℓ . Here 1 ‾ \overline{1} 1 has entry 1 1 1 at each coordinate from T \mathcal{T} T , and 0 ‾ \overline{0} 0 is zero at each coordinate from E \mathcal{E} E .
For each P ∈ T P \in\mathcal{T} P ∈ T and each injective function ι : P → [ 1 , m ] \iota:P \to[1,m] ι : P → [ 1 , m ] produce one output element a [ P , ι ] ∈ A ′ a[P,\iota] \in A' a [ P , ι ] ∈ A ′ . It is defined as a [ P , ι ] = ( v ι ( P ) , T , E ) a[P,\iota] = (v_{\iota(P)},T,E) a [ P , ι ] = ( v ι ( P ) , T , E ) , where v ι ( P ) ∈ A v_{\iota(P)} \in A v ι ( P ) ∈ A is from (26) and the mappings T : T → Z / ( ℓ + 1 ) Z T:\mathcal{T} \to\mathbb{Z}/(\ell+1)\mathbb{Z} T : T → Z / ( ℓ + 1 ) Z and E : E → Z / ( m + 1 ) Z E:\mathcal{E} \to\mathbb{Z}/(m+1)\mathbb{Z} E : E → Z / ( m + 1 ) Z are defined as follows:
T ( P ) = 1 T(P)=1 T ( P ) = 1 and T ( P ′ ) = 0 T(P')=0 T ( P ′ ) = 0 for all P ′ ∈ T ∖ { P } P' \in\mathcal{T}\setminus\{P\} P ′ ∈ T ∖ { P } .
If P = { p } P=\{p\} P = { p } is a singleton then E ( P ′ , p ) = ι ( p ) E(P',p)=\iota(p) E ( P ′ , p ) = ι ( p ) for every P ′ ∈ T P' \in\mathcal{T} P ′ ∈ T with ∣ P ′ ∣ ≥ 2 |P'|\ge2 ∣ P ′ ∣ ≥ 2 and p ∈ P ′ p \in P' p ∈ P ′ . If ∣ P ∣ ≥ 2 |P|\ge2 ∣ P ∣ ≥ 2 then E ( P , p ) = − ι ( p ) E(P,p)=-\iota(p) E ( P , p ) = − ι ( p ) for every p ∈ P p \in P p ∈ P . All other values of E E E are 0 0 0 .
The order among the elements a [ P , ι ] a[P,\iota] a [ P , ι ] in the output list is arbitrary since A ′ A' A ′ is abelian.
Suppose that a subset S S S of ℓ \ell ℓ output elements a [ P , ι ] a[P,\iota] a [ P , ι ] has sum ( u , 1 ‾ , 0 ‾ ) ∈ A ′ (u,\overline{1},\overline{0}) \in A' ( u , 1 , 0 ) ∈ A ′ . The ( Z / ( ℓ + 1 ) Z ) T (\mathbb{Z}/(\ell+1)\mathbb{Z})^{\mathcal{T}} ( Z / ( ℓ + 1 ) Z ) T -component enforces that for every type P P P , the set S S S contains exactly one element of the form a [ P , ι P ] a[P,\iota_P] a [ P , ι P ] , i.e., S = { a [ P , ι P ] : P ∈ T } S=\{a[P,\iota_P]:P\in\mathcal{T}\} S = { a [ P , ι P ] : P ∈ T } . For a type P ∈ T P\in\mathcal{T} P ∈ T with ∣ P ∣ ≥ 2 |P|\ge2 ∣ P ∣ ≥ 2 and p ∈ P p\in P p ∈ P , the coordinate ( P , p ) (P,p) ( P , p ) of ( Z / ( m + 1 ) Z ) E (\mathbb{Z}/(m+1)\mathbb{Z})^{\mathcal{E}} ( Z / ( m + 1 ) Z ) E forces ι { p } ( p ) − ι P ( p ) ≡ 0 ( m o d m + 1 ) \iota_{\{p\}}(p)-\iota_P(p)\equiv0\pmod{m+1} ι { p } ( p ) − ι P ( p ) ≡ 0 ( mod m + 1 ) . Since both indices belong to [ 1 , m ] [1,m] [ 1 , m ] , this implies
ι { p } ( p ) = ι P ( p ) . (31) \iota_{\{p\}}(p)=\iota_P(p). \tag*{(31)} ι { p } ( p ) = ι P ( p ) . (31)
Define ι : [ 1 , k ] → [ 1 , m ] \iota:[1,k]\to[1,m] ι : [ 1 , k ] → [ 1 , m ] by ι ( p ) = ι { p } ( p ) \iota(p)=\iota_{\{p\}}(p) ι ( p ) = ι { p } ( p ) for p ∈ [ 1 , k ] p\in[1,k] p ∈ [ 1 , k ] . Equality (29) implies ι P = ι ∣ P \iota_P=\iota|_P ι P = ι ∣ P for every P ∈ T P\in\mathcal{T} P ∈ T . If k ≥ 2 k\ge2 k ≥ 2 then { p , p ′ } ∈ T \{p,p'\}\in\mathcal{T} { p , p ′ } ∈ T for all distinct p , p ′ ∈ [ 1 , k ] p,p'\in[1,k] p , p ′ ∈ [ 1 , k ] , since d ≥ 2 d\ge2 d ≥ 2 . Injectivity of ι { p , p ′ } \iota_{\{p,p'\}} ι { p , p ′ } therefore gives ι ( p ) ≠ ι ( p ′ ) \iota(p)\ne\iota(p') ι ( p ) = ι ( p ′ ) . For k = 1 k=1 k = 1 , the map ι \iota ι is injective as well. Hence I = ι ( [ 1 , k ] ) ⊆ [ 1 , m ] I=\iota([1,k])\subseteq[1,m] I = ι ([ 1 , k ]) ⊆ [ 1 , m ] has size k k k . As P P P ranges over T \mathcal{T} T , the sets ι ( P ) \iota(P) ι ( P ) run repetition-free through all nonempty subsets of I I I of size at most d d d . Thus the A A A -components v ι ( P ) v_{\iota(P)} v ι ( P ) of the elements a [ P , ι P ] a[P,\iota_P] a [ P , ι P ] sum to the left-hand side of (27). On the other hand, the sum of all a [ P , ι P ] a[P,\iota_P] a [ P , ι P ] ( P ∈ T ) (P\in\mathcal{T}) ( P ∈ T ) is the target ( u , 1 ‾ , 0 ‾ ) (u,\overline{1},\overline{0}) ( u , 1 , 0 ) . Hence, (27) holds, and therefore ∏ i ∈ I g i = h \prod_{i\in I}g_i=h ∏ i ∈ I g i = h .
Conversely, let I ⊆ [ 1 , m ] I\subseteq[1,m] I ⊆ [ 1 , m ] be such that ∣ I ∣ = k |I|=k ∣ I ∣ = k and ∏ i ∈ I g i = h \prod_{i\in I}g_i=h ∏ i ∈ I g i = h holds. This implies that (27) holds. Choose a bijection ι : [ 1 , k ] → I \iota:[1,k]\to I ι : [ 1 , k ] → I . Let S = { a [ P , ι ∣ P ] : P ∈ T } S=\{a[P,\iota|_P]:P\in\mathcal{T}\} S = { a [ P , ι ∣ P ] : P ∈ T } . We have ∣ S ∣ = ℓ |S|=\ell ∣ S ∣ = ℓ . Moreover, the ( Z / ( ℓ + 1 ) Z ) T (\mathbb{Z}/(\ell+1)\mathbb{Z})^{\mathcal{T}} ( Z / ( ℓ + 1 ) Z ) T -components in S S S sum to 1 ‾ \overline{1} 1 . At each coordinate ( P , p ) ∈ E (P,p)\in\mathcal{E} ( P , p ) ∈ E of ( Z / ( m + 1 ) Z ) E (\mathbb{Z}/(m+1)\mathbb{Z})^{\mathcal{E}} ( Z / ( m + 1 ) Z ) E (note that ∣ P ∣ ≥ 2 |P|\ge2 ∣ P ∣ ≥ 2 and p ∈ P p\in P p ∈ P ), the element a [ { p } , ι ∣ { p } ] a[\{p\},\iota|_{\{p\}}] a [{ p } , ι ∣ { p } ] contributes ι ( p ) \iota(p) ι ( p ) , the element a [ P , ι ∣ P ] a[P,\iota|_P] a [ P , ι ∣ P ] contributes − ι ( p ) -\iota(p) − ι ( p ) , and all other elements in S S S contribute zero. Hence the ( Z / ( m + 1 ) Z ) E (\mathbb{Z}/(m+1)\mathbb{Z})^{\mathcal{E}} ( Z / ( m + 1 ) Z ) E -components in S S S sum to 0 ‾ \overline{0} 0 . Finally, the A A A -components in S S S sum to u u u by (27), since the mapping P ↦ ι ( P ) P\mapsto\iota(P) P ↦ ι ( P ) ( P ∈ T ) (P\in\mathcal{T}) ( P ∈ T ) enumerates all nonempty subsets of I I I of size at most d d d without repetitions. This proves the correctness of our reduction.
It remains to realize the group A ′ A' A ′ as a permutation group on a small domain. Let q = p 1 ν 1 ⋯ p λ ν λ q=p_1^{\nu_1}\cdots p_\lambda^{\nu_\lambda} q = p 1 ν 1 ⋯ p λ ν λ be the prime factorization of q q q . The Chinese remainder theorem identifies Z / q Z \mathbb{Z}/q\mathbb{Z} Z / q Z with ∏ i = 1 λ Z / p i ν i Z \prod_{i=1}^{\lambda}\mathbb{Z}/p_i^{\nu_i}\mathbb{Z} ∏ i = 1 λ Z / p i ν i Z .
A cyclic group Z / a Z \mathbb{Z}/a\mathbb{Z} Z / a Z can be represented as a cyclic subgroup of Sym ( a ) \operatorname{Sym}(a) Sym ( a ) . Moreover, the direct product G × H G\times H G × H of permutation groups G ≤ Sym ( a ) G\leq\operatorname{Sym}(a) G ≤ Sym ( a ) and H ≤ Sym ( b ) H\leq\operatorname{Sym}(b) H ≤ Sym ( b ) can be represented as a subgroup of Sym ( a + b ) \operatorname{Sym}(a+b) Sym ( a + b ) . Hence, our abelian group A ′ A' A ′ can be represented as a permutation group on a domain of size
n ′ : = t ∑ i = 1 λ p i ν i + ℓ ( ℓ + 1 ) + ∣ E ∣ ( m + 1 ) . (32) n' := t\sum_{i=1}^{\lambda}p_i^{\nu_i}+\ell(\ell+1)+|\mathcal{E}|(m+1). \tag*{(32)} n ′ := t i = 1 ∑ λ p i ν i + ℓ ( ℓ + 1 ) + ∣ E ∣ ( m + 1 ) . (32)
The output elements a [ P , ι ] ∈ A ′ a[P,\iota]\in A' a [ P , ι ] ∈ A ′ as well as the target ( u , 1 ‾ , 0 ‾ ) (u,\overline{1},\overline{0}) ( u , 1 , 0 ) can be realized as elements of Sym ( n ′ ) \operatorname{Sym}(n') Sym ( n ′ ) . By Lemma 6.3, t = poly ( m ) t=\operatorname{poly}(m) t = poly ( m ) , λ = poly ( n ) \lambda=\operatorname{poly}(n) λ = poly ( n ) , and p i ν i = poly ( n ) p_i^{\nu_i}=\operatorname{poly}(n) p i ν i = poly ( n ) for all i ∈ [ 1 , λ ] i\in[1,\lambda] i ∈ [ 1 , λ ] . Recall that ℓ = ∣ T ∣ ≤ k d + 1 = poly ( k ) \ell=|\mathcal{T}|\leq k^{d+1}=\operatorname{poly}(k) ℓ = ∣ T ∣ ≤ k d + 1 = poly ( k ) and hence ∣ E ∣ ≤ d ℓ = poly ( k ) |\mathcal{E}|\leq d\ell=\operatorname{poly}(k) ∣ E ∣ ≤ d ℓ = poly ( k ) . With (30) we obtain n ′ = poly ( k , m , n ) n'=\operatorname{poly}(k,m,n) n ′ = poly ( k , m , n ) .
For each type P ∈ T P\in\mathcal{T} P ∈ T , there are at most m ∣ P ∣ ≤ m d m^{|P|}\leq m^d m ∣ P ∣ ≤ m d injective functions ι : P → [ 1 , m ] \iota:P\to[1,m] ι : P → [ 1 , m ] , so the number of output elements is at most ℓ m d = poly ( m , k ) \ell m^d=\operatorname{poly}(m,k) ℓ m d = poly ( m , k ) . Therefore all output permutations can be produced in time poly ( m , n , k ) \operatorname{poly}(m,n,k) poly ( m , n , k ) . The output parameter ℓ \ell ℓ depends only on d d d (fixed) and k k k (the parameter of the input instance). This shows that our reduction is an fpt-reduction. Finally, Theorem 5.6 with d = 1 d=1 d = 1 yields membership in W[2 ] .
Lemmas 3.3 and 3.4 show that for every d ≥ 1 d \ge1 d ≥ 1 the problems pSSS≤ _{\leq} ≤ [Nild _d d PG], pF≤ _{\leq} ≤ [Nild _d d PG] and pF[Nild _d d PG] belong to W[2 ] as well.
Theorem 6.14 states that for every fixed d d d , pSSS[Nild _d d PG] is in W[2 ] . Whether pSSS for the class of all nilpotent permutation groups is in W[2 ] remains open.
W[2]-hardness for nilpotent permutation groups
Let pF≤ _{\leq} ≤ [NilPG] be the restriction of the problem pF≤ _{\leq} ≤ [Sym(∗ * ∗ )], where the input permutations g 1 , … , g m g_1,\ldots,g_m g 1 , … , g m generate a nilpotent permutation group; the problems pF[NilPG], pSSS≤ _{\leq} ≤ [NilPG] and pSSS[NilPG] are defined analogously. We prove that pF≤ _{\leq} ≤ [NilPG] is W[2 ] -hard by a reduction from parameterized Set Cover.
Fix an integer k ≥ 1 k \ge1 k ≥ 1 and let q = 2 k + 1 q=2^{k+1} q = 2 k + 1 . We consider Sym([0, q − 1 q-1 q − 1 ]), where [0, q − 1 q-1 q − 1 ] is identified with Z / q Z \mathbb{Z}/q\mathbb{Z} Z / q Z , and define two permutations r , s ∈ Sym ( [ 0 , q − 1 ] ) r,s \in\operatorname{Sym}([0,q-1]) r , s ∈ Sym ([ 0 , q − 1 ]) by x r = x + 1 x^r=x+1 x r = x + 1 and x s = − x x^s=-x x s = − x for x ∈ Z / q Z x \in\mathbb{Z}/q\mathbb{Z} x ∈ Z / q Z . Let D q = ⟨ r , s ⟩ ≤ Sym ( [ 0 , q − 1 ] ) D_q=\langle r,s\rangle\leq\operatorname{Sym}([0,q-1]) D q = ⟨ r , s ⟩ ≤ Sym ([ 0 , q − 1 ]) be the dihedral group for a regular q q q -gon. Then r q = s 2 = 1 r^q=s^2=1 r q = s 2 = 1 and s − 1 r s = r − 1 s^{-1}rs=r^{-1} s − 1 r s = r − 1 . The 2 q 2q 2 q maps r i s ϵ r^i s^\epsilon r i s ϵ with i ∈ [ 0 , q − 1 ] i \in[0,q-1] i ∈ [ 0 , q − 1 ] and ϵ ∈ { 0 , 1 } \epsilon\in\{0,1\} ϵ ∈ { 0 , 1 } are distinct and comprise D q D_q D q . Thus D q D_q D q is a 2-group of order 2 q = 2 k + 2 2q=2^{k+2} 2 q = 2 k + 2 , represented as a permutation group on q = 2 k + 1 q=2^{k+1} q = 2 k + 1 points.
The following lemma specializes the commutator construction for conjunctions used by Weiß in the proof of Proposition 8 of [38 ] . The technique goes back to Barrington [3 ] and is also developed in [4 ] . Here the dihedral group depends on k k k , and we give the proof to obtain the explicit length and output element needed in the proof of Theorem 7.2 .
Lemma 7.1. Given k ≥ 1 k \ge1 k ≥ 1 , one can construct, in time depending only on k k k , a sequence ( k i , g i , 0 , g i , 1 ) i = 1 ℓ (k_i,g_{i,0},g_{i,1})_{i=1}^{\ell} ( k i , g i , 0 , g i , 1 ) i = 1 ℓ with ℓ = 3 ⋅ 2 k − 2 ∈ N \ell=3\cdot2^k-2 \in\mathbb{N} ℓ = 3 ⋅ 2 k − 2 ∈ N , k i ∈ [ 1 , k ] k_i \in[1,k] k i ∈ [ 1 , k ] , and g i , 0 , g i , 1 ∈ D q g_{i,0},g_{i,1} \in D_q g i , 0 , g i , 1 ∈ D q for i ∈ [ 1 , ℓ ] i \in[1,\ell] i ∈ [ 1 , ℓ ] , such that for every x ˉ = ( x 1 , … , x k ) ∈ { 0 , 1 } k \bar{x}=(x_1,\ldots,x_k)\in\{0,1\}^k x ˉ = ( x 1 , … , x k ) ∈ { 0 , 1 } k the following holds in D q D_q D q :
∏ i = 1 ℓ g i , x k i = { r 2 k if x 1 = ⋯ = x k = 0 , 1 otherwise. (33) \prod_{i=1}^{\ell} g_{i,x_{k_i}} =
\begin{cases}
r^{2^k} & \text{if } x_1=\cdots=x_k=0,\\
1 & \text{otherwise.}
\end{cases} \tag*{(33)} i = 1 ∏ ℓ g i , x k i = { r 2 k 1 if x 1 = ⋯ = x k = 0 , otherwise. (33)
Proof. For z ∈ Z z \in\mathbb{Z} z ∈ Z and ϵ ∈ { 0 , 1 } \epsilon\in\{0,1\} ϵ ∈ { 0 , 1 } one easily shows [ r z , s ϵ ] = r − 2 z ϵ [r^z,s^\epsilon]=r^{-2z\epsilon} [ r z , s ϵ ] = r − 2 z ϵ in D q D_q D q . Define maps C j : { 0 , 1 } k → D q C_j:\{0,1\}^k\to D_q C j : { 0 , 1 } k → D q for j ∈ [ 0 , k ] j\in[0,k] j ∈ [ 0 , k ] recursively by C 0 ( x ˉ ) = r C_0(\bar{x})=r C 0 ( x ˉ ) = r and C j ( x ˉ ) = [ C j − 1 ( x ˉ ) , s 1 − x j ] C_j(\bar{x})=[C_{j-1}(\bar{x}),s^{1-x_j}] C j ( x ˉ ) = [ C j − 1 ( x ˉ ) , s 1 − x j ] for j ∈ [ 1 , k ] j\in[1,k] j ∈ [ 1 , k ] . Induction gives
C j ( x ˉ ) = r ( − 2 ) j ∏ p = 1 j ( 1 − x p ) ( j ∈ [ 0 , k ] , x ˉ ∈ { 0 , 1 } k ) . (34) C_j(\bar{x})=r^{(-2)^j\prod_{p=1}^{j}(1-x_p)}
\qquad(j\in[0,k],\ \bar{x}\in\{0,1\}^k). \tag*{(34)} C j ( x ˉ ) = r ( − 2 ) j ∏ p = 1 j ( 1 − x p ) ( j ∈ [ 0 , k ] , x ˉ ∈ { 0 , 1 } k ) . (34)
Since r r r has order 2 k + 1 2^{k+1} 2 k + 1 , its powers r ( − 2 ) k r^{(-2)^k} r ( − 2 ) k and r 2 k r^{2^k} r 2 k coincide and are not the identity. Hence (32) with j = k j=k j = k gives the two values required in (31).
We then expand the nested commutator C j C_j C j into a word w j w_j w j , where every symbol is r r r , r − 1 r^{-1} r − 1 , s 1 − x i s^{1-x_i} s 1 − x i , or s x i − 1 s^{x_i-1} s x i − 1 for some i ∈ [ 1 , k ] i\in[1,k] i ∈ [ 1 , k ] . The length ℓ j = ∣ w j ∣ \ell_j=|w_j| ℓ j = ∣ w j ∣ satisfies ℓ 0 = 1 \ell_0=1 ℓ 0 = 1 and ℓ j = 2 ℓ j − 1 + 2 \ell_j=2\ell_{j-1}+2 ℓ j = 2 ℓ j − 1 + 2 for j ∈ [ 1 , k ] j\in[1,k] j ∈ [ 1 , k ] . Thus ℓ : = ℓ k = 3 ⋅ 2 k − 2 \ell:=\ell_k=3\cdot2^k-2 ℓ := ℓ k = 3 ⋅ 2 k − 2 . To obtain the sequence ( k i , g i , 0 , g i , 1 ) i = 1 ℓ (k_i,g_{i,0},g_{i,1})_{i=1}^{\ell} ( k i , g i , 0 , g i , 1 ) i = 1 ℓ we replace the i i i -th symbol a i a_i a i in w k w_k w k as follows: If a i = r ± 1 a_i=r^{\pm1} a i = r ± 1 , then a i a_i a i is replaced by ( 1 , a i , a i ) (1,a_i,a_i) ( 1 , a i , a i ) . If a i = s 1 − x j a_i=s^{1-x_j} a i = s 1 − x j then a i a_i a i is replaced by ( j , s , 1 ) (j,s,1) ( j , s , 1 ) and if a i = s x j − 1 a_i=s^{x_j-1} a i = s x j − 1 then a i a_i a i is replaced by ( j , s − 1 , 1 ) (j,s^{-1},1) ( j , s − 1 , 1 ) .
Theorem 7.2. The problem pF≤ _{\leq} ≤ [NilPG] is W[2 ] -hard, already when the input groups are permutation 2-groups.
Proof. We prove the theorem by a reduction from parameterized Set Cover. An instance of parameterized Set Cover consists of a finite universe U ≠ ∅ U \ne\emptyset U = ∅ , sets S 1 , … , S m ⊆ U S_1,\ldots,S_m \subseteq U S 1 , … , S m ⊆ U with m ≥ 1 m \ge1 m ≥ 1 and a parameter k ∈ [ 1 , m ] k \in[1,m] k ∈ [ 1 , m ] . The question is whether there is a subset I ⊆ [ 1 , m ] I \subseteq[1,m] I ⊆ [ 1 , m ] with ∣ I ∣ ≤ k |I| \le k ∣ I ∣ ≤ k and U = ⋃ i ∈ I S i U = \bigcup_{i \in I} S_i U = ⋃ i ∈ I S i . This problem is W[2 ] -hard [14 ] .
Fix the parameterized Set Cover instance U , S 1 , … , S m , k U,S_1,\ldots,S_m,k U , S 1 , … , S m , k . W.l.o.g. we can assume that m ≥ 2 m \ge2 m ≥ 2 . Clearly, the instance U , S 1 , … , S m , k U,S_1,\ldots,S_m,k U , S 1 , … , S m , k is positive if and only if there are indices i 1 , … , i k ∈ [ 1 , m ] i_1,\ldots,i_k \in[1,m] i 1 , … , i k ∈ [ 1 , m ] , with repetitions allowed, such that
⋃ j ∈ [ 1 , k ] S i j = U . (35) \bigcup_{j \in[1,k]} S_{i_j} = U. \tag*{(35)} j ∈ [ 1 , k ] ⋃ S i j = U . (35)
We first construct a permutation 2-group G G G . Use Lemma 7.1 to construct the sequence ( k i , g i , 0 , g i , 1 ) i = 1 ℓ (k_i,g_{i,0},g_{i,1})_{i=1}^{\ell} ( k i , g i , 0 , g i , 1 ) i = 1 ℓ , where ℓ = 3 ⋅ 2 k − 2 \ell= 3 \cdot2^k - 2 ℓ = 3 ⋅ 2 k − 2 . Put k ′ = k + ℓ k' = k + \ell k ′ = k + ℓ and μ = ⌈ log 2 m ⌉ ≥ 1 \mu= \lceil\log_2 m \rceil\ge1 μ = ⌈ log 2 m ⌉ ≥ 1 . Let C 2 = Z / 2 Z C_2 = \mathbb{Z}/2\mathbb{Z} C 2 = Z /2 Z , and let code : [ 1 , m ] → C 2 μ \operatorname{code} : [1,m] \to C_2^\mu code : [ 1 , m ] → C 2 μ map i ∈ [ 1 , m ] i \in[1,m] i ∈ [ 1 , m ] to the binary expansion of i − 1 i-1 i − 1 with exactly μ \mu μ digits. This map is injective.
Let a = ( 1 , 2 ) a = (1,2) a = ( 1 , 2 ) and b = ( 1 , 3 ) ( 2 , 4 ) b = (1,3)(2,4) b = ( 1 , 3 ) ( 2 , 4 ) be elements of Sym ( 4 ) \operatorname{Sym}(4) Sym ( 4 ) , and put D = ⟨ a , b ⟩ ≤ Sym ( 4 ) D = \langle a,b \rangle\le\operatorname{Sym}(4) D = ⟨ a , b ⟩ ≤ Sym ( 4 ) . Since a a a and b b b are involutions and a b = ( 1 , 4 , 2 , 3 ) ab = (1,4,2,3) ab = ( 1 , 4 , 2 , 3 ) , the group D D D is dihedral of order 8. In particular, a b ≠ b a ab \ne ba ab = ba . Let H = D k ′ − 1 H = D^{k'-1} H = D k ′ − 1 and γ = ( a b ) j ∈ [ 1 , k ′ − 1 ] ∈ H \gamma= (ab)^{j \in[1,k'-1]} \in H γ = ( ab ) j ∈ [ 1 , k ′ − 1 ] ∈ H . For i ∈ [ 1 , k ′ ] i \in[1,k'] i ∈ [ 1 , k ′ ] , define c i = ( c i , 1 , … , c i , k ′ − 1 ) ∈ H c_i = (c_{i,1},\ldots,c_{i,k'-1}) \in H c i = ( c i , 1 , … , c i , k ′ − 1 ) ∈ H as follows, where j ∈ [ 1 , k ′ − 1 ] j \in[1,k'-1] j ∈ [ 1 , k ′ − 1 ] .
c i , j = { a if i = j , b if i = j + 1 , 1 otherwise. (36) c_{i,j} =
\begin{cases}
a & \text{if } i=j,\\
b & \text{if } i=j+1,\\
1 & \text{otherwise.}
\end{cases} \tag*{(36)} c i , j = ⎩ ⎨ ⎧ a b 1 if i = j , if i = j + 1 , otherwise. (36)
Note that c 1 c 2 ⋯ c k ′ = γ c_1c_2\cdots c_{k'} = \gamma c 1 c 2 ⋯ c k ′ = γ in H H H . Consider then the group
G = D q U × C 2 k ′ × ( C 2 μ ) ℓ × H . (37) G = D_q^U \times C_2^{k'} \times(C_2^\mu)^\ell\times H. \tag*{(37)} G = D q U × C 2 k ′ × ( C 2 μ ) ℓ × H . (37)
Use the natural action of each D q D_q D q -copy on a separate set of 2 k + 1 2^{k+1} 2 k + 1 points, let each C 2 C_2 C 2 -copy act by a transposition on a separate pair of points, and let each D D D -copy of H H H act on a separate set of four points. This gives an embedding of G G G into Sym ( n ) \operatorname{Sym}(n) Sym ( n ) for
n = 2 k + 1 ∣ U ∣ + 2 k ′ + 2 μ ℓ + 4 ( k ′ − 1 ) . (38) n = 2^{k+1}|U| + 2k' + 2\mu\ell+ 4(k'-1). \tag*{(38)} n = 2 k + 1 ∣ U ∣ + 2 k ′ + 2 μ ℓ + 4 ( k ′ − 1 ) . (38)
The group in (37) is a finite 2-group and therefore nilpotent. Its generators can be given explicitly: use r r r and s s s in each D q D_q D q -copy, the individual transpositions in the C 2 C_2 C 2 -copies, and a , b a,b a , b in each D D D -copy of H H H .
The permutation group G ≤ Sym ( n ) G \le\operatorname{Sym}(n) G ≤ Sym ( n ) will be the ambient group of our pF≤ \le ≤ [NilPG]-instance. We now define the group elements from G G G that are used in the pF≤ \le ≤ [NilPG]-instance. Let e 1 , … , e k ′ ∈ C 2 k ′ e_1,\ldots,e_{k'} \in C_2^{k'} e 1 , … , e k ′ ∈ C 2 k ′ be the standard basis of C 2 k ′ C_2^{k'} C 2 k ′ . For u ∈ U u \in U u ∈ U and i ∈ [ 1 , m ] i \in[1,m] i ∈ [ 1 , m ] , let χ u , i ∈ { 0 , 1 } \chi_{u,i} \in\{0,1\} χ u , i ∈ { 0 , 1 } be 1 if u ∈ S i u \in S_i u ∈ S i and 0 otherwise. We then construct the following elements of G G G :
For p ∈ [ 1 , k ] p \in[1,k] p ∈ [ 1 , k ] and i ∈ [ 1 , m ] i \in[1,m] i ∈ [ 1 , m ] , construct the group element
v p , i = ( ( 1 ) u ∈ U , e p , ξ p , i , c p ) ∈ G , v_{p,i} = ((1)_{u \in U},e_p,\xi_{p,i},c_p) \in G, v p , i = (( 1 ) u ∈ U , e p , ξ p , i , c p ) ∈ G ,
where ξ p , i = ( ξ p , i , 1 , … , ξ p , i , ℓ ) ∈ ( C 2 μ ) ℓ \xi_{p,i} = (\xi_{p,i,1},\ldots,\xi_{p,i,\ell}) \in(C_2^\mu)^\ell ξ p , i = ( ξ p , i , 1 , … , ξ p , i , ℓ ) ∈ ( C 2 μ ) ℓ with ξ p , i , j = code ( i ) \xi_{p,i,j} = \operatorname{code}(i) ξ p , i , j = code ( i ) whenever k j = p k_j = p k j = p and ξ p , i , j = 0 ‾ \xi_{p,i,j} = \overline{0} ξ p , i , j = 0 otherwise. {#eq:37}
For t ∈ [ 1 , ℓ ] t \in[1,\ell] t ∈ [ 1 , ℓ ] and j ∈ [ 1 , m ] j \in[1,m] j ∈ [ 1 , m ] , construct the group element
w t , j = ( ( g t , χ u , j ) u ∈ U , e k + t , η t , j , c k + t ) ∈ G , w_{t,j} = ((g_{t,\chi_{u,j}})_{u \in U},e_{k+t},\eta_{t,j},c_{k+t}) \in G, w t , j = (( g t , χ u , j ) u ∈ U , e k + t , η t , j , c k + t ) ∈ G ,
where $\eta_{t,j} = (\eta_{t,j,1},\ldots,\eta_{t,j,\ell}) \in (C_2^\mu)^\ell
{#eq:38}
with η t , j , t = code ( j ) \eta_{t,j,t} = \operatorname{code}(j) η t , j , t = code ( j ) and η t , j , i = 0 ‾ \eta_{t,j,i} = \overline{0} η t , j , i = 0 if i ≠ t i \ne t i = t . The target element is
h = ( ( 1 ) u ∈ U , 1 ‾ , 0 ‾ , γ ) ∈ G , h = ((1)_{u\in U}, \overline{1}, \overline{0}, \gamma) \in G, h = (( 1 ) u ∈ U , 1 , 0 , γ ) ∈ G ,
where 1 ‾ ∈ C 2 k ′ \overline{1} \in C_2^{k'} 1 ∈ C 2 k ′ has every entry equal to 1 and 0 ‾ ∈ ( C 2 μ ) ℓ \overline{0} \in(C_2^\mu)^\ell 0 ∈ ( C 2 μ ) ℓ is zero. The output parameter is k ′ k' k ′ . This concludes the construction of the pF≤ \leq ≤ [NilPG]-instance. Since G G G is a permutation 2-group, the same holds also for the subgroup generated by all constructed elements v p , i v_{p,i} v p , i and w t , j w_{t,j} w t , j .
Let us show the correctness of our reduction. Suppose first that a product of at most k ′ k' k ′ elements from (37) and (38) equals h h h , where elements may be repeated and occur in any order. Each factor contributes 1 in exactly one coordinate from C 2 k ′ C_2^{k'} C 2 k ′ in (35). The target has a 1 in all k ′ k' k ′ coordinates. Thus, for every p ∈ [ 1 , k ] p \in[1,k] p ∈ [ 1 , k ] there must be an odd number α p ≥ 1 \alpha_p \geq1 α p ≥ 1 of elements of the form v p , i v_{p,i} v p , i in the product. Similarly, for every t ∈ [ 1 , ℓ ] t \in[1,\ell] t ∈ [ 1 , ℓ ] there must be an odd number β t ≥ 1 \beta_t \geq1 β t ≥ 1 of elements of the form w t , i w_{t,i} w t , i in the product. The bound k ′ = k + ℓ k' = k + \ell k ′ = k + ℓ on the number of elements in the product therefore enforces α p = β t = 1 \alpha_p = \beta_t = 1 α p = β t = 1 for all p ∈ [ 1 , k ] p \in[1,k] p ∈ [ 1 , k ] , t ∈ [ 1 , ℓ ] t \in[1,\ell] t ∈ [ 1 , ℓ ] . Hence, the product consists of k k k elements v p , i p v_{p,i_p} v p , i p for all p ∈ [ 1 , k ] p \in[1,k] p ∈ [ 1 , k ] and ℓ \ell ℓ elements w t , j t w_{t,j_t} w t , j t for t ∈ [ 1 , ℓ ] t \in[1,\ell] t ∈ [ 1 , ℓ ] , where i p , j t ∈ [ 1 , m ] i_p,j_t \in[1,m] i p , j t ∈ [ 1 , m ] .
We next show that the product must be
v 1 , i 1 v 2 , i 2 ⋯ v k , i k w 1 , j 1 w 2 , j 2 ⋯ w ℓ , j ℓ . (39) v_{1,i_1}v_{2,i_2}\cdots v_{k,i_k}w_{1,j_1}w_{2,j_2}\cdots w_{\ell,j_\ell}. \tag*{(39)} v 1 , i 1 v 2 , i 2 ⋯ v k , i k w 1 , j 1 w 2 , j 2 ⋯ w ℓ , j ℓ . (39)
Consider an i ∈ [ 1 , k ′ − 1 ] i \in[1,k'-1] i ∈ [ 1 , k ′ − 1 ] . By (34), the only nonidentity contributions in the i i i -th coordinate of H = D k ′ − 1 H = D^{k'-1} H = D k ′ − 1 from (35) come from the elements c i c_i c i and c i + 1 c_{i+1} c i + 1 . Their product is a b ab ab if c i c_i c i appears in the product before c i + 1 c_{i+1} c i + 1 and b a ba ba otherwise. Since the corresponding coordinate of the target h h h is a b ≠ b a ab \ne ba ab = ba , v p , i p v_{p,i_p} v p , i p must occur before v p + 1 , i p + 1 v_{p+1,i_{p+1}} v p + 1 , i p + 1 for all p ∈ [ 1 , k − 1 ] p \in[1,k-1] p ∈ [ 1 , k − 1 ] , v k , i k v_{k,i_k} v k , i k must occur before w 1 , j 1 w_{1,j_1} w 1 , j 1 and w t , j t w_{t,j_t} w t , j t must occur before w t + 1 , j t + 1 w_{t+1,j_{t+1}} w t + 1 , j t + 1 for all t ∈ [ 1 , ℓ − 1 ] t \in[1,\ell-1] t ∈ [ 1 , ℓ − 1 ] .
In the t t t -th coordinate (t ∈ [ 1 , ℓ ] t \in[1,\ell] t ∈ [ 1 , ℓ ] ) from the factor ( C 2 μ ) ℓ (C_2^\mu)^\ell ( C 2 μ ) ℓ in (35), the only non-zero contributions come from v k t , i k t v_{k_t,i_{k_t}} v k t , i k t and w t , j t w_{t,j_t} w t , j t . Since the target h h h has 0 ‾ \overline{0} 0 in this coordinate, we obtain
code ( i k t ) + code ( j t ) = 0 , i.e. j t = i k t (40) \operatorname{code}(i_{k_t}) + \operatorname{code}(j_t) = 0,\quad\text{i.e. } j_t = i_{k_t} \tag*{(40)} code ( i k t ) + code ( j t ) = 0 , i.e. j t = i k t (40)
since the mapping code \operatorname{code} code is injective and every element of C 2 μ C_2^\mu C 2 μ is its own inverse.
Fix a u ∈ U u \in U u ∈ U and let x p = χ u , i p ∈ { 0 , 1 } x_p = \chi_{u,i_p} \in\{0,1\} x p = χ u , i p ∈ { 0 , 1 } for p ∈ [ 1 , k ] p \in[1,k] p ∈ [ 1 , k ] . The generators (37) act trivially in the u u u -coordinate of ( D q ) U (D_q)^U ( D q ) U from (35). By the order of the generators in (39) and (40), their product in this coordinate is
∏ t = 1 ℓ g t , χ u , j t = ∏ t = 1 ℓ g t , χ u , i k t = ∏ t = 1 ℓ g t , x k t . \prod_{t=1}^{\ell} g_{t,\chi_{u,j_t}} = \prod_{t=1}^{\ell} g_{t,\chi_{u,i_{k_t}}} = \prod_{t=1}^{\ell} g_{t,x_{k_t}}. t = 1 ∏ ℓ g t , χ u , j t = t = 1 ∏ ℓ g t , χ u , i k t = t = 1 ∏ ℓ g t , x k t .
The target h h h has the identity in this coordinate, so (31) implies that χ u , i p = x p = 1 \chi_{u,i_p} = x_p = 1 χ u , i p = x p = 1 for at least one p ∈ [ 1 , k ] p \in[1,k] p ∈ [ 1 , k ] . Thus u u u is contained in one of the sets S i 1 , … , S i k S_{i_1},\ldots,S_{i_k} S i 1 , … , S i k . Since this holds for every u ∈ U u \in U u ∈ U , equation (33) follows.
For the converse direction, suppose that i 1 , … , i k ∈ [ 1 , m ] i_1,\ldots,i_k \in[1,m] i 1 , … , i k ∈ [ 1 , m ] satisfy (33) and consider the product
ω = v 1 , i 1 v 2 , i 2 ⋯ v k , i k w 1 , i k 1 w 2 , i k 2 ⋯ w ℓ , i k ℓ , \omega= v_{1,i_1}v_{2,i_2}\cdots v_{k,i_k}w_{1,i_{k_1}}w_{2,i_{k_2}}\cdots w_{\ell,i_{k_\ell}}, ω = v 1 , i 1 v 2 , i 2 ⋯ v k , i k w 1 , i k 1 w 2 , i k 2 ⋯ w ℓ , i k ℓ ,
which has exactly k + ℓ = k ′ k+\ell= k' k + ℓ = k ′ factors. The projection of ω \omega ω to the factor C 2 k ′ C_2^{k'} C 2 k ′ from (35) is 1 ‾ \overline{1} 1 . Moreover, in each coordinate t ∈ [ 1 , ℓ ] t \in[1,\ell] t ∈ [ 1 , ℓ ] of the factor ( C 2 μ ) ℓ (C_2^\mu)^\ell ( C 2 μ ) ℓ the product yields code ( i k t ) + code ( i k t ) = 0 \operatorname{code}(i_{k_t}) + \operatorname{code}(i_{k_t}) = 0 code ( i k t ) + code ( i k t ) = 0 , where the first code ( i k t ) \operatorname{code}(i_{k_t}) code ( i k t ) comes from v k t , i k t v_{k_t,i_{k_t}} v k t , i k t and the second code ( i k t ) \operatorname{code}(i_{k_t}) code ( i k t ) comes from w t i , k t w_{t_i,k_t} w t i , k t . The projection of ω \omega ω to H H H is c 1 ⋯ c k ′ = γ c_1\cdots c_{k'}=\gamma c 1 ⋯ c k ′ = γ . Finally, for each u ∈ U u\in U u ∈ U , at least one of the bits χ u , i p \chi_{u,i_p} χ u , i p for p ∈ [ 1 , k ] p\in[1,k] p ∈ [ 1 , k ] is 1, so Lemma 7.1 gives the identity in the u u u -coordinate of D q U D_q^U D q U . This shows that ω \omega ω is the target h h h .
It remains to argue that the reduction is fpt. Let n 0 = ∣ U ∣ ⋅ m + k n_0=|U|\cdot m+k n 0 = ∣ U ∣ ⋅ m + k be the size of the parameterized Set Cover instance. The output parameter k ′ = k + 3 ⋅ 2 k − 2 k'=k+3\cdot2^k-2 k ′ = k + 3 ⋅ 2 k − 2 only depends on the input parameter k k k . Since μ = ⌈ log 2 m ⌉ \mu=\lceil\log_2m\rceil μ = ⌈ log 2 m ⌉ and ℓ = 3 ⋅ 2 k − 2 \ell=3\cdot2^k-2 ℓ = 3 ⋅ 2 k − 2 , the permutation degree n n n of G G G (see (38) ) is bounded by 2 k ⋅ poly ( n 0 ) 2^k\cdot\operatorname{poly}(n_0) 2 k ⋅ poly ( n 0 ) . The number of constructed permutations v p , i v_{p,i} v p , i and w t , j w_{t,j} w t , j is also k ′ m = 2 k ⋅ poly ( n 0 ) k'm=2^k\cdot\operatorname{poly}(n_0) k ′ m = 2 k ⋅ poly ( n 0 ) . This shows that our reduction is indeed fpt. ◀
By Lemmas 3.3 and 3.4, the problems pF[NilPG], pSSS≤ _{\leq} ≤ [NilPG], and pSSS[NilPG] are W[2 ] -hard as well, already for permutation 2-groups, since these reductions preserve the group.
Remark 7.3. The group D q D_q D q for q = 2 k + 1 q=2^{k+1} q = 2 k + 1 is ( k + 1 ) (k+1) ( k + 1 ) -step nilpotent: its lower central series satisfies γ j ( D q ) = ⟨ r 2 j − 1 ⟩ \gamma_j(D_q)=\langle r^{2^{j-1}}\rangle γ j ( D q ) = ⟨ r 2 j − 1 ⟩ for j ∈ [ 2 , k + 2 ] j\in[2,k+2] j ∈ [ 2 , k + 2 ] . The group D D D has nilpotency class 2, so the output group G G G also has nilpotency class k + 1 k+1 k + 1 . Thus the nilpotency class in this reduction grows with the source parameter k k k . Theorem 7.2 does not assert W[2 ] -hardness for any fixed nilpotency class.
Open problems
We conclude with some open problems. The most pressing open problems are:
Disclosure of AI use
GPT-6 Astra produced first versions of the proofs of the four main results Theorem 4.3, Theorem 5.6, Theorem 6.14 and Theorem 7.2. The author rewrote the proofs and thereby simplified some details. Apart from this, GPT-6 Astra was used for literature search. The author takes full responsibility for the final content.