Generalized Bell Scenarios: Disturbing Consequences on Local-Hidden-Variable Models

Bell nonlocality and Kochen–Specker contextuality are among the main topics in the foundations of quantum theory. Both of them are related to stronger-than-classical correlations, with the former usually referring to spatially separated systems, while the latter considers a single system. In recent works, a unified framework for these phenomena was presented. This article reviews, expands, and obtains new results regarding this framework. Contextual and disturbing features inside the local models are explored, which allows for the definition of different local sets with a non-trivial relation among them. The relations between the set of quantum correlations and these local sets are also considered, and post-quantum local behaviours are found. Moreover, examples of correlations that are both local and non-contextual but such that these two classical features cannot be expressed by the same hidden variable model are shown. Extensions of the Fine–Abramsky–Brandenburger theorem are also discussed.


Introduction
Quantum theory is arguably the most successful scientific theory ever developed, due to its remarkable predictions in a wide range of phenomena.Nevertheless, many of its features are counter-intuitive and still demand a better understanding.Among these features, two nonclassical phenomena that are particularly interesting are Bell nonlocality [1] and Kochen-Specker (KS) contextuality [2].
Both Bell nonlocality and KS contextuality are concerned with the possibility of explaining the results of quantum theory by means of hidden variable models, in an effort to retrieve more intuitive descriptions of the observed results.The main difference between such concepts is the fact that the former is related to experiments involving two or more spatially separated systems, while the latter bypasses such demand, at the expense of demanding a priori compatibility relations between sets of measurements.In seminal works [3,4], it was shown that, for both phenomena, the predictions of quantum mechanics cannot be explained by such classical-like mechanisms, a fact that has been experimentally verified in several works [5][6][7][8][9][10][11][12][13].
Despite the similar motivations, the studies on Bell nonlocality and KS contextuality were developed through independent paths.In recent years, however, there were different research programs that proposed unified theoretical frameworks for both phenomena arXiv:2307.16058v1[quant-ph] 29 Jul 2023 [15][16][17][18].Among such proposals, the one in ref. [19] deals with extensions of Bell scenarios that include the possibility of compatible measurements within each laboratory, allowing the investigation of Bell nonlocality and KS contextuality in well-defined experimental scenarios.In the same work, it was shown that this approach leads to new types of Bell inequalities, which were useful to witness the nonlocality of quantum states that could not be detected by standard Bell tests.Moreover, in ref. [20], the same framework was applied to show that Bell nonlocality and KS contextuality could be concomitantly observed in the same experiment, thus proving that there is no monogamic relation between such concepts.
In this manuscript, we expand the ideas introduced in ref. [19] and obtain several new results related to Bell nonlocality and KS contextuality.In particular, it is shown that this framework allows for the definition of different local sets, depending on the types of local strategies available for each party.The cornerstone of this generalization of Bell scenarios is that each separated party is allowed to measure local contexts; this opens possibilities to explore features related to contextuality and disturbance within the local model.One of our main results shows that there are correlations that are non-disturbing on the observational level but are local if and only if disturbance is allowed inside the local decomposition.
Moreover, different possibilities for sets of behaviours that are both local and noncontextual are also explored.Another interesting result is that there are correlations with a local decomposition for the joint behaviour and independent non-contextual decompositions for the marginal behaviours of each party, such that it is not possible to find a unified model that encloses these two classical features.Extensions of the Fine-Abramsky-Brandenburger [24,25] Theorem are also considered, and it is shown that, in the framework used in this work, this is not the most general way to characterize behaviours that are both local and non-contextual.Finally, the set of quantum behaviours is defined, and some local behaviours that do not belong to it are presented.
We organized this work as follows.Section 2 reviews the concepts for standard Bell and KS contextuality scenarios; in section 3, the concepts involving the framework of Bell scenarios with compatible measurements are reviewed and developed; section 4 discusses the representation of the correlation sets as convex polytopes; the relation of quantum behaviours with some of the sets in this extension of Bell scenarios is explored in section 5; finally, section 6 presents some extensions of the Fine-Abramsky-Brandenburger Theorem.The paper is, then, closed with a discussion in section 7, and technical appendices.

Bell nonlocality and Kochen-Specker contextuality
A Bell scenario consists of an experimental setup where spatially separated laboratories receive physical systems from the same source and perform measurements on them.Each laboratory has a finite set of measurement settings to choose from, and it is assumed that there is no communication between different parties during the measurement processes.This procedure is iterated (in every round, each party receives a new system from the same source), and, after many runs, it is possible to estimate the probabilities for all the possible results of all possible measurements for each party.This work considers bipartite Bell scenarios, referred to as Alice and Bob, but the ideas presented here can be straightforwardly generalized to scenarios with more parties.
In the standard notion of a Bell scenario, Alice and Bob each chooses only one measurement per round.Let M A and M B be the sets of possible measurements for Alice and Bob, respectively, and {a} A and {b} B be the sets of possible results given the measurements A ∈ M A and B ∈ M B .Then, the Bell experiment is described by probabilities of the form: These probabilities can be organized as entries of a vector ⃗ p ∈ R d , for an appropriate d, called behaviour vector.The entries of ⃗ p must be all non-negative, and, given A and B, the associate entries must be normalized: The first usual informational demands are the non-signaling conditions: They represent, mathematically, the demand that probabilities that can be inferred by Alice (Bob) alone should not be affected by the measurement choice of Bob (Alice).The set of behaviours that satisfy non-signaling is denoted N S.
The standard notion of locality is that a local hidden variable (LHV) model can reproduce the correlations between the laboratories.This is expressed mathematically as: where p(λ) are the coefficients of a convex combination, while the families of probability distributions {p λ (a|A)} and {p λ (b|B)}, known as response functions, depend only on the latent variable λ and Alice and Bob measurements, respectively.If the components of the behaviour vector ⃗ p can be decomposed as equation ( 5), then it is said to be local; otherwise, it is nonlocal.The set of local behaviours is denoted L. All local behaviours are also non-signaling, so L ⊂ N S.
A phenomenon which is related to Bell nonlocality is the so-called Kochen-Specker contextuality.Here, suppose there is a single laboratory, run by Bob, that receives physical systems and performs measurements on them.Assume, though, that in each round of the experiment, Bob is able to perform compatible measurements concomitantly.Each set of compatible measurements is referred to as a context, and the set of maximal1 contexts is denoted C. Let B = (B 1 , ..., B t ) ∈ C be a context of Bob and b = (b 1 , ..., b t ) a set of results, where b j ∈ {b} B j is a possible result of measurement B j .The probabilities that describe the experiment are of the form: These probabilities can also be organized in a behaviour vector ⃗ p ∈ R d .The non-negativity conditions, and normalization conditions, must be satisfied.Furthermore, it is usual to demand the non-disturbing condition, which is analogous to non-signaling.Given two contexts B 1 and B 2 of Bob such that their intersection B ′ = B 1 ∩ B 2 is non-empty, the following must hold: where the summations are over all possible results for the measurements in the sets B 1 \ B ′ and B 2 \ B ′ , respectively.In other words, the marginal probability distributions are well-defined for all non-maximal contexts.The set of non-disturbing behaviours is denoted N D.
If a behaviour does not satisfy the non-disturbing conditions, it is said to be disturbing.
The behaviour is said to be non-contextual if it can be decomposed by means of a non-contextual hidden variable (NCHV) model: where p(µ) is a probability distribution over the possibles values of µ and the product is over all j such that B j ∈ B. The probability distributions in the set {p µ (b j |B j )} are also known as response functions.If such decomposition does not exist, then the behaviour is said to be contextual2 .The set of non-contextual behaviours is denoted N C. Non-contextual behaviours are non-disturbing, and, thus N C ⊂ N D.

Bell scenarios with compatible measurements
In Bell scenarios, it is usually considered that each separated party performs only one measurement per round.However, a relaxation of this assumption is also possible and desirable.In ref. [19], it is introduced an extension of the standard Bell scenario where local compatible measurements for each party are admitted, i.e., Alice and/or Bob may measure a context.Including local compatible relations allows for the study of both Bell nonlocality and KS contextuality in a unified framework.
Let M A and M B be the sets of possible measurements for Alice and Bob, respectively, and C A and C B be their sets of maximal contexts.Given that Alice measures a context A = (A 1 , ..., A s ) ∈ C A and Bob measures a context B = (B 1 , ..., B t ) ∈ C B , and that a = (a 1 , ..., a s ) and b = (b 1 , ..., b t ) are sets of possible results (one for each measurement), the extended scenario is described by a set of joint conditional probabilities: As before, these probabilities can be organized as entries of a behaviour vector ⃗ p, and must satisfy the non-negativity and normalization conditions: These conditions describe the most general correlations in an extended Bell experiment.
In the following sections, the term extended Bell scenarios is used to refer to Bell experiments with compatible measurements, while the usual notion of Bell experiments is referred to by standard Bell scenarios.The latter is a particular case of the former, since the incompatible measurements for Alice and Bob can also be seen as maximal contexts of size one.Thus, the conditions presented in section 2 are particular cases of what is discussed in the next sections: while standard Bell scenarios will correspond to maximal contexts of size 1, KS scenarios will correspond to one-party extended Bell scenarios.

Non-signaling and non-disturbing conditions
In many works, either the term non-signaling or non-disturbing is used to mean that the marginal probabilities for the results of one measurement are independent of the choice of other measurements that are performed concomitantly.The former is usually used for spatially separated measurements, while the latter usually refers to measurements in the same laboratory.In this work, such terms are employed with the intention to differentiate between these two situations.
The non-signaling conditions, which state that the probabilities for the results of a context A of Alice do not depend on the context B chosen by Bob, and vice versa, are naturally extended: Behaviours that satisfy (14) belong to the Non-Signaling set, denoted N S. Independently of the non-signaling conditions, the non-disturbing conditions for Bob states that for all pairs of contexts B 1 and B 2 of Bob with non-empty intersection and a subcontext B ′ such that B ′ ⊂ B 1 and B ′ ⊂ B 2 , the following conditions must hold: where the b summations of each line are over all possible results of the measurements in B 1 \ B ′ and B 2 \ B ′ , respectively.That is, the probabilities of the results for B ′ are not dependent on the context being measured.The behaviours that satisfy (15) belong to the Non-Disturbing set for Bob, denoted N D B .The analogous conditions can be valid for Alice's measurements, and then the behaviour belongs to the Non-Disturbing set for Alice, denoted N D A .If the non-disturbing conditions are satisfied for both parties, the behaviour belongs to the Non-Disturbing set, denoted N D.
Behaviours that do not satisfy the non-disturbance conditions are called disturbing.
As defined here, the non-signaling and non-disturbing conditions are independent.For instance, there exists the possibility of a behaviour that is non-signaling but presents disturbance, and vice versa.If both conditions are satisfied, the behaviour belongs to the Non-Signaling and Non-Disturbing set, denoted N S ∩ N D.Then, the non-disturbing conditions can be written as: with analogous conditions for Alice.In this case, all the marginals p(a i |A i ) and p(b j |B j ) are well-defined.Hence, the set N S ∩ N D coincides with the non-disturbing set when we look at generalized Bell scenarios as a special case of contextuality scenarios.It is also possible to combine the non-signaling conditions with non-disturbance only for Alice or Bob, resulting in the sets N S ∩ N D A and N S ∩ N D B , respectively.From now on, it is assumed that the behaviours considered in this article belong to the N S ∩ N D set.

Contextuality
The extension of Bell scenarios including the possibility of locally compatible measurements is suited to the study of questions related to contextuality.For this, it is necessary to consider the marginal probability distributions p(a|A) and p(b|B).Written in this way, it is implicit that the non-signaling conditions ( 14) hold.
The behaviour ⃗ p is non-contextual for Alice if and only if there exists a decomposition in the form: where p(µ) is a probability distribution over µ, and {p µ (a i |A i )} is a set of response functions.If ⃗ p does not satisfy the condition expressed in (17), then it is said to be contextual for Alice.The set of behaviours that are non-contextual for Alice is denoted N C A .In the same manner, a behaviour ⃗ p is non-contextual for Bob if there is a non-contextual decomposition for Bob's marginal behaviour p(b|B).The set of behaviours that are non-contextual for Bob is denoted N C B .
Finally, a behaviour ⃗ p is non-contextual if and only if it is non-contextual both for Alice and Bob.Otherwise, ⃗ p is contextual.The set of non-contextual behaviours is denoted The non-disturbance conditions are satisfied by every non-contextual behaviour.In extended Bell scenarios, it is necessary to specify which of the parties are non-contextual.Hence, N C A is a subset of N D A ; N C B is a subset of N D B ; and N C is a subset of N D.Moreover, since the non-signaling conditions are assumed in the definitions of all noncontextual models, the three non-contextual sets are also subsets of N S.

The many meanings of locality in extended scenarios
The notion of locality in extended Bell scenarios is a natural extension of the standard locality condition (eq.( 5)).However, it brings many new features, as is shown throughout this manuscript.A behaviour ⃗ p is said to be local if, and only if, there exists a decomposition of the form: where p(λ) is a probability distribution over λ, and {p λ (a|A)} and {p λ (b|B)} are sets of response functions for Alice and Bob, respectively.For the locality condition in ( 18) to be completely determined, it is necessary to specify the sets of response functions.The property of locality must be concerned with the possibility of a decomposition that classically correlates the results of spatially separated laboratories, i.e., it is about finding a decomposition for the behaviour as a convex combination of probability distributions that are independent between Alice and Bob.Thus, it must be possible to have local behaviours that present contextuality in the individual laboratories.To consider this situation, it is necessary to include contextual response functions in the local decomposition.Indeed, the fact that each laboratory may measure contexts opens the possibility to explore attributes related to contextuality and disturbance of the response functions in the local model.This brings new features to extended Bell scenarios that are not present in standard ones.
To get the most general definition of the local model, the only restriction that must be imposed on the sets {p λ (a|A)} and {p λ (b|B)} is that they are composed of well-defined probability distributions -in other words, they must satisfy the normalization and nonnegativity conditions.This would take into account the possibility of contextual response functions.More than that, it would include both disturbing and non-disturbing response functions, i.e., they would not be constrained to satisfy the non-disturbing conditions (9).The behaviours that satisfy this locality condition, using general response functions, belong to the Local set L G .
As discussed above, the definition of the set L G includes both disturbing and nondisturbing response functions, and hence it has both disturbing and non-disturbing behaviours.If the non-disturbance conditions3 (16) are imposed both for Alice and Bob on the behaviours of L G , the resulting set is the Local and Non-Disturbing set L G ∩ N D. That is, it is ensured that, beyond having a local decomposition, the marginal behaviours of both parties are non-disturbing.It is important to emphasize that, for this case of the set L G ∩ N D, disturbing response functions in the r.h.s of expression (18) are allowed, but in a way that the probability distribution p(λ) makes the observed probabilities, on the l.h.s of equation ( 18), non-disturbing.It is also possible to consider non-disturbance for Alice or Bob only, resulting in the sets L G ∩ N D A and L G ∩ N D B , respectively.
Another possibility for the definition of the locality condition ( 18) is to constraint the response functions {p λ (a|A)} and {p λ (b|B)} to be non-disturbing.That would define another local set, denoted by L ND , which considers only non-disturbing response functions.As a convex combination of non-disturbing behaviours is also non-disturbing, it follows that the behaviours in this set automatically satisfy the non-disturbance conditions ( 16) for both Alice and Bob, and, hence, L ND ∩ N D = L ND .This was the local set considered in the original work of extended Bell scenarios [19].
Finally, the last possibility is to allow only non-contextual response functions in the local model.That is, for a context A = (A 1 , ..., A s ) and results a = (a 1 , ..., a s ), the response functions would be of the form4 where {p λ (a i |A i )} are response functions for the measurement A i .The same is valid for the response functions of Bob.The local decomposition would, then, be: By a marginalization process, it is possible to see that the marginal behaviours p(a|A) and p(b|B) would also have a non-contextual decomposition (see eq. ( 10)).Hence, with this choice of response functions, the local behaviours are also non-contextual.The local set defined by using only non-contextual response functions is denoted L NC .
Regarding the relations between these sets, it follows from the definitions that L NC is a subset of L ND and that the latter is a subset of L G .Moreover, the two former sets are subsets of L G ∩ N D, since they are also subsets of N D.
In general, the set L NC is a proper subset of L ND .In scenarios where it is possible to have contextuality, there will be contextual response functions in the set of non-disturbing response functions, so the sets L NC and L ND will be different.For analogous reasons, in general, L ND is a proper subset of L G , since the latter may include disturbing response functions.An interesting question is whether the sets L ND and L G ∩ N D are equivalent or not.In other words, is it equivalent to consider general response functions and then impose the non-disturbance conditions or to start with non-disturbing response functions from the beginning?In section 4.3, it is shown that, for some scenarios, these two local sets are different, i.e., L ND is a proper subset of L G ∩ N D. Hence, these two definitions are not equivalent.
In standard Bell scenarios, where the contexts of Alice and Bob have only one measurement, these local sets coincide, i.e., L NC ≡ L ND ≡ L G ≡ L.
Other local sets can be defined by choosing the different possibilities of response functions for Alice and Bob.Following the notation already introduced, let the index NC refer to non-contextual response functions; subscript ND refers to non-disturbing response functions; and G refers to general response functions, including both disturbing and nondisturbing ones.Then, we can also define the following sets: L NC,ND , L ND,NC , L NC,G , L G,NC , L ND,G , and L G,ND .In the notation L I,J , the indices I and J refer to the allowed response functions for Alice and Bob, respectively.The local sets defined previously can also be expressed with this notation: L NC ≡ L NC,NC , L ND ≡ L ND,ND , and L G ≡ L G,G .
Note that for all local sets defined, the resultant local behaviours are non-signaling, and hence they are all subsets of N S. Also, these sets could be combined with the different conditions of non-disturbance, i.e., they can also be combined with the sets N D A and N D B .
In this section, several local sets were defined by exploring the different features that the response functions may possess.In section 4, the structure of these sets as convex polytopes and the minimum sufficient set of response functions for each case are discussed.

Locality and non-contextuality together
In the previous subsections, the conditions for a behaviour to be local or non-contextual were presented separately.In this subsection, the case in which both of these properties are present is considered.For this, many combinations of the previously defined sets are possible.
First, consider the most general local set L G and non-contextuality at Alice's laboratory.A behaviour ⃗ p is local and non-contextual for Alice if and only if it has a local decomposition as in expression (18), including general response functions, and a non-contextual decomposition for Alice's marginal behaviour as in equation (17).In other words, the behaviour must belong to the set L G ∩ N C A .Similarly, to talk about locality and non-contextuality at Bob's laboratory, the relevant set is L G ∩ N C B .Considering non-contextuality for both Alice and Bob, a behaviour ⃗ p is local and non-contextual if and only if it belongs to the set L G ∩ N C. Analogous definitions are valid considering the sets L ND and L NC .
From the hierarchy of the local sets discussed in the previous section, it follows that L NC ∩ N C is a subset of L ND ∩ N C, and that these two are subsets of L G ∩ N C. Whether these sets are equivalent is a question that has interesting consequences.To see this, note that the three sets are defined by imposing separately the local and non-contextual conditions.Nevertheless, behaviours belonging to L NC are automatically non-contextual, and thus L NC ∩ N C = L NC .This means that for this last case, the conditions of locality and non-contextuality may be expressed by a unique hidden variable model given by expression (20).In the case that there are behaviours belonging to L ND ∩ N C or L G ∩ N C, but not to L NC , it means that these behaviours independently have local and non-contextual decompositions, nevertheless it is not possible to express both of them with a single model with these features.This would show that the joint consideration of these two classical concepts presents a richer structure than just having a joint global hidden variable decomposition.The question of the equivalence between these sets is answered in section 4.3.

Geometrical characterization of the correlation sets
One modern way to investigate Bell nonlocality and KS contextuality is by means of the structure of convex polytopes [1,26].A polytope is a geometrical object that belongs to a real vector space R d , and admits a dual characterization: it can either be described by the intersection of a finite number of half-spaces -each given by a linear inequality, related to one of its facets -, or by the convex hull of a finite set of vectors, representing their vertices.With one of the descriptions, it is, in principle, possible to obtain the other.In practice, this problem requires an exponential amount of computational resources as the complexity of the polytope grows.In this work, the software PANDA [27] was used to find the facets or the vertices of the polytopes for the specific scenarios considered.
As previously mentioned, the probabilities that describe a scenario are organized as entries of a behaviour vector ⃗ p ∈ R d .The different sets presented in sections 2 and 3 are defined by linear equations or linear inequalities in the entries of ⃗ p, or by expressing it as a convex combination of a set of response functions, which can also be organized as vectors ⃗ p λ .Moreover, as is shown in section 4.1, it is sufficient to consider finite sets of response functions.Hence, all the sets defined are convex polytopes.
In the following subsections, the sets of extremal vertices for each of the local sets are discussed and the geometrical structure of convex polytopes is applied to both standard and extended Bell scenarios.By considering the facet inequalities for the polytopes of some specific extended scenarios, it was possible to prove the main results of this article.

Digression on sets of extreme response functions
In previous sections, the features characterizing the sets of response functions for each local set were presented.In this subsection, the minimum set of response functions that are sufficient to define these sets are discussed.These are known as extremal response functions, since they cannot be expressed as convex combinations of the others.
An important result is that an arbitrary probability distribution can always be written as a convex combination of deterministic probability distributions, i.e., probability distributions in which one of the results has probability 1.Hence, considering the local model (5) for standard Bell scenarios, the response functions {p λ (a|A)} and {p λ (b|B)} can always be expressed in terms of deterministic response functions.These are defined as follows: for a fixed λ, the results for the measurements A i and B j are R λ (A i ) and R λ (B j ), respectively.Hence, the extremal response functions are given by For the set L NC , the response functions are non-contextual.Every non-contextual behaviour can be expressed as a convex combination of vertices that have deterministic results for each of the measurements.Following the notation introduced above, let )) be tuples of determined results for the contexts A = (A 1 , ..., A s ) and B = (B 1 , ..., B t ), respectively, associated with the hidden variable λ.Then, the deterministic and non-contextual response functions are expressed as: These compose the set of extremal response functions for L NC .
To find the set of extremal response functions of L ND , it is necessary to characterize the extremal points of the Non-Disturbing polytopes for the marginal behaviours of Alice and Bob.As before, any non-disturbing response function can be written as a convex combination of these extremal non-disturbing points.Thus, they form the set of extremal response functions for L ND .
Finally, for the set L G , the only condition imposed on the response functions is that they are composed of probability distributions.As in the case of standard Bell scenarios, this means that they can be expressed in terms of deterministic vertices.However, in this case, the vertices are deterministic for each context.That is, given the context, the results of each measurement are determined, but a measurement that belongs to more than one context may have different results in each of them.This last case characterizes disturbing vertices.Note also that the set of extremal response functions of L NC is included in the respective set for L G .
As can be seen in the discussion above, while in standard scenarios the term deterministic response function has only one meaning, it can be ambiguous in extended scenarios: it is possible to consider deterministic and non-contextual results for each measurement or deterministic results for each context.
These sets of extremal response functions are used to find the facet inequalities for the polytopes of some specific scenarios in the next subsections.

Polytopes for standard scenarios
The characterization of standard Bell scenarios by means of convex polytopes has been known for a long time.The conditions of non-negativity, normalization, and non-signaling, presented in equations ( 2), (3), and (4b), respectively, define a convex polytope structure for the set of behaviours that satisfy them.This is called the Non-Signaling polytope, N S. The local behaviours are convex combinations of a set of vectors as defined by (5).Moreover, as seen in subsection 4.1, it is sufficient to consider only the deterministic response functions.This also means that local behaviours are convex combinations of a finite set of vectors, which defines another convex polytope, denominated as the Local polytope, L. The facet inequalities of this polytope are associated to the Bell inequalities.In figure 1, there is a representation of the hierarchy of these sets for standard Bell scenarios.
An analogous reasoning is valid for the standard scenarios of contextuality.The conditions of non-negativity, normalization, and non-disturbance, given by ( 7), (8), and (9), respectively, define the Non-Disturbing polytope, N D. The non-contextual behaviours have a non-contextual decomposition as in (10), with the set of extremal response functions being composed of the deterministic and non-contextual ones.Hence, they are convex combinations of a finite set of vectors, which defines the Non-Contextual polytope, N C. The facet inequalities of this polytope are associated to the Bell-like inequalities for noncontextuality.

Polytopes for extended scenarios
In extended Bell scenarios, the structure of convex polytopes is also present, but with a richer structure of sets.This subsection contains our main results: Theorems 1 and 2.
Due to the same reasons presented before, the Non-Signaling set N S and the Non-Disturbance sets N D, N D A , and N D B are convex polytopes.The same holds for the combination of these conditions, i.e., N S ∩ N D, N S ∩ N D A , and N S ∩ N D B are also convex polytopes 5 .
One of the interests in this geometrical characterization lies in the local sets.The different sets of the extremal response functions for L NC , L ND , and L G were discussed in subsection 4.1.For each of them, the local behaviours are convex combinations of a finite set of vertices, and hence they are all convex polytopes.From the sets of extremal vertices it is possible, in principle, to find the set of facet inequalities for each of the local polytopes, which, in general, are different.
For the Local and Non-Disturbing polytope L G ∩ N D, the set of extremal vertices is not known a priori.To find them, it is first necessary to characterize the facets of L G .Then, including the non-disturbance conditions of the set N D, the description of the L G ∩ N D set in terms of linear equations and linear inequalities is complete, and it is possible to make the reverse process and find its set of vertices.This procedure was used in the proof of theorem 1.
As discussed in subsection 3.3, the different local sets are related in the following manner: It was already stated that these sets are equivalent in standard Bell scenarios and that there are extended scenarios in which L NC ̸ = L ND .In the following Theorem, it is shown that L ND is different from L G ∩ N D for some scenarios.
Theorem 1.There are scenarios in which the set L ND is a proper subset of L G ∩ N D.
Proof.Consider a scenario where Alice has two incompatible measurements M A = {A 0 , A 1 } and Bob has three measurements M B = {B 0 , B 1 , B 2 } with the contexts C B = {(B 0 , B 1 ), (B 1 , B 2 )}.The possible results for all measurements are {0, 1}.This is the simplest scenario where the two sets of interest may be different, since the sets L ND and L G are equal in any standard Bell scenario.In the scenario considered here, the sets L NC and L ND coincide, since all the non-disturbing response functions are also non-contextual.Following the discussion above, it is possible to find the vertices and facets of the polytopes L ND and L G ∩ N D [28].
In table A1, it is presented a behaviour that is non-signaling and non-disturbing and that has a local decomposition using disturbing local boxes (see appendix A), i.e, the behaviour belongs to L G ∩ N D. However, if only non-disturbing local boxes are considered, this behaviour does not have a local decomposition, since it violates inequality (A1), which is associated to a facet of L ND .Hence, it does not belong to this set, which implies that, for this scenario, L ND ̸ = L G ∩ N D.
The previous result implies that there are non-signaling and non-disturbing behaviours that are local if and only if disturbing local boxes are considered in the local model.This result shows that the property of non-disturbance of the boxes, which is a property related to the strategies that each individual laboratory applies locally, has implications for the global property of locality.
The behaviours that are considered in the previous Theorem, which are the ones that belong to L G ∩ N D but not to L ND , also belong to the set N S ∩ N D. Hence, they can be expressed as a convex combination of non-signaling and non-disturbing vertices.However, this will necessarily include nonlocal vertices.To find a convex combination of these behaviours that is also local, it is necessary to include disturbing vertices that do not belong to N S ∩ N D, although they belong to N S.
In Figure 2, a schematic representation of the hierarchy of the correlation sets for the scenario considered in the proof of theorem 1 is presented.
The local and non-contextual sets L NC , L ND ∩ N C, and L G ∩ N C are also convex polytopes.To obtain their vertices, it is first necessary to have the facet inequalities of the local polytopes and of the non-contextual polytope N C.Then, by joining the facet inequalities and the linear constraints that define each set, the vertices of the local and non-contextual polytope may be acquired.
It was stated in section 3.4 that the behaviour sets satisfy the following relation: By considering the structure of convex polytopes for a specific scenario, it is possible to prove the following Theorem.Theorem 2. In general, the local and non-contextual sets are related in the following way: Proof.Consider a scenario where Alice has two incompatible measurements M A = {A 0 , A 1 } and Bob has three measurements M B = {B 0 , B 1 , B 2 } with the contexts C B = {(B 0 , B 1 ), (B 1 , B 2 ), (B 2 , B 0 )}.The possible results for all measurements are {0, 1}.The facet inequalities of the local sets for this scenario were obtained via facet enumeration techniques [28].Table A3 presents a behaviour that belongs to the set L ND ∩ N C but does not belong L NC , and table A4 shows a behaviour which belongs to L G ∩ N C but does not belong to L ND ∩ N C (See Appendix B for more details).Thus, for this scenario, these sets are related as in expression (25).
As discussed in section 3.4, the behaviours provided in the proof of Theorem 2 have a local decomposition between the results of Alice and Bob and independent non-contextual models for the marginal behaviours of each laboratory; however, it is not possible to find a single hidden variable decomposition that encloses these two properties.A schematic representation of the relation proven in Theorem 2 is given in Fig. 3.
In the next section, the set of quantum behaviours in extended Bell scenarios is defined.Its relation with the local sets is explored, which also brings some unexpected results.

Quantum correlations
Up to this point, no physical theory has been assumed for the behaviours considered.Another important correlation set is the quantum set Q, i.e., the set of all behaviours that can be reproduced by quantum theory.In extended Bell scenarios with sets of measurements M A and M B and contexts C A and C B , a behaviour ⃗ p belongs to Q if there exist Hilbert spaces H A and H B , a density operator ρ acting over H A ⊗ H B , and projective measurements {X a|A } and {Y b|B } for each A ∈ M A and B ∈ M B , with the commutation relations between the quantum measurements reproducing the scenario's contexts 6 , such that: for all contexts A = (A 1 , ..., A s ) ∈ C A and B = (B 1 , ..., B t ) ∈ C B and results a = (a 1 , ..., a s ) and b = (b 1 , ..., b t ).
It is well known that quantum behaviours are non-signaling and non-disturbing when considering commuting projective measurements.Hence, if a behaviour ⃗ p is quantum, then it also belongs to the set N S ∩ N D.
In standard Bell scenarios, the quantum set contains the local set.As is shown below, this is not necessarily the case for extended Bell scenarios.
In the view of generalized Bell scenarios as particular cases of contextual scenarios, the set L NC is equivalent to the set of non-contextual behaviours.Moreover, it is well known that all non-contextual behaviours are also quantum.Hence, it follows that L NC ⊂ Q.
However, this relation does not follow for the set L ND , i.e., considering this set, there are local behaviours that are not quantum.This is due to the possibility of post-quantum contextuality in individual laboratories.Theorem 3.There are scenarios in which L ND ̸ ⊂ Q.
On Bob's side, the situation is analogous to a standard bipartite Bell scenario, in which each party has two dichotomic measurements.Indeed, the non-contextual inequality, in this case, is the CHSH inequality [29].Thus, considering Bob's non-disturbing polytope, there are contextual vertices equivalent to PR boxes, which are known to be post-quantum.Let p PR (b|B) be a behaviour representing one of these boxes.
Consider the following joint behaviour: where {p(a|A)} is an arbitrary behaviour for Alice.The expression (27) already gives a local decomposition with non-disturbing response functions, so this behaviour belongs to L ND .However, due to Bob's post-quantum marginal behaviour, it cannot be reproduced by quantum theory.Thus, L ND is not a subset of Q.
The Bell inequalities of the L ND polytope are useful for semi-device-independent7 certification of entanglement, as shown in the theorem below.
Theorem 4. If a quantum state ρ is separable, then all behaviours generated from it belong to the L ND polytope.
Proof.Since ρ is separable, there are quantum states {ρ λ A } acting over H A and {ρ λ B } acting over H B and a probability distribution p(λ) such that: Thus, a behaviour ⃗ p obtained from ρ has probabilities of the form: where In this way, ⃗ p is local (see eq. ( 18)).On the other hand, as quantum theory always generates non-disturbing behaviours, it follows that p λ (a|A) and p λ (b|B) are non-disturbing behaviours for every λ.Therefore, ⃗ p belongs to L ND .
Since quantum behaviours in extended Bell scenarios are automatically non-disturbing, the most general local models that should be considered to test if a quantum behaviour is local or not are the ones related to the set L G ∩ N D.
As expected, there are quantum behaviours that cannot be reproduced by local models, even considering general response functions.Inequality (32) is a Bell-like inequality for the L G ∩ N D polytope for the scenario of Theorem 1, which can be violated by quantum correlations [28]: + p(0, 1, 0|A However, there are also behaviours in L G ∩ N D that are not quantum behaviours.
Theorem 5.There are scenarios in which L G ∩ N D ⊊ Q.
Proof.Considering the same scenario from the proof of Theorem 1, it was verified, using the NPA hierarchy [30], that the vertex of the L G ∩ N D set presented in table A1 is not a quantum behaviour [28].
This is another example of local behaviour that is not quantum.Note, however, that this post-quantum behaviour does not belong to L ND .Moreover, for this specific scenario, neither Alice nor Bob may present contextuality 8 .Hence, the fact that quantum mechanics cannot reproduce this local behaviour is not due to post-quantum contextuality.
To conclude this section, the relation of the quantum set Q and the local set L G ∩ N D is that neither one is contained in the other.This is depicted in Figure 2, with the boundary of the quantum set represented by the dashed red line.For the specific scenario of this figure, the set L ND is contained inside the quantum set, since it is equal to the set L NC .

Extensions of Fine's theorem
Fine's Theorem [24] is a very important result on Bell nonlocality, providing an alternative description of local behaviours.Consider a standard Bell scenario, with M A = {A 1 , ..., A n } and M B = {B 1 , ..., B m } being the sets of measurements of Alice and Bob, respectively, and {a i } A i and {b j } B j the sets of possible results for each measurement.The scenario is described by probabilities in the form of (1).Then, a behaviour is local if and only if there exists a joint probability distribution, ω(a 1 , ..., a n , b 1 , ..., b m ), for the results of all observables involved in the scenario, such that it is possible to obtain the scenario's probabilities from a marginalization process where the summation is over the possible results of all measurements.In ref. [25], this theorem was extended to contextuality scenarios, and became known as Fine-Abramsky-Brandenburger Theorem.
Consider now an extended Bell scenario with the maximal contexts of Alice and Bob given by C A = {A 1 , ..., A p } and C B = {B 1 , ..., B q }, respectively.Denote by a k a set of possible results for the measurements of context A k , and by b l the analogous set of results for Bob.A natural question is whether Fine's theorem generalizes to extended Bell scenarios.For the set L NC , the Theorem extends immediately.Theorem 6.A behaviour ⃗ p belongs to L NC if and only if there exists a joint probability distribution for the results of all measurements, as in (33), which satisfies the condition where the summation is over the possible results of all measurements, and the Kronecker deltas involve only the results of the measurements in the contexts A and B.
Proof.Suppose that ⃗ p belongs to L NC .Then, for contexts A = (A 1 , ..., A s ) and B = (B 1 , ..., B t ), it has a local decomposition of the form p(a, b|A, B) = ∑ λ p(λ)p λ (a|A)p λ (b|B) with the non-contextual response functions being deterministic where R λ (A i ) is the deterministic result defined by λ for A i , and analogously for R λ (B j ).
Using these non-contextual response functions, it is possible to construct the following joint probability distribution, which satisfies condition (35): where the indices i and j in the products run over all measurements in the scenario.Suppose now that there exists a probability distribution as in (33) which satisfies eq. ( 35).It is possible to associate each tuple of results for all measurements with a value λ of the deterministic and non-contextual response functions: The assignment (39) gives the deterministic result predicted by λ, i.e., λ(A i ) = a i and λ(B j ) = b j .Then, using eq.(33) as a probability distribution over the values of λ and viewing the Kronecker deltas as response functions, the condition (35) can be seen as a local decomposition using only non-contextual response functions.Hence, ⃗ p ∈ L NC .
Thus, in the framework of extended Bell scenarios, the Fine-Abramsky-Branderburger Theorem characterizes the behaviours belonging to L NC .But, as shown in Theorem 2, there are local and non-contextual behaviours that are not in this set.These behaviours demand one hidden variable model for the results of Alice and Bob, and then, considering the marginal behaviour of each party, there are other independent hidden variable models ensuring non-contextuality in each lab.Thus, the Fine-Abramsky-Brandenburger Theorem does not characterize all the behaviours that are both local and non-contextual.
It is also possible to extend Fine's theorem to the set L G .This is done by considering each context of the scenario as an independent measurement.In what follows, a k and b l are tuples of possible results for the contexts A k and B l , respectively.Theorem 7. A behaviour ⃗ p belongs to L G if and only if there exists a joint probability distribution for the results of all contexts ω(a 1 , ..., a p , b 1 , ..., b q ), (40) where the summation is over the possible sets of results for all contexts, and the Kronecker deltas involve only the results of the contexts A k and B l .
Proof.Suppose that ⃗ p belongs to L G .Then, its probabilities have a local decomposition where {p λ (a ′ k |A k )} and {p λ (b ′ l |B l )} are general response functions.The following probability distribution for the results of all contexts may be constructed An important remark is that if a measurement belongs to two distinct contexts, its results in each of these contexts are independent variables.With this, it is possible to verify that property (41) is satisfied.Conversely, assume there exists a joint probability distribution (40) that satisfies condition (41).It is possible to assign each combination of results for the contexts with a value for the summation variable: With this assignment, the distribution (40) can be considered as a probability distribution over λ.Besides, the functions δ a ′ k ,a k and δ b ′ l ,b l can be viewed as deterministic response functions for a local decomposition, with the set of results determined for a specific context given by the assignment (44).Hence, condition (41) gives a local decomposition.
Note that, since the results of the same measurement in different contexts should be considered independent, the response functions considered above are deterministic given the context, but it is possible to have, for the same value of λ and the same measurement, different results in different contexts, i.e., the deterministic assignment is not necessarily nondisturbing.In other words, it is necessary to consider both disturbing and non-disturbing response functions in the local model constructed in this proof.
The final remark in the proof of Theorem 7 precludes applying the same construction to the set L ND .It is still an open question whether there exists some version of Fine's Theorem for this set.

Discussion
In this manuscript, we reviewed and expanded the framework of extended Bell scenarios, in which the possibility of compatible measurements for each laboratory is considered.This idea was introduced in ref. [19], and has already led to interesting contributions to Bell nonlocality and KS contextuality [20,23].
In extended Bell scenarios, it may seem a natural idea that any behaviour which is local and locally non-disturbing can be described by a local model in which the local behaviours are non-disturbing.In this manuscript, we prove this intuitive idea wrong.Even more strikingly, we also show that local behaviours which cannot exhibit contextuality in either of its parts may also not be described by local models that use only non-contextual behaviours for each party.These results highlight the fact that even the definition of local behaviours in extended Bell scenarios is not trivial, since there is no unique straightforward extension of the one in standard Bell scenarios, and several sets of local correlations may be defined.As it happens in many fields of physics: more is different.In the case of Generalized Bell scenarios, instead of going to more parts, we add more structure to the measurement sets and allow for more than one (compatible) measurement per part.
Another important question investigated here is the relation of the quantum set with such different local sets.It was shown that there are quantum behaviours that cannot be simulated even by the most powerful local models, as would be expected.Nevertheless, it was also shown that there are non-disturbing local behaviours, composed of disturbing local strategies, that cannot be reproduced by quantum theory using quantum models.This situation is analogous to scenarios in which it is possible to use classical communication between Alice and Bob to reproduce quantum and post-quantum behaviours [31].In our case, the disturbance in the response functions, which allows the production of some post-quantum correlations, can be viewed as a kind of 'communication' among the measurements.This may have fundamental and practical interests, e.g. in protocols that combine processing and communication, like distributed quantum computing.Moreover, it would be interesting to explore in future works if and how sequences of incompatible quantum measurements may produce these behaviours.
Finally, it was investigated different manners to define that a behaviour is both local and non-contextual.It was shown that, in the most general way, there should be a local model regarding the locality of the measurements for the spatially separated laboratories and independent different non-contextual models for the marginal behaviours of each party.It is interesting to compare this result with the Fine-Abramsky-Brandenburger Theorem, which, for standard scenarios, characterizes the existence of a single hidden variable model for the results of all measurements, which in the framework of extended scenarios is equivalent to the set L NC .However, as our results show (theorem 2), there are more general ways to explain the probabilities in terms of classical models.Considering the view of Bell scenarios as a special case of contextuality scenarios, it is possible, for instance, to separate the measurements into two groups, and to have a hidden-variable model that explains the behaviour as convex combinations of response functions that are independent regarding the measurements of each group.Then, it is possible to have independent hidden-variable models for the marginal behaviours of each group.This idea could be generalized to more complex groupings of the measurements, which also opens new paths to investigate in the future.), with i, j ∈ {0, 1} and a i , b j , b j+1 ∈ {0, 1, 2}, with the sum in the index of Bob's measurements being modulo 3. The results are given by the columns and the contexts are given by the rows.
The same strategy used for the previous case was employed to find the behaviour in table A4, i.e., linear programming was used to maximize the value of the expression of the facet (A3) conditioning that the behaviours must belong to the set L G ∩ N C. Linear programming can also be used to certify that the behaviour A4 belongs to L G ∩ N C, finding a local decomposition with general response functions and a non-contextual decomposition for Bob's marginal distribution.

Figure 1 .
Figure 1.Schematic representation of the hierarchy of sets for a standard Bell scenario.The local polytope L is given by the grey polygon (1,2,3); the non-signaling polytope N S is represented by the polygon (1,2,3,4); and the quantum set is represented by the region (1,2,3) with the red dashed boundary between vertices 1 and 3.

Figure 2 .
Figure 2. Schematic representation of the hierarchy of local sets for the scenario considered in the proof of theorem 1. Set L ND is represented by the grey polygon (2,3,4); the L G ∩ N D polytope is represented by the polygon (1,2,3,4) with diagonal blue lines; the N S ∩ N D polytope is given by the polygon (1,2,3,4,5); the quantum set is represented by the region (2,3,4) with the red dashed boundary between vertices 2 and 4. Vertex 1 represents the behaviour in table A1, which is a vertex of both the L G ∩ N D and N S ∩ N D polytopes.The common vertices of the polytopes L ND , L G ∩ N D, and N S ∩ N D, (2,3,4), are the deterministic and non-contextual vertices.

Figure 3 .
Figure 3. Illustration of the relation between the sets L NC and L ND ∩ N C. The polygon with vertices (1,2,3,4,5,6) represents the N S ∩ N D polytope; the polygon (1,2,3,4), with blue dots, represents the set L ND ; the polygon (1,2,3,5), with diagonal red lines, represents the set N C; and the grey polygon (1,2,3) represents the L NC .The set L ND ∩ N C, represented by the polygon (1,2,3,7), with blue dots and red diagonal lines, contains the L NC set.

Table A3 .
Example of behaviour that belongs to L ND ∩ N C but does not belong to L NC .The entries of the table are given by the probabilities p(a i , b j , b j+1 |A i , B j , B j+1 ), with i, j ∈ {0, 1} and a i , b j , b j+1 ∈ {0, 1, 2}, with the sum in the index of Bob's measurements being modulo 3. The results are given by the columns and the contexts are given by the rows.

Table A4 .
Example of behaviour that belongs to L G ∩ N C but does not belong to L ND ∩ N C. The entries of the table are given by the probabilities p(a i , b j , b j+1 |A i , B j , B j+1