Jump to content

Three-valued logic

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Dozen (talk | contribs) at 10:40, 24 December 2006 (added summary comparison of low level binary and ternary operations). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A ternary, three-valued or trivalent logic is a multi-valued logic in which there are three truth values indicating true, false and some third value. This is contrasted with traditional Aristotlean logic which provides only for true and false.

In binary logic, there are four (2^2) monatomic (single operand) operations: not, identity, true, and false. Ternary provides nine (3^3); naming them is more difficult; the list would include identity, true, false, and other. Binary not would map to several ternary forms.

Moving up to diatomic (dual operand) operations, binary provides sixteen (2^(2^2)), including zero, one, and, or, if, xor, nor, and nand. Ternary provides 19,683 (3^(3^2)). Obviously no one is going to name all of them. They include the trivial cases of true, false, and other, as well as one-to-many mappings of the non-trivial binary operations. Should ternary logic become mainstream, it is likely the operations would be broken down into various classes, instead of naming each one.

See also