This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed. Find sources: "Three-valued logic" – news ·newspapers ·books ·scholar ·JSTOR(January 2011) (Learn how and when to remove this message) |
Inlogic, athree-valued logic (alsotrinary logic,trivalent,ternary, ortrilean,[1] sometimes abbreviated3VL) is any of severalmany-valued logic systems in which there are threetruth values indicatingtrue,false, and some third value. This is contrasted with the more commonly knownbivalent logics (such as classicalsentential orBoolean logic) which provide only fortrue andfalse.
Emil Leon Post is credited with first introducing additional logical truth degrees in his 1921 theory of elementary propositions.[2] The conceptual form and basic ideas of three-valued logic were initially published byJan Łukasiewicz andClarence Irving Lewis. These were then re-formulated byGrigore Constantin Moisil in an axiomatic algebraic form, and also extended ton-valued logics in 1945.
Around 1910,Charles Sanders Peirce defined amany-valued logic system. He never published it. In fact, he did not even number the three pages of notes where he defined his three-valued operators.[3] Peirce soundly rejected the idea all propositions must be either true or false; boundary-propositions, he writes, are "at the limit between P and not P."[4] However, as confident as he was that "Triadic Logic is universally true,"[5] he also jotted down that "All this is mighty close to nonsense."[6] Only in 1966, when Max Fisch and Atwell Turquette began publishing what they rediscovered in his unpublished manuscripts, did Peirce's triadic ideas become widely known.[7]
Broadly speaking, the primary motivation for research of three-valued logic is to represent the truth value of a statement that cannot be represented as true or false.[8] Łukasiewicz initially developed three-valued logic for theproblem of future contingents to represent the truth value of statements about the undetermined future.[9][10][11]Bruno de Finetti used a third value to represent when "a given individual does not know the [correct] response, at least at a given moment."[12][8]Hilary Putnam used it to represent values that cannot physically be decided:[13]
For example, if we have verified (by using a speedometer) that the velocity of a motor car is such and such, it might be impossible in such a world to verify or falsify certain statements concerning its position at that moment. If we know by reference to a physical law together with certain observational data that a statement as to the position of a motor car can never be falsified or verified, then there may be some point to not regarding the statement as true or false, but regarding it as "middle". It is only because, in macrocosmic experience, everything that we regard as an empirically meaningful statement seems to be at least potentially verifiable or falsifiable that we prefer the convention according to which we say that every such statement is either true or false, but in many cases we don't know which.
Similarly,Stephen Cole Kleene used a third value to representpredicates that are "undecidable by [any] algorithms whether true or false"[14][8]
As with bivalent logic, truth values in ternary logic may be represented numerically using various representations of theternary numeral system. A few of the more common examples are:
Inside aternary computer, ternary values are represented byternary signals.
This article mainly illustrates a system of ternarypropositional logic using the truth values {false, unknown, true}, and extends conventional Booleanconnectives to a trivalent context.
Boolean logic allows 22 = 4unary operators; the addition of a third value with two inputs is 32 = 9 and with a third input in ternary logic leads to a total of 33 = 27 distinct operators on a single input set. (This may be made clear by considering all possible truth tables for an arbitrary unary operator. Given 2 possible values TF of the single Boolean input, there are four different patterns of output TT, TF, FT, FF resulting from the following unary operators acting on each value: always T, Identity, NOT, always F. Given three possible values of a ternary variable, each times three possible results of a unary operation, there are 27 different output patterns: TTT, TTU, TTF, TUT, TUU, TUF, TFT, TFU, TFF, UTT, UTU, UTF, UUT, UUU, UUF, UFT, UFU, UFF, FTT, FTU, FTF, FUT, FUU, FUF, FFT, FFU, and FFF.) Similarly, where Boolean logic has 22×2 = 16 distinct binary operators (operators with 2 inputs) possible, ternary logic has 33×3 = 19,683 such operators. While the nontrivial Boolean operators can be named (AND,NAND,OR,NOR,XOR,XNOR (equivalence), and 4 variants ofimplication or inequality), with six trivial operators considering 0 or 1 inputs only, it is unreasonable to attempt to name all but a small fraction of the possible ternary operators.[18] Just as in bivalent logic, where not all operators are given names and subsets offunctionally complete operators are used, there may be functionally complete sets of ternary-valued operators.
Below is a set oftruth tables showing the logic operations forStephen Cole Kleene'sstrong logic of indeterminacy andGraham Priest'slogic of paradox.
| (F, false; U, unknown; T, true) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (−1, false; 0, unknown; +1, true) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
If the truth values 1, 0, and −1 are interpreted as integers, these operations may be expressed with the ordinary operations of arithmetic (wherex +y uses addition,xy uses multiplication, andx2 uses exponentiation), or by the minimum/maximum functions:
In these truth tables, theunknown state can be thought of as neither true nor false in Kleene logic, or thought of as both true and false in Priest logic. The difference lies in the definition of tautologies. Where Kleene logic's only designated truth value is T, Priest logic's designated truth values are both T and U. In Kleene logic, the knowledge of whether any particularunknown state secretly representstrue orfalse at any moment in time is not available. However, certain logical operations can yield an unambiguous result, even if they involve anunknown operand. For example, becausetrue ORtrue equalstrue, andtrue ORfalse also equalstrue, thentrue ORunknown equalstrue as well. In this example, because either bivalent state could be underlying theunknown state, and either state also yields the same result,true results in all three cases.
If numeric values, e.g.balanced ternary values, are assigned tofalse,unknown andtrue such thatfalse is less thanunknown andunknown is less thantrue, then A AND B AND C... = MIN(A, B, C ...) and A OR B OR C ... = MAX(A, B, C...).
Material implication for Kleene logic can be defined as:
, and its truth table is
|
| ||||||||||||||||||||||||||||||||||||||||||
which differs from that for Łukasiewicz logic (described below).
Kleene logic has no tautologies (valid formulas) because whenever all of the atomic components of a well-formed formula are assigned the value Unknown, the formula itself must also have the value Unknown. (And the onlydesignated truth value for Kleene logic is True.) However, the lack of valid formulas does not mean that it lacks valid arguments and/or inference rules. An argument is semantically valid in Kleene logic if, whenever (for any interpretation/model) all of its premises are True, the conclusion must also be True. (Thelogic of paradox (LP) has the same truth tables as Kleene logic, but it has twodesignated truth values instead of one; these are: True and Both (the analogue of Unknown), so that LP does have tautologies but it has fewer valid inference rules).[19]
The Łukasiewicz Ł3 has the same tables for AND, OR, and NOT as the Kleene logic given above, but differs in its definition of implication in that "unknown implies unknown" istrue. This section follows the presentation from Malinowski's chapter of theHandbook of the History of Logic, vol 8.[20]
Material implication for Łukasiewicz logic truth table is
|
| ||||||||||||||||||||||||||||||||||||||||||
In fact, using Łukasiewicz's implication and negation, the other usual connectives may be derived as:
It is also possible to derive a few other useful unary operators (first derived by Tarski in 1921):[citation needed]
They have the following truth tables:
|
|
|
M is read as "it is not false that..." or in the (unsuccessful) Tarski–Łukasiewicz attempt to axiomatizemodal logic using a three-valued logic, "it is possible that..." L is read "it is true that..." or "it is necessary that..." Finally I is read "it is unknown that..." or "it is contingent that..."
In Łukasiewicz's Ł3 thedesignated value is True, meaning that only a proposition having this value everywhere is considered atautology. For example,A →A andA ↔A are tautologies in Ł3 and also in classical logic. Not all tautologies of classical logic lift to Ł3 "as is". For example, thelaw of excluded middle,A ∨ ¬A, and thelaw of non-contradiction,¬(A ∧ ¬A) are not tautologies in Ł3. However, using the operatorI defined above, it is possible to state tautologies that are their analogues:
The truth table for the material implication of R-mingle 3 (RM3) is
| |||||||||||||||||||||
A defining characteristic of RM3 is the lack of the axiom of Weakening:
which, by adjointness, is equivalent to the projection from the product:
RM3 is a non-cartesian symmetric monoidal closed category; the product, which is left-adjoint to the implication, lacks valid projections, and hasU as the monoid identity.This logic is equivalent to an"ideal" paraconsistent logic which also obeys the contrapositive.
The logic of here and there (HT, also referred as Smetanov logicSmT or asGödel G3 logic), introduced byHeyting in 1930[21] as a model for studyingintuitionistic logic, is a three-valuedintermediate logic where the third truth value NF (not false) has the semantics of a proposition that can be intuitionistically proven to not be false, but does not have an intuitionistic proof of correctness.
| (F, false; NF, not false; T, true) | ||||||||
| ||||||||
| |||||||||||||||||||||
It may be defined either by appending one of the two equivalent axioms(¬q →p) → (((p →q) →p) →p) or equivalentlyp∨(¬q)∨(p →q) to the axioms ofintuitionistic logic, or by explicit truth tables for its operations. In particular, conjunction and disjunction are the same as for Kleene's and Łukasiewicz's logic, while the negation is different.
HT logic is the uniquecoatom in the lattice of intermediate logics. In this sense it may be viewed as the "second strongest" intermediate logic after classical logic.
This logic is also known as a weak form of Kleene's three-valued logic.
This section is empty. You can help byadding to it.(August 2014) |
|
|
| ||||||||||||||||||||||||||||||||||||||||||
These functions may also be expressed with arithmetic expressions. Given the set of truth values is they are:
Some 3VLmodulars arithmetics have been introduced more recently, motivated by circuit problems rather than philosophical issues:[22]
The database query languageSQL implements ternary logic as a means of handling comparisons withNULL field content. SQL uses a common fragment of the Kleene K3 logic, restricted to AND, OR, and NOT tables.
Triadic Logic is universally true. But Dyadic Logic is not aboslutely false
But there is a second possible way to conceive of many-valued logics: that while a proposition, in itself, can have only two values, true or false, that is to say two responses, yes or no, it may happen that a given individual does not know the [correct] response, at least at a given moment; therefore, for the individual there is a third attitude possible toward a proposition. This third attitude does not correspond to a distinct third value of yes or of no, but simply to a doubt between yes or no
However, it is not the case that 'middle' means "neither verified nor falsified at the present time". As we have seen, 'verified' and 'falsified' are epistemic predicates--that is to say, they are relative to the evidence at a particular time--whereas 'middle,' like 'true' and 'false' is not relative to the evidence.
The strong 3-valued logic can be applied to completely defined predicates Q(x) and R(x), from which composite predicates are formed using ̅, V, &, ->, ≡ in the usual 2-valued meanings, thus, (iii) Suppose that there are fixed algorithms which decide the truth or falsity of Q(x) and of R(x), each on a subset of the natural numbers (as occurs e.g. after completing the definitions of any two partial recursive predicates classically). Let t, f, u mean 'decidable by the algorithms (i.e. by use of only such information about Q(x) and R(x) as can be obtained by the algorithms) to be true', 'decidable by the algorithms to be false', 'undecidable by the algorithms whether true or false'. (iv) Assume a fixed state of knowledge about Q(x) and R(x) (as occurs e.g. after pursuing algorithms for each of them up to a given stage). Let t, f, u mean 'known to be true', 'known to be false', 'unknown whether true or false'.