The Plaisted–Greenbaum transformation of a proposition #
Plaisted and Greenbaum Plaisted and Greenbaum observed that the
Tseitin transformation (Cslib.Logic.PL.Proposition.tseitinCNF) needs only one direction of
each definition. For a subformula occurring positively, that is under an even number of
antecedents of →, its variable only has to imply the subformula; for one occurring negatively,
the subformula only has to imply its variable. Proposition.plaistedGreenbaumDefs pol A keeps,
for every subformula of A, the definitional clauses of the direction its polarity needs, where
pol is the polarity of A itself and the antecedent of → flips it.
Proposition.plaistedGreenbaumCNF A adds the unit clause asserting the variable of A.
The clauses are among those of the Tseitin transformation, with the same variables
(Proposition.mem_tseitinCNF_of_mem_plaistedGreenbaumCNF), so every model of A still extends to a
model (Proposition.eval_plaistedGreenbaumCNF_tseitinExtend) and every clause has at most three
literals (Proposition.length_le_three_of_mem_tseitinCNF). In the other direction every model of
the transformation restricts to a model of A (Proposition.eval_of_eval_plaistedGreenbaumCNF), so
the two are equisatisfiable (Proposition.satisfiable_plaistedGreenbaumCNF_iff). Unlike for the
Tseitin transformation, the extension of a model of A is not unique: a variable of a subformula
that occurs only positively may be false while the subformula is true
(Proposition.not_forall_eq_of_eval_plaistedGreenbaumCNF). In exchange there are at most
two clauses for each node of A instead of three (Proposition.length_plaistedGreenbaumCNF_le).
Source and conventions. Plaisted and Greenbaum [PlaistedGreenbaum1986, pp. 293–297]
define, for a first-order formula A, conjunctions A⁺ and A⁻ of one-directional definitions
(§1, p. 294): (A ∧ B)⁺ contains L_{A ∧ B} ⊃ L_A ∧ L_B, (A ∨ B)⁺ contains
L_{A ∨ B} ⊃ L_A ∨ L_B, and (A ⊃ B)⁺ contains L_{A ⊃ B} ⊃ (L_A ⊃ L_B) together with A⁻
and B⁺, with the reverse implications in A⁻. An atom is its own literal, with A⁺ = A⁻
empty (p. 295), and the clause set of A is the clauses of A⁺ together with the unit clause
L_A, asserted positively. Their Theorem 1 (p. 295) is the restriction of models
(Proposition.eval_of_eval_plaistedGreenbaumCNF), their Lemma 1 (p. 297) the extension
(Proposition.eval_plaistedGreenbaumCNF_tseitinExtend), and their Theorem 2 and Corollary
(p. 297) equisatisfiability (Proposition.satisfiable_plaistedGreenbaumCNF_iff). Here the
construction is specialised to propositions: there are no quantifiers or equivalences, and ⊥,
which the paper does not have, gets the clause ¬x at positive polarity and nothing at negative
polarity. As in the paper, which gives different subformulas different predicates, equal
subformulas share a variable.
Main definitions #
Cslib.Logic.PL.Proposition.plaistedGreenbaumDefs: the definitional clauses needed at a polarity.Cslib.Logic.PL.Proposition.plaistedGreenbaumCNF: the Plaisted–Greenbaum transformation.
Main results #
Cslib.Logic.PL.Proposition.mem_tseitinCNF_of_mem_plaistedGreenbaumCNF: its clauses are clauses of the Tseitin transformation.Cslib.Logic.PL.Proposition.eval_of_eval_plaistedGreenbaumCNF: every model restricts to a model of the proposition.Cslib.Logic.PL.Proposition.satisfiable_plaistedGreenbaumCNF_iff: equisatisfiability.Cslib.Logic.PL.Proposition.not_forall_eq_of_eval_plaistedGreenbaumCNF: models are not determined by the atoms.Cslib.Logic.PL.Proposition.length_plaistedGreenbaumCNF_le: at most2 · A.size + 1clauses.
References #
The definitional clauses of the subformulas of a proposition occurring at polarity pol
(true for positive). At positive polarity the clauses say that the variable of B = op(C, D)
implies op of the variables of C and D, at negative polarity that it is implied by it; the
antecedent of → has the opposite polarity.
The Plaisted–Greenbaum transformation Plaisted and Greenbaum:
the definitional clauses needed for the subformulas of A at their polarities, and the unit
clause asserting the variable of A.
The definitional clauses needed at a polarity are definitional clauses of the Tseitin transformation.
The clauses of the Plaisted–Greenbaum transformation are clauses of the Tseitin transformation.
Positive-polarity Plaisted–Greenbaum definitional clauses of a list of propositions are Tseitin definitional clauses of those propositions.
Semantics #
Every model of A extends to a model of the Plaisted–Greenbaum transformation, by the
same extension as for the Tseitin transformation.
The positive-polarity Plaisted–Greenbaum definitional clauses of a list of propositions hold under the Tseitin extension of any atom assignment.
Under an assignment satisfying the definitional clauses needed at polarity pol, if the
variable of A has the value pol then so does A at the atoms.
Every model of the Plaisted–Greenbaum transformation restricts to a model of A.
Models of the Plaisted–Greenbaum transformation are not determined by the atoms, unlike
those of the Tseitin transformation (Proposition.eq_of_eval_tseitinCNF). In (x ∧ x) ∨ x the
conjunction occurs positively, so with x true its variable may be true or false.
The Plaisted–Greenbaum transformation preserves satisfiability.
Size #
The Plaisted–Greenbaum transformation has at most two clauses per node, and one more.
The positive-polarity Plaisted–Greenbaum definitional clauses of a list of propositions have
at most 2 * totalSize clauses.
Every Plaisted–Greenbaum definitional clause of A has at most three literals.