Tautological clauses #
A clause is a tautology when it contains a literal and its negation (CNF.isTautClause); it is
then satisfied by every assignment (CNF.eval_eq_true_of_isTautClause). Removing repeated
literals from a clause that is not a tautology leaves one literal per variable
(CNF.nodup_map_fst_dedup_of_not_isTautClause) and does not change its value
(CNF.eval_dedup_clause). These facts were extracted from the SAT branching rules of
CslibFrontier.Logics.Propositional.CNF.Branching so that other clients can use them without that
module; for terms, Term.isTautClause_negate in CslibFrontier.Logics.Propositional.DNF.ModelCount
relates them to Term.consistent.
Main definitions #
Cslib.Logic.PL.CNF.isTautClause: the clause contains a literal and its negation.
Main results #
Cslib.Logic.PL.CNF.eval_eq_true_of_isTautClause: a tautological clause is always true.Cslib.Logic.PL.CNF.nodup_map_fst_dedup_of_not_isTautClause: a deduplicated non-tautological clause has distinct variables.Cslib.Logic.PL.CNF.eval_dedup_clause: deduplicating a clause keeps its value.
Whether a clause contains complementary literals l and ¬l (making it a tautology).
A tautological clause evaluates to true under every assignment.
Deduplicating a non-tautological clause produces distinct variables.
Deduplicating a clause preserves its evaluation under every assignment.