Tseitin - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Logic

  

Tseitin

  

apply Tseitin's transformation

 

Calling Sequence

Parameters

Description

Examples

References

Compatibility

Calling Sequence

Tseitin(b)

Parameters

b

-

Boolean expression

Description

• 

Tseitin accepts an arbitrary Boolean expression b and returns an expression in conjunctive normal form (CNF) which is equisatisfiable, that is, a satisfying assignment of truth values exists for b if and only if a satisfying assignment exists for Tseitin(b).

• 

The result of the Tseitin command will typically include additional variables not present in the original expression.

• 

Note that it is possible to transform a boolean formula into CNF simply by repeated use of De Morgan's law, and this will produce an expression which is not merely equisatisfiable but logically equivalent. However, in general this will result in an exponential increase in the number of terms. By contrast the result of Tseitin's transformation is linear in the number of Boolean operators in b.

Examples

withLogic:

Tseitina&orb&andc

&orB0B0¬aB0¬B¬B0aB¬Bb¬BcB¬b¬c

(1)

Tseitina&impliesb

&andb¬a

(2)

Illustrate the difference in increase in expression size between a straightforward application of De Morgan's law and the Tseitin transform.

E`&or`X1&andY1,X2&andY2,X3&andY3,X4&andY4,X5&andY5,X6&andY6,X7&andY7,X8&andY8

EX1Y1X2Y2X3Y3X4Y4X5Y5X6Y6X7Y7X8Y8

(3)

Result_DeMorganLogic:-NormalizeE,form=CNF

Result_DeMorganX1X2X3X4X5X6X7X8X1X2X3X4X5X6X7Y8X1X2X3X4X5X6X8Y7X1X2X3X4X5X6Y7Y8X1X2X3X4X5X7X8Y6X1X2X3X4X5X7Y6Y8X1X2X3X4X5X8Y6Y7X1X2X3X4X5Y6Y7Y8X1X2X3X4X6X7X8Y5X1X2X3X4X6X7Y5Y8X1X2X3X4X6X8Y5Y7X1X2X3X4X6Y5Y7Y8X1X2X3X4X7X8Y5Y6X1X2X3X4X7Y5Y6Y8X1X2X3X4X8Y5Y6Y7X1X2X3X4Y5Y6Y7Y8X1X2X3X5X6X7X8Y4X1X2X3X5X6X7Y4Y8X1X2X3X5X6X8Y4Y7X1X2X3X5X6Y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