Satisfiability of clause sets #
A clause set is satisfiable when some assignment satisfies all of its clauses
(ClauseSet.Satisfiable). Over a finite type of variables this is decidable, and it agrees with
satisfiability of a formula listing the clauses, and a formula with satisfiability of its clause set
(ClauseSet.satisfiable_toCNF_iff, CNF.satisfiable_toClauseSet_iff). Satisfaction of unions,
insertions, images and indexed unions of clause sets is characterized clause by clause, and renaming
the variables along an injective map preserves satisfiability (ClauseSet.satisfiable_relabel), as
for formulas (CNF.satisfiable_relabel).
Main definitions #
Cslib.Logic.PL.ClauseSet.Satisfiable: some assignment satisfies every clause.Cslib.Logic.PL.ClauseSet.relabel: rename the variables of a clause set.
Main results #
Cslib.Logic.PL.ClauseSet.satisfiable_toCNF_iff,Cslib.Logic.PL.CNF.satisfiable_toClauseSet_iff: agreement withCNF.Satisfiable, in both directions.Cslib.Logic.PL.ClauseSet.sat_union_iff,Cslib.Logic.PL.ClauseSet.sat_insert_iff,Cslib.Logic.PL.ClauseSet.sat_singleton_iff,Cslib.Logic.PL.ClauseSet.sat_empty,Cslib.Logic.PL.ClauseSet.sat_image_iff,Cslib.Logic.PL.ClauseSet.sat_biUnion_iff: satisfaction of combined clause sets.Cslib.Logic.PL.ClauseSet.sat_relabel_iff,Cslib.Logic.PL.ClauseSet.satisfiable_relabel: relabelling.Cslib.Logic.PL.ClauseSet.relabel_union,Cslib.Logic.PL.ClauseSet.mem_relabel: the clauses of a relabelled clause set.Cslib.Logic.PL.ClauseSet.card_relabel_le,Cslib.Logic.PL.ClauseSet.card_le_of_mem_relabel: relabelling adds neither clauses nor literals.
Some assignment satisfies every clause of ψ.
Instances For
A clause set is satisfiable exactly when a formula listing its clauses is.
A formula is satisfiable exactly when its clause set is.
Satisfaction of combined clause sets #
An assignment satisfies the clauses f i for i ∈ s exactly when it satisfies each.
Relabelling #
Rename the variables of a clause set along f.
Relabelling along an injective map preserves satisfiability. An assignment of the new
variables restricts to the old ones, and an assignment of the old variables extends along f.
Relabelling commutes with unions.
Relabelling does not add clauses; it may merge some.
Relabelling does not widen clauses: if every clause of ψ has at most k literals, so does
every clause of ψ.relabel f.