The hard-core model as a weighted CSP #
The hard-core instance of a graph on the vertices 0, …, n - 1 with edge list E
(CSP.hardCore n E) has a vertex constraint ⟨false, [v]⟩ for every vertex and an edge
constraint ⟨true, [u, v]⟩ for every edge (u, v). Under the hard-core weights with fugacity t
(CSP.hardCoreWeight t), a vertex constraint weighs t when its variable is true, and an edge
constraint weighs zero when both its variables are true. So the partition function is the sum of
t ^ |S| over the independent sets S of the graph (CSP.partitionFunction_hardCore); with
t = 1 it is the number of independent sets.
Every vertex occurs once in its vertex constraint and once per incident edge, so a graph of
maximum degree Δ gives an instance in which every variable occurs at most Δ + 1 times
(CSP.count_vars_hardCore).
Main definitions #
Cslib.Logic.PL.CSP.hardCoreWeight: the hard-core weights.Cslib.Logic.PL.CSP.hardCore: the hard-core instance of a graph.
Main results #
Cslib.Logic.PL.CSP.partitionFunction_hardCore: the partition function is the weighted count of independent sets.Cslib.Logic.PL.CSP.numVars_hardCore,Cslib.Logic.PL.CSP.count_vars_hardCore: its variables and their occurrences.
A variable v occurs at most once in the vertex constraints, plus once for each time it is an
endpoint in the edge list E, counting a loop twice and a repeated edge with its multiplicity.
The hard-core partition function is the sum of t ^ |S| over the independent sets S of
the graph, when its edges join vertices 0, …, n - 1.