An exact classical threshold in the binary triangle network
Abstract
We determine exactly when the distribution , with and , can be generated by three independent classical sources in a triangle network. It is realizable if and only if , where is the unique root in of . This proves the optimality of the attaining model of Gisin et al. (Nat. Commun., 2020), also used by da Silva, Pozas-Kerstjens, and Parisio (Phys. Rev. A, 2025) in their conjectured classical boundary. More generally, the same threshold bounds the average pair correlation whenever , without assuming symmetric responses, identical source laws, or finite source spaces. The proof first reduces this constrained optimization to deterministic responses with at most three values per source. Exact rational inequalities then bound every response-table orbit except the attaining one by . For the remaining orbit, the constrained stationary equations force identical source laws and determine the quartic. Thus a symmetric optimizer is obtained from the unrestricted problem, rather than assumed. The appendix provides the complete exact-arithmetic program that generates and verifies the finite inequalities, without external data or certificate files.
Note. This paper was generated entirely by AI, including MiMo, using an automated research pipeline developed by Chenghua Liu and Hanyu Li.
1 Introduction
Independent sources impose correlation constraints that are absent from the usual Bell-local model with a single shared source. Fritz’s correlation-scenario framework [1] makes this distinction explicit: networks can exhibit nonlocality even without measurement inputs. The triangle is the smallest cycle of pairwise sources, with three parties and no common source. Renou et al. [2] exhibited genuine quantum nonlocality in this geometry using entangled states and joint measurements. Characterizing its classical correlations is a prerequisite for deciding what can be explained by independent classical resources alone.
In a classical triangle model, three independent sources have probability laws , and the output distribution has the form
| (1) |
Throughout this paper, . The source probability spaces are arbitrary, and the response kernels are measurable probability distributions. They may use independent private randomness. A distribution admitting (1) is called triangle-local. Neither the response kernels nor the source laws are assumed to coincide.
Even with binary outputs, the classical set is difficult to describe. A shared random choice between two triangle models introduces a common source and need not produce another triangle model. In particular, symmetry of an observed distribution does not justify averaging its hidden-variable realizations or restricting them to symmetric ones. The inflation technique gives necessary compatibility conditions through consistency relations among copies of latent variables [3]. Its hierarchy is asymptotically complete [4], but this does not by itself yield an exact algebraic threshold at a finite level.
We consider the one-parameter family
| (2) |
Its one-body and three-body moments vanish, while each pair moment is . Gisin et al. [5] constructed a triangle-local model on this line with . Their hexagon-based no-signaling constraints imply the necessary bound , which does not exploit the vanishing three-body moment and does not establish optimality of that model. The later study of da Silva, Pozas-Kerstjens, and Parisio [6] uses the same construction within a proposed boundary for symmetric binary distributions. The matching universal bound at this point remained conjectural. We prove it, allowing arbitrary asymmetric classical models.
The result is stronger than a characterization of (2). For an arbitrary binary distribution, define
| (3) |
Only two scalar constraints are needed.
Theorem 1 (Sharp aggregate bound).
Every classical triangle model with binary outputs satisfying obeys
| (4) |
where is the unique root in of
| (5) |
The bound is attained.
Corollary 2.
The distribution (2) is triangle-local if and only if .
Theorem 1 permits unequal individual means and unequal pair correlations. This aggregate formulation also enables the proof. Rosset, Gisin, and Wolfe [7] established finite hidden-variable cardinality bounds for general networks and the closed semialgebraic nature of their classical correlation sets. We use the same source-wise convexity principle, but preserve only three aggregate moments to obtain compactness. At a constrained maximum, normalization and the two zero-moment constraints then reduce each source to three values. This is a reduction of an optimizing model, not a claim that every binary triangle distribution has such a realization.
The resulting deterministic response tables have 61,872 symmetry orbits. Exact affine bounds on products of source-probability simplexes separate every orbit except that of the attaining table from the optimum: their constrained pair averages are at most . The remaining orbit is optimized analytically. The finite gap excludes its boundary, and its interior stationary equations force identical source laws. Thus the argument proves the existence of a symmetric optimizer without imposing symmetry on the original optimization. It does not assert uniqueness of unrestricted hidden-variable representations.
Our result concerns an exact classical compatibility boundary, not quantum realizability or the rest of the boundary proposed in [6]. Recent work of Don et al. [8] addresses a different binary family, the noisy distributions, combining nonlocality certificates with quantum models that reproduce selected distributions to machine precision.
2 Attainment of the threshold
We first verify the attaining construction and identify the table used in the upper-bound argument. The model appears in [5, Supplementary Note 2, Eq. (25)], up to exchanging the second and third source values and converting response probabilities into signs. We use the ordering of [6, Appendix B.1].
Let the three sources be independent and identically distributed on , with probabilities , and let every party use the symmetric response table
| (6) |
Choose to be the root in of
| (7) |
and put
| (8) |
The polynomial in (7) is strictly decreasing on , since its derivative is there. Its values at and have opposite signs, so the stated root exists and is the only root in . Moreover, , and
where the strict inequality follows because decreases on this interval. Thus . Numerically,
| (9) |
Expanding the moments of (6) gives
| (10) | ||||
After substituting (8), these become
| (11) |
Equation (7) therefore implies
| (12) |
The source laws coincide and is symmetric, so the output distribution is invariant under all party permutations. Its individual means consequently vanish and its pair moments coincide. Expanding
shows that it is with .
To identify this value, eliminate from and (7). Set . Reduction of the latter polynomial using the quadratic gives
Multiplying the quadratic by and using this identity yields
| (13) |
Exact rational evaluations place in , and hence in . The derivative is positive throughout this last interval. Thus the attained value is precisely from (5).
Every is also attainable. Let be mutually independent private signs, independent of the model, with common mean . Replacing the outputs by multiplies the one-body, pair, and three-body moments by , respectively. The resulting moments therefore give exactly . This local postprocessing requires no shared random choice between models.
3 The ternary reduction and finite separation
For the upper bound, we first make the aggregate optimization compact. We then reduce a maximizing model to three values per source and separate its finitely many response-table types. The source probabilities remain continuous variables throughout.
Lemma 3 (Finite barycentres).
Let be a bounded measurable map from a probability space to . Its mean is a convex combination of at most values of . The same conclusion holds with the values chosen from any prescribed full-measure subset of the domain.
Proof.
Restrict to the prescribed full-measure subset, if any, and let . The point belongs to the closed convex hull of the range. If lies on the relative boundary of , choose a supporting affine functional that is nonnegative on , vanishes at , and is nonconstant on the affine hull of . Since , we have almost surely. Restricting the domain to this full-measure set decreases the dimension of the affine hull. After at most such restrictions, lies in the relative interior of the closed convex hull of the remaining range.
A point in this relative interior belongs to the convex hull itself. Indeed, in positive affine dimension, choose a small simplex around inside the closed convex hull. Approximate its vertices by points of the convex hull of the range closely enough that remains inside the simplex. In affine dimension zero the assertion is immediate. Carathéodory’s theorem now expresses as a convex combination of at most values of . ∎
Lemma 4 (Ternary optimizing reduction).
The maximum of over all classical triangle models satisfying is attained by a deterministic model with at most three values of each source.
Proof.
First make the responses deterministic. Introduce independent uniform random variables on , independent of all sources, and set exactly when , with analogous rules for . Attach to , to , and to ; the other recipient of each seed ignores it. The enlarged sources remain mutually independent, and each output is now a measurable deterministic function of its two incident sources.
For a fixed deterministic model, define
where the outputs are evaluated at . This is a bounded measurable map whose mean is . Lemma 3 replaces by a source supported on at most four values without changing these moments. Apply the same operation to and then , retaining the earlier finite supports. Thus every attainable aggregate triple has a deterministic realization with at most four values per source.
Pad smaller alphabets with zero-probability values. There are finitely many deterministic response tables on three four-valued sources, and for each table the aggregate moments depend continuously on three compact probability simplexes. Their finite union is therefore the entire compact set of attainable aggregate triples. The constraint set is closed and nonempty, so a global maximum of exists.
Take a deterministic four-valued realization of a global maximum. With the responses and the other two source laws fixed, optimization over one source law is a linear program with three equality constraints: normalization, , and . An extreme point of its feasible polytope has at most three positive coordinates. To see this, a support of size greater than three would admit a nonzero vector in the kernel of the three constraint rows, supported on those coordinates. Both sufficiently small positive and negative perturbations along it would remain feasible, contradicting extremality. Choose an optimal extreme point. Its objective value is still the global maximum. Repeating this step for the other two sources preserves the already reduced supports and yields the claim. ∎
For three-valued sources, a deterministic response table is a signing of the 27 edges of the complete tripartite graph . The three vertex classes correspond to the sources, and the sign of an edge specifies the response to its two endpoint values. Independent source laws assign probability weights to the three vertex classes.
Permuting values within each source, permuting the three parties, and flipping all output signs preserve the constrained optimization. The global sign flip negates and leaves unchanged. The symmetry group has order
Its action on the signings has 61,872 orbits, as verified by both enumeration and Burnside’s lemma in Appendix A.
Lemma 5 (Certified finite gap).
For every deterministic ternary response-table orbit except the orbit of (6), and every choice of the three independent source probability laws,
| (14) |
Zero source probabilities are allowed.
Computer-assisted proof.
Write the source probability vectors as , where
For a fixed response table, define
| (15) |
Independence makes affine in each source probability vector separately. Let be triangles with vertices , respectively. If , , and are their barycentric representations, then
Hence throughout the product cell lies in the convex hull of its 27 corner values .
A rational pair satisfying
| (16) |
therefore proves (14) on that cell. Starting from , the program either verifies such a pair or bisects an edge of one source triangle. The two resulting product cells cover the parent, including its boundary. A finite binary tree whose leaves all satisfy (16) proves the bound on the whole domain.
The complete program in Appendix A enumerates the response-table orbits and generates the exceptional orbit directly from (6). For each of the other 61,871 orbits, it constructs and checks a covering tree. All 27 inequalities at every accepted leaf are checked by exact integer arithmetic. An unaccepted cell encountered at a stopping limit causes failure, not acceptance. The full run terminates successfully with the values in Table 1. Consequently every nonexceptional orbit, with all continuous source laws included, satisfies (14). ∎
| Quantity | Verified value |
|---|---|
| Response-table orbits, including the exceptional orbit | 61,872 |
| Orbits certified by (14) | 61,871 |
| Nodes in all product-simplex partition trees | 5,103,027 |
| Affine leaf witnesses | 2,582,449 |
| Maximum bisection depth | 27 |
The strict inequality isolates the attaining orbit. No claim that is the optimal bound for the other orbits is needed.
4 Optimality on the exceptional orbit
It remains to optimize (6) over three possibly different source laws. Write these as
with nonnegative coordinates, and put . Define
| (17) | ||||
In each sum indexed by , the indices are the other two elements of .
These expressions follow from the positive entries of . The quantity is the sum of the three probabilities of a positive output, and is the probability that all three outputs are positive. A source value equal to forces both incident outputs to be negative. If all source values lie in , at least two values equal to give three positive outputs; exactly one value equal to gives two. Thus the sum of the three probabilities of two specified positive outputs is . Expanding the products of the indicators now gives
| (18) | ||||
In particular,
| (19) |
We first analyze stationary points in the interior . The finite gap will then exclude a boundary maximizer.
Lemma 6 (Regularity).
The gradients of and , with respect to the six coordinates , are linearly independent whenever and for all .
Proof.
By (18), it suffices to consider . The gradient of is nonzero, since . Suppose . The derivatives give
Thus , and subtraction of the equations gives and . The derivatives would then imply
But , so , contradicting this equality. ∎
Lemma 7 (Stationary laws coincide).
Every interior stationary point of , subject to , for the table (6) satisfies and .
Proof.
Lemma 6 permits Lagrange multipliers . With , (18) gives
| (20) |
where
| (21) |
The six derivative equations are
| (22) | ||||
| (23) |
Suppose first that , so . Dividing (22) by gives , hence and . Then , and (23) reduces to , a contradiction. Therefore .
Dividing (22) by now gives three equations
The three quantities must therefore all equal . Set and . Then
| (24) |
Substitution into (23), followed by division by , yields
| (25) |
If , positivity of forces , whereas (25) forces or . Consequently .
Put and . Subtracting pairs of (25) gives
| (26) |
Assume that the are not all equal. If , an unequal pair in (26) gives , and then (25) gives , a contradiction. Thus . If all three were distinct, (26) would force all of them to equal . Therefore exactly two coincide. Relabel so that . Applying (26) to the pairs and gives . The equation for in (25) then implies
| (27) |
Hence . But (25) now reads , again contradicting positivity. All coincide, and (24) gives the same conclusion for all . ∎
Proof of Theorem 1.
By Lemma 4, a global maximizer has deterministic responses and at most three values per source. Pad smaller alphabets to three values. Section 2 gives a feasible value , so Lemma 5 places the maximizing response table in the orbit of (6). Apply the corresponding relabelings and, if necessary, the global output flip to put it in that form.
Every source value has positive probability. Otherwise flip one response entry incident to a zero-probability source value. This changes no observed probability. The three copies of together have nine positive entries; the modified table has eight or ten. Every table in the exceptional orbit has either nine or eighteen positive entries, because its symmetries only permute entries or complement all signs. The modified table is therefore nonexceptional, contradicting Lemma 5 and the value .
The maximizing laws are thus interior, and Lemmas 6 and 7 show that all three are . Equations (19) become
The first gives (8). Substituting it into the second gives (7). Since , we have , where that quartic has exactly one root. The maximum is therefore , and its attainment was proved in Section 2. ∎
References
- [1] T. Fritz, Beyond Bell’s theorem: correlation scenarios, New Journal of Physics 14, 103001 (2012), doi:10.1088/1367-2630/14/10/103001.
- [2] M.-O. Renou, E. Bäumer, S. Boreiri, N. Brunner, N. Gisin, and S. Beigi, Genuine quantum nonlocality in the triangle network, Physical Review Letters 123, 140401 (2019), doi:10.1103/PhysRevLett.123.140401.
- [3] E. Wolfe, R. W. Spekkens, and T. Fritz, The inflation technique for causal inference with latent variables, Journal of Causal Inference 7(2), 20170020 (2019), doi:10.1515/jci-2017-0020.
- [4] M. Navascués and E. Wolfe, The inflation technique completely solves the causal compatibility problem, Journal of Causal Inference 8(1), 70–91 (2020), doi:10.1515/jci-2018-0008.
- [5] N. Gisin, J.-D. Bancal, Y. Cai, P. Remy, A. Tavakoli, E. Zambrini Cruzeiro, S. Popescu, and N. Brunner, Constraints on nonlocality in networks from no-signaling and independence, Nature Communications 11, 2378 (2020), doi:10.1038/s41467-020-16137-4. The attaining model is in Supplementary Note 2, Eq. (25).
- [6] J. M. da Silva, A. Pozas-Kerstjens, and F. Parisio, Local models and Bell inequalities for the minimal triangle network, Physical Review A 112, L030403 (2025), doi:10.1103/cg9v-wv2t; arXiv:2503.16654v2. Appendix references in the text refer to this arXiv version.
- [7] D. Rosset, N. Gisin, and E. Wolfe, Universal bound on the cardinality of local hidden variables in networks, Quantum Information and Computation 18, 910–926 (2018), arXiv:1709.00707.
- [8] E. Don, J. Bavaresco, P. Lipka-Bartosik, N. Gisin, N. Brunner, and A. Pozas-Kerstjens, The minimal example of quantum network Bell nonlocality, preprint (2026), arXiv:2605.00981v1.
Appendix A Exact verification of the finite gap
This appendix specifies the finite calculation used in Lemma 5 and gives its complete executable implementation. The inputs are the response table (6), the rational bound , and the enumeration and subdivision rules below. No external orbit list, certificate, data file, or numerical witness is required.
Number source values by . Encode a response table by a 27-bit word, with bit one denoting output . The bit positions are
The three copies of (6) give word , whose least image under all symmetries is .
For an edge permutation arising from source-value and party permutations, let be its number of cycles on the 27 edges. It fixes signings. Combining a permutation with the global sign flip fixes a signing only when every edge cycle has even length; this is impossible on an odd number of edges. The cycle counts for the 1296 edge permutations are
| 3 | 5 | 7 | 9 | 11 | 15 | 17 | 21 | 27 | |
|---|---|---|---|---|---|---|---|---|---|
| Multiplicity | 144 | 540 | 36 | 398 | 36 | 105 | 27 | 9 | 1 |
Burnside’s lemma consequently gives
The program constructs all 1296 permutations explicitly and checks this sum. It also scans all words in increasing order. On encountering an unmarked word, it marks all its permutation images and their complements. The word is then the least representative of a new orbit. This scan covers every signing and independently checks the orbit count. The exceptional orbit is computed from (6), not read from a supplied list.
For each nonexceptional representative, the initial cell is the product of three full source simplexes. At total bisection depth , store its corner values as , with integral , and set
| (28) |
Thus (16) is equivalent to the 27 half-plane constraints .
The routine bound_cell constructs a rational point satisfying these constraints, if it finds one, by processing the half-planes in order. When the current point violates a new constraint, the preceding constraints are restricted to the new boundary line. They give lower and upper bounds on one coordinate. The routine chooses zero if it is allowed, and otherwise an interval endpoint. The resulting point is an axis intercept or an intersection of two boundary lines. It accepts a cell only after independently rechecking all 27 inequalities by cross multiplication with a positive denominator. The validity of an accepted cell therefore depends on these exact comparisons, not on any completeness claim about the witness search.
An unaccepted cell is subdivided along the longest edge among its three source triangles, measured in Euclidean barycentric coordinates. Ties are resolved in source and vertex order. Replacing one endpoint and then the other by the midpoint gives two triangles whose union is the original triangle. At a replaced endpoint the moment numerators are added, while all other moment numerators are doubled, producing the common denominator . Vertex numerators in V are updated by the same rule, using a separate denominator for each source. Induction from the root therefore verifies both the stored corner values and coverage of the source-probability domain.
A depth-first traversal processes both children of each subdivision. If a cell cannot be accepted and either two million nodes have been visited for that orbit or its depth is 42, the run fails. These limits never authorize acceptance. In the completed run the maximum depth is 27, and the forest counts obey
Together with the orbit scan and all leaf tests, exhaustion of every subdivision stack establishes Lemma 5.
All arithmetic is integral, with the following bounds ensuring that fixed-width operations are exact. At every permitted depth , moment numerators have magnitude at most , and every coefficient in (28) has magnitude at most . Two-term determinants therefore have magnitude less than , within signed 128-bit range. Comparisons of two determinant ratios use products of magnitude less than ; the final plane evaluations are smaller still. For a source at depth , its vertex coordinates have numerators between zero and . Squared-distance numerators are less than , and denominator alignment in distance comparisons uses shifts of at most 84 bits. All these comparisons fit in 256-bit integers. The 64-bit stored numerators and plane coefficients also stay within their signed ranges.
Save the following complete listing as triangle.cpp and compile it with a C++17 compiler supporting __int128_t and the header-only Boost.Multiprecision library:
c++ -O3 -std=c++17 triangle.cpp -o triangle ./triangle
The program takes no parameters, reads no files, and uses no random seed or floating-point arithmetic. The listing was compiled with GCC 14.2.0 and executed in full. It returned
PASS orbits=61872 certified=61871 nodes=5103027
leaves=2582449 depth=27
with the actual output on one line. Progress messages are written to standard error. Successful completion requires every orbit to be covered, every nonexceptional orbit to pass its exact cell tests, and all reported counts to agree with the checks at the end of the program.