Complexity Landscape for Local Certification
Abstract
An impressive recent line of work has charted the complexity landscape of distributed graph algorithms. For many settings, it has been determined which time complexities exist, and which do not (in the sense that no local problem could have an optimal algorithm with that complexity). In this paper, we initiate the study of the landscape for space complexity of distributed graph algorithms. More precisely, we focus on the local certification setting, where a prover assigns certificates to nodes to certify a property, and where the space complexity is measured by the size of the certificates.
Already for anonymous paths and cycles, we unveil a surprising landscape:
-
There is a gap between complexity and in paths. This is the first gap established in local certification.
-
There exists a property that has complexity in paths, a regime that was not known to exist for a natural property.
-
There is a gap between complexity and in cycles, hence a gap that is exponentially larger than for paths.
We then generalize our result for paths to the class of trees. Namely, we show that there is a gap between complexity and in trees, where is the diameter. We finally describe some settings where there are no gaps at all.
To prove our results we develop a new toolkit, based on various results of automata theory and arithmetic, which is of independent interest.
Keywords and phrases:
Local certification, proof-labeling schemes, locally checkable proofs, space complexity, distributed graph algorithms, complexity gapCopyright and License:
2012 ACM Subject Classification:
Theory of computation Distributed algorithmsAcknowledgements:
The authors would like to thank Thomas Colcombet for answering our questions about Chrobak normal form, and the reviewers for useful comments.Funding:
This work is supported by the ANR grant ENEDISC (ANR-24-CE48-7768).Editor:
Dariusz R. KowalskiSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
1.1 Approach
Time complexity landscapes for distributed graph algorithms
For distributed graph algorithms, the most classic measure of complexity is time, measured by the number of rounds before output. One of the most fruitful research programs on this topic has been the one of charting the complexity landscape [42]. That is, instead of considering specific problems and asking for their time complexity, a long series of papers have answered the following question: given a complexity function, is there a problem with that complexity? In this paper, we aim at starting the analogue research program for the space complexity of distributed graph algorithms.
Let us mention some elements about the time complexity landscape, in order to draw analogies with our setting later. For the sake of simplicity, we only discuss deterministic complexity of locally checkable labelings (LCLs) in bounded degree graphs in the LOCAL model. Before 2016, there were a few of classic complexities: for very simple tasks, for tasks that could be reduced to coloring, and for global problems (throughout the paper, refers to the number of nodes in the graph). Then, several seminal papers established that some problems have complexity [15, 21], and that there is no problem whose complexity strictly lies between and [21]. This gap sharply contrasts with classic computational theory where the time hierarchy theorem prevents the existence of such gaps [38]. It was also proved that in some intervals infinitely many complexities exist [6, 7, 19, 22], but not any complexity function had a corresponding problem. A key strategy in this research area is to understand the landscape for specific classes of networks such as paths [3], grids [16], trees [4, 5, 6], minor-closed graphs [20], etc. In this paper, we will follow a similar approach: characterizing which space complexities are possible depending on the structure of the network.
New direction: A landscape approach to space
The space used by distributed algorithms is much less studied than the time, especially if we restrict to distributed graph algorithms. Some models where space is a well-studied measure are population protocols [2], massively parallel computing (MPC) [39] and models similar to Stone Age [26], but they are not relevant to our approach, either because they differ too much from distributed graph computing (having one-to-one communication or a centralized component) or because they fix the space complexity to constant. As far as we know, the only major line of research considering space complexity for distributed graph algorithms is self-stabilization, and more specifically the state model, where the nodes update their states by reading the states of their neighbors [1, 25]. In that model, the algorithm has to cope with transient faults, and consequently it is common to design algorithms (at least implicitly) with two components : one that builds a solution and one that checks the solution, and can reset the system if needed. Local certification was introduced to study specifically the space needed for the checking phase, by abstracting the computation of the solution into an oracle, and this is our focus today.
Informally, a local certification of a property is an assignment of labels to the nodes of the graph, such that the nodes can collectively check the correctness of a given property by inspecting the labels in their neighborhoods. This notion is known under different names, depending on the specific model considered: proof-labeling scheme [40], locally checkable proofs [36], non-deterministic local decision [33], etc. We will formally define our model in Section 2, and refer to [27] for an introduction to the notion. The (space) complexity of a certification is the maximum size of the label given to a node, and it is known to be basically equal to the space complexity of self-stabilizing algorithms.111There are some fine prints to this statement, that we will discuss later, in Section 1.4. Finally, since local certification is about decision problems, it is now standard to focus on checking graph properties (instead of solutions to graph problems), and to refer to the set of correct graphs as a language.
In local certification, the situation is similar to the pre-2016 situation for the time complexity as described above. That is, there are a few well-established complexity regimes – , , and – but no solid explanation as of why these are so common. But unlike for distributed time complexity (for LCLs on trees), we can prove that for a wide range of complexities, there exists a problem with that complexity.
Theorem 1.
For general graphs with identifiers, for any non-decreasing function in and , there exists a property that can be certified with bits, but not in bits.
The proof (deferred to Appendix A) follows a standard construction of [36]. The graphs satisfying the property are the ones made of two copies of a graph , linked by a path. The graph is chosen so that it can be encoded on bits, and a certification consists in giving this encoding to all nodes, so that every node knows . It is known that this encoding can be checked locally when identifiers are given, hence we get the upper bound. A counting argument allows to prove a matching lower bound [36].
At first sight, Theorem 1 gives a trivial answer to our question about the complexity landscape of local certification. But it relies crucially on several assumptions. First, in the upper bound it is necessary to have unique identifiers to avoid being fooled by symmetries at the checking phase. Also, because of the identifiers and because the value of needs to be certified, bits are needed. Finally, to make the counting argument of the lower bound work, one cannot restrict too much the graphs in which to apply this theorem. This rises the three following questions that we tackle in this paper.
Question 2.
What happens for complexities in ?
In other words, is the a limitation of the proof technique, or could there be a gap between constant and , as the current state of our knowledge suggests?
Question 3.
What about anonymous networks?
This is especially relevant in conjunction with the previous question, since a unique identifier cannot be encoded in a certificate of bits. Note that even beyond that regime, the impact of the identifiers on local decision is a well-studied topic [31, 30, 32, 29].
Question 4.
What about structured graphs, like paths, cycles and trees?
In the spirit of the work made on the distributed time complexity landscape, we would like to understand local certification on restricted graph classes, in which counting arguments do not apply, or only partially.
1.2 Main results
We start with a simple setting: anonymous paths without input labels. In this setting, a path is characterized by its length, and a language is defined by a set of authorized lengths. Naturally, we assume that the nodes do not have the knowledge of (otherwise the problem is trivial). Given bits, we can recognize any language. This is because the prover can certify the exact length of the path, by giving to every node its distance to a chosen endpoint as a certificate. The nodes can then check locally the correctness of this counter, and the last node can check whether the length belongs to the authorized sizes. On the other hand, with a constant number of bits, we can encode properties like “the path has length ”, via counters modulo (where is a constant). To build a language whose complexity would be strictly between these regimes, it is tempting to consider properties of the form: “the path has length modulo ” for arbitrary function , and for which a counter would use bits. Unfortunately, the nodes are unable to check that the is correct, since they do not have access to . This obstacle does not seem easy to bypass and, it is reasonable to conjecture that there is a gap between and . We do establish the existence of a gap, but it only goes up to .
Theorem 5.
Let and . Let be a property on paths that can be certified with certificates of size for all . Then, can also be certified with constant-size certificates.
This is the first gap established in local certification. At first, this looks like an artifact of the proof but, surprisingly, it is not! We next prove that there exists a language for which the optimal certificate size is . (Given the previous theorem, it is sufficient to prove that this language can be certified with bits but not with bits.)
Theorem 6.
There exist properties on paths that can be certified with certificates of size , but not with certificates of size .
It is the first time that this regime appears in the area of local certification (here under the promise that the graph is a path). The language we use is the set of paths whose length is not a product of consecutive primes; we will come back to it.
Now, moving on to cycles, there is a second surprise. We expect to see the same landscape in paths and cycles, but the intermediate regime actually disappears in cycles, and there is a gap between and .
Theorem 7.
Let and . Let be a property on cycles that can be certified with certificates of size for every integer . Then, can also be certified with constant-size certificates.
Finally, we study the case of trees, where the picture is more complex, as it depends on the exact setting considered. In some settings, we can prove that there is no gap (any reasonable function corresponds to the optimal certificate size for a language), and in some other cases, the gap from paths persists. These settings depend on three parameters: (1) whether we consider certificate size as a function of the number of nodes or of the diameter , (2) whether the nodes can only see what is at distance 1 or at larger distance (in other words the verification radius is 1 or larger), and (3) whether the maximum degree is bounded or not. We establish a classification of these different settings. In particular, we prove that the gap for paths is generalized to arbitrary trees, when parameterized by the diameter, and the verification radius is 1.
Theorem 8.
Let and . Let be a property in trees (of unbounded degree) that can be certified using bits for all (where is the diameter). Then, can also be certified with constant-size certificates.
We then show that two assumptions in Theorem 8 are optimal. Namely, we prove in Theorem 9 that we can not hope for a gap in instead of in trees (even in caterpillars, that is, paths with leafs attached), and we establish in Theorem 10 that it is essential that the vertices are able to see only at distance only 1, because there is no more gap if the verification radius is at least 2 (again, even in caterpillars).
Theorem 9.
Let be a non-decreasing function such that and for all integers we have . Then, there exists a property on caterpillars (of unbounded degree) that can be certified with certificates of size and not with certificates of size .
Theorem 10.
Let . Let be a non-decreasing function such that and for all integers we have . Then, if the vertices can see at distance , there exists a property on caterpillars (of unbounded degree) that can be certified with certificates of size and not with certificates of size , where is the diameter.
Note that the condition on only ask for a function which is sublogarithmic and whose growth is sublogarithmic, to avoid arbitrarily long plateaus followed by big jumps. This condition is satisfied by all the usual functions (, , , etc.).
All the results mentioned so far are in the anonymous setting. We also explore the impact of identifiers and of the knowledge of on this landscape, but we delay this discussion for now.
1.3 Main techniques
Automata and arithmetic perspectives
To give an overview of our techniques, let us start by describing two perspectives on constant size certification in anonymous paths. As said earlier, a basic building block is to certify with a counter that the length is equal to for some constant and . One can see this behavior as a run in an automaton with states inducing a cycle whose initial state being mod and the final state being mod . More generally, any constant size certification can be turned into a finite state automaton. There are various ways to do it, but basically, it consists in having states describing (pairs of) certificates, and transitions that connect states that would be accepted by the local verifier. The existence of an accepting run in the automaton is equivalent to the existence of a certificate assignment making the local verifier accept (see Section 3.1 for a more detailed explanation). (Also see [28], and also [23] for a similar perspective in the context of local problems.) Another point of view is the one of arithmetic. Intuitively, a set of lengths of anonymous paths that are accepted by a constant size certification corresponds to a combination of congruence relations (in other words, such a set is equal to the union of arithmetic progressions up to some point). This point of view allows, for example, to derive that the set of lengths of anonymous paths having a given constant size certification is eventually periodic.
Now, moving on to non-constant certifications, we need to introduce a non-uniform automata model. Indeed, since larger paths imply that we can use larger certificates, it also means larger automata. For each certificate size , we will have an automaton , and we will require that an incorrect instance is rejected by all these automata, while a correct instance is accepted by at least one (small enough) . If a property has non-constant complexity, then it means that we will need arbitrarily large automata. If there exists a certification of size , then for any instance of length , the automaton will have to accept. Now from the arithmetic perspective, there is an equivalence between having non-constant complexity and the fact that the set of correct lengths is not eventually periodic.
Establishing gaps in paths and trees
To establish a gap between constant size and size in paths, the reasoning is the following.222Actually this proof gives worse constants than the ones of Theorem 5, but it is the one that generalizes to other settings. Consider a language that does not have a constant size certification. For an arbitrary , we focus on the paths of that are recognized by but not by (assume this is non-empty, which is the case for infinitely many ). This set is itself recognized by an automata: the intersection of with the complement of the union of . Studying the state complexity of this new automaton (which we do not discuss here) leads us to the fact that it must accept a path of length at most . Finally, this upper bound on the minimum length for which some certificate size is needed translates into a lower bound constraint for the optimal complexity, and the double exponential translates into the double logarithm of the theorem.
This proof can be generalized without much modification to labeled paths (that is, paths with inputs) and to larger verification radius (see the full version [14]). This is pretty straightforward, given the previous proof: we use classic automata instead of unary automata, and a slightly different transformation from certification to automata. On the contrary, the proof that gives the right constants for Theorem 5 utilizes Chrobak normal form for unary automata (see full version), and does not generalize easily to the labeled case.
The proof of the analogous gap in trees (Theorem 8), is based on the same insights, but is much more involved. Basically, we adapt our automata to walk in the tree, reading the pending subtrees as labels. Two challenges are that a given tree can be read in many different ways, and that the alphabet is infinite. We argue that the complexity will be captured by the walks that follow a maximum path in the tree, and that the intersection, complement and union that are used in the proof are not harmed by the infinite alphabet.
The language
We now turn our attention to Theorem 6, which establishes the existence of a language with optimal certification size in anonymous unlabeled paths. Let us start by giving some intuition about how we came to this result. Intuitively, having optimal certificates of size means that certificates of size allow to differentiate between correct and incorrect instances of size order . When we implement simple counters modulo some constant using bits, the modulo is of order , hence we can distinguish between correct and incorrect instances of size but not more, in the sense that and will be classified in the same category. Hence we need to do an “exponential jump” in terms of distinguishing capability. We now make two observations. First, given a set of pairs , the fact that the path length is not equal to for some can be certified with certificates of size . Indeed, since it is sufficient to prove that one of the modulo equation is not satisfied, we can simply give explicitly in all the certificates, in addition to the counter modulo . Second, using the Chinese remainder theorem, for any two numbers and , there must exist an integer exponentially smaller than such that . This makes the existence of a language believable, but making it into a real construction is another kettle of fish. We end up considering the language of the path whose length is not the product of consecutive primes. The scheme consists in certifying that either there is a gap or a repetition in the sequence of primes, via adequate counters, or there is an inconsistency between the largest prime used and what the length of the path is equal to, modulo a well-chosen (small) integer.
The case of cycles
Theorem 7 states that in cycles there is a gap between constant and logarithmic certification size. This is in sharp contrast with the case of paths, which is surprising given the similarity of the two structures. At a very intuitive level, the difference stems from the fact that the only congruence that we can check in cycles are of the form , and not arbitrary . Indeed, in a path, it is easy to have one endpoint checking counter value zero and the other checking counter value , while in cycles there are no endpoints. The natural way to simulate the endpoints is to designate a specific vertex in the cycle to check that the counter starts at from one side and reaches from the other side, but this is not robust. Indeed there could be more than one designated vertices and still all nodes could accept if each segment is . This breaks the congruence, except if . This restriction in the congruences prevents us from using the arithmetic tools of the proof of Theorem 6.
Let us now sketch the proof of the gap between certificates of size and in cycles. We again use an automata-like point of view, but we need to adapt it to work without starting and ending nodes. We consider a sequence of directed certificate graphs333We consider “graphs” and not “automata” here since we have no initial or accepting states, a sequence of certificate only gives us a walk in the graph of pairs of certificates. . Here, a cycle with certificates of size is accepted by if and only if is a closed walk in . For the proof, we consider the first length that is accepted by the -th graph (corresponding to certificates of size ), but not by smaller ones. Now, if the certificate size is in , this walk is much longer than the size of , and therefore it has a lot of cycles. We define a notion of elementary cycle of the graph, and decompose this walk as a linear combination of elementary cycles. If is the greatest common divisor of these elementary cycles, then , for some . We consider a set of numbers of the form , such that (1) is prime, (2) and (3) is still much larger than the size of . By a generalization of Bézout’s identity, (3) implies that all these numbers are accepted by hence they belong to the language. But since they are smaller than , by minimality, they must be recognized by smaller graphs too. We argue by pigeon-hole principle that there must exist one graph , that has two walks of lengths and that intersect. Then by concatenating portions of the two walks, we can prove that actually accepts all the cycles of size . Finally, using again a generalization of Bézout’s identity we can prove that the cycle of length is also recognized by , which contradicts the minimality of .
“No gap” results
We also establish that for several settings there is no gap in the complexity, that is, for any well-behaved function , there exists a property that has certificates of size but not .
Let us sketch the technique of the upper bound for the setting of Theorem 10: restricting to caterpillars, using certificates whose size is a function of , with verification radius 2. Given a function , we define a sequence of integers , such that the -th term is roughly . The correct instances are of the following form: a path of length , for some , such that the -th node has leaves, and except for the first one, which has leaves instead of 1. A compact way to certify these instances is to give to every node. The nodes in the middle check the growth of the number of attached leaves (thanks to their radius 2 verification) and the endpoints check that they have leaves. The diameter is , and the number of bits used is which is basically .
1.4 Discussions and open problems
Before we move on to the technical parts, let us discuss open problems and future directions.
Full understanding of paths.
For paths, we do not know what happens between and . By sparsifying the set of primes considered in the language (Theorem 6), we can get languages for which the natural upper bound can be positioned in between these two regimes, but Theorem 5 does not provide a matching lower bound anymore, hence we cannot prove that there is no gap.
Open problem 11.
Is there a gap between and in paths?
To solve this question, it would good to get a better understanding of the regime, or even a characterization. (For now, we just have one example of a property in this regime.)
General graphs.
For general graphs, we prove in the full version that if the radius is larger than 1, then there is no gap. For radius 1, it is unclear whether we should expect the same gap as for trees or not. Our automata-related tools seem too weak to tackle this case (the generalization from trees to graphs in automata theory is notoriously intricate).
Open problem 12.
Is there a gap between and for general graphs? For bounded degree graphs?
The role of identifiers and of the knowledge of .
Our main results are for the anonymous setting, where the nodes do not have the knowledge of . In the full version, we explore several settings with identifiers or (approximate) knowledge of . We can for example prove that a very sharp estimate of allows to break the barrier of Theorem 5, while arbitrarily large identifiers do not help. It is still very unclear how these different assumptions affect the complexity landscape.
Extensions to self-stabilizing algorithms: back space complexity in algorithms.
We described in the introduction our wish to chart the space landscape of distributed graph algorithms, and as a first step we focused on local certification. A natural next step is to transfer our results to self-stabilizing algorithms. As mentioned earlier, the two are tightly connected, since the space used for silent self-stabilization is basically captured by the space needed to certify the solution correctness [10]. Actually, [10] implements a transformation from a local certification to a self-stabilizing algorithm, that does require an additive for the memory of the algorithm in comparison to the local certification size. This is usually harmless, but in the setting of this paper, which focuses on sublogarithmic regime, the result is unusable. The restricted topology might allow to shave the additional logarithmic term.
Open problem 13.
Are the optimal certificate size and the optimal memory of a self-stabilizing algorithm asymptotically equal in restricted topologies (paths, cycles, trees), even in the sublogarithmic regime?
When it comes to transferring the sub-log-logarithmic gap for trees to (silent) self-stabilizing algorithms, it would actually be enough to understand whether labelings accepted by tree automata (which are equivalent to monadic second-order on trees) can be built in constant space in a self-stabilizing manner. Incidentally, understanding when one can make this transfer while keeping polynomial time is also a very intriguing question (see [9] for a discussion).
Different landscapes.
Theorem 1 establishes that for any super-logarithmic complexity there exists a property that requires exactly that complexity. But the construction is very unnatural, since the nodes need to know the function , and the instances are extremely specific. Hence the following question.
Open problem 14.
Are there super-logarithmic gaps in the complexity of natural properties, for a reasonable definition of “natural”? What about monadic second-order (MSO) properties?
It is known that there are properties for which the optimal certification size is , for example having diameter [18, 12] and also [36]. As far as we know the only works about what happens in between are [11] and [41], that have established that for forbidden subgraphs, there are many polynomial complexities, when using verification radius 2.
We mention MSO properties in the open problem because they have received a considerable amount of attention in recent years in local certification [8, 24, 28, 35, 34], and capture many classic properties and problems through logic.
Finally, another research direction is to chart landscapes for other parameters. For example, [13] explored the certification complexity as a function of the maximum degree.
1.5 Organization of the conference version
For this conference version, we focus on the results on paths and cycles, which allows to give most of the insights within the page limit. Some of the proofs of the lemmas and claims are deferred to the appendix. The proof of our more involved results as well as discussions of the knowledge on and the identifier assumptions only appear in the full version [14].
2 Model and definitions
2.1 Graphs
All the graphs we consider are finite, simple, loopless, connected, and undirected. For completeness, let us recall several basic graph definitions. Let be a graph. We denote its set of vertices (resp. edges) by (resp. by ), or simply by (resp. by ) if is clear from the context. Let . The distance between and , denoted by , is the smallest number of edges in a path from to . The diameter of is the largest distance between any two vertices. If is a path, its length is its number of vertices (or equivalently, its diameter plus one). We say that is a caterpillar if, when removing all the degree-1 vertices in , the resulting graph is a path, called the central path of (which is induced by the set of all vertices of degree at least two in ).
2.2 Local certification
Let be a graph. We will sometimes assume that the vertices of are equipped with unique identifiers and/or with inputs. An identifier assignment for is an injective mapping from to some set (the set of identifiers) and an input function is a mapping from to some set (the set of labels). If is equipped with identifiers, we say that we are in the locally checkable proof model, else we say that we are in the anonymous model. If the vertices of have inputs, we say that is labeled. Finally, let be a non-empty set. A certificate assignment of with certificates in is a mapping .
Let and be a certificate assignment for . Let . The view of at distance consists in:
-
all the vertices at distance at most from , and all the edges having at least one endpoint at distance at most ,
-
the restriction of to these vertices,
-
the restriction of the identifier assignment (if any) and of the input function (if any) to these vertices.
A verification algorithm (at distance ) is a function taking as input the view at distance of a vertex, and outputting a decision, accept or reject. In all this paper, if is not mentioned in a statement of a result, it is by default equal to . When we will consider settings where , it will always be explicitly written.
Let be a class of (possibly labeled) graphs and be a property on graphs in . Note that if we consider labeled graphs, the fact that a graph satisfies the property does not depend only on the structure of : it depends also on its input function. In other words, it is possible that a graph satisfies and that another graph with the same structure as but with a different input function does not satisfy . Let . We say that there exists a certification scheme for with certificates of size if there exists a verification algorithm such that the two following conditions are satisfied:
-
(Completeness) For every -vertex graph that satisfies , and for every identifier assignment of (if we are in the locally checkable proof model), there exists a certificate assignment in such that the verification of every vertex accepts (we say that the graph is globally accepted).
-
(Soundness) For every graph that does not satisfy , for every identifier assignment of (if we are in the locally checkable proof model), for every and every certificate assignment in , at least one vertex rejects.
Let us emphasize that, if does not satisfy , then for any assignment of certificates of any size, at least one vertex rejects. Let us also point out the fact that in a certification scheme for a property in some class (in this paper, we will for instance consider the cases where is the class of paths, of cycles, of trees…), the vertices have the promise that the graph belongs to . In other words, the certification scheme depends on the property and on the class , and we are not concerned by the output of the verification procedure of the vertices in graphs that do not belong to .
3 Gap between and in paths
The goal of this section is to prove the following result:
Theorem 15.
Let and . Let be a property on paths that can be certified with certificates of size for all . Then, can also be certified with constant-size certificates.
Note that the constant is larger here than in Theorem 5. We prove the stronger version in the full version.
3.1 Preliminary: automata point of view
For every property on paths, we can associate a subsets of integers such that a path is accepted if and only if its length is in . The property is equivalent to and in the rest of the proof, we will completely forget the property and only focus on . For every , let us denote by the set of certificates of size , and by the set of lengths of the paths that are accepted with certificates in . We have: .
The set is a regular language that is accepted with the following nondeterministic finite automaton over a unary alphabet. The set of states is the set of pairs of certificates of size plus two additional states, and , that is: . There is a single initial state which is and a single final state which is . The transitions are the following:
-
for every , we put a transition between states and if a vertex of degree 1 that has certificate and has a neighbor with certificate accepts;
-
for every , we put a transition between states and if a vertex of degree 2 that has certificate and has two neighbors with certificates and accepts;
-
for every , we put a transition between states and if a vertex of degree 1 that has certificate and has a neighbor with certificate accepts;
-
if there exists such that an isolated vertex with certificate accepts, we put a transition from to .
Let us give an example to make things more concrete. Assume that we want to certify that the length of a path is divisible by . There is an easy way to do it by using three certificates 0, 1, and 2. The prover fixes an endpoint and for every vertex , the certificate it gives to is . Then, every vertex checks that one of the two following conditions is satisfied:
-
has degree , has certificate or , and its neighbor has certificate , or
-
has degree , and the set of certificates of and its two neighbors is .
The automaton corresponding to these certificates is represented on Figure 1.
Lemma 16.
For every , a path on vertices is accepted with certificates of size if and only if there exists an accepting run of length (i.e., going through transitions) in .
The intuition behind this lemma has been given earlier and the formal proof is in the full version.
3.2 Proof via state complexity
Lemma 17.
Let be a (possibly infinite) alphabet, and let be two languages over recognized by nondeterministic finite automata and , having and states respectively. Then:
-
can be recognized by an automaton having states
-
can be recognized by an automaton having states
-
can be recognized by an automaton having states
These statements are folklore, see the full version for explanations.
Proof of Theorem 15..
Using the notations introduced previously, the automaton has states and recognizes . Let be a property that can not be recognized with constant-size certificates. Then, the set containing all the integers such that is infinite (this set contains all the integers such that there exists a path that can be accepted with certificates of size but not with smaller size). For , let be the smallest integer in . Let be such that (such an integer exists because is infinite and for all distinct we have ).
Since and for , we have . By Lemma 17, can be recognized by an automaton that has states. Thus, by Lemma 17, can be recognized by an automaton that has at most states. Again by Lemma 17, can be recognized by an automaton having at most states. Since is the smallest integer in , it is at most equal to the number of states of this automaton, so it follows that . Finally we get , and the result follows.
4 A property with optimal size in unlabeled paths
The goal of this Section is to prove the following theorem.
Theorem 6. [Restated, see original statement.]
There exist properties on paths that can be certified with certificates of size , but not with certificates of size .
Before proving Theorem 6, let us show the following result:
Lemma 18.
Let and . Certifying that the length a path on vertices satisfies can be done with certificates of size .
The proof of this statement can be found in the full version of the paper.
Remark 19.
For every with , we can also certify that the length of a path satisfies with certificates of size , with the same proof (just by replacing by at the end). In particular, with certificates of size , we can certify that divides , or that does not divide .
Finally, let us introduce some notations and give some useful properties. For every , let us denote by the -th prime number (i.e. …), and let be the product of the first prime numbers: . Let be the set .
Lemma 20.
[37] We have and .
Lemma 21.
There exists such that, for every even integer , there exists such that divides and does not divide .
Proof.
Let be an even integer and let be the smallest integer such that divides and does not divide (which exists because is divisible by ). Then, is divisible by , so . Using Claim 20, we get , so , and the result follows.
Lemma 22.
Let . There exists such that .
Proof.
By contradiction, assume that for all , we have . Then, by the Chinese remainder theorem, we get , where is the least common multiple of . It is well-known that this least common multiple is at least , so we have . Together with , this implies , which contradicts the assumption .
Proposition 23.
Let , and be the constant of Lemma 21. Then, if and only if at least one of the three following conditions is satisfied:
-
1.
n is odd, or
-
2.
there exists such that does not divide and divides , or
-
3.
there exists and such that divides , does not divide and .
Proof.
First, assume that one of the three conditions is satisfied. If condition 1. holds, is odd, so because contains only even integers. If condition 2. holds, then because all the integers in which are divisible by are also divisible by for all . If condition 3. holds, then , because the only integer in which is divisible by and not by is .
Conversely, assume that , and let us show that at least one of the three conditions is satisfied. Assume that conditions 1. and 2. are not satisfied, and let us show that condition 3. holds. Since condition 1. is not satisfied, is even, so by Lemma 21, there exists such that divides and does not divide . Since condition 2. is not satisfied, is divisible by , so (this inequality is strict because, by assumption, ). Finally, by Lemma 22, there exists such that , so condition 3. is satisfied.
Note that the third item is used to avoid accepting numbers with some prime used twice. It is tempting to check this condition directly instead of using our indirect check. But in general this would use integers that are too large, for example in the case where with a prime number.
We are now able to prove Theorem 6.
Proof of Theorem 6.
Recall that we assume that the input graph is a path . Let be the property of being a path whose length is not in . First, observe that cannot be certified with constant-size certificates. Indeed, properties on paths that can be certified with constant size-certificates are paths whose length is in a set that is eventually periodic (the most simple proof for it uses Chrobak normal form, see the full version), and the set is not. Now, let us show that can be certified with certificates of size .
Let . If , the prover certifies that at least one of the three conditions of Proposition 23 is satisfied. More precisely:
-
if is odd, the prover certifies it. By Lemma 18, this needs bits.
The verification of the vertices just consists in checking that the condition given by the prover is indeed satisfied, with the verification procedure of Lemma 18. Note that the vertices do not need to check the bounds on and for conditions 2. and 3., because if condition 2. or 3. is satisfied with larger or , it also implies that (and then and can be also accepted with certificates of size ). These bounds on and are only useful to get an upper bound on the size of the certificates.
5 Gap between and in cycles
In this section we prove the following theorem.
Theorem 7. [Restated, see original statement.]
Let and . Let be a property on cycles that can be certified with certificates of size for every integer . Then, can also be certified with constant-size certificates.
5.1 Preliminaries on number theory and walks in graphs
Let us give some results from number theory on which we will rely. First, let us recall the prime number theorem:
Theorem 24 (Prime Number Theorem).
For , let be the number of prime numbers in . Then:
From Theorem 24, we can deduce the immediate following corollary:
Corollary 25.
Let . For every , let be the number of prime numbers such that . Then, there exists such that for all , .
Proof.
For every , we have . Since , by Theorem 24, we have . Thus, . By applying again the prime number theorem, we get . Thus, , and the result follows.
Finally, let us give the following generalization of Bézout’s identity that will be useful in the proof of Theorem 7:
Lemma 26 ([17]).
Let be positive integers. Let and . Then, for every integer which is divisible by , there exists non-negative integers such that .
We now move on to some definitions about walks in graphs. A closed walk in is a directed path that begins and ends in the same vertex (it is allowed to pass through the same vertex or the same edge multiple times). The length of a closed walk is its number of edges. A closed walk that does not pass through the same vertex twice (except for the starting and ending vertices which are the same) is called an elementary cycle. If and are two directed closed walks, we say that is a closed subwalk of if a subsequence of vertices in is equal to . See Figure 2 for an example. Note that the length of an elementary closed walk in is at most equal to the number of vertices of which is .
5.2 Proof of Theorem 7
All this subsection is devoted to the proof of Theorem 7. The proofs of the claims can be found in Appendix B.
Let and . Let be the set of lengths of cycles in . Assume by contradiction that there exists a property such that, for every integer satisfying , the cycle of length is accepted with certificates of size , where , and that a constant number of certificates are not sufficient to certify .
For every , let be the set of certificates of size , and let be the subset of corresponding to the cycles accepted with certificates in . Note that , and that we have . Let be the directed graph where and for all , there is an edge in between and if and only if a degree-2 vertex with certificate has a neighbor with certificate and another neighbor with certificate accepts (and there are no other edges in , that is there is no edge between and if ). The directed graph has vertices.
Claim 27.
For every integer , if and only there exists a closed walk of length in .
By Corollary 25, there exists such that for all , .
Since is not accepted with a constant number of certificates, the set of integers such that is infinite. For , let be the smallest integer . Finally, let us fix an integer integer , such that and (such an integer exists because is infinite and for all distinct we have ).
Claim 28.
We have .
Since , by Claim 27, there is a closed walk of length in . Let us consider the strongly connected component of containing this closed walk. Let be the number of elementary cycles in that we denote by , and let be their lengths. Let . We have , because we have for every (since has size ).
Claim 29.
Let be a closed walk in , and let be its length. There exists such that . Thus, divides . In particular, divides .
Claim 30.
Let be such that divides , and . Then, there exists a closed walk in of length . Thus, .
Let us now combine these arguments to prove Theorem 7. Before giving the technical details, let us explain the intuition. Let us denote by the of all the lengths of cycles in . Since has size , Lemma 30 ensures that all the cycles of length are in when is large enough (but small compared to ). Thus there exist many prime numbers such that are in and . By definition of , at least two of them can be certified with the same set of bits and we can obtain a contradiction. Let us now formalize the argument.
Recall that is an integer such that and . Let be a prime number such that . By Claim 30, we have . Moreover, since and , we have , that is, using Claim 28. Since is the smallest integer in , we have . For every , let be the set of prime numbers such that . Since there are prime numbers in and we have , by the pigeonhole principle there exists such that . Let us fix this index .
For every , since , there exists a closed walk of length in . Since , and since has vertices and , again by the pigeonhole principle there exist such that and have a vertex in common. Since has length , has length , and these two cycles have a vertex in common, for every , there exists a closed walk of length in (obtained by starting from a vertex , taking times and then times ). Thus, for every , .
6 A property with optimal size in cycles
Let us finish this short version of the paper with a property that can be certified with bits but not with constant-size certificates, to show that the gap stated in Theorem 7 is optimal. The proof is in Appendix C
Proposition 31.
Certifying that the length of a cycle is not a power of can be done with certificates of size but not with certificates of size .
References
- [1] Karine Altisen, Stéphane Devismes, Swan Dubois, and Franck Petit. Introduction to Distributed Self-Stabilizing Algorithms. Morgan & Claypool Publishers, 2019. doi:10.2200/S00908ED1V01Y201903DCT015.
- [2] James Aspnes and Eric Ruppert. An introduction to population protocols. Bull. EATCS, 93:98–117, 2007.
- [3] Alkida Balliu, Sebastian Brandt, Yi-Jun Chang, Dennis Olivetti, Mikaël Rabie, and Jukka Suomela. The distributed complexity of locally checkable problems on paths is decidable. In Peter Robinson and Faith Ellen, editors, Proceedings of the 2019 ACM Symposium on Principles of Distributed Computing, PODC 2019, pages 262–271. ACM, 2019. doi:10.1145/3293611.3331606.
- [4] Alkida Balliu, Sebastian Brandt, Yi-Jun Chang, Dennis Olivetti, Jan Studený, and Jukka Suomela. Efficient classification of locally checkable problems in regular trees. In Christian Scheideler, editor, 36th International Symposium on Distributed Computing, DISC 2022, volume 246 of LIPIcs, pages 8:1–8:19, 2022. doi:10.4230/LIPICS.DISC.2022.8.
- [5] Alkida Balliu, Sebastian Brandt, Yi-Jun Chang, Dennis Olivetti, Jan Studený, Jukka Suomela, and Aleksandr Tereshchenko. Locally checkable problems in rooted trees. Distributed Comput., 36(3):277–311, 2023. doi:10.1007/S00446-022-00435-9.
- [6] Alkida Balliu, Sebastian Brandt, Dennis Olivetti, and Jukka Suomela. Almost global problems in the LOCAL model. Distributed Comput., 34(4):259–281, 2021. doi:10.1007/S00446-020-00375-2.
- [7] Alkida Balliu, Juho Hirvonen, Janne H. Korhonen, Tuomo Lempiäinen, Dennis Olivetti, and Jukka Suomela. New classes of distributed time complexity. In Ilias Diakonikolas, David Kempe, and Monika Henzinger, editors, Proceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2018, pages 1307–1318. ACM, 2018. doi:10.1145/3188745.3188860.
- [8] Dan Alden Baterisna and Yi-Jun Chang. Optimal local certification on graphs of bounded pathwidth. CoRR, abs/2502.00676, 2025. doi:10.48550/arXiv.2502.00676.
- [9] Lélia Blin, Swan Dubois, and Laurent Feuilloley. Silent MST approximation for tiny memory. In Stéphane Devismes and Neeraj Mittal, editors, Stabilization, Safety, and Security of Distributed Systems - 22nd International Symposium, SSS 2020, volume 12514, pages 118–132. Springer, 2020. doi:10.1007/978-3-030-64348-5_10.
- [10] Lélia Blin, Pierre Fraigniaud, and Boaz Patt-Shamir. On proof-labeling schemes versus silent self-stabilizing algorithms. In Stabilization, Safety, and Security of Distributed Systems - 16th International Symposium, SSS 2014, volume 8756, pages 18–32, 2014. doi:10.1007/978-3-319-11764-5_2.
- [11] Nicolas Bousquet, Linda Cook, Laurent Feuilloley, Théo Pierron, and Sébastien Zeitoun. Local certification of forbidden subgraphs. CoRR, abs/2402.12148, 2024. doi:10.48550/arXiv.2402.12148.
- [12] Nicolas Bousquet, Louis Esperet, Laurent Feuilloley, and Sébastien Zeitoun. Renaming in distributed certification. CoRR, abs/2409.15404, 2024. doi:10.48550/arXiv.2409.15404.
- [13] Nicolas Bousquet, Laurent Feuilloley, and Sébastien Zeitoun. Local certification of local properties: Tight bounds, trade-offs and new parameters. In 41st International Symposium on Theoretical Aspects of Computer Science, STACS 2024, volume 289 of LIPIcs, pages 21:1–21:18, 2024. doi:10.4230/LIPICS.STACS.2024.21.
- [14] Nicolas Bousquet, Laurent Feuilloley, and Sébastien Zeitoun. Complexity landscape for local certification. CoRR, abs/2505.20915, 2025. doi:10.48550/arXiv.2505.20915.
- [15] Sebastian Brandt, Orr Fischer, Juho Hirvonen, Barbara Keller, Tuomo Lempiäinen, Joel Rybicki, Jukka Suomela, and Jara Uitto. A lower bound for the distributed lovász local lemma. In Proceedings of the 48th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2016, pages 479–488. ACM, 2016. doi:10.1145/2897518.2897570.
- [16] Sebastian Brandt, Juho Hirvonen, Janne H. Korhonen, Tuomo Lempiäinen, Patric R. J. Östergård, Christopher Purcell, Joel Rybicki, Jukka Suomela, and Przemyslaw Uznanski. LCL problems on grids. In Elad Michael Schiller and Alexander A. Schwarzmann, editors, Proceedings of the ACM Symposium on Principles of Distributed Computing, PODC 2017, pages 101–110. ACM, 2017. doi:10.1145/3087801.3087833.
- [17] Alfred Brauer. On a problem of partitions. American Journal of Mathematics, 64(1):299–312, 1942.
- [18] Keren Censor-Hillel, Ami Paz, and Mor Perry. Approximate proof-labeling schemes. Theor. Comput. Sci., 811:112–124, 2020. doi:10.1016/J.TCS.2018.08.020.
- [19] Yi-Jun Chang. The complexity landscape of distributed locally checkable problems on trees. In Hagit Attiya, editor, 34th International Symposium on Distributed Computing, DISC 2020, volume 179 of LIPIcs, pages 18:1–18:17, 2020. doi:10.4230/LIPICS.DISC.2020.18.
- [20] Yi-Jun Chang. The distributed complexity of locally checkable labeling problems beyond paths and trees. In 15th Innovations in Theoretical Computer Science Conference, ITCS 2024, January 30 to February 2, 2024, Berkeley, CA, USA, volume 287 of LIPIcs, pages 26:1–26:25, 2024. doi:10.4230/LIPICS.ITCS.2024.26.
- [21] Yi-Jun Chang, Tsvi Kopelowitz, and Seth Pettie. An exponential separation between randomized and deterministic complexity in the LOCAL model. SIAM J. Comput., 48(1):122–143, 2019. doi:10.1137/17M1117537.
- [22] Yi-Jun Chang and Seth Pettie. A time hierarchy theorem for the LOCAL model. SIAM J. Comput., 48(1):33–69, 2019. doi:10.1137/17M1157957.
- [23] Yi-Jun Chang, Jan Studený, and Jukka Suomela. Distributed graph problems through an automata-theoretic lens. Theor. Comput. Sci., 951:113710, 2023. doi:10.1016/J.TCS.2023.113710.
- [24] Linda Cook, Eun Jung Kim, and Tomás Masarík. A tight meta-theorem for LOCAL certification of mso properties within bounded treewidth graphs. CoRR, abs/2503.19671, 2025. doi:10.48550/arXiv.2503.19671.
- [25] Shlomi Dolev. Self-Stabilization. MIT Press, 2000. URL: http://www.cs.bgu.ac.il/%7Edolev/book/book.html.
- [26] Yuval Emek and Roger Wattenhofer. Stone age distributed computing. In Panagiota Fatourou and Gadi Taubenfeld, editors, ACM Symposium on Principles of Distributed Computing, PODC ’13, Montreal, QC, Canada, July 22-24, 2013, pages 137–146. ACM, 2013. doi:10.1145/2484239.2484244.
- [27] Laurent Feuilloley. Introduction to local certification. Discret. Math. Theor. Comput. Sci., 23(3), 2021. doi:10.46298/DMTCS.6280.
- [28] Laurent Feuilloley, Nicolas Bousquet, and Théo Pierron. What can be certified compactly? compact local certification of MSO properties in tree-like graphs. In PODC ’22: ACM Symposium on Principles of Distributed Computing, pages 131–140. ACM, 2022. doi:10.1145/3519270.3538416.
- [29] Laurent Feuilloley and Pierre Fraigniaud. Survey of distributed decision. Bull. EATCS, 119, 2016. URL: http://eatcs.org/beatcs/index.php/beatcs/article/view/411.
- [30] Pierre Fraigniaud, Mika Göös, Amos Korman, and Jukka Suomela. What can be decided locally without identifiers? In ACM Symposium on Principles of Distributed Computing, pages 157–165. ACM, 2013. doi:10.1145/2484239.2484264.
- [31] Pierre Fraigniaud, Magnús M. Halldórsson, and Amos Korman. On the impact of identifiers on local decision. In Principles of Distributed Systems, 16th International Conference, OPODIS 2012, volume 7702, pages 224–238. Springer, 2012. doi:10.1007/978-3-642-35476-2_16.
- [32] Pierre Fraigniaud, Juho Hirvonen, and Jukka Suomela. Node labels in local decision. Theor. Comput. Sci., 751:61–73, 2018. doi:10.1016/J.TCS.2017.01.011.
- [33] Pierre Fraigniaud, Amos Korman, and David Peleg. Towards a complexity theory for local distributed computing. J. ACM, 60(5):35:1–35:26, 2013. doi:10.1145/2499228.
- [34] Pierre Fraigniaud, Frédéric Mazoit, Pedro Montealegre, Ivan Rapaport, and Ioan Todinca. Distributed certification for classes of dense graphs. In Rotem Oshman, editor, 37th International Symposium on Distributed Computing, DISC 2023, volume 281 of LIPIcs, pages 20:1–20:17, 2023. doi:10.4230/LIPICS.DISC.2023.20.
- [35] Pierre Fraigniaud, Pedro Montealegre, Ivan Rapaport, and Ioan Todinca. A meta-theorem for distributed certification. Algorithmica, 86(2):585–612, 2024. doi:10.1007/S00453-023-01185-1.
- [36] Mika Göös and Jukka Suomela. Locally checkable proofs in distributed computing. Theory Comput., 12(1):1–33, 2016. doi:10.4086/TOC.2016.V012A019.
- [37] Godfrey Harold Hardy and Edward Maitland Wright. An introduction to the theory of numbers. Oxford university press, 1979.
- [38] Juris Hartmanis and Richard E Stearns. On the computational complexity of algorithms. Transactions of the American Mathematical Society, 117:285–306, 1965.
- [39] Sungjin Im, Ravi Kumar, Silvio Lattanzi, Benjamin Moseley, and Sergei Vassilvitskii. Massively parallel computation: Algorithms and applications. Found. Trends Optim., 5(4):340–417, 2023. doi:10.1561/2400000025.
- [40] Amos Korman, Shay Kutten, and David Peleg. Proof labeling schemes. Distributed Comput., 22(4):215–233, 2010. doi:10.1007/S00446-010-0095-3.
- [41] Masayuki Miyamoto. Distributed complexity of p-freeness: Decision and certification. CoRR, abs/2410.20353, 2024. doi:10.48550/arXiv.2410.20353.
- [42] Jukka Suomela. Landscape of locality (invited talk). In Susanne Albers, editor, 17th Scandinavian Symposium and Workshops on Algorithm Theory, SWAT, volume 162 of LIPIcs, pages 2:1–2:1. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2020. doi:10.4230/LIPICS.SWAT.2020.2.
Appendix A No gap above in general graphs with identifiers
We establish that there is no gap in the local certification complexity in general graphs with identifiers in the regime. The proof follows the same route as the proof of the bound for non-trivial automorphism in [36] .
Theorem 1. [Restated, see original statement.]
For general graphs with identifiers, for any non-decreasing function in and , there exists a property that can be certified with bits, but not in bits.
Since the proof is a rather direct adaptation of the one of [36] and is not central in this paper, we use a more sketchy style than for our other proofs.
Proof.
Fix some function in and consider the following language. A graph is in the language if it is made of two copies of a graph on nodes,where an arbitrary node is linked to its copy by a path of length . A certification for this language is the following. On a correct instance, every node is given the following pieces of information.
-
1.
Its part of the certification of the size of the graph, via a spanning tree (see [27]).
-
2.
The adjacency matrix of .
-
3.
The identifier assignment restricted to the copies of .
-
4.
Its parts of two spanning trees, pointing to the two nodes that belong both to a copy of and to the path.
Every node checks the following.
-
1.
Item 1 and 4 above are consistent (again see [27]).
-
2.
If its identifier appears in the list of Item 3, it checks that its neighborhood in the graph is consistent with the neighborhood in as described by the certificates; except if it is the root of a spanning tree of Item 4, in which case it should have exactly one additional neighbor.
-
3.
If its identifier does not appear in the certificates it should have degree 2.
The correctness is follows from [36], where the same scheme is used except that the central path has constant length (and therefore the identifiers of the nodes on the path can be given to all nodes without overhead).
The spanning tree certifying the number of nodes can be encoded in bits, the adjacency matrices use bits, and the identifier assignment uses bits. Hence in total bits in the regime of the theorem.
Again the lower bound is very similar to the one of [36]. Basically, if we were to use bits, by pigeon-hole principle, there would be two different correct instances of the same size , for which the same certificates would be used on one edge of the path. Then we could consider the graph where we take the right part from one instance and the left part from the other (with their accepting certificates), gluing on the edge with identical certificates. This new graph would be accepted, but it is not in our language since the graphs at the end of the path are different. A contradiction.
Appendix B Missing proofs for the gap between and in cycles
In this appendix section, we restate and prove the claim of Section 5 for which the proof was missing.
Claim 27. [Restated, see original statement.]
For every integer , if and only there exists a closed walk of length in .
Proof.
If , there exists an assignment of certificates to the vertices of a -vertex cycle such that every vertex accepts. For every , since the vertex with certificate accepts and has two neighbors with certificates and (where and are taken modulo ), by definition there is an edge in from to . So this gives an closed walk of length in . Conversely, if there exists a closed walk in , by definition all the vertices of the cycle of length with certificates accept, so .
Claim 28. [Restated, see original statement.]
We have .
Proof.
By definition of , we have . Since , it follows that . Moreover, by assumption, . So .
Claim 29. [Restated, see original statement.]
Let be a closed walk in , and let be its length. There exists such that . Thus, divides . In particular, divides .
Proof.
Let us prove this result by induction on the length of . The base case includes all elementary cycles: if is an elementary cycle, there exists such that , so the result is trivially true. Assume now that is not an elementary cycle, and consider the shortest closed subwalk of . Then, is an elementary cycle (otherwise it would not be the shortest subwalk of ), so and its length is equal to for some . Let us denote by the closed walk obtained by removing from the steps of . The length of is . Finally, apply the induction hypothesis to the closed walk , to obtain integers such that . The result follows.
Claim 30. [Restated, see original statement.]
Let be such that divides , and . Then, there exists a closed walk in of length . Thus, .
Proof.
First, we construct greedily a closed walk in that passes through all the vertices of (it exists, because is strongly connected). For every , the shortest directed path from to has length at most the number of vertices of which is . Thus, there exists a closed walk of length that passes through all the vertices. By Claim 29, divides , so divides . Furthermore, . Since we have , we can apply Lemma 26 to get the existence of integers such that . Finally, to construct a closed walk in of length , we attach times the elementary cycle to the closed walk for every (this is possible, because passes through all the vertices). By Claim 27, we have .
Appendix C Proof of a property with optimal size in cycles
Let us restate the result and prove it.
Proposition 32.
Certifying that the length of a cycle is not a power of can be done with certificates of size but not with certificates of size .
Proof.
Let be a cycle of length , let and let be the path obtained from by deleting one edge adjacent to . To certify that , the prover writes in the certificate of every vertex the tuple where is an odd integer that divides , and is the distance from to in modulo . Every vertex checks that, if its certificate is then its two neighbors have certificates and , and that is indeed odd. Such a certificate has size . This scheme is correct: indeed, if all the vertices accept, the length of the cycle should be divisible by (and conversely, with the certificates described above, all the vertices will accept if the cycle has length divisible by ).
Now, assume by contradiction that certifying that the length of a cycle is not a power of can be done with certificates of constant size (or equivalently, that distinct certificates are sufficient). Let be an odd prime number such that . Let us consider an assignment of certificates to the vertices of a cycle of length such that all the vertices accept. Let us number the vertices of in clockwise order starting from an arbitrary vertex, and for every , let be the -th vertex in this numbering, and be its certificate. By the pigeonhole principle, there exists such that (where is taken modulo ). If , then a vertex with certificate accepts with two neighbors having certificate . Thus, in this case, any cycle is accepted (by giving the certificate to all the vertices) which is a contradiction. Else, let and . We have and . Since is prime, we get . Moreover, for any , a cycle of size is accepted. Indeed, by cutting such a cycle in portions of length and portions of length , giving the certificates to the vertices in portions of size and to the vertices in portions of length , all the vertices accept because they have the same view as a vertex which accepts in . Using Lemma 26, all the the cycles of length are accepted, which is a contradiction because the cycles whose length is a power of greater than should not be accepted.
