Optimal Lower Bounds for Symmetric Modular Circuits
Abstract
A notorious open question in circuit complexity is whether Boolean operations of arbitrary arity can efficiently be expressed using modular counting gates only. Håstad’s celebrated switching lemma yields exponential lower bounds for the dual problem – realising modular arithmetic with Boolean gates – but, a similar lower bound for modular circuits computing the Boolean AND function has remained elusive for almost 30 years.
We solve this problem for the restricted model of symmetric circuits: We consider -circuits of arbitrary depth, and for an arbitrary modulus , and obtain subexponential lower bounds for computing the -ary Boolean AND function, under the assumption that the circuits are syntactically symmetric under all permutations of their input gates. This lower bound is matched precisely by a construction due to (Idziak, Kawałek, Krzaczkowski, LICS’22), leading to the surprising conclusion that the optimal symmetric circuit size is already achieved with depth .
Motivated by another construction from (LICS’22), which achieves smaller size at the cost of greater depth, we also prove tight size lower bounds for circuits with a more liberal notion of symmetry characterised by a nested block structure on the input variables.
Keywords and phrases:
symmetric circuits, modular counting, lower bounds, CC0Category:
Track B: Automata, Logic, Semantics, and Theory of Programming2012 ACM Subject Classification:
Theory of computation Circuit complexityFunding:
The author was funded by UK Research and Innovation (UKRI) under the UK government’s Horizon Europe funding guarantee: grant number EP/X028259/1.Acknowledgements:
I am grateful to Piotr Kawałek for posing this question to me, and for his invaluable help in learning and presenting the research context.Editors:
Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele PuppisSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
There are many long-standing open questions in circuit complexity that are surprisingly simple in their formulation, yet no solution to them has been found in decades. Among them there is the following: Can the -ary Boolean -function be represented with a polynomial-size circuit of depth two using only -gates? A -gate is a Boolean gate which takes an arbitrary number of inputs and returns if and only if their sum modulo belongs to an accepting set (where can vary for different gates).
More generally, a -circuit is a depth- Boolean circuit consisting only of -gates. The question is: For fixed positive integers and , what is the asymptotic size of the smallest possible -circuit that computes ? Is it polynomial in ? In common complexity-theoretic terms, this question is phrased as “?”. The class consists of all constant depth circuits that only use modular counting gates, while in , the circuits may additionally contain Boolean disjunction, conjunction and negation gates. It is stunning that very little progress has been made despite the fact that this problem was first raised almost 30 years ago [3].
As of today, only slightly superlinear lower bounds are known, and only for the number of wires, not gates [7], both for general -circuits as well as for the most restricted open case . The lack of strong lower bounds is even more surprising when one compares it with the dual question: Can modulo counting be performed efficiently by constant depth circuits using only the Boolean operations ? This question was famously answered in the negative by Håstad [21] already in the 1980s. Indeed, his switching lemma yields an asymptotically optimal exponential lower bound against constant depth Boolean circuits computing the parity function. More generally, it has been shown that is not in (the extension of with gates), whenever are distinct primes [30]. To sum up: We have known for a long time that Boolean operations cannot simulate modulo counting, but it is notoriously hard to settle whether modulo counting can simulate Boolean operations.
Common belief is in favour of a negative answer: Barrington, Straubing and Thérien first conjectured an exponential lower bound in [3], and since the work by Barrington, Beigel and Rudich in 1994 [2], a size lower bound for -circuits computing is considered likely (where ). Some refer to this conjecture as the Exponential Size Hypothesis (ESH). For the very restricted setting of two layers with two different prime moduli, that is, -circuits where , an even stronger lower bound has been established unconditionally: Such circuits require size to compute [20, 19, 31].
In this paper we study a circuit restriction of a different nature: Since the function is symmetric under all permutations of its inputs, it admits a symmetric circuit representation. Such symmetric constructions are typically natural and intuitive, and it is also reasonable to assume that they are not too far from optimal. Formally, we say that a circuit is fully symmetric (or -symmetric) if for every , there exists an automorphism of that permutes its input gates according to . We completely determine the -circuit complexity of , for any depth , and any modulus with at least two prime divisors 111The case where is a prime power can be ignored. It is known that then, -circuits cannot compute for arbitrarily large , see [24, Proposition 2.1] , as far as fully symmetric circuits are concerned.
Theorem 1.
Fix an integer with at least distinct prime divisors. For every family of -symmetric -circuits computing the Boolean function , the circuit size is at least . There exists a family of -circuits that achieves this bound.
The new contribution is the lower bound; the upper bound was presented by Idziak, Kawałek, Krzaczkowski in 2022 [24, Proposition 3.1], and independently by Chapman and Williams [6], based on an idea from [2]. For completeness, we review the upper bound in Section 5. The most surprising insight from Theorem 1 is the discovery that the natural and elegant depth- construction from [24, Proposition 3.1] is in fact optimal under the assumption of -symmetry. Thus, one can never gain savings in the asymptotic size by increasing circuit depth beyond , except by breaking symmetries. This answers a question implicitly posed by Kawałek and Weiß in [27], which is detailed below.
Interestingly, a more involved construction from [24] demonstrates that (partially) breaking symmetries does indeed allow to build smaller circuits, at the expense of greater depth: For every constant , there exist -circuits for whose size is strictly smaller than , and the savings in size increase with .
Examining this depth- construction [24, Proposition 4.3], one finds that it is not -symmetric (which it cannot be by Theorem 1), but respects a smaller group of symmetries, that we call nested block symmetry. This notion of symmetry is naturally exhibited by recursive circuit constructions that follow a divide-and-conquer approach; another such example can be found in [6].
The symmetry group is best described as the automorphism group of a tree whose leaves correspond to the input variables of the circuit. We formalise this idea by fixing an -tuple of functions in such that , which defines for each a tree : This tree has levels and on the -th level, every node has many children. The leaves of the tree are identified with the variables (for this to be possible, we need that the product over the is ). The automorphism group is the group of all permutations of the nodes of that preserve the edges and non-edges of the tree. A circuit is -symmetric circuit if for every , there is an automorphism of the circuit that permutes the inputs precisely as permutes the leaves of (see Section 2 for details). Note that not for every permutation , there is a tree automorphism in that acts like on the leaves. Hence, -symmetry is a laxer requirement of circuits than -symmetry.
Our next result extends Theorem 1 to the nested block symmetric setting and pins down the asymptotic circuit size exactly, depending only on the choice of symmetry group . Theorem 1 is in fact a special case of Theorem 2, when is taken to be the depth- tree with leaves. Nevertheless, Theorem 1 is important enough to be stated separately, and its proof is more instructive.
Theorem 2.
Fix an integer with at least distinct prime divisors.
Moreover, fix a constant depth , and a tuple of block sizes such that for all . Assume that for each and all large enough .
Let .
Every -symmetric -circuit that computes the Boolean function has size at least
and there exists a -circuit that achieves this bound.
The upper bound is achieved by applying the construction from Theorem 1 in a recursive fashion, which requires circuit layers for each nested block of the symmetry group. An immediate consequence of the theorem is that one cannot gain savings in size by varying the block sizes on different levels of the symmetry group. Thus, the symmetric circuit complexity is just controlled by the choice of in this setting:
Corollary 3.
For fixed, the choice of which optimizes the size of an -symmetric -circuit for is . For this , there exists such a depth- circuit of size .
Proof.
Since for all , the smallest value that can attain is , in case that all are equal. Strikingly, the -symmetric construction from [24, Proposition 4.3] is slightly larger than this. It achieves only size (approximately) instead of as in Corollary 3. This is because [24, Proposition 4.3] aims at an optimized depth: Indeed, the authors manage to compress the circuits down to only layers, which is essentially just one layer per nesting depth of the symmetry group and likely optimal under -symmetry. In view of our Corollary 3, we consider it an important open problem to improve the size of this depth- construction so that it matches our lower bound, or to show that this is impossible.
Our results confirm the lower bound conjectured by ESH for fully symmetric and nested block symmetric circuits. Since much of the literature focuses on the -function, we have chosen to do the same, but our results can be proved for every symmetric function that is aperiodic (for a definition, see Section 2.3), such as or .
Our work raises the following immediate open questions:
-
1.
Is there a size-depth tradeoff for nested block symmetric circuits?
The current knowledge suggests this: We have size-optimal constructions that are at least a factor of away from the optimal depth (Corollary 3), and we have (likely) depth-optimal circuits of slightly suboptimal size [24, Proposition 4.3]. -
2.
What is the smallest possible symmetry group for which our method works? Do lower bounds for symmetric circuits inform the search for general (non-symmetric) lower bounds? For example, can every non-symmetric -circuit for be symmetrized at only a small cost?
Related work on modular circuits
The complexity of low-depth -circuits has particular relevance because of its various connections to other questions, of which we can only mention a few here. For example, it is known that strong lower bounds against low-depth -circuits would imply faster algorithms for solving equations over solvable groups [26], for circuit satisfiability problems over algebras [23, 25], and for constraint satisfaction problems with global modular constraints [5]. Another surprising application is in coding theory. Techniques from the construction of small -circuits for Boolean functions have been used to obtain explicit Ramsey-style graphs [17, 18]. These are crucial for example in the design of particularly good locally decodable error-correcting codes [16, 13] and private information retrieval schemes [14].
Related work on symmetric circuits
The idea to study symmetric circuits to facilitate lower bounds has been employed successfully in many different contexts in recent years. To name only a few examples, there are symmetry-based lower bounds for constant depth formulas with Boolean and majority gates [22], lower bounds for uniform symmetric Boolean (threshold) circuit families via a connection to fixed-point logics from finite model theory [1], and a recent research strand on symmetry in algebraic complexity theory [10, 11, 9, 15], notably proving the permanent polynomials to be exponentially hard for symmetric circuits.
For our purposes, the most relevant related work is a very recent paper by Kawałek and Weiß [27]. They seem to be the first to consider symmetry in the context of , but with a scope limited to -circuits (where is some fixed integer), and as the symmetry group. Our lower bounds cover that case (when has and as prime divisors) and apply to a much more general circuit model. In particular, Kawałek and Weiß suggest that to obtain smaller symmetric circuits for , one may have to increase the depth. Our Theorem 1 surprisingly refutes this, and shows that a depth greater than yields no size improvement, unless also the symmetry constraint is relaxed as in Theorem 2.
Our techniques
The key challenge we solve is to overcome the obstacles that prevent the technique in [27] from generalising to symmetric circuits of arbitrary depth and with -gates for composite numbers . We accomplish this by using a very different technical framework, based on the group-theoretic notion of supports. This is the central tool in the aforementioned articles by Dawar and others, and we use it in an inductive approach vaguely similar to the one in [9]. The lower bound for is then based on a periodicity argument as in [27]: Our main technical result, Lemma 12, shows that symmetric -circuits of small (support) size necessarily compute periodic functions – but is aperiodic.
Another contribution of this work is the extension of the group-theoretic toolkit for dealing with the smaller symmetry groups . Thus far, the literature has mostly focused on direct products of symmetric or alternating groups, which are technically easier to handle.
2 Preliminaries
We write . For a tuple indexed by , and a subset of the indices, we use the notation to refer to the subtuple of consisting of the entries with indices in . In this notation, we also sometimes merge subtuples: For , we denote by the subtuple of . In all these cases, the ordering of the respective subtuple of is inherited from .
The depth of a rooted tree or DAG is the maximum number of edges on any path from the root to a leaf.
2.1 Permutation groups and supports
We write for the symmetric group acting on the set , and if is a set, then denotes the symmetric group acting on . For , we write for the setwise stabiliser subgroup of in , and for the pointwise stabiliser of . The setwise stabiliser is the subgroup of permutations such that , whereas the pointwise stabiliser is the subgroup consisting of all such that for every . This notion can be restricted to subgroups as well: and denote the respective subgroups of that fix setwise or pointwise.
For a group , and an element , the -orbit of is the set of all possible images of . By the well-known Orbit-Stabiliser Theorem, . The notion of an orbit also applies to subsets of , or more generally, other objects, such as gates of a circuit, that may be acting on.
A set is a support of a group if . It is known that every that has a support of size has a unique minimal support, denoted [4, Lemma 26]. This notion will be of central importance in our analysis of symmetric circuits: In symmetric circuits of bounded size, also the minimal supports of the stabiliser groups of the gates will have bounded size. The function computed by a gate can then be described in terms of this small support.
Nested symmetric groups
Besides , we deal with nested symmetric groups. These are best described as the automorphism groups of rooted trees. Fix a depth and let , where for each , is a function such that for every . The tuple defines a family of rooted symmetric trees, one for each : The -th tree has levels, and is the number of children of every node on level . The leaf nodes are on level , and the root of the tree is the only node on level . The automorphism group of is denoted . It acts on the vertex set . Each maps every subtree of to a subtree rooted at the same level, possibly permuting subtrees further down. Because in each level, all nodes have the same number of children, every node can be mapped to every other node on the same level by an automorphism in . Formally, is isomorphic to an iterated wreath product of symmetric groups, defined inductively as follows. Let be a subtree of of depth , having leaves. Then . Now assume is a subtree of of depth . Then the root of has children, and , where is isomorphic to the subtree rooted at any/every child of .
The group embeds into by identifying every with the permutation that it induces on the leaves of the tree. Note that every is induced by at most one .
For the analysis, it will be helpful to speak of the action of on blocks: For a node denotes the block of , by which we mean the set of all nodes (including ) that have the same parent as . Every stabilises a block setwise or moves it to another block on the same level. The set of all blocks is denoted
For , we denote by the nodes in the -th level of the tree. For a set of nodes , we denote by the set of all leaves that have an ancestor (i.e. node on a path from the root to ) in .
Supports for nested symmetric groups
Any group can be embedded into (via its action on the leaves) and thus admits a notion of support in the sense described previously. However, when is explicitly presented as a subgroup of , we use a more refined notion, that we call blockwise support. It breaks up the support according to the different copies of symmetric groups in . For a block , let denote the permutation group on consisting of all such that there exists a that fixes setwise and satisfies , i.e. permutes the nodes in like does.
A set is a -support of if . In other words, this means that for every , there exists at least one permutation that acts like on .
2.2 (Symmetric) modular circuits
A circuit is a DAG, possibly with multiedges, and a single designated root. Its nodes are called gates and its edges are also called wires. Edges are directed from a gate where a value is computed towards the next gate that uses this value as an input. The nodes with no incoming edges are called input gates, and each input gate is labelled with a variable , where is the arity of the function to be computed by the circuit. Each internal gate is labelled with an operation. In this paper, we only consider circuits with modular counting gates: For , and , the operation is of arbitrary fan-in , and satisfies
A -circuit is one where every internal gate is labelled with the operation for an arbitrary . The computation result is the Boolean value that is computed at the root.
We assume throughout that for every variable , there exists exactly one input gate with label . This is not a restriction since distinct input gates labelled with the same variable can always be identified.
The size of a circuit is , the total number of gates plus wires, counted with multiplicities. For a gate , we write to denote the function from to that is computed by the subcircuit of rooted at .
Symmetric circuits
Let , and be a subgroup of . A -circuit is called -symmetric if its set of input variables is and every acting on the input gates extends to an automorphism of . That is, for every , there exists a such that for all inputs gates , and is an automorphism of . This means that for every internal gate , (i.e., the gates compute the same operation , for the same ), and for any two gates , the multiplicity of the directed edge is the same as of . We call rigid if for every , the circuit automorphism extending is unique. This is equivalent to not having any non-trivial automorphism that fixes every input gate. Fortunately, w.l.o.g. we can always assume our symmetric circuits to be rigid (see e.g. [8, Lemma 4.3] or Lemma 25 in the appendix).
The advantage of working with rigid -symmetric circuits is that for every , and , we may write to mean the well-defined gate , for the unique circuit automorphism that extends . In this sense, if is rigid, then has a well-defined (faithful) action on .
With respect to this action, we can speak about the orbits of gates. Their size is an important complexity measure of -symmetric rigid circuits, called orbit size, by which we mean the maximum size of a -orbit of any gate:
Note that for any gate , , so to establish lower bounds on the circuit size , it is sufficient to prove lower bounds for .
By induction on the circuit structure, it is not difficult to verify the following fact about the interplay between symmetry and the semantics of the gates (see Appendix A).
Lemma 4.
Let be a -symmetric rigid circuit, for . Let be an assignment to the variables, let be a gate, and let . Then
Supports in symmetric circuits
We apply the previously introduced notions of supports to stabiliser groups of gates in symmetric circuits. We have already seen that the concept of a support can be defined differently for different permutation groups. Therefore, from here on, we restrict the symmetry group of our circuits and always assume that , for some or some symmetric -leaf tree .
We are interested in the support of a gate in a given -symmetric rigid circuit . Let be the stabiliser group of the gate, that is, .
Definition 5 (Supports of gates).
Let be a gate in a -symmetric rigid circuit, for .
-
If , then the support of is , i.e., the unique minimal support of in .
-
If , then we consider the blockwise support of : For every , we denote by the unique minimal -support of the group .
In either case, the support of is undefined if the respective minimal (-)support of is not uniquely defined.
We still need to argue that in the scenarios we study in this paper, the respective minimal supports exist and are unique, so that and are indeed always defined when we need them.
Lemma 6.
-
1.
Let and be a -symmetric rigid circuit. Let be such that and . Then for every , has a support of size less than .
-
2.
Let be an -symmetric rigid circuit, for some -tuple such that . For every block , let be such that and . Then for every , has a -support with .
The first part of the lemma is shown in [12, Theorem 14] for symmetric Boolean circuits, and the set-up here is very similar. The second item follows from the first with an additional argument. The proof details are given in Appendix A.
As already mentioned, by [4, Lemma 26], every subgroup of that has a support of size also has a unique minimal support. This holds in particular whenever the conditions of the above lemma are satisfied, both in case (1) and (2). In the set-up in the following sections, this will always be the case because if the conditions of the lemma are not satisfied for a circuit , then , and hence , is anyway at least as large as the circuit size lower bounds we have to prove for Theorem 1 and Theorem 2. For a circuit where the respective supports are defined, we write
Another known fact about supports of gates in symmetric circuits is that they are moved by permutations in the expected way:
Lemma 7 ([8, Lemma 4.2]).
Let be a -symmetric rigid circuit in which the supports of all gates are defined. Let be a gate. Then for every , .
Analogously, in every -symmetric circuit , for every gate , every block , and every .
2.3 Periodic functions
A function is called periodic with a period of length if for every . An analogous definition applies if is only defined on an initial segment of . A particular periodic function that will be of high importance for us is the binomial coefficient modulo . Its period length is known exactly:
Theorem 8 ([28, Theorem 2.3]).
Let be fixed, and let be its prime divisors. Fix . The function has a period of minimal length
Let be an -ary Boolean function. If for every , and every , , then we say that is -symmetric. The value of a -symmetric -ary function only depends on the number of -entries in , denoted . Thus, we may view as a unary function defined on , and as such, we can speak of its period.
Lemma 9.
The -symmetric Boolean function does not have a period of any length .
Proof.
For a contradiction, assume that was the period length of . Then also in case that . But , so in this case. Contradiction.
3 Size lower bound for fully symmetric circuits
In this section, we prove the size lower bound from Theorem 1 for -symmetric -circuits computing . The technical core, from which the size lower bound follows, is a lower bound on the support size required to compute :
Theorem 10.
Fix a positive integer and let be the number of distinct prime divisors of . Let be a family of -symmetric rigid -circuits. If for all , then does not compute .
Corollary 11.
In the setting of the theorem, if computes for an , then .
Proof.
If computes , then by Theorem 10, . Suppose for a contradiction that . Then in particular, . Because and , the conditions of Lemma 6 (1) are fulfilled for , so , which is a contradiction.
By replacing factorials with their Stirling approximations, we can compute that
where are functions depending on , so we can treat them as constants. Thus, Corollary 11 indeed yields the asymptotic circuit size lower bound of that is claimed in Theorem 1.
It remains to prove Theorem 10. This is done by showing that if , then the function computed by is periodic with a period of length .
The proof rests on the upper bound on the period length shown in Corollary 13. Before we can state and prove that corollary, we need to introduce a refined notion of period, for not fully symmetric functions:
Let , and let be a -symmetric function. Let . Then the value of is fully determined by the assignment and by the number of -entries in the variables . Formally, let us write for the function obtained from by fixing the variables in to the values given by . That is,
When we say that a -symmetric function has a period, we mean that for every , the function , whose value only depends on the number of -entries in its input, has a period. This period may be of different length for different assignments , but when we say that has a period of length at most , then we mean that for each , the period length of is at most .
Now let be a gate. The function computed by is always -symmetric by Lemma 4. Because , it is also -symmetric. So when we say that has a period of length at most , we mean that has such a period for every . Now the technical lemma that we want to show reads as follows.
Lemma 12.
Let be a function in . Fix a number . Let be a family of -symmetric rigid -circuits in which all supports have size at most . Fix . Let be a gate in . Then the -symmetric function has a period of length at most where the product ranges over the prime factors of .
Note that this bound on the period length does not depend on the depth of the gate – this also explains why it is possible already for depth- circuits to achieve the optimal size. All that matters is the size of the supports.
Corollary 13.
In the setting of Lemma 12, the -symmetric function computed at the output gate of has a period of length at most , where denotes the number of distinct prime divisors of .
The proof of Lemma 12 is given in the full version [29]. It proceeds by induction from the input gates to the root of the circuit. The periodic behaviour of the function computed at each gate is essentially shown by reducing the evaluation of the gate to an expression that involves binomial coefficients modulo . This is possible because the children of the gate are symmetric to each other in a certain precise sense. The period length claimed in Lemma 12 comes from the periodicity of the binomial coefficients, as given by Theorem 8.
Proof of Theorem 10.
If , then by Corollary 13, the -symmetric function computed by has a period of length at most . But then, this function cannot be by Lemma 9.
4 Size lower bound for nested block symmetry
In this section, fix and a tuple such that for each . For every , let and denote the smallest and largest block sizes in the tree .
We now show how to adapt the proof from the previous section to obtain the circuit size lower bound claimed in Theorem 2 for -symmetric circuits. The main technical result from which the lower bound can be derived is the following variation of Theorem 10:
Theorem 14.
Fix a positive integer and let be the number of distinct prime divisors of . Let be a family of -symmetric -circuits. Let be a block that has size , for some . 222Note that we can fix the block independently of since the structure of only depends on , and just controls the size of . If , then does not compute .
Corollary 15.
In the setting of the theorem, if computes for an such that , then .
Proof.
If computes , then by Theorem 14, for every block , . Then for every , by Lemma 6 (2). Since , for every , we can pick a block of maximal size and obtain . Just like in the last section, the size lower bound from this corollary translates into
which is what is stated in Theorem 2. Similarly as in the previous section, Theorem 14 is proved by showing that if the supports are not big enough, then the functions computed by the gates have a certain periodic behaviour. However, the notion of period is different now because it has to match the different notion of symmetry.
Recall from Section 2.1 that for a tree , and a set of nodes, denotes the set of leaves in subtrees rooted at nodes in .
Definition 16 (Block-periodic functions).
Let . Let be a group such that for every , there is a that fixes setwise and satisfies . Let be a -symmetric function. Let be an assignment such that for each , , i.e., is constant on each set , for each . Then by -symmetry of , the value of depends only on and on the number
We say that has a -period of length if
for any two assignments that are constant on , for each , and satisfy , and .
Lemma 17.
Let and be as in Definition 16. If has a -period of length , then .
Proof.
Suppose for a contradiction that . Then . Consider an assignment , which is everywhere except that precisely for nodes , . Then because has a -period of length . But this is a contradiction because .
Again, it remains to prove the key technical ingredient, Corollary 19, and again, this requires to adjust the notion of periodicity to stabiliser groups of gates that fix the support pointwise.
Let , let be a group such that for every , there is a that fixes setwise and satisfies . We now consider , the pointwise stabiliser of in . Let be a -symmetric function. Fix an assignment which is constant on each set for each , and constant on . Now when is regarded as fixed, then for assignments that are constant on each set for each , the value of only depends on .
Analogously to the previous section, we write for the function obtained from by fixing the variables in to the values given by . That is,
When we say that a -symmetric function has a -period, we mean that for every that is constant on for each , and constant on , the function has a -period.
Now let be a gate and let . By the definition of , we know that for every , there is a that fixes the set setwise and satisfies . Therefore, has the properties we are assuming in the above paragraph. The function computed by is always -symmetric by Lemma 4. Because , it is also -symmetric. So when we say that has a -period of length at most , we mean that has such a period for every that is constant on each for each , and constant on . Now the technical lemma that we want to show reads as follows.
Lemma 18.
Let be a block of size , for some . Let be a function in . Fix a number . Let be a family of -symmetric rigid -circuits such that for all . Let be a gate in and let . Then the -symmetric function has a -period of length at most
where the product ranges over the prime factors of .
Corollary 19.
In the setting of Lemma 18, the -symmetric function computed at the output gate of has a -period of length at most , where denotes the number of distinct prime divisors of .
Proof of Theorem 14.
Assume the setting of Theorem 14, so in particular, for some block . By Corollary 19, the -symmetric function computed by has a -period of length at most . But then, this function cannot be by Lemma 17.
5 Symmetric circuit upper bounds
In this section, we present the upper bound constructions matching the lower bounds in Theorem 1 and Theorem 2. The fully symmetric depth-2 construction for Theorem 1 is entirely due to [24] and we include a summary of their proof for completeness in Section 5.1. The construction for Theorem 2 in Section 5.2 does not appear elsewhere in the literature but it is simply a recursive application of the depth-2 construction. In [24], a similar but more sophisticated recursive construction is presented, leading to a smaller depth at the cost of greater asymptotic size. Our construction here is a more naive variant of this, which is possibly not depth-optimal, but matches the size lower bound from Theorem 2.
5.1 Fully symmetric depth-2 construction
Theorem 20 ([24, Proposition 3.1]).
Fix with at least distinct prime divisors of . For every , there is a -symmetric depth-2 -circuit with gates which computes .
This symmetric construction was first provided for depth- circuits by Barrington, Beigel and Rudrich [2], and improved to depth by Idziak, Kawałek, Krzaczkowski [24], and independently by Chapman and Williams [6]. We outline the proof from [24]. The main building block is what the authors call -expressions.
Definition 21 (-expressions).
Let be two distinct primes. Let . Let be the function that maps to and every to . An -ary -expression is of the form
where the coefficients are in , the outer sum and the multiplications with the are evaluated in , while the expression inside is evaluated in .
It is straightforward to see that -expressions can be computed by modular counting circuits of depth , in a certain sense: Since the output of any -gate is always Boolean, and the result of a -expression is in , the only way in which we can realise such expressions as -circuits is to have multiple output wires. The semantics is that the sum over the output wires modulo is equal to the result of the -expression. Such a -circuit with a set of designated output wires that are to be interpreted as a sum in is called a -circuit of output type henceforth. The depth of a circuit of output type refers to the maximum number of wires along any path, so the layer consisting of the output wires counts towards the depth. With this definition it is straightforward to write -expressions as modular circuits:
Lemma 22.
Let be integers such that has and as prime factors. Every -expression can be realised by a depth- -circuit of output type .
For a Boolean assignment to variables , we write for the tuple
. By , we denote the number of s in this tuple.
A particular -expression that is central for the proof of Theorem 20 is the following.
Lemma 23.
Let and let be a prime. The function which satisfies for all :
is expressible as a -expression, for every prime . Moreover, for every that has and as prime factors, this -expression can be realised as a depth- -symmetric circuit of output type and of size at most .
Proof.
This follows from [24, Lemma 3.5]. The fact that the circuit can be realised in a -symmetric way is not stated explicitly there, but can be seen by inspection of the proof. To be precise, the proof of [24, Fact 3.4] shows that is effectively expressed as a linear combination of elementary symmetric polynomials. Each of these polynomials is by definition -symmetric, and this carries over to the -expression representing them.
To prove the upper bound result, we summarise the proof of [24, Proposition 3.1]:
Proof of Theorem 20.
Let be the prime factors of . Fix integers such that for each , we have . Let
One can show that if and only if for every : If all are equal to , then is divisible by every prime power, so each will evaluate to , and hence . Conversely, assume that . This can only be the case if for all , . Then is divisible by . Since , it follows that , which is what we had to show.
By Lemma 23, each can be expressed as a depth-2 -symmetric -circuit of output type and of size at most . Thus, to compute , we connect the outgoing wires of the depth-2 symmetric circuits to an output gate that sums up the values modulo , with the respective coefficients realised by appropriate wire multiplicities, and outputs if and only if . Let this circuit be . Recall that we defined the depth of a modular circuit of output type in such a way that it includes its outgoing wires. Thus, the outgoing wires of the are already accounted for in their depth, and adding one more output gate on top does not increase the depth of the resulting circuit. Hence, also has depth .
5.2 Nested block-symmetric construction
Now we present the construction that achieves the upper bound in Theorem 2. It simply applies Theorem 20 to recursively compute the AND over each block defined by the tree .
Theorem 24.
Let be a number with distinct prime factors. Fix an and an -tuple such that for all . Let . For every there is an -symmetric -circuit of size and depth that computes .
Proof.
The inductive circuit construction follows the structure of . Recall that the tree defines a set of blocks of siblings in the tree. The AND over each such block can be computed via a circuit from Theorem 20. Below is a schematic visualisation of the top two levels of where for each .
Each blue cone in this picture corresponds to a block . On the level of leaves, such a block is a subset of the input variables of size . A block on a higher level bundles blocks from the level below. In this example, our circuit will contain one instance of the -circuit from Theorem 20 for each . The output of such a circuit will be the AND over , that is, the set of all input variables that sit below the block .
Formally, we construct our -circuit by induction from level to of : On level , every block is a subset of leaves. For each such , we invoke Theorem 20 to obtain a -symmetric circuit that computes the over all variables with .
Next, we consider an arbitrary level and assume by induction that for all blocks with , a circuit with the following properties has been constructed:
-
1.
computes the AND over all variables such that .
-
2.
is symmetric under the subgroup of that stabilises setwise.
Now let be a block with . To obtain the circuit for this block, we invoke Theorem 20 on the outputs of the circuits for all blocks for every node that is a child of some node in . That is, simply computes the AND over the results of all the blocks on level that are bundled in . It is not difficult to check that this circuit again satisfies the two properties above (using the fact that the construction from Theorem 20 is symmetric). For the unique block on level , the circuit is the desired -symmetric circuit that computes the over all input variables. The total depth of the construction is because the circuit from Theorem 20 has depth , and we use this on levels. For each block, the subcircuit that Theorem 20 gives us has size at most . The number of blocks is , so the total size of the constructed circuit is at most . The additive term vanishes in the because .
6 Concluding remarks
Using a clean group-theoretic framework, we have determined the exact size complexity of for fully symmetric and nested block-symmetric -circuits. For fully symmetric circuits, it turns out that the depth- construction from [24] is already optimal. For nested block-symmetric circuits, the optimal size is achieved by recursively nesting that construction. This approach is of course somewhat naive, and we know from [24, Proposition 4.3] that one can in fact compress its depth down to . This is done via a trick that lets the authors chain consecutive -expressions together without explicitly having to compute the over each block. Strangely, the implementation of this trick in [24, Proposition 4.3] achieves only in the exponent of the circuit size, rather than , which we have shown to be optimal for symmetric circuits. After a thorough examination of the depth reduction trick, it seems that this increase in size is perhaps inherent and cannot be avoided if one wishes to achieve a lower depth than . Thus, our results motivate further efforts to improve the size of the depth- construction, or to show that this is impossible (at least under symmetry assumptions).
Beyond that, we hope that our techniques will provide a basis for proving lower bounds under even less restrictive symmetry assumptions in the future, so that one day, the 30 year old problem versus may be settled.
References
- [1] Matthew Anderson and Anuj Dawar. On Symmetric Circuits and Fixed-Point Logics. Theory of Computing Systems, 60(3):521–551, 2017. doi:10.1007/s00224-016-9692-2.
- [2] David A. Mix Barrington, Richard Beigel, and Steven Rudich. Representing Boolean functions as polynomials modulo composite numbers. Computational Complexity, 4:367–382, 1994. doi:10.1007/BF01263424.
- [3] David A. Mix Barrington, Howard Straubing, and Denis Thérien. Non-uniform automata over groups. Information and Computation, 89(2):109–132, 1990. doi:10.1016/0890-5401(90)90007-5.
- [4] Andreas Blass, Yuri Gurevich, and Saharon Shelah. Choiceless polynomial time. Annals of Pure and Applied Logic, 100(1-3):141–187, 1999. doi:10.1016/S0168-0072(99)00005-6.
- [5] Joshua Brakensiek, Sivakanth Gopi, and Venkatesan Guruswami. Constraint Satisfaction Problems with Global Modular Constraints: Algorithms and Hardness via Polynomial Representations. SIAM Journal on Computing, 51(3):577–626, 2022. doi:10.1137/19M1291054.
- [6] Brynmor Chapman and R. Ryan Williams. Smaller ACC0 circuits for symmetric functions. In 13th Innovations in Theoretical Computer Science Conference, ITCS 2022, volume 215 of LIPIcs, pages 38:1–38:19. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPIcs.ITCS.2022.38.
- [7] Arkadev Chattopadhyay, Navin Goyal, Pavel Pudlak, and Denis Therien. Lower bounds for circuits with MODm gates. In 47th Annual IEEE Symposium on Foundations of Computer Science (FOCS’06), pages 709–718, 2006. doi:10.1109/FOCS.2006.46.
- [8] Anuj Dawar, Benedikt Pago, and Tim Seppelt. Symmetric Algebraic Circuits and Homomorphism Polynomials, 2025. doi:10.48550/arXiv.2502.06740.
- [9] Anuj Dawar, Benedikt Pago, and Tim Seppelt. Symmetric Algebraic Circuits and Homomorphism Polynomials. In 17th Innovations in Theoretical Computer Science Conference (ITCS 2026), 2026. doi:10.4230/LIPIcs.ITCS.2026.46.
- [10] Anuj Dawar and Gregory Wilsenach. Symmetric Arithmetic Circuits. In 47th International Colloquium on Automata, Languages, and Programming, ICALP 2020, volume 168 of LIPIcs, pages 36:1–36:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2020. doi:10.4230/LIPIcs.ICALP.2020.36.
- [11] Anuj Dawar and Gregory Wilsenach. Lower Bounds for Symmetric Circuits for the Determinant. In 13th Innovations in Theoretical Computer Science Conference, ITCS 2022, January 31 - February 3, 2022, Berkeley, CA, USA, volume 215 of LIPIcs, pages 52:1–52:22, 2022. doi:10.4230/LIPIcs.ITCS.2022.52.
- [12] Anuj Dawar and Gregory Wilsenach. Symmetric Arithmetic Circuits, 2024. arXiv:2002.06451.
- [13] Zeev Dvir, Parikshit Gopalan, and Sergey Yekhanin. Matching Vector Codes. SIAM Journal on Computing, 40(4):1154–1178, 2011. doi:10.1137/100804322.
- [14] Zeev Dvir and Sivakanth Gopi. 2-Server PIR with Sub-Polynomial Communication. In Proceedings of the Forty-Seventh Annual ACM Symposium on Theory of Computing, STOC ’15, pages 577–584, 2015. doi:10.1145/2746539.2746546.
- [15] Prateek Dwivedi, Benedikt Pago, and Tim Seppelt. Lower Bounds in Algebraic Complexity via Symmetry and Homomorphism Polynomials, 2026. To appear at STOC 2026. doi:10.48550/arXiv.2601.09343.
- [16] Klim Efremenko. 3-Query Locally Decodable Codes of Subexponential Length. SIAM Journal on Computing, 41(6):1694–1703, 2012. doi:10.1137/090772721.
- [17] Parikshit Gopalan. Constructing Ramsey graphs from Boolean function representations. Comb., 34(2):173–206, 2014. doi:10.1007/S00493-014-2367-1.
- [18] Vince Grolmusz. Superpolynomial size set-systems with restricted intersections mod 6 and explicit Ramsey graphs. Combinatorica, 20(1):71–86, 2000. doi:10.1007/s004930070032.
- [19] Vince Grolmusz. A degree-decreasing lemma for (MODp-MODm) circuits. Discrete Mathematics and Theoretical Computer Science, 4(2):247–254, 2001. doi:10.46298/dmtcs.289.
- [20] Vince Grolmusz and Gábor Tardos. Lower bounds for (MODp-MODm) circuits. SIAM Journal on Computing, 29(4):1209–1222, 2000. doi:10.1137/S0097539798340850.
- [21] Johan Håstad. Computational limitations for small depth circuits. PhD thesis, Massachusetts Institute of Technology, 1986.
- [22] William He and Benjamin Rossman. Symmetric formulas for products of permutations. In 14th Innovations in Theoretical Computer Science Conference, ITCS 2023, January 10-13, 2023, MIT, Cambridge, Massachusetts, USA, volume 251 of LIPIcs, pages 68:1–68:23, 2023. doi:10.4230/LIPIcs.ITCS.2023.68.
- [23] Paweł M. Idziak, Piotr Kawałek, and Jacek Krzaczkowski. Intermediate Problems in Modular Circuits Satisfiability. In Proceedings of LICS’20: 35th Annual ACM/IEEE Symposium on Logic in Computer Science, pages 578–590, 2020. doi:10.1145/3373718.3394780.
- [24] Paweł M. Idziak, Piotr Kawałek, and Jacek Krzaczkowski. Complexity of modular circuits. In Proceedings of LICS ’22: 37th Annual ACM/IEEE Symposium on Logic in Computer Science, pages 32:1–32:11. ACM, 2022. doi:10.1145/3531130.3533350.
- [25] Paweł M. Idziak, Piotr Kawałek, and Jacek Krzaczkowski. Nonuniform Deterministic Finite Automata over Finite Algebraic Structures. In 52nd International Colloquium on Automata, Languages, and Programming (ICALP 2025), volume 334 of Leibniz International Proceedings in Informatics (LIPIcs), pages 161:1–161:14, Dagstuhl, Germany, 2025. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ICALP.2025.161.
- [26] Paweł M. Idziak, Piotr Kawałek, Jacek Krzaczkowski, and Armin Weiß. Satisfiability Problems for Finite Groups. In 49th International Colloquium on Automata, Languages, and Programming (ICALP 2022), volume 229 of LIPIcs, pages 127:1–127:20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPIcs.ICALP.2022.127.
- [27] Piotr Kawałek and Armin Weiß. Violating Constant Degree Hypothesis Requires Breaking Symmetry. In 42nd International Symposium on Theoretical Aspects of Computer Science (STACS 2025), volume 327 of Leibniz International Proceedings in Informatics (LIPIcs), pages 58:1–58:21, Dagstuhl, Germany, 2025. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.STACS.2025.58.
- [28] Alexandre Laugier and Manjil Saikia. Periodic sequences modulo , 2015. arXiv:1209.2371.
- [29] Benedikt Pago. Optimal Lower Bounds for Symmetric Modular Circuits, 2026. doi:10.48550/arXiv.2604.04760.
- [30] Roman Smolensky. Algebraic methods in the theory of lower bounds for Boolean circuit complexity. In Proceedings of the Nineteenth Annual ACM Symposium on Theory of Computing, STOC ’87, pages 77–82, New York, NY, USA, 1987. Association for Computing Machinery. doi:10.1145/28395.28404.
- [31] Howard Straubing and Denis Thérien. A Note on MODp-MODm Circuits. Theory of Computing Systems, 39(5):699–706, 2006. doi:10.1007/s00224-004-1210-2.
Appendix A Details on symmetry groups and circuits
We first give a detailed proof of the claim that symmetric -circuits can always be assumed to be rigid.
Lemma 25 (Rigidification).
Let . If is a -symmetric circuit -circuit, then there exists a rigid -symmetric -circuit that computes the same function as and satisfies .
Proof.
We construct by merging equivalent gates in . It may be necessary to repeat the following procedure more than once to accomplish rigidity. Formally, we define and a surjective map inductively from the input gates of to the root. The map keeps track of which gates of have been merged into which gates of and just simplifies the presentation. Let denote the group consisting of all circuit automorphisms of that fix every input gate of . As long as is not rigid, there is at least one -orbit of gates that is not a singleton set.
By our convention, for every variable, there is a unique input gate with that label in , so input gates never violate rigidity. Thus, we let the input gates of be the same as in , and define as the identity map on them. Now assume by induction that we have constructed and up to layer . We describe the construction on layer . Let be the set of gates in layer . For each -orbit , we introduce a new gate in layer of , and we let for every . The operation type of is the same as that of each gate in .
To define the connections between layer and layer in , we first note:
Claim 26.
Let be in the same -orbit. Then there is a bijection such that for each , and are in the same -orbit.
Proof.
Since are in the same orbit, there exists such that , and the action of on defines a bijection with the claimed property. By the claim, for any two gates , it holds that . Therefore we can pick an arbitrary and define the set of children of in as
For each child of in , we let the multiplicity of the edge between and be defined as follows. Let denote the multiplicity of the edge between and in . Then in , the multiplicity of the edge is
This finishes the construction of . Note that by construction, two gates are in the same -orbit if and only if . Clearly, .
Claim 27.
computes the same function as .
Proof.
We show by induction that for every gate , computes the same function as . For the input gates this is clear. Now consider the inductive step for layer . Let be a gate on layer , labelled with the operation , and let be its children in . Then it computes
Now the children of in are defined as the -images of the children of some gate in the same orbit of that was used in the construction. Hence, there exists a that maps to and the children of to the children of (preserving edge multiplicities). It is generally true for every and any that and compute the same function. Thus, we have
where the last equality holds by induction hypothesis. In the construction of , the edge multiplicities between and its children are chosen such that indeed computes the above sum modulo , and checks for membership in . This finishes the inductive step.
Claim 28.
Every extends to a circuit automorphism of , that is, is -symmetric.
Proof.
Let . Since is -symmetric, there is an automorphism of that extends to. The -image of every -orbit is again a -orbit. Thus, we can define a bijection by setting for every -orbit . By construction of and because is an automorphism of , is an automorphism of . The construction is iterated until the resulting circuit is rigid, which has to happen at some point, because as long as there is a non-singleton -orbit, the construction strictly reduces the number of gates.
Lemma 4. [Restated, see original statement.]
Let be a -symmetric rigid circuit, for . Let be an assignment to the variables, let be a gate, and let . Then
Proof.
By induction on the circuit structure. Let be an input gate labelled with a variable . Let . Then is an input gate labelled with . It holds and . In other words, is the -th projection, and is the -th projection. So, as desired, we have
For the inductive step, let be an internal gate of the circuit and assume that the statement holds for all children of . Let denote the children of . Let denote the operation computed by , which is the same as the operation of . The proof works for every fully symmetric operation , in particular for . Then
The second equality is the induction hypothesis for . The third equality is true because the gate computes applied to the outputs of the gates , and the order of the arguments of is irrelevant by symmetry.
Lemma 6. [Restated, see original statement.]
-
1.
Let and be a -symmetric rigid circuit. Let be such that and . Then for every , has a support of size less than .
-
2.
Let be an -symmetric rigid circuit, for some -tuple such that . For every block , let be such that and . Then for every , has a -support with .
Proof.
The first result is stated in [12, Theorem 14] for Boolean circuits symmetric under the action of on variables . The symmetric circuits we consider here can be viewed as circuits in the variables , and thus, [12, Theorem 14] also applies here (the particular operation type of the gates is irrelevant for this).
With some more work, (2) follows from (1). Fix a gate . We can assume that is an internal gate, as for input gates, there always exists a -support of size or , depending whether the index of the variable that is labelled with is in or not. Let . Define a new circuit from as follows. Remove all input variables such that . Then, for every , identify all input gates labelled with variables , for every . This leaves us with a circuit with one input variable for every . By Lemma 25, we may again assume that it is rigid. This is the circuit . The original circuit is in particular symmetric under , the setwise stabiliser of in ; hence is also -symmetric. The action of on is that of , so can really be seen as a -symmetric circuit. By the assumption on orbit size in (2), , and we have assumed that . Moreover, we are assuming that . Hence, (1) can be applied to , where we just rename to . This means that in , the gate has a support of size at most . We now show that this is also a -support of in . We have to show that
So let and choose an arbitrary that fixes setwise and permutes the elements of according to . Since is -symmetric, extends to a circuit automorphism of . This also induces a circuit automorphism of , which behaves like on the internal gates (noting that except for the input gates and the connections to them, and are identical circuits). Now by definition of support, fixes : Indeed, acts on the inputs of as , and fixes the support of pointwise. But since and agree on , also . Hence, , and its restriction to is , so , which is what we had to show.
