Class Tseytin
java.lang.Object
org.variantsync.diffdetective.analysis.logic.Tseytin
Class with methods for Tseytin conversion.
The Tseytin conversion produces an equisatisfiable CNF for a propositional formula.
The produced CNF is usually small at the cost of introducing new variables.
- Author:
- Chico Sundermann, Paul Bittner
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
Helper class for Tseytin conversion that remembers generated formulas. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static org.prop4j.Node
convert
(org.prop4j.Node formula, BiFunction<org.prop4j.Node, org.prop4j.Node, org.prop4j.Node> eq) static org.prop4j.Node
toEquisatisfiableCNF
(org.prop4j.Node formula) static org.prop4j.Node
toEquivalentCNF
(org.prop4j.Node formula)
-
Constructor Details
-
Tseytin
private Tseytin()
-
-
Method Details
-
convert
private static org.prop4j.Node convert(org.prop4j.Node formula, BiFunction<org.prop4j.Node, org.prop4j.Node, org.prop4j.Node> eq) -
toEquisatisfiableCNF
public static org.prop4j.Node toEquisatisfiableCNF(org.prop4j.Node formula) -
toEquivalentCNF
public static org.prop4j.Node toEquivalentCNF(org.prop4j.Node formula)
-