arXiv is now an independent nonprofit! Learn more
License: arXiv.org perpetual non-exclusive license
arXiv:2504.05191v2 [cs.DC] 17 Aug 2026

Distributed Quantum Advantage in
Locally Checkable Labeling Problems11 1 This work was originally presented at SODA 2026 [6]

Alkida Balliu · Gran Sasso Science Institute

Filippo Casagrande · Gran Sasso Science Institute

Francesco d’Amore · Gran Sasso Science Institute

Massimo Equi · Aalto University

Barbara Keller · Aalto University

Henrik Lievonen · Aalto University

Dennis Olivetti · Gran Sasso Science Institute

Gustav Schmid · University of Freiburg

Jukka Suomela · Aalto University

Abstract.

In this paper, we present the first known example of a locally checkable labeling problem (LCL) that admits asymptotic distributed quantum advantage in the LOCAL model of distributed computing: our problem can be solved in O(logn)O(\regularlog n) communication rounds in the quantum-LOCAL model, but it requires Ω(lognlog0.99logn)\Omega(\regularlog n\cdot\regularlog^{0.99}\regularlog n) communication rounds in the classical randomized-LOCAL model.

We also show that distributed quantum advantage cannot be arbitrarily large: if an LCL problem can be solved in T(n)T(n) rounds in the quantum-LOCAL model, it can also be solved in O~(nT(n))\tilde{O}(\sqrt{nT(n)}) rounds in the classical randomized-LOCAL model. In particular, an LCL problem that is strictly global classically is also almost-global in quantum-LOCAL.

This solves a major open question at the intersection of distributed graph algorithms and quantum computing. LCL problems [Naor and Stockmeyer, STOC 1993] have been extensively studied in the past decade and they are by now very well-understood in the classical LOCAL model, yet whether any of them admits a genuine quantum advantage has remained open. Coiteux-Roy et al. [STOC 2024] showed that for some specific LCL problems, if quantum helps, it cannot help by much. Akbari et al. [STOC 2025] showed that, for some LCLs, in rooted trees, quantum-LOCAL and randomized-LOCAL have the same power. Balliu et al. [STOC 2025] showed that quantum helps in solving locally checkable problems faster when the maximum degree of the graph is super-constant; however, this does not give any asymptotic quantum advantage for LCLs. The above-mentioned works repeatedly asked the key question of whether quantum helps for LCLs. We solve this open question by giving the first example of an LCL problem that admits a super-constant distributed quantum advantage, and by also giving the first result that puts limits on distributed quantum advantage for LCLs in general graphs.

Our second result also holds for T(n)T(n)-dependent probability distributions. As a corollary, if there exists a finitely dependent distribution over valid labelings of some LCL problem Π\Pi, then the same problem Π\Pi can also be solved in O~(n)\tilde{O}(\sqrt{n}) rounds in the classical randomized-LOCAL and deterministic-LOCAL models. That is, finitely dependent distributions cannot exist for global LCL problems.

1 Introduction

Does quantum computation and communication help with solving graph problems in the distributed setting? We study this question in the usual LOCAL model of distributed computing, more precisely comparing these two settings (see Section 2 for precise definitions):

  • Randomized-LOCAL model: Each node of the input graph is a classical computer (that can store an arbitrary number of classical bits), and each edge is a classical communication channel (that can transmit an arbitrary number of classical bits per communication round). Each node is initialized with its own independent random bit string.

  • Quantum-LOCAL model: Each node of the input graph is a quantum computer (that can store an arbitrary number of qubits), and each edge is a quantum communication channel (that can transmit an arbitrary number of qubits per communication round). Each node is initialized with its own unentangled qubits.

Given a graph problem Π\Pi (e.g. graph coloring), we say that it can be solved in T(n)T(n) rounds if there is a distributed algorithm AA such that in any nn-node graph after T(n)T(n) communication rounds each node terminates and outputs its own part of the solution (e.g. its own color).

1.1 Prior work on distributed quantum advantage

It is not at all obvious if quantum-LOCAL could possibly admit any advantage over randomized-LOCAL; after all, we did not put any limits on the amount of local computation, local storage, or number of bits communicated per round. Could it be the case that any quantum-LOCAL algorithm can be simulated with a classical algorithm in the same number of rounds (at least asymptotically), if we just encode the local state of qubits with an exponentially larger number of classical bits?

Surprisingly, this turns out not to be the case: [31] show that there are graph problems that can be solved in O(1)O(1) rounds in quantum-LOCAL but that require Ω(n)\Omega(n) rounds in classical randomized-LOCAL. However, the problem studied in [31] is very different from problems commonly studied in the theory of distributed graph algorithms. In particular, their problem has an inherently global specification.

1.2 Prior work on LCL problems

In recent years, a large body of literature has focused on locally checkable labeling problems, or LCLs in brief, first introduced by [33]. These are graph problems in which valid solutions can be specified by listing a finite set of valid labeled neighborhoods. LCLs strike a balance between being broad enough so that they contain a large number of interesting graph problems and being narrow enough so that it is possible to prove strong theorems that apply to all LCL problems, see e.g. [33, 17, 15, 11, 10, 5, 4, 34, 19]. There are numerous results about LCL problems in the classical LOCAL model, yet we do not know if all of these results hold also in the quantum-LOCAL model. Hence, this is the key question that we study: do any LCL problems admit a distributed quantum advantage?

There are several papers that have so far delivered mainly negative results: we have learned about cases in which quantum cannot help, at least not much [18, 20, 1, 8], and we have also learned about barriers for studying such questions [1]. The main exception is the very recent work [3] that showed the following separation result: there is a family of LCL problems GHZ(Δ)\iterghz(\Delta) parameterized by maximum degree Δ\Delta such that GHZ(Δ)\iterghz(\Delta) can be solved in O(1)O(1) rounds in quantum-LOCAL but it requires Ω(Δ)\Omega(\Delta) rounds in randomized-LOCAL. However, this does not yield a super-constant separation for any fixed LCL problem: for any fixed Δ\Delta, problem GHZ(Δ)\iterghz(\Delta) is an LCL that can be solved in O(1)O(1) rounds (albeit with very different constants) in both quantum-LOCAL and randomized-LOCAL.

Is it possible to exhibit a single LCL problem Π\Pi such that Π\Pi is solvable in T(n)T(n) rounds in quantum-LOCAL but requires ω(T(n))\omega(T(n)) rounds in classical models? This is a key open question that has been mentioned repeatedly in the literature, see e.g. [18, 1, 3, 35].

1.3 Contribution 1: first LCL problem with a quantum advantage

In this work we show that the answer is yes: quantum-LOCAL is strictly stronger than randomized-LOCAL for LCL problems. More precisely, in Sections 3 and 5 we prove:

Theorem 1.1.

There is an LCL problem Π\Pi such that the round complexity of Π\Pi is O(logn)O(\regularlog n) in quantum-LOCAL but Ω(lognlog0.99logn)\Omega(\regularlog n\cdot\regularlog^{0.99}\regularlog n) in randomized-LOCAL.

This brings us both good news and bad news: The good news is that this demonstrates that distributed quantum computing indeed helps even when restricted to the family of LCL problems. The bad news is that there is now no longer hope that we could prove a theorem that shows that quantum-LOCAL and randomized-LOCAL are asymptotically equally strong for LCL problems, enabling us to lift a large body of prior work from classical models to the quantum model—to fully characterize an LCL problem, we may need to separately classify its locality in deterministic-LOCAL, randomized-LOCAL, and quantum-LOCAL.

1.4 Contribution 2: limits on quantum advantage for LCLs

While Theorem 1.1 resolves the open question, the separation that we have between the classical and quantum models is tiny, especially if we compare this with the non-LCL problem from [31] that admits an O(1)O(1)-round quantum algorithm and requires Ω(n)\Omega(n) rounds in classical models. Could we demonstrate such a separation with LCL problems?

In this work we show that the answer is no: there is no LCL with a linear-in-nn gap between classical and quantum round complexities. Formally, in Section 4 we show:

Theorem 1.2.

Let Π\Pi be any LCL problem that can be solved in T(n)T(n) rounds in quantum-LOCAL. Then Π\Pi can be solved in O(nT(n)polylogn)O(\sqrt{nT(n)}\poly\regularlog n) rounds in randomized-LOCAL.

In particular, if the classical round complexity is Ω(n)\Omega(n), i.e., the problem is inherently global, then also in the quantum-LOCAL model we need Ω~(n)\tilde{\Omega}(n) rounds (here we are using Ω~\tilde{\Omega} and O~\tilde{O} to hide polylogarithmic factors).

The main open question after this work is narrowing down the gap between Theorems 1.1 and 1.2: can we construct LCLs where quantum-LOCAL helps more than some doubly-logarithmic factors? Currently, there is a larger gap between deterministic-LOCAL and randomized-LOCAL than randomized-LOCAL and quantum-LOCAL, which seems counterintuitive: is access to classical randomness already almost as good as the ability to manipulate qubits?

While we do not know yet if Theorem 1.2 is tight, in Section 1.6 we will see that there is a direct generalization of Theorem 1.2 to stronger (super-quantum) models, and there the result turns out to be close to the best possible, in the sense that we may have a gap of Ω~(n)\tilde{\Omega}(\sqrt{n}) between classical models and super-quantum models. Hence to strengthen the claim of Theorem 1.2, we need techniques that do not generalize far beyond quantum-LOCAL.

1.5 Key ideas in the proof of Theorem 1.1

In the proof of Theorem 1.1, the key novel ingredient is the observation that the GHZ(Δ)\iterghz(\Delta) problem from [3] can be linearized (with high-degree nodes replaced by paths in a way that preserves local checkability), and then further padded with the technique from [4] to construct a genuine LCL problem that admits a quantum advantage. We summarize here the key elements of the proof.

LCL problems.

As our goal is to construct an LCL problem that exhibits distributed quantum advantages, let us recall what kind of entities LCL problems are. We will present a formal definition in Section 2, but the following informal description suffices for now: An LCL problem Π\Pi can be specified by listing a finite set of valid labeled radius-rr neighborhoods 𝒩\mathcal{N} for some constant rr. The task is to label nodes and/or edges of the input graph GG, and a solution is feasible if for every node vv, the radius-rr neighborhood of vv is isomorphic to one of the neighborhoods in 𝒩\mathcal{N}.

In particular, this implies that the set of node labels and edge labels has to be also finite, and GG must be a bounded-degree graph in order to admit a solution to Π\Pi. This leads to another equivalent way of characterizing LCL problems: they are graph problems for bounded-degree graphs, where the task is to label nodes and/or edges with labels from a finite alphabet, and the validity of a solution can be verified in a distributed manner by checking all constant-radius local neighborhoods.

The restrictions may sound at first technical, but this exact definition originally introduced by [33] has been tremendously successful: this is a problem family that is now very well-understood especially for the classical LOCAL model. What we seek to demonstrate is that inside this well-understood yet restrictive family there is indeed a problem Π\Pi that admits a super-constant quantum advantage.

Starting point: the iterated GHZ problem.

Let us next recall the key elements of the problem family GHZ(Δ)\iterghz(\Delta) from [3]. Here GHZ(Δ)\iterghz(\Delta) is a family of LCL problems, parameterized by Δ\Delta. The problem family is defined so that hard instances are bipartite graphs, where one part consists of white nodes of degree Δ\Delta and the other part consists of black nodes of degree 33. White nodes represent players and black nodes represent games—more precisely, they are instances of the GHZ game [27, 32], which is a 33-party game where players can win the game without communication if they hold entangled qubits. The games are labeled with colors 1,2,,Δ1,2,\dotsc,\Delta, so that each player is adjacent to one game of each color.

Crucially, for each player, the input that they have in game of color ii is the output they got from game of color i1i-1. The key idea is that for a classical algorithm to win in a color-ii game, it first has to know the outputs of color-(i1){(i-1)} games, and spend additional communication rounds after that to coordinate a feasible solution for the color-ii game. Such a strategy is inherently sequential, taking Ω(Δ)\Omega(\Delta) rounds, and it can be shown with the round elimination technique [13] that this is indeed the best that a classical algorithm can do (at least in neighborhoods that are tree-like). However, a quantum algorithm can do much better: we can use one communication round to establish a set of shared qubits for each game, and then the players can do the rest locally, by applying appropriate measurements to the shared qubits; this is O(1)O(1) rounds independently of Δ\Delta.

At this point it is also good to recall that in the classical LOCAL model, time and distances are interchangeable: a TT-round algorithm is equivalent to a function that maps radius-TT neighborhoods to local outputs (and vice versa). So the key point is this: any classical algorithm that solves GHZ(Δ)\iterghz(\Delta) has to see up to distance Ω(Δ)\Omega(\Delta), in neighborhoods that locally look like a two-colored tree in which all white nodes have degree Δ\Delta and black nodes have degree 33 (we will call it a (Δ,3)(\Delta,3)-biregular tree).

Now GHZ(Δ)\iterghz(\Delta) is a well-defined graph problem even if we plug in e.g. Δ=n\Delta=\sqrt{n}, but then we cannot claim that any classical algorithm for solving it requires Ω(n)\Omega(\sqrt{n}) rounds, simply because we can no longer construct a hard instance that would be a (n,3)(\sqrt{n},3)-biregular tree of depth n\sqrt{n} with at most nn nodes, which certainly does not exist. However, a more modest choice of Δlogn/loglogn\Delta\approx\regularlog n/\regularlog\regularlog n makes sense and results in a graph problem that admits an O(1)O(1)-round quantum algorithm but requires Ω(logn/loglogn)\Omega(\regularlog n/\regularlog\regularlog n) rounds for any classical deterministic algorithm (the case of classical randomized algorithms is more involved, but let us put it aside for now for the purposes of this informal overview). However, this is not an LCL problem. It is some labeling problem in which validity of a solution is locally verifiable, but it cannot be described with any finite set of valid neighborhoods; in particular, we will need super-constant degrees in the input graph.

Yet this is a useful source of inspiration for the present work. We aim at engineering a graph problem Π\Pi that captures the spirit of “what would happen if we take GHZ(Δ)\iterghz(\Delta) and plug in something like Δlogn/loglogn\Delta\approx\regularlog n/\regularlog\regularlog n,” and at the same time Π\Pi is a genuine LCL problem in the strict sense of [33], without any cheating.

Linearizing the iterated GHZ problem.

The key new observation is that GHZ(Δ)\iterghz(\Delta) happens to have a very convenient property: for each player, the set of valid labels on the incident edge number ii only depends on the labels of the incident edge number i1i-1. In particular, there is a finite automaton that processes the labels of the incident edges in the order specified by the colors of the games and determines if a solution is valid from the player’s perspective. This makes it possible to linearize the problem so that we can replace a player of degree Δ\Delta with a path of Δ\Delta nodes. This way we can (1) eliminate high-degree nodes, (2) preserve the property that we have a finite set of labels, and (3) preserve the property that the feasibility of a solution can be verified locally.

Therefore we can define an LCL problem Π1\Pi_{1}, where all nodes have low degrees, and a path with Δ\Delta white nodes behaves as if it was a degree-Δ\Delta player in the original GHZ(Δ)\iterghz(\Delta) problem. However, while doing this translation, we lose all control over the degrees of the players. What if the adversary constructs an input where there is a white path of length Θ(n)\Theta(n)? Even a quantum algorithm would have to spend Θ(n)\Theta(n) rounds to just emulate the behavior of a single Θ(n)\Theta(n)-degree player, and hence there is no room for quantum advantage (as any problem can be solved in O(n)O(n) rounds by brute force).

We circumvent this challenge with a commonly-used solution: instead of a path we use a tree-like construction (a balanced binary tree where each level forms a path). In particular, this way the white nodes that represent a Δ\Delta-degree player will be within distance O(logΔ)O(\regularlog\Delta) from each other, and even in the worst case the overhead of simulating one such node is O(logn)O(\regularlog n). We can furthermore add additional rules that ensure that if the adversary presents a graph that does not represent a valid instance, we can nevertheless produce a valid labeling in O(logn)O(\regularlog n) rounds; let us call the resulting LCL problem Π2\Pi_{2}.

Padding.

Unfortunately, Π2\Pi_{2} as constructed above does not admit any distributed quantum advantage. To construct a hard instance for classical algorithms, we would need to construct a (Δ,r)(\Delta,r)-biregular tree of depth Ω(Δ)\Omega(\Delta), and then replace each degree-Δ\Delta node with our tree-like construction. But we will have to use Δ=O(logn/loglogn)\Delta=O(\regularlog n/\regularlog\regularlog n) so that we do not run out of nodes. To construct a worst-case instance, we would now take an O(Δ)O(\Delta)-deep (Δ,r)(\Delta,r)-biregular tree and replace each white degree-Δ\Delta node with a tree-like construction of diameter O(logΔ)O(\regularlog\Delta). This replacement process increases the diameter of the graph from O(Δ)O(\Delta) to O(Δ)O(logΔ)O(\Delta)\cdot O(\regularlog\Delta). But the diameter of the entire graph would be still bounded by O(Δ)O(logΔ)=O(logn)O(\Delta)\cdot O(\regularlog\Delta)=O(\regularlog n), and a classical algorithm could solve it trivially in O(logn)O(\regularlog n) rounds by gathering everything. On the other hand, a quantum algorithm needs Ω(logn)\Omega(\regularlog n) rounds to merely simulate one player in the worst case, so we gained nothing.

We circumvent this issue by borrowing the idea of padding from [4]. In essence, we replace each edge between a player (white node) and a game (black node) with another tree-like construction, where the adversary gets to choose the height of the tree.

It turns out that this is enough to construct an LCL problem Π\Pi that exhibits a distributed quantum advantage! In essence, the reason for this is as follows:

  • Quantum algorithms: In the worst case the adversary can add padding of depth O(logn)O(\regularlog n), and the total overhead that we have in simulating the original O(1)O(1)-round quantum algorithm is O(logn)O(\regularlog n) rounds to simulate the activities of the players plus O(logn)O(\regularlog n) rounds to transmit information across a padded edge, in total O(logn)O(\regularlog n) rounds.

  • Classical algorithms: The adversary can select a suitable super-constant Δ\Delta and use trees of height O(logΔ)O(\regularlog\Delta) to represent players and trees of height O(logn)O(\regularlog n) for padding. We can start with a GHZ(Δ)\iterghz(\Delta)-instance with e.g. Θ(n1/3)\Theta(n^{1/3}) players, and we can then afford to use e.g. Θ(n1/3)\Theta(n^{1/3}) nodes for each tree that we use in padding. This results in an instance in which the algorithm has to see beyond Δ\Delta padded edges, in total up to distance Ω(Δlogn)\Omega(\Delta\regularlog n), which is worse than the complexity of the quantum algorithm for a super-constant Δ\Delta.

This is the essence of the construction. We give a more formal high-level overview in Section 3 and the technical details are postponed to Section 5.

Generalizations and future work.

We note here that exactly the same framework is applicable to a wide range of problems beyond GHZ(Δ)\iterghz(\Delta), as we are only making essential use of the fact that the validity of a solution for high-degree nodes can be verified with a finite automaton that processes edges in a sequential order, and hence we can linearize the problem. In particular, the widely-studied maximal matching problem has the same property.

Therefore we expect that the same construction will find use in engineering LCL problems that separate other models. For example, the maximal matching problem would be a good candidate for proving a separation between the quantum-LOCAL model and the SLOCAL model [26].

1.6 Key ideas in the proof of Theorem 1.2

To prove Theorem 1.2, we first take a step from distributed quantum algorithms to bounded-dependence distributions, and then observe that while such distributions cannot be efficiently sampled in the randomized-LOCAL model, we can nevertheless do a combination of partial sampling and brute-force completion to solve the same LCL problem.

Bounded-dependence distributions.

The statement of Theorem 1.2 refers to the quantum-LOCAL model, but it will be much more convenient to work in the bounded-dependence model [1], which is a generalization of finitely-dependent distributions [29, 28, 30].

Informally, a TT-dependent distribution is a probability distribution PP over labelings of some graph GG where the following holds: if we choose two sets of nodes XX and YY such that their TT-radius neighborhoods do not overlap, then PP restricted to XX is independent of PP restricted to YY.

While it is easy to see that the output of a TT-round randomized-LOCAL algorithm results in a TT-dependent distribution, it also holds that the output of a TT-round quantum-LOCAL algorithm results in a TT-dependent distribution. Hence it suffices to show that if we have a TT-dependent distribution PP over valid solutions of some LCL problem Π\Pi, we can construct a randomized-LOCAL algorithm that solves the same problem in O~(nT)\tilde{O}(\sqrt{nT}) rounds.

Sampling is hard.

It would be tempting to now design a randomized-LOCAL algorithm that produces a sample from distribution PP. However, this is not possible. Indeed, if we could sample efficiently from any TT-dependent distribution, we would also have a classical algorithm that efficiently simulates the distributed quantum algorithm from [31], which is known to require Ω(n)\Omega(n) rounds.

Partial sampling is easy.

We will exploit the clustering algorithm from [18]. In particular, with it we can partition nodes into well-separated clusters where the diameter of each cluster is O~(nT)\tilde{O}(\sqrt{nT}), the number of unclustered leftover nodes is O(n/T)O(\sqrt{n/T}), and clusters can be constructed in O~(nT)\tilde{O}(\sqrt{nT}) rounds in the randomized-LOCAL model.

We will split the leftover nodes into components that are at distance Ω(T)\Omega(T) from each others; in the worst case all leftover nodes are in the same component and it will have diameter D=O(nT)D=O(\sqrt{nT}).

Now if XX and YY are two components of leftover nodes, they are sufficiently far from each other so that PP restricted to XX is independent of PP restricted to YY. Hence we can sample from PP independently in each such component, and the joint distribution will be a sample from PP restricted to all leftover nodes.

To recap, so far we have used O~(nT)\tilde{O}(\sqrt{nT}) rounds to compute a clustering, and another O(nT)O(\sqrt{nT}) rounds to sample from PP in each component of leftover nodes. All leftover nodes have now committed to an output.

Completability helps us next.

Now it would be tempting to switch to the clusters and locally sample from PP conditioned on what has already been sampled, with the hope of globally getting a sample from PP. But as we discussed above, this cannot work, as it would let us simulate any quantum algorithms too efficiently in the classical models.

This is the point in which we will have to use the assumption that PP is an output distribution that solves the LCL problem Π\Pi with high probability. In the previous step, we have produced a sample SS from PP restricted to the leftover nodes. Equivalently, we can imagine that SS is constructed by the following process: we have first sampled a labeling SS^{*} of the entire graph from PP, and then discarded the labels inside the clusters (keeping only the values of the leftover nodes). Now with high probability SS^{*} is a valid solution to Π\Pi, so with high probability our partial solution SS can be extended to some globally valid solution of Π\Pi. Furthermore, we can find such a completion independently for each cluster, e.g., simply by brute force: collect the entire cluster and the partial solution at its boundaries and find a valid completion. Here we exploit the fact that Π\Pi is a locally checkable problem: any completion that is locally valid in each cluster is also globally valid. As the clusters had diameter O~(nT)\tilde{O}(\sqrt{nT}), this step takes also O~(nT)\tilde{O}(\sqrt{nT}) rounds, and the total running time is also O~(nT)\tilde{O}(\sqrt{nT}).

Put together, given a TT-round quantum-LOCAL algorithm for some LCL problem Π\Pi, we can construct a randomized-LOCAL algorithm that solves the same problem in O~(nT)\tilde{O}(\sqrt{nT}) rounds. We will give the details of the proof in Section 4.

Generalizations and future work.

As we took a route through bounded-dependence distributions, we immediately get a stronger result: TT-dependent distributions over LCLs can be simulated in randomized-LOCAL in O~(nT)\tilde{O}(\sqrt{nT}) rounds. In particular, this shows that there cannot exist an LCL that admits a finitely dependent distribution (i.e., O(1)O(1)-dependent distribution) but requires Ω(n)\Omega(n) rounds to solve with classical algorithms—previously this was only known in trees [1, 20].

Our general proof strategy can be pushed further, towards stronger models. It works directly in the component-wise version of the online-LOCAL model [2, 1]. Furthermore, online-LOCAL algorithms with locality O(1)O(1) can be turned into component-wise algorithms [1], and hence we also get a result that puts limits on the gap between the online-LOCAL and classical LOCAL models. Our simulation result is also close to the best possible, as a much stronger result would contradict with the known bounds for the problem of 33-coloring bipartite graphs, which is a problem that can be solved with locality O(logn)O(\regularlog n) in (component-wise) online-LOCAL yet requires Ω(n)\Omega(\sqrt{n}) rounds in the classical randomized-LOCAL model [2, 18, 1, 16, 12]. We will discuss the extension of our result to component-wise online-LOCAL more in Appendix A.

2 Preliminaries

Graphs.

We work with simple undirected graphs unless otherwise specified. Let G=(V,E)G=(V,E) be any graph. If the set of nodes VV and the set of edges EE are not specified, we refer to them by the notation V(G)V(G) and E(G)E(G), respectively. For any subset of nodes AVA\subseteq V, the subgraph of GG induced by AA is denoted by G[A]G[A]. The distance between any two nodes u,vVu,v\in V is the number of edges composing a shortest path between uu and vv, and is denoted by distG(u,v)\dist_{G}(u,v). The notion of distance can be easily extended to subsets of nodes: Given any node uVu\in V and any two subsets A,BVA,B\subseteq V, the distance between uu and AA is distG(u,A)=minvA{distG(u,v)}\dist_{G}(u,A)=\min_{v\in A}\{\dist_{G}(u,v)\} and the distance between AA and BB is distG(A,B)=minuA,vB{distG(u,v)}\dist_{G}(A,B)=\min_{u\in A,v\in B}\{\dist_{G}(u,v)\}. When the graph is clear from the context, we omit the suffix and write only dist()\dist() instead of distG()\dist_{G}().

For any non-negative integer TT, the radius-TT (closed) neighborhood of a node uu in a graph GG is the set 𝒩T[u]={vV|dist(u,v)T}\mathcal{N}_{T}[u]=\left\{v\in V\ \middle|\ \dist(u,v)\leq T\right\}. More generally, the radius-TT neighborhood of any subset of node AVA\subseteq V is 𝒩T[A]=uA𝒩T[u]\mathcal{N}_{T}[A]=\cup_{u\in A}\mathcal{N}_{T}[u].

We adopt the nomenclature half-edge to refer to any pair (v,e)(v,e) where vVv\in V and eEe\in E is an edge incident to vv. In order to be able to define the class of problems we consider, we need to define what a labeled graph is.

Definition 2.1 (Labeled graph).

Let 𝒱\mathcal{V} and \mathcal{E} be sets of labels. A graph G=(V,E)G=(V,E) is said to be (𝒱,)(\mathcal{V},\mathcal{E})-labeled if the following statements are satisfied:

  1. 1.

    Each node vVv\in V is assigned a label from 𝒱\mathcal{V};

  2. 2.

    Each half-edge (v,e)V×E(v,e)\in V\times E satisfying vev\in e is assigned a label from \mathcal{E}.

We also define the notion of centered graph, that is, a graph with a distinguished node that we call the center.

Definition 2.2 (Centered graph).

Let H=(V,E)H=(V,E) be any graph, and let vHVHv_{H}\in V_{H} be any node of HH. The pair (H,vH)(H,v_{H}) is said to be a centered graph and vHv_{H} is said to be the center of (H,vH)(H,v_{H}).

We will focus on problems that ask to produce labelings over graphs that satisfy some constraints in all radius-rr neighborhoods of any node. We remind the reader that the eccentricity of a node vv of a graph HH is the maximum distance between vv and any other node of HH.

Definition 2.3 (Set of constraints).

Let r,Δr,\Delta\in\mathbb{N} be constants, II a finite set of indices, and (𝒱,)(\mathcal{V},\mathcal{E}) a tuple of finite label sets. Let 𝒞\mathcal{C} be a finite set of centered graphs {(Hi,vHi)}iI\{(H_{i},v_{H_{i}})\}_{i\in I} where each HiH_{i} is a (𝒱,)(\mathcal{V},\mathcal{E})-labeled graph of degree at most Δ\Delta and vHiv_{H_{i}} has eccentricity at most rr. Then, 𝒞\mathcal{C} is said to be an (r,Δ)(r,\Delta)-set of constraints over (𝒱,)(\mathcal{V},\mathcal{E}).

With the following definition, we explain what it means to satisfy a set of constraints.

Definition 2.4 (Labeled graph satisfying a set of constraints).

Let G=(V,E)G=(V,E) be a (𝒱,)(\mathcal{V},\mathcal{E})-labeled graph for some finite sets of labels 𝒱\mathcal{V} and \mathcal{E}. Let 𝒞\mathcal{C} be an (r,Δ)(r,\Delta)-set of constraints over (𝒱,)(\mathcal{V},\mathcal{E}) for some finite r,Δr,\Delta\in\mathbb{N}. The graph GG satisfies 𝒞\mathcal{C} if the following statement is satisfied:

  • For every node vVv\in V, the (𝒱,)(\mathcal{V},\mathcal{E})-labeled graph G[𝒩r[v]]G[\mathcal{N}_{r}[v]] is such that (G[𝒩r[v]],v)𝒞(G[\mathcal{N}_{r}[v]],v)\in\mathcal{C}.

We are now ready to define the class of problems of interest.

Definition 2.5 (Locally checkable labeling (LCL) problems).

Let r,Δr,\Delta\in\mathbb{N} be constants. A locally checkable labeling (LCL) problem Π\Pi is a tuple (𝒱in,in,𝒱out,out,𝒞)(\mathcal{V}_{\text{in}},\mathcal{E}_{\text{in}},\mathcal{V}_{\text{out}},\mathcal{E}_{\text{out}},\mathcal{C}) where 𝒱in\mathcal{V}_{\text{in}}, in\mathcal{E}_{\text{in}}, 𝒱out\mathcal{V}_{\text{out}}, and out\mathcal{E}_{\text{out}} are finite label sets and 𝒞\mathcal{C} is an (r,Δ)(r,\Delta)-set of constraints over (𝒱in×𝒱out,in×out)(\mathcal{V}_{\text{in}}\times\mathcal{V}_{\text{out}},\mathcal{E}_{\text{in}}\times\mathcal{E}_{\text{out}}).

We now explain what it means to solve an LCL problem Π\Pi. We are given as input a (𝒱in,in)(\mathcal{V}_{\text{in}},\mathcal{E}_{\text{in}})-labeled graph G=(V,E)G=(V,E). For any node vVv\in V and half-edge (v,e)V×E(v,e)\in V\times E, let us denote the input label of vv by in(v)\ell_{\text{in}}(v), and the input label of (v,e)(v,e) by in((,,,))\ell_{\text{in}}((v,e)). We want to produce an output labeling on GG so that we obtain a (𝒱out,out)(\mathcal{V}_{\text{out}},\mathcal{E}_{\text{out}})-labeled graph. Let us denote by out(v)\ell_{\text{out}}(v) and by out((,,,))\ell_{\text{out}}((v,e)) the output labels of vv and (v,e)(v,e), respectively. Consider the (𝒱in×𝒱out,in×out)(\mathcal{V}_{\text{in}}\times\mathcal{V}_{\text{out}},\mathcal{E}_{\text{in}}\times\mathcal{E}_{\text{out}})-labeled graph GG where the labeling is defined as follows: the label of each node vv is (v)=(in(v),out(v))\ell(v)=(\ell_{\text{in}}(v),\ell_{\text{out}}(v)), and the label of each half-edge (v,e)(v,e) is ((v,e))=(in((v,e)),out((v,e)))\ell((v,e))=(\ell_{\text{in}}((v,e)),\ell_{\text{out}}((v,e))). Now, the (𝒱in×𝒱out,in×out)(\mathcal{V}_{\text{in}}\times\mathcal{V}_{\text{out}},\mathcal{E}_{\text{in}}\times\mathcal{E}_{\text{out}})-labeled graph GG must satisfy the (r,Δ)(r,\Delta)-set of constraints 𝒞\mathcal{C} over (𝒱in×𝒱out,in×out)(\mathcal{V}_{\text{in}}\times\mathcal{V}_{\text{out}},\mathcal{E}_{\text{in}}\times\mathcal{E}_{\text{out}}) according to Definition 2.4.

The LOCAL model.

In the LOCAL model of computing, we are given a distributed system of nn processors/nodes. The processors are connected through a communication network that is modeled by a graph G=(V,E)G=(V,E). Computation proceeds in synchronous rounds: in each round, nodes simultaneously exchange messages with their neighbors, perform some local computation, and update their states variables based on the received messages. Note that communication bandwidth is unconstrained (i.e., messages can be of any size) and nodes are capable of arbitrary local computation, and it is assumed that all processes are fault-free and messages cannot be corrupted. At the beginning of computation, all processors are identical and start with identical copies of the same state variables, except for a distinguished local variable x(v)\mathrm{x}(v) which stores input data for node vv. Input data for a node vv encodes the number nn of nodes in the network, a unique identifier from the set [nc]={1,2,,nc}[n^{c}]=\{1,2,\ldots,n^{c}\} where c1c\geq 1 is a fixed constant, and possible inputs defined by the problem of interest (we assume nodes store both input node labels and input half-edge labels). If computation is randomized, x(v)\mathrm{x}(v) also encodes a private, infinite random bit string that is independent of the random bits of all other nodes. In this case, we refer to the model as the randomized LOCAL model as opposed to the deterministic LOCAL model. The goal of the computation is to assign to each node vv an output label out(v)\ell_{\text{out}}(v) and computation ends when all nodes have decided on their output labels. The running time of an algorithm is the number of communication rounds required to solve a problem. If computation is randomized, we also ask that the algorithm solves the problem of interest with probability at least 11/poly(n)1-1/\poly(n), where polyn\poly{n} is any polynomial function in nn. Since computation and message size is unbounded, we can look at TT-rounds LOCAL algorithms as functions mapping radius-TT neighborhoods of nodes to output labels (in the deterministic case) or probability distributions over output labels (in the randomized case). That is why we refer to the parameter TT as the locality of the algorithm.

The quantum-LOCAL model.

The quantum-LOCAL model of computing is similar to the deterministic LOCAL model above, where we replace the classical processors with quantum processors and the classical communication links with quantum communication links. More precisely, the quantum processors can manipulate local states consisting of an unbounded number of qubits with arbitrary unitary transformations, while the communication links are quantum communication channels, and the local outputs can be the result of any quantum measurement. As in the deterministic LOCAL model, adjacent nodes can exchange any number of qubits. We refer to the randomized LOCAL model of computing as classical LOCAL , as opposed to the quantum-LOCAL model of computing. Akin to the classical LOCAL model, also in quantum-LOCAL we ask that a problem is solved with probability at least 11/poly(n)1-1/\poly(n). This is just an intuitive definition of the model which is sufficient for our purposes, but the interested reader can find a formal definition in [23].

3 Quantum advantage: high level ideas

In this section, we provide a high-level explanation of how the LCL problem Π\Pi that exhibits quantum advantage is defined, and we explain why its quantum and classical complexities differ. All the formal details are deferred to Section 5.

Proper instances.

In Section 1.5, we explained how we would like a graph to be in order to have an instance that is easy for a quantum algorithm but hard for any classical algorithm. We call the family of graphs explained in Section 1.5 proper instances, i.e., these graphs are graphs that can be obtained by starting from an arbitrary (not necessarily connected) graph and then replacing each node, and each edge, with a tree-like construction.

LCLs must be promise-free.

However, a standard LCL must be defined on any graph, that is, it must not require the promise that the given input graph satisfies some specific conditions. That is, our LCL problem Π\Pi must be well-defined even in graphs that do not look at all like proper instances. In particular, we want a problem that, on any graph, even on those that look completely different from a proper instance, should still be solvable in O(logn)O(\regularlog n) rounds by a quantum algorithm.

Overview of the problem 𝚷\Pi.

On a high level, our (promise-free) LCL problem Π\Pi will be defined such that it requires solving two problems, called Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}} and Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}}. More in detail, in O(logn)O(\regularlog n) classical deterministic rounds, nodes can produce a labeling that marks invalid parts of the graph, that is, parts of the graph that do not look like subgraphs of a proper instance. On the other hand, the problem will be defined such that marking as invalid the parts of the graph that are actually valid is not possible. We will formally define this labeling as an LCL called Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}}. Then, the problem Π\Pi will require to solve some other problem Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} in parts of the graph that are not marked.

How we define 𝚷𝗽𝗿𝗼𝗺𝗶𝘀𝗲\Pi^{\mathsf{promise}}.

The problem Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} will satisfy the following properties.

  • It is an LCL with promise, that is, it is guaranteed that the input graph is a proper instance.

  • In proper instances, the complexity is O(logn)O(\regularlog n) for quantum algorithms but ω(logn)\omega(\regularlog n) for classical randomized algorithms.

How we define 𝚷𝗯𝗮𝗱𝗚𝗿𝗮𝗽𝗵\Pi^{\mathsf{badGraph}}.

The problem Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}} will satisfy the following properties.

  • This problem is promise-free, that is, any input graph is allowed.

  • There is a special output label for Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}} called \bot.

  • In O(logn)O(\regularlog n) classical deterministic rounds it is possible to produce a solution for Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}} such that the subgraph induced by nodes labeled \bot is a proper instance.

How we define 𝚷\Pi.

Our LCL problem Π\Pi will then be defined as follows.

  • Nodes need to solve Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}}.

  • On the subgraph induced by nodes that output \bot for Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}}, nodes need to solve Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}}.

Quantum upper bound.

Then, we will show that our problem Π\Pi can be solved in O(logn)O(\regularlog n) quantum rounds, as follows.

  • Nodes spend O(logn)O(\regularlog n) classical deterministic rounds to mark invalid parts of the graph, guaranteeing that the subgraph induced by nodes labeled \bot is a proper instance.

  • Nodes spend O(logn)O(\regularlog n) quantum rounds to solve Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} in the subgraph induced by nodes labeled \bot.

Classical lower bound.

Finally, we will show that our problem Π\Pi requires ω(logn)\omega(\regularlog n) classical randomized rounds, as follows.

  • As a lower bound graph, we consider a graph that is a proper instance. This implies that, on this graph, any solution for Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}} must label all nodes \bot.

  • The (proper) instance is constructed as follows. Let GG be a lower bound graph for GHZ(Δ)\iterghz(\Delta), where Δ\Delta is an appropriately chosen degree, as a function of nn. We replace nodes and edges with tree-like constructions, as follows.

    • Tree-like constructions used to replace nodes will have an appropriate height to guarantee that they have Δ\Delta leaves.

    • Tree-like constructions used to replace edges will have height Θ(logn)\Theta(\regularlog n).

  • We show that if Π\Pi can be solved in O(logn)O(\regularlog n) randomized classical rounds on these graphs, then we reach a contradiction with the lower bound for GHZ(Δ)\iterghz(\Delta). For this purpose, we will exploit the fact that, informally, each edge has been stretched by a Θ(logn)\Theta(\regularlog n) factor.

3.1 The tree-like gadget

A basic building block for our construction is a structure called tree-like gadget, that has already been used in different ways in several works related to LCLs (see, e.g., [4, 9, 7]). An example of tree-like gadget is shown in Figure 1. In Section 5.1, we will formally define tree-like gadgets and state their properties.

Local checkability of tree-like gadgets.

Informally, a tree-like gadget is a perfect binary tree in which all nodes that are at the same depth are connected via a path. It is known from previous work that this structure is locally checkable, that is, there exist a set of labels Σ𝗍𝗋𝖾𝖾\Sigma^{\mathsf{tree}} and a set of constraints C𝗍𝗋𝖾𝖾C^{\mathsf{tree}} (checkable by inspecting the O(1)O(1)-radius neighborhood of each node) satisfying the following properties.

  • Any tree-like gadget can be labeled with labels from Σ𝗍𝗋𝖾𝖾\Sigma^{\mathsf{tree}} such that the constraints C𝗍𝗋𝖾𝖾C^{\mathsf{tree}} are satisfied on all nodes.

  • For any connected graph that is not a tree-like gadget, and for any labeling from Σ𝗍𝗋𝖾𝖾\Sigma^{\mathsf{tree}}, there exists at least one node for which the constraints C𝗍𝗋𝖾𝖾C^{\mathsf{tree}} are not satisfied.

Figure 1: On the left, a tree-like gadget. On the right, a tree-like gadget labeled with labels from Σ𝗍𝗋𝖾𝖾\Sigma^{\mathsf{tree}} such that the constraints 𝒞𝗍𝗋𝖾𝖾\mathcal{C}^{\mathsf{tree}} are satisfied.

The LCL problem 𝚷𝗯𝗮𝗱𝗧𝗿𝗲𝗲\Pi^{\mathsf{badTree}}.

While local checkability is a very useful property, in order to define our problem we need an even stronger property: if there is an error somewhere in the graph we want all nodes to be able to quickly detect the error. In previous works, it is shown that tree-like gadgets indeed satisfy this stronger property. More in detail, there exists an LCL problem Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}} satisfying the following properties.

  • There is a special output label for Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}}, called \bot.

  • For any connected graph GG, there exists a solution for Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}} satisfying that, if GG is not a tree-like gadget, then no node of GG is labeled \bot.

  • Such a solution can be computed in O(logn)O(\regularlog n) deterministic classical rounds.

On a high level, the problem Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}} is defined as follows.

  • Labels from Σ𝗍𝗋𝖾𝖾\Sigma^{\mathsf{tree}} are an input for the problem Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}}.

  • Nodes that do not satisfy the constraints C𝗍𝗋𝖾𝖾C^{\mathsf{tree}} can directly output an error.

  • It is possible to prove that, if there is an error somewhere, all other nodes must see an error within distance O(logn)O(\regularlog n), and Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}} allows outputting pointers to prove that there is an error somewhere.

  • The constraints on the output of Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}} are carefully defined so that, on tree-like gadgets that are properly labeled with labels from Σ𝗍𝗋𝖾𝖾\Sigma^{\mathsf{tree}} (i.e., the constraints C𝗍𝗋𝖾𝖾C^{\mathsf{tree}} are satisfied on all nodes), no cheating is allowed, that is, it is not possible to output pointers in some carefully crafted way that gives a valid output for Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}}.

  • Nodes that do not output errors or pointers must output \bot.

For reasons that will become clear later, nodes will have an additional input for Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}}, which is either 00, i.e., unmarked nodes, or 11, i.e., marked nodes, and Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}} is defined such that marked nodes are always allowed to output an error. An example of valid solution of Πbadtree\Pi^{\mathrm{badtree}} is depicted in Figure 2.

Figure 2: An example of solution of Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}} in which, since one node is marked (i.e., it has input 11), all nodes output something different from \bot (i.e., they all output pointers). Informally, the problem Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}} allows outputting pointers, and in order to not allow cheating (i.e., by creating local cycles with pointers), some specific sequences of pointers are forbidden in the definition of Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}}. For example, a pointer going up or down is not allowed to appear after a pointer going left or right, and pointing to the left child is always forbidden.

How we will use 𝚷𝗯𝗮𝗱𝗧𝗿𝗲𝗲\Pi^{\mathsf{badTree}}.

We will define a more complex gadget, called octopus, which consists of many tree-like structures connected in a specific way. We will define a problem Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}} that allows to mark invalid octopus gadgets. In the definition of Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}}, we will use Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}} as a subproblem. Informally, our final problem Π\Pi will satisfy that, if the adversary really wants nodes to solve Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} (i.e., to make the problem non-trivial), then it needs to properly label tree-like gadgets and octopus gadgets, so that the output for the problems Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}} and Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}} needs to be \bot everywhere.

3.2 The octopus gadget

In Section 5.2, we will formally define the notion of octopus gadget, and we will prove some useful properties of this object. Informally, an octopus gadget is a graph that can be obtained as follows. Let Δ\Delta be an integer power of 22. Start with a tree-like gadget G0G_{0} that has Δ\Delta leaves, and with additional Δ\Delta tree-like gadgets G1,,GΔG_{1},\ldots,G_{\Delta}. For each 1iΔ1\leq i\leq\Delta, add an edge between the ii-th leaf of the gadget G0G_{0} and the root of the gadget GiG_{i}. The tree-like gadget G0G_{0} is called head gadget, while all the other tree-like gadgets are called port gadgets. The formal definition of octopus gadget in Section 5.2 will be more general: to each leaf of the head gadget we will connect either 11 or 22 port gadgets. In this way, we will be able to handle also cases in which Δ\Delta is not a power of 22. An example of octopus gadget is depicted in Figure 3.

Figure 3: An example of octopus gadget. The connected component induced by yellow nodes and their incident orange edges is the head gadget. Each connected component induced by gray nodes and their incident orange edges is a port gadget. Blue edges properly connect these tree-like gadgets to create a proper octopus gadget. Nodes and edges will be labeled such that this structure is locally checkable. For example, blue edges will have special labels to denote that they do not belong to the tree-like gadgets.

Local checkability of octopus gadgets.

We will prove that, similarly to the case of tree-like gadgets, also octopus gadgets are locally checkable. More in detail, we will prove that there exists a set of input labels Σ𝗈𝖼𝗍𝗈𝗉𝗎𝗌\Sigma^{\mathsf{octopus}} and a set of constraints C𝗈𝖼𝗍𝗈𝗉𝗎𝗌C^{\mathsf{octopus}} over these labels satisfying the following properties.

  • Any octopus gadget can be labeled with labels from Σ𝗈𝖼𝗍𝗈𝗉𝗎𝗌\Sigma^{\mathsf{octopus}} such that the constraints C𝗈𝖼𝗍𝗈𝗉𝗎𝗌C^{\mathsf{octopus}} are satisfied on all nodes.

  • For any connected graph that is not an octopus gadget, and for any labeling from Σ𝗈𝖼𝗍𝗈𝗉𝗎𝗌\Sigma^{\mathsf{octopus}}, there exists at least one node for which the constraints C𝗈𝖼𝗍𝗈𝗉𝗎𝗌C^{\mathsf{octopus}} are not satisfied.

In order to define Σ𝗈𝖼𝗍𝗈𝗉𝗎𝗌\Sigma^{\mathsf{octopus}} and C𝗈𝖼𝗍𝗈𝗉𝗎𝗌C^{\mathsf{octopus}}, we will extend Σ𝗍𝗋𝖾𝖾\Sigma^{\mathsf{tree}} and C𝗍𝗋𝖾𝖾C^{\mathsf{tree}}, as follows.

  • Each edge will be additionally labeled to denote whether the edge is part of a tree-like gadget, i.e., internal edge, or if it is an edge connecting different tree-like gadgets, i.e., external edge.

  • Each node will be additionally labeled to denote whether it is part of the head gadget or if it is part of a port gadget.

  • C𝗈𝖼𝗍𝗈𝗉𝗎𝗌C^{\mathsf{octopus}} will be defined such that, in the subgraph induced by internal edges, the constraints C𝗍𝗋𝖾𝖾C^{\mathsf{tree}} must hold, and such that nodes belonging to the same tree-like gadget must either be all labeled head or all labeled port.

  • C𝗈𝖼𝗍𝗈𝗉𝗎𝗌C^{\mathsf{octopus}} will contain additional constraints to make sure that external edges are properly connected.

The LCL problem 𝚷𝗯𝗮𝗱𝗢𝗰𝘁𝗼𝗽𝘂𝘀\Pi^{\mathsf{badOctopus}}.

As in the case of tree-like gadgets, we need the stronger property that, if there is some error somewhere, then all nodes are able to prove this fact in O(logn)O(\regularlog n) deterministic classical rounds, such that no cheating is allowed (i.e., in properly labeled octopus gadgets, the output must be \bot everywhere). For this purpose, we define an LCL problem Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}}. On a high level, this problem is defined by requiring nodes to solve Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}} multiple times, each time having potentially more marked nodes (and hence allowed to directly output error). More in detail, we define Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}} as follows.

  • Nodes that do not satisfy some of the constraints of C𝗈𝖼𝗍𝗈𝗉𝗎𝗌C^{\mathsf{octopus}} are marked.

  • Nodes need to solve Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}} in the subgraph induced by internal edges. Observe that it could be the case that some node is in a valid tree-like gadget, but some constraint of C𝗈𝖼𝗍𝗈𝗉𝗎𝗌C^{\mathsf{octopus}} is not satisfied on the node (e.g., because some external edge is wrongly connected). In this case, since the node is marked, it is allowed to produce an error when solving Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}}. Let O1O_{1} be the output labeling produced by the nodes at this point.

  • Nodes that are labeled to be part of a head gadget need to solve Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}} again. This time, however, a node is marked also if it has an incident external edge connecting it to a node that did not output \bot in O1O_{1}. Let O2O_{2} be the output labeling produced by the nodes at this point.

  • Nodes that are labeled to be part of a port gadget need to solve Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}} again. Similarly as before, this time, a node is marked also if it has an incident external edge connecting it to a node that did not output \bot in O2O_{2}.

Thanks to our triple usage of Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}}, we will be able to handle bad cases like the following. Assume that there is a broken port gadget connected to a valid head gadget, and all other port gadgets connected to the head gadget are valid. In this case, we want Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}} to allow a solution in which no node outputs \bot. Indeed, Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}} allows the following solution.

  • In the first instance of Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}}, all nodes part of the broken port gadget can output something different from \bot, while all other nodes output \bot.

  • In the second instance of Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}}, the node of the head gadget that is connected to the broken gadget will be marked, and hence all nodes of the head gadget can output something different from \bot.

  • In the third instance of Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}}, all the roots of the port gadgets will be marked, and hence all nodes can output something different from \bot.

In fact, we will prove that in all graphs that are not a valid octopus gadget, nodes can compute a solution in O(logn)O(\regularlog n) deterministic classical rounds such that no node outputs \bot, while in valid octopus gadgets, we still maintain the property that the only allowed output is \bot everywhere. Figure 4 shows an example of a solution of Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}} in a broken octopus gadget.

Figure 4: This graph contains a yellow node that has no children (i.e., no incident edges labeled 𝖢𝗁𝖫\mathsf{Ch_{L}} and 𝖢𝗁𝖱\mathsf{Ch_{R}}) and is missing a blue edge, i.e., this graph is not a valid octopus gadget. On the left, the output of the nodes in the first instance of Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}} is shown, where port gadgets do not see any error and output \bot, but the nodes that are part of the broken head gadget prove that there is some error by using pointers. On the right, the output of the nodes in the next instance of Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}} is shown, where now the roots of the port gadgets are marked, and hence all the nodes in the port gadgets can now prove that there is an error.

Similarly as in the case of Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}}, also in the case of Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}} nodes will have an additional input for Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}}, which is either 00, i.e., unmarked nodes, or 11, i.e., marked nodes, and Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}} is defined such that nodes that are marked for Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}} are also marked for Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}}. We will use this fact later when defining Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}}.

3.3 The family of proper instances

In Section 5.3, we will formally define the family of proper instances. Informally, a proper instance is a graph GG^{\prime} that can be obtained as follows. Let G=(U,V,E)G=(U,V,E) be a bipartite graph that is not necessarily connected and that could contain parallel edges. Assume each node uUu\in U has a degree that is an integer power of 22 (we will get rid of this assumption, and only require uu to not have degree 00, in Section 5.3). For each node uUu\in U, we put an octopus gadget g(u)g(u) in GG^{\prime}, and for each node vVv\in V, we put a node f(v)f(v) in GG^{\prime}. These latter types of nodes are called inter-octopus nodes. Then, let {u,v}\{u,v\} be the ii-th edge incident to uu, for some given order. We add an edge in GG^{\prime} between the left-most leaf of the ii-th port gadget of g(u)g(u) and f(v)f(v). We call these edges inter-octopus edges. Figure 5 shows an example of a proper instance.

Figure 5: A graph GG (above) and a possible proper instance GG^{\prime} (below) that can be constructed starting from GG. Black nodes in GG^{\prime} correspond to inter-octopus nodes, and black edges correspond to inter-octopus edges.

Local checkability of proper instances.

Similarly as in the case of tree-like gadgets and octopus gadgets, we will define a set of input labels Σ𝗉𝗋𝗈𝗉𝖾𝗋\Sigma^{\mathsf{proper}} and a set of constraints C𝗉𝗋𝗈𝗉𝖾𝗋C^{\mathsf{proper}} satisfying the following properties.

  • Any proper instance can be labeled with labels from Σ𝗉𝗋𝗈𝗉𝖾𝗋\Sigma^{\mathsf{proper}} such that the constraints C𝗉𝗋𝗈𝗉𝖾𝗋C^{\mathsf{proper}} are satisfied on all nodes.

  • For any connected graph that is not a proper instance, and for any labeling from Σ𝗉𝗋𝗈𝗉𝖾𝗋\Sigma^{\mathsf{proper}}, there exists at least one node for which the constraints C𝗉𝗋𝗈𝗉𝖾𝗋C^{\mathsf{proper}} are not satisfied.

Similarly as in the case of octopus gadgets, in order to define Σ𝗉𝗋𝗈𝗉𝖾𝗋\Sigma^{\mathsf{proper}} and C𝗉𝗋𝗈𝗉𝖾𝗋C^{\mathsf{proper}}, we will extend Σ𝗈𝖼𝗍𝗈𝗉𝗎𝗌\Sigma^{\mathsf{octopus}} and C𝗈𝖼𝗍𝗈𝗉𝗎𝗌C^{\mathsf{octopus}}. For example, we will use additional labels for labeling inter-octopus edges. These edges will have additional constraints, to ensure that they are properly connected to octopus gadgets and to inter-octopus nodes.

The LCL problem 𝚷𝗯𝗮𝗱𝗚𝗿𝗮𝗽𝗵\Pi^{\mathsf{badGraph}}.

Similarly as in the case of tree-like gadgets and octopus gadgets, we would like nodes to be able to quickly prove that the graph is not a proper instance, if that is the case. Unfortunately, this seems to be not possible. However, a weaker guarantee is sufficient. We will define a problem Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}} satisfying the following properties.

  • There is a special output label for Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}}, called \bot.

  • For any graph GG, there exists a solution for Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}} satisfying that the subgraph induced by nodes labeled \bot is a proper instance.

  • Such a solution can be computed in O(logn)O(\regularlog n) deterministic classical rounds.

This problem will be defined by first marking nodes that do not satisfy C𝗉𝗋𝗈𝗉𝖾𝗋C^{\mathsf{proper}}, and then requiring the nodes to solve Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}} on the subgraph induced by nodes that are not inter-octopus. Moreover, there will be a special output allowed for inter-octopus nodes that do not satisfy C𝗉𝗋𝗈𝗉𝖾𝗋C^{\mathsf{proper}}.

3.4 The LCL problem 𝚷\Pi

We will formally define our LCL problem Π\Pi in Section 5.5. Informally, it is defined as follows.

  • The input given to Π\Pi becomes an input for the problem Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}}.

  • Nodes need to solve Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}}.

  • Let GG^{\prime} be the subgraph induced by the nodes outputting \bot. On GG^{\prime}, nodes need to solve Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}}.

In other words, on a high level, we use Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}} to transform the promise-problem Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} into a promise-free LCL problem Π\Pi. That is, all the machinery that we have defined until this point are what we use to make Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} promise-free. More in detail, everything is defined so that on proper instances, the only valid solution for Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}} is the one assigning \bot to all nodes, and hence it is required to solve Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} on all nodes. Hence, a worst-case instance for Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} can be translated into a worst-case instance for Π\Pi.

In order to make Π𝗉𝗋𝗈𝗉𝖾𝗋\Pi^{\mathsf{proper}} promise-free, we pay a cost: it takes O(logn)O(\regularlog n) rounds to mark invalid parts of the graph, and hence to restrict to a subgraph that is a proper instance. Since this cost is still lower than the randomized classical complexity of Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}}, we are still able to prove a promise-free separation between quantum and classical randomized.

3.5 The problem 𝚷𝗽𝗿𝗼𝗺𝗶𝘀𝗲\Pi^{\mathsf{promise}}

Before giving an overview of the problem Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}}, we first discuss a family of problems that can be used, as a starting point, in order to define Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}}. In fact, our construction does not only work for a specific problem, but it works for an entire family of problems that we call linearizable problems. A linearizable problem Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾=(Σ,(F,L,P),B)\Pi^{\mathsf{linearizable}}=(\Sigma,(F,L,P),B) is defined as follows.

Definition 3.1 (Linearizable problem).

Let HH be a hypergraph, and let GG be its bipartite incidence graph. Let the nodes of GG corresponding to the nodes of HH be called white nodes, and let the nodes of GG corresponding to the hyperedges of HH be called black nodes.

  • The task is to label each edge of GG with a label from some finite set Σ\Sigma.

  • There is a list of allowed black node configurations BB, which is a list of multisets of labels from Σ\Sigma that describes valid labelings of edges incident on a black node. We say that a black node satisfies the black constraint if its incident edges are labeled in a valid way. It is assumed that the rank of HH, and hence the maximum degree of black nodes, is a constant.

  • Constraints on white nodes are described as a triple (F,L,P)(F,L,P), where FF (which stands for first) and LL (which stands for last) are finite sets of labels, and PP (which stands for pairs) is a finite set of ordered pairs of labels. In this formalism, it is assumed that an ordering on the incident edges of a white node is given, and it is required that:

    • The first edge is labeled with a label from FF;

    • The last edge is labeled with a label from LL;

    • Each pair of consecutive edges must be labeled with a pair of labels from PP.

    We say that a white node satisfies the white constraint if its incident edges are labeled in a valid way.

When solving a linearizable problem in the distributed setting, it is assumed that each node knows whether it is white or black.

Figure 6: In this example we have hyperedges of rank 2, i.e., black nodes have degree exactly 2. We consider the problem of edge grabbing, where we need to orient some edges such that each white node has exactly one outgoing (or grabbed) edge. On the left, it is depicted an example of a solution for this problem. On the right, we show the same solution encoded as a solution for an equivalent linearizable problem. The label GG stands for “grabbed”, the label NN stands for “non grabbed”, the label AA stands for “already grabbed some previous edge”. The constraints on black nodes are {{N,N},{N,A},{N,G},{G,A},{A,A}}\{\{N,N\},\{N,A\},\{N,G\},\{G,A\},\{A,A\}\}, that is, we do not allow white nodes to grab the same edge (i.e., we forbid {G,G}\{G,G\}). The constraints on white nodes are determined by the triple (F,L,P)(F,L,P), where F={N,G}F=\{N,G\}, L={G,A}L=\{G,A\}, P={(N,N),(N,G),(G,A),(A,A)}P=\{(N,N),(N,G),(G,A),(A,A)\}. For example, the configuration of the central white node, ordered according to the ordering of its incident edges, is (N,N,G,A,A,A)(N,N,G,A,A,A), where NFN\in F, ALA\in L, and each consecutive pair of labels is in PP.

An example of a definition of a problem using this formalism is shown in Figure 6. The useful feature of this family of problems is that, even if the labels of a node are laid down on a (possibly very long) path, it is still possible to locally check for correctness. This property will be crucial for defining Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}}. Moreover, as discussed in Section 1, the family of problems GHZ(Δ)\iterghz(\Delta) can be described as a single linearizable problem.

We are now ready to discuss Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}}. Let Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾=(Σ,(F,L,P),B)\Pi^{\mathsf{linearizable}}=(\Sigma,(F,L,P),B) be a linearizable problem. The problem Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} is defined as a function of the chosen problem Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}}, as follows. While in Section 5.4 we will handle the case in which each leaf of the head gadgets is connected to either 11 or 22 port gadgets, in the following we consider the simpler setting in which each leaf of the head gadgets is connected to a single port gadget.

  • Each port gadget of our construction corresponds to an edge of GG. We require all nodes of each port gadget to output a label of Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}}, with the requirement that all nodes of a port gadget are labeled with the same label.

  • In our construction, nodes corresponding to black nodes of GG are marked in a special way, and hence they know to be nodes corresponding to black nodes. Let bb be one such node, and let MM be the multiset containing the output labels of the neighboring nodes (which are nodes belonging to port gadgets) of bb. We require MM to be a configuration allowed by the black constraint of Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}}.

  • Thanks to the input of the problem Π\Pi, leaves of a head gadget know that they are leaves of a head gadget, and additionally, the left-most leaf vv and the right-most leaf uu know that they are, respectively, the left-most and the right-most leaves. Let ff be the output label of the port node connected to vv, let \ell be the output label of the port node connected to uu, and let oio_{i} be the output label of the port node connected to the ii-th leaf. We require that fFf\in F, that L\ell\in L, and that each pair (oi,oi+1)(o_{i},o_{i+1}) is in PP.

Thanks to these constraints, we have that, in a valid labeling, each octopus gadget encodes a labeling that satisfies the white constraint of Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}}. We will give all the details about Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} in Section 5.4.

3.6 The complexity of 𝚷\Pi

We now provide an overview on how we will prove lower and upper bounds for the problem Π\Pi. Since our goal is to prove a separation between quantum-LOCAL and classical randomized-LOCAL, our upper bound will be a quantum algorithm, while the lower bound will hold for classical randomized algorithms.

Upper bound.

In the case of upper bounds, we will assume the existence of a quantum algorithm 𝒜\mathcal{A} for Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}} with some complexity TT (for example, in the case of GHZ(Δ)\iterghz(\Delta), we know that T=1T=1), and we will show that, with O(logn)O(\regularlog n) overhead, it can be converted into an algorithm \mathcal{B} that solves Π\Pi. On a high level, algorithm \mathcal{B} works as follows.

  • First, nodes spend O(logn)O(\regularlog n) deterministic classical rounds to solve Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}}. The result will be a labeling satisfying that nodes labeled \bot induce a proper instance.

  • Consider the graph GG^{\prime} obtained by contracting each octopus gadget into a single node. The graph GG^{\prime} is an instance of Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}}, and each quantum communication round on GG^{\prime} can be simulated with O(logn)O(\regularlog n) overhead in the original graph. Hence, it is possible to solve Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}} in the original graph in O(Tlogn)O(T\regularlog n) quantum rounds.

  • Once Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}} is solved, nodes can spend O(logn)O(\regularlog n) additional rounds to produce a labeling that is valid for Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} on the subgraph induced by nodes labeled \bot for Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}}.

Therefore, algorithm \mathcal{B} solves Π\Pi in O(Tlogn)O(T\regularlog n) quantum rounds. The details are given in Section 5.6.

Lower bound.

Suppose we know that the problem Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}} requires Ω(T)\Omega(T) classical randomized rounds. We prove that, if Π\Pi can be solved in o(Tlogn)o(T\regularlog n) classical randomized rounds, then Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}} can be solved in o(T)o(T) classical randomized rounds, violating the lower bound. This result will be achieved by showing the following. Suppose for a contradiction that there exists an algorithm \mathcal{B} that solves Π\Pi in o(Tlogn)o(T\regularlog n) classical randomized rounds, we construct an algorithm 𝒜\mathcal{A} for Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}} as follows.

  • Let GG be an instance of Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}}. Nodes construct a virtual graph GG^{\prime}, which is an instance of Π\Pi, by imagining themselves to be a valid octopus gadget where each port gadget has height Θ(logn)\Theta(\regularlog n), and imagining each (hyper)edge to be a black node connecting different gadgets.

  • In this virtual graph, the only solution for Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}} is the one assigning \bot to all nodes.

  • By assumption, the problem Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} can be solved in T=o(Tlogn)T^{\prime}=o(T\regularlog n) rounds in GG^{\prime}, and the TT^{\prime}-radius neighborhood of each node in GG^{\prime} is contained in o(T)o(T)-radius neighborhood of each node in GG. Hence, nodes can solve Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} by communicating for only o(T)o(T) rounds on GG, and then obtain a solution for Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}}.

There are some details that we need to take care of, like the fact that the number of nodes in GG and GG^{\prime} are different, and we will show how to handle all these details in Section 5.7.

4 Upper bounding quantum advantage

In this section, we prove Theorem 1.2. We start by defining TT-dependent distributions and the bounded-dependence model using outcomes. In Section 4.1, we follow the outline of Section 1.6 and provide and prove lemmas for each of the intermediate steps. We then combine these lemmas to prove Theorem 1.2.

Preliminary definitions.

We start by introducing some key definitions. Let GG and HH be two graphs. We define the union of GG and HH to be the graph GH=(V,E)G\cup H=(V,E) where V=V(G)V(H)V=V(G)\cup V(H) and E=E(G)E(H)E=E(G)\cup E(H). The intersection is similarly defined, with GH=(V,E)G\cap H=(V,E) where V=V(G)V(H)V=V(G)\cap V(H) and E=E(G)E(H)E=E(G)\cap E(H). The graph difference is defined as GH=(V,E)G\setminus H=(V,E) where V=V(G)V=V(G) and E=E(G)E(H)E=E(G)\setminus E(H); note that here we only take the difference of the edge sets. We define the ring neighborhood between T1T_{1} and T2T_{2} of a node uVu\in V (for T1T2T_{1}\leq T_{2}) as 𝒩T2T1[u]=𝒩T2[u]𝒩T1[u]\mathcal{N}_{T_{2}}^{T_{1}}[u]=\mathcal{N}_{T_{2}}[u]\setminus\mathcal{N}_{T_{1}}[u]. We use an analogous notation for subsets of nodes. Consider any node uVu\in V (or any subset SVS\subseteq V): with an abuse of notation, we define the open induced subgraph as the graph G̊[𝒩T[u]]=G[𝒩T[u]]G[𝒩TT1[u]]\mathring{G}[\mathcal{N}_{T}[u]]=G[\mathcal{N}_{T}[u]]\setminus G[\mathcal{N}_{T}^{T-1}[u]] (or G̊[𝒩T[S]]=G[𝒩T[S]]G[𝒩TT1[S]]\mathring{G}[\mathcal{N}_{T}[S]]=G[\mathcal{N}_{T}[S]]\setminus G[\mathcal{N}_{T}^{T-1}[S]]). In practice, in this definition we are removing from the classical notion of neighborhood the edges that connect nodes that are at distance TT from uu (or SS) as the graph that uu (or SS) sees by moving TT hops away does not include them.

For any function f:ABf:A\to B and any subset AAA^{\prime}\subseteq A, we denote by fAf\restriction_{A^{\prime}} the function g:ABg:A^{\prime}\to B such that f(x)=g(x)f(x)=g(x) for all xAx\in A^{\prime}. For any input distributed network (G,x)(G,\mathrm{x}) to any problem, where x(v)\mathrm{x}(v) encodes input data for all vV(G)v\in V(G), and any subset of nodes SV(G)S\subseteq V(G), the radius-TT view of SS is 𝒱T(S)=(G̊[𝒩T[S]],x𝒩T[S])\mathcal{V}_{T}(S)=(\mathring{G}[\mathcal{N}_{T}[S]],\mathrm{x}\restriction_{\mathcal{N}_{T}[S]}). Basically, 𝒱T(S)\mathcal{V}_{T}(S) includes everything that can be seen by the nodes in SS with TT rounds of communication, including input data (degree, ports, identifiers and input labels—if any, etc.). Suppose GG has nn nodes, and fix any subset of nodes SV(G)S\subseteq V(G). Given any two graphs G,HG,H with inputs xG,xH\mathrm{x}_{G},\mathrm{x}_{H} and any two subset of nodes SGV(G)S_{G}\subseteq V(G) and SHV(H)S_{H}\subseteq V(H), it is natural to define the notion of isomorphism between views. We say that 𝒱T(SG)\mathcal{V}_{T}(S_{G}) is isomorphic to 𝒱T(SH)\mathcal{V}_{T}(S_{H}) if there exists a function φ:V(G)V(H)\varphi:V(G)\to V(H) such that the following holds:

  1. 1.

    φSG\varphi\restriction_{S_{G}} is an isomorphism between G[SG]G[S_{G}] and H[SH]H[S_{H}];

  2. 2.

    φ𝒩T[SG]\varphi\restriction_{\mathcal{N}_{T}[S_{G}]} is an isomorphism between G̊[𝒩T[SG]]\mathring{G}[\mathcal{N}_{T}[S_{G}]] and H̊[𝒩T[SH]]\mathring{H}[\mathcal{N}_{T}[S_{H}]];

  3. 3.

    xG(u)=xH(φ(u))\mathrm{x}_{G}(u)=\mathrm{x}_{H}(\varphi(u)) for all u𝒩T(SG)u\in\mathcal{N}_{T}(S_{G}).

Consider any TT-round (deterministic or randomized) LOCAL algorithm 𝒜\mathcal{A} run by the nodes of GG, and any subset of nodes SV(G)S\subseteq V(G). Run 𝒜\mathcal{A} on GG for TT rounds and look at the output distribution over SS. Clearly, such distribution depends only on 𝒱T(S)\mathcal{V}_{T}(S), while everything that is outside 𝒱T(S)\mathcal{V}_{T}(S) cannot influence the output distribution, even if some adversary changes the graphs and the inputs outside 𝒱T(S)\mathcal{V}_{T}(S) (apart from the number of nodes, as this is an input to the algorithm). The cause of outputs in SS cannot be influenced by any action of an adversary outside 𝒱T(S)\mathcal{V}_{T}(S).

This property is the so-called no-signaling from the future principle in physics, which states that no signals can be sent from the future to the past, and is equivalent to the causality principle [22]. Such principle holds in every physical distributed network running any kind of synchronous distributed algorithm, including quantum ones.

To see how this principle formally translates in our setting, let us define the notion of outcome, which is some kind of generalization of an algorithm. Here, we restrict to finite sets of input and output labels since we focus on LCL problems. For a graph GG, let us denote by (G)V(G)×V(G)×E(G)\mathcal{H}(G)\subseteq V(G)\times V(G)\times E(G) the set containing all tuple of the form (v,(v,e))(v,(v,e)) where (v,e)V(G)×E(G)(v,e)\in V(G)\times E(G) and (v,e)(v,e) is a half-edge incident to vv. Let us define the notion of labeling function for a graph GG as follows: a function outi:(G)𝒱out×out\oupt_{i}:\mathcal{H}(G)\to\mathcal{V}_{\text{out}}\times\mathcal{E}_{\text{out}} is a labeling function if, for two different half-edges (v,e)(v,e), (v,e)(v,e^{\prime}) of the same node vv, out(v,(v,e))[1]=out(v,(v,e))[1]\oupt(v,(v,e))[1]=\oupt(v,(v,e^{\prime}))[1], where by out(v,(v,e))[1]\oupt(v,(v,e))[1] we mean the first component of the tuple out(v,(v,e))\oupt(v,(v,e)). In words, the labeling function must assign to a node vv only one possible label. For any node vv, the label assigned to vv is any out(v,(v,e))[1]\oupt(v,(v,e))[1] for any half-edge (v,e)(v,e) incident to vv. The label assigned to a half-edge (v,e)(v,e) is out(v,(v,e))[2]\oupt(v,(v,e))[2]. With an abuse of notation, if vv has no incident edges we still assume that the writing out(v)\oupt(v) is well-defined and only assigns a label from 𝒱out\mathcal{V}_{\text{out}} to vv.

Definition 4.1 (Outcome).

Let 𝒱in,in,𝒱out,out\mathcal{V}_{\text{in}},\mathcal{E}_{\text{in}},\mathcal{V}_{\text{out}},\mathcal{E}_{\text{out}} be finite sets of labels. Let \mathcal{I} be the family of all input distributed networks (G,x)(G,\mathrm{x}), where GG is a (𝒱in,in)(\mathcal{V}_{\text{in}},\mathcal{E}_{\text{in}})-labeled graph and x\mathrm{x} encodes input data (identifiers, ports, possible random bits, input labels, etc.). An outcome O\mathrm{O} is a function that maps every input distributed network (G,x)(G,\mathrm{x})\in\mathcal{I} to distribution over output labelings {(outi,pi)}iJ\{(\oupt_{i},p_{i})\}_{i\in J}, where {(outi,pi)}iJ\{(\oupt_{i},p_{i})\}_{i\in J} is defined as follows: JJ is a finite set of indices. The function outi:(G)𝒱out×out\oupt_{i}:\mathcal{H}(G)\to\mathcal{V}_{\text{out}}\times\mathcal{E}_{\text{out}} is a labeling function that we call output labeling function. The value pip_{i} is the probability that outi\oupt_{i} occurs.

This definition is easily generalizable to the case of infinite label sets, but we avoid it for the sake of simplicity. Notice that all synchronous distributed algorithms yield outcomes: it is just the assignment of an output distribution (the one that is the result of the algorithmic procedure) to the input graph. We remark we have defined the domain set of outcomes to include all possible graphs. This is not restrictive: Even classical (or quantum) algorithms can run on every possible graph. One can just introduce some garbage output label so that whenever a node running an algorithm needs to do something that is not well-defined (given its local view), it can just output the garbage label.

We say that an outcome O\mathrm{O} solves a problem Π\Pi over a family of graphs \mathcal{F} with probability q>0q>0 if, for every GG\in\mathcal{F} and every input data x\mathrm{x}, it holds that

iI:outiΠ(G,x)piq.\sum_{\begin{subarray}{c}i\in I:\\ \oupt_{i}\in\Pi(G,\mathrm{x})\end{subarray}}p_{i}\geq q.

Let O:(G,x){(outi,pi)}iI\mathrm{O}:(G,\mathrm{x})\mapsto\{(\oupt_{i},p_{i})\}_{i\in I} be any outcome and fix an input (G,x)(G,\mathrm{x}). Consider any subset of nodes SV(G)S\subseteq V(G). Let (G)[S]\mathcal{H}(G)[S] be the subset of (G)\mathcal{H}(G) that contains all elements (v,(v,e))(G)(v,(v,e))\in\mathcal{H}(G) where vSv\in S. The restriction of the output distribution O(G,x)={(outi:(G)𝒱out×out,pi)}iI\mathrm{O}(G,\mathrm{x})=\{(\oupt_{i}:\mathcal{H}(G)\to\mathcal{V}_{\text{out}}\times\mathcal{E}_{\text{out}},p_{i})\}_{i\in I} to SS is the distribution {(outj:(G)[S]𝒱out×out,pj)}jJ\{(\oupt_{j}:\mathcal{H}(G)[S]\to\mathcal{V}_{\text{out}}\times\mathcal{E}_{\text{out}},p_{j}^{\prime})\}_{j\in J} such that

pj=iI:outj=outi(G)[S]pi,p_{j}^{\prime}=\sum_{\begin{subarray}{c}i\in I:\\ \oupt_{j}=\oupt_{i}\restriction_{\mathcal{H}(G)[S]}\end{subarray}}p_{i},

and is denoted by O(G,x)[S]\mathrm{O}(G,\mathrm{x})[S] or {(outi,pi)}iI[S]\{(\oupt_{i},p_{i})\}_{i\in I}[S]. We also say that two labeling distributions {(outi:(G)𝒱out×out,pi)}iI,{(outj:(G)𝒱out×out,pj)}jJ\{(\oupt_{i}:\mathcal{H}(G)\to\mathcal{V}_{\text{out}}\times\mathcal{E}_{\text{out}},p_{i})\}_{i\in I},\{(\oupt_{j}:\mathcal{H}(G^{\prime})\to\mathcal{V}_{\text{out}}\times\mathcal{E}_{\text{out}},p_{j})\}_{j\in J} over two graphs G,GG,G^{\prime} are isomorphic if there is an isomorphism φ:V(G)V(G)\varphi:V(G)\to V(G^{\prime}) between GG and GG^{\prime} such that {(outi:(G)𝒱out×out,pi)}iI={(outjφ:(G)𝒱out×out,pj)}jJ\{(\oupt_{i}:\mathcal{H}(G)\to\mathcal{V}_{\text{out}}\times\mathcal{E}_{\text{out}},p_{i})\}_{i\in I}=\{(\oupt_{j}\circ\varphi:\mathcal{H}(G)\to\mathcal{V}_{\text{out}}\times\mathcal{E}_{\text{out}},p_{j})\}_{j\in J}.

We are now ready to define non-signaling outcomes.

Definition 4.2 (Non-signaling outcome).

Let O\mathrm{O} be any outcome. Suppose there exists a non-negative integer T0T\geq 0 with the following property: For any two subsets SGV(G),SHV(H)S_{G}\subseteq V(G),S_{H}\subseteq V(H) such that φ:V(G)V(H)\varphi:V(G)\to V(H) is an isomorphism between 𝒱T(SG)\mathcal{V}_{T}(S_{G}) and 𝒱T(SH)\mathcal{V}_{T}(S_{H}), then the restrictions O(H,xH)[SH]\mathrm{O}(H,\mathrm{x}_{H})[S_{H}] and O(G,xG)[SG]\mathrm{O}(G,\mathrm{x}_{G})[S_{G}] are isomorphic under φ\varphi. In this case, we say that O\mathrm{O} is non-signaling beyond distance TT or, alternatively, that O\mathrm{O} has locality TT.

Running TT-rounds classical or quantum-LOCAL algorithms without shared resources, we obtain the following property on the output labeling distribution: for every two subset of nodes A,BA,B such that dist(A,B)>2T\dist(A,B)>2T, then the output distributions restricted to AA and BB are independent. Let us formalize this notion.

Definition 4.3 (TT-dependent distribution).

Let 𝒱in,in,𝒱out,out\mathcal{V}_{\text{in}},\mathcal{E}_{\text{in}},\mathcal{V}_{\text{out}},\mathcal{E}_{\text{out}} be finite sets of labels, and JJ a finite set of indices. Let \mathcal{I} be the family of all input distributed networks (G,x)(G,\mathrm{x}), where GG is a (𝒱in,in)(\mathcal{V}_{\text{in}},\mathcal{E}_{\text{in}})-labeled graph and x\mathrm{x} contains input data (identifiers, ports, possible random bits, etc.). An output labeling distribution {(outi:(G)𝒱out×out,pi)}iJ\{(\oupt_{i}:\mathcal{H}(G)\to\mathcal{V}_{\text{out}}\times\mathcal{E}_{\text{out}},p_{i})\}_{i\in J} is TT-dependent if, for any two subsets of nodes A,BV(G)A,B\subseteq V(G) such that dist(A,B)>T\dist(A,B)>T, we have that {(outi,pi)}iJ[A]\{(\oupt_{i},p_{i})\}_{i\in J}[A] is independent of {(outi,pi)}iJ[B]\{(\oupt_{i},p_{i})\}_{i\in J}[B]

We can think now of non-signaling outcomes that produce such distributions.

Definition 4.4 (Bounded-dependent outcome).

Let O\mathrm{O} be any outcome that is non-signaling beyond distance TT. We say that O\mathrm{O} is bounded-dependent with locality TT if for any input (G,x)(G,\mathrm{x}) we have that O(G,x)\mathrm{O}(G,\mathrm{x}) is 2T2T-dependent. Furthermore, when T=O(1)T=O\mathopen{}\left(1\right)\mathclose{} (i.e., it does not depend on the input graph), we say that O(G,x)\mathrm{O}(G,\mathrm{x}) is a finitely-dependent distribution. Moreover, if for all inputs (G,x)(G,\mathrm{x}) it holds that O(G,x)\mathrm{O}(G,\mathrm{x}) does not depend on identifiers and port numbers, we say that O\mathrm{O} is invariant under subgraph isomorphism.

With the addition of this further property, we can define the bounded-dependence model, first formalized in [1].

The bounded-dependence model.

The bounded-dependence model is a computational model that produces bounded-dependent outcomes. The required success probability when solving a problem must be at least 11/poly(n)1-1/\poly(n).

4.1 Limits on quantum advantage

With these definitions, we are ready to prove Theorem 1.2. Formally, in this section, we prove the following theorem:

Theorem 4.5.

Let Π\Pi be an LCL problem with checking radius rr. Let O\mathrm{O} be a bounded-dependent outcome with locality T(n)T(n) of labelings that solve problem Π\Pi with probability p(n)p(n). Then there exists a rand-LOCAL algorithm solving Π\Pi with locality O(nT(n)polylogn)O(\sqrt{nT(n)}\poly\regularlog n) with probability at least p(n)p(n).

Like in the overview, we start by clustering the graph into small well-separated clusters. Formally, we mean the following:

Definition 4.6 ((ε,d)(\varepsilon,d)-clustering).

Given a graph GG, an (ε,d)(\varepsilon,d)-clustering is a partition V(G)=DS1,,SkV(G)=D\cup S_{1},\cup\ldots,S_{k} meeting the following conditions:

  • The distance between two nodes uSi,vSju\in S_{i},v\in S_{j}, from different clusters iji\neq j, is at least 2.

  • For every 1ik1\leq i\leq k, the diameter maxu,vSidistG(u,v)\max_{u,v\in S_{i}}\dist_{G}(u,v) of SiS_{i} is at most O(d)O\mathopen{}\left(d\right)\mathclose{}.

  • DD contains at most |D|ε|V(G)||D|\leq\varepsilon|V(G)| vertices.

To actually compute such clustering, we use the following clustering algorithm by [18]:

Theorem 4.7.

For any 0<ε10<\varepsilon\leq 1, an (ε,lognlogloglognε)(\varepsilon,\frac{\regularlog n\cdot\regularlog\regularlog\regularlog n}{\varepsilon})-clustering can be computed with locality

O(log(n)2log(1/ε)ε)O\mathopen{}\left(\frac{\regularlog(n)^{2}\cdot\regularlog(1/\varepsilon)}{\varepsilon}\right)\mathclose{}

rounds in the deterministic LOCAL model.

By the definition of clustering, we only get that nodes in different clusters are mutually non-adjacent. However, to ensure that the labelings in each cluster are mutually independent given a labeling for the unclustered nodes, we require nodes of different clusters to be at distance at least rr, where rr denotes the checkability radius of our LCL problem Π\Pi. We can fix this by running the algorithm from Theorem 4.7 on the power graph GrG^{r}. By doing so and choosing ε=(1/nT(n))\varepsilon=(1/\sqrt{nT(n)}) we obtain the following corollary.

Corollary 4.8.

A (1/nT(n),nT(n)log2n)(1/\sqrt{nT(n)},\sqrt{nT(n)}\regularlog^{2}n)-clustering can be computed with locality

O(nT(n)log3(n))O\mathopen{}\left(\sqrt{nT(n)}\regularlog^{3}(n)\right)\mathclose{}

in the deterministic LOCAL model. Additionally, any two nodes u,vu,v from different clusters have distance at least rr in GG for any pre-chosen constant rr.

This clustering ensures that the clusters are well-separated enough such that their labelings can be completed independently given a labeling in the unclustered nodes DD. Our next step is to produce a labeling on DD by sampling for the bounded-dependence original distribution. To be able to do this, we need to partition DD into well-separated partitions whose outputs are independent. Formally, we do the following:

Lemma 4.9.

For any subset of nodes DVD\subseteq V of size at most O(n/T(n))O\bigl(\sqrt{n/T(n)}\bigr), we can partition DD into D1,,DhD_{1},\ldots,D_{h} such that

  • for every 1ih1\leq i\leq h, the diameter of DiD_{i} is O(nT(n))O\bigl(\sqrt{nT(n)}\bigr) in GG, and

  • for every 1i<jh1\leq i<j\leq h, if uDiu\in D_{i} and vDjv\in D_{j} then distG(u,v)2T(n)+1\dist_{G}(u,v)\geq 2T(n)+1.

Moreover, this partitioning can be computed in the LOCAL model with locality O(nT(n))O\bigl(\sqrt{nT(n)}\bigr).

The latter condition allows us to sample the outputs for each partition independently as, by the definition of bounded-dependence distributions, their outputs are independent. The former condition makes sure that each partition has a low diameter and hence the sampling can be done with low locality. Intuitively, the partitioning is done by finding the connected components in the power graph G2T(n)G^{2T(n)}:

Proof.

Each node in DD iteratively runs the following exploration procedure: The node vv looks at its radius-2T(n)2T(n) neighborhood in the original graph GG to see if there are other nodes that belong to DD. If not, the node stops as it has found all nodes of DD that are within distance 2T(n)2T(n) of it, and hence all other nodes must belong to different partitions. Otherwise the node adds newly-found nodes to its own partition and repeats this exploration procedure from these newly-found nodes.

It is clear that this algorithm produces a partitioning that satisfies the latter condition. It remains to prove that the algorithm stops within O(nT(n))O\bigl(\sqrt{nT(n)}\bigr) steps. Since nodes only start another iteration if they find a new node from the set DD, this procedure stops after at most |D||D| iterations. As each iteration has locality 2T(n)2T(n), the total running time of the algorithm is bounded by

|D|2T(n)=O(n/T(n))2T(n)=O(nT(n)).|D|\cdot 2T(n)=O\left(\sqrt{n/T(n)}\right)\cdot 2T(n)=O\left(\sqrt{nT(n)}\right).

This also implies that the diameter of each cluster is O(nT(n))O\bigl(\sqrt{nT(n)}\bigr). ∎

We now have the nodes of graph GG clustered into D,S1,,SkD,S_{1},\dots,S_{k}, and nodes DD partitioned into D1,,DhD_{1},\dots,D_{h}. Let x\mathrm{x} be an input for GG and consider a 2T(n)2T(n)-dependent labeling distribution O(G,x)\mathrm{O}(G,\mathrm{x}) over (G,x)(G,\mathrm{x}) that is given by a bounded-dependent outcome O\mathrm{O} with locality T(n)T(n). We now show that a randomized LOCAL algorithm can sample a labeling for DD from O(G,x)[D]\mathrm{O}(G,\mathrm{x})[D] if it is given an oracle to O\mathrm{O}.

Lemma 4.10.

Let O\mathrm{O} be a bounded-dependent outcome with locality T(n)T(n). There exists a rand-LOCAL algorithm that runs on (G,x)(G,\mathrm{x}) with V(G)V(G) clustered as D,S1,,SkD,S_{1},\dots,S_{k}, DD partitioned as D1,,DhD_{1},\dots,D_{h} and an oracle to O\mathrm{O}, and outputs labelings for DD that follow the distribution O(G,x)[D]\mathrm{O}(G,\mathrm{x})[D]. This algorithm has locality O(maxidiamG(Di))O(\max_{i}\diam_{G}(D_{i})).

Proof.

Since distG(Di,Dj)>2T(n)\dist_{G}(D_{i},D_{j})>2T(n) if iji\neq j, for all 1h1\leq\ell\leq h, for any sequence 1i1<<1h1\leq i_{1}<\ldots<1_{\ell}\leq h, the restrictions O(G,x)[Di1],,O(G,x)[Di]\mathrm{O}(G,\mathrm{x})[D_{i_{1}}],\ldots,\mathrm{O}(G,\mathrm{x})[D_{i_{\ell}}] of O(G,x)\mathrm{O}(G,\mathrm{x}) to Di1,,DiD_{i_{1}},\ldots,D_{i_{\ell}} are mutually independent by definition of 2T(n)2T(n)-dependent distribution. Let out:(G)𝒱out×out\oupt:\mathcal{H}(G)\to\mathcal{V}_{\text{out}}\times\mathcal{E}_{\text{out}} be any output labeling function. For a given subset of nodes SV(G)S\subseteq V(G), let us denote the probability that O(G,x)\mathrm{O}(G,\mathrm{x}) actually yields the output out\oupt on (G)[S]\mathcal{H}(G)[S] by Pout((G)[S])P_{\oupt}(\mathcal{H}(G)[S]). For all 1h1\leq\ell\leq h, for any sequence 1i1<<ih1\leq i_{1}<\ldots<i_{\ell}\leq h, we have

Pout((G)[Di1])Pout((G)[Di])=Pout((G)[Di1Di]).P_{\oupt}(\mathcal{H}(G)[D_{i_{1}}])\cdot\ldots\cdot P_{\oupt}(\mathcal{H}(G)[D_{i_{\ell}}])=P_{\oupt}(\mathcal{H}(G)[D_{i_{1}}\cup\ldots\cup D_{i_{\ell}}]).

It follows that, for 1ih1\leq i\leq h, a rand-LOCAL algorithm can gather the subgraph induced by DiD_{i} and sample a labeling from distribution O(G,x)[Di]\mathrm{O}(G,\mathrm{x})[D_{i}] independently from the other DjD_{j}, iji\neq j. The equality above ensures that the final labeling obtained in this way for DD is sampled with the same probability as if we sampled it from O(G,x)[D]\mathrm{O}(G,\mathrm{x})[D]. As the algorithm samples the labeling for each DiD_{i} independently, it is obvious that the locality of the algorithm is bounded by O(maxidiamG(Di))O(\max_{i}\diam_{G}(D_{i})). ∎

In other words, the output labels of nodes belonging to different partitions can be sampled independently while respecting the locality of the bounded-dependent distribution. This implies that, by sampling a function outD:(G)[D]𝒱out×out\oupt_{D}:\mathcal{H}(G)[D]\to\mathcal{V}_{\text{out}}\times\mathcal{E}_{\text{out}} from the bounded-dependent outcome O(G,x)[D]\mathrm{O}(G,\mathrm{x})[D], we can first fix the output labels outD(D)\oupt_{D}(D), and then label the remaining nodes in GG by brute force. We first show that, if the original outcome OO has success probability pp, then there exists an extension of outD\oupt_{D} to a labeling for (G)\mathcal{H}(G) that is a solution for Π\Pi with probability at least pp. Actually finding such a labeling for (G)\mathcal{H}(G) by brute force will follow as a corollary.

Lemma 4.11.

Let O\mathrm{O} be a bounded-dependent outcome that solves the LCL problem Π\Pi on (G,x)(G,\mathrm{x}) with success probability pp, and let outD\oupt_{D} be a labeling for (G)[D]\mathcal{H}(G)[D] sampled from O(G,x)[D]\mathrm{O}(G,\mathrm{x})[D]. Then, with probability at least pp, there exists at least one labeling outG\oupt_{G} for (G)\mathcal{H}(G) such that outD\oupt_{D} is a restriction of outG\oupt_{G} to (G)[D]\mathcal{H}(G)[D], namely outD=outG(G)[D]\oupt_{D}=\oupt_{G}\restriction_{\mathcal{H}(G)[D]}, and outG\oupt_{G} is a solution for Π\Pi on (G,x)(G,\mathrm{x}).

Proof.

If we sample labeling outD\oupt_{D} from O(G,x)[D]O(G,\mathrm{x})[D], we can be in three possible cases.

  1. 1.

    Labeling outD\oupt_{D} for (G)\mathcal{H}(G) is the restriction of some labeling out\oupt for (G)\mathcal{H}(G), and out\oupt solves Π\Pi in (G,x)(G,\mathrm{x}). In this case we are guaranteed that at least the extension outG=out\oupt_{G}=\oupt exists.

  2. 2.

    Labeling outD\oupt_{D} for (G)\mathcal{H}(G) is the restriction of some labeling out\oupt for (G)\mathcal{H}(G), outD\oupt_{D} is a solution for Π\Pi on (G̊[D],xD)(\mathring{G}[D],\mathrm{x}\restriction_{D}), but out\oupt is not a solution for Π\Pi in (G,x)(G,\mathrm{x}). Even if we cannot take the extension outG=out\oupt_{G}=\oupt, it might still be possible to find a different out\oupt^{\prime} that does not belong to O(G,x)\mathrm{O}(G,\mathrm{x}) but that is a solution Π\Pi on (G,x)(G,\mathrm{x}) nonetheless.

  3. 3.

    Labeling outD\oupt_{D} for (G)\mathcal{H}(G) is the restriction of some labeling out\oupt for (G)\mathcal{H}(G), and outD\oupt_{D} is not a solution for Π\Pi on (G̊[D],xD)(\mathring{G}[D],\mathrm{x}\restriction_{D}). Then, no correct extension is possible.

The first case occurs with probability pp, while with probability 1p1-p either the second or the third occur. Since a correct extension of outD\oupt_{D} could be possible even in the second case, it follows that the overall probability of finding a correct extension of outD\oupt_{D} is at least pp. ∎

Corollary 4.12.

Let outD\oupt_{D} be a labeling for (G)[D]\mathcal{H}(G)[D] such that there exists a non-empty set of labelings L={outj}jJL=\{\oupt_{j}\}_{j\in J} for (G)\mathcal{H}(G) where each outj\oupt_{j} is a solution for Π\Pi on (G,x)(G,\mathrm{x}) and outD\oupt_{D} is a restriction of outj\oupt_{j} to (G)[D]\mathcal{H}(G)[D], namely outD=outj(G)[D]\oupt_{D}=\oupt_{j}\restriction_{\mathcal{H}(G)[D]}. There exists a LOCAL algorithm that runs on (G,x)(G,\mathrm{x}) with V(G)V(G) clustered as D,S1,,SkD,S_{1},\dots,S_{k} and outputs a labeling outGL\oupt_{G}\in L. This algorithm has locality O(max1ik{diamG(Si)})O\mathopen{}\left(\max_{1\leq i\leq k}\{\diam_{G}(S_{i})\}\right)\mathclose{}

Proof.

Every node in a given SiS_{i} gathers its radius-O(diamG(Si))O\mathopen{}\left(\diam_{G}(S_{i})\right)\mathclose{} neighborhood, making sure that this radius is not smaller than the diameter of SiS_{i} plus rr. Then we know that every node in SiS_{i} sees every other node in the same SiS_{i}, plus a frontier of depth rr in DD. We can then compute by brute force a valid solution to Π\Pi restricted to SiS_{i} by testing every possible labeling outj:(G)[Si]𝒱out×out\oupt_{j}:\mathcal{H}(G)[S_{i}]\to\mathcal{V}_{\text{out}}\times\mathcal{E}_{\text{out}}.

The procedure just described clearly has locality O(diamG(Si))O\mathopen{}\left(\diam_{G}(S_{i})\right)\mathclose{}, and it is always correct because Π\Pi has checkability radius rr, and Corollary 4.8 guarantees that nodes in different clusters have distance at least rr in GG. Thus, the radius-rr neighborhood of any node in SiS_{i} can intersect only the same SiS_{i} and DD. Since the labeling for DD is already fixed by outD\oupt_{D}, we can safely check whether an output labeling solves Π\Pi in SiS_{i}. ∎

We can now prove Theorem 4.5:

Proof of Theorem 4.5:

Let Π\Pi be an LCL problem with checking radius rr and that admits a bounded-dependence distribution with locality T(n)T(n) and success probability p(n)p(n). We construct a rand-LOCAL algorithm that solves problem Π\Pi with locality O(nT(n)polylogn)O\bigl(\sqrt{nT(n)}\poly\regularlog n\bigr). The algorithm works in four steps:

  1. 1.

    It first computes a (1/nT(n),nT(n)log2n)\bigl(1/\sqrt{nT(n)},\sqrt{nT(n)}\regularlog^{2}n\bigr)-clustering DS1,,SkD\cup S_{1},\cup\ldots,S_{k}. By Corollary 4.8, this can be done with locality O(nT(n)log3(n))O\bigl(\sqrt{nT(n)}\regularlog^{3}(n)\bigr).

  2. 2.

    The algorithm then partitions the unclustered nodes DD into partitions D1,,DpD_{1},\ldots,D_{p} such that each partition has distance at least 2T(n)2T(n) to every other partition. By Lemma 4.9, this can be done with locality O(nT(n))O\bigl(\sqrt{nT(n)}\bigr).

  3. 3.

    The algorithm then samples a labeling for each partition DiD_{i} independently. This too can be done with locality O(nT(n))O\bigl(\sqrt{nT(n)}\bigr) thanks to Lemma 4.10 as each partition has diameter O(nT(n))O\bigl(\sqrt{nT(n)}\bigr) and partitions are at distance at least 2T(n)2T(n) from each other, which means that their distributions are independent.

  4. 4.

    Finally, the algorithm completes the labeling for each cluster independently. This succeeds with probability at least p(n)p(n) by Lemma 4.11, and the brute force completion of Corollary 4.12 takes locality O(nT(n)log2n)O\bigl(\sqrt{nT(n)}\regularlog^{2}n\bigr) as this is the bound on the diameter of each cluster.

The locality of the algorithm is dominated by the first step. In total, the algorithm has locality O(nT(n)log3n)O\bigl(\sqrt{nT(n)}\regularlog^{3}n\bigr).

The only part in this algorithm where we use randomness is in Item 3 when sampling from the bounded-dependence distribution. By Lemma 4.11, we sample a labeling that is extendable to a labeling for the whole graph with probability at least p(n)p(n). As the rest of the algorithm is deterministic, the algorithm succeeds with probability at least p(n)p(n). ∎

Finally, we note that Theorem 4.5 can also be derandomized e.g. by using techniques by [25] combined with a modern network decomposition [24], assuming that the original bounded-dependence distribution succeeds with high enough probability. This gives us the following result:

Corollary 4.13.

Let Π\Pi be an LCL problem with checking radius rr. Let O\mathrm{O} be a bounded-dependent outcome with locality T(n)T(n) of labelings that solve problem Π\Pi with probability strictly larger than 11n1-\frac{1}{n}. Then there exists a det-LOCAL algorithm solving Π\Pi with locality O(nT(n)polylogn)O\bigl(\sqrt{nT(n)}\poly\regularlog n\bigr).

5 Quantum advantage: technical details

Preliminary definitions.

For any (𝒱,)(\mathcal{V},\mathcal{E})-labeled graph G=(V,E)G=(V,E), and for any node vVv\in V and any edge eEe\in E, we denote by Lv(e)L_{v}(e) the label of the half-edge (v,e)(v,e). We also want to be able to refer to the endpoint of a path that starts from some node vv and follows a given sequence L1,,LkL_{1},\dots,L_{k} of labels over half-edges. We define the function ff as follows: Consider any node vv and any sequence of edge labels L1,,LkL_{1},\dots,L_{k}\in\mathcal{E}. Let P=(v1,,vk+1)P=(v_{1},\dots,v_{k+1}) be a path in GG such that v1=vv_{1}=v and, for any edge e={vi,vi+1}e=\{v_{i},v_{i+1}\}, the half-edge (vi,e)(v_{i},e) is labeled with LiL_{i}. Then, we set f(v,L1,,Lk)=vk+1f(v,L_{1},\dots,L_{k})=v_{k+1} if the path PP exists and is unique, and \bot otherwise.

5.1 Tree-like gadget

In order to define our LCL problem, we will use, as a basic building block, an object called tree-like gadget, which has already been used in different works related to LCLs [4, 9, 7]. An example of tree-like gadget is shown in Figure 1. We report here the definition provided in [4].

Definition 5.1 (Tree-like gadget [4]).

A graph GG is a tree-like gadget of height \ell if it is possible to assign coordinates (lu,ku)(l_{u},k_{u}) to each node uGu\in G, where

  • 0lu<0\leq l_{u}<\ell denotes the depth of uu in the tree, and

  • 0ku<2lu0\leq k_{u}<2^{l_{u}} denotes the position of uu (according to some order) in layer lul_{u},

such that there is an edge connecting two nodes u,vGu,v\in G with coordinates (lu,ku)(l_{u},k_{u}) and (lv,kv)(l_{v},k_{v}) if and only if:

  • lu=lvl_{u}=l_{v} and |kukv|=1|k_{u}-k_{v}|=1, or

  • lv=lu1l_{v}=l_{u}-1 and kv=ku2k_{v}=\lfloor\frac{k_{u}}{2}\rfloor, or

  • lu=lv1l_{u}=l_{v}-1 and ku=kv2k_{u}=\lfloor\frac{k_{v}}{2}\rfloor.

A useful property of this gadget is that it can be made locally checkable, in the sense that there exists a set of labels 𝗍𝗋𝖾𝖾\mathcal{E}^{\mathsf{tree}} that can be assigned to each node-edge pair, and a constraint C𝗍𝗋𝖾𝖾C^{\mathsf{tree}} over the labels 𝗍𝗋𝖾𝖾\mathcal{E}^{\mathsf{tree}}, satisfying the following.

Lemma 5.2 ([4]).

Let GG be a graph that is labeled with labels in 𝗍𝗋𝖾𝖾\mathcal{E}^{\mathsf{tree}} such that C𝗍𝗋𝖾𝖾C^{\mathsf{tree}} is satisfied for all nodes in GG. Then, each connected component of GG is a tree-like gadget.

Lemma 5.3 ([4]).

Each tree-like gadget graph GG can be labeled with labels in 𝗍𝗋𝖾𝖾\mathcal{E}^{\mathsf{tree}} such that C𝗍𝗋𝖾𝖾C^{\mathsf{tree}} is satisfied for all nodes in GG.

The set of labels 𝗍𝗋𝖾𝖾\mathcal{E}^{\mathsf{tree}} is defined in [7] as 𝗍𝗋𝖾𝖾={𝖫,𝖱,𝖯,𝖢𝗁𝖫,𝖢𝗁𝖱}\mathcal{E}^{\mathsf{tree}}=\{\mathsf{L},\mathsf{R},\mathsf{P},\mathsf{Ch_{L}},\mathsf{Ch_{R}}\} (the labels stand for “left”, “right”, “parent”, “left child”, and “right child”, respectively). The set of local constraints 𝒞𝗍𝗋𝖾𝖾\mathcal{C}^{\mathsf{tree}} is defined in [7] as follows.

The constraints 𝒞𝗍𝗋𝖾𝖾\mathcal{C}^{\mathsf{tree}} of [7] 1. For any two edges e,ee,e^{\prime} incident to a node uu, it must hold that Lu(e)Lu(e)L_{u}(e)\neq L_{u}(e^{\prime}); 2. For each edge e={u,v}e=\{u,v\}, if Lu(e)=𝖫L_{u}(e)=\mathsf{L}, then Lv(e)=𝖱L_{v}(e)=\mathsf{R}, and vice versa; 3. For each edge e={u,v}e=\{u,v\}, if Lu(e)=𝖯L_{u}(e)=\mathsf{P}, then Lv(e){𝖢𝗁𝖫,𝖢𝗁𝖱}L_{v}(e)\in\{\mathsf{Ch_{L}},\mathsf{Ch_{R}}\}, and vice versa; 4. If a node uu has an incident edge e={u,v}e=\{u,v\} with label Lu(e)=𝖯L_{u}(e)=\mathsf{P} such that Lv(e)=𝖢𝗁𝖫L_{v}(e)=\mathsf{Ch_{L}}, then f(u,𝖯,𝖢𝗁𝖱,𝖫)=uf(u,\mathsf{P},\mathsf{Ch_{R}},\mathsf{L})=u; 5. If a node uu has an incident edge e={u,v}e=\{u,v\} with label Lu(e)=𝖯L_{u}(e)=\mathsf{P} such that Lv(e)=𝖢𝗁𝖱L_{v}(e)=\mathsf{Ch_{R}}, if uu has an incident edge labeled 𝖱\mathsf{R}, then f(u,𝖯,𝖱,𝖢𝗁𝖫,𝖫)=uf(u,\mathsf{P},\mathsf{R},\mathsf{Ch_{L}},\mathsf{L})=u. 6. If a node has an incident half-edge labeled 𝖢𝗁𝖫\mathsf{Ch_{L}}, then it must also have an incident half-edge labeled 𝖢𝗁𝖱\mathsf{Ch_{R}}, and vice versa; 7. A node does not have an incident half-edge labeled 𝖯\mathsf{P} if and only if it has no incident half-edges labeled 𝖫\mathsf{L} or 𝖱\mathsf{R}; 8. If a node uu does not have an incident edge ee with label Lu(e){𝖢𝗁𝖫,𝖢𝗁𝖱}L_{u}(e)\in\{\mathsf{Ch_{L}},\mathsf{Ch_{R}}\}, then neither do nodes f(u,𝖫)f(u,\mathsf{L}) and f(u,𝖱)f(u,\mathsf{R}) (if they exist); 9. If a node uu has an incident edge e={u,v}e=\{u,v\} with label Lu(e)=𝖯L_{u}(e)=\mathsf{P} such that Lv(e)=𝖢𝗁𝖱L_{v}(e)=\mathsf{Ch_{R}} (resp. Lv(e)=𝖢𝗁𝖫L_{v}(e)=\mathsf{Ch_{L}}), then uu has an incident edge labeled 𝖱\mathsf{R} (resp. 𝖫\mathsf{L}) if and only if f(u,𝖯)f(u,\mathsf{P}) has an incident edge labeled 𝖱\mathsf{R} (resp. 𝖫\mathsf{L}).

An example of tree-like gadget labeled from labels in 𝗍𝗋𝖾𝖾\mathcal{E}^{\mathsf{tree}} such that C𝗍𝗋𝖾𝖾C^{\mathsf{tree}} is satisfied for all nodes is shown in Figure 1.

Moreover, in [9], it is shown that it is easy for the nodes to prove that the graph in which they are is an invalid tree-like gadget. More formally, in [9], it is defined an LCL problem Πbadtree\Pi^{\mathrm{badtree}} satisfying the following. Nodes have input 00 or 11, and nodes with input 11 are called marked. Node-edge pairs have an input label from 𝗍𝗋𝖾𝖾\mathcal{E}^{\mathsf{tree}}. Recall that a graph with such an input is called ({0,1},𝗍𝗋𝖾𝖾)(\{0,1\},\mathcal{E}^{\mathsf{tree}})-labeled graph. The set 𝒱𝖻𝖺𝖽𝖳𝗋𝖾𝖾\mathcal{V}^{\mathsf{badTree}} of outputs labels for Πbadtree\Pi^{\mathrm{badtree}} contains a special label called \bot, and in this problem there are only node output labels (hence, there are no half-edge output labels).

Lemma 5.4 ([9]).

There exists an LCL problem Πbadtree\Pi^{\mathrm{badtree}} satisfying the following properties.

  • Let GG be a ({0,1},𝗍𝗋𝖾𝖾)(\{0,1\},\mathcal{E}^{\mathsf{tree}})-labeled graph where C𝗍𝗋𝖾𝖾C^{\mathsf{tree}} is satisfied on all nodes and all nodes are not marked. Then, the only valid solution for Πbadtree\Pi^{\mathrm{badtree}} is the one assigning \bot to all nodes.

  • Let GG be a connected ({0,1},𝗍𝗋𝖾𝖾)(\{0,1\},\mathcal{E}^{\mathsf{tree}})-labeled graph where either C𝗍𝗋𝖾𝖾C^{\mathsf{tree}} is not satisfied on at least one node, or there is at least one marked node. Then, there exists a solution for Πbadtree\Pi^{\mathrm{badtree}} where all nodes produce an output different from \bot. Moreover, such a solution can be computed in O(logn)O(\regularlog n) deterministic rounds in the LOCAL model.

On a high level, we will later use Πbadtree\Pi^{\mathrm{badtree}} as a black box, and we will mark nodes that witness some local errors that are not related to the tree-like gadget itself. In this way, we will be able to use Πbadtree\Pi^{\mathrm{badtree}} to also prove errors that are unrelated to the tree-like gadget itself. An example of valid solution of Πbadtree\Pi^{\mathrm{badtree}} is depicted in Figure 2.

5.2 Octopus gadget

In this section, we formally define the notion of octopus gadget, then we prove that an octopus gadget is locally checkable, and finally we define the LCL problem Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}} and prove some properties about it.

Definition 5.5 (Octopus gadget).

Let x1x\geq 1 be a natural number, and η=(η0,,η2x11)\eta=(\eta_{0},\dots,\eta_{2^{x-1}-1}) a vector of 2x12^{x-1} entries in {1,2}\{1,2\}. Let W={w(i,j)}(i,j)IW=\{w_{(i,j)}\}_{(i,j)\in I} be a family of positive integer weights, where II is the set containing all pairs (i,j)(i,j) satisfying (i,j){0,1,,2x11}×{1,2}(i,j)\in\{0,1,\dots,2^{x-1}-1\}\times\{1,2\} and jηij\leq\eta_{i}.

A graph G=(V,E)G=(V,E) is an (x,η,W)(x,\eta,W)-octopus gadget if there exists a labeling λ:V=I{root}\lambda:V\to\mathcal{L}=I\cup\{\text{root}\} of the nodes of GG such that the following holds.

  1. 1.

    For each element yy\in\mathcal{L}, let GyG_{y} be the subgraph of GG induced by nodes labeled with yy. Then, for all yy\in\mathcal{L}, GyG_{y} must be a tree-like gadget according to Definition 5.1.

  2. 2.

    For all y,zy,z\in\mathcal{L} such that yzy\neq z, GyG_{y} and GzG_{z} must be disjoint.

  3. 3.

    GrootG_{\text{root}} has height xx and, for all (i,j)I(i,j)\in I, G(i,j)G_{(i,j)} has height w(i,j)Ww_{(i,j)}\in W.

  4. 4.

    For all (i,j)I(i,j)\in I, there is an edge connecting the node of G(i,j)G_{(i,j)} that has coordinates (0,0)(0,0) with the node of GrootG_{\text{root}} that has coordinates (x1,i)(x-1,i).

GrootG_{\text{root}} is called the head-gadget and, for all (i,j)I(i,j)\in I, G(i,j)G_{(i,j)} is called a port-gadget.

Local checkability.

While Definition 5.5 gives the definition of octopus gadget from a global perspective, we now define a finite set of labels and a set of local constraints satisfying that a connected graph is a properly labeled octopus gadget if and only if these local constraints are satisfied by all nodes.

We first define the sets of labels 𝒱𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{V}^{\mathsf{octopus}} and 𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{E}^{\mathsf{octopus}}, and then we define a set of local constraints 𝒞𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{C}^{\mathsf{octopus}} over these labels. We will prove that a connected graph GG can be (𝒱𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{V}^{\mathsf{octopus}}, 𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{E}^{\mathsf{octopus}})-labeled such that the constraints 𝒞𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{C}^{\mathsf{octopus}} are satisfied on all nodes if and only if GG is an (xx, η\eta, WW)-octopus gadget, for some xx, η\eta, and WW.

The sets of labels are defined as follows:

𝒱𝗈𝖼𝗍𝗈𝗉𝗎𝗌\displaystyle\mathcal{V}^{\mathsf{octopus}} ={𝗁𝖾𝖺𝖽,𝗉𝗈𝗋𝗍},\displaystyle=\{\mathsf{head},\mathsf{port}\},
𝗈𝖼𝗍𝗈𝗉𝗎𝗌\displaystyle\mathcal{E}^{\mathsf{octopus}} ={𝗁𝗉𝗅𝗂𝗇𝗄1,𝗁𝗉𝗅𝗂𝗇𝗄2,𝗉𝗁𝗅𝗂𝗇𝗄}𝗍𝗋𝖾𝖾,\displaystyle=\{\mathsf{hp_{link}}_{1},\mathsf{hp_{link}}_{2},\mathsf{ph_{link}}\}\cup\mathcal{E}^{\mathsf{tree}},

where 𝗁𝗉𝗅𝗂𝗇𝗄\mathsf{hp_{link}} stands for “head-port link” and 𝗉𝗁𝗅𝗂𝗇𝗄\mathsf{ph_{link}} stands for “port-head link”, respectively. Recall that the labels in 𝒱𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{V}^{\mathsf{octopus}} are node labels, while 𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{E}^{\mathsf{octopus}} are labels for node-edge pairs.

We now define the set of constraints 𝒞𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{C}^{\mathsf{octopus}}. An edge e={u,v}e=\{u,v\} is called internal if and only if {Lu(e),Lv(e)}{𝗁𝗉𝗅𝗂𝗇𝗄1,𝗁𝗉𝗅𝗂𝗇𝗄2,𝗉𝗁𝗅𝗂𝗇𝗄}=\{L_{u}(e),L_{v}(e)\}\cap\{\mathsf{hp_{link}}_{1},\mathsf{hp_{link}}_{2},\mathsf{ph_{link}}\}=\emptyset, and external otherwise.

The constraints 𝒞𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{C}^{\mathsf{octopus}} 0. In the subgraph induced by internal edges, all the constraints in 𝒞𝗍𝗋𝖾𝖾\mathcal{C}^{\mathsf{tree}} must be satisfied. 1. For each edge e={u,v}e=\{u,v\}, it must hold that nodes uu and vv are both labeled 𝗁𝖾𝖺𝖽\mathsf{head}, or both labeled 𝗉𝗈𝗋𝗍\mathsf{port}, if and only if ee is an internal edge. 2. For each edge e={u,v}e=\{u,v\}, if Lu(e)=𝗁𝗉𝗅𝗂𝗇𝗄jL_{u}(e)=\mathsf{hp_{link}}_{j} for some j{1,2}j\in\{1,2\}, then Lv(e)=𝗉𝗁𝗅𝗂𝗇𝗄L_{v}(e)=\mathsf{ph_{link}}, and vice versa. 3. If a node vv is labeled with 𝗁𝖾𝖺𝖽\mathsf{head} and ee is an edge incident to vv, then Lv(e)𝗉𝗁𝗅𝗂𝗇𝗄L_{v}(e)\neq\mathsf{ph_{link}}. 4. If a node vv is labeled with 𝗉𝗈𝗋𝗍\mathsf{port} and ee is an edge incident to vv, then Lv(e)𝗁𝗉𝗅𝗂𝗇𝗄jL_{v}(e)\neq\mathsf{hp_{link}}_{j} for all j{1,2}j\in\{1,2\}. 5. A node vv has an incident edge labeled 𝗁𝗉𝗅𝗂𝗇𝗄j\mathsf{hp_{link}}_{j} for some j{1,2}j\in\{1,2\} if and only if vv is labeled with 𝗁𝖾𝖺𝖽\mathsf{head} and it has no incident edge ee satisfying Lv(e){𝖢𝗁𝖫,𝖢𝗁𝖱}L_{v}(e)\in\{\mathsf{Ch_{L}},\mathsf{Ch_{R}}\}. 6. A node vv has an incident edge labeled 𝗉𝗁𝗅𝗂𝗇𝗄\mathsf{ph_{link}} if and only if vv is labeled with 𝗉𝗈𝗋𝗍\mathsf{port} and it has no incident edge ee satisfying Lv(e)=𝖯L_{v}(e)=\mathsf{P}. 7. A node cannot have more than one incident edge labeled with 𝗉𝗁𝗅𝗂𝗇𝗄\mathsf{ph_{link}}, 𝗁𝗉𝗅𝗂𝗇𝗄1\mathsf{hp_{link}}_{1}, and 𝗁𝗉𝗅𝗂𝗇𝗄2\mathsf{hp_{link}}_{2}. 8. If a node vv has an incident edge ee such that Lv(e)=𝗁𝗉𝗅𝗂𝗇𝗄2L_{v}(e)=\mathsf{hp_{link}}_{2}, then it has another incident edge ee^{\prime} such that Lv(e)=𝗁𝗉𝗅𝗂𝗇𝗄1L_{v}(e^{\prime})=\mathsf{hp_{link}}_{1}.
Lemma 5.6.

Let GG be a connected graph that is (𝒱𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{V}^{\mathsf{octopus}}, 𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{E}^{\mathsf{octopus}})-labeled such that 𝒞𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{C}^{\mathsf{octopus}} is satisfied at all nodes. Then, GG is an octopus gadget.

Proof.

In the following, by labels of an edge e={u,v}e=\{u,v\} we denote the labels Lv(e)L_{v}(e) and Lu(e)L_{u}(e). By constraint 2, for each edge ee it holds that the labels of ee are either both in {𝗁𝗉𝗅𝗂𝗇𝗄1,𝗁𝗉𝗅𝗂𝗇𝗄2,𝗉𝗁𝗅𝗂𝗇𝗄}\{\mathsf{hp_{link}}_{1},\mathsf{hp_{link}}_{2},\mathsf{ph_{link}}\}, or both in 𝗍𝗋𝖾𝖾\mathcal{E}^{\mathsf{tree}}. Hence, internal edges have only labels from 𝗍𝗋𝖾𝖾\mathcal{E}^{\mathsf{tree}} and external edges have only labels from {𝗁𝗉𝗅𝗂𝗇𝗄1,𝗁𝗉𝗅𝗂𝗇𝗄2,𝗉𝗁𝗅𝗂𝗇𝗄}\{\mathsf{hp_{link}}_{1},\mathsf{hp_{link}}_{2},\mathsf{ph_{link}}\}. Moreover, by constraint 2, an external edge has exactly two labels from {𝗁𝗉𝗅𝗂𝗇𝗄1,𝗁𝗉𝗅𝗂𝗇𝗄2,𝗉𝗁𝗅𝗂𝗇𝗄}\{\mathsf{hp_{link}}_{1},\mathsf{hp_{link}}_{2},\mathsf{ph_{link}}\}, and these two labels cannot be {𝗁𝗉𝗅𝗂𝗇𝗄1,𝗁𝗉𝗅𝗂𝗇𝗄2}\{\mathsf{hp_{link}}_{1},\mathsf{hp_{link}}_{2}\}.

By constraint 0 and Lemma 5.2, each connected component in the subgraph induced by internal edges is a tree-like gadget (possibly, a graph without edges). Moreover, for each connected component, by constraint 1, it must hold that all nodes in the component are either all labeled 𝗁𝖾𝖺𝖽\mathsf{head}, or all labeled 𝗉𝗈𝗋𝗍\mathsf{port}.

Summarizing what we have showed so far, each connected component in the subgraph induced by internal edges is either a tree-like gadget where all nodes are labeled 𝗁𝖾𝖺𝖽\mathsf{head} or a tree-like gadget where all nodes are labeled 𝗉𝗈𝗋𝗍\mathsf{port}, and external edges have labels {𝗁𝗉𝗅𝗂𝗇𝗄1,𝗉𝗁𝗅𝗂𝗇𝗄}\{\mathsf{hp_{link}}_{1},\mathsf{ph_{link}}\} or labels {𝗁𝗉𝗅𝗂𝗇𝗄2,𝗉𝗁𝗅𝗂𝗇𝗄}\{\mathsf{hp_{link}}_{2},\mathsf{ph_{link}}\}. Hence, we only need to prove that external edges are properly connected.

Suppose GG is non-empty. Let vv be a node in GG. We prove that the connected component GG^{\prime} (in GG, including external edges) containing vv is an octopus gadget.

Let HH be the connected component containing vv in the graph induced by internal edges. As discussed, HH is a tree-like gadget. We start by proving that, in GG^{\prime}, there must be a tree-like gadget where all nodes are labeled 𝗁𝖾𝖺𝖽\mathsf{head}. If vv itself is labeled 𝗁𝖾𝖺𝖽\mathsf{head}, we are done. If vv is marked 𝗉𝗈𝗋𝗍\mathsf{port}, then by constraint 6 the node uu in the tree-like gadget HH that has no incident half-edge labeled 𝖯\mathsf{P} (i.e., the node with coordinates (0,0)(0,0)) must have an edge e={u,z}e=\{u,z\} satisfying Lu(e)=𝗉𝗁𝗅𝗂𝗇𝗄L_{u}(e)=\mathsf{ph_{link}}. By constraint 2, Lz(e)=𝗁𝗉𝗅𝗂𝗇𝗄jL_{z}(e)=\mathsf{hp_{link}}_{j} for some j{1,2}j\in\{1,2\}, and by constraint 4 no node labeled 𝗉𝗈𝗋𝗍\mathsf{port} can have incident edges with label 𝗁𝗉𝗅𝗂𝗇𝗄j\mathsf{hp_{link}}_{j} for any j{1,2}j\in\{1,2\}. Hence, zz must be a node labeled 𝗁𝖾𝖺𝖽\mathsf{head}.

Let HhH_{h} be the connected component containing zz in the graph induced by internal edges. HhH_{h} must be a tree-like gadget. By constraint 5, only nodes in the last layer of HhH_{h} can have an incident edge labeled 𝗁𝗉𝗅𝗂𝗇𝗄j\mathsf{hp_{link}}_{j} for some j{1,2}j\in\{1,2\}, and such nodes must have at least one such edge. By constraint 7, each of these nodes cannot have other edges labeled with 𝗁𝗉𝗅𝗂𝗇𝗄j\mathsf{hp_{link}}_{j}. Let e={wh,wp}e=\{w_{h},w_{p}\} be an arbitrary such edge, where Lwh(e)=𝗁𝗉𝗅𝗂𝗇𝗄jL_{w_{h}}(e)=\mathsf{hp_{link}}_{j} for some j{1,2}j\in\{1,2\}. By constraint 2, it must hold that Lwp(e)=𝗉𝗁𝗅𝗂𝗇𝗄L_{w_{p}}(e)=\mathsf{ph_{link}}. Moreover, by constraint 7, node wpw_{p} cannot have additional incident edges labeled 𝗉𝗁𝗅𝗂𝗇𝗄\mathsf{ph_{link}}. By constraint 3, node wpw_{p} must be labeled 𝗉𝗈𝗋𝗍\mathsf{port} and by constraints 6, 0, and 1, node wpw_{p} must be the root of a tree-like gadget HpH_{p} where all nodes are labeled 𝗉𝗈𝗋𝗍\mathsf{port}. By constraint 6, no other node of HpH_{p} can have edges labeled 𝗉𝗁𝗅𝗂𝗇𝗄\mathsf{ph_{link}}. Furthermore, by constraint 8, each node in the last layer of HpH_{p} must have an incident edge labeled 𝗁𝗉𝗅𝗂𝗇𝗄1\mathsf{hp_{link}}_{1} if it has an incident edge labeled 𝗁𝗉𝗅𝗂𝗇𝗄2\mathsf{hp_{link}}_{2}.

We thus get that, for each head-gadget HhH_{h}, there is at least one port-gadget HpH_{p} connected to each leaf of HhH_{h} and at most two of them, and that HpH_{p} is connected to exactly one head-gadget via its root. Hence, GG^{\prime} is an octopus gadget. Let xx be the height of the tree-like gadget HhH_{h}. Now, we assign the label root to all nodes in HhH_{h}, and the label (i,j)(i,j) to all nodes in the port-gadget HpH_{p} if HpH_{p} is connected to HhH_{h} via the leaf vv of HhH_{h} having coordinates (x1,i)(x-1,i) through the edge ee such that Lv(e)=𝗁𝗉𝗅𝗂𝗇𝗄jL_{v}(e)=\mathsf{hp_{link}}_{j}. By this assignment, we have shown that GG^{\prime} satisfies Definition 5.5.

Finally, since GG is connected, then G=GG^{\prime}=G. ∎

Lemma 5.7.

Let GG be an octopus gadget. Then, GG can be (𝒱𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{V}^{\mathsf{octopus}}, 𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{E}^{\mathsf{octopus}})-labeled such that 𝒞𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{C}^{\mathsf{octopus}} is satisfied at all nodes.

Proof.

Let G=(V,E)G=(V,E) be an octopus gadget. We can assign the labels in this way.

  • We assign the label 𝗁𝖾𝖺𝖽\mathsf{head} to all the nodes of the head-gadget.

  • We assign the label 𝗉𝗈𝗋𝗍\mathsf{port} to all the nodes of the port-gadgets.

  • By Lemma 5.3, we can assign labels to each tree-like gadget such that the constraints of 𝒞𝗍𝗋𝖾𝖾\mathcal{C}^{\mathsf{tree}} are satisfied.

  • Let e={u,v}e=\{u,v\} be an edge connecting a head-gadget to a port-gadget (i.e., the edges of point 4 of Definition 5.5), where uu is the node in the head-gadget. If vv has the label (i,j)I(i,j)\in I in Definition 5.5, we set Lu(e)=𝗁𝗉𝗅𝗂𝗇𝗄jL_{u}(e)=\mathsf{hp_{link}}_{j} and Lv(e)=𝗉𝗁𝗅𝗂𝗇𝗄L_{v}(e)=\mathsf{ph_{link}}.

By construction, all the constraints of 𝒞𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{C}^{\mathsf{octopus}} are satisfied. ∎

The LCL problem 𝚷𝗯𝗮𝗱𝗢𝗰𝘁𝗼𝗽𝘂𝘀\Pi^{\mathsf{badOctopus}}.

We now define an LCL problem Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}} that, on a high level, allows the nodes to prove that the graph in which they are is not an octopus gadget. Similarly as in the case of Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}}, nodes also receive a binary input, where nodes that receive 11 are called marked. Again, we will use this input later, to mark nodes that witness errors that may be unrelated to the octopus gadget itself. On a high level, the problem will satisfy the following properties.

  • Nodes receive as input whether they are marked or not.

  • There are two possible types of output: a node can either produce an empty output (\bot), or it can output an error. In the latter case, a node needs to also output a locally checkable proof of the fact that the graph is not an octopus gadget or that it contains at least one marked node.

  • If the octopus gadget is valid and it does not contain any marked node, the constraint of the problem are defined such that the only valid solution to the problem Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}} is the one where all nodes output \bot.

  • Otherwise, if the graph is not an octopus gadget or it contains at least one marked node, all nodes are able to spend O(logn)O(\regularlog n) round in the LOCAL model to produce a proof of this fact.

We now give a formal definition of the LCL problem Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}}. The inputs are defined as follows.

  • Each node vv receives an input pair (mv,gv)(m_{v},g_{v}) from the set {0,1}×𝒱𝗈𝖼𝗍𝗈𝗉𝗎𝗌\{0,1\}\times\mathcal{V}^{\mathsf{octopus}}, that is, each node receives a pair, where the first element mvm_{v} denotes whether the node is marked or not, while the second element gvg_{v} of the pair is an element from the previously described set 𝒱𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{V}^{\mathsf{octopus}}.

  • Each half-edge receives an input from the previously described set 𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{E}^{\mathsf{octopus}}.

Let 𝒱𝖻𝖺𝖽𝖳𝗋𝖾𝖾\mathcal{V}^{\mathsf{badTree}} be the node output labels of the LCL problem Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}}. The possible output labels 𝒱𝖻𝖺𝖽𝖳𝗋𝖾𝖾\mathcal{V}^{\mathsf{badTree}} are the following.

  • The label \bot, which represent an empty output.

  • A pair (𝖤𝗋𝗋𝗈𝗋,)(\mathsf{Error},\mathcal{M}), where \mathcal{M} is a triple, and each element of the triple is a label from 𝒱𝖻𝖺𝖽𝖳𝗋𝖾𝖾\mathcal{V}^{\mathsf{badTree}}.

We denote the pairs (𝖤𝗋𝗋𝗈𝗋,)(\mathsf{Error},\mathcal{M}) as error outputs. On a high level, the constraints 𝒞𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{C}^{\mathsf{badOctopus}} are defined such that the output \bot is always allowed, while the constraints on the error outputs are defined such that these outputs encode a proof of the fact that there is an error in the graph. Informally, the error output triples will be used as follows.

  • If the first element of a triple of some node vv is not \bot, it means that, in the connected component of the subgraph induced by internal edges that contains vv there is some error.

  • If the second element of a triple of some node vv is not \bot, it means that, even if the connected component of vv may be correct, node vv is in a head gadget connected to at least one broken port gadget.

  • If the third element of a triple of some node vv is not \bot, it means that, even if the connected component of vv may be correct, and even if vv is in a correct port gadget connected to a correct head gadget, node vv is in a port gadget connected to a head gadget that is connected to at least one broken port gadget.

In order to allow this labeling, we allow more and more nodes to be marked, as follows.

  • For the first instance of Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}}, only marked nodes and nodes that have already witnessed some error are marked.

  • For the second instance, additionally, nodes in head gadgets that are neighbors of nodes of port gadgets that output an error in the previous instance are marked.

  • For the third instance, additionally, nodes in port gadgets that are neighbors of nodes of head gadgets that output an error in the previous instance are marked.

More formally, the constraints 𝒞𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{C}^{\mathsf{badOctopus}} are defined as follows.

The constraints 𝒞𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{C}^{\mathsf{badOctopus}} A node can always output \bot. If a node vv outputs (𝖤𝗋𝗋𝗈𝗋,(xv,1,xv,2,xv,3))(\mathsf{Error},(x_{v,1},x_{v,2},x_{v,3})), then the following must hold. 1. The triple (xv,1,xv,2,xv,3)(x_{v,1},x_{v,2},x_{v,3}) must be different from (,,)(\bot,\bot,\bot). 2. Consider the labeling of the graph obtained by labeling each node vv with the label gv𝒱𝗈𝖼𝗍𝗈𝗉𝗎𝗌g_{v}\in\mathcal{V}^{\mathsf{octopus}}, and each half-edge (v,e)(v,e) with the label Lv(e)𝗈𝖼𝗍𝗈𝗉𝗎𝗌L_{v}(e)\in\mathcal{E}^{\mathsf{octopus}} (i.e., on the nodes we take the second element of their input pair, while on the edges we take the original input half-edge label). For each node vv, let iv,1:=1i_{v,1}:=1 if, according to this labeling, node vv does not satisfy the constraints 𝒞𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{C}^{\mathsf{octopus}} or if mv=1m_{v}=1, and let iv,1:=0i_{v,1}:=0 otherwise. 3. Consider the labeling of the subgraph induced by internal edges obtained by input labeling each node vv with iv,1i_{v,1} and output labeling each node vv with xv,1x_{v,1}. This labeling must satisfy the constraints of Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}}. 4. Let iv,2:=1i_{v,2}:=1 if iv,1=1i_{v,1}=1 or if vv is a node such that gv=𝗁𝖾𝖺𝖽g_{v}=\mathsf{head} and such that there exists an edge e={u,v}e=\{u,v\} satisfying Lv(e)=𝗁𝗉𝗅𝗂𝗇𝗄jL_{v}(e)=\mathsf{hp_{link}}_{j} for some j{1,2}j\in\{1,2\} and xu,1x_{u,1}\neq\bot. Let iv,2:=0i_{v,2}:=0 otherwise. 5. Consider the labeling of the subgraph induced by internal edges obtained by input labeling each node vv with iv,2i_{v,2} and output labeling each node vv with xv,2x_{v,2}. This labeling must satisfy the constraints of Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}}. 6. Let iv,3:=1i_{v,3}:=1 if iv,2=1i_{v,2}=1 or if vv is a node such that gv=𝗉𝗈𝗋𝗍g_{v}=\mathsf{port} and such that there exists an edge e={u,v}e=\{u,v\} satisfying Lv(e)=𝗉𝗁𝗅𝗂𝗇𝗄L_{v}(e)=\mathsf{ph_{link}} and xu,2x_{u,2}\neq\bot. Let iv,3:=0i_{v,3}:=0 otherwise. 7. Consider the labeling of the subgraph induced by internal edges obtained by input labeling each node vv with iv,3i_{v,3} and output labeling each node vv with xv,3x_{v,3}. This labeling must satisfy the constraints of Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}}.
Lemma 5.8.

Let GG be a ({0,1}×𝒱𝗈𝖼𝗍𝗈𝗉𝗎𝗌𝐶𝐿𝑂𝑆𝐸(\{0,1\}\times\mathcal{V}^{\mathsf{octopus}}, 𝑂𝑃𝐸𝑁𝗈𝖼𝗍𝗈𝗉𝗎𝗌)\mathcal{E}^{\mathsf{octopus}})-labeled graph where 𝒞𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{C}^{\mathsf{octopus}} is satisfied for all nodes and all nodes are not marked. Then, the only valid solution for Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}} is the one assigning \bot to all nodes.

Proof.

For a contradiction, assume that some node vv in GG outputs (𝖤𝗋𝗋𝗈𝗋,(xv,1,xv,2,xv,3))(\mathsf{Error},(x_{v,1},x_{v,2},x_{v,3})) for some labels xv,1x_{v,1}, xv,2x_{v,2}, xv,3x_{v,3}. By the definition of iv,1i_{v,1} in constraint 2, for all nodes vv it must hold that iv,1=0i_{v,1}=0, and by constraint 3 and Lemma 5.4 we thus get that xv,1=x_{v,1}=\bot. Similarly, by the definition of iv,2i_{v,2} in constraint 4, for all nodes vv it must hold that iv,2=0i_{v,2}=0, and by constraint 5 and Lemma 5.4 we thus get that xv,2=x_{v,2}=\bot. Again, by the definition of iv,3i_{v,3} in constraint 6, for all nodes vv it must hold that iv,3=0i_{v,3}=0, and by constraint 7 and Lemma 5.4 we thus get that xv,3=x_{v,3}=\bot. The claim then follows by the fact that constraint 1 forbids the triple (,,)(\bot,\bot,\bot). ∎

Lemma 5.9.

Let GG be a connected ({0,1}×𝒱𝗈𝖼𝗍𝗈𝗉𝗎𝗌𝐶𝐿𝑂𝑆𝐸(\{0,1\}\times\mathcal{V}^{\mathsf{octopus}}, 𝑂𝑃𝐸𝑁𝗈𝖼𝗍𝗈𝗉𝗎𝗌)\mathcal{E}^{\mathsf{octopus}})-labeled graph where either 𝒞𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{C}^{\mathsf{octopus}} is not satisfied on at least one node, or there is at least one marked node. Then, there exists a solution for Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}} where all nodes produce an output different from \bot. Moreover, such a solution can be computed in O(logn)O(\regularlog n) deterministic rounds in the LOCAL model.

Proof.

In order to produce the claimed solution, we will use, as a black box, the algorithm for Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}} reported in Lemma 5.4. The algorithm for solving Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}} works as follows. Each node vv spends O(1)O(1) rounds to compute iv,1i_{v,1}. By Lemma 5.4, nodes can spend O(logn)O(\regularlog n) deterministic classical rounds to compute a solution for Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}}, where iv,1i_{v,1} is the input of vv for the problem, and, if in the subgraph induced by internal edges, in the connected component containing vv, there is at least one marked node or a node not satisfying 𝒞𝗍𝗋𝖾𝖾\mathcal{C}^{\mathsf{tree}}, then vv outputs a label different from \bot. For each node vv, let xv,1x_{v,1} be this output.

Then, each node vv spends O(1)O(1) rounds to compute iv,2i_{v,2}, and again, as before, nodes spend O(logn)O(\regularlog n) rounds to compute a solution for Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}}, where this time the input of node vv is iv,2i_{v,2}.

Finally, each node vv spends O(1)O(1) rounds to compute iv,3i_{v,3} and spends O(logn)O(\regularlog n) rounds to compute a solution for Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}}, where the input of node vv is now iv,3i_{v,3}. If a node vv satisfies xv,1=xv,2=xv,3x_{v,1}=x_{v,2}=x_{v,3}, then it outputs \bot. Otherwise, it outputs (𝖤𝗋𝗋𝗈𝗋,(xv,1,xv,2,xv,3))(\mathsf{Error},(x_{v,1},x_{v,2},x_{v,3})).

The correctness of the output directly follows from the definition of 𝒞𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{C}^{\mathsf{badOctopus}}, and the runtime is clearly upper bounded by O(logn)O(\regularlog n) deterministic classical rounds. We now prove that, if GG contains at least one marked node, or at least one node not satisfying 𝒞𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{C}^{\mathsf{octopus}}, then all nodes output a label different from \bot.

Let G^\hat{G} be the graph obtained by contracting each connected component induced by internal edges into a single node. If there are multiple edges between different connected components, we have parallel edges in G^\hat{G}. By the definition of the algorithm, it holds that all nodes vv of GG corresponding to the same node of G^\hat{G}, in the first output of Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}} (i.e., the values xv,1x_{v,1}), either all output \bot or all output something different. Let us label EE (which stands for error) each node of G^\hat{G} satisfying that all its nodes output something different from \bot. We label all the other nodes either HH (head) or PP (port), as follows. If a node of G^\hat{G} is not labeled EE, then either all its nodes of GG have input 𝗁𝖾𝖺𝖽\mathsf{head}, or all its nodes of GG have input 𝗉𝗈𝗋𝗍\mathsf{port}. In the former case, we label the node HH, while in the latter case we label the node PP.

By Lemma 5.6, at least one node of G^\hat{G} is labeled EE. Moreover, by the definition of 𝒞𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{C}^{\mathsf{octopus}}, the graph G^\hat{G} must satisfy the following properties.

  • Each node labeled PP must have degree 11.

  • Nodes labeled PP must form an independent set.

  • Nodes labeled HH must form an independent set.

We thus get that each connected component of G^\hat{G} induced by nodes not labeled EE must form stars centered at nodes labeled HH. Moreover, we observe that each node labeled HH must have at least one neighbor labeled EE, since otherwise we would get that, in G^\hat{G}, there is a connected component not containing EE, which in GG corresponds to a valid octopus gadget. By the definition of the algorithm, we thus get that, in each connected component corresponding to a node labeled HH, at least one node is marked when solving Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}} for the second time. Let us update the labeling of G^\hat{G} by changing nodes labeled HH into nodes labeled EE if their connected component contains nodes not outputting \bot. We get that, after this update, no node of G^\hat{G} is labeled HH. Hence, all nodes of G^\hat{G} labeled PP have a neighbor labeled EE. By the definition of the algorithm, we thus get that, in each connected component corresponding to a node labeled PP, at least one node is marked when solving Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}} for the third time. Let us update the labeling of G^\hat{G} by changing nodes labeled PP into nodes labeled EE if their connected component contains nodes not outputting \bot. We get that, after this update, no node of G^\hat{G} is labeled PP. Hence, all nodes of G^\hat{G} are labeled EE, and hence no node of GG outputs \bot.

5.3 The family of proper instances

In Section 3.3, we informally defined the family of graphs called proper instances that we will use to prove our main result. We now provide a formal definition of such graphs. The main ingredient is the octopus gadget defined in Definition 5.5.

Definition 5.10 (Proper instance).

Let G=(V,E)G=(V,E) be a graph. We say that GG is a proper instance if there exists a node labeling function λ:V{intra-octopus,inter-octopus}\lambda:V\to\{\texttt{intra-octopus},\texttt{inter-octopus}\} with the following properties.

  1. 1.

    Every connected component in the subgraph induced by nodes labeled intra-octopus is an octopus gadget (according to Definition 5.5).

  2. 2.

    The subgraph induced by nodes labeled inter-octopus does not contain any edge.

  3. 3.

    A node vv labeled intra-octopus is connected to a node labeled inter-octopus if and only if vv has coordinates (w1,0)(w-1,0) in the port-gadget PP containing vv, where ww is the height of PP (that is, vv is the left-most leaf of the port-gadget containing vv).

Local checkability.

While Definition 5.10 gives the definition of proper instances from a global perspective, we now define a finite set of labels and a set of local constraints satisfying that a connected graph is a properly labeled valid instance if and only if these local constraints are satisfied by all nodes.

We first define the sets of labels 𝒱𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{V}^{\mathsf{proper}} and 𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{E}^{\mathsf{proper}}, and then we define a set of local constraints 𝒞𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{C}^{\mathsf{proper}} over these labels. We will prove that a connected graph GG can be (𝒱𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{V}^{\mathsf{proper}}, 𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{E}^{\mathsf{proper}})-labeled such that the constraints 𝒞𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{C}^{\mathsf{proper}} are satisfied on all nodes if and only if GG is a proper instance.

The sets of labels are defined as follows. The node labels are defined as 𝒱𝗉𝗋𝗈𝗉𝖾𝗋=𝒱𝗈𝖼𝗍𝗈𝗉𝗎𝗌{𝗂𝗇𝗍𝖾𝗋-𝗈𝖼𝗍𝗈𝗉𝗎𝗌}\mathcal{V}^{\mathsf{proper}}=\mathcal{V}^{\mathsf{octopus}}\cup\{\mathsf{inter\text{-}octopus}\}, where 𝗂𝗇𝗍𝖾𝗋-𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathsf{inter\text{-}octopus} stands inter-octopus node. The half-edge labels are defined as 𝗉𝗋𝗈𝗉𝖾𝗋=𝗈𝖼𝗍𝗈𝗉𝗎𝗌{𝗉𝗂𝗅𝗂𝗇𝗄,𝗂𝗉𝗅𝗂𝗇𝗄}\mathcal{E}^{\mathsf{proper}}=\mathcal{E}^{\mathsf{octopus}}\cup\{\mathsf{pi_{link}},\mathsf{ip_{link}}\}, where 𝗉𝗂𝗅𝗂𝗇𝗄\mathsf{pi_{link}} stands for “port-inter-octopus link” and 𝗂𝗉𝗅𝗂𝗇𝗄\mathsf{ip_{link}} stands for “inter-octopus-port link”.

We now define the set of constraints 𝒞𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{C}^{\mathsf{proper}}. An edge e={u,v}e=\{u,v\} is called intra-octopus if and only if {Lu(e),Lv(e)}{𝗉𝗂𝗅𝗂𝗇𝗄,𝗂𝗉𝗅𝗂𝗇𝗄}=\{L_{u}(e),L_{v}(e)\}\cap\{\mathsf{pi_{link}},\mathsf{ip_{link}}\}=\emptyset, and inter-octopus otherwise.

The constraints 𝒞𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{C}^{\mathsf{proper}} 0. In the subgraph induced by intra-octopus edges, all the constraints in 𝒞𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{C}^{\mathsf{octopus}} must be satisfied. 1. For each edge e={u,v}e=\{u,v\}, if Lu(e)=𝗉𝗂𝗅𝗂𝗇𝗄L_{u}(e)=\mathsf{pi_{link}}, then Lv(e)=𝗂𝗉𝗅𝗂𝗇𝗄L_{v}(e)=\mathsf{ip_{link}}, and vice versa. 2. Each node vv has an incident edge labeled 𝗉𝗂𝗅𝗂𝗇𝗄\mathsf{pi_{link}} if and only if vv is labeled with 𝗉𝗈𝗋𝗍\mathsf{port} and it has no incident edge ee satisfying Lv(e){𝖢𝗁𝖫,𝖢𝗁𝖱,𝖫}L_{v}(e)\in\{\mathsf{Ch_{L}},\mathsf{Ch_{R}},\mathsf{L}\}. 3. Each node vv labeled 𝗂𝗇𝗍𝖾𝗋-𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathsf{inter\text{-}octopus} has degree at least 11 and only incident half-edges labeled 𝗂𝗉𝗅𝗂𝗇𝗄\mathsf{ip_{link}}. Moreover, nodes not labeled 𝗂𝗇𝗍𝖾𝗋-𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathsf{inter\text{-}octopus} have no incident half-edges labeled 𝗂𝗉𝗅𝗂𝗇𝗄\mathsf{ip_{link}}.
Lemma 5.11.

Let GG be any non-empty connected graph that is (𝒱𝗉𝗋𝗈𝗉𝖾𝗋,𝗉𝗋𝗈𝗉𝖾𝗋)(\mathcal{V}^{\mathsf{proper}},\mathcal{E}^{\mathsf{proper}})-labeled such that 𝒞𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{C}^{\mathsf{proper}} is satisfied at all nodes. Then, GG is a proper instance according to Definition 5.10.

Proof.

We start by proving that there must be at least one node not labeled 𝗂𝗇𝗍𝖾𝗋-𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathsf{inter\text{-}octopus}. Since the graph GG is non-empty, it contains at least some node vv, which is either labeled 𝗂𝗇𝗍𝖾𝗋-𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathsf{inter\text{-}octopus} or not. In the latter case we are done. In the former case, by constraint 33, vv has an incident edge e={u,v}e=\{u,v\} such that Lv(e)=𝗂𝗉𝗅𝗂𝗇𝗄L_{v}(e)=\mathsf{ip_{link}}. By constraints 11 and 22, uu is labeled with 𝗉𝗈𝗋𝗍\mathsf{port} and Lu(e)=𝗉𝗂𝗅𝗂𝗇𝗄L_{u}(e)=\mathsf{pi_{link}}. Hence, a node not labeled 𝗂𝗇𝗍𝖾𝗋-𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathsf{inter\text{-}octopus} exists.

We thus know that the subgraph HOctH_{\text{Oct}} induced by nodes not labeled 𝗂𝗇𝗍𝖾𝗋-𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathsf{inter\text{-}octopus} is non-empty, and, by constraint 0, HOctH_{\text{Oct}} is such that each connected component is an octopus gadget.

By constraint 2, each 𝗉𝗈𝗋𝗍\mathsf{port} node uu that is the left-most leaf of its gadget must have an incident edge {u,u}\{u,u^{\prime}\} such that Lu(e)=𝗉𝗂𝗅𝗂𝗇𝗄L_{u}(e)=\mathsf{pi_{link}}, and no other node is allowed to have such an incident edge. By constraint 1 and 3, uu^{\prime} must be labeled 𝗂𝗇𝗍𝖾𝗋-𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathsf{inter\text{-}octopus} and Lu(e)=𝗂𝗉𝗅𝗂𝗇𝗄L_{u^{\prime}}(e)=\mathsf{ip_{link}}. This in particular implies that the set V(HExt)=V(G)V(HOct)V(H_{\text{Ext}})=V(G)\setminus V(H_{\text{Oct}}) is non-empty.

By constraint 3, all edges incident to nodes in V(HExt)V(H_{\text{Ext}}) are labeled 𝗂𝗉𝗅𝗂𝗇𝗄\mathsf{ip_{link}}. Moreover, by constraint 3, no nodes in HOctH_{\text{Oct}} have incident half-edges labeled 𝗂𝗉𝗅𝗂𝗇𝗄\mathsf{ip_{link}}. By constraint 1, each edge e={u,v}e=\{u,v\} incident to an 𝗂𝗇𝗍𝖾𝗋-𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathsf{inter\text{-}octopus} node uu, must satisfy Lv(e)=𝗉𝗂𝗅𝗂𝗇𝗄L_{v}(e)=\mathsf{pi_{link}}, and, by constraint 2, vv must be a left-most leaf of a port gadget. Summarizing, we obtained the following.

  • Each connected component in the subgraph induced by intra-octopus edges is an octopus gadget.

  • Only left-most leaves of port gadgets have incident inter-octopus edges.

  • Inter-octopus edges must have an endpoint that is a left-most leaf of a port gadget and an endpoint that is an inter-octopus node.

Hence, GG is a proper instance. ∎

Lemma 5.12.

Let GG be a proper instance as defined in Definition 5.10. Then, there exists a (𝒱𝗉𝗋𝗈𝗉𝖾𝗋,𝗉𝗋𝗈𝗉𝖾𝗋)(\mathcal{V}^{\mathsf{proper}},\mathcal{E}^{\mathsf{proper}})-labeling of GG that satisfies the constraints in 𝒞𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{C}^{\mathsf{proper}} at all nodes.

Proof.

We properly label all nodes and edges in octopus gadgets respecting 𝒞𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{C}^{\mathsf{octopus}} as in Lemma 5.7. To all nodes that are outside octopus gadgets, we assign the label 𝗂𝗇𝗍𝖾𝗋-𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathsf{inter\text{-}octopus}. To all edges ee that connect a node uu labeled with 𝗂𝗇𝗍𝖾𝗋-𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathsf{inter\text{-}octopus} to a node vv labeled with 𝗉𝗈𝗋𝗍\mathsf{port}, we assign labels so that Lu(e)=𝗂𝗉𝗅𝗂𝗇𝗄L_{u}(e)=\mathsf{ip_{link}} and Lv(e)=𝗉𝗂𝗅𝗂𝗇𝗄L_{v}(e)=\mathsf{pi_{link}}. All constraints are satisfied by construction. ∎

The LCL problem Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}}.

We now define an LCL problem Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}} that, on a high level, allows the nodes to prove that the graph in which they are is not a proper instance labeled in a valid way. Differently from the cases of Π𝖻𝖺𝖽𝖳𝗋𝖾𝖾\Pi^{\mathsf{badTree}} and Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}}, we cannot guarantee the property that, if the graph is invalid, then nodes can spend O(logn)O(\regularlog n) rounds to produce a solution in which no node outputs \bot. This time, the problem Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}} will satisfy the following weaker guarantee, which will be sufficient for our purposes: nodes can spend O(logn)O(\regularlog n) rounds to produce a solution in which the graph induced by nodes outputting \bot is a proper instance. On a high level, the problem will satisfy the following properties.

  • There are three possible types of output: a node can either produce an empty output (\bot), or it can output an error, and there are two types of errors. In the latter case, a node needs to also output a locally checkable proof of the fact that the graph is not a proper instance.

  • If the graph is a proper instance, the constraints of the problem are defined such that the only valid solution to the problem Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}} is the one where all nodes output \bot.

  • Otherwise, if the graph is not a proper instance, nodes are able to spend O(logn)O(\regularlog n) deterministic classical rounds to label invalid parts of the graph, such that the graph induced by nodes outputting \bot is a proper instance, and such that the labeling on the invalid parts of the graph encodes a proof that these parts are indeed invalid.

We now give a formal definition of the LCL problem Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}}. The inputs are defined as follows.

  • Each node vv receives as input a label gv𝒱𝗉𝗋𝗈𝗉𝖾𝗋g_{v}\in\mathcal{V}^{\mathsf{proper}}.

  • Each half-edge receives as input a label from 𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{E}^{\mathsf{proper}}.

The possible node output labels 𝒱𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\mathcal{V}^{\mathsf{badGraph}} for the problem Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}} are the following.

  • The empty output \bot.

  • A pair (𝖤𝗋𝗋𝗈𝗋𝗂𝗇𝗍𝗋𝖺,xv)(\mathsf{Error}_{\mathsf{intra}},x_{v}), where xv𝒱𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌x_{v}\in\mathcal{V}^{\mathsf{badOctopus}}. This label will be allowed only on intra-octopus nodes.

  • The labels 𝖤𝗋𝗋𝗈𝗋𝗂𝗇𝗍𝖾𝗋,1\mathsf{Error}_{\mathsf{inter},1} and 𝖤𝗋𝗋𝗈𝗋𝗂𝗇𝗍𝖾𝗋,2\mathsf{Error}_{\mathsf{inter},2}. These labels will be allowed only on inter-octopus nodes.

We call error outputs all labels that are different from \bot. Informally, the label 𝖤𝗋𝗋𝗈𝗋𝗂𝗇𝗍𝖾𝗋,1\mathsf{Error}_{\mathsf{inter},1} will be used by inter-octopus nodes that do not satisfy the constraints 𝒞𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{C}^{\mathsf{proper}}, while 𝖤𝗋𝗋𝗈𝗋𝗂𝗇𝗍𝖾𝗋,2\mathsf{Error}_{\mathsf{inter},2} will be used by inter-octopus nodes satisfying that all their intra-octopus neighbors output errors. On a high level, these labels will be used as follows. Inter-octopus nodes that are not properly connected to intra-octopus nodes output 𝖤𝗋𝗋𝗈𝗋𝗂𝗇𝗍𝖾𝗋,1\mathsf{Error}_{\mathsf{inter},1}. Then, intra-octopus nodes connected to inter-octopus nodes that are outputting an error are marked. Then, nodes solve Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}} in the subgraph induced by intra-octopus nodes. Finally, inter-octopus nodes output 𝖤𝗋𝗋𝗈𝗋𝗂𝗇𝗍𝖾𝗋,2\mathsf{Error}_{\mathsf{inter},2} if they satisfy the following two properties: they did not output 𝖤𝗋𝗋𝗈𝗋𝗂𝗇𝗍𝖾𝗋,1\mathsf{Error}_{\mathsf{inter},1} previously, and all their neighbors (which are intra-octopus nodes) output an error. We now define the constraints 𝒞𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\mathcal{C}^{\mathsf{badGraph}}.

The constraints 𝒞𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\mathcal{C}^{\mathsf{badGraph}} A node can always output \bot. A node vv can output 𝖤𝗋𝗋𝗈𝗋𝗂𝗇𝗍𝖾𝗋,1\mathsf{Error}_{\mathsf{inter},1} only if gv=𝗂𝗇𝗍𝖾𝗋-𝗈𝖼𝗍𝗈𝗉𝗎𝗌g_{v}=\mathsf{inter\text{-}octopus} and it does not satisfy the constraints 𝒞𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{C}^{\mathsf{proper}}. If a node vv outputs (𝖤𝗋𝗋𝗈𝗋𝗂𝗇𝗍𝗋𝖺,xv)(\mathsf{Error}_{\mathsf{intra}},x_{v}), then the following must hold. 1. xvx_{v} must be different from \bot. 2. Consider the labeling of the graph obtained by input labeling each node vv with the pair (mv,gv)(m_{v},g_{v}), where mv:=1m_{v}:=1 if vv has a neighbor outputting 𝖤𝗋𝗋𝗈𝗋𝗂𝗇𝗍𝖾𝗋,1\mathsf{Error}_{\mathsf{inter},1} and mv:=0m_{v}:=0 otherwise, and output labeling each node vv with xvx_{v}. On node vv the constraints 𝒞𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{C}^{\mathsf{badOctopus}} must be satisfied. That is, xvx_{v} is a valid solution for Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}} when we mark nodes that are incident to inter-octopus nodes that output 𝖤𝗋𝗋𝗈𝗋𝗂𝗇𝗍𝖾𝗋,1\mathsf{Error}_{\mathsf{inter},1}. A node vv can output 𝖤𝗋𝗋𝗈𝗋𝗂𝗇𝗍𝖾𝗋,2\mathsf{Error}_{\mathsf{inter},2} only if gv=𝗂𝗇𝗍𝖾𝗋-𝗈𝖼𝗍𝗈𝗉𝗎𝗌g_{v}=\mathsf{inter\text{-}octopus} and all its neighbors do not output \bot.
Lemma 5.13.

Let GG be a (𝒱𝗉𝗋𝗈𝗉𝖾𝗋𝐶𝐿𝑂𝑆𝐸(\mathcal{V}^{\mathsf{proper}}, 𝑂𝑃𝐸𝑁𝗉𝗋𝗈𝗉𝖾𝗋)\mathcal{E}^{\mathsf{proper}})-labeled graph where 𝒞𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{C}^{\mathsf{proper}} is satisfied for all nodes. Then, the only valid solution for Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}} is the one assigning \bot to all nodes.

Proof.

Since 𝒞𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{C}^{\mathsf{proper}} is satisfied at all nodes, an inter-octopus node cannot output 𝖤𝗋𝗋𝗈𝗋𝗂𝗇𝗍𝖾𝗋,1\mathsf{Error}_{\mathsf{inter},1}. This implies that the input for Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}} satisfies mv=0m_{v}=0 for all intra-octopus nodes vv. Since each connected component of the subgraph induced by intra-octopus nodes is a properly labeled octopus gadget, intra-octopus nodes must output \bot. This implies that inter-octopus nodes cannot output 𝖤𝗋𝗋𝗈𝗋𝗂𝗇𝗍𝖾𝗋,2\mathsf{Error}_{\mathsf{inter},2}. We thus get that all nodes must output \bot. ∎

Lemma 5.14.

Let GG be a (𝒱𝗉𝗋𝗈𝗉𝖾𝗋𝐶𝐿𝑂𝑆𝐸(\mathcal{V}^{\mathsf{proper}}, 𝑂𝑃𝐸𝑁𝗉𝗋𝗈𝗉𝖾𝗋)\mathcal{E}^{\mathsf{proper}})-labeled graph. There exists a solution for Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}} where each connected component induced by nodes outputting \bot is a proper instance. Moreover, such a solution can be computed in O(logn)O(\regularlog n) classical deterministic rounds.

Proof.

In order to produce the claimed solution, we will use the algorithm for Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}} reported in the proof of the Lemma 5.9. The algorithm for solving Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}} works as follows.

Each node vv satisfying gv=𝗂𝗇𝗍𝖾𝗋-𝗈𝖼𝗍𝗈𝗉𝗎𝗌g_{v}=\mathsf{inter\text{-}octopus} spends O(1)O(1) rounds to check whether it satisfies 𝒞𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{C}^{\mathsf{proper}}. If these constraints are not satisfied, vv outputs 𝖤𝗋𝗋𝗈𝗋𝗂𝗇𝗍𝖾𝗋,1\mathsf{Error}_{\mathsf{inter},1}. Then, each intra-octopus node vv spends O(1)O(1) rounds to compute mvm_{v}. By Lemma 5.9, intra-octopus nodes can spend O(logn)O(\regularlog n) deterministic classical rounds to compute a solution for Π𝖻𝖺𝖽𝖮𝖼𝗍𝗈𝗉𝗎𝗌\Pi^{\mathsf{badOctopus}}, where (mv,gv)(m_{v},g_{v}) is the input of node vv for the problem. Such a solution satisfies that the following property: if in the subgraph induced by intra-octopus edges, in the connected component containing vv, there is at least one marked node or a node not satisfying 𝒞𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathcal{C}^{\mathsf{octopus}}, then vv outputs a label different from \bot. For each node vv, let xvx_{v} be this output. If xvx_{v}\neq\bot, then vv outputs (𝖤𝗋𝗋𝗈𝗋𝗂𝗇𝗍𝗋𝖺,xv)(\mathsf{Error}_{\mathsf{intra}},x_{v}), otherwise vv outputs \bot. Finally, each inter-octopus node that did not output 𝖤𝗋𝗋𝗈𝗋𝗂𝗇𝗍𝖾𝗋,1\mathsf{Error}_{\mathsf{inter},1} spends O(1)O(1) rounds to check if at least one neighbor output some error in the previous phase, and in that case it outputs 𝖤𝗋𝗋𝗈𝗋𝗂𝗇𝗍𝖾𝗋,1\mathsf{Error}_{\mathsf{inter},1}.

The solution clearly satisfies the constraints of Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}}, and the runtime is clearly O(logn)O(\regularlog n). We now prove that the subgraph induced by nodes outputting \bot is a proper instance.

Let GG^{\prime} be the subgraph induced by nodes outputting \bot. By the definition of the algorithm, each connected component of the subgraph of GG^{\prime} induced by intra-octopus nodes must be a valid octopus gadget. Moreover, the inter-octopus nodes incident to intra-octopus gadgets of GG^{\prime} must not be labeled 𝖤𝗋𝗋𝗈𝗋𝗂𝗇𝗍𝖾𝗋,1\mathsf{Error}_{\mathsf{inter},1}, since otherwise their neighbors vv in octopus gadgets would have satisfied mv=1m_{v}=1 and hence output something different from \bot. Also, inter-octopus nodes incident to intra-octopus gadgets of GG^{\prime} cannot be labeled 𝖤𝗋𝗋𝗈𝗋𝗂𝗇𝗍𝖾𝗋,2\mathsf{Error}_{\mathsf{inter},2}, since they have at least one intra-octopus neighbor outputting \bot. We thus get that inter-octopus nodes that are neighbors of intra-octopus gadgets of GG^{\prime} are all labeled \bot. Additionally, all left-most leaves of octopus ports must have an inter-octopus neighbor, since otherwise they would have output an error. We thus get that, in GG^{\prime}, 𝒞𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{C}^{\mathsf{proper}} is satisfied on all nodes, and by Lemma 5.11 this implies that GG^{\prime} is a proper instance. ∎

5.4 The problem 𝚷𝗽𝗿𝗼𝗺𝗶𝘀𝗲\Pi^{\mathsf{promise}}

In this section, we define the problem Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} as a function of a given problem Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾=(Σ,(F,L,P),B)\Pi^{\mathsf{linearizable}}=(\Sigma,(F,L,P),B) (see Definition 3.1 for the definition of linearizable problems). As mentioned in Section 3.5, the problem Π\Pi will be defined such that it is required to solve Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}} on the whole graph, and it is required to solve Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} on the subgraph induced by nodes that output \bot for Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}}.

Recall that the problem Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}} allows to output \bot on all nodes, even on graphs that are not proper instances. If an algorithm produces such an output, then it is required to solve Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} on a graph that is not a proper instance. However, when proving a lower bound for Π\Pi, we will use a proper instance, and when proving an upper bound for Π\Pi, we will define an algorithm satisfying that the subgraph induced by nodes outputting \bot for Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}} is always a proper instance. In other words, it does not matter how Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} is defined on graphs that are not proper instances, as it will not affect the lower and the upper bounds that we prove. For this reason, we will define the constraints 𝒞𝗉𝗋𝗈𝗆𝗂𝗌𝖾\mathcal{C}^{\mathsf{promise}} of Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} under the assumption that the given graph GG is a proper instance labeled such that all nodes satisfy 𝒞𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{C}^{\mathsf{proper}}. This will make the definition easier to read. Then, the definition of Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} is lifted to any arbitrary graph as follows.

  • Let r=O(1)r=O(1) be the distance that each node vv needs to inspect to check whether it satisfies 𝒞𝗉𝗋𝗈𝗆𝗂𝗌𝖾\mathcal{C}^{\mathsf{promise}} (on a proper instance).

  • If all nodes that are within distance rr from vv (including vv) satisfy 𝒞𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{C}^{\mathsf{proper}}, then vv needs to satisfy 𝒞𝗉𝗋𝗈𝗆𝗂𝗌𝖾\mathcal{C}^{\mathsf{promise}}.

  • Otherwise, any output is considered incorrect.

In this way, whenever a node vv needs to satisfy 𝒞𝗉𝗋𝗈𝗆𝗂𝗌𝖾\mathcal{C}^{\mathsf{promise}}, the radius-rr neighborhood of vv is a subgraph of a proper instance, and hence the constraints of 𝒞𝗉𝗋𝗈𝗆𝗂𝗌𝖾\mathcal{C}^{\mathsf{promise}} are well-defined.

Let us proceed with some nomenclature. If vv is labeled 𝗁𝖾𝖺𝖽\mathsf{head} and Lv(e){𝖢𝗁𝖫,𝖢𝗁𝖱}L_{v}(e)\notin\{\mathsf{Ch_{L}},\mathsf{Ch_{R}}\} for all ee incident to vv, then we call vv head-leaf. If vv is labeled 𝗉𝗈𝗋𝗍\mathsf{port} and Lv(e)𝖯L_{v}(e)\neq\mathsf{P} for all ee incident to vv, then we call vv port-root. For each head-leaf vv, let η(v)=|{e:Lv(e){𝗁𝗉𝗅𝗂𝗇𝗄1,𝗁𝗉𝗅𝗂𝗇𝗄2}}|\eta(v)=\absolutevalue{\{ e: L_v(e) \in\{\nplink_1, \nplink_2\} \}} count the number of port gadgets that are connected to vv (which are either 1 or 2).

We are now ready to define Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}}. The node input set for Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} is 𝒱in𝗉𝗋𝗈𝗆𝗂𝗌𝖾=𝒱𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{V}_{\text{in}}^{\mathsf{promise}}=\mathcal{V}^{\mathsf{proper}}, while the node-edge input set for Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} is in𝗉𝗋𝗈𝗆𝗂𝗌𝖾=𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{E}_{\text{in}}^{\mathsf{promise}}=\mathcal{E}^{\mathsf{proper}}. The node output set is 𝒱out𝗉𝗋𝗈𝗆𝗂𝗌𝖾=Σ{}\mathcal{V}_{\text{out}}^{\mathsf{promise}}=\Sigma\cup\{\bot\}. Let us denote with out(v)\oupt(v) the output of a node vv for Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}}. The constraints 𝒞𝗉𝗋𝗈𝗆𝗂𝗌𝖾\mathcal{C}^{\mathsf{promise}} of Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} are defined as follows.

The constraints 𝒞𝗉𝗋𝗈𝗆𝗂𝗌𝖾\mathcal{C}^{\mathsf{promise}} 1. If vv is labeled 𝗉𝗈𝗋𝗍\mathsf{port}, then it must hold that out(v)Σ\oupt(v)\in\Sigma. 2. If vv is not labeled 𝗉𝗈𝗋𝗍\mathsf{port}, then it must hold that out(v)=\oupt(v)=\bot. 3. If a node vv is labeled 𝗉𝗈𝗋𝗍\mathsf{port}, then, for each neighbor uu of vv that is also labeled 𝗉𝗈𝗋𝗍\mathsf{port}, it must hold that out(v)=out(u)\oupt(v)=\oupt(u). 4. If vv is a head-leaf node, and Lv(e)𝖫L_{v}(e)\neq\mathsf{L} for all ee incident to vv, then it must hold that out(f(v,𝗁𝗉𝗅𝗂𝗇𝗄1))F\oupt(f(v,\mathsf{hp_{link}}_{1}))\in F. 5. If vv is a head-leaf node, and Lv(e)𝖱L_{v}(e)\neq\mathsf{R} for all ee incident to vv, then: if η(v)=1\eta(v)=1, then it must hold that out(f(v,𝗁𝗉𝗅𝗂𝗇𝗄1))L\oupt(f(v,\mathsf{hp_{link}}_{1}))\in L; if η(v)=2\eta(v)=2, then it must hold that out(f(v,𝗁𝗉𝗅𝗂𝗇𝗄2))L\oupt(f(v,\mathsf{hp_{link}}_{2}))\in L. 6. If vv is a head-leaf node satisfying that η(v)=2\eta(v)=2, then it must hold that (out(f(v,𝗁𝗉𝗅𝗂𝗇𝗄1)),out(f(v,𝗁𝗉𝗅𝗂𝗇𝗄2)))P(\oupt(f(v,\mathsf{hp_{link}}_{1})),\oupt(f(v,\mathsf{hp_{link}}_{2})))\in P. 7. If vv is a head-leaf node satisfying that η(v)=j\eta(v)=j for some j{1,2}j\in\{1,2\}, and f(v,𝖱)=uf(v,\mathsf{R})=u\neq\bot, then it must hold that (out(f(v,𝗁𝗉𝗅𝗂𝗇𝗄j)),out(f(u,𝗁𝗉𝗅𝗂𝗇𝗄1)))P.(\oupt(f(v,\mathsf{hp_{link}}_{j})),\oupt(f(u,\mathsf{hp_{link}}_{1})))\in P. 8. If vv is labeled 𝗂𝗇𝗍𝖾𝗋-𝗈𝖼𝗍𝗈𝗉𝗎𝗌\mathsf{inter\text{-}octopus} and {u1,u2,,uk}\{u_{1},u_{2},\dots,u_{k}\} is the set of all nodes adjacent to vv, then it must hold that {out(u1),out(u2),,out(uk)}B\{\oupt(u_{1}),\oupt(u_{2}),\dots,\oupt(u_{k})\}\in B.

We now prove some facts about the relation between Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}} and Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}}. As informally explained in Section 3.3, a proper instance can be obtained by replacing the nodes belonging to one side of a bipartite graph with octopus gadgets. We now provide a formal definition of this construction.

Definition 5.15 (Lift of a bipartite graph).

Let G=(WB,E)G=(W\cup B,E) be a bipartite graph that is not necessarily connected and that may contain parallel edges. A lift of GG is a pair (L,𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇)(L,\mathsf{compression}), where L=(V,E)L=(V^{\prime},E^{\prime}) is a graph that is a proper instance (according to Definition 5.10), and 𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇:VWBE\mathsf{compression}:V^{\prime}\to W\cup B\cup E is a function, with the following properties.

  1. 1.

    For each node vv of any head gadget, 𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇(v)W\mathsf{compression}(v)\in W.

  2. 2.

    If u,vVu,v\in V^{\prime} are nodes of the same head gadget, then 𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇(u)=𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇(v)\mathsf{compression}(u)=\mathsf{compression}(v).

  3. 3.

    If u,vVu,v\in V^{\prime} are nodes of different head gadgets, then 𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇(u)𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇(v)\mathsf{compression}(u)\neq\mathsf{compression}(v).

  4. 4.

    For any node vv of any port gadget, 𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇(v)E\mathsf{compression}(v)\in E.

  5. 5.

    If u,vVu,v\in V^{\prime} are nodes of the same port gadget, then 𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇(u)=𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇(v)\mathsf{compression}(u)=\mathsf{compression}(v).

  6. 6.

    If u,vVu,v\in V^{\prime} are nodes of different port gadgets, then 𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇(u)𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇(v)\mathsf{compression}(u)\neq\mathsf{compression}(v).

  7. 7.

    Let uVu\in V^{\prime} be a node of a port gadget PP, and let vVv\in V^{\prime} be a node of a head gadget HH. The edge 𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇(u)\mathsf{compression}(u) is incident to the node 𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇(v)\mathsf{compression}(v) if and only if PP is connected to HH.

  8. 8.

    If vVv\in V^{\prime} is an inter-octopus node, then 𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇(v)B\mathsf{compression}(v)\in B.

  9. 9.

    Let uVu\in V^{\prime} be a node of a port gadget PP, and let vVv\in V^{\prime} be an inter-octopus node. The edge 𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇(u)\mathsf{compression}(u) is incident to the node 𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇(v)\mathsf{compression}(v) if and only if PP is connected to vv.

Furthermore, for a proper instance LL and a bipartite graph GG, if there exists a function 𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇\mathsf{compression} for which (L,𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇)(L,\mathsf{compression}) is a lift of GG, then we say that LL can be compressed to GG.

In the following, for a bipartite graph G=(WB,E)G=(W\cup B,E), by ordering assigned to the edges of GG we denote a function τ:wσw\tau:w\mapsto\sigma_{w} that takes as input a node wWw\in W and returns a function σw\sigma_{w}, where the function σw\sigma_{w} gives an ordering of the incident half-edges of ww. That is, τ\tau assigns, to each node ww, an injective function σw\sigma_{w} mapping each edge incident to ww to an integer in {1,,deg(w)}\{1,\ldots,\deg(w)\}, where deg(w)\deg(w) is the degree of ww.

Observation 5.16.

Let G=(WB,E)G=(W\cup B,E) be a bipartite graph, and let (L=(V,E),𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇)(L=(V^{\prime},E^{\prime}),\mathsf{compression}) be a lift of GG that is (𝒱𝗉𝗋𝗈𝗉𝖾𝗋,𝗉𝗋𝗈𝗉𝖾𝗋)(\mathcal{V}^{\mathsf{proper}},\mathcal{E}^{\mathsf{proper}})-labeled such that 𝒞𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{C}^{\mathsf{proper}} is satisfied on all nodes. Then, the function 𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇:VWBE\mathsf{compression}:V^{\prime}\to W\cup B\cup E uniquely defines, for each node wWw\in W, the ordering σw\sigma_{w} of the edges incident to ww.

Proof.

For each node wWw\in W, let GwG_{w} be the octopus gadget whose nodes map either to ww or to its incident edges according to the function 𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇\mathsf{compression}. We now define an ordering of the port gadgets of GwG_{w} which will automatically induce an ordering of the edges incident to ww, and hence an ordering assigned to the edges of GG. Assume that GwG_{w} has height hh. Consider two port gadgets PP and PP^{\prime} of GwG_{w}, and let rPr_{P} and rPr_{P^{\prime}} be their root nodes, respectively. Furthermore, let vPv_{P} and vPv_{P^{\prime}} be the head-leaf nodes of GwG_{w} that are connected to rPr_{P} and rPr_{P^{\prime}}, respectively. Assume that vP=(h1,i)v_{P}=(h-1,i) and vP=(h1,j)v_{P^{\prime}}=(h-1,j) for some i,j{0,,2h1}i,j\in\{0,\ldots,2^{h-1}\}. We say that P<PP<P^{\prime} if and only if i<ji<j or, if i=ji=j, LvP({vP,rP})=𝗁𝗉𝗅𝗂𝗇𝗄1L_{v_{P}}(\{v_{P},r_{P}\})=\mathsf{hp_{link}}_{1} and LvP({vP,rP})=𝗁𝗉𝗅𝗂𝗇𝗄2L_{v_{P}}(\{v_{P},r_{P^{\prime}}\})=\mathsf{hp_{link}}_{2}. Let PiP_{i} be the ii-th port of GwG_{w} according to this ordering, and let uu be an arbitrary node of PiP_{i}. The ii-th edge of ww is the edge 𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇(u)\mathsf{compression}(u). ∎

In the definition of Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}}, the given bipartite graph G=(WB,E)G=(W\cup B,E) comes with a local ordering σw\sigma_{w} of the edges of each node wWw\in W. We can then think of lifts that “respect” such an ordering.

Definition 5.17 (Edge-order preserving lift).

Let G=(WB,E)G=(W\cup B,E) be a bipartite graph that is not necessarily connected and that may contain parallel edges, and let τ:wσw\tau:w\mapsto\sigma_{w} be an ordering assigned to the edges of GG. Let (L,𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇)(L,\mathsf{compression}) be a lift of GG, where LL is (𝒱𝗉𝗋𝗈𝗉𝖾𝗋,𝗉𝗋𝗈𝗉𝖾𝗋)(\mathcal{V}^{\mathsf{proper}},\mathcal{E}^{\mathsf{proper}})-labeled. Let τ:wσw\tau^{\prime}:w\mapsto\sigma^{\prime}_{w} be a function assigning to each wWw\in W the edge ordering defined via 𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇\mathsf{compression} according to Observation 5.16. We say that (L,𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇)(L,\mathsf{compression}) is edge-order preserving with respect to τ\tau if σw=σw\sigma^{\prime}_{w}=\sigma_{w} for all wWw\in W.

Lemma 5.18.

For each bipartite graph G=(WB,E)G=(W\cup B,E) which comes with an ordering τ:wWσw\tau:w\in W\mapsto\sigma_{w} assigned to its edges, and for each integer hh, there exists a lift (L,𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇)(L,\mathsf{compression}) that is (𝒱𝗉𝗋𝗈𝗉𝖾𝗋,𝗉𝗋𝗈𝗉𝖾𝗋)(\mathcal{V}^{\mathsf{proper}},\mathcal{E}^{\mathsf{proper}})-labeled such that all nodes satisfy 𝒞𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{C}^{\mathsf{proper}} where all port gadgets of LL have height hh, and such that (L,𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇)(L,\mathsf{compression}) is edge-order preserving with respect to τ\tau. Moreover, for each proper instance LL, there exists a bipartite graph GG such that LL can be compressed to GG.

Proof.

We first prove that for each bipartite graph G=(WB,E)G=(W\cup B,E) with an edge-ordering τ\tau and for each integer hh, there exists a lift (L,𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇)(L,\mathsf{compression}) where all port gadgets of LL have height hh and that is edge-order preserving w.r.t. τ\tau. Recall that to each node wWw\in W is assigned an ordering σw\sigma_{w} of its incident edges.

For each node wWw\in W, we create an (xw,ηw,Ww)(x_{w},\eta_{w},W_{w})-octopus gadget GwG_{w}, where the parameters xwx_{w}, ηw\eta_{w}, and WwW_{w} are chosen as follows.

  • xw=2log2(deg(w))+1x_{w}=2^{\left\lfloor\regularlog_{2}(\deg(w))\right\rfloor}+1.

  • ηw{1,2}xw1\eta_{w}\in\{1,2\}^{x_{w}-1} is a vector satisfying that ηw(i)=deg(w)\sum\eta_{w}(i)=\deg(w). Such a vector exists, since (xw1)deg(w)2(xw1)(x_{w}-1)\leq\deg(w)\leq 2(x_{w}-1).

  • All elements of WwW_{w} are equal to hh.

Let Ew={e(w,1),,e(w,deg(w))}E_{w}=\{e_{(w,1)},\dots,e_{(w,\deg(w))}\} be the set of edges that are incident to ww, ordered according to σw\sigma_{w}. For each 1ideg(w)1\leq i\leq\deg(w), let Pe(w,i)P_{e_{(w,i)}} be the ii-th port gadget connected to the octopus gadget GwG_{w} (according to the natural order defined in the proof of Observation 5.16). For each black node bBb\in B, we create a node vbv_{b} that is an inter-octopus node. If bb is connected to ww through some edge e(w,i)e_{(w,i)}, then vbv_{b} is connected to the left-most leaf of Pe(w,i)P_{e_{(w,i)}}. It is trivial to see that LL admits a 𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇\mathsf{compression} function to GG with the properties given in Definition 5.15.

We now prove that each proper instance L=(V,E)L=(V,E) can be compressed to some bipartite graph G=(WB,E)G=(W\cup B,E^{\prime}). We construct GG as follows. The set of white nodes WW contains a vertex vHv_{H} for each head gadget HH. The set of black nodes BB contains a node uv𝗂𝗇𝗍𝖾𝗋-𝗈𝖼𝗍𝗈𝗉𝗎𝗌u_{v_{\mathsf{inter\text{-}octopus}}} for each inter-octopus node v𝗂𝗇𝗍𝖾𝗋-𝗈𝖼𝗍𝗈𝗉𝗎𝗌v_{\mathsf{inter\text{-}octopus}}. Then, vHv_{H} is connected to uv𝗂𝗇𝗍𝖾𝗋-𝗈𝖼𝗍𝗈𝗉𝗎𝗌u_{v_{\mathsf{inter\text{-}octopus}}} through an edge if and only if HH is connected to a port gadget PP that is, in turn, connected to v𝗂𝗇𝗍𝖾𝗋-𝗈𝖼𝗍𝗈𝗉𝗎𝗌v_{\mathsf{inter\text{-}octopus}}. ∎

Lemma 5.19.

Let Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} be the problem defined as a function of a linearizable problem Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}} as described in Section 5.4. Let L=(V,E)L=(V^{\prime},E^{\prime}) be a proper instance, and let G=(WB,E)G=(W\cup B,E) be the bipartite graph to which LL can be compressed to, according to Lemma 5.18. For each node wWw\in W, let σw\sigma_{w} be the ordering defined in Observation 5.16.

Then, there is a bijective function that maps solutions of Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} on LL to solutions of Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}} on GG (with the aforementioned edge ordering).

Proof.

Let 𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇:VWBE\mathsf{compression}:V^{\prime}\to W\cup B\cup E be the function that compresses LL to GG. First, suppose that we are given a solution for Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} on LL. Consider any white node ww of GG and its set of incident edges e(w,1),,e(w,deg(w))e_{(w,1)},\ldots,e_{(w,\deg(w))} ordered according to σw\sigma_{w}. Consider an arbitrary node vv of a port gadget PP such that 𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇(v)=e(w,i)\mathsf{compression}(v)=e_{(w,i)}. Then, the output of ww on the edge e(w,i)e_{(w,i)} is defined to be the same as the output of vv. This labeling clearly satisfies the constraints of Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}} under the ordering of the edges defined by σ={σwwW}\sigma=\{\sigma_{w}\mid w\in W\}.

Now, suppose we are given a solution for Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}} on GG. Consider any white node ww of GG and its set of incident edges e(w,1),,e(w,deg(w))e_{(w,1)},\ldots,e_{(w,\deg(w))}, ordered according to σw\sigma_{w}. For all nodes v𝖼𝗈𝗆𝗉𝗋𝖾𝗌𝗌𝗂𝗈𝗇1(e(w,i))v\in\mathsf{compression}^{-1}(e_{(w,i)}), we define the output of vv to be the same as the output of ww on e(w,i)e_{(w,i)}. For all other nodes vv of GG, we define the output of vv to be \bot. This labeling clearly satisfies the constraints of Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}}. ∎

5.5 The LCL problem 𝚷\Pi

We are now ready to define our problem Π\Pi, as a function of the given problem Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}}. The input labels of Π\Pi are the same as the input labels 𝒱𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{V}^{\mathsf{proper}} and 𝗉𝗋𝗈𝗉𝖾𝗋\mathcal{E}^{\mathsf{proper}} of Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}}. The set 𝒱Π\mathcal{V}^{\Pi} of output labels contains the following labels.

  • (𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁,x)(\mathsf{badGraph},x), for all x𝒱𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁{}x\in\mathcal{V}^{\mathsf{badGraph}}\setminus\{\bot\}.

  • (𝗉𝗋𝗈𝗆𝗂𝗌𝖾,x)(\mathsf{promise},x), for all x𝒱out𝗉𝗋𝗈𝗆𝗂𝗌𝖾x\in\mathcal{V}_{\text{out}}^{\mathsf{promise}}.

The constraints 𝒞Π\mathcal{C}^{\Pi} are defined as follows.

The constraints 𝒞Π\mathcal{C}^{\Pi} Consider the graph labeling in which the output labels are changed as follows: nodes labeled (𝗉𝗋𝗈𝗆𝗂𝗌𝖾,x)(\mathsf{promise},x) become labeled \bot, while nodes labeled (𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁,x)(\mathsf{badGraph},x) become labeled xx. Then, this labeling must satisfy the constraint 𝒞𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\mathcal{C}^{\mathsf{badGraph}}. Let GG^{\prime} be the subgraph induced by nodes outputting (𝗉𝗋𝗈𝗆𝗂𝗌𝖾,x)(\mathsf{promise},x), for some xx. Consider the labeling of GG^{\prime} in which nodes labeled (𝗉𝗋𝗈𝗆𝗂𝗌𝖾,x)(\mathsf{promise},x) become labeled xx. Then, all nodes of GG^{\prime}, in the subgraph GG^{\prime}, must satisfy 𝒞𝗉𝗋𝗈𝗆𝗂𝗌𝖾\mathcal{C}^{\mathsf{promise}}.

In other words, if nodes output a (𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁,)(\mathsf{badGraph},\cdot) label, then this labeling must be a valid solution for Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}}. This allows nodes to mark invalid parts of the graph. Then, in the parts that are not marked as invalid, nodes need to solve Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}}.

5.6 Upper bound in quantum-LOCAL

In this section, we prove an upper bound on the quantum complexity of Π\Pi as a function of the quantum complexity of Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}}. More in detail, we prove the following.

Lemma 5.20.

Let T(n)T(n) be an upper bound on the quantum complexity of Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}}, that holds also if the given graph contains parallel edges. Then, the quantum complexity of Π\Pi is upper bounded by O(T(n)logn)O(T(n)\regularlog n).

Proof.

Let GG be the graph in which we need to solve Π\Pi. The algorithm is composed of two parts, a classical deterministic part and a quantum part. The first part uses Lemma 5.14 to compute a solution for Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}} such that the nodes outputting \bot induce a proper instance. This requires O(logn)O(\regularlog n) classical deterministic rounds. For each vv, let xvx_{v} be its output for Π𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁\Pi^{\mathsf{badGraph}}. Each node vv satisfying xvx_{v}\neq\bot outputs (𝖻𝖺𝖽𝖦𝗋𝖺𝗉𝗁,xv)(\mathsf{badGraph},x_{v}) for Π\Pi. Note that the graph GG^{\prime} induced by nodes that still did not output anything for Π\Pi is a proper instance.

The second part of the algorithm works as follows. Nodes that have already produced an output for Π\Pi do nothing. The other nodes simulate the quantum algorithm 𝒜\mathcal{A} for Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}} as follows. The goal is to simulate 𝒜\mathcal{A} in the graph obtained by contracting each octopus gadget of GG^{\prime} into a single node. Let G^\hat{G} be this graph. Observe that this is the graph that GG can be compressed to, according to Lemma 5.18. For each octopus gadget ν\nu, the root of its head gadget is the node responsible for storing the quantum state of the node in G^\hat{G} corresponding to ν\nu. The inter-octopus nodes are unaffected and simulate themselves in G^\hat{G}. Since the diameter of a valid octopus gadget is clearly upper bounded by O(logn)O(\regularlog n), we get that the communication between nodes of G^\hat{G} can be simulated in O(logn)O(\regularlog n) quantum rounds in GG^{\prime}. Hence, after O(T(n)logn)O(T(n)\regularlog n), all the roots of the head gadget computed a solution for Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}} in G^\hat{G}. With additional O(logn)O(\regularlog n) steps nodes can solve Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}} in GG^{\prime}, according to the mapping defined in Lemma 5.19. For each node vv in GG^{\prime}, let xvx_{v} be its output for Π𝗉𝗋𝗈𝗆𝗂𝗌𝖾\Pi^{\mathsf{promise}}. Each node vv in GG^{\prime} outputs (𝗉𝗋𝗈𝗆𝗂𝗌𝖾,xv)(\mathsf{promise},x_{v}) for Π\Pi.

The output clearly satisfies the constraints 𝒞Π\mathcal{C}^{\Pi}, and the runtime is clearly upper bounded by O(T(n)logn)O(T(n)\regularlog n). ∎

5.7 Lower bound in LOCAL

In this section, we prove a lower bound on the classical randomized complexity of Π\Pi as a function of the classical randomized complexity of Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}}. More in detail, we prove the following.

Lemma 5.21.

Let T(n)T(n) be a lower bound on the time required to solve Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}} with a classical randomized algorithm that has failure probability at most 1/n1/n. Then, any classical randomized algorithm for Π\Pi with failure probability at most 1/n1/n requires Ω(T(n1/3)logn)\Omega(T(n^{1/3})\regularlog n) rounds.

Proof.

For a contradiction, assume that there exists an algorithm 𝒜\mathcal{A} that solves Π\Pi in T(n)=o(T(n1/3)logn)T^{\prime}(n)=o(T(n^{1/3})\regularlog n) rounds with failure probability at most 1/n1/n. We show that we can construct an algorithm \mathcal{B} that solves Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}} in o(T(n))o(T(n)) with failure probability at most 1/n1/n, contradicting the hypothesis.

The algorithm \mathcal{B} works as follows. Let GG be an instance of Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}}. We construct an instance GG^{\prime} of Π\Pi by applying Lemma 5.18 to construct a lift of GG with parameter h=Θ(logn)h=\Theta(\regularlog n). On a high level, the algorithm \mathcal{B} will be defined such that the nodes of GG simulate the execution of 𝒜\mathcal{A} on GG^{\prime}.

Recall that GG^{\prime} is constructed as follows. Each hyperedge ee of GG is replaced with an inter-octopus node beb_{e}. Each node vv of degree dvd_{v} is replaced with an octopus gadget νv\nu_{v} that contains exactly dvd_{v} ports, such that each port gadget has height Θ(logn)\Theta(\regularlog n), and such that the number of nodes of each port gadget is strictly less than nn. For each node-hyperedge pair (u,e)(u,e) of GG, we add an edge to GG^{\prime} that connects the left-most leaf of the ii-th port of νv\nu_{v} to beb_{e}, assuming that ee is the ii-th edge incident to uu according to the given ordering σu\sigma_{u}. We label GG^{\prime} such that it is a properly labeled valid instance. Observe that the labeling of the nodes of νv\nu_{v} can be computed by vv without communication.

Since each port gadget has size strictly less than nn, and since the maximum degree of GG is nn, we obtain that GG^{\prime} has at most n3n^{3} nodes. Observe that if two nodes (u,v)(u,v) are neighbors in GG, then the head gadgets of νv\nu_{v} and νu\nu_{u} are at distance Θ(logn)\Theta(\regularlog n) in GG^{\prime}. Hence, each node vv of GG can spend O(T(n3)/logn)O(T^{\prime}(n^{3})/\regularlog n) rounds of communication in GG to gather its T(n3)T^{\prime}(n^{3})-radius neighborhood in GG^{\prime}. Since the runtime of 𝒜\mathcal{A} on instances of size at most n3n^{3} is upper bounded by T(n3)T^{\prime}(n^{3}), and since GG^{\prime} has size at most n3n^{3}, then each node vv is able to compute the output of 𝒜\mathcal{A} for Π\Pi on GG^{\prime} without further communication.

Since GG^{\prime} is a properly labeled valid instance, all nodes of GG^{\prime} must output labels of type (𝗉𝗋𝗈𝗆𝗂𝗌𝖾,)(\mathsf{promise},\cdot). Hence, vv can reconstruct a solution for Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}} as a function of the output of the nodes in νv\nu_{v}, without communication, according to Lemma 5.19.

The runtime of the algorithm \mathcal{B} for Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}} is O(T(n3)/logn)=o(T(n))O(T^{\prime}(n^{3})/\regularlog n)=o(T(n)), and its failure probability is upper bounded by 1/n31/n1/n^{3}\leq 1/n, proving the claim. ∎

5.8 Instantiating the construction

In [3], the authors introduced a family of problems {GHZ(Δ)Δ3}\{\iterghz(\Delta)\mid\Delta\geq 3\}. While this set can be seen as a family of problems parametrized by the maximum degree Δ\Delta of the graph, for the ease of presentation we will present this family as a single problem that we call iterated GHZ. We now formally define this problem, show that it can be defined as a linearizable problem, and then state its quantum and classical complexities.

The iterated GHZ problem.

An instance of the problem is a hypergraph of rank 33. However, for the ease of presentation, in the following, we will describe an input instance as a bipartite graph (U,V,E)(U,V,E), where nodes in VV have degree exactly 33 (equivalently, in order to remove this assumption, if a node in VV has degree different from 33, then it is unconstrained). Nodes in UU are called white nodes, or players, while nodes in VV are called black nodes, or games. Each node uUu\in U receives as input an ordering on its incident edges. Let eu,ie_{u,i} be the ii-th edge incident to uu according to this order, where 1idu1\leq i\leq d_{u}, and dud_{u} is the degree of uu. The problem is defined as follows. Each node uUu\in U must output two bits x(u,i)x(u,i) and y(u,i)y(u,i) on each incident edge eu,ie_{u,i}. The following must hold.

  • For each white node uu, it must hold that x(u,1)=0x(u,1)=0.

  • For each white node uu, it must hold that y(u,i)=x(u,i+1)y(u,i)=x(u,i+1), for all ii.

  • Let vv be a black node, and let u1u_{1}, u2u_{2}, u3u_{3} be its white neighbors. Let iji_{j} be the position of the edge {uj,v}\{u_{j},v\} according to the order of the edges incident to uju_{j}, for 1j31\leq j\leq 3. Then, the following must hold.

    • If i1=i2=i3=1i_{1}=i_{2}=i_{3}=1, then it must hold that the multiset {y(u1,1),y(u2,1),y(u3,1)}\{y(u_{1},1),y(u_{2},1),y(u_{3},1)\} is equal to {0,0,1}\{0,0,1\}.

    • Otherwise, if x(u1,i1)+x(u2,i2)+x(u3,i3)x(u_{1},i_{1})+x(u_{2},i_{2})+x(u_{3},i_{3}) is even, then it must hold that y(u1,i1)y(u2,i2)y(u3,i3)=x(u1,i1)x(u2,i2)x(u3,i3)y(u_{1},i_{1})\oplus y(u_{2},i_{2})\oplus y(u_{3},i_{3})=x(u_{1},i_{1})\lor x(u_{2},i_{2})\lor x(u_{3},i_{3}).

    • Otherwise, node vv is unconstrained.

The original definition of GHZ(Δ)\iterghz(\Delta) of [3] is equivalent to the definition that we have provided, when restricted to the case in which the maximum degree of the graph is Δ\Delta.

Lower bound for classical randomized algorithms.

In [3], the following lower bound is shown.

Theorem 5.22 ([3]).

Let Δ3\Delta\geq 3 be an integer. Any classical randomized algorithm that solves GHZ(Δ)\iterghz(\Delta) with high probability requires Ω(min{Δ,logΔlogn})\Omega(\min\{\Delta,\regularlog_{\Delta}\regularlog n\}) rounds.

In order to obtain the best possible lower bound stated solely as a function of nn, we take Δ=Θ(loglognlogloglogn)\Delta=\Theta\left(\frac{\regularlog\regularlog n}{\regularlog\regularlog\regularlog n}\right), and we obtain the following.

Corollary 5.23 ([3]).

Any classical randomized algorithm that solves iterated GHZ with high probability requires Ω(loglognlogloglogn)\Omega\left(\frac{\regularlog\regularlog n}{\regularlog\regularlog\regularlog n}\right) rounds.

Upper bound for quantum algorithms.

In [3], the lower and upper bounds for the problem GHZ(Δ)\iterghz(\Delta) are proved in a setting in which the input instances are Δ\Delta-edge colored. In the construction described in this section, however, we would need to provide a different color to each port gadget belonging to the same octopus gadget. This would require ω(1)\omega(1) input labels, which is not allowed in a proper LCL.

Since the lower bound of [3] holds in a Δ\Delta-edge colored graph, this lower bound clearly holds in graphs that are not Δ\Delta-edge colored (having such a coloring can only make the problem potentially easier). However, for an upper bound, we need to adapt the algorithm of [3] to the case in which the edge coloring is not provided. Moreover, in order to use Lemma 5.20, we need an algorithm that works also in the case of parallel edges.

Lemma 5.24.

The iterated GHZ problem can be solved in O(1)O(1) rounds with a quantum algorithm, even if parallel edges are present.

Proof.

The algorithm works in two rounds of communications, which are described in the following two points.

  1. 1.

    Each white node ww does the following. Let bib_{i} be the ii-th neighbor of ww. Node ww sends ii to bib_{i}, for all 1idw1\leq i\leq d_{w}, where dwd_{w} is the degree of ww.

  2. 2.

    Each black node bb has now received three port numbers pv,pu,pzp_{v},p_{u},p_{z} from its three white neighbors v,u,zv,u,z. It then prepares three qubits qv,qu,qzq_{v},q_{u},q_{z} in the GHZ state, i.e.,

    |0qv|0qu|0qz12(|0qv|0qu|0qz+|1qv|1qu|1qz).\ket{0}_{q_{v}}\ket{0}_{q_{u}}\ket{0}_{q_{z}}\to\frac{1}{\sqrt{2}}\left(\ket{0}_{q_{v}}\ket{0}_{q_{u}}\ket{0}_{q_{z}}+\ket{1}_{q_{v}}\ket{1}_{q_{u}}\ket{1}_{q_{z}}\right).

    If pv=pu=pz=1p_{v}=p_{u}=p_{z}=1, then bb sends the pair (qv,0)(q_{v},0) to vv, the pair (qu,0)(q_{u},0) to uu, and the pair (qz,1)(q_{z},1) to zz. Otherwise, it just sends the qubit qvq_{v} to vv, the qubit quq_{u} to uu, and the qubit qzq_{z} to zz.

Now, all white nodes decide on their outputs without any further communication. First, all white nodes ww set x(w,1)=0x(w,1)=0. Now, observe that each white node ww has received a qubit qw,iq_{w,i} through its ii-th incident edge. Furthermore, some white nodes ww have received a pair (qw,1,jw)(q_{w,1},j_{w}), where qw,1q_{w,1} is a qubit and jw{0,1}j_{w}\in\{0,1\}: we call such nodes lucky. Each lucky white node ww sets y(w,1)=jwy(w,1)=j_{w} and x(w,2)=jwx(w,2)=j_{w} (if dw2d_{w}\geq 2). Now we describe what each white node ww outputs for the jj-th incident edge. If a node is lucky, it does the following for each j2j\geq 2 iteratively, while if a node is unlucky it does the following for each j1j\geq 1 iteratively. Each node ww measures the qubit qw,jq_{w,j} according to the well-known GHZ strategy (with input x(w,j)x(w,j)) that wins the game with probability 1 [14], and sets the output y(w,j)y(w,j) accordingly. Then, node ww sets x(w,j+1)=y(w,j)x(w,j+1)=y(w,j) (if j+1dwj+1\leq d_{w}).

We now argue about the correctness of the algorithm. White constraints are satisfied by construction of the algorithm. Suppose now that the constraints of some black node bb is not satisfied. This means that the three white neighbors v,u,zv,u,z of bb have some outputs (xv,yv),(xu,yu),(zu,yu)(x_{v},y_{v}),(x_{u},y_{u}),(z_{u},y_{u}) that do not satisfy the constraints of the problem. We have three cases: If the three port numbers pv,pu,pzp_{v},p_{u},p_{z} are such that pv=pu=pz=1p_{v}=p_{u}=p_{z}=1, then, by point 2, the white nodes are lucky and have set the outputs to be (0,0),(0,0),(0,1)(0,0),(0,0),(0,1), which is a valid solution. Suppose that at least a port number between pv,pu,pzp_{v},p_{u},p_{z} is different from 1. If xv+xu+xzx_{v}+x_{u}+x_{z} is odd, then any solution is valid. Suppose now that xv+xu+xzx_{v}+x_{u}+x_{z} is even. Then, the outputs of the white nodes are constructed by measuring the three entangled qubits qv,qu,qzq_{v},q_{u},q_{z} in the GHZ state prepared by bb. By the well-known GHZ winning strategy [14], the white nodes’ outputs are such that yvyuyz=xvxuxzy_{v}\oplus y_{u}\oplus y_{z}=x_{v}\lor x_{u}\lor x_{z}, which is a valid solution. ∎

The iterated GHZ problem as a linearizable problem.

We define a problem Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾=(Σ,(F,L,P),B)\Pi^{\mathsf{linearizable}}=(\Sigma,(F,L,P),B) that encodes iterated GHZ as a linearizable problem. On a high level, each label will encode a pair (x(v,i),y(v,i))(x(v,i),y(v,i)) of bits, and we will use special labels for the case in which i=1i=1. We define the set of possible first labels as F={(𝖿𝗂𝗋𝗌𝗍,y)y{0,1}}F=\{(\mathsf{first},y)\mid y\in\{0,1\}\}. Then, we define the set of possible output labels as Σ=F{(𝗈𝗍𝗁𝖾𝗋,x,y)x,y{0,1}}\Sigma=F\cup\{(\mathsf{other},x,y)\mid x,y\in\{0,1\}\}, and we define L=ΣL=\Sigma. The allowed pairs PP are defined as all the pairs satisfying the following.

  • All pairs ((𝖿𝗂𝗋𝗌𝗍,y1),(𝗈𝗍𝗁𝖾𝗋,x2,y2))((\mathsf{first},y_{1}),(\mathsf{other},x_{2},y_{2})) where y1=x2y_{1}=x_{2} and y1,x2,y2{0,1}y_{1},x_{2},y_{2}\in\{0,1\}.

  • All pairs ((𝗈𝗍𝗁𝖾𝗋,x1,y1),(𝗈𝗍𝗁𝖾𝗋,x2,y2))((\mathsf{other},x_{1},y_{1}),(\mathsf{other},x_{2},y_{2})) where y1=x2y_{1}=x_{2} and x1,y1,x2,y2{0,1}x_{1},y_{1},x_{2},y_{2}\in\{0,1\}.

Let {L1,L2,L3}\{L_{1},L_{2},L_{3}\} be a multiset containing three elements from Σ\Sigma. If Li=(𝖿𝗂𝗋𝗌𝗍,yi)L_{i}=(\mathsf{first},y_{i}) for some yi{0,1}y_{i}\in\{0,1\}, then let i=𝖿𝗂𝗋𝗌𝗍\ell_{i}=\mathsf{first} and let xi=0x_{i}=0. If Li=(𝗈𝗍𝗁𝖾𝗋,xi,yi)L_{i}=(\mathsf{other},x_{i},y_{i}) for some xi,yi{0,1}x_{i},y_{i}\in\{0,1\}, then let i=𝗈𝗍𝗁𝖾𝗋\ell_{i}=\mathsf{other}. Observe that now, for all 1i31\leq i\leq 3, i\ell_{i}, xix_{i} and yiy_{i} are defined. The set BB contains the multisets {L1,L2,L3}\{L_{1},L_{2},L_{3}\} satisfying the following.

  • All the multisets satisfying 1=2=3=𝖿𝗂𝗋𝗌𝗍\ell_{1}=\ell_{2}=\ell_{3}=\mathsf{first} such that the multiset {y1,y2,y3}\{y_{1},y_{2},y_{3}\} is equal to {0,0,1}\{0,0,1\}.

  • All the multisets where, if 𝗈𝗍𝗁𝖾𝗋{1,2,3}\mathsf{other}\in\{\ell_{1},\ell_{2},\ell_{3}\}, and x1+x2+x3x_{1}+x_{2}+x_{3} is even, then y1y2y3=x1x2x3y_{1}\oplus y_{2}\oplus y_{3}=x_{1}\lor x_{2}\lor x_{3}.

  • All the multisets where 𝗈𝗍𝗁𝖾𝗋{1,2,3}\mathsf{other}\in\{\ell_{1},\ell_{2},\ell_{3}\} and x1+x2+x3x_{1}+x_{2}+x_{3} is odd.

It is clear that Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}} and iterated GHZ are equivalent:

  • both problems require outputting two bits per edge;

  • the black constraint of iterated GHZ has the same requirements of the set BB on the pairs incident to a black node;

  • both the white constraint of iterated GHZ and the triple (F,L,P)(F,L,P) requires that the second bit of a port is the same as the first bit of the next one.

Putting things together.

By combining the problem Π𝗅𝗂𝗇𝖾𝖺𝗋𝗂𝗓𝖺𝖻𝗅𝖾\Pi^{\mathsf{linearizable}} obtained as a function of iterated GHZ with Corollaries 5.23, 5.24, 5.21 and 5.20, we obtain the following result.

Theorem 5.25.

There exists an LCL problem Π\Pi with quantum complexity O(logn)O(\regularlog n) and classical randomized complexity Ω(lognloglognlogloglogn)\Omega\left(\regularlog n\cdot\frac{\regularlog\regularlog n}{\regularlog\regularlog\regularlog n}\right).

Acknowledgements

This work was supported in part by the Research Council of Finland, Grants 359104 and 363558, by the MUR (Italy) Department of Excellence 2023–2027 for GSSI. Francesco d’Amore is supported by the project Decreto MUR n. 47/2025, CUP: D13C25000750001. This project was initiated at the Research Workshop on Distributed Algorithms (RW-DIST 2025) in Freiburg, Germany; we would like to thank all workshop participants and organizers for inspiring discussions. We would also like to thank Sebastian Brandt, Xavier Coiteux-Roy, François Le Gall, Augusto Modanese, Marc-Olivier Renou, Ronja Stimpert, Lucas Tendick, and Isadora Veeren for discussions that led to this project.

References

  • [1] A. Akbari, X. Coiteux-Roy, F. d’Amore, F. L. Gall, H. Lievonen, D. Melnyk, A. Modanese, S. Pai, M. Renou, V. Rozhoň, and J. Suomela (2025) Online locality meets distributed quantum computing. In Proc. 57th ACM Symposium on Theory of Computing (STOC 2025), External Links: Link Cited by: item 1, §A.1, §A.1, §A.2, §A.2, §A.2, Remark A.3, §1.2, §1.2, §1.6, §1.6, §1.6, §4.
  • [2] A. Akbari, N. Eslami, H. Lievonen, D. Melnyk, J. Särkijärvi, and J. Suomela (2023) Locality in online, dynamic, sequential, and distributed graph algorithms. In 50th International Colloquium on Automata, Languages, and Programming, ICALP 2023, July 10-14, 2023, Paderborn, Germany, K. Etessami, U. Feige, and G. Puppis (Eds.), LIPIcs, Vol. 261, pp. 10:1–10:20. External Links: Document Cited by: §A.1, §A.2, Remark A.4, §1.6.
  • [3] A. Balliu, S. Brandt, X. Coiteux-Roy, F. d’Amore, M. Equi, F. L. Gall, H. Lievonen, A. Modanese, D. Olivetti, M. Renou, J. Suomela, L. Tendick, and I. Veeren (2025) Distributed quantum advantage for local problems. In Proc. 57th ACM Symposium on Theory of Computing (STOC 2025), External Links: Link Cited by: §1.2, §1.2, §1.5, §1.5, §5.8, §5.8, §5.8, §5.8, §5.8, Theorem 5.22, Corollary 5.23.
  • [4] A. Balliu, S. Brandt, D. Olivetti, and J. Suomela (2020) How much does randomness help with locally checkable problems?. In PODC ’20: ACM Symposium on Principles of Distributed Computing, Virtual Event, Italy, August 3-7, 2020, Y. Emek and C. Cachin (Eds.), pp. 299–308. External Links: Document Cited by: §1.2, §1.5, §1.5, §3.1, §5.1, Definition 5.1, Lemma 5.2, Lemma 5.3.
  • [5] A. Balliu, S. Brandt, D. Olivetti, and J. Suomela (2021) Almost global problems in the LOCAL model. Distributed Computing 34 (4), pp. 259–281. External Links: Document Cited by: §1.2.
  • [6] A. Balliu, F. Casagrande, F. d’Amore, M. Equi, B. Keller, H. Lievonen, D. Olivetti, G. Schmid, and J. Suomela (2026) Distributed quantum advantage in locally checkable labeling problems. In Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pp. 1268–1308. External Links: Document, Link, https://epubs.siam.org/doi/pdf/10.1137/1.9781611978971.49 Cited by: footnote 1.
  • [7] A. Balliu, K. Censor-Hillel, Y. Maus, D. Olivetti, and J. Suomela (2021) Locally checkable labelings with small messages. In 35th International Symposium on Distributed Computing, DISC 2021, October 4-8, 2021, Freiburg, Germany (Virtual Conference), S. Gilbert (Ed.), LIPIcs, Vol. 209, pp. 8:1–8:18. External Links: Document Cited by: §3.1, §5.1, §5.1, §5.1.
  • [8] A. Balliu, C. Coupette, A. Cruciani, F. d’Amore, M. Equi, H. Lievonen, A. Modanese, D. Olivetti, and J. Suomela (2025) New limits on distributed quantum advantage: dequantizing linear programs. In 39th International Symposium on Distributed Computing, DISC 2025, October 27-31, 2025, Berlin, Germany, D. Kowalski (Ed.), LIPIcs, Vol. 356. Cited by: §1.2.
  • [9] A. Balliu, M. Ghaffari, F. Kuhn, A. Modanese, D. Olivetti, M. Rabie, J. Suomela, and J. Uitto (2025) Shared randomness helps with local distributed problems. In 52nd International Colloquium on Automata, Languages, and Programming, ICALP 2025, Aarhus, Denmark, July 8-11, 2025, K. Censor-Hillel, F. Grandoni, J. Ouaknine, and G. Puppis (Eds.), LIPIcs, Vol. 334, pp. 16:1–16:18. External Links: Link, Document Cited by: §3.1, §5.1, §5.1, Lemma 5.4.
  • [10] A. Balliu, J. Hirvonen, J. H. Korhonen, T. Lempiäinen, D. Olivetti, and J. Suomela (2018) New classes of distributed time complexity. In Proceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2018, Los Angeles, CA, USA, June 25-29, 2018, I. Diakonikolas, D. Kempe, and M. Henzinger (Eds.), pp. 1307–1318. External Links: Document Cited by: §1.2.
  • [11] S. Brandt, O. Fischer, J. Hirvonen, B. Keller, T. Lempiäinen, J. Rybicki, J. Suomela, and J. Uitto (2016) 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, Cambridge, MA, USA, June 18-21, 2016, D. Wichs and Y. Mansour (Eds.), pp. 479–488. External Links: Document Cited by: §1.2.
  • [12] S. Brandt, J. Hirvonen, J. H. Korhonen, T. Lempiäinen, P. R. J. Östergård, C. Purcell, J. Rybicki, J. Suomela, and P. Uznanski (2017) LCL problems on grids. In Proceedings of the ACM Symposium on Principles of Distributed Computing, PODC 2017, Washington, DC, USA, July 25-27, 2017, E. M. Schiller and A. A. Schwarzmann (Eds.), pp. 101–110. External Links: Document Cited by: §1.6.
  • [13] S. Brandt (2019) An automatic speedup theorem for distributed problems. In Proceedings of the 2019 ACM Symposium on Principles of Distributed Computing, PODC 2019, Toronto, ON, Canada, July 29 - August 2, 2019, P. Robinson and F. Ellen (Eds.), pp. 379–388. External Links: Document Cited by: §1.5.
  • [14] G. Brassard, A. Broadbent, and A. Tapp (2005) Quantum Pseudo-Telepathy. Foundations of Physics 35 (11), pp. 1877–1907. External Links: Document Cited by: §5.8, §5.8.
  • [15] Y. Chang, T. Kopelowitz, and S. Pettie (2019) An exponential separation between randomized and deterministic complexity in the LOCAL model. SIAM Journal on Computing 48 (1), pp. 122–143. External Links: Document Cited by: §1.2.
  • [16] Y. Chang, G. Mishra, H. T. Nguyen, M. Yang, and Y. Yeh (2023) A tight lower bound for 3-coloring grids in the online-LOCAL model. CoRR abs/2312.01384. External Links: Document, 2312.01384 Cited by: §1.6.
  • [17] Y. Chang and S. Pettie (2019) A time hierarchy theorem for the LOCAL model. SIAM Journal on Computing 48 (1), pp. 33–69. External Links: Document Cited by: §1.2.
  • [18] X. Coiteux-Roy, F. D’Amore, R. Gajjala, F. Kuhn, F. Le Gall, H. Lievonen, A. Modanese, M. Renou, G. Schmid, and J. Suomela (2024) No distributed quantum advantage for approximate graph coloring. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing, STOC 2024, Vancouver, BC, Canada, June 24-28, 2024, B. Mohar, I. Shinkar, and R. O’Donnell (Eds.), pp. 1901–1910. External Links: Document Cited by: §1.2, §1.2, §1.6, §1.6, §4.1.
  • [19] S. Dahal, F. D’Amore, H. Lievonen, T. Picavet, and J. Suomela (2023) Brief announcement: distributed derandomization revisited. In 37th International Symposium on Distributed Computing, DISC 2023, October 10-12, 2023, L’Aquila, Italy, R. Oshman (Ed.), LIPIcs, Vol. 281, pp. 40:1–40:5. External Links: Document Cited by: §1.2.
  • [20] A. Dhar, E. Kujawa, H. Lievonen, A. Modanese, M. Muftuoglu, J. Studený, and J. Suomela (2024) Local problems in trees across a wide range of distributed models. In 28th International Conference on Principles of Distributed Systems, OPODIS 2024, December 11-13, 2024, Lucca, Italy, S. Bonomi, L. Galletta, E. Rivière, and V. Schiavoni (Eds.), LIPIcs, Vol. 324, pp. 27:1–27:17. External Links: Document Cited by: §1.2, §1.6.
  • [21] F. d’Amore (2025) On the limits of distributed quantum computing. Bulletin of the EATCS 145, pp. 51–91. External Links: Link Cited by: §A.1.
  • [22] G. M. D’Ariano, G. Chiribella, and P. Perinotti (2016) Quantum theory from first principles: an informational approach. Cambridge University Press. External Links: Document Cited by: §4.
  • [23] C. Gavoille, A. Kosowski, and M. Markiewicz (2009) What can be observed locally?. In Distributed Computing, 23rd International Symposium, DISC 2009, Elche, Spain, September 23-25, 2009. Proceedings, I. Keidar (Ed.), Lecture Notes in Computer Science, Vol. 5805, pp. 243–257. External Links: Document Cited by: §2.
  • [24] M. Ghaffari, C. Grunau, B. Haeupler, S. Ilchi, and V. Rozhon (2023) Improved distributed network decomposition, hitting sets, and spanners, via derandomization. In Proceedings of the 2023 ACM-SIAM Symposium on Discrete Algorithms, SODA 2023, Florence, Italy, January 22-25, 2023, N. Bansal and V. Nagarajan (Eds.), pp. 2532–2566. External Links: Document Cited by: §4.1.
  • [25] M. Ghaffari, D. G. Harris, and F. Kuhn (2018) On derandomizing local distributed algorithms. In 59th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2018, Paris, France, October 7-9, 2018, M. Thorup (Ed.), pp. 662–673. External Links: Document Cited by: §4.1.
  • [26] M. Ghaffari, F. Kuhn, and Y. Maus (2017) On the complexity of local distributed graph problems. In Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2017, Montreal, QC, Canada, June 19-23, 2017, H. Hatami, P. McKenzie, and V. King (Eds.), pp. 784–797. External Links: Document Cited by: §A.1, §1.5.
  • [27] D. M. Greenberger, M. A. Horne, and A. Zeilinger (1989) Going beyond Bell’s theorem. In Bell’s Theorem, Quantum Theory and Conceptions of the Universe, pp. 69–72. External Links: Document Cited by: §1.5.
  • [28] A. E. Holroyd, T. Hutchcroft, and A. Levy (2018) Finitely dependent cycle coloring. Electronic Communications in Probability 23. External Links: Document Cited by: §1.6.
  • [29] A. E. Holroyd and T. M. Liggett (2016) Finitely Dependent Coloring. Forum of Mathematics, Pi 4. External Links: Document Cited by: §1.6.
  • [30] A. E. Holroyd (2024) Symmetrization for finitely dependent colouring. Electronic Communications in Probability 29. External Links: Document Cited by: §1.6.
  • [31] F. Le Gall, H. Nishimura, and A. Rosmanis (2019) Quantum advantage for the LOCAL model in distributed computing. In 36th International Symposium on Theoretical Aspects of Computer Science, STACS 2019, March 13-16, 2019, Berlin, Germany, R. Niedermeier and C. Paul (Eds.), LIPIcs, Vol. 126, pp. 49:1–49:14. External Links: Document Cited by: §1.1, §1.4, §1.6.
  • [32] N. D. Mermin (1990) Quantum mysteries revisited. American Journal of Physics 58 (8), pp. 731–734. External Links: Document Cited by: §1.5.
  • [33] M. Naor and L. J. Stockmeyer (1995) What can be computed locally?. SIAM Journal on Computing 24 (6), pp. 1259–1277. External Links: Document Cited by: §1.2, §1.5, §1.5.
  • [34] J. Suomela (2020) Landscape of locality (invited talk). In 17th Scandinavian Symposium and Workshops on Algorithm Theory, SWAT 2020, June 22-24, 2020, Tórshavn, Faroe Islands, S. Albers (Ed.), LIPIcs, Vol. 162, pp. 2:1–2:1. External Links: Document Cited by: §1.2.
  • [35] J. Suomela (2024) Open problems related to locality in distributed graph algorithms. External Links: Link Cited by: §1.2.

Appendix A Simulation of component-wise online-LOCAL in LOCAL

In this section, we extend the result of Section 4 to hold also for the component-wise randomized online-LOCAL model. We start by briefly discussing the state of the art and motivating the study of yet another variant of the LOCAL model. We then define formally what we mean by component-wise randomized online-LOCAL. Finally, we extend the proofs of Section 4 to hold also in this new model.

A.1 Motivation

Informally, component-wise randomized online-LOCAL is just like the component-wise deterministic online-LOCAL model (see [1, 21]), but generalized for the randomized case. In particular, a deterministic component-wise online-LOCAL algorithm is also a randomized one.

The component-wise deterministic online-LOCAL model was originally introduced because it allows simulation of randomized online-LOCAL in weaker models like SLOCAL in rooted trees and forests [1]. In particular, randomized online-LOCAL captures the power of non-signaling distributions [1], SLOCAL [26] and dynamic-LOCAL [2]. Hence, proving lower bounds for randomized online-LOCAL allows us to provide strong lower bounds that span across a wide variety of models.

One way to prove these lower bounds is by providing a simulation of stronger models in weaker ones. One such model is the component-wise randomized online-LOCAL, which is stronger than both the deterministic component-wise online-LOCAL and the bounded-dependence model.

Extending the simulation result of Section 4 to component-wise randomized online-LOCAL model improves the state of the art in two major ways:

  1. 1.

    So far the only result known for component-wise deterministic online-LOCAL is the simulation result of [1] in rooted trees and forests. Our result works in all graphs, albeit with a worse locality.

  2. 2.

    We provide a direct reduction from the bounded-dependence model to the component-wise randomized online-LOCAL. Previously, the reduction had to go through the non-signaling model, randomized online-LOCAL and component-wise deterministic online-LOCAL. This round-trip through randomized online-LOCAL incurs a doubly exponential cost in the locality. For localities in the Ω(loglogn)\Omega(\regularlog\regularlog n) region, our result is asymptotically tighter.

A.2 Definitions

We now formally define what we mean by component-wise randomized online-LOCAL. To do this, we first define the notion of partial online-LOCAL run of length \ell, as introduced by [1]:

Definition A.1 (Partial online-LOCAL run of length \ell).

Let GG be a graph with an order of nodes v1,v2,,vnv_{1},v_{2},\ldots,v_{n}, and let x\mathrm{x} encode the input data on each vertex. Consider the subgraph GGG_{\ell}\subseteq G induced by the radius-TT neighborhoods of the first \ell nodes v1,,vv_{1},\ldots,v_{\ell}, i.e., G=G̊[𝒩T[{v1,,v}]]G_{\ell}=\mathring{G}[\mathcal{N}_{T}[\{v_{1},\ldots,v_{\ell}\}]]. We call (G,(v1,,v),x𝒩T[{v1,,v}])(G_{\ell},(v_{1},\ldots,v_{\ell}),\mathrm{x}\restriction_{\mathcal{N}_{T}[\{v_{1},\ldots,v_{\ell}\}]}) the partial TT-rounds online-LOCAL run of length \ell of GG.

We denote by (G,(v1,,v),x𝒩T[{v1,,v}])[v]({G}_{\ell},(v_{1},\ldots,v_{\ell}),\mathrm{x}\restriction_{\mathcal{N}_{T}[\{v_{1},\ldots,v_{\ell}\}]})[v_{\ell}] the tuple (G¯,(w1,,wk),x𝒩T[{w1,,wk}])(\bar{G}_{\ell},(w_{1},\ldots,w_{k}),\mathrm{x}\restriction_{\mathcal{N}_{T}[\{w_{1},\ldots,w_{k}\}]}) where G¯G\bar{G}_{\ell}\subseteq G_{\ell} is the connected component containing vv_{\ell}, (w1,,wk)(w_{1},\ldots,w_{k}) is the maximal subsequence of (v1,,v)(v_{1},\ldots,v_{\ell}) of nodes that belong to G¯\bar{G}_{\ell}, and x𝒩T[{w1,,wk}]\mathrm{x}\restriction_{\mathcal{N}_{T}[\{w_{1},\ldots,w_{k}\}]} is the restriction of the local inputs to this component. In such case, kk is the length of (G,(v1,,v),x𝒩T[{v1,,v}])[v]({G}_{\ell},(v_{1},\ldots,v_{\ell}),\mathrm{x}\restriction_{\mathcal{N}_{T}[\{v_{1},\ldots,v_{\ell}\}]})[v_{\ell}]. Notice that wk=vw_{k}=v_{\ell}.

Now we are ready to introduce the online-LOCAL model. We loosely follow the definitions given in by [1].

The online-LOCAL model.

The deterministic online-LOCAL model was first introduced in [2]. It is a centralized model of computing where the algorithm initially knows only the number of nodes nn of the input graph GG. The nodes are processed with respect to an adversarial input ordering sequence σ=v1,v2,,vn\sigma=v_{1},v_{2},\dots,v_{n}. Like in the LOCAL model, each node vv has some local state variable x(v)\mathrm{x}(v) which encodes input data. In an algorithm with locality TT, the output of node viv_{i} depends on the partial TT-rounds online-LOCAL run of length ii of GG, that is, (Gi,(v1,,vi),x𝒩T[{v1,,vi}])(G_{i},(v_{1},\dots,v_{i}),\mathrm{x}\restriction_{\mathcal{N}_{T}[\{v_{1},\dots,v_{i}\}]}) (see Definition A.1). In the randomized online-LOCAL model [1], every node has access to a private infinite random bit string, which is independent of the random bit strings of other nodes. Trivially, thanks to global memory, node viv_{i} knows the random bit strings of 𝒩T[{v1,,vi}]\mathcal{N}_{T}[\{v_{1},\dots,v_{i}\}]. In the randomized case, the solution to a problem should be correct with probability at least 11/poly(n)1-1/\poly(n).

We now give a formal definition of the component-wise online-LOCAL model.

The component-wise online-LOCAL model.

The component-wise online-LOCAL model is similar to the online-LOCAL model above, but with some further restrictions. More specifically, let (G,(v1,,vn),xG)(G,(v_{1},\dots,v_{n}),\mathrm{x}_{G}) and (H,(u1,,un),xH)(H,(u_{1},\dots,u_{n}),\mathrm{x}_{H}) be two nn-node input instances. Let i,j[n]i,j\in[n] be two indices such that

(Gi,(v1,,vi),xG𝒩T[{v1,,vi}])[vi]\displaystyle(G_{i},(v_{1},\ldots,v_{i}),\mathrm{x}_{G}\restriction_{\mathcal{N}_{T}[\{v_{1},\ldots,v_{i}\}]})[v_{i}] =(G¯i,(v1,,vk),xG𝒩T[{v1,,vk}]) and\displaystyle=(\bar{G}_{i},(v_{1}^{\prime},\ldots,v_{k}^{\prime}),\mathrm{x}_{G}\restriction_{\mathcal{N}_{T}[\{v_{1}^{\prime},\ldots,v_{k}^{\prime}\}]})\quad\text{ and}
(Hj,(u1,,uj),xH𝒩T[{u1,,uj}])[uj]\displaystyle(H_{j},(u_{1},\ldots,u_{j}),\mathrm{x}_{H}\restriction_{\mathcal{N}_{T}[\{u_{1},\ldots,u_{j}\}]})[u_{j}] =(H¯j,(u1,,uk),xH𝒩T[{u1,,uk}])\displaystyle=(\bar{H}_{j},(u_{1}^{\prime},\ldots,u_{k}^{\prime}),\mathrm{x}_{H}\restriction_{\mathcal{N}_{T}[\{u_{1}^{\prime},\ldots,u_{k}^{\prime}\}]})

are isomorphic with the following properties: the isomorphism preserves the order, i.e., it brings vhv_{h}^{\prime} to uhu_{h}^{\prime} for every h[n]h\in[n], and the isomorphism also preserves the inputs xG\mathrm{x}_{G} and xH\mathrm{x}_{H} in these neighborhoods. Then, the algorithm must produce the same output for viv_{i} and uju_{j}.

In the randomized component-wise online-LOCAL model, each node is given access to a private infinite random bit string, which is independent of the random bit strings of other nodes. When the algorithm needs to output a label for node viv_{i}, it can only use the random bit strings of nodes in Gi¯\bar{G_{i}}. Again, in the randomized model a solution to a problem must be correct with probability at least 11/poly(n)1-1/\poly(n).

To see why this matches the intuition of an algorithm being component-wise, imagine that GiG_{i} is the real input and that HjH_{j} consists of only a single component, that is

(Hj,(u1,,uj),xH𝒩T[{u1,,uj}])[uj]=(Hj,(u1,,uj),xH𝒩T[{u1,,uj}]).(H_{j},(u_{1},\ldots,u_{j}),\mathrm{x}_{H}\restriction_{\mathcal{N}_{T}[\{u_{1},\ldots,u_{j}\}]})[u_{j}]=(H_{j},(u_{1},\ldots,u_{j}),\mathrm{x}_{H}\restriction_{\mathcal{N}_{T}[\{u_{1},\ldots,u_{j}\}]}).

By the above definition, the algorithm must produce the same output for GiG_{i} and HjH_{j}. Then, effectively what the algorithm does on GiG_{i} must depend only on what the algorithm has seen in HjH_{j}, that is only the current component.

A.3 Simulation of component-wise randomized online-LOCAL in randomized LOCAL

It is intuitive that a bounded-dependence outcome implies the existence of a component-wise online-LOCAL algorithm with the same locality: we formalize this intuition through the following lemma.

Lemma A.2.

Let Π\Pi be any labeling problem with output node label set Σ\Sigma, and let O\mathrm{O} be a bounded-dependent outcome solving Π\Pi with probability p>0p>0 and locality T(n)T(n) on graphs of nn nodes. Then there exists a component-wise randomized online-LOCAL algorithm solving Π\Pi with probability pp with the same locality T(n)T(n).

Proof.

Consider any graph GG of nn nodes, and any adversarial processing order of the nodes (v1,,vn)(v_{1},\ldots,v_{n}). We now construct a randomized component-wise online-LOCAL algorithm 𝒜\mathcal{A} with the desired properties. When the adversary reveals v1v_{1} and (G1,(v1),x𝒩T[v1])(G_{1},(v_{1}),\mathrm{x}\restriction_{\mathcal{N}_{T}[v_{1}]}) to 𝒜\mathcal{A}, 𝒜\mathcal{A} just samples an output out(v1)=λv1\oupt(v_{1})=\lambda_{v_{1}} for v1v_{1} from O(G,x)[{v1}]\mathrm{O}(G,\mathrm{x})[\{v_{1}\}]. Now, when the adversary reveals viv_{i} and (Gi,(v1,,vi),x𝒩T[{v1,,vi}])[vi]=(G¯i,(v1,,vk),x𝒩T[{v1,,vk}])(G_{i},(v_{1},\ldots,v_{i}),\mathrm{x}\restriction_{\mathcal{N}_{T}[\{v_{1},\ldots,v_{i}\}]})[v_{i}]=(\bar{G}_{i},(v_{1}^{\prime},\ldots,v_{k}^{\prime}),\mathrm{x}\restriction_{\mathcal{N}_{T}[\{v_{1}^{\prime},\ldots,v_{k}^{\prime}\}]}) to 𝒜\mathcal{A}, it samples an output out(vi)\oupt(v_{i}) for viv_{i} from the distribution O(G,x)[𝒩T[{v1,,vk}]]\mathrm{O}(G,\mathrm{x})[\mathcal{N}_{T}[\{v_{1}^{\prime},\ldots,v_{k}^{\prime}\}]] conditional on the fact that the outputs of v1,,vk1v_{1}^{\prime},\ldots,v_{k-1}^{\prime} have already been sampled and are equal to out(v1)=λv1,,out(vk1)=λvk1\oupt(v_{1}^{\prime})=\lambda_{v_{1}^{\prime}},\ldots,\oupt(v_{k-1}^{\prime})=\lambda_{v_{k-1}^{\prime}}. Let 𝒫𝒜\mathcal{P}_{\mathcal{A}} denote the probability measure induced by the algorithm 𝒜\mathcal{A} on the outputs of the nodes, and let 𝒫O\mathcal{P}_{\mathrm{O}} denote the probability measure induced by the bounded-dependence outcome O\mathrm{O} on the outputs of the nodes. Fix any k[n]k\in[n], and suppose

(Gk,(v1,,vk),x𝒩T[{v1,,vk}])[vk]=(G¯k,(w1,,wh),x𝒩T[{w1,,wh}]),(G_{k},(v_{1},\ldots,v_{k}),\mathrm{x}\restriction_{\mathcal{N}_{T}[\{v_{1},\ldots,v_{k}\}]})[v_{k}]=(\bar{G}_{k},(w_{1},\ldots,w_{h}),\mathrm{x}\restriction_{\mathcal{N}_{T}[\{w_{1},\ldots,w_{h}\}]}),

with wh=vkw_{h}=v_{k}. We first show that, for all (λw1,,λwh)Σh(\lambda_{w_{1}},\ldots,\lambda_{w_{h}})\in\Sigma^{h}, we have that

𝒫𝒜(i=1h{out(wi)=λwi})=𝒫O(i=1h{out(wi)=λwi}).\mathcal{P}_{\mathcal{A}}(\cap_{i=1}^{h}\{\oupt(w_{i})=\lambda_{w_{i}}\})=\mathcal{P}_{\mathrm{O}}(\cap_{i=1}^{h}\{\oupt(w_{i})=\lambda_{w_{i}}\}).

Let us start by induction on hh. The base case is h=1h=1. Since w1w_{1} is the only node in G1¯\bar{G_{1}}, then it means that there are no nodes in the radius-(2T)(2T) neighborhood of w1w_{1} which have been previously labeled (otherwise the partial online-LOCAL run would contain them). By construction of 𝒜\mathcal{A} we are freely sampling from O(G,x)[𝒩T[w1]]\mathrm{O}(G,\mathrm{x})[\mathcal{N}_{T}[w_{1}]] and the thesis is trivial. Suppose now h>1h>1. We have that

𝒫𝒜(i=1h{out(wi)=λwi})\displaystyle\mathcal{P}_{\mathcal{A}}(\cap_{i=1}^{h}\{\oupt(w_{i})=\lambda_{w_{i}}\})
=\displaystyle=\ 𝒫𝒜(out(wh)=λvh|i=1h1{wi=λwi})𝒫𝒜(i=1h1{wi=λwi}).\displaystyle\mathcal{P}_{\mathcal{A}}\left(\oupt(w_{h})=\lambda_{v_{h}}\ \middle|\ \cap_{i=1}^{h-1}\{w_{i}=\lambda_{w_{i}}\}\right)\mathcal{P}_{\mathcal{A}}(\cap_{i=1}^{h-1}\{w_{i}=\lambda_{w_{i}}\}).

By the inductive hypothesis, 𝒫𝒜(i=1h1{wi=λwi})=𝒫O(i=1h1{wi=λwi})\mathcal{P}_{\mathcal{A}}(\cap_{i=1}^{h-1}\{w_{i}=\lambda_{w_{i}}\})=\mathcal{P}_{\mathrm{O}}(\cap_{i=1}^{h-1}\{w_{i}=\lambda_{w_{i}}\}) and, by construction of 𝒜\mathcal{A}, 𝒫𝒜(out(wh)=λvh|i=1h1{wi=λwi})=𝒫O(out(wh)=λvh|i=1h1{wi=λwi})\mathcal{P}_{\mathcal{A}}\left(\oupt(w_{h})=\lambda_{v_{h}}\ \middle|\ \cap_{i=1}^{h-1}\{w_{i}=\lambda_{w_{i}}\}\right)=\mathcal{P}_{\mathrm{O}}\left(\oupt(w_{h})=\lambda_{v_{h}}\ \middle|\ \cap_{i=1}^{h-1}\{w_{i}=\lambda_{w_{i}}\}\right). Hence,

𝒫𝒜(i=1h{out(wi)=λwi})\displaystyle\mathcal{P}_{\mathcal{A}}(\cap_{i=1}^{h}\{\oupt(w_{i})=\lambda_{w_{i}}\})
=\displaystyle=\ 𝒫𝒜(out(wh)=λvh|i=1h1{wi=λwi})𝒫𝒜(i=1h1{wi=λwi})\displaystyle\mathcal{P}_{\mathcal{A}}\left(\oupt(w_{h})=\lambda_{v_{h}}\ \middle|\ \cap_{i=1}^{h-1}\{w_{i}=\lambda_{w_{i}}\}\right)\mathcal{P}_{\mathcal{A}}(\cap_{i=1}^{h-1}\{w_{i}=\lambda_{w_{i}}\})
=\displaystyle=\ 𝒫O(out(wh)=λvh|i=1h1{wi=λwi})𝒫O(i=1h1{wi=λwi})\displaystyle\mathcal{P}_{\mathrm{O}}\left(\oupt(w_{h})=\lambda_{v_{h}}\ \middle|\ \cap_{i=1}^{h-1}\{w_{i}=\lambda_{w_{i}}\}\right)\mathcal{P}_{\mathrm{O}}(\cap_{i=1}^{h-1}\{w_{i}=\lambda_{w_{i}}\})
=\displaystyle=\ 𝒫O(i=1h{out(wi)=λwi}),\displaystyle\mathcal{P}_{\mathrm{O}}(\cap_{i=1}^{h}\{\oupt(w_{i})=\lambda_{w_{i}}\}),

and the induction is complete. Let SV(G)S\subseteq V(G) with S={vj1,,vjh}S=\{v_{j_{1}},\ldots,v_{j_{h}}\} where j1,,jhj_{1},\ldots,j_{h} are induced by the ordering v1,,vnv_{1},\ldots,v_{n}. The above argument implies that, for all (λvj1,,λvjh)Σh(\lambda_{v_{j_{1}}},\ldots,\lambda_{v_{j_{h}}})\in\Sigma^{h} it holds that

𝒫𝒜(i=1h{out(vji)=λvji})=𝒫O(i=1h{out(vji)=λvji}).\mathcal{P}_{\mathcal{A}}(\cap_{i=1}^{h}\{\oupt(v_{j_{i}})=\lambda_{v_{j_{i}}}\})=\mathcal{P}_{\mathrm{O}}(\cap_{i=1}^{h}\{\oupt(v_{j_{i}})=\lambda_{v_{j_{i}}}\}).

In fact, consider the partial online-LOCAL runs {(Gji,(v1,,vji),x𝒩T[{v1,,vji}])[vji]}i[h]\{(G_{j_{i}},(v_{1},\ldots,v_{j_{i}}),\mathrm{x}\restriction_{\mathcal{N}_{T}[\{v_{1},\ldots,v_{j_{i}}\}]})[v_{j_{i}}]\}_{i\in[h]}. Consider the maximal subsequence of partial online-LOCAL runs {(Gjik,(v1,,vjik),x𝒩T[{v1,,vjik}])[vjik]}ik[h]\{(G_{j_{i_{k}}},(v_{1},\ldots,v_{j_{i_{k}}}),\mathrm{x}\restriction_{\mathcal{N}_{T}[\{v_{1},\ldots,v_{j_{i_{k}}}\}]})[v_{j_{i_{k}}}]\}_{i_{k}\in[h^{\star}]} such that GjikG_{j_{i_{k}}} has no intersection with GjiG_{j_{i}} for all i>iki>i_{k}, i[h]i\in[h]. We have two properties: First, it trivially holds that k=1hGjik=i=1hGji\cup_{k=1}^{h^{\star}}G_{j_{i_{k}}}=\cup_{i=1}^{h}G_{j_{i}}. As for the second property, for any two kk[h]k\neq k^{\prime}\in[h^{\star}], let

(G¯jik,(w1,,ws),x𝒩T[{w1,,ws}])=(Gjik,(v1,,vjik),x𝒩T[{v1,,vjik}])[vjik](\bar{G}_{j_{i_{k}}},(w_{1},\ldots,w_{s}),\mathrm{x}\restriction_{\mathcal{N}_{T}[\{w_{1},\ldots,w_{s}\}]})=(G_{j_{i_{k}}},(v_{1},\ldots,v_{j_{i_{k}}}),\mathrm{x}\restriction_{\mathcal{N}_{T}[\{v_{1},\ldots,v_{j_{i_{k}}}\}]})[v_{j_{i_{k}}}]

and

(G¯jik,(w1,,ws),x𝒩T[{w1,,ws}])=(Gjik,(v1,,vjik),x𝒩T[{v1,,vjik}])[vjik].(\bar{G}_{j_{i_{k^{\prime}}}},(w_{1}^{\prime},\ldots,w^{\prime}_{s^{\prime}}),\mathrm{x}\restriction_{\mathcal{N}_{T}[\{w_{1}^{\prime},\ldots,w_{s^{\prime}}^{\prime}\}]})=(G_{j_{i_{k^{\prime}}}},(v_{1},\ldots,v_{j_{i_{k^{\prime}}}}),\mathrm{x}\restriction_{\mathcal{N}_{T}[\{v_{1},\ldots,v_{j_{i_{k^{\prime}}}}\}]})[v_{j_{i_{k^{\prime}}}}].

Then, distG({w1,,wS},{w1,,ws})>2T\dist_{G}(\{w_{1},\ldots,w_{S}\},\{w^{\prime}_{1},\ldots,w^{\prime}_{s^{\prime}}\})>2T. Hence, we can treat the two partial online-LOCAL runs as independent, and we can apply the inductive hypothesis separately to each of them to conclude the proof and get that the overall success probability is at least pp. ∎

Remark A.3.

The non-signaling model (see [1] for a definition) cannot be simulated in the component-wise online-LOCAL model because non-signaling can make use of globally shared resources, such as shared randomness, while component-wise online-LOCAL cannot.

Remark A.4.

Theorem 4.5 is almost-tight for the randomized component-wise online-LOCAL model. This is because [2] provides a deterministic O(logn)O(\regularlog n)-round component-wise online-LOCAL algorithm for 33-coloring bipartite graphs, and Theorem 4.5 would give a O~(n)\tilde{O}(\sqrt{n})-round deterministic LOCAL algorithm for the same problem. However, we know that Ω(n){\Omega}(\sqrt{n}) is a lower bound for the problem in the LOCAL model, as well as in the bounded-dependence model (and even in the non-signaling model).