Manuscript Offprint
arXiv:2610.17006Sensitivity of Rotation Symmetric Boolean Functions via Binary Necklaces
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Rotation symmetric Boolean functions are Boolean functions invariant under cyclic permutation of their variables and can be represented by binary necklaces. We express local sensitivity as a weighted bichromatic degree in the necklace quotient and derive an exact formula for the multiplicities between neighboring necklaces. For an odd prime number of variables, we obtain explicit sensitivity formulas and show that multiplicity corrections occur only on an asymptotically negligible family of necklaces. For monomial rotation symmetric Boolean functions, we prove that every odd-degree function has maximum sensitivity, determine the sensitivity of every quadratic function, and determine the sensitivity of the consecutive quartic family. We also determine exactly the sensitivity of cyclic run-threshold functions for arbitrary length and threshold.
Keywords. rotation symmetric Boolean function; sensitivity; binary necklace; cyclic symmetry; Boolean function complexity; Hamming distance.
1 Introduction
For a Boolean function and an input , the sensitivity is the number of coordinates whose individual flip changes the value of , and
We also write
Sensitivity is one of the basic local complexity measures of Boolean functions and has been extensively studied in relation to symmetry, transitivity, block sensitivity, and decision-tree complexity.
A Boolean function is rotation symmetric if it is invariant under the cyclic permutation of its coordinates. Writing
with indices in , this means
Corresponding author.
2020 Mathematics Subject Classification. Primary 94D10; Secondary 05E18.
The orbit
is a binary necklace. Thus a rotation symmetric Boolean function is equivalently a two-coloring of the set of binary necklaces of length n. Rotation symmetric Boolean functions have a substantial literature, particularly in cryptography and in the study of transitive Boolean functions; see, for example, Stănică and Maitra [9]. Chakraborty [1] studied sensitivity for cyclically invariant Boolean functions and obtained asymptotic constructions and lower bounds.
Rotation symmetric Boolean functions have also been studied extensively through their algebraic and cryptographic parameters. Cusick and Stănică investigated fast evaluation, Hamming weights, and nonlinearity of rotation symmetric functions [5]. Cusick and Cheon studied affine equivalence for cubic rotation symmetric Boolean functions [4], while Cusick later established linear weight recurrences for arbitrary rotation symmetric Boolean functions [3]. More recent work continues to investigate structural and cryptographic properties such as correlation immunity [10]. This sustained line of research illustrates a useful feature of rotation symmetry: it imposes enough structure to permit exact analysis while retaining substantially richer behavior than full permutation symmetry.
The present paper also continues the authors' recent work on exact complexity measures of structured Boolean functions. For elementary symmetric Boolean functions of arbitrary degree, Zhang and Li recently determined the certificate complexity completely [11], while Li and Zhang subsequently determined sensitivity, average sensitivity, and block sensitivity and classified the relations among sensitivity, block sensitivity, and certificate complexity [7]. Those functions are invariant under the full symmetric group on the variables. Here we move to the broader class of rotation symmetric Boolean functions, where only cyclic invariance is assumed, and seek similarly explicit sensitivity formulas by exploiting the finer orbit structure provided by binary necklaces.
From the complexity viewpoint, rotation symmetric functions are also natural examples of transitive Boolean functions, since the cyclic group acts transitively on the coordinate set. Although many algebraic and cryptographic parameters of rotation symmetric Boolean functions have been studied, exact combinatorial complexity measures have received comparatively less attention. Chakraborty's work [1] treats sensitivity of cyclically invariant Boolean functions primarily from an asymptotic viewpoint. Our approach is complementary: we exploit the binary-necklace quotient to obtain exact local formulas.
Building on the established necklace quotient viewpoint, our first purpose is to develop an exact necklace-level description of sensitivity. The quotient of the Boolean cube by rotation is naturally a multigraph: if and are necklaces, the directed multiplicity
counts the one-coordinate flips of a representative of X that land in Y. Such flip multiplicities in the necklace quotient are already present in the combinatorial literature; see Gregor et al. [6]. If denotes the induced Boolean function on necklaces, then the local sensitivity at X is the weighted bichromatic degree
The main issue is therefore to determine the multiplicities structurally.
For , let
where Stab(x) denotes the subgroup of cyclic rotations that fix x. Let
For a coordinate i, define
Our first main formula is
It follows from an orbit-stabilizer double count and separates the multiplicity into exact rotational symmetry and distance-two near-periodicity. Rotations at Hamming distance two have recently been classified in detail by Makhynko [8]; we use that structure rather than claim it as new.
When is an odd prime, the formula simplifies substantially. Every nonconstant length- word has trivial rotational stabilizer, and the relevant distance-two necklaces are cyclic arithmetic intervals. We show that interior necklace multiplicities are 1 or 2 and obtain explicit local sensitivity formulas for every Hamming layer, including the exceptional weight-one and weight- layers. Moreover, the multiplicity correction is required only for an asymptotically negligible set of necklaces: using Makhynko's enumeration, the exceptional proportion is
Thus for asymptotically almost every prime-length necklace, local sensitivity is simply its ordinary bichromatic degree in the unweighted necklace quotient.
We also study monomial rotation symmetric functions across degrees. If the generating monomial has support A, degree d, and rotational stabilizer of order h, then every coordinate occurs in exactly d/h distinct orbit monomials. This yields a parity theorem at the all-one input and, in particular, the general conclusion
Thus the genuinely nontrivial degree-by-degree problem begins with even degree. We solve degree two completely. If is generated by and we are outside the short-orbit case even, , then with
we prove
The proof reduces sensitivity to the maximum number of transitions on the cycles of the permutation . In particular, for every odd prime , all quadratic MRS functions have sensitivity .
For degree four, we do not attempt to classify all monomial rotation symmetric functions. Instead, we completely solve the natural consecutive quartic family generated by :
For , writing , we prove
The proof uses a finite-state description of local sensitivity and a period-six defect certificate. In particular, although the all-one input has zero sensitivity in this even-degree family, maximum sensitivity n is attained whenever .
Our second purpose is to obtain an exact sensitivity formula for a standard cyclically invariant example. For , define the cyclic run-threshold function
Chaubal and Gál [2] used this type of consecutive-ones construction to obtain asymptotically tight sensitivity behavior for a class of transitive functions. We determine the sensitivity of exactly for arbitrary n and r:
and consequently
The proof of the 0-sensitivity formula reduces to a sharp cyclic block-length optimization lemma.
Main contributions. The main contributions of this paper can be summarized as follows. First, we express sensitivity in the established weighted-necklace framework and derive a stabilizer/near-period formula for neighboring-necklace multiplicities, with explicit consequences for odd prime length. Second, for monomial rotation symmetric Boolean functions, we prove that every odd-degree MRS function has maximum sensitivity and completely determine the sensitivity of all quadratic MRS functions. Third, for degree four we completely solve the natural consecutive family generated by , while making no claim of a classification for arbitrary quartic generators. Finally, we determine the sensitivity exactly for cyclic run-threshold functions for arbitrary length and threshold.
The paper is organized as follows. Section 2 develops the necklace formulation of sensitivity, Section 3 studies rotations at Hamming distance two, and Section 4 proves the general multiplicity formula. Section 5 treats the prime-length near-period structure, while Section 6 derives the odd-prime sensitivity formulas and generic-simplicity consequences. Section 7 studies monomial rotation symmetric functions, including odd-degree, quadratic, and consecutive quartic cases. Section 8 establishes the exact cyclic run-threshold formula. Section 9 records computational verification, Section 10 presents further questions, and Appendix A provides the finite-state certificate used for the consecutive quartic case.
For rotation symmetric , write . Since rotation merely permutes the coordinate positions, for every . Hence sensitivity is constant on each necklace. For a necklace , we therefore define
which is independent of the choice of representative . For necklaces and , define
Lemma 2.1. The quantity is independent of the representative x of X.
Proof. If , then , and is a bijection.
Theorem 2.2 (Necklace sensitivity formula). For every necklace X,
Proof. Partition the sensitive coordinates according to the necklace reached by their flip.
3 Periods and near-periods
For and , define .
Theorem 3.1 (Flip-equivalence criterion). For , iff for some , either and , or and .
Proof. Suppose first that . By the definition of a necklace, there is some such that
Rotation carries the flip at coordinate i to a flip at coordinate ; that is,
Hence
and, after flipping coordinate on both sides,
There are now two cases.
If , the two flips on the right occur at the same coordinate and therefore cancel. Thus
so stabilizes , and . This is alternative (i).
If , then the two flips occur at distinct coordinates. Consequently differs from exactly at the two coordinates and . Therefore
so . This is alternative (ii).
Conversely, suppose that alternative (i) holds. Then and , so
Hence .
Finally, suppose that alternative (ii) holds. Since
the word is obtained from x by flipping exactly those two coordinates; equivalently,
Flipping coordinate gives
and again . Thus the two stated alternatives are both necessary and sufficient.
Call nonzero k a 2-near-period if .
Theorem 3.2 (Distance-two rotation structure; Makhynko [8]). Fix , put and . The permutation has cycles of length . Then iff is constant on cycles and, on the remaining cycle, has one nonempty proper consecutive arc of ones and one of zeros; equivalently its cyclic pattern is , .
Proof. This is the prescribed-shift one-active-cycle structure appearing in [8]; we include the argument for completeness.
The permutation decomposes into disjoint cycles, each of length . Fix one such cycle and write it in cyclic order as
where all indices are taken modulo n. By definition,
with interpreted modulo . Hence the number of elements of lying on is exactly the number of transitions between 0 and 1 in the cyclic binary word
A cyclic binary word has an even number of transitions. Indeed, whenever the value changes from 0 to 1, it must later change from 1 back to 0 before returning to the starting position. Thus a cycle contributes either 0 or at least 2 elements to . Moreover, it contributes 0 precisely when x is constant on that cycle.
Suppose now that . Since the cycles are disjoint and every cycle contributes an even nonnegative number of disagreements, exactly one cycle contributes 2, while each of the remaining cycles contributes 0. Therefore is constant on those cycles. On the unique active cycle there are exactly two transitions. Starting immediately after one of them, all the 1's occur consecutively until the second transition, and all the remaining entries are 0's. Since both transitions occur, both symbols appear. Consequently, after a cyclic choice of starting point, the pattern on this cycle is
Equivalently, the 1's form one nonempty proper consecutive arc of the cycle and the 0's form the complementary arc.
Conversely, suppose that is constant on cycles and that on the remaining cycle its cyclic pattern is with . Each constant cycle contributes no element to , while the active cycle has exactly two transitions, one from 1 to 0 and one from 0 to 1. Hence that cycle contributes exactly two elements to , and therefore .
4 The multiplicity formula
Let
where Stab(x) denotes the subgroup of cyclic rotations that fix x. Define
Theorem 4.1 (Multiplicity formula). If and , then
Hence .
Proof. Set , so that , and consider
We count in two ways.
First fix . There exists a rotation with if and only if . By the definition of , there are exactly such coordinates . For each such , choose one rotation satisfying . Then
Thus the rotations carrying to form a coset of and hence there are exactly of them. Consequently,
We now count by fixing the rotation . Since rotation carries a flip at i to a flip at ,
Hence a coordinate with exists precisely when
If , then this equality holds with the unique choice . Therefore every stabilizing rotation contributes exactly one pair to , for a total contribution of .
Suppose next that . The flip-equivalence criterion from Theorem 3.1 shows that the above equality can hold only when
Indeed, if , then flipping in removes one of the two disagreements with , and flipping in removes the other, giving
Conversely, if and , then and can differ only at the two coordinates and ; hence and . Thus the nonstabilizing rotations that contribute to are exactly those counted by , and each contributes exactly one pair. Therefore
Equating the two counts gives
and hence
Since is an integer, it follows immediately that .
Proposition 4.2 (Balance identity). For adjacent necklaces X and Y,
Proof. Let be the set of edges of the n-dimensional hypercube having one endpoint in the orbit X and the other endpoint in the orbit Y. We count in two ways.
First fix a word . By definition, is the number of coordinates for which the one-coordinate flip belongs to . This number is independent of the chosen representative of . Indeed, if , then rotation commutes with a coordinate flip in the sense that
with indices taken modulo . Since is itself a rotation orbit, if and only if . Thus every vertex of is incident with exactly edges whose other endpoint lies in .
Consequently, counting the edges of from their endpoints in X gives
The same argument with the roles of X and Y reversed shows that every vertex of Y is incident with exactly edges whose other endpoint lies in X. Hence
Equating the two expressions for the same set of hypercube edges yields
as claimed.
5 Odd prime length
Throughout Sections 5 and 6, assume p is an odd prime. (The case p = 2 is immediate and may be checked separately.) Every nonconstant word of length p is aperiodic. Makhynko's prime-length classification shows that the distance-two necklaces are represented by cyclic arithmetic intervals [8]. We record the following elementary uniqueness lemma because it isolates the precise step property needed in the sensitivity arguments below.
Lemma 5.1 (Uniqueness of the step). Let , . If with , then .
Proof. Put
By hypothesis, , where . In the -arithmetic ordering of , translation by sends
to the next w - 1 elements
The only additional point of is , which does not lie in : otherwise for some , contradicting and . Hence
Since J = I, this gives
We now use the special form to determine . Choose the integer representative .
First suppose . Then the translate does not wrap around modulo , so
If , then , contradicting . Thus , and in this case
Therefore , and hence .
It remains to consider . Set , so and . Thus in . The intersection may have two contributions: the unwrapped portion contributes elements, and the wrapped portion contributes elements. Thus
If , the equality yields , hence . If , the equality becomes , which forces , contrary to . Therefore only is possible, giving .
Consequently , as claimed.
Corollary 5.2 (Prime arithmetic-interval uniqueness). If and has arithmetic-progression representations with nonzero steps and , then .
Proof. Write the two representations as
Since and p is prime, k is invertible modulo p. Apply the invertible affine map
The first representation is carried to the standard interval
The second representation is carried to
Thus the same set is an arithmetic progression of length with nonzero step . By the preceding lemma, . Therefore
and multiplying by gives , as claimed.
Lemma 5.3 (Prime near-period lemma). If , then for every .
Proof. Let and put . Recall that counts the nonzero rotations for which
Suppose first that a nonzero step contributes to . By the distance-two rotation structure, the support of is a cyclic arithmetic interval with step . Thus, for a suitable ,
Under translation by k, all interior points of this progression remain in S; the only membership changes occur at its two ends. Consequently
Since contributes to precisely when , we must have
Equivalently,
Now suppose that a second nonzero step also contributes to . Then is another step giving an arithmetic-progression representation of the same support . By Corollary 5.2 (prime arithmetic-interval uniqueness), . Because , the only possibility is .
To determine when -k can contribute, write the same progression in the reverse direction:
For the step -k, the two disagreement positions are therefore
The condition is equivalent to
It remains to observe that the two possible sets of indices in (5.1) and (5.2) are disjoint when . Indeed, an equality between an element of
would, after cancelling a and using in , force one of
The first and last are impossible, while the middle two give respectively and , both excluded by .
Hence no fixed coordinate can satisfy the contribution condition for both and . Since every other possible near-period step is ruled out by Corollary 5.2, at most one nonzero rotation contributes to . Therefore
as claimed.
Theorem 5.4 (Prime multiplicities). If , then
From the constant necklace to the unique adjacent weight-one (respectively weight- ) necklace, the directed multiplicity is p.
Proof. Assume first that . Since is prime and is nonconstant, the only rotation fixing is the identity; hence . Moreover, flipping one coordinate changes the weight by one, so . Thus is also nonconstant, and therefore .
The multiplicity formula of Theorem 4.1 consequently reduces to
By the prime near-period lemma, for every . Since is a nonnegative integer, , and hence
In particular, multiplicity two occurs exactly when , that is, when there is a nontrivial rotation with and .
It remains to consider the extreme layers. The constant word has a single necklace, while flipping any one of its coordinates produces a weight-one word. All weight-one words are rotations of one another, so all coordinate flips land in the unique weight-one necklace. Therefore the directed multiplicity from to that necklace is . The same argument, with zeros and ones interchanged, shows that the directed multiplicity from to the unique weight- necklace is also .
6 Sensitivity for odd prime length
For necklaces and , write if they are neighboring necklaces, meaning that there exist representatives and with Hamming distance ; equivalently, for some and some coordinate . For a necklace , let
be the number of bichromatic neighboring necklaces of X. Recall from Section 2 that for any representative ; this is well defined because sensitivity is constant on a necklace. For an interior necklace, let
Theorem 6.1 (Prime local sensitivity formula). If , then
Proof. Fix a representative . By the necklace sensitivity formula from Section 2,
Only neighboring necklaces can have , so the sum is over the bichromatic neighbors of . Because , both and every necklace obtained from by one coordinate flip are nonconstant. The prime-length multiplicity result proved immediately above therefore gives
for every neighbor Y of X.
Now separate the bichromatic neighbors according to their multiplicity. Each bichromatic neighbor contributes at least one to the sensitivity sum, and the number of such neighbors is exactly . A bichromatic neighbor with multiplicity two contributes one further unit. By definition, the number of these doubled bichromatic neighbors is . Consequently,
This proves the formula.
Suppose is a cyclic arithmetic interval
The two possible doubled neighboring necklaces are
For necklaces X, Y, put if and 0 otherwise.
Corollary 6.2 (Explicit prime formula). Let . If is not a cyclic arithmetic interval, then
If is a cyclic arithmetic interval as above, then
In particular,
Proof. By Theorem 6.1,
so it remains only to identify the neighboring necklaces that can have multiplicity two.
Suppose first that is not a cyclic arithmetic interval. If some neighbor had , then the prime multiplicity formula would give . Thus would admit a nontrivial rotation at Hamming distance two. By the distance-two structure from Section 3, its support would then have to be a cyclic arithmetic interval, a contradiction. Hence every neighboring necklace has multiplicity one, so and
Now suppose
For the rotation with step k, the two endpoints of the resulting distance-two disagreement give the flip-equivalence
Similarly, using the reverse step -k gives
Thus and are precisely the two possible doubled neighboring necklaces. The prime arithmetic-interval uniqueness result shows that any other nontrivial distance-two rotation has step , so no third doubled neighbor can occur. Consequently the doubled bichromatic neighbors are exactly those among and for which the value of differs from . Therefore
and substitution into Theorem 6.1 yields
Since each is either 0 or 1, the final bound
follows immediately.
For , let denote a necklace of Hamming weight when the necklace is unique; in particular, , is the unique weight-one necklace, is the unique weight- necklace, and .
Proposition 6.3 (The four boundary layers). For an odd prime p,
Moreover,
and
In each of the two sums there are exactly distinct neighboring necklaces.
Proof. The constant-word formulas are immediate. For , choose the representative whose unique 1 is at coordinate 0. Flipping coordinate 0 gives , with multiplicity 1. Flipping a zero coordinate gives the weight-two support . Two such supports and are rotation-equivalent if and only if or . Since is odd, the nonzero residues therefore split into pairs , and every resulting weight-two neighboring necklace has multiplicity 2. This proves the formula for . The formula for follows either by the same argument or by complementing all bits.
Theorem 6.4 (Complete odd-prime sensitivity formula). Let p be an odd prime and let f be rotation symmetric on p variables. The local sensitivity at every necklace is given as follows:
(i) at weights 0 and p, by the first two formulas in the boundary-layer proposition;
(ii) at weights 1 and p - 1, by the two boxed boundary-layer formulas;
(iii) at weights 2, ..., p - 2, by Theorem 6.1 and Corollary 6.2.
Consequently, is the maximum of these explicitly determined local quantities over the necklaces of length p.
6.1 Two consequences of the prime formula
The complete prime-length formula gives a simple characterization of when maximum sensitivity occurs.
Corollary 6.5 (A criterion for submaximal sensitivity). Let p be an odd prime and let f be rotation symmetric on p variables. Then
if and only if every binary necklace X of length p has at least one neighboring necklace Y with
In particular, implies that the constant necklace and the unique weight-one necklace have the same value, and likewise at the upper end of the Hamming layers.
Proof. For every necklace ,
because the multiplicities partition the one-coordinate flips of . Hence the weighted bichromatic degree equals exactly when every neighboring necklace is bichromatic. Taking the maximum over proves the equivalence. The final assertion follows by applying the criterion to the constant necklaces.
The correction from ordinary necklace degree to weighted degree is confined to a very small exceptional family. Let denote the number of length-p necklaces admitting a nontrivial rotation at Hamming distance two. Makhynko's prime-length enumeration gives
Notice that the two constant necklaces are not included in : every nontrivial rotation fixes a constant word, so its nontrivial rotational Hamming distance is 0, not 2. Thus subtracting the two constant necklaces in addition to does not double count.
The total number of binary necklaces of prime length p is
Corollary 6.6 (Generic simplicity at prime length). Let p be an odd prime. Apart from the two constant necklaces and the necklaces admitting a nontrivial rotation at Hamming distance two, every necklace X satisfies
for every rotation symmetric Boolean function f. Consequently at least
necklaces have this property. In particular, the proportion of necklaces for which a multiplicity correction can be required is
and therefore tends to zero as through the odd primes.
Proof. For a nonconstant necklace X with no nontrivial rotation at Hamming distance two, the flip-equivalence criterion and triviality of the stabilizer imply that the p one-bit flips of a representative lie in p distinct necklaces. Thus every outgoing multiplicity is one and the weighted bichromatic degree equals the ordinary bichromatic necklace degree:
Removing the two constant necklaces and the distance-two necklaces gives the displayed lower bound. Finally,
Indeed, grows quadratically (not linearly), so dividing its count by gives an exceptional proportion of .
Remark. The preceding corollary separates the exact and generic aspects of the theory. Multiplicity corrections are essential for a complete formula, but for prime length they are supported on an asymptotically negligible family of necklaces.
7 Sensitivity of monomial rotation symmetric functions
Monomial rotation symmetric Boolean functions form one of the most studied subclasses of rotation symmetric functions. Let
and let
Write
for the set of distinct translates of A, and put
The monomial rotation symmetric Boolean function generated by A is
Thus short monomial orbits are automatically counted without duplication.
Proposition 7.1 (Incidence formula). Every coordinate of belongs to exactly
distinct monomials occurring in .
Proof. There are distinct monomials and each contains coordinates, so the total number of coordinate-monomial incidences is . Cyclic rotation acts transitively on the coordinate set and preserves the family ; hence every coordinate belongs to the same number of orbit monomials. Therefore
which proves the formula.
Let
be the rotational stabilizer of the support A, and put . By orbit-stabilizer,
Moreover, acts freely on , so each -orbit has size h. Since A is -invariant, it is a union of such orbits; hence
Consequently the incidence number can also be written as
Theorem 7.2 (Parity theorem for MRS functions). Let be generated by a degree-d monomial whose rotational stabilizer has order . Then
In particular, if d/h is odd, then
Proof. At the all-one input every monomial in has value 1. Flipping a fixed coordinate changes precisely the orbit monomials containing . By the incidence formula, their number is
Therefore
for every coordinate . If is odd, all coordinates are sensitive at ; if is even, none is sensitive there.
Corollary 7.3 (Odd-degree MRS functions). Every monomial rotation symmetric Boolean function of odd degree d satisfies
Proof. Since , oddness of implies that both and are odd. The parity theorem applies. ☐
Thus all odd degrees have maximum possible sensitivity, including short-orbit monomial functions. The first nontrivial degree is therefore degree two, which we now determine completely. Quadratic rotation symmetric Boolean functions have been studied extensively from the viewpoints of Hamming weight, balancedness, affine equivalence, and weight recurrences; see, for example, the work of Cusick and collaborators cited in the Introduction.
For
let be the rotation symmetric Boolean function generated by the monomial , with each distinct rotated monomial included exactly once. Thus, except in the short-orbit case even and ,
Theorem 7.4 (Sensitivity of quadratic MRS functions). Let .
(i) If n is even and , then
(ii) Otherwise, put
Then
Proof. First suppose that n is even and . The orbit of the generating monomial has size , and
Each coordinate occurs in exactly one monomial. Hence
where indices are taken modulo n. At every coordinate is sensitive, so .
Now assume that we are not in the short-orbit case. Each coordinate occurs in exactly two distinct rotated monomials, namely
Therefore the Boolean derivative in coordinate j is
Consequently
Consider the permutation
It has
cycles, each of length
On each cycle, the contribution to the last display is exactly the number of transitions in a cyclic binary sequence of length L. If L is even, an alternating assignment attains L transitions. If L is odd, a cyclic binary sequence has an even number of transitions and therefore at most L - 1; this value is attained by an alternating assignment with one repeated bit at the closing edge. The cycles are disjoint and may be assigned independently. Thus
as claimed.
Corollary 7.5 (Odd prime length). Let p be an odd prime. For every
the quadratic monomial rotation symmetric Boolean function satisfies
Thus all quadratic MRS functions of odd prime length have the same sensitivity, independent of the spacing of the generating monomial.
Proof. Since is an odd prime and , we have and . Therefore
In the notation of the preceding theorem, . Here , so . Also is odd. The theorem therefore gives .
7.1 The consecutive quartic family
The parity theorem shows that odd-degree MRS functions always have maximum sensitivity, while the quadratic case exhibits genuinely arithmetic behavior. The general degree-four problem is substantially broader: after rotation, a quartic generating monomial may have support
and we do not claim a classification for arbitrary choices of . In this subsection we completely determine the sensitivity only for the fundamental consecutive family . For , let
with distinct rotated monomials included once. For this is the single monomial .
Theorem 7.6 (Consecutive quartic sensitivity). For , write
Then
Equivalently,
For the short-orbit case n = 4,
Proof. For , the Boolean derivative at coordinate j is
(Q1)
Thus sensitivity can be encoded by a finite weighted state graph. A state is a six-bit word
Appending gives the transition
with weight
For a cyclic input x, the corresponding closed walk has length n, and its total weight is exactly . Hence, if denotes the number of weight-zero transitions,
The weight-one subgraph has a unique recurrent component, namely the directed six-cycle
Assign phases to these six states in the displayed order.
We distinguish two cases. First suppose that the closed state walk visits the six-cycle. Decompose the walk at successive visits to the cycle. The finite-state excursion certificate in Appendix A shows that every excursion which starts and ends on the cycle and has no intermediate visit to it satisfies
where
and
Since the complete walk closes, the sum of the excursion phase defects is congruent to modulo 6. The triangle inequality for therefore gives
Now suppose that the closed walk avoids all six states in (Q4). The avoidance certificate in Appendix A assigns an integer potential to the remaining 58 states such that every allowed transition of weight satisfies
Summing around a closed walk makes the potential terms telescope, and hence
Thus
For ,
For completeness, direct enumeration of all binary inputs using (Q1) gives the following sensitivity distributions, where an entry means that exactly inputs have sensitivity :
| n | sensitivity distribution (s : c) | |
|---|---|---|
| 5 | 0 : 17, 2 : 10, 4 : 5 | 4 |
| 6 | 0 : 34, 1 : 12, 2 : 12, 6 : 6 | 6 |
| 7 | 0 : 51, 1 : 28, 2 : 21, 4 : 21, 6 : 7 | 6 |
Each row sums to , and the maxima agree with . Consequently, in both cases,
It remains to show sharpness. For the six residue classes modulo 6, the following cyclic words attain equality:
| r | word |
|---|---|
| 0 | |
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | . |
(Q9)
Direct substitution into (Q1) shows that these words have respectively
nonsensitive coordinates. Thus they attain the upper bound in (Q8). Finally, when , , and every coordinate is sensitive at .
Remark. The theorem illustrates behavior that cannot be detected from the all-one input alone. Since the degree is even, the parity theorem gives for the full-orbit cases, yet has maximum possible sensitivity whenever .
8 Exact sensitivity of cyclic run-threshold functions
We next apply the sensitivity viewpoint to a standard cyclically invariant construction. Chaubal and Gál studied the function that detects a cyclic block of consecutive ones, using a threshold of order , and obtained asymptotically tight sensitivity estimates for that construction [2]. Here we determine the sensitivity exactly for arbitrary and arbitrary threshold.
For , define
This function is rotation symmetric. Write for the maximum local sensitivity over inputs on which .
Lemma 8.1 (Cyclic block optimization). Let . Among all cyclic sequences of nonnegative integers
satisfying
the minimum of is
Proof. Summing the inequalities gives
hence the displayed lower bound. It remains to attain it. If is even, alternate and . If is odd and is even, take every . Finally, if both and are odd, write and take entries equal to and entries equal to , arranged cyclically so that no two entries equal to are adjacent. Every adjacent sum is then at least , and the total is .
Theorem 8.2 (Exact run-threshold sensitivity). For ,
Consequently,
Proof. First consider a 1-input. A sensitive coordinate must be a 1 whose deletion destroys every cyclic run of length at least r. Hence all sensitive coordinates lie in a single maximal run of ones. If that run has length , deleting a position is sensitive only when the remaining portions on both sides have lengths at most . The number of such positions is at most r. Equality is attained by a word having exactly one run of r ones and all other coordinates zero. Thus .
Now let be a 0-input and suppose that it has sensitive zero coordinates. For each such zero, let and be the lengths of the adjacent runs of ones on its two sides. Flipping that zero creates a run of length , so sensitivity implies
Summing over the m sensitive zeros, and observing that every 1-coordinate can be counted at most twice, gives
Since x contains at least these m zero coordinates,
Therefore
and hence
For the reverse inequality, put
If , then necessarily ; the word is a 0-input whose unique zero is sensitive, so the desired lower bound holds.
Assume now that . By the cyclic block optimization lemma, choose nonnegative integers with
and
The initial cyclic word
has length
The ceiling brackets in both displayed expressions are essential when is odd. Since , we have ; hence because is an integer. We enlarge the one-blocks, rather than the zero gaps, until their total length is exactly . This is possible while keeping every . Indeed, the preceding inequality gives
For the upper capacity, write
Since ,
Hence
Starting from the minimizing sequence, increase entries one unit at a time, never beyond , until their sum is . The inequalities are preserved.
The resulting length-n cyclic word
has no run of ones, because every , and hence is a 0-input. Flipping any displayed zero joins its two adjacent one-blocks into a run of length
so all m displayed zeros are sensitive. Therefore
The upper and lower bounds agree.
Corollary 8.3. For ,
Thus the cyclic run-threshold construction gives an explicit 11-variable rotation symmetric Boolean function of sensitivity 4.
Remark. The construction itself and its sensitivity behavior are known from the work of Chaubal and Gál [2]. The contribution here is the exact two-parameter formula above. In particular, choosing near the balance point recovers the familiar scale, but the asymptotic construction is not claimed as new.
9 Computational verification
The consecutive quartic formula and its residue-class constructions were independently checked for a broad range of lengths using both direct Boolean-cube evaluation in small dimensions and the finite-state formulation.
The incidence and parity formulas for monomial rotation symmetric functions were also checked directly for all monomial supports in small dimensions, including short orbits; no discrepancy was found.
As an additional check, the quadratic MRS sensitivity formula was compared with direct exhaustive evaluation on the Boolean cube for a range of small values of n and all admissible k, including the short-orbit cases; no discrepancy was found.
As a check on the general multiplicity formula, an exhaustive independent computation was performed for all binary necklaces of lengths and all flip positions. In total, 8,488 necklace/position cases were checked. The directly counted multiplicity agreed with the formula in every case, and no divisibility failure occurred. The case count is independently specified by the binary-necklace numbers (6, 8, 14, 20, 36, 60, 108, 188, 352) for lengths , respectively, since . These computations are supporting verification only; the results above are proved independently.
For the prime near-period lemma, exhaustive checks for the odd primes found no counterexample to in the range .
As an additional end-to-end check of the sensitivity formulas, for p = 3 and p = 5 we enumerated every rotation symmetric Boolean function (respectively 16 and 256 functions). For each function we computed sensitivity directly on the full Boolean cube and independently from the weighted necklace formula. The two values agreed in every case. This check includes the constant, weight-one, interior, weight- , and weight-p layers.
The run-threshold formula was independently checked by exhaustive evaluation of every Boolean input for all and every ; both and agreed with the theorem in every case.
Reproducibility of the finite checks. The necklace multiplicity check can be repeated by choosing, for each in , the lexicographically least representative of every rotation orbit, and, for each coordinate , setting . Count directly the indices for which and compare with the right-hand side of the multiplicity identity in Section 4, evaluating the stabilizers and near-period counts from their definitions. This specifies the 8,488 test pairs without requiring a particular implementation or a prescribed order of orbit representatives. Likewise, the small-input sensitivity tests can be reproduced by computing for each binary input and every coordinate , and taking the relevant maxima. The finite-state assertions for the consecutive quartic case are explicitly encoded in Appendix A. The source code used for the historical checks is not included with this manuscript; the descriptions here record the test domains and comparison procedures and do not claim an independently archived software package.
10 Further questions
The necklace multigraph and its flip multiplicities are known [6], and the distance-two rotational structure used above overlaps the recent classification of Makhynko [8]. Chakraborty's work [1] addresses asymptotic sensitivity constructions and lower bounds for cyclically invariant functions. Chaubal and Gál [2] studied the cyclic consecutive-ones construction and its asymptotic sensitivity; our run-threshold result above gives an exact formula for arbitrary parameters rather than a new construction. To the best of our knowledge, the stabilizer/near-period multiplicity identity
and the resulting complete odd-prime local sensitivity formulas have not previously been stated in this form.
The formulas suggest several further directions. In particular, the general quartic MRS problem remains open: determine the sensitivity of functions generated by
for arbitrary , including possible dependence on the arithmetic structure of the difference set of and on short rotational orbits. Our quartic theorem solves only the consecutive support .
Other directions include analogous closed forms for composite , structural characterizations of low-sensitivity rotation symmetric functions from weighted necklace boundaries, and comparisons with known asymptotic results for transitive and cyclically invariant Boolean functions.
A Finite-state certificate for the consecutive quartic case
This appendix supplies the finite certificate used in the proof of the consecutive quartic theorem. Consider the 64 six-bit states and the two outgoing transitions from each state defined by (Q2). Retain the six recurrent weight-one states in (Q4) and assign them phases in cyclic order.
For an excursion from the six-cycle back to the six-cycle, with no intermediate visit to the cycle, let , let be the number of weight-zero edges, and let
Contracting maximal weight-one portions reduces the verification to a finite shortest-path calculation on the explicit state graph. More explicitly, form the augmented directed graph whose vertices are pairs
where records path length modulo 6. A transition of weight induces
with cost . Fix a starting state on the six-cycle, forbid intermediate visits to any of the six cycle states, and allow a cycle state only as the terminal state. For each length residue and each initial/final phase difference, the corresponding entry below is the minimum path cost in this augmented graph. Thus every entry is determined directly and reproducibly from the transition rule (Q2), without any additional mathematical assumption. The minimum possible number of defect edges for each pair is given by
| 0 | 1 | 2 | 3 | 4 | 5 | |
|---|---|---|---|---|---|---|
| 0 | 4 | 5 | 4 | 3 | 2 | 6 |
| 1 | 0 | 5 | 4 | 3 | 6 | 3 |
| 2 | 6 | 5 | 4 | 4 | 2 | 3 |
| 3 | 6 | 3 | 4 | 5 | 4 | 3 |
| 4 | 6 | 5 | 4 | 5 | 2 | 6 |
| 5 | 5 | 1 | 4 | 3 | 6 | 1 |
(A1)
Every entry in column is at least
respectively. Hence every such excursion satisfies
which is the inequality used in (Q5). The table is a finite certificate: its entries are obtained directly from the transition rule (Q2) by minimizing the number of weight-zero edges among paths with the indicated length residue and phase defect, with intermediate visits to the six-cycle forbidden.
Avoidance certificate
It remains to control closed walks that never visit the six recurrent states in (Q4). On the remaining 58 states define an integer potential . All states not listed below have potential 0:
| H | states |
|---|---|
| -1 | 011111 |
| -2 | 000111, 010110, 110000, 110001, 110100, 110101, 110111, 111101 |
| -3 | 101100, 101101, 111111 |
| -4 | 101111, 111010, 111011 |
| -5 | 111110 |
| -6 | 110110. |
(A2)
In particular, all eight states in the row, including 110100, have potential ; the line break in that row does not change their common value. For every transition that remains inside these 58 states, direct substitution in (Q2) verifies
Thus, for a closed walk
avoiding the six-cycle,
Consequently every such closed walk has total weight at most
This proves the avoidance estimate used in (Q7).
Declaration of Generative AI Use
During the preparation of this manuscript, the authors used ChatGPT (OpenAI) to assist with language editing, literature exploration, computational verification, and the organization and presentation of mathematical arguments. The authors independently checked the mathematical statements, proofs, computational claims, references, and conclusions and take full responsibility for the content of the manuscript.
References
[1] S. Chakraborty, On the sensitivity of cyclically-invariant Boolean functions, Discrete Mathematics & Theoretical Computer Science 13(4) (2011), 51–60. https://doi.org/10.46298/dmtcs.552.
[2] A. Chaubal and A. Gál, Tight bounds on sensitivity and block sensitivity of some classes of transitive functions, Theoretical Computer Science 946 (2023), 113687. https://doi.org/10.1016/j.tcs.2022.12.037.
[3] T. W. Cusick, Weight recursions for any rotation symmetric Boolean functions, IEEE Transactions on Information Theory 64 (2018), 2962–2968.
[4] T. W. Cusick and E. Cheon, Affine equivalence for cubic rotation symmetric Boolean functions with variables, Discrete Mathematics 327 (2014), 51–61. https://doi.org/10.1016/j.disc.2014.03.017.
[5] T. W. Cusick and P. Stănică, Fast evaluation, weights and nonlinearity of rotation-symmetric functions, Discrete Mathematics 258 (2002), 289–301. https://doi.org/10.1016/S0012-365X(02)00354-0.
[6] P. Gregor, S. Jäger, T. Mütze, J. Sawada, and K. Wille, Gray codes and symmetric chains, Journal of Combinatorial Theory, Series B 153 (2022), 31–60. https://doi.org/10.1016/j.jctb.2021.10.008.
[7] Y. Li and J. Zhang, Sensitivity and block sensitivity of elementary symmetric Boolean functions of arbitrary degree, arXiv:2609.23781 (2026). https://arxiv.org/abs/2609.23781.
[8] M. Makhynko, Binary necklaces with minimum nontrivial rotational Hamming distance 2, arXiv:2606.08991 (2026). https://arxiv.org/abs/2606.08991.
[9] P. Stănică and S. Maitra, Rotation symmetric Boolean functions—count and cryptographic properties, Discrete Applied Mathematics 156 (2008), 1567–1580. https://doi.org/10.1016/j.dam.2007.04.029.
[10] Zeenath A. U., Lakshmy K. V., T. W. Cusick, and M. Sethumadhavan, Construction and enumeration of correlation immune rotation symmetric Boolean functions, Discrete Applied Mathematics 380 (2026), 247–260. https://doi.org/10.1016/j.dam.2025.10.015.
[11] J. Zhang and Y. Li, Certificate complexity of elementary symmetric Boolean functions of arbitrary degree, arXiv:2609.15678 (2026), version 2. https://arxiv.org/abs/2609.15678.