Manyvalued logic (also multi or multiplevalued logic) refers to a propositional calculus in which there are more than two truth values. Traditionally, in Aristotle's logical calculus, there were only two possible values (i.e., "true" and "false") for any proposition. Classical twovalued logic may be extended to nvalued logic for n greater than 2. Those most popular in the literature are threevalued (e.g., Łukasiewicz's and Kleene's, which accept the values "true", "false", and "unknown"), fourvalued, ninevalued, the finitevalued (finitelymany valued) with more than three values, and the infinitevalued (infinitelymanyvalued), such as fuzzy logic and probability logic.
The first known classical logician who did not fully accept the law of excluded middle was Aristotle (who, ironically, is also generally considered to be the first classical logician and the "father of logic"^{[1]}). Aristotle admitted that his laws did not all apply to future events (De Interpretatione, ch. IX), but he didn't create a system of multivalued logic to explain this isolated remark. Until the coming of the 20th century, later logicians followed Aristotelian logic, which includes or assumes the law of the excluded middle.
The 20th century brought back the idea of multivalued logic. The Polish logician and philosopher Jan Łukasiewicz began to create systems of manyvalued logic in 1920, using a third value, "possible", to deal with Aristotle's paradox of the sea battle. Meanwhile, the American mathematician, Emil L. Post (1921), also introduced the formulation of additional truth degrees with n ≥ 2, where n are the truth values. Later, Jan Łukasiewicz and Alfred Tarski together formulated a logic on n truth values where n ≥ 2. In 1932, Hans Reichenbach formulated a logic of many truth values where n→∞. Kurt Gödel in 1932 showed that intuitionistic logic is not a finitelymany valued logic, and defined a system of Gödel logics intermediate between classical and intuitionistic logic; such logics are known as intermediate logics.
Kleene's "(strong) logic of indeterminacy" K_{3} (sometimes ) and Priest's "logic of paradox" add a third "undefined" or "indeterminate" truth value I. The truth functions for negation (¬), conjunction (∧), disjunction (∨), implication (), and biconditional () are given by:^{[2]}





The difference between the two logics lies in how tautologies are defined. In K_{3} only T is a designated truth value, while in P_{3} both T and I are (a logical formula is considered a tautology if it evaluates to a designated truth value). In Kleene's logic I can be interpreted as being "underdetermined", being neither true nor false, while in Priest's logic I can be interpreted as being "overdetermined", being both true and false. K_{3} does not have any tautologies, while P_{3} has the same tautologies as classical twovalued logic.^{[3]}
Another logic is Dmitry Bochvar's "internal" threevalued logic , also called Kleene's weak threevalued logic. Except for negation and biconditional, its truth tables are all different from the above.^{[4]}



The intermediate truth value in Bochvar's "internal" logic can be described as "contagious" because it propagates in a formula regardless of the value of any other variable.^{[4]}
Belnap's logic B_{4} combines K_{3} and P_{3}. The overdetermined truth value is here denoted as B and the underdetermined truth value as N.



In 1932 Gödel defined^{[5]} a family of manyvalued logics, with finitely many truth values , for example has the truth values and has . In a similar manner he defined a logic with infinitely many truth values, , in which the truth values are all the real numbers in the interval . The designated truth value in these logics is 1.
The conjunction and the disjunction are defined respectively as the minimum and maximum of the operands:
Negation and implication are defined as follows:
Gödel logics are completely axiomatisable, that is to say it is possible to define a logical calculus in which all tautologies are provable.
Implication and negation were defined by Jan Łukasiewicz through the following functions:
At first Łukasiewicz used these definitions in 1920 for his threevalued logic , with truth values . In 1922 he developed a logic with infinitely many values , in which the truth values spanned the real numbers in the interval . In both cases the designated truth value was 1.^{[6]}
By adopting truth values defined in the same way as for Gödel logics , it is possible to create a finitelyvalued family of logics , the abovementioned and the logic , in which the truth values are given by the rational numbers in the interval . The set of tautologies in and is identical.
In product logic we have truth values in the interval , a conjunction and an implication , defined as follows^{[7]}
Additionally there is a negative designated value that denotes the concept of false. Through this value it is possible to define a negation and an additional conjunction as follows:
and then .
In 1921 Post defined a family of logics with (as in and ) the truth values . Negation and conjunction and disjunction are defined as follows:
In 1951, Alan Rose defined another family of logics for systems whose truthvalues form lattices.^{[8]}
Logics are usually systems intended to codify rules for preserving some semantic property of propositions across transformations. In classical logic, this property is "truth." In a valid argument, the truth of the derived proposition is guaranteed if the premises are jointly true, because the application of valid steps preserves the property. However, that property doesn't have to be that of "truth"; instead, it can be some other concept.
Multivalued logics are intended to preserve the property of designationhood (or being designated). Since there are more than two truth values, rules of inference may be intended to preserve more than just whichever corresponds (in the relevant sense) to truth. For example, in a threevalued logic, sometimes the two greatest truthvalues (when they are represented as e.g. positive integers) are designated and the rules of inference preserve these values. Precisely, a valid argument will be such that the value of the premises taken jointly will always be less than or equal to the conclusion.
For example, the preserved property could be justification, the foundational concept of intuitionistic logic. Thus, a proposition is not true or false; instead, it is justified or flawed. A key difference between justification and truth, in this case, is that the law of excluded middle doesn't hold: a proposition that is not flawed is not necessarily justified; instead, it's only not proven that it's flawed. The key difference is the determinacy of the preserved property: One may prove that P is justified, that P is flawed, or be unable to prove either. A valid argument preserves justification across transformations, so a proposition derived from justified propositions is still justified. However, there are proofs in classical logic that depend upon the law of excluded middle; since that law is not usable under this scheme, there are propositions that cannot be proven that way.
Functional completeness is a term used to describe a special property of finite logics and algebras. A logic's set of connectives is said to be functionally complete or adequate if and only if its set of connectives can be used to construct a formula corresponding to every possible truth function.^{[9]} An adequate algebra is one in which every finite mapping of variables can be expressed by some composition of its operations.^{[10]}
Classical logic: CL = ({0,1}, ¬, →, ∨, ∧, ↔) is functionally complete, whereas no Łukasiewicz logic or infinitely manyvalued logics has this property.^{[10]}^{[11]}
We can define a finitely manyvalued logic as being L_{n} ({1, 2, ..., n} ƒ_{1}, ..., ƒ_{m}) where n ≥ 2 is a given natural number. Post (1921) proves that assuming a logic is able to produce a function of any m^{th} order model, there is some corresponding combination of connectives in an adequate logic L_{n} that can produce a model of order m+1.^{[12]}
Known applications of manyvalued logic can be roughly classified into two groups.^{[13]} The first group uses manyvalued logic to solve binary problems more efficiently. For example, a wellknown approach to represent a multipleoutput Boolean function is to treat its output part as a single manyvalued variable and convert it to a singleoutput characteristic function (specifically, the indicator function). Other applications of manyvalued logic include design of programmable logic arrays (PLAs) with input decoders, optimization of finite state machines, testing, and verification.
The second group targets the design of electronic circuits that employ more than two discrete levels of signals, such as manyvalued memories, arithmetic circuits, and field programmable gate arrays (FPGAs). Manyvalued circuits have a number of theoretical advantages over standard binary circuits. For example, the interconnect on and off chip can be reduced if signals in the circuit assume four or more levels rather than only two. In memory design, storing two instead of one bit of information per memory cell doubles the density of the memory in the same die size. Applications using arithmetic circuits often benefit from using alternatives to binary number systems. For example, residue and redundant number systems^{[14]} can reduce or eliminate the ripplethrough carries that are involved in normal binary addition or subtraction, resulting in highspeed arithmetic operations. These number systems have a natural implementation using manyvalued circuits. However, the practicality of these potential advantages heavily depends on the availability of circuit realizations, which must be compatible or competitive with presentday standard technologies. In addition to aiding in the design of electronic circuits, manyvalued logic is used extensively to test circuits for faults and defects. Basically all known automatic test pattern generation (ATG) algorithms used for digital circuit testing require a simulator that can resolve 5valued logic (0, 1, x, D, D').^{[15]} The additional values—x, D, and D'—represent (1) unknown/uninitialized, (2) a 0 instead of a 1, and (3) a 1 instead of a 0.
An IEEE International Symposium on MultipleValued Logic (ISMVL) has been held annually since 1970. It mostly caters to applications in digital design and verification.^{[16]} There is also a Journal of MultipleValued Logic and Soft Computing.^{[17]}
{{cite web}}
: CS1 maint: archived copy as title (link)
General
{{cite journal}}
: Cite journal requires journal=
(help)CS1 maint: bot: original URL status unknown (link)Specific
{{cite encyclopedia}}
: CS1 maint: uses authors parameter (link)