Manuscript Offprint
arXiv:2610.36964Counting the Fixed Points of Binary Belief Propagation: Generic Degree, Syzygies, and Real Solutions
Abstract
How many fixed points does belief propagation have on a binary pairwise model? Over complex parameters, the admissible equations of a finite loopless multigraph form an algebraic family whose generic degree we determine: it is a graph state sum over edge sets without vertices of degree one, each vertex of positive degree contributing one less than its degree. We give two geometric realizations of this state sum. The first is the total Betti number of a universal edge-incidence ring constructed without parameters. Its full graded Betti table is the state sum, its Tor algebra is natural for noncontracting graph maps, the alternating numerator recovers the graph polynomial of Watanabe and Fukumizu, and an Artin reduction by a regular sequence realizes the one-variable specialization, corrected for tree components. The second lies in the actual family: at the strong-field boundary each state factor is a ramification index, and at sufficiently strong field the state charts exhaust the admissible complex fiber. For fixed nonzero real couplings, every Eulerian message-sign sector contains a real fixed point at every external field, and strong fields attain this lower bound: one admissible real fixed point per element of the binary cycle space and one positive fixed point. For graphs of maximum degree at most three, this minimum equals the number of minimal module generators of the edge-incidence ring. One state decomposition connects the complex degree, graded syzygies, and an attained minimum real count. The degree, selected ring and resolution statements, and the real counts are formalized in Lean 4.
Keywords. belief propagation, Bethe approximation, generic degree, graph polynomial, Koszul complex, minimal free resolution, Cohen–Macaulay ring, real solutions, binary cycle space, Ising model
MSC2020. 13D02, 05C31, 13C14, 14P05, 62H22, 68T37, 82B20
1 Introduction
How many fixed points can belief propagation (BP) have? For a binary pairwise model on a finite loopless multigraph, BP associates rational fixed-point equations with the graph and its local interaction parameters. Positive solutions describe normalized local beliefs and stationary points of the Bethe free energy. Over complex parameters the same equations define an algebraic family, and our first theorem determines its generic degree: for generic parameters, the number of admissible complex fixed points of the specified factorization equals a graph state sum over edge sets without degree-one vertices.
The state sum then receives two geometric realizations. The first is the total Betti number of a commutative ring constructed from edge incidences alone, with no BP parameters: every state contribution appears as a graded Betti number of its minimal free resolution, and the ring carries products and graph maps that a mere count does not: classes of vertex-disjoint cycles multiply, while cycles sharing a vertex have product zero. The second lies in the actual BP family: at the strong-field boundary each state factor is a ramification index, and at sufficiently strong field the state charts exhaust the admissible complex fiber. Our second theorem uses this boundary model, together with a global description of the real sign sectors, to determine the minimum number of real fixed points for every fixed nonzero real coupling vector. The common state decomposition also gives a direct bridge: on graphs of maximum degree at most three, the minimum real count equals the number of minimal module generators of the ring.
Why count fixed points? A fixed point is what the BP iteration returns when it converges, and on a graph with cycles it need not be unique: distinct positive fixed points are distinct interior stationary points of the Bethe free energy [13], and the one reached depends on the initialization. Uniqueness statements must therefore control all fixed points at once, as in the signed-graph classification of [9], and enumeration by homotopy continuation is organized around a bound on the number of complex solutions [4]. The generic degree is the invariant behind both tasks: it bounds the numbers of real and positive fixed points for generic parameters, and the real-sector analysis identifies the part of this count forced to be real at every external field, one fixed point per element of the binary cycle space. The complete graph , with generic complex degree 48 and minimum real count 8, is the worked example throughout.
Only the empty state and edge sets without degree-one vertices contribute. Let denote the generic degree of the BP equations on the admissible open set of equation (2.3); in particular, zeros introduced by clearing denominators are excluded.
To state the algebraic result, put . For each edge , take the line bundle of bidegree on its endpoint factors, and let be their direct sum, with the orientation lines specified in section 3.1. Let , a polynomial ring in 4m variables. The universal common-zero scheme defines the universal edge-incidence ring . Write
Finally, and denote the graph polynomials with the normalization in equation (3.13).
Theorem 1.1 (The edge-incidence ring and the BP degree). For every finite loopless multigraph, , and is a canonical normal Cohen–Macaulay domain, finite over , of dimension . Its minimal graded free resolution has Betti numbers
There is a canonical isomorphism of bigraded algebras
The construction and this identification are natural for endpoint-preserving graph maps that do not contract edges. Moreover,
A quotient by general coefficient linear forms, which form a regular sequence, is Artinian with
the product running over the components C that contain a cycle. In particular when there are no tree components.
Thus one graded table carries three invariants: its unsigned total is the BP degree, its alternating numerator is , and its Hilbert numerator after the regular cut is . The ring involves no choice of pencil or section; its Artin reductions are not canonical and are not identified with BP root algebras. For a tree, , , and .
The second result concerns the actual BP parameters , . For real , let count all distinct admissible real roots, including roots with negative messages and allowing the value . Let count roots with all messages positive.
Theorem 1.2 (Strong-field ramification and the minimum real count). Let G be a finite loopless multigraph.
(i) Fix complex edge parameters with . For each contributing state , the fixed-a admissible BP family has a smooth local analytic extension across , where . In coordinates on this extension, the parameter map is exactly
Its boundary local algebra is , of length . For all sufficiently small nonzero , these charts exhaust the complex admissible fiber, giving exactly simple roots.
(ii) Fix arbitrary finite real couplings . At every field , each Eulerian edge subset is the negative-message support of at least one admissible real root, so . In every fixed field orthant, sufficiently large field magnitudes attain this bound: the numbers of complex, real, and positive roots are respectively
and all complex roots are simple. Consequently
Thus the same integer is the dimension of in the resolution and a ramification index of the BP family at strong field; the comparison is statewise. The real statement has no weak-coupling assumption: each sign sector is described globally by vertex coordinates as a bounded perturbation of an invertible diagonal map. The state charts do not use the ring; their exhaustion of the complex fiber uses .
The two theorems give the following numerical connection (theorem 3.9): if the maximum degree of G is at most three, then for every fixed finite J with ,
The left side counts vertex-disjoint cycle states, including the empty state. In this degree range these are precisely the Eulerian states which index the real sectors.
1.2 A running example
For the resolution has ranks 8, 24, 16 in homological degrees 0, 1, 2, so the generic complex BP degree is 48 and there are module generators, indexed by the empty state, the four triangles, and the three four-cycles; the Artin reduction has Hilbert series and length 30, a different invariant. At fixed nonzero real couplings the minimum real count is , one root per Eulerian state, with one positive root at strong field (figure 1, theorem SM4.2).
1.3 Related work
Yedidia, Freeman, and Weiss identify BP fixed points with interior stationary points of the Bethe free energy [13], and Watanabe classifies the signed graphs with a unique positive fixed point [9]; both concern positive messages. Knoll, Mehta, Chen, and Pernkopf enumerate fixed points by homotopy continuation under a different genericity [4]. The index sets are the generalized loops of loop calculus [2], and are the polynomials of Watanabe and Fukumizu [11], and the ring construction follows the geometric method for syzygies [12]. Mixed multilinear systems [1] and homological formulations of message passing [6, 7] are compared in section SM6.
1.4 Organization
Section 2 proves ; section 3 constructs the ring and its resolution; section 4 proves the strong-field normal form and the exhaustion of the complex fiber; section 5 treats the real sectors. The supplementary material collects the notation (section SM1), the elementary proofs omitted below, and a longer comparison with related work.
1.5 Formalization
All clauses of theorems 1.1 and 1.2 have been formalized in Lean 4 with mathlib, under formal hypotheses recorded with each statement: the generic degree in its counting form, and the geometric objects through explicit models, namely the chart model of , a finite biproduct model of , and the Čech model of (3.10), including its products. Several clauses are proved by arguments different from ours, notably theorem 4.2, which is replaced by a topological counting argument, and the Gröbner-basis computation for is external. The accompanying repository [10] contains the source code, build instructions, the precise formal hypotheses and, for every statement of this paper, the corresponding formal declarations.
2 The admissible BP family and its generic degree
2.1 Coordinates and the open set being counted
Throughout, a graph is finite, undirected, and loopless; parallel edges are distinct factors. In particular, merging parallel interactions into a single Ising coupling changes the BP equations and is not one of our conventions. Let be the set of directed edges, and write , , , and for reversal, tail, head, and the underlying undirected edge. Set
in the physical real model, and allow independently in its algebraic family. A directed message is represented by its ratio . Define the cavity ratio and the full vertex ratio by
Only the reverse of the same edge is omitted from the cavity product. For an incidence , we also write , where is the other endpoint of . The rational BP equation is
We use its polynomial residual
on the open set
The last factors ensure that vertex beliefs, and hence the locally consistent edge beliefs below, can be normalized. All statements about complex or real roots in this paper refer to this open set. Equivalently, we use the localized coordinate ring, not the whole scheme obtained by clearing denominators. A positive root has every and physical parameters .
Example 2.1 (Why the last factor matters). Let be a triangle with . A message travelling around the cycle in one direction is updated by , and , so each orientation carries a constant message or , where . The rational BP equations thus have four solutions, all with nonzero messages and update denominators. At every vertex , which is when both orientations carry the same root and for the two mixed solutions. The mixed solutions cannot be normalized to vertex beliefs and are excluded by ; the admissible count is . Since , all four solutions admit the sum-one message form , so normalizability of messages and of beliefs are different conditions. In general the excluded locus is nonempty of dimension for generic parameters on a connected graph with a cycle (section SM2.2); the admissibility condition is what makes the count finite (see also section SM6).
Let , and let
be the scheme defined by these equations and localization.
Proposition 2.2. The scheme is smooth and irreducible of dimension . The map is dominant and generically finite. There is a nonempty Zariski open subset of over which it is finite étale of a well-defined positive degree .
Proof. Write a normalized vertex belief as and the four normalized entries of an edge belief as . On the open subset of where and , adjoin variables with
this is a finite étale cover of rank . For a BP root put , , , and . Then and give a point of the cover. Conversely, , , , and recover a BP root: for instance , and (2.4) verifies the update equations. All divisions are by units, so these are inverse scheme maps. The cover is irreducible: in the valuation along of the eth class is one and that of every other class is zero, so the square classes are independent and their square roots generate a field extension of degree ; the covering ring is free over its base and embeds in this field, hence is a domain. Thus is smooth and irreducible of dimension .
At the Jacobian equals , so is locally invertible there and dominant, and equal dimensions give generic finiteness. Inverting the leading coefficients of algebraic equations for a finite set of coordinate generators makes finite over a nonempty open subset of ; inverting a discriminant of the separable function-field extension and imposing generic freeness makes it étale there, of rank .
2.2 Auxiliary edge coordinates
For an incidence , define
Here is the rescaled vertex parameter. If is the degree of i, the BP equations imply
For an isolated vertex the latter equation reads . The relevant open conditions are and .
These equations recover the original BP scheme on the open set. Indeed, put
Equation (2.7) gives , and (2.6) gives the BP update with cavity ratio . Its denominator is . Conversely the original BP equations give (2.6)–(2.7). This local coordinate-ring isomorphism preserves multiplicities. Choosing square roots of fixed does not multiply a fiber's root count: each such choice determines a different parameter point .
Eliminating from an edge gives a useful necessary equation:
The division by is allowed. Also , since the other edge equation gives . We use (2.9) to control limits; the lifting argument will always use both original edge equations.
2.3 Excluding all weak-coupling boundary limits
Let K be an algebraically closed field of characteristic zero and
Extend the t-adic valuation to , with , and write for its valuation ring. Such an extension exists by The Stacks Project Authors [8, Tag 00IA]. Its residue field is : the residue extension in each finite subextension of is finite, and is algebraically closed [8, Tag 0ASH]. A bar denotes reduction .
Lemma 2.3 (Boundary exclusion). Suppose , , and , . Every admissible K-solution satisfies
The parameters may depend on t.
Proof. We first remove poles of the full ratios by spin changes. For , exchanging the two spin labels at vertices with transforms
In the auxiliary coordinates this is
(2.10)
These transformations preserve admissibility and the equations. All transformed still reduce to one, and the transformed reduce to . Choose precisely where ; then all transformed lie in . We work in these coordinates.
Put for every vertex . Suppose some reduces to -1. Choose maximizing . For every neighbor ,
The quadratic (2.9) at has integral coefficients and unit leading and constant coefficients. Its reduction is . Thus every incident is a unit reducing to . Reducing (2.7) yields
a contradiction. An isolated vertex satisfies and gives the same conclusion. Hence every is a unit.
Next suppose . The linear coefficient of (2.9) reduces to one and its reduction is . A negative valuation of would make its quadratic term uniquely minimal. Thus there are two possible types of incident variable: a unit reducing to , or a variable with positive valuation. In the second case, writing the equation as , where , shows that
Let k be the number of variables of the first type. Taking valuations in gives
so . Dividing each positive-valuation factor by in (2.7) and reducing then gives , again a contradiction. Thus every transformed is a unit. Undoing the spin changes shows that the original are units as well and avoid in the residue field.
Finally, in (2.9) all coefficients are integral and the leading and constant coefficients are units. A root with negative valuation would make the quadratic term uniquely minimal; a root with positive valuation would make the constant term uniquely minimal. Neither is possible. Hence all are units.
2.4 The limit states and their unique lifts
Choose , algebraically independent over , let , and set
The preceding lemma applies to every admissible K-solution. The edge equations at t = 0, with bars omitted, are
As , the two possibilities are
Call the second type active, and let be the active edge set. If , the vertex equations reduce to
For there is one root ; for there is none; and for there are distinct roots. They are nonzero and different from -1. Different active sets give different edge coordinates. Consequently there are exactly
limit points in these auxiliary coordinates, where and for . The active limits lie outside the original admissible fiber at zero coupling; they are used only as limits of admissible branches.
Lemma 2.4. Each of these limit points lifts to one and only one admissible K-solution. The lift lies in in the coordinates and is simple over .
Proof. Use the full edge residuals
and . At a limit point the edge Jacobian in is, respectively,
Both are invertible. After eliminating these blocks, the Schur complement is the diagonal derivative of , with entries
The full Jacobian is therefore invertible. To apply Hensel lifting, multiply each with by the unit . Together with the edge residuals, these give a polynomial system over with the same roots near the limit point and an invertible Jacobian there. Starting from that point, a solution modulo lifts uniquely modulo : its next coefficient solves the linear system with coefficient matrix equal to the residual Jacobian at . Completeness of gives a solution . This is the simple-root Hensel argument [8, Tag 04GM].
Uniqueness also holds in , without a completeness assumption on that ring. If is another solution with the same reduction, polynomial differences give
The matrix has entries in and unit determinant, so . By theorem 2.3, this covers every admissible -solution with the specified limit.
For inactive edges and are units. For active edges the first nonzero coefficients are
These are nonzero series. All are units, so (2.8) gives admissibility over . The Jacobian remains invertible there, proving simplicity.
Theorem 2.5 (Generic degree). For every finite loopless multigraph, with the factorization and admissibility conditions above,
Proof. The homomorphism
is injective. Indeed, if a nonzero polynomial became zero, the polynomial identity , evaluated at , would contradict the algebraic independence of . Choose with constant coefficient one and put . The quantities are rational functions of the quantities and are algebraically independent. Thus are algebraically independent as well. The original parameter field therefore embeds into
The finite étale generic fiber of theorem 2.2, after base change to the algebraically closed field K, has exactly points. By theorem 2.3 each has one of the limits just enumerated, and by theorem 2.4 each limit has exactly one simple admissible lift. This proves the equality. For the empty graph both the empty message tuple and the state sum have cardinality one.
Corollary 2.6. The generic degree is multiplicative under disjoint union, unchanged by attaching a leaf or subdividing an edge, equals one on a forest, and equals two on a connected graph with a single cycle.
Proof. See section SM2.1.
The theorem concerns a nonempty Zariski open set of parameters and says nothing about special fibers; section 4 gives a separate complete count for every fixed coupling vector with .
3 The universal edge-incidence ring
The factors in the degree formula have a cohomological meaning: for . We use this to construct a canonical ring whose entire minimal free resolution is indexed by the same edge states as the BP degree, following the geometric method for syzygies [12]: resolve an incidence scheme by its Koszul complex and take derived global sections. Related constructions for mixed multilinear systems appear in [1, Section 2.2]; here the graph-specific input is the concentration of each state in a single cohomological degree, and no resultant hypothesis on the number of equations is needed.
3.1 Edge bundles and the state cohomology
Let be a finite loopless multigraph. Put , , and let and be the numbers of connected components and tree components, respectively. An isolated vertex counts as a tree component. We use
Thus is the sum of over the components C containing a cycle, and is nonnegative. Set
Parallel edges give separate summands. To keep track of maps which reverse an edge orientation, introduce the one-dimensional orientation space
Choosing an orientation of each edge trivializes these orientation spaces. We suppress them in formulas for dimensions and retain their natural signs when discussing graph maps. An ordering of the edges similarly gives the usual signs for exterior products; changing either choice gives an isomorphic construction.
For , let be its degree at , put , and let . Recall the state weight
We call S a contributing state if it has no vertex of degree one; the empty state is included. Define the bigraded vector space
The notation records the first page of the hypercohomology spectral sequence of an edge Koszul complex. At this point no edge section has been chosen, so this space and its product depend only on the graph.
Lemma 3.1 (State cohomology). The summand of indexed by has zero cohomology if contains a vertex of degree one. Otherwise its cohomology is concentrated in degree , where it has dimension . Consequently,
Every nonzero summand satisfies , and the upper bound is attained by a contributing state.
Proof. Up to its one-dimensional orientation factor, the state summand is
On , the bundle has a one-dimensional , has no cohomology, and for has only , of dimension . The Künneth formula gives the asserted concentration and dimension. In a nonempty contributing state, every active vertex has degree at least two. Thus , proving .
There is no nonempty contributing state on a tree component. On a component containing a cycle, write . If , its cycle space injects into that of , so
where counts the components of its active support. The empty state satisfies the same inequality. Summing over components gives .
To attain the bound, take the full 2-core of each component containing a cycle, and no edges in the tree components. These cores have minimum degree at least two. Deleting pendant vertices preserves , so their union satisfies and has positive weight. For a forest the empty state attains .
Cup product and exterior multiplication make a bigraded algebra with total degree ; we shall identify it with a Tor algebra.
3.2 The universal incidence scheme
Let
Each edge contributes four independent coefficients, so is a polynomial ring in 4m variables, all of degree one. We also write for the corresponding affine coefficient space. The universal section of on has a zero scheme
Definition 3.2. The universal edge-incidence ring is
Its grading comes from simultaneous scaling of the edge coefficients. The projection gives it the structure of a graded -algebra.
Lemma 3.3. The scheme is the total space of a vector bundle of rank 3m on . The projection is proper, is finite as an -module, and .
Proof. See section SM3.1.
The ring need not be generated by ; its extra module generators will encode collections of disjoint cycles.
3.3 The complete minimal resolution
Let denote a free graded module whose generator has internal degree q. The universal Koszul complex is
The differential has cohomological degree one and internal degree zero. By theorem 3.3, this complex resolves .
Theorem 3.4 (The graph resolution). The derived global sections of are concentrated in degree zero and equal . A minimal graded free -resolution of has length exactly and terms
In particular,
There is a canonical isomorphism of bigraded algebras
On the right, multiplication is cup product followed by exterior multiplication, with the total-complex signs.
Proof. We first establish concentration, before choosing a finite free model. Since resolves an ordinary sheaf,
has no negative cohomology. On the other hand, its hypercohomology spectral sequence starts with
Every nonzero term satisfies by theorem 3.1. The sequence is bounded, so there is no positive cohomology either. Its sole cohomology module is therefore .
To obtain the resolution itself, take the product of the standard two-chart covers of . Apply its Čech complex to each , initially without the Koszul differential. As complexes of -vector spaces, these complexes admit contractions onto their finite-dimensional cohomology. Write their direct sum as , with preserving , and choose the convention
Extend the contraction over . Let be the Koszul differential, including the totalization sign. It lowers by one and multiplies by a coefficient of degree one. Thus is nilpotent: no composition can lower more than times. The finite perturbation lemma [3, Section 2.2 and Main Perturbation Lemma 2.4] transfers the differential to
This is a finite polynomial sum, not a completed power series. It defines a square-zero differential and a homotopy equivalence with the original total complex. A term with copies of lowers the edge number by , lowers the Čech degree by , and has coefficient degree . Consequently it maps the term in homological degree to the one in degree with internal degree preserved. The underlying modules are precisely (3.6); their range follows from theorem 3.1.
Concentration of the original derived global sections proves exactness of this finite complex in positive homological degrees. Every entry of lies in the homogeneous maximal ideal . The resolution is therefore minimal, proving (3.7). The state attaining in theorem 3.1 makes nonzero, so the projective dimension is exactly . Although the chosen contraction affects the displayed matrices, it does not affect the minimal resolution up to graded isomorphism.
For the algebra statement, use the universal Koszul complex with its unit and exterior product. Derived base change to the coefficient origin gives
Indeed, the Koszul differential becomes zero at this origin. The bounded Čech model is flat over , so it also computes this derived tensor product, and the base-change map of Čech complexes is a map of differential graded algebras for the Koszul products, so the displayed equivalence respects the derived products. Equivalently, the projection is proper, flat and of finite presentation, and is a perfect complex, being a bounded complex of locally free sheaves of finite rank; hence is perfect and its formation commutes with the base change to the origin [8, Lemma 36.30.4, Tag 0B91], and this base-change map is induced by the same map of Čech complexes. Taking cohomology in degree and internal degree proves (3.8) with its product. This identification uses the original Koszul algebra and base change, rather than a choice of matrices in (3.9), and is canonical.
Corollary 3.5 (The BP degree as a total Betti number). For every finite loopless multigraph G,
Proof. Summing (3.7) counts each contributing state once, with weight wt(S). The equality with the generic admissible BP degree is theorem 2.5.
3.4 Normality and Cohen–Macaulayness
Proposition 3.6. For every finite loopless multigraph G, the ring is a normal Cohen–Macaulay domain of dimension .
Proof. The variety is smooth and irreducible, so the vector bundle is smooth and irreducible as well. In particular, its ring of global functions is a domain. To see that it is integrally closed, take an element of integral over . Regard it as a rational function on . Its monic equation also makes it integral over every local ring of . These local rings are normal, so the function is regular everywhere and belongs to .
For a tree component , the resolution has only its empty-state term, and hence . For a component containing a cycle, module finiteness identifies the support with the proper image , giving . The incidence scheme of a disjoint union is the product of the component incidence schemes, and global sections over C give the corresponding tensor product. Consequently,
Here “cyclic” means containing at least one cycle.
By theorem 3.4, the projective dimension over is . At the homogeneous maximal ideal, the depth inequality for a finite free resolution gives
Since depth is bounded by dimension, equality holds throughout. Thus the prime ideal has height .
Cohen–Macaulayness at every prime follows, since is a finitely generated graded module over a polynomial ring; a direct localization of the resolution is recorded in section SM3.2.
3.5 Graph maps and the Tor product
We make the category of graphs explicit. A noncontracting graph map consists of maps on vertices and edges taking the two distinct endpoints of each edge bijectively onto the endpoints of its image edge. Different vertices or edges may have the same image, but an edge cannot be sent to a vertex. The induced coordinate map
goes in the opposite direction. The endpoint bijections also identify the orientation lines. In chosen orientations their signs are .
Proposition 3.7 (Functoriality). Every noncontracting graph map induces a canonical graded algebra map
compatible with the induced coefficient-ring map . These maps preserve identities and composition, and
The Tor isomorphism (3.8) is natural for these maps, with changing coefficient rings.
Proof. See section SM3.3.
The multiplication already has a concrete graph interpretation in homological degree zero. In the next statement a simple cycle may have length two, using two distinct parallel edges.
Proposition 3.8 (The cycle-compatibility algebra). There is a graded algebra isomorphism
The relations include .
Proof. See section SM3.4.
Corollary 3.9 (Module generators and real sectors). For every finite loopless multigraph ,
where the empty collection is included. Equality holds if and only if no two edge-disjoint simple cycles meet at a vertex. In particular, it holds when the maximum degree is at most three. Whenever equality holds, this number of module generators equals the minimum number of real admissible BP fixed points over external fields, for any fixed finite nonzero real couplings, as computed in theorem 1.2.
Proof. See section SM3.5.

The condition fails as soon as two edge-disjoint cycles share a vertex:
| Graph | |||
|---|---|---|---|
| Triangle | |||
| Two triangles sharing one vertex |
For the last graph the union of the two triangles is Eulerian with a vertex of degree four; it has weight 3, lies in homological degree one, and contributes one real sector but no module generator.
3.6 The graph polynomials and Artin reductions
We use the graph polynomials of Watanabe and Fukumizu [11]. With
their two-variable polynomial is
For any finite graph, their normalization defines the polynomial
We retain this normalization when tree components are present. Both and the factor are multiplicative over connected components, hence so is ; a tree has and . Therefore
where runs over the components containing a cycle. Thus is a polynomial, the tree-reduced form of , and when .
Proposition 3.10 (Three invariants of one resolution). For every finite loopless multigraph ,
For a general sequence of linear forms from , the quotient is a finite-dimensional graded algebra with
These linear forms are a regular sequence on . In particular, itself is the Artin Hilbert series when has no tree component.
Proof. See section SM3.6.

For graphs without tree components the nonnegativity of the coefficients of is part of the cited theory, and (3.17) realizes them as graded dimensions; a forest has and . One-dimensional sections over a polynomial ring in variables have the same Betti table (section SM3.7), and for connected graphs satisfies the sharp bounds (theorem SM3.2).
3.7 The complete graph on four vertices
For , we have , , . The contributing states and their contributions to the resolution and strong-field root counts are displayed in figure 1.
| State type | Empty | Triangle | Four-cycle | ||
|---|---|---|---|---|---|
| Number of states | 1 | 4 | 3 | 6 | 1 |
| Weight wt(S) | 1 | 1 | 1 | 4 | 16 |
| Internal degree | 0 | 3 | 4 | 5 | 6 |
| Homological degree | 0 | 0 | 0 | 1 | 2 |
| Complex roots, total | 1 | 4 | 3 | 24 | 16 |
| Real roots, total | 1 | 4 | 3 | 0 | 0 |
Figure 1: Contributing state types of , with the edges of solid. Root counts are for sufficiently strong fields at fixed nonzero real couplings; the first three columns give the eight module generators and the eight Eulerian sectors.
Thus has 24 variables, is a normal Cohen–Macaulay domain of dimension 22, and its full minimal resolution is
The alternating numerator and Hilbert series are
so the Artin reduction has Hilbert series , the polynomial computed by Watanabe and Fukumizu [11, Example 2], and length 30, while the total Betti number is , the sharp upper bound of theorem SM3.2. The module generators are the unit, four triangle classes, and three four-cycle classes; any two cycles of meet at a vertex, so every product of two nonunit classes vanishes in .
An independent saturated Gröbner-basis computation at a recorded specialization of the parameters over gives a zero-dimensional quotient of length 48, agreeing with this state sum. The proof of above is independent of this computation.
Together, theorems 3.4, 3.6, 3.7 and 3.10 and theorem 2.5 establish the algebraic assertions of theorem 1.1.
4 The strong-field boundary of the BP family
The factors in the state sum have a second geometric interpretation in the actual BP family. Fix edge parameters
The edge parameters need not be generic. We study the boundary where all vanish, with no restriction on their relative rates. Call a state if is never one, and put
Thus . A vertex with will be called active in this section.
Theorem 4.1 (Statewise power-map model). For each state there is a smooth local analytic extension of the fixed- admissible BP family across whose parameter map, in local coordinates , is exactly
For all sufficiently small nonzero , this chart gives distinct simple admissible BP solutions. The solutions supplied by different states are distinct.
4.1 Two edge branches near the boundary
Keep fixed. Set at active vertices and at inactive vertices, and introduce coordinates
Initially all are nonzero. For , the edge equations, with the full vertex ratios treated as independent variables, are
At an inactive vertex the first fraction can be rewritten as ; at an active vertex it is . These expressions extend holomorphically to at
At this point, each fraction has zero derivative with respect to the opposite message. Consequently the Jacobian of the two residuals “message minus fraction” with respect to the two messages is the identity. The analytic implicit function theorem gives unique nonvanishing holomorphic functions
The input script and the saved Singular output are reproduced in section SM3.10. This is a finite-characteristic specialization check with multiplicity; it does not certify 48 rational points or simplicity.
near zero. They may be constructed simultaneously for all edges, and also with a varying near its fixed value. The superscript + denotes the branch which is positive when and all ; it imposes no order on complex points.
If , both its endpoints are active. The other branch is
It satisfies the same edge equations. For an explicit verification, write , , , and
The involution satisfies
For nonzero this is an invertible change of variables and an invertible change of generators of the residual ideal. In particular, the edge Jacobian remains invertible on the other branch. Moreover, , whereas the base-branch messages tend to nonzero constants.
4.2 Absorbing the analytic units
Choose the message branch on S and off S, and write on S and off S. The vertex consistency equations become
Define the analytic units
For both types of vertices, (4.9) is equivalent to
On a small simply connected neighborhood, choose an th root of each unit and set
Its derivative at zero is diagonal with nonzero diagonal entries: derivatives of the units in other variables are multiplied by . It is therefore an analytic coordinate change, even though the units depend on all the variables. Equation (4.11) now becomes (4.3) exactly.
For all sufficiently small nonzero , the independent power equations give distinct points, all with . We check admissibility in the original coordinates. All reconstructed messages are nonzero. With , an inactive vertex has , an active vertex on an edge outside has , and on an edge in one has
In all three cases in a sufficiently small punctured neighborhood; in the last case this uses . Also , since or . Thus every constructed point belongs to the specified admissible localization, rather than only to the equations after clearing denominators.
To check simplicity, adjoin and the equations to the original BP system. The edge Jacobians are invertible on the base branches and, by (4.8), on the chosen other branches as well. Eliminating the edge messages leaves precisely (4.11). At the constructed points the coordinate change (4.12) is invertible, and the derivative of (4.3) is the invertible diagonal matrix . The Schur complement therefore shows that the original BP Jacobian with respect to the message variables is invertible. Finally, the messages which tend to zero are exactly those on , in both orientations. Different states give disjoint sets of solutions after the neighborhood is made smaller. This proves Theorem 4.1.
4.3 Exhaustion of the complex fiber
The construction has produced simple points for every fixed a satisfying (4.1); the following lemma excludes additional points in such a special fiber.
Lemma 4.2 (Saturation of the generic degree). Let be a dominant morphism of smooth irreducible complex varieties of the same dimension. Suppose that is finite étale of degree for a nonempty Zariski open . If one fiber contains distinct points at which is invertible, then that fiber consists of precisely these points and is reduced.
Proof. The inverse function theorem gives disjoint neighborhoods of the points, each mapping biholomorphically onto a common analytic neighborhood of their image . If an additional point lay over , choose a neighborhood of disjoint from these neighborhoods and contained in . The nonempty Zariski open set is analytically dense in the irreducible smooth variety . The neighborhood of thus contains a point . Its image belongs to and has at least distinct preimages, a contradiction. At each of the remaining points is a local isomorphism, so its fiber is reduced there.
Corollary 4.3 (All complex roots at strong field). For every fixed choice (4.1), there is such that whenever for all , the admissible BP fiber has exactly points and every point is simple. In particular it has no additional isolated points, multiple points, or positive-dimensional components.
Proof. Apply Lemma 4.2 to the full parameter family of Proposition 2.2. By Theorem 2.5, its generic degree is . The points of Theorem 4.1 are noncritical points of the full parameter projection: invertibility of the message Jacobian permits all parameters, including , to vary by the implicit function theorem. The lemma applies to each of the stated fibers.
4.4 Boundary algebras and state factors
Proposition 4.4 (The algebra at a state). The special fiber of the state chart at p = 0 has local algebra
It is a complete intersection of length wt(S). The ramification index in the ith boundary direction is .
Proof. See section SM4.1.
The state summand of the cohomology table has the factor , of dimension , at an active vertex and at an inactive one, so the dimensions entering the Betti table are the local lengths and ramification indices of the BP family. The comparison is statewise and linear, identifying neither cup product with the multiplication in (4.13) nor a deformation differential between states; lies outside the admissible BP space, so this is boundary ramification (theorem SM4.1 gives a formulation through Serre duality).
5 Real sign sectors and the minimum real count
We now take physical parameters and . A real solution is still required to lie in the admissible localization, but its messages may be negative. Write for the number of distinct admissible real solutions, allowing the value , and for the number with all messages positive. The binary cycle space controls a decomposition of the entire real solution set, not just the strong-field limit.
5.1 A maximum principle for the vertex ratios
Proposition 5.1 (Eulerian message signs). At any admissible real solution with , one has at every vertex. The two messages on each edge have the same sign, and the set of edges with negative messages is Eulerian. These conclusions require neither nondegeneracy nor a finite fiber.
Proof. Put , which is defined by admissibility. Suppose that some , and choose such an with maximal . Since , at least one incoming message is negative. Write
The update implies . Since , it follows that . The reverse message is therefore positive and . The edge identities give
All denominators and Z are nonzero by admissibility. Using , direct subtraction yields
because . This contradicts the choice of , so all are positive. An isolated vertex already has .
If , its cavity ratio is negative. The identity then forces the reverse message to be negative as well. At each vertex the product of the incoming signs equals the sign of , hence is positive. Every vertex is therefore incident to an even number of negative edges. Such subsets are precisely the elements of .
In particular, the positive solutions form the sector , and messages on bridges are always positive. The positivity of the vertex ratios in the proposition does not assert that all edge beliefs of a nonpositive solution are probability distributions.
5.2 Two branches on an edge
For the rest of this section assume on every edge. We first treat the full ratios as independent variables.
Lemma 5.2 (Real edge branches). For an edge with , , and prescribed , the edge equations have exactly two real admissible solutions: one with both messages positive, and one with both messages negative. Both depend real analytically on , and their edge Jacobians are invertible. Write for the incoming message on the respective branch. Then
Proof. See section SM5.1.
Set and . On the negative branch (5.2) gives
On the positive branch the cavity ratios are positive, so the positive BP update lies strictly between and . Consequently
5.3 The global vertex map
Fix an Eulerian subset . Write , , and again let on and off . Define
Every diagonal entry of is nonzero because every is even.
Proposition 5.3 (Vertex coordinates on a real sector). The admissible real BP solutions with negative-edge support S are in one-to-one correspondence with
The correspondence preserves the local real analytic solution spaces and nondegeneracy. Every such solution satisfies
Proof. See section SM5.2.
Proposition 5.4 (Every sector persists for all fields). For fixed finite nonzero , the map is proper and has Brouwer degree
where is the number of vertices incident to . In particular every Eulerian sector contains an admissible real BP solution for every , and
Proof. If , the loopless graph has no edges and the map is the identity on , of degree one. Assume henceforth that . Write . Equation (5.4) gives for all . Since , the homotopy
satisfies uniformly in . It is therefore a proper homotopy from the invertible linear map to . For every fixed , all zeros of , uniformly in , lie in one sufficiently large ball. The normalized maps on its boundary form a homotopy of spheres. At , removing the translation by gives the sphere map induced by , of degree . Homotopy invariance for compact oriented manifolds [5, §5, Theorem B] therefore gives . Exactly the active vertices have negative diagonal entries, which proves (5.8). If had no zero, its normalization would extend from the boundary over the whole ball and would have degree zero [5, §5, Lemma 1], a contradiction. Proposition 5.3 supplies a root in each sector. The sectors are disjoint and , proving (5.9).
Corollary 5.5 (Odd sector counts). Fix finite nonzero J and an Eulerian S. If every admissible real root with negative-edge support S is nondegenerate, then these roots are finite in number and that number is odd. In particular, whenever all positive roots are nondegenerate, their number is odd.
Proof. By theorem 5.3 the hypothesis says that is a regular value of . Its fiber is discrete and, by properness, finite, and the degree of on a large ball equals the sum of sgn det over the fiber [5, §6]. This sum is by (5.8), so it has an odd number of terms. The degree concerns the vertex-field map and asserts nothing about the stability of the BP iteration.
5.4 Attainment at strong fields
Proposition 5.6 (The strong-field real chamber). Fix finite nonzero real couplings J and field signs . If every is sufficiently large, then the admissible complex fiber consists of simple points. Exactly of them are real, one in each Eulerian sector, and exactly one has all messages positive.
Proof. First take at every vertex, so tends to zero. For , each unit in (4.10) is positive. Choose its root in (4.12) to be real and positive at zero. The coordinate change and its inverse then commute with complex conjugation. If some is odd, is even and (4.3) requires ; that state has no real solutions. If every is even, every is odd and the power equations have exactly one real solution, with all . The inverse coordinate change has positive unit factors on a small real neighborhood, so all at that solution. The selected edge branches are consequently positive off and negative on .
A solution in one of these charts is real if and only if its -coordinates, and hence its -coordinates, are real: the full ratios are recovered from the messages and the real parameters, and the reconstruction is real analytic. Corollary 4.3 has already shown that the charts exhaust the complex fiber. Thus the real roots are exactly the one root from each Eulerian state, and the unique positive root is the state . All are simple by the same corollary.
For arbitrary field signs use the spin change
To check the BP equations directly, write and observe that for . The transformed cavity is , which proves the update identity. New numerator and denominator factors are old ones multiplied by units or interchanged; both are nonzero on the admissible set. Also . Thus (5.10) is an analytic isomorphism of the complex admissible fibers and preserves simplicity. It preserves real message signs as well. Applying the all-positive field case to proves the proposition.
Remark 5.7 (Generator states are the all-real states). Fix , , and small as in the proof of theorem 5.6. A contributing state has exactly one real root among its wt( ) complex roots if every is even and none otherwise, so all its roots are real if and only if every , that is, if and only if indexes a module generator in theorem 3.8. Sending such a state to its unique root is a canonical injection from the generator states into the real roots, bijective exactly under the condition of theorem 3.9; the other real roots come from Eulerian states with a vertex of degree at least four, each with wt( ) complex roots of which one is real (theorem SM4.2). The spin change (5.10) transports this to every field orthant.
Proof of Theorem 1.2. The statewise analytic model and its local lengths are Theorem 4.1 and Proposition 4.4; Corollary 4.3 gives completeness of the complex count. For each fixed finite nonzero real , Proposition 5.4 gives the lower bound for every , without a nondegeneracy assumption. Proposition 5.6 attains this bound in every sufficiently strong-field orthant, with and all roots simple. Therefore
Corollary 5.8 (A degree budget for positive solutions). At a physical parameter point with all in the generic finite étale locus of the BP family,
Moreover
Proof. See section SM5.3.
Thus generic real counts lie among the integers between and with the parity of , a class containing both endpoints; not every such integer need occur.
The nonzero-coupling hypothesis is essential for the bound with the cycle rank of G: an edge with carries the messages 1 on the admissible real set and can be deleted without changing that set, so the lower bound then uses the cycle rank of the support graph (section SM5.4).
Discussion
The two constructions organize the same state sum at different levels: the edge-incidence ring retains degrees, products, and graph maps, while the strong-field charts realize each state weight as the length of a BP boundary algebra and decide which states have real branches; theorems 3.9 and 5.7 locate the discrepancy between module generators and real branches in the Eulerian states with a vertex of degree at least four. Several questions remain: graph descriptions of the higher Tor products and of the resolution differentials; a comparison with the BP boundary that respects multiplication and deformations (theorem SM4.1); naturality for edge contractions; and the largest generic real and positive counts at fixed J, with the chambers realizing the intermediate values allowed by theorem 5.8.
Declarations
Large language model tools were used in drafting, reorganizing, and checking the proofs and the text of this paper and in preparing the computational checks cited in section 3. The author assumes responsibility for all content.
References
[1] Matías R. Bender, Jean-Charles Faugère, Angelos Mantzaflaris, and Elias Tsigaridas. Koszul-type determinantal formulas for families of mixed multilinear systems, 2021.
[2] Michael Chertkov and Vladimir Y. Chernyak. Loop calculus in statistical physics and information science, 2006.
[3] Marius Crainic. On the perturbation lemma, and deformations, 2004.
[4] Christian Knoll, Dhagash Mehta, Tianran Chen, and Franz Pernkopf. Fixed points of belief propagation—an analysis via polynomial homotopy continuation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40(9):2124–2136, 2018. doi: 10.1109/TPAMI.2017.2749575.
[5] John W. Milnor. Topology from the Differentiable Viewpoint. The University Press of Virginia, Charlottesville, Virginia, 1965. URL https://people.dm.unipi.it/benedett/MILNOR-TDVPOINT.pdf.
[6] Olivier Peltre. A homological approach to belief propagation and Bethe approximations, 2019. URL https://arxiv.org/abs/1903.06088v1.
[7] Grégoire Sergeant-Perthuis and Léo Boitel. Minima and critical points of the Bethe free energy are invariant under deformation retractions of factor graphs, 2025.
[8] The Stacks Project Authors. The Stacks Project, 2026. URL https://stacks.math.columbia.edu.
[9] Yusuke Watanabe. Uniqueness of belief propagation on signed graphs. In Advances in Neural Information Processing Systems, 2011. URL https://proceedings.neurips.cc/paper_files/paper/2011/file/5ec91aac30eae62f4140325d09b9afd0-Paper.pdf.
[10] Yusuke Watanabe. BP degree and syzygies: Lean formalization. Lean 4 source code, 2026. URL https://github.com/ywatanabex/bp-degree-syzygies-lean.
[11] Yusuke Watanabe and Kenji Fukumizu. New graph polynomials from the Bethe approximation of the Ising partition function. Combinatorics, Probability and Computing, 20(2):299–320, 2011. doi: 10.1017/S0963548310000258.
[12] Jerzy Weyman. Cohomology of Vector Bundles and Syzygies. Cambridge University Press, 2003. URL https://www.cambridge.org/core/books/abs/cohomology-of-vector-bundles-and-syzygies/geometric-technique/23C8D41F7FB060812AB307E3E824A0E2.
[13] Jonathan S. Yedidia, William T. Freeman, and Yair Weiss. Constructing free energy approximations and generalized belief propagation algorithms. IEEE Transactions on Information Theory, 51(7):2282–2312, 2005. URL https://www.merl.com/publications/TR2004-040.
Supplementary Materials
SM1 Notation
The following table collects the recurring notation of the main text.
| Symbol | Meaning |
|---|---|
| State weight and its sum | |
| Graph polynomials and the tree-reduced form | |
| Graded Betti numbers over the coefficient ring | |
| BP parameters and their rescaled versions in section 2 | |
| Oriented message and full vertex ratio | |
| Edge-incidence ring, Artin section, boundary local algebra | |
| Boundary coordinate and its power-map exponent | |
| Generic complex, distinct real, and positive root counts |
SM2 Supplementary material for the degree theorem
SM2.1 Elementary properties of the degree
Proof of theorem 2.6. The state sum factors over connected components. A selected leaf edge has a degree-one endpoint and contributes zero. At the new vertex of a subdivided edge, only selecting both new edges or neither has nonzero weight, and both local weights are one. Removing leaves therefore reduces a unicyclic component to a cycle, where only the empty and full edge sets contribute.
SM2.2 The non-normalizable locus
Let be connected and consider solutions of the rational BP equations with nonzero messages and nonzero update denominators, but without the normalization condition. The identity from the proof of theorem 2.2 shows that forces across every edge; on a connected graph either all are nonzero or all equal . Theorem 2.1 exhibits the second case for a triangle.
Proposition SM2.1. Let be connected with for all . For generic , the locus of solutions with at every vertex is empty if is a tree and is a nonempty smooth variety of pure dimension if .
Proof. Orient each edge and put . If , the cavity ratios on are and , and the update equation for reads , that is, with . On the open set where , , and , , the map is an involution with nonzero values, and , so both update denominators on are nonzero and the reverse update holds. Setting gives and all BP equations, and every solution with arises uniquely in this way. The total space of such solutions over all parameters is therefore an open subset of the torus with coordinates , smooth and irreducible of dimension , and the parameter map is .
If , this map is dominant: its differential has rank at the point , for all , where and . Indeed, there, so the matrix has, in the column of , the entry -1 in row , the entry 2 in row , and zeros elsewhere. Choose a spanning tree and one further edge, giving a spanning subgraph with a single cycle of length ; orient the cycle cyclically and the tree edges away from it. In the corresponding minor, each pendant vertex is the head of its unique edge and its row has the single entry 2; expanding along these rows removes a factor each and leaves the cycle block for a cyclic permutation matrix , whose determinant is . The minor equals , and together with the identity on the -coordinates the rank is .
For , dominance implies that the image contains a nonempty open set. Shrinking this open set, generic smoothness in characteristic zero makes the map smooth of relative dimension . For a tree, , so the closure of the image is a proper subset and the generic fiber is empty.
SM3 Supplementary proofs for the edge-incidence ring
SM3.1 The incidence scheme as a vector bundle
Proof of theorem 3.3. The evaluation map
is surjective, since every edge bundle is globally generated. Its kernel is locally free of rank , and its total space is exactly . In particular, the universal edge equations form a regular sequence on : locally, after splitting the evaluation map, they are independent linear coordinates in the coefficient directions.
The scheme is closed in , and is projective. Hence is proper and is coherent, proving module finiteness over the affine coefficient space. A function of coefficient degree zero is a function on the zero section ; these functions form .
SM3.2 Cohen–Macaulayness at every prime
The proof of theorem 3.6 established the equality of depth and dimension at the homogeneous maximal ideal. The following direct localization argument gives the Cohen–Macaulay property at every prime without appealing to the graded reduction. For completeness, this also gives Cohen–Macaulayness away from the homogeneous maximal ideal. For every prime , localizing the same resolution yields
The final equality is the dimension formula for the prime in a polynomial ring. Thus is a Cohen–Macaulay -module, equivalently a Cohen–Macaulay finite -algebra. The depth inequality used here follows successively from the depth lemma [8, Tag 00LX].
SM3.3 Functoriality
Proof of theorem 3.7. A coefficient on an image edge of can be copied to every edge of above it, renaming the two endpoint coordinates and using the map of orientation lines. This defines a linear map . In oriented coordinates, the copied sections satisfy
The pair therefore maps into . Pullback of regular functions gives . Both coordinate maps and coefficient-copy maps compose, proving the functor laws. For a disjoint union the incidence scheme is the product of the two incidence schemes. Künneth for global sections over C gives the tensor-product formula, compatibly with its associativity, symmetry and unit.
There is also a direct Koszul description. Pull back the edge generators of G, and send the generator for e to times the generator for . The compatibility of sections makes this a map of Koszul algebras. Derived global sections give
After derived tensoring with C over , this is the natural map between the two Tor algebras. Specializing both coefficient spaces to the origin gives exactly the map on (3.10); hence (3.8) is natural and preserves products. This argument does not require the coefficient-ring map to be flat.
SM3.4 The cycle-compatibility algebra
Proof of theorem 3.8. The left-hand side is . A contributing state in homological degree zero satisfies . Since every active vertex has degree at least two, all these degrees must equal two. Such a state is exactly a collection of pairwise vertex-disjoint simple cycles, and its cohomology is one-dimensional. Choose a nonzero class for each single cycle.
If two cycles share an edge, their exterior product vanishes. If they share a vertex but no edge, their cup product at that factor lies in and again vanishes. For vertex-disjoint cycles the product is nonzero by Künneth and spans the state of their union. These products account for every state in degree zero, and different collections give distinct state summands. Thus the displayed monomial relations generate the entire kernel. All classes in this proposition have total cohomological degree zero, so their product is ordinarily commutative.
SM3.5 Module generators and real sectors
Proof of theorem 3.9. By theorem 3.8, the generators are indexed by supports whose vertex degrees are zero or two. They are a subset of the binary cycle space, consisting of all supports with even vertex degrees; that space has elements. Equality therefore means that every even support has maximum degree at most two. The union of two edge-disjoint cycles meeting at a vertex violates this condition. Conversely, an even support of degree at least four at some vertex decomposes into edge-disjoint simple cycles, at least two of which meet there. If the graph has maximum degree at most three, every even support automatically has degrees zero or two.
SM3.6 Three invariants of one resolution
Proof of theorem 3.10. The recurrence for gives for all . For a contributing state , therefore,
The same equality holds with both sides zero for a state with a degree-one vertex. Substituting (3.7) proves (3.15). The alternating Hilbert series of the free resolution then proves the first equality in (3.16). The second follows from (3.13).
By theorem 3.6, is Cohen–Macaulay of dimension . Its finiteness over implies that general coefficient linear forms are a homogeneous system of parameters. Indeed, successive general hyperplanes cut the support in coefficient space to the origin. On a Cohen–Macaulay algebra a system of parameters is regular [8, Tag 00N7]. Each linear nonzero divisor multiplies the Hilbert series of the quotient by . Applying this times gives (3.17).
SM3.7 One-dimensional sections
Remark SM3.1 (One-dimensional sections). If , cutting first by general coefficient linear forms gives a one-dimensional Cohen–Macaulay algebra over , with . The sequence is regular, so tensoring the resolution with preserves exactness and minimality. Thus its Betti table is unchanged. One further regular linear cut gives over , again with the same Betti table and total Betti number . The isomorphism classes of these sections can depend on their choices; their Hilbert series and Betti tables do not.
SM3.8 Sharp bounds at fixed cycle rank
Proposition SM3.2 (Sharp bounds at fixed cycle rank). For a connected loopless multigraph with at least one vertex,
Both bounds are attained by simple graphs for every . Equality in the upper bound holds exactly when the 2-core has maximum degree at most three.
Proof. For the lower bound only, extend the combinatorial sum Q to graphs with loops, counting a loop twice in the degree. For a nonloop edge uv, pair the states omitting and containing this edge. Writing a, b for the other degrees at its endpoints, the identity
gives . Contract a spanning tree. The resulting bouquet of loops has sum .
For the upper bound, , with equality exactly for . Thus . For a connected graph the value depends only on . Indeed, with extended to graphs with loops as in [11], a loop again counting twice in the degree, the deletion–contraction formula for a nonloop edge [11, Theorem 2.3] reduces at to . Contracting a spanning tree leaves the bouquet of loops, so
(SM3.1)
which is [11, Lemma 4.2, equation (4.1)]. The second equality follows from the closed form of the recurrence and the binomial theorem. For take ; then , which gives the displayed upper bound. Both sums ignore pendant edges. On the 2-core, every term agrees if its maximum degree is at most three; otherwise the full-core state gives a strict inequality. The lower bound is attained by triangles sharing one vertex, and the upper by a ladder with squares; for , any tree attains both bounds.
SM3.9 The objects being compared
Remark SM3.3 (The objects being compared). The universal edge-incidence ring records common zeros of independently varying edge bilinear forms. Its Artin length and its total Betti number are different invariants, as the values 30 and 48 above illustrate. The equality of the latter with comes from the BP counting theorem, not from an identification of the Artin section with a BP root algebra. Likewise, the naturality proved here concerns noncontracting graph maps; a general edge contraction is outside this category. In the next section, the same state factors will be identified with local multiplicities of the actual BP family at a boundary. That comparison concerns the state factors and their local bases, and does not identify its deformation differential with the differential of an edge Koszul complex.
SM3.10 The Gröbner-basis check for
The computation cited in section 3.7 is the following Singular (version 4.4.1) script, run on 2026-10-12. The unknowns are the twelve directed messages of , are the cavity products, the parameters and are the fixed residues modulo the prime 32003 listed in the script, and the ideal is saturated with respect to every message and every update denominator before the standard basis is computed.
LIB "elim.lib"; ring r = 32003, (y0, y1, y2, y3, y4, y5, y6, y7, y8, y9, y10, y11), dp; poly X0 = 8360y3y5; poly X1 = 3865y7y9; poly X2 = 8360y1y5; poly X3 = 16236y6y11; poly X4 = 8360y1y3; poly X5 = 24937y8y10; poly X6 = 3865y0y9; poly X7 = 16236y2y11; poly X8 = 3865y0y7; poly X9 = 24937y4y10; poly X10 = 16236y2y6; poly X11 = 24937y4y8; ideal I = y0*(X0+4404)-(4404X0+1), y1(X1+4404)-(4404X1+1), y2(X2+18653)-(18653X2+1), y3(X3+18653)-(18653X3+1), y4(X4+27770)-(27770X4+1), y5(X5+27770)-(27770X5+1), y6(X6+26290)-(26290X6+1), y7(X7+26290)-(26290X7+1), y8(X8+25029)-(25029X8+1), y9(X9+25029)-(25029X9+1), y10(X10+2069)-(2069X10+1), y11(X11+2069)-(2069X11+1); list L = y0, X0+4404, y1, X1+4404, y2, X2+18653, y3, X3+18653, y4, X4+27770, y5, X5+27770, y6, X6+26290, y7, X7+26290, y8, X8+25029, y9, X9+25029, y10, X10+2069, y11, X11+2069, 1+8360y1y3y5, 1+3865y0y7y9, 1+16236y2y6y11, 1+24937y4y8y10; int k; for (k=1; k<=size(L); k++) { def S = sat(I, L[k]); if (typeof(S) == "list") { I = S[1]; } else { I = S; } kill S; } I = std(I); "graph K4 mode modp"; "p=32003 a=4404, 18653, 27770, 26290, 25029, 2069 b=8360, 3865, 16236, 24937"; "dim:"; dim(I); "vdim:"; vdim(I); ideal E = y0(X0+4404)-(4404X0+1), y1(X1+4404)-(4404X1+1), y2(X2+18653)-(18653X2+1), y3(X3+18653)-(18653X3+1), y4(X4+27770)-(27770X4+1), y5(X5+27770)-(27770X5+1), y6(X6+26290)-(26290X6+1), y7(X7+26290)-(26290X7+1), y8(X8+25029)-(25029X8+1), y9(X9+25029)-(25029X9+1), y10(X10+2069)-(2069X10+1), y11(X11+2069)-(2069*X11+1); ideal J = I, det(jacob(E)); "solutions with singular Jacobian (vdim of I + det Jac; 0 means all simple):"; vdim(std(J));
quit;
The saved output is
graph K4 mode modp
p=32003 a=4404,18653,27770,26290,25029,2069 b=8360,3865,16236,24937
dim:
0
vdim:
48
solutions with singular Jacobian (vdim of I + det Jac; 0 means all simple):
so the saturated ideal is zero-dimensional of length 48 over . The last query, the length of the ideal with the Jacobian determinant adjoined, was interrupted and produced no output; it is not used. This is a finite-characteristic specialization check with multiplicity, and the proof of does not depend on it.
SM4 Supplementary proofs for the strong-field boundary
SM4.1 The algebra at a state
Proof of theorem 4.4. The chart is defined over the parameter space by the regular sequence . Its monomials with form a free basis over the convergent parameter ring . Setting gives (4.13) and the asserted length. The ith power equation gives the claimed ramification index.
SM4.2 Duality and coordinate choices
The statewise comparison of theorem 4.4 with the cohomology table can be phrased through Serre duality; the following remark records what this does and does not provide.
Remark SM4.1 (The role of duality and coordinate choices). For an active vertex, , Serre duality [8, Tag 0BS4] gives
After identifying with and choosing an affine coordinate and a trivialization, the space on the right is the dual of polynomials of degree at most , where . This is the dual of as a vector space. The perfect pairing then identifies with and satisfies for . It expresses the comparison through dual filtrations, but the scalar pairing uses the chosen coordinate. Duality alone therefore does not give a canonical algebra identification with the Tor summand.
SM4.3 The eight real states of
Example SM4.2 (The eight real states of ). The state types in figure 1 give complex branches. The Eulerian states are , the four triangles, and the three four-cycles; every active vertex in them has degree two, so every and each boundary algebra has length one. For positive and small positive each gives one real branch, positive only for and otherwise with negative messages in both directions on the selected edges. The six states have two equations and the full state four, so they have no real branches in this chamber. Thus , and counts all real sectors. Theorem 5.6 gives the same count in every field orthant; at general fields each sector remains nonempty, while uniqueness within a sector is asserted only at strong field.
SM5 Supplementary proofs for the real sectors
SM5.1 The two real edge branches
Proof of theorem 5.2. Write , , and , . The edge equations are
(SM5.1)
Eliminating gives
(SM5.2)
The discriminant is , and the product of the roots is . Hence one root is positive and the other negative. For the polynomial on the left,
These values have opposite signs. The negative root is strictly between -1 and -1/s, so neither excluded denominator vanishes, and the corresponding is negative. The positive root gives . Conversely, any admissible solution of (SM5.1) must appear in (SM5.2). Neither reconstructed is -1 or -1/s: substituting either value into the cleared identity contradicts , , and . Thus both reconstructed pairs solve the original rational equations.
The discriminant and every elimination denominator are nonzero, so the two branches are real analytic. Solving the second equation for and then the first by the simple quadratic shows that the edge Jacobian is invertible. Finally, ; the product of the two quadratic roots gives (5.2).
SM5.2 Vertex coordinates on a sector
Proof of theorem 5.3. Given , prescribe and select the positive edge branch off and the negative branch on . The incoming signs multiply to one at every vertex. By (5.3),
Hence the consistency equation is equivalent to (5.6). When it holds, the cavity ratios reconstructed from the edge branches agree with the original cavity products, and all BP equations hold. The edge denominators and messages are nonzero by Lemma 5.2, and , so these roots are admissible.
Conversely, Proposition 5.1 assigns to any admissible real root positive and an Eulerian support . On every edge Lemma 5.2 forces the selected branch; the root therefore recovers (5.6). For the local assertion, adjoin the consistency equations for to the BP equations and eliminate the edge messages using the invertible edge Jacobians. This leaves (5.6) after invertible analytic coordinate changes. The local solution spaces and their Jacobian nondegeneracy are consequently preserved. Finally, (5.7) follows from (5.5) and (5.4).
SM5.3 A degree budget for positive solutions
Proof of theorem 5.8. There are distinct complex roots by Theorem 2.5. Each of the nonempty Eulerian sectors contains at least one real root, all of them nonpositive, by Proposition 5.4. Subtracting these roots from the complex total gives the upper bound for . The empty sector supplies at least one positive root, and the remaining inequalities follow at once. Complex conjugation pairs the nonreal roots of this real, reduced fiber, proving the first congruence in (5.13). For the second, is odd exactly when every is even, that is, when is Eulerian, and there are Eulerian subsets.
SM5.4 Zero couplings
The nonzero-coupling hypothesis is essential for the lower bound with the cycle rank of . If , the update on that edge is on the admissible real set. Deleting all such edges gives a bijection of admissible real solution sets with the resulting support graph: in the reverse construction the new denominators are by Proposition 5.1. The lower bound and the minimum formula then use the cycle rank of that support graph.
SM6 Further comparison with related work
This section expands the comparisons of section 1.3.
Variational characterizations Yedidia, Freeman, and Weiss identify BP fixed points with interior stationary points of the constrained Bethe free energy [13], and Watanabe classifies the signed graphs on which the positive fixed point is unique for all interaction magnitudes and fields, using an index sum over nondegenerate stationary points [9]. Both concern positive messages, whereas the sign sectors of section 5 live in the rational BP equations, where negative messages are admissible and are counted by the Eulerian edge sets.
Enumeration by polynomial systems Knoll, Mehta, Chen, and Pernkopf encode normalized messages and normalization factors by polynomial equations and use numerical polynomial homotopy continuation to enumerate isolated solutions [4]. Their construction uses the sparsity of these equations through a Bernstein–Kushnirenko–Khovanskii bound, and positivity selects the probabilistic fixed points. Here the enumerative question is the generic degree of the admissible ratio equations within a prescribed pairwise parameter family, with independent edge and field parameters and a fixed factorization. Genericity in this family is distinct from genericity among all coefficients with a prescribed monomial support, and the two counts are not compared numerically in this paper. Three differences are structural. Messages normalized to sum one and the ratio coordinates used here are related by the invertible change on the common open set where no message equals -1. A system written in message variables alone, without saturating the vertex normalizations , retains the non-normalizable locus , which for a connected graph with is positive-dimensional for generic parameters (theorem SM2.1) and already contributes two of the four solutions in theorem 2.1. Finally, a Bernstein–Kushnirenko–Khovanskii bound counts isolated solutions of a system with generic coefficients of the given support, whereas is the generic degree within the family of Ising-type parameters with the admissibility conditions imposed. Consequently a difference between the two numbers is not a count of extra isolated solutions, and this paper does not assert any statement about the computations of [4].
Loop calculus and graph polynomials Chertkov and Chernyak express the partition function as a finite correction series around a BP solution, with contributions supported on subgraphs having no vertices of degree one [2]. These weights depend on the chosen BP solution and serve a different enumerative purpose from a count of solutions. Watanabe and Fukumizu established the polynomiality of , its combinatorial expansions, and the nonnegativity of its coefficients for graphs without tree components [11]. The total Betti number of the resolution in section 3 equals the generic BP degree, whereas the length of the Artin reduction is a separate invariant.
Geometric syzygies and resultants Bender, Faugère, Mantzaflaris, and Tsigaridas give explicit Weyman complexes and determinantal formulas for mixed multilinear systems [1]. Their resultant construction treats a multihomogeneous system with one more equation than the dimension of the base, and their bipartite bilinear systems provide a further relevant class of supports. For the edge-incidence family the explicit minimal resolution, its multiplicative structure, and the normal Cohen–Macaulay ring are established directly, without a resultant hypothesis on the number of equations. The universal edge-incidence ring and the coordinate algebra of a BP fiber have different roles in this construction.
Homological and topological approaches to message passing Peltre builds a complex of local observables and formulates belief propagation as a transport equation with homological conservation laws [6]. Sergeant-Perthuis and Boitel show how deformation retractions of factor-graph posets, together with explicitly transformed Hamiltonians, preserve Bethe critical points, with corresponding results for minima [7]. These constructions describe message dynamics and positive variational problems. The complex used here is the sheaf-theoretic Koszul complex on a product of projective lines, whose cohomology controls a resolution over the universal coefficient ring; the connection to the actual BP family is provided by the common state weights wt(S) and by the local power-map description at strong field. No identification of these different complexes, and no general invariance of under graph homotopy, is used.