Reading preferences
Optional display controls need JavaScript. All reading content and navigation work without it.
Source file content/many-valued-logic/three-valued-logics/three-valued-logics.tex
Source file content/many-valued-logic/three-valued-logics/introduction.tex
Introduction
If we just add one more value source to source and source, we get a three-valued logic. Even though there is only one more truth value, the possibilities for defining the truth-functions for source, source, source, and source are quite numerous. Then a logic might use any combination of these truth functions, and you also have a choice of making only source designated, or both source and source.
We present here a selection of the most well-known three-valued logics, their motivations, and some of their properties.
Source file content/many-valued-logic/three-valued-logics/lukasiewicz.tex
L ukasiewicz logic
One of the first published, worked out proposals for a many-valued logic is due to the Polish philosopher Jan L ukasiewicz in 1921. L ukasiewicz was motivated by Aristotle's sea battle problem: It seems that, today, the sentence “There will be a sea battle tomorrow” is neither true nor false: its truth value is not yet settled. L ukasiewicz proposed to introduce a third truth value, to such “future contingent” sentences.
I can assume without contradiction that my presence in Warsaw at a certain moment of next year, e.g., at noon on 21 December, is at the present time determined neither positively nor negatively. Hence it is possible, but not necessary, that I shall be present in Warsaw at the given time. On this assumption the proposition “I shall be in Warsaw at noon on 21 December of next year,” can at the present time be neither true nor false. For if it were true now, my future presence in Warsaw would have to be necessary, which is contradictory to the assumption. If it were false now, on the other hand, my future presence in Warsaw would have to be impossible, which is also contradictory to the assumption. Therefore the proposition considered is at the moment neither true nor false and must possess a third value, different from “0” or falsity and “1” or truth. This value we can designate by “source.” It represents “the possible,” and joins “the true” and “the false” as a third value.
We will use source for L ukasiewicz's third truth value.Footnote: L ukasiewicz here uses “possible” in a way that is uncommon today, namely to mean possible but not necessary.
The truth functions for the connectives source, source, and source are easy to determine on this interpretation: the negation of a future contingent sentence is also a future contingent sentence, so source. If one conjunct of a conjunction is undetermined and the other is true, the conjunction is also undetermined---after all, depending on how the future contingent conjunct turns out, the conjunction might turn out to be true, and it might turn out to be false. So
If the other conjunct is false, however, it cannot turn out true, so
The other values (if the arguments are settled truth values, source or source, are like in classical logic.
For the conditional, the situation is a little trickier. Suppose source is a future contingent statement. If source is false, then source will be true, regardless of how source turns out, so we should set source. And if source is true, then source will be true, regardless of what source turns out to be, so source. If source is true, then source might turn out to be true or false, so source. Similarly, if source is false, then source might turn out to be true or false, so source. This leaves the case where source and source are both future contingents. On the basis of the motivation, we should really assign source in this case. However, this would make source not a tautology. L ukasiewicz had not trouble giving up source and source, but balked at giving up source. So he stipulated source.
Definition of three valued Lukasiewicz logic
Three-valued L ukasiewicz logic is defined using the matrix:
The standard propositional language source with source, source, source, source.
The set of truth values source.
Truth functions are given by the following tables:
Lukasiewicz negation truth table
Table for Lukasiewicz negation truth table. Two columns: input, then output. Row one: input true, output false. Row two: input U, output U. Row three: input false, output true. End table.
source 86Lukasiewicz negation truth table source blank source source source source source source quad
Lukasiewicz conjunction truth table
Table for Lukasiewicz conjunction truth table. The first column is the first input. The other three columns have second inputs, in order, true, U, false. Read outputs in that column order. Row one: first input true, outputs true, U, false. Row two: first input U, outputs U, U, false. Row three: first input false, outputs false, false, false. End table.
source 94Lukasiewicz conjunction truth table source source source source source source source source source source source source source source source source \\[2ex]
Lukasiewicz disjunction truth table
Table for Lukasiewicz disjunction truth table. The first column is the first input. The other three columns have second inputs, in order, true, U, false. Read outputs in that column order. Row one: first input true, outputs true, true, true. Row two: first input U, outputs true, U, U. Row three: first input false, outputs true, U, false. End table.
source 102Lukasiewicz disjunction truth table source source source source source source source source source source source source source source source source quad
Lukasiewicz conditional truth table
Table for Lukasiewicz conditional truth table. The first column is the first input. The other three columns have second inputs, in order, true, U, false. Read outputs in that column order. Row one: first input true, outputs true, U, false. Row two: first input U, outputs true, true, U. Row three: first input false, outputs true, true, true. End table.
source 110Lukasiewicz conditional truth table source source source source source source source source source source source source source source source source
As can easily be seen, any formula source containing only source, source, and source will take the truth value source if all its propositional variables are assigned source. So for instance, the classical tautologies source and source are not tautologies in source, since source whenever source.
On valuations where source or source, source will coincide with its classical truth value.
Agreement with classical values on settled assignments
Exercise on the Lukasiewicz biconditional
Suppose we define source in source. What truth table would source have?
Many classical tautologies are also tautologies in source, e.g, source. Just like in classical logic, we can use truth tables to verify this:
Nine row Lukasiewicz tautology verification table
Truth table verifying the Lukasiewicz tautology if not p then, if p then q. Eight source columns, left to right. Column one, p, is the p input. Column two, q, is the q input. Column three, negation, gives negation of p. Column four, p, repeats p. Column five, conditional, gives the main conditional result. Column six, open parenthesis then p, repeats p inside the consequent. Column seven, conditional, gives the inner conditional result. Column eight, q then close parenthesis, repeats q inside the consequent. Row one. p input, true. q input, true. negation of p, false. p repeated, true. main conditional result, true. p inside parentheses, true. inner conditional result, true. q inside parentheses, true. Row two. p input, true. q input, U. negation of p, false. p repeated, true. main conditional result, true. p inside parentheses, true. inner conditional result, U. q inside parentheses, U. Row three. p input, true. q input, false. negation of p, false. p repeated, true. main conditional result, true. p inside parentheses, true. inner conditional result, false. q inside parentheses, false. Row four. p input, U. q input, true. negation of p, U. p repeated, U. main conditional result, true. p inside parentheses, U. inner conditional result, true. q inside parentheses, true. Row five. p input, U. q input, U. negation of p, U. p repeated, U. main conditional result, true. p inside parentheses, U. inner conditional result, true. q inside parentheses, U. Row six. p input, U. q input, false. negation of p, U. p repeated, U. main conditional result, true. p inside parentheses, U. inner conditional result, U. q inside parentheses, false. Row seven. p input, false. q input, true. negation of p, true. p repeated, false. main conditional result, true. p inside parentheses, false. inner conditional result, true. q inside parentheses, true. Row eight. p input, false. q input, U. negation of p, true. p repeated, false. main conditional result, true. p inside parentheses, false. inner conditional result, true. q inside parentheses, U. Row nine. p input, false. q input, false. negation of p, true. p repeated, false. main conditional result, true. p inside parentheses, false. inner conditional result, true. q inside parentheses, false. The main conditional column is true in every source row. End table.
source 145Exercise on three Lukasiewicz tautologies
Show that the following are tautologies in source:
(In the preceding exercise item on the negation of a conjunction and the preceding exercise item on the negation of a disjunction, take source as an abbreviation for source, or refer to your solution to the exercise defining the Lukasiewicz biconditional.)
Exercise on classical tautologies that fail in Lukasiewicz logic
Show that the following classical tautologies are not tautologies in source:
One might therefore perhaps think that although not all classical tautologies are tautologies in source, they should at least take either the value source or the value source on every valuation. This is not the case. A counterexample is given by
which is source if source is source.
Exercise on five Lukasiewicz consequence relations
Which of the following relations hold in L ukasiewicz logic? Give a truth table for each.
L ukasiewicz hoped to build a logic of possibility on the basis of his three-valued system, by introducing a one-place connective source (for “source is possible”) and a corresponding source (for “source is necessary”):
Possibility truth table
Table for Possibility truth table. Two columns: input, then output. Row one: input true, output true. Row two: input U, output true. Row three: input false, output false. End table.
| source | blank |
|---|---|
| source | source |
| source | source |
| source | source |
quad
Necessity truth table
Table for Necessity truth table. Two columns: input, then output. Row one: input true, output true. Row two: input U, output false. Row three: input false, output false. End table.
| source | blank |
|---|---|
| source | source |
| source | source |
| source | source |
In other words, source is possible iff it is not already settled as false; and source is necessary iff it is already settled as true.
Exercise on possibility and necessity duality
Show that source and source are tautologies in source, extended with the truth tables for source and source.
However, the shortcomings of this proposed modal logic soon became evident: However things turn out, source can never turn out to be true. So even if it is not now settled (and therefore undetermined), it should count as impossible, i.e., source should be a tautology. However, if source, then source. Although L ukasiewicz was correct that two truth values will not be enough to accommodate modal distinctions such as possiblity and necessity, introducing a third truth value is also not enough.
Source file content/many-valued-logic/three-valued-logics/kleene.tex
Kleene logics
Stephen Kleene introduced two three-valued logics motivated by a logic in which truth values are thought of the outcomes of computational procedures: a procedure may yield source or source, but it may also fail to terminate. In that case the corresponding truth value is undefined, represented by the truth value source.
To compute the negation of a proposition source, you would first compute the value of source, and then return the opposite of the result. If the computation of source does not terminate, then the entire procedure does not either: so the negation of source is source.
To compute a conjunction source, there are two options: one can first compute source, then source, and then the result would be source if the outcome of both is source, and source otherwise. If either computation fails to halt, the entire procedure does as well. So in this case, the if one conjunct is undefined, the conjunction is as well. The same goes for disjunction.
However, if we can evaluate source and source in parallel, we can do better. Then, if one of the two procedures halts and returns source, we can stop, as the answer must be false. So in that case a conjunction with one false conjunct is false, even if the other conjunct is undefined. Similarly, when computing a disjunction in parallel, we can stop once the procedure for one of the two disjuncts has returned true: then the disjunction must be true. So in this case we can know what the outcome of a compound claim is, even if one of the components is undefined. On this interpretation, we might read source as “unknown” rather than “undefined.”
The two interpretations give rise to Kleene's strong and weak logic. The conditional is defined as equivalent to source.
Definition of strong Kleene logic
Strong Kleene logic source is defined using the matrix:
The standard propositional language source with source, source, source, source.
The set of truth values source.
Truth functions are given by the following tables:
Strong Kleene negation truth table
Table for Strong Kleene negation truth table. Two columns: input, then output. Row one: input true, output false. Row two: input U, output U. Row three: input false, output true. End table.
source 54Strong Kleene negation truth table source blank source source source source source source quad
Strong Kleene conjunction truth table
Table for Strong Kleene conjunction truth table. The first column is the first input. The other three columns have second inputs, in order, true, U, false. Read outputs in that column order. Row one: first input true, outputs true, U, false. Row two: first input U, outputs U, U, false. Row three: first input false, outputs false, false, false. End table.
source 62Strong Kleene conjunction truth table source source source source source source source source source source source source source source source source \\[2ex]
Strong Kleene disjunction truth table
Table for Strong Kleene disjunction truth table. The first column is the first input. The other three columns have second inputs, in order, true, U, false. Read outputs in that column order. Row one: first input true, outputs true, true, true. Row two: first input U, outputs true, U, U. Row three: first input false, outputs true, U, false. End table.
source 70Strong Kleene disjunction truth table source source source source source source source source source source source source source source source source quad
Strong Kleene conditional truth table
Table for Strong Kleene conditional truth table. The first column is the first input. The other three columns have second inputs, in order, true, U, false. Read outputs in that column order. Row one: first input true, outputs true, U, false. Row two: first input U, outputs true, U, U. Row three: first input false, outputs true, true, true. End table.
source 78Strong Kleene conditional truth table source source source source source source source source source source source source source source source source
Definition of weak Kleene logic
Weak Kleene logic source is defined using the matrix:
The standard propositional language source with source, source, source, source.
The set of truth values source.
Truth functions are given by the following tables:
Weak Kleene negation truth table
Table for Weak Kleene negation truth table. Two columns: input, then output. Row one: input true, output false. Row two: input U, output U. Row three: input false, output true. End table.
source 98Weak Kleene negation truth table source blank source source source source source source quad
Weak Kleene conjunction truth table
Table for Weak Kleene conjunction truth table. The first column is the first input. The other three columns have second inputs, in order, true, U, false. Read outputs in that column order. Row one: first input true, outputs true, U, false. Row two: first input U, outputs U, U, U. Row three: first input false, outputs false, U, false. End table.
source 106Weak Kleene conjunction truth table source source source source source source source source source source source source source source source source \\[2ex]
Weak Kleene disjunction truth table
Table for Weak Kleene disjunction truth table. The first column is the first input. The other three columns have second inputs, in order, true, U, false. Read outputs in that column order. Row one: first input true, outputs true, U, true. Row two: first input U, outputs U, U, U. Row three: first input false, outputs true, U, false. End table.
source 114Weak Kleene disjunction truth table source source source source source source source source source source source source source source source source quad
Weak Kleene conditional truth table
Table for Weak Kleene conditional truth table. The first column is the first input. The other three columns have second inputs, in order, true, U, false. Read outputs in that column order. Row one: first input true, outputs true, U, false. Row two: first input U, outputs U, U, U. Row three: first input false, outputs true, U, true. End table.
source 122Weak Kleene conditional truth table source source source source source source source source source source source source source source source source
Neither Kleene logic has a tautology
Proof
If source for all propositional variables source, then any formula source will have truth value source, since
in both logics. As source for either source or source, on this valuation, source will not be designated.
Although both weak and strong Kleene logic have no tautologies, they have non-trivial consequence relations.
Exercise comparing strong and weak Kleene consequence
Which of the following relations hold in (a) strong and (b) weak Kleene logic? Give a truth table for each.
Dmitry Bochvar interpreted source as “meaningless” and attempted to use it to solve paradoxes such as the Liar paradox by stipulating that paradoxical sentences take the value source. He introduced a logic which is essentially weak Kleene logic extended by additional connectives, two of which are “external negation” and the “is undefined” operator:
Bochvar external negation truth table
Table for Bochvar external negation truth table. Two columns: input, then output. Row one: input true, output false. Row two: input U, output true. Row three: input false, output true. End table.
| source | blank |
|---|---|
| source | source |
| source | source |
| source | source |
quad
Bochvar is undefined truth table
Table for Bochvar is undefined truth table. Two columns: input, then output. Row one: input true, output false. Row two: input U, output true. Row three: input false, output false. End table.
| source | blank |
|---|---|
| source | source |
| source | source |
| source | source |
Exercise defining Bochvar external negation
Can you define source in Bochvar's logic in terms of source and source, i.e., find a formula with only the propositional variable source and not involving source which always takes the same truth value as source? Give a truth table to show you're right.
Source file content/many-valued-logic/three-valued-logics/goedel.tex
Gödel logics
Kurt Gödel introduced a sequence of source-valued logics that each contain all formulas valid in intuitionistic logic, and are contained in classical logic. Here is the first interesting one:
Definition of three valued Goedel logic
source-valued Gödel logic source is defined using the matrix:
The standard propositional language source with source, source, source, source, source.
The set of truth values source.
For source, we have source. Truth functions for the remaining connectives are given by the following tables:
Goedel negation truth table
Table for Goedel negation truth table. Two columns: input, then output. Row one: input true, output false. Row two: input U, output false. Row three: input false, output true. End table.
source 28Goedel negation truth table source blank source source source source source source quad
Goedel conjunction truth table
Table for Goedel conjunction truth table. The first column is the first input. The other three columns have second inputs, in order, true, U, false. Read outputs in that column order. Row one: first input true, outputs true, U, false. Row two: first input U, outputs U, U, false. Row three: first input false, outputs false, false, false. End table.
source 36Goedel conjunction truth table source source source source source source source source source source source source source source source source \\[2ex]
Goedel disjunction truth table
Table for Goedel disjunction truth table. The first column is the first input. The other three columns have second inputs, in order, true, U, false. Read outputs in that column order. Row one: first input true, outputs true, true, true. Row two: first input U, outputs true, U, U. Row three: first input false, outputs true, U, false. End table.
source 44Goedel disjunction truth table source source source source source source source source source source source source source source source source quad
Goedel conditional truth table
Table for Goedel conditional truth table. The first column is the first input. The other three columns have second inputs, in order, true, U, false. Read outputs in that column order. Row one: first input true, outputs true, U, false. Row two: first input U, outputs true, true, false. Row three: first input false, outputs true, true, true. End table.
source 52Goedel conditional truth table source source source source source source source source source source source source source source source source
You'll notice that the truth tables for source and source are the same as in L ukasiewicz and strong Kleene logic, but the truth tables for source and source differ for each. In Gödel logic, source. In contrast to L ukasiewicz logic and Kleene logic, source; in contrast to Kleene logic (but as in L ukasiewicz logic), source.
As the connection to intuitionistic logic alluded to above suggests, source is close to intuitionistic logic. All intuitionistic truths are tautologies in source, and many classical tautologies that are not valid intuitionistically also fail to be tautologies in source. For instance, the following are not tautologies:
However, not every tautology of source is also intuitionistically valid, e.g., source or source.
Exercise on four Goedel tautologies
Give truth tables to show that the following are tautologies of source:
Exercise on four failures of Goedel validity
Give truth tables that show that the following are not tautologies of source
Exercise on five Goedel consequence relations
Which of the following relations hold in Gödel logic? Give a truth table for each.
Source file content/many-valued-logic/three-valued-logics/multiple-designation.tex
Designating not just source
So far the logics we've seen all had the set of designated truth values source, i.e., something counts as true iff its truth value is source. But one might also count something as true if it's just not source. Then one would get a logic by stipulating in the matrix, e.g., that source.
Definition of the logic of paradox
The logic of paradox source is defined using the matrix:
Definition of Hallden logic of nonsense
Halldén's logic of nonsense source is defined using the matrix:
The standard propositional language source with source, source, source, source and a source-place connective source.
The set of truth values source.
Truth functions are the same as weak Kleene logic, plus the “is meaningless” operator:
Hallden is meaningless truth table
Table for Hallden is meaningless truth table. Two columns: input, then output. Row one: input true, output false. Row two: input U, output true. Row three: input false, output false. End table.
source 40Hallden is meaningless truth table source blank source source source source source source
By contrast to the Kleene logics with which they share truth tables, these do have tautologies.
The logic of paradox has the classical tautologies
The tautologies of source are the same as the tautologies of classical propositional logic.
Proof
By the earlier proposition comparing many valued and classical validity, if source then source. To show the reverse, we show that if there is a valuation source such that source then there is a valuation source such that source. This establishes the result for source, since source and source have the same characteristic truth functions, and source is the only truth value of source that is not designated (that is the only difference between source and source). Thus, if source, for some valuation source, source. By the claim we're proving, source, i.e., source.
To establish the claim, we first define source as
We now show by induction on source that (a) if source then source, and (b) if source then source
Induction basis: source. By the definition of the value of a formula under an assignment, source, which implies both (a) and (b).
For the induction step, consider the cases:
The other two cases are similar, and left as exercises. Alternatively, the proof above establishes the result for all formulas only containing source and source. One may now appeal to the facts that in both source and source, for any source, source and source.
Exercise completing the logic of paradox proof
Complete the proof the proposition that the logic of paradox has exactly the classical tautologies, i.e., establish (a) and (b) for the cases where source and source.
Exercise on Hallden tautologies
Prove that every classical tautology is a tautology in source.
Although they have the same tautologies as classical logic, their consequence relations are different. source, for instance, is paraconsistent in that source, and so the principle of explosion source does not hold in general. (It holds for some cases of source and source, e.g., if source is a tautology.)
Exercise comparing consequence in paradox and nonsense logics
Which of the following relations hold in (a) source and in (b) source? Give a truth table for each.
What if you make source designated in source?
Source definition named three valued R Mingle
The logic 3-valued R-Mingle source is defined using the matrix:
Exercise on the matrix named R Mingle
Which of the following relations hold in source?
Different truth tables can sometimes generate the same logic (entailment relation) just by changing the designated values. E.g., this happens if in Gödel logic we take source instead of source.
Designating true and U in Goedel logic gives classical logic
The matrix with source, source, and the truth functions of source-valued Gödel logic defines classical logic.
Proof
Exercise.
Exercise proving classical consequence after changing Goedel designation
Prove the proposition that designating true and U in Goedel logic gives classical consequence by showing that for the logic source defined just like Gödel logic but with source, if source then source. Use the ideas of the proposition that the logic of paradox has exactly the classical tautologies, except instead of proving properties (a) and (b), show that source iff source (and hence that source iff source). Explain why this establishes the proposition.
Source disclosures
- TR047-SAR-001: Source notation note. This display repeats false and U in the same order twice. The subsequent conjunction table also gives false for the reversed pair, U and false. The repetition in this source display has been retained. source
- TR047-SAR-002: Source notation note. The first exercise formula has an extra closing parenthesis after q. Its displayed logical content is the conditional from the conjunction of not p and p to q. The source parenthesis is retained and identified; the exercise is not solved. source
- TR047-SAR-003: Source calculation caveat. The source prints U as this final value, but its own tables give false. When p is U, its conjunction with not p is U, possibility of that value is true, and negation of true is false. The claimed value U is retained with this caveat. Either value would be undesignated here, so the stated failure to be a tautology is unaffected. source
- TR047-SAR-004: Source proof caveat. In the atomic case the printed equality with the classical value is only justified when the original value is true or false, as assumed in the two induction claims. It is not an unrestricted equality: an original U becomes true under the defined classical assignment. The two required settled value claims are retained, and the unqualified displayed equality is preserved with this note. source
- TR047-SAR-005: Source proof notation note. In each conjunction case, the source repeats the value of B for both conjuncts. The second occurrence needs to concern C, as the conjunction B and C and the following classical conclusions make clear. Both the false case and the true case retain the original repetition with this disclosure. source
- TR047-SAR-006: Source definition caveat. This definition lists a falsity constant but refers only to the truth functions of the earlier Lukasiewicz matrix, which did not include that constant. Its value is therefore not specified by the referenced definition. The language and referral are preserved; no missing truth function is silently supplied. source