Documentation

CslibFrontier.Logics.Propositional.CNF.Tautology

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 #

Main results #

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.

theorem Cslib.Logic.PL.CNF.eval_dedup_clause {V : Type u_1} [DecidableEq V] (c : Clause V) (σ : V → Bool) :

Deduplicating a clause preserves its evaluation under every assignment.