Bell derived a constraint, in terms of statistical inequality, on correlations for two remote systems that local realistic theories must obey, and he showed that the constraint can be violated by quantum mechanics in case of two coupled spin-1/2 particles and suitable local measurements 1. This is known as Bell’s theorem, which states that local realistic theories cannot completely simulate quantum correlations. Later, Clauser, Horne, Shimony, and Holt (CHSH) improved Bell’s original idea by proposing a statistical inequality that is more experimentally feasible 2. Following these theoretical developments, significant experimental efforts were undertaken to empirically verify the predictions of Bell’s theorem across various physical platforms (for historical review, see Ref. 3). Notably in 2015 and 2017 loophole-free Bell tests were successfully implemented in different physical platforms 4,5,6,7. Studying Bell inequalities has thus become fundamental to illustrating the profound differences between quantum mechanics and classical physics. Nowadays, it is well established that violations of Bell inequalities are essential for enabling various quantum information protocols to outperform their classical counterparts, such as random number generation, quantum key distribution, reducing communication complexity, and so on 8, driving extensive research across both theoretical and experimental domains 3. Recently, violations of Bell inequalities become central to self-testing, where certifying a unique quantum entangled state and local observables for quantum violations, as well as the corresponding classical upper bounds, is essential for constructing self-testing in a device-independent manner 9,10,11,12,13.

The simplest case of Bell’s theorem involves two spin-1/2 particles, where each subsystem is measured with two observables, and each observable yields two possible outcomes. This scenario can be represented using the notation (NMd), where N denotes the number of subsystems, M represents the number of observables per subsystem, and d specifies the number of outcomes per observable. Under this notation, the cases considered by Bell and CHSH correspond to \((N, M, d) = (2, 2, 2)\). Since Bell’s discovery, many efforts have been devoted to extending Bell inequalities to more general scenarios, including multi-particle systems and configurations with more measurement outcomes. These investigations have led to significant progress in generalizing Bell inequalities to diverse physical contexts. For the (N, 2, 2) case, Mermin, Ardehali, Belinskii, and Klyshko derived a set of inequalities 14,15,16. For the (2, 2, d) case, Collins, Gisin, Linden, Massar, and Popescu proposed inequalities17, demonstrating that quantum violations increase with the dimensionality of the Hilbert space, consistent with numerical results 18. Extending this to the (N, 2, d) case, Son, Lee, and Kim (SLK) proposed a set of Bell inequalities, referred to as generic in their work 19, meaning that these inequalities are derived from the all-versus-nothing contradiction introduced by Greenberger, Horne, and Zeilinger (GHZ)20. Beyond this, significant research efforts have been devoted to generalizing Bell inequalities to various other scenarios 21,22,23,24,25,26.

While the SLK inequalities addressed the case of \(M=2\), they left open the question of extending the approach to arbitrary M. In this paper, we generalize the SLK inequalities to incorporate multiple observables for tripartite systems, focusing on the cases of \(M=3\) and \(M=4\), while also discussing arbitrary values of M. This extension is particularly significant because the original SLK inequalities with \(M=2\) are unable to demonstrate the quantum violations in odd-dimensional systems. Although a variant form of the SLK inequality was proposed to overcome this issue, it no longer retains the generic property of the original construction. In contrast, our generalization with increased values of M not only overcomes this limitation but also preserves the generic structure of the inequalities. As a result, it enables the detection of quantum violations in previously inaccessible odd-dimensional cases. To this end, we first propose a quantum operator involving multiple observables for calculating the quantum expectation values, and demonstrate the expectation values obtained by maximally entangled states. Then, to establish the quantum violations, we prove that no local realistic description can achieve these quantum values. In principle, the classical upper bounds can be calculated by analyzing the structure of the convex polytope under the local realistic description. However, this method becomes computationally intractable for multipartite and high-dimensional systems. In order to calculate the upper bounds, we introduce a geometric methodology. Our method transforms the problem of finding the upper bounds into identifying constraints in linear congruence relations. Although the quantum violations for \(M=4\) were previously established in Ref. 27, we rederive these results using our geometric method, obtaining consistent results and thereby demonstrating the versatility of our approach. Our generalized Bell inequality can also be considered a generic Bell inequality because its underlying derivation is based on the all-versus-nothing contradiction shown in Ref. 28. The geometric approach is not intended for a direct comparison with polytope-based methods in terms of computational efficiency, but rather offers conceptual and structural insights into the local realistic bounds.

Generic Bell operator with multiple observables

Suppose that three observers, mutually separated at a long distance, share a d-dimensional generalized GHZ state of three subsystems in the form of

$$\begin{aligned} \left| \psi \right\rangle =\frac{1}{\sqrt{d}} \sum _{n=0}^{d-1} \left| n,n,n\right\rangle , \end{aligned}$$
(1)

where \(\{\left| n\right\rangle \}\) is an orthonormal basis set. In d-dimensional Hilbert space, an orthogonal measurement is represented by an operator \(\hat{A}=\sum _{n=0}^{d-1} \lambda _n \left| n\right\rangle \left\langle n\right| \) with an eigenvalue \(\lambda _n\) and an eigenvector \(\left| n\right\rangle \). For the observables of the higher dimensional systems, we shall use the unitary observable, which have been widely employed in Bell’s theorem investigations for higher dimensional systems 17,19,27,29,30. To this end, the observable operator \(\hat{A}\) is assumed to take, as its eigenvalue, one of the values in \(\{1,\omega ,\dots ,\omega ^{d-1} \}\), where the values represent the dth roots of unity over the complex field, i.e., \(\omega = \exp (2 \pi i /d)\). Then, it turns out that the operator \(\hat{A}\) is unitary 30.

Let us briefly outline the construction of unitary observables employed in our Bell scenario, as introduced in Ref. 19. The method relies on applying quantum Fourier transformation and phase shift operations to a reference unitary observable. For our reference observable, we adopt \(\hat{Z}=\sum _{n=0}^{d-1} \omega ^{n} \left| n\right\rangle \left\langle n\right| \). The observable operator \(\hat{X}\) is obtained by applying the quantum Fourier transformation as

$$\begin{aligned} \hat{X}=\hat{F}\hat{Z}\hat{F}^{\dagger }=\sum _{n=0}^{d-1}\left| n+1\right\rangle \left\langle n\right| , \end{aligned}$$
(2)

where \(\left| n\right\rangle \equiv \left| n \mod d\right\rangle \) and the eigenvector of \(\hat{X}\) is given by

$$\begin{aligned} \left| n\right\rangle _x = \hat{F} \left| n\right\rangle = \frac{1}{\sqrt{d}} \sum _{m=0}^{d-1} \omega ^{-nm} \left| m\right\rangle . \end{aligned}$$
(3)

The operator \(\hat{X}\) shifts a basis state periodically: \(\left| n\right\rangle \rightarrow \left| n+1\right\rangle \) and \(\left| d-1\right\rangle \rightarrow \left| 0\right\rangle \). For the operator \(\hat{Y}\), the phase shift operation \(\hat{P}_{1/2}=\sum _n \omega ^{-n/2} \left| n\right\rangle \left\langle n\right| \) is applied to the \(\hat{X}\), i.e., \(\hat{P}_{1/2} \hat{X} \hat{P}^{\dagger }_{1/2}\), and consequently the observable \(\hat{Y}\) reads

$$\begin{aligned} \hat{Y} = \omega ^{-1/2} \left( \sum _{n=0}^{d-2} \left| n+1\right\rangle \left\langle n\right| - \left| 0\right\rangle \left\langle d-1\right| \right) . \end{aligned}$$
(4)

The eigenvector of \(\hat{Y}\) is given by

$$\begin{aligned} \left| n\right\rangle _y = \hat{P}_{1/2} \hat{F}\left| n\right\rangle =\frac{1}{\sqrt{d}} \sum _{m=0}^{d-1} \omega ^{-(n+1/2)m} \left| m\right\rangle . \end{aligned}$$
(5)

The operator \(\hat{Y}\) shifts a basis state as \(\left| n\right\rangle \rightarrow \omega ^{-1/2} \left| n+1\right\rangle \) and \(\left| d-1\right\rangle \rightarrow -\omega ^{-1/2} \left| 0\right\rangle \). The operators \(\hat{X}\), \(\hat{Y}\), and \(\hat{Z}\) reduce to the Pauli operators \(\hat{\sigma }_x\), \(\hat{\sigma }_y\), and \(\hat{\sigma }_z\), respectively, when \(d=2\). To increase the number of local observables, we employ the phase shift operations with rational phase values \(\nu \) as \(\hat{P}_{\nu }=\sum _n \omega ^{-\nu n} \left| n\right\rangle \left\langle n\right| \). Applying the \(\hat{P}_{\nu }\) to \(\hat{X}\) reads

$$\begin{aligned} \hat{X}(\nu )=\hat{P}_{\nu } \hat{X} \hat{P}^{\dagger }_{\nu } = \omega ^{-\nu } \left( \sum _{n=0}^{d-2} \left| n+1\right\rangle \left\langle n\right| + \omega ^{ \nu d} \left| 0\right\rangle \left\langle d-1\right| \right) . \end{aligned}$$
(6)

The observable \(\hat{X}(\nu )\) shifts the basis states \(\left| n\right\rangle \) as

$$\begin{aligned} \hat{X}(\nu ) \left| n\right\rangle = {\left\{ \begin{array}{ll} \omega ^{-\nu (1-d)} \left| 0\right\rangle & \text {for }n=d-1\\ \omega ^{-\nu } \left| n+1\right\rangle & \text {otherwise}. \end{array}\right. } \end{aligned}$$
(7)

Moreover, the generic Bell operator is constructed with components including the n-level raising operator \(\hat{X}^n(\nu )\), which shifts as

$$\begin{aligned} \hat{X}^{ n}(\nu ) \left| m\right\rangle = {\left\{ \begin{array}{ll} \omega ^{-\nu (n-d)} \left| m+n\right\rangle & \text {for }m \ge d-n \\ \omega ^{-\nu n} \left| m+n\right\rangle & \text {otherwise}. \end{array}\right. } \end{aligned}$$
(8)

To generate a set of M distinct observables, we utilize phase values \(\nu \) in the range \(\{0, 1/M,\cdots ,(M-1)/M\}\). In case of \(M=2\), the operator \(\hat{X}(\nu )\) for \(\nu =0\) reduces the \(\hat{X}\) in Eq. (2) and \(\hat{X}(1/2)\) reduces the \(\hat{Y}\) in Eq. (4).

We formulate a generic Bell operator composed of the observables \(\hat{X}(\nu )\) for tripartite d-dimensional systems. For our analysis involving three measurement settings per party, we select the phase values from the set \(\{0,1/3,2/3\}\). Utilizing these observables \(\hat{X}(\nu )\) along with their corresponding powers \(\hat{X}^{n}(\nu )\), we construct the Bell operator for a (3, 3, d) system as follows:

$$\begin{aligned} \hat{B}_{3} = \frac{1}{3^3} \sum _{n=1}^{d-1} \sum _{\gamma =0}^{2} \bigotimes _{j=1}^{3} \sum _{\eta _{j}=0}^{2} \Omega ^{\gamma \eta _{j}} \omega ^{n \eta _{j} /3} \hat{X}_{j}^{n}(\eta _{j} /3), \end{aligned}$$
(9)

where \(\Omega = \exp (2 \pi i/3)\) and \(\omega = \exp (2 \pi i/d)\). Note that nth powers operator \(\hat{X}_{j}^{n}(\eta _{j} /3)\) is the \(\eta _j\)th observable of jth party. The expectation is given by

$$\begin{aligned} \left\langle \psi \right| \hat{B}_3\left| \psi \right\rangle= & \frac{1}{3^3} \sum _{n=1}^{d-1} \sum _{\gamma =0}^{2} \sum _{ \vec {\eta }=0}^{2} \Omega ^{\gamma \tilde{\eta }} \omega ^{n \tilde{\eta }/3} E^{n}(\eta _{1},\eta _{2},\eta _{3}) \nonumber \\= & \frac{1}{3^{2}} \sum _{n=1}^{d-1} \sum _{ \vec {\eta }=0}^{2} \delta (\tilde{\eta } \equiv 0 \mod 3)\omega ^{n \tilde{\eta }/3} E^{n}(\eta _{1},\eta _{2},\eta _{3}), \end{aligned}$$
(10)

where \( \sum _{ \vec {\eta }=0 } \equiv \sum _{\eta _{1}=0} \sum _{\eta _{2}=0} \sum _{\eta _{3}=0}\), \( \tilde{\eta } \equiv \sum _{j} \eta _{j}\), and \(E^{n}(\eta _{1},\eta _{2},\eta _{3})\) is the nth order correlation function in the form of

$$\begin{aligned} E^{n}(\eta _{1},\eta _{2},\eta _{3})= \left\langle \psi \right| \hat{X}_{1}^{n}(\eta _{1} /3) \otimes \hat{X}_{2}^{n}(\eta _{2} /3) \otimes \hat{X}_{3}^{n}(\eta _{3} /3) \left| \psi \right\rangle . \end{aligned}$$
(11)

Since the operators \(\hat{X}_{j}\) and their powers \(\hat{X}_{j}^{n}\) are all unitary, we have \(\left| E^n\right| \le 1\). Consequently, the upper bound of Eq. (10) can be achievable with the generalized GHZ state \(\left| \psi \right\rangle \) in Eq. (1) as

$$\begin{aligned} \left\langle \psi \right| \hat{B}_{3} \left| \psi \right\rangle = d-1. \end{aligned}$$
(12)

This result follows from the fact that the generalized GHZ state is an eigenstate of the composite observables \(\hat{X}_{1}^{n}(\eta _{1} /3) \otimes \hat{X}_{2}^{n}(\eta _{2} /3) \otimes \hat{X}_{3}^{n}(\eta _{3} /3)\) in Eq. (9), as further elaborated in Ref. 28. In the Supplementary Information  S2, we show that the generalized GHZ state is the eigenstate of the Generic Bell operator.

Results and discussion

Local hidden variables (LHVs) theories assume that the measurement outcomes are predetermined prior to actual measurement, with physical influences propagating no faster than the speed of light. Within this framework, the LHVs theories characterize quantum correlations of composite measurements as

$$\begin{aligned} \int d \lambda \rho (\lambda ) \prod _{j=1}^{3} X_j (\lambda ), \end{aligned}$$
(13)

where \(\rho (\lambda )\) is the statistical distribution of hidden variables \(\lambda \) with \(\rho (\lambda ) \ge 0\) and \(\int d \lambda \rho (\lambda )=1\). The outcome of measurement \(X_j(\eta _j/3)\) is predetermined as its eigenvalue \(\omega ^{\alpha (j,\eta _j)}\), where \(\alpha (j, \eta _{j})\) is integer. As a result, the Bell function based on LHVs is given by

$$\begin{aligned} B_{3}^{\text {LHV}} = \frac{d}{3^{2}} \sum _{ \vec {\eta }=0}^{2} \delta _{3}(\tilde{\eta }) \delta _{d}(\tilde{\eta } /3 + \tilde{\alpha }) -1 \equiv \mathscr {L} d -1, \end{aligned}$$
(14)

with \(\tilde{\eta } = \sum ^{3}_{j=1}\eta _{j}\) and \(\tilde{\alpha } = \sum ^{3}_{j=1}\alpha (j,\eta _{j})\). Here, \(\delta _d (\alpha )=1\) if \(\alpha \equiv 0 \mod d\) and \(\delta _d (\alpha )=0\) otherwise. The explicit derivation of Eq. (14) is presented in the Supplementary Information  S1, and the function \(\mathscr {L}\) can be rewritten as

$$\begin{aligned} \mathscr {L}= & \frac{1}{3^2} [\delta _d (a_{1} + a_{2} + a_{3}) + \delta _d (a_{1} + b_{2} + c_{3} +1) + \delta _d (a_{1} + c_{2} + b_{3} +1) \nonumber \\ & + \delta _d (b_{1} + a_{2} + c_{3} +1) + \delta _d (b_{1} + b_{2} + b_{3} +1) + \delta _d (b_{1} + c_{2} + a_{3} +1) \nonumber \\ & + \delta _d (c_{1} + a_{2} + b_{3} +1) + \delta _d (c_{1} + b_{2} + a_{3} +1) + \delta _d (c_{1} + c_{2} + c_{3} +2) ]. \end{aligned}$$
(15)

Here we employ alternative notations with \(a_j\), \(b_j\), and \(c_j\), where ab, and c indicate the 1st, 2nd, and 3rd observables, respectively, and the subscript j denotes the jth party. In other words, these correspond to the following replacements: \(\alpha (j, 0) \rightarrow a_j\), \(\alpha (j, 1) \rightarrow b_j\), and \(\alpha (j, 2) \rightarrow c_j\). The maximum of \(B_{3}^{\text {LHV}}\) depends on \(\mathscr {L}\), which satisfies the constraint \(0 \le \mathscr {L} \le 1\). When \(\mathscr {L} =1\), the classical upper bound becomes \(B_{3}^{\text {LHV}} = d-1\), which is equivalent to the quantum upper bound, resulting in no quantum violation. Consequently, the quantum violations can be observed whenever \(\mathscr {L} < 1\).

To characterize these violations systematically, we propose a geometrical approach to determine the classical upper bound. To demonstrate our method, we first apply it to the simpler (3, 2, d) system 19. In this case, the Bell function based on LHVs is given by

$$\begin{aligned} B_{2}^{\text {LHV}} = \frac{d}{4} \left[ \delta _d (a_1 + a_2 + a_3) + \delta _d (b_1 + a_2 + b_3+1) + \delta _d (b_1 + b_2 + a_3+1) + \delta _d (a_1 + b_2 + b_3+1)\right] -1, \end{aligned}$$
(16)

and it consists of four delta functions with variables \(a_i\) and \(b_j\). It is shown that no values of \(a_i\) and \(b_j\) can simultaneously satisfy all four delta functions, with three being the maximum number that can be satisfied 19. Consequently, the classical upper bound equals \(3d/4 -1\). We reproduce the result by using our geometrical approach.

Consider a square with eight vertices depicted in Fig. 1a. Each vertex represents an integer value \(a_j\) or \(b_j\), and each solid line corresponds to one of the four delta functions in Eq. (16). Vertices connected by dotted lines are constrained to have identical values.

Fig. 1
figure 1

Geometrical representation of the generic Bell inequalities for two measurements settings. (a) Four delta functions \(\delta _d (a_1 + a_2 + a_3)\), \(\delta _d (b_1 + a_2 + b_3+1)\), \(\delta _d (b_1 + b_2 + a_3+1)\), and \(\delta _d (a_1 + b_2 + b_3+1)\) represented by solid lines connecting variables \(a_i\) and \(b_j\) at each vertex. (b) Value assignment showing that at most three delta functions can be simultaneously satisfied. The variables in the blue lines indicate solutions satisfying the corresponding delta functions from the left diagram, while following the circular path clockwise leads to the red line which represents a constraint that cannot be satisfied, proving that all four delta function cannot be satisfied simultaneously. This geometric approach demonstrates the classical upper bound as 3d/4 - 1.

Integer assignments to satisfy the delta functions proceed in a clockwise sequence, as in Fig. 1b. The systematic assignment demonstrates the maximum number of delta functions that can be simultaneously satisfied as follows:

  1. 1.

    The variables \(a_1\) and \(a_3\) serve as free parameters, while \(a_2 = -a_1 -a_3\) ensures satisfaction of \(\delta _d (a_1 +a_2 +a_3)=1\).

  2. 2.

    Subsequently, \(b_1=a_1 +a_3 -b_3 -1\) is determined to satisfy \(\delta _d (b_1 +a_2 +b_3 +1)=1\).

  3. 3.

    Parameter \(b_2\) necessarily assumes the value \(-2a_3 -a_1 +b_3\) to satisfy \(\delta _d (b_1 +b_2 +a_3 +1)=1\).

  4. 4.

    Finally, the delta function \(\delta _d (a_1 + b_2 + b_3+1)\) becomes \(\delta _d (-2a_3 + 2b_3 + 1)\), indicated by the red arrow.

The last delta function cannot equal unity for even d-dimensional system by Theorem 1. The linear congruence \(2(-a_3+b_3) +1 \equiv 0 \mod d\) has no solution for even d because \(g=\textrm{gcd}(2, \textrm{even}~d) = 2\) and \(2 \not \mid -1\), where the notation \(a \not \mid b\) indicates that a does not divide b. Consequently, \(\delta _d (-2a_3 + 2b_3 + 1) = 0\), thus the maximum number of delta functions that can simultaneously equal unity is 3, establishing that \(B_{2}^{\text {LHV}} \le 3d/4 -1\).

Theorem 1

A linear congruence is a congruence relation of the form

$$\begin{aligned} aX \equiv b \mod m \end{aligned}$$
(17)

where \(a,b,X,m \in \mathbb {Z}, a \ne 0, m > 0\). Let \(g=\textrm{gcd}(a,m)\). Then the linear congruence has a solution if and only if b is divisible by g.

A key aspect of our method is the closed loop, wherein values are assigned in consecutive order to satisfy each delta function, ultimately yielding an incompatible constraint. This approach remains valid regardless of the initial assignment point, due to the permutation symmetries inherent in the linear congruence relations of the delta functions.

Fig. 2
figure 2

Geometrical representation for calculating the classical upper bound with three measurement settings. Hexagonal representation of the nine delta functions, with vertices representing variables and dotted lines connecting identical values. (a)–(c) Three distinct loops generate the constraints, confirming that at most seven delta functions can simultaneously equal unity.

Now we apply our geometric approach to the (3, 3, d) case. A hexagonal representation is employed to visualize the nine delta functions of \(\mathscr {L}\) in Eq. (15), as depicted in Fig. 2. Similar to the two observables case, each vertex represents variables in the delta functions, with variables connected by dotted lines constrained to have identical values. The solid lines correspond to all delta functions of \(\mathscr {L}\). Following the same methodology as in the two observables case, we identify three distinct closed loops, each composed of six delta functions with each loop imposing its own incompatible constraint. For the example of the first loop in Fig. 2a, assignments for variables are as follows:

  1. 1.

    Set \(a_2 = -a_1 -a_3\) to satisfy \(\delta _d (a_1 +a_2 +a_3)=1\).

  2. 2.

    Set \(c_1=a_1 -b_3 + a_3 -1\) to satisfy \(\delta _d (c_1 +a_2 +b_3 +1)=1\).

  3. 3.

    Set \(b_2=-a_1 + b_3 - 2a_3\) to satisfy \(\delta _d (c_1 +b_2 +a_3 +1)=1\).

  4. 4.

    Set \(b_1=a_1 -2b_3 + 2a_3 -1\) to satisfy \(\delta _d (b_1 +b_2 +b_3 +1)=1\).

  5. 5.

    Set \(c_2=-a_1 +2b_3 - 3a_3\) to satisfy \(\delta _d (b_1 +c_2 +a_3 +1)=1\).

  6. 6.

    Finally, the delta function \(\delta _d (a_1 + c_2 + b_3+1)\) is reduced to \(\delta _d (-3a_3 + 3b_3 + 1)\), indicated by the red arrow.

According to Theorem 1, the linear congruence of the last delta function, \(-3a_3 + 3b_3 +1 \equiv 0 \mod d\), has no solution for \(d=3k\), where k is an integer. This implies that \(\delta _d(-3a_3 + 3b_3 +1)=0\), and consequently only five delta functions, indicated by the blue lines, can equal unity. This result indicates the quantum violation since it establishes \(\mathscr {L} < 1\). However, to calculate the classical upper bound, we can examine the remaining three delta functions to obtain the exact upper bound. The remaining delta functions, denoted by circled numbers \(\textcircled {1}\), \(\textcircled {2}\), and \(\textcircled {3}\), contain an undetermined variable \(c_3\). With the assigned variables by the closed loop analysis, the three delta functions are reduced as follows: \(\textcircled {1} \rightarrow \delta _d(-2a_3 + b_3 + c_3 + 1)\), \(\textcircled {2} \rightarrow \delta _d(a_3 -2 b_3 + c_3)\), and \(\textcircled {3} \rightarrow \delta _d(-2a_3 + b_3 + c_3 + 1)\). Note that no values of \(a_3, b_3\), and \(c_3\) exist for which all three delta functions equal to unity simultaneously, instead at most two delta functions can be satisfied concurrently. Consequently, there exists a solution of \(a_j\), \(b_j\), and \(c_j\) that satisfies at most seven out of the nine delta functions. The classical upper bound of the generic Bell inequality for the (3, 3, d) system is \(B_{3}^{\text {LHV}} \le 7d/9 -1\), which contradicts the quantum upper bound \((d-1)\). The second and third loops in Fig. 2b and c yield the identical results, confirming that at most seven delta functions can simultaneously equal unity.

We now demonstrate the application of our geometric methodology to the generic Bell inequality involving four measurement settings, i.e., (3, 4, d) case. While the quantum violation for the (3, 4, d) system was previously examined in Ref. 27, we present here an alternative derivation employing our geometric approach, which both confirms the previous finding and demonstrates the methodological advantages of geometric representation. The generic Bell operator for (3, 4, d) system reads

$$\begin{aligned} \hat{B}_{4} = \frac{1}{4^3} \sum _{n=1}^{d-1} \sum _{\gamma =0}^{3} \bigotimes _{j=1}^ {3} \sum _{\eta _{j}=0}^{3} \Omega ^{\gamma \eta _{j}} \omega ^{n \eta _{j} /4} \hat{X}_{j}^{n}(\eta _{j} /4), \end{aligned}$$
(18)

where \(\Omega = \text {exp}(2 \pi i/4)\) and \(\omega = \text {exp}(2 \pi i/d)\). It is remarkable that the tripartite generalized GHZ state \(\left| \psi \right\rangle =\sum _{n=0}^{d-1} \left| n,n,n,n\right\rangle /\sqrt{d}\) is an eigenstate with eigenvalue \((d-1)\), i.e., \(\left\langle \psi \right| \hat{B}_{4}\left| \psi \right\rangle = d-1\). Note that the quantum upper bound for (3, 4, d) case is equivalent to the cases of (3, 2, d) and (3, 3, d). The Bell function based on LHVs for (3, 4, d) system can also be written in terms of the function \(\mathscr {L}\) as

$$\begin{aligned} B_{4}^{\text {LHV}}=\mathscr {L}d-1, \end{aligned}$$
(19)

where the function \(\mathscr {L}\) is given by

$$\begin{aligned} \mathscr {L} = \frac{1}{4^2} \sum _{\eta _{1},\eta _{2},\eta _{3}=0}^{3} \delta _4(\tilde{\eta }) \delta _d(\tilde{\eta } /4 + \tilde{\alpha }). \end{aligned}$$
(20)
Fig. 3
figure 3

Geometrical representation for calculating the classical upper bound with four measurement settings. All sixteen delta functions can be divided by four groups. As each group has the equivalent structure individually, the classical upper bound from one group is essential to calculate the total values of the classical upper bound.

From the function \(\mathscr {L}\), the sixteen delta functions are given by

$$\begin{aligned} \begin{aligned} {\left\{ \begin{array}{ll} & \delta _d(a_1 + a_2 + a_3), \\ & \delta _d(c_1 + a_2 + c_3+1) ,\\ & \delta _d(c_1 + c_2 + a_3+1) ,\\ & \delta _d(a_1 + c_2 + c_3+1), \end{array}\right. } \end{aligned}\quad \begin{aligned} {\left\{ \begin{array}{ll} & \delta _d(d_1 + a_2 + b_3+1) ,\\ & \delta _d(d_1 + c_2 + d_3+2), \\ & \delta _d(b_1 + c_2 + b_3+1) ,\\ & \delta _d(b_1 + a_2 + d_3+1), \end{array}\right. } \end{aligned}\quad \begin{aligned} {\left\{ \begin{array}{ll} & \delta _d(d_1 + d_2 + c_3+2), \\ & \delta _d(b_1 + d_2 + a_3+1) ,\\ & \delta _d(b_1 + b_2 + c_3+1) ,\\ & \delta _d(d_1 + b_2 + a_3+1), \end{array}\right. } \end{aligned}\quad \begin{aligned} {\left\{ \begin{array}{ll} & \delta _d(c_1 + d_2 + d_3+2), \\ & \delta _d(c_1 + b_2 + b_3+1) ,\\ & \delta _d(a_1 + b_2 + d_3+1) ,\\ & \delta _d(a_1 + d_2 + b_3+1). \end{array}\right. } \end{aligned} \end{aligned}$$

In order to apply the closed loop analysis, we employ an octagonal shape depicted in Fig. 3. All sixteen delta functions are represented by the solid lines in Fig. 3. Note that the sixteen delta functions can be categorized into four groups and each group has the same structure as that of (3, 2, d) system in Eq. (16). Therefore, the four delta functions in each group cannot all be unity for even d-dimensional system, with at most three delta functions being able to equal unity. Figure 3a–d represent the closed loops corresponding to each group of the delta functions, and each red line indicates the constraint delta function. Consequently, the \(\mathscr {L} =12/16=3/4\), and thus the classical upper bound of the generic Bell inequality for the (3, 4, d) system can be calculated as \(B_{4}^{\text {LHV}} \le 3d/4 -1\). This also can be violated by the quantum upper bound of \((d-1)\).

Finally, it would be interesting to consider how our geometric methodology can contribute to scenarios with arbitrary number of observables. The generic Bell operators for the (3, Md) case are given by

$$\begin{aligned} \hat{B}_{M} = \frac{1}{M^3} \sum _{n=1}^{d-1} \sum _{\gamma =0}^{M-1} \bigotimes _{j=1}^{3} \sum _{\eta _{j}=0}^{M-1} \Omega ^{\gamma \eta _{j}} \omega ^{n \eta _{j} /M} \hat{X}_{j}^{n}(\eta _{j} /M), \end{aligned}$$
(21)

where \(\Omega = \exp (2 \pi i/M)\) and \(\omega = \exp (2 \pi i/d)\). Similar to our previous reasoning, the unitarity of the employed observables guarantees that the upper bound of the \(\hat{B}_{M}\) is given by \((d-1)\). Moreover, the tripartite generalized GHZ state in Eq. (1) achieves the upper bound, i.e., \(\left\langle \psi \right| \hat{B}_{M} \left| \psi \right\rangle = (d-1)\). This is because the mathematical formalism used to construct the generic Bell operators \(\hat{B}_{M}\) ensures that they are designed to have the eigenvalue \((d-1)\) with respect to the d-dimensional GHZ state \(\left| \psi \right\rangle \). To demonstrate a quantum violation, we need to prove that the LHVs cannot achieve the quantum maximum \((d-1)\), i.e., show \(\mathscr {L}<1\), which reads

$$\begin{aligned} B_{M}^{\text {LHV}} = \frac{d}{M^{2}} \sum _{ \vec {\eta }=0}^{M-1} \delta _{M}(\tilde{\eta }) \delta _{d}(\tilde{\eta } /M + \tilde{\alpha }) -1 \equiv \mathscr {L} d -1, \end{aligned}$$
(22)

with \(\tilde{\eta } = \sum ^{3}_{j=1}\eta _{j}\) and \(\tilde{\alpha } = \sum ^{3}_{j=1}\alpha (j,\eta _{j})\). Finding a closed loop from our geometrical method can lead to the condition \(\mathscr {L}<1\). The theoretical framework established in Ref. 28 proved the existence of the constraints in the form of linear congruences for arbitrary values of M. Specifically, these constraints exist when the dimension d satisfies the relation \(d=Mk\), where k is an integer. This suggests that suitable geometric structures with closed loops can always be identified for arbitrary numbers of observables. Consequently, the quantum violations can be demonstrated in principle, although calculating precise classical upper bounds requires a more comprehensive analysis of the complete set of delta function combinations and their corresponding constraint relations.

Conclusion

We have demonstrated quantum violations of generic Bell inequalities involving multiple observables beyond the two-observable scenario. We constructed observable operators for each subsystem by employing quantum Fourier transformation and phase shift operations. Using these observables, we proposed generic Bell operators for systems with three and four observables per party, extending the original Son-Lee-Kim framework 19. A key contribution of our work is the introduction of a geometric methodology that enables systematic calculation of the upper bounds based on local hidden variables for the generic Bell inequalities. Through this approach, we established quantum violations for the (3, 3, d) case when \(d=3k\) and for the (3, 4, d) case with even dimensions d. Our approach can be extended to arbitrary values of M, where we expect the quantum violations to exist for dimensions satisfying \(d=Mk\), with k being an integer. Notably, our Bell operators consistently achieve a quantum upper bound of \((d-1)\) using the generalized Greenberger-Horne-Zeilinger state. Finally, we remark that it would be worth exploring the application of our geometric methodology to calculate the exact classical upper bounds for the generic Bell inequalities with arbitrary numbers of observables, which may further illuminate the fundamental boundary between quantum and classical physics.