The constraint network of a weighted Boolean CSP #
The network of the occurrence list of a CSP instance F : CSP Rel ℕ
(Cslib.Circuits.Frontier.ClauseNetwork.network) with weighted row tables: the row of constraint
⟨R, vs⟩ lists wt R w at the words w of length |vs|, and the variables are joined by the
equality chains of the clause network. Its contraction is the partition function
F.partitionFunction wt (ClauseNetwork.contraction_cspNetwork). This is the network of
Appendix D.2 of [OAI26k] with the clause tables replaced by arbitrary weight tables, as in
a Holant or weighted #CSP instance; like the clause network, it is bipartite with its rows first
and its degree is at most max k 4 for constraints of arity at most k.
The occurrences are those of the positive formula F.varCNF with the same scopes, so the ports
of row i carry the scope of constraint i in order
(ClauseNetwork.map_clausePorts_occurrences).
Main definitions #
Cslib.Circuits.Frontier.ClauseNetwork.cspEntry,Cslib.Circuits.Frontier.ClauseNetwork.cspRow: the weight tables of the constraints.Cslib.Circuits.Frontier.ClauseNetwork.cspNetwork: the constraint network.
Main results #
Cslib.Circuits.Frontier.ClauseNetwork.contraction_cspNetwork: the contraction is the partition function.Cslib.Circuits.Frontier.ClauseNetwork.isRowsFirstBipartite_cspNetwork,Cslib.Circuits.Frontier.ClauseNetwork.maxDegree_cspNetwork_le,Cslib.Circuits.Frontier.ClauseNetwork.length_table_cspNetwork,Cslib.Circuits.Frontier.ClauseNetwork.numEdges_cspNetwork,Cslib.Circuits.Frontier.ClauseNetwork.length_vertices_cspNetwork: its shape.
References #
- OpenAI, The Exponential Time Hypothesis is False, Appendix D.2 (p. 54).
The constraint network of a weighted Boolean CSP instance with constraints of arity at
most k, with its number of rows.
The contraction of the constraint network is the partition function, for instances whose
constraints have arity at most k.
The constraint network is rows-first bipartite.
The constraint network has three edges per variable occurrence.
The constraint network has one vertex per constraint and two per variable occurrence.