Tseitin parity systems #
The Tseitin parity system ParitySystem.tseitin ends χ of a multigraph ends : E → Sym2 V
with charges χ has a variable for each edge and, for each vertex v, the equation saying that
the parity of the edges at v other than self-loops is χ v. It is satisfied by the same
assignments as the Tseitin formula CNF.tseitinFormula ends χ
(ParitySystem.holds_tseitin_iff_eval_tseitinFormula), so it is unsatisfiable when the total
charge is odd (ParitySystem.not_holds_tseitin), and on a connected multigraph satisfiable
exactly when the total charge is even (ParitySystem.exists_holds_tseitin_iff).
Main definitions #
Cslib.Logic.PL.ParitySystem.tseitin: the Tseitin parity system of a multigraph with charges.
Main results #
Cslib.Logic.PL.ParitySystem.holds_tseitin_iff,Cslib.Logic.PL.ParitySystem.holds_tseitin_iff_eval_tseitinFormula: the semantics of Tseitin parity systems.Cslib.Logic.PL.ParitySystem.not_holds_tseitin,Cslib.Logic.PL.ParitySystem.exists_holds_tseitin_iff: satisfiability by total charge.
References #
The Tseitin parity system of the multigraph ends with charges χ: a variable for each
edge, and for each vertex v the equation saying that the parity of the edges at v other than
self-loops is χ v.
The equations of the Tseitin parity system are those of the vertices.
The Tseitin parity system has an equation for each vertex.
The equation of the vertex v belongs to the Tseitin parity system.
An assignment satisfies the Tseitin parity system when its parity at every vertex is the charge.
The Tseitin parity system and the Tseitin formula have the same satisfying assignments.
Tseitin parity systems with odd total charge are unsatisfiable.
On a connected multigraph, the Tseitin parity system is satisfiable exactly when the total charge is even.