Many-valued logics

Syntax and Semantics

Reading preferences

Optional display controls need JavaScript. All reading content and navigation work without it.

Source file content/many-valued-logic/syntax-and-semantics/syntax-and-semantics.tex

Source file content/many-valued-logic/syntax-and-semantics/introduction.tex

Introduction

In classical logic, we deal with formulas that are built from propositional variables using the propositional connectives ¬\lnotsource, \landsource, \lorsource, \lifsource, and \liffsource. When we define a semantics for classical logic, we do so using the two truth values T\Truesource and F\Falsesource. We interpret propositional variables in a valuation v\pAssign{v}source, which assigns these truth values T\Truesource, F\Falsesource to the propositional variables. Any valuation then determines a truth value v¯(A)\pValue{v}(!A)source for any formula A!Asource, and A formula is satisfied in a valuation v\pAssign{v}source, vA\pSat{v}{!A}source, iff v¯(A)=T\pValue{v}(!A) = \Truesource.

Many-valued logics are generalizations of classical two-valued logic by allowing more truth values than just T\Truesource and F\Falsesource. So in many-valued logic, a valuation v\pAssign{v}source is a function assigning to every propositional variable ppsource one of a range of possible truth values. We'll generally call the set of allowed truth values VVsource. Classical logic is a many-valued logic where V={T,F}V = \{\True, \False\}source, and the truth value v¯(A)\pValue{v}(!A)source is computed using the familiar characteristic truth tables for the connectives.

Once we add additional truth values, we have more than one natural option for how to compute v¯(A)\pValue{v}(!A)source for the connectives we read as “and,” “or,” “not,” and “if---then.” So a many-valued logic is determined not just by the set of truth values, but also by the truth functions we decide to use for each connective. Once these are selected for a many-valued logic L\Log Lsource, however, the truth value v¯L(A)\pValue{v}(!A)[\Log L]source is uniquely determined by the valuation, just like in classical logic. Many-valued logics, like classical logic, are truth functional.

With this semantic building blocks in hand, we can go on to define the analogs of the semantic concepts of tautology, entailment, and satisfiability. In classical logic, a formula is a tautology if its truth value v¯(A)=T\pValue{v}(!A) = \Truesource for any v\pAssign{v}source. In many-valued logic, we have to generalize this a bit as well. First of all, there is no requirement that the set of truth values VVsource contains T\Truesource. For instance, some many-valued logics use numbers, such as all rational numbers between 00source and 11source as their set of truth values. In such a case, 11source usually plays the rule of T\Truesource. In other logics, not just one but several truth values do. So, we require that every many-valued logic have a set V+V^+source of designated values. We can then say that a formula is satisfied in a valuation v\pAssign{v}source, vLA\pSat{v}{!A}[\Log L]source, iff v¯L(A)V+\pValue{v}(!A)[\Log L] \in V^+source. A formula A!Asource is a tautology of the logic, LA\Entails[\Log L] !Asource, iff v¯(A)V+\pValue{v}(!A) \in V^+source for any v\pAssign{v}source. And, finally, we say that A!Asource is entailed by a set of formulas, ΓLA\Gamma \Entails[\Log L] !Asource, if every valuation that satisfies all the formulas in Γ\Gammasource also satisfies A!Asource.

Source file content/many-valued-logic/syntax-and-semantics/connectives.tex

Languages and Connectives

Classical propositional logic, and many other logics, use a set supply of propositional constants and connectives. For instance, we use the following as primitives:

  1. The propositional constant for falsity \lfalsesource.

  2. The logical connectives: ¬\lnotsource (negation) , \landsource (conjunction) , \lorsource (disjunction) , \lifsource (conditional)

In addition to the primitive connectives above, we also use symbols defined as abbreviations, such as

\liffsource (biconditional)

, \ltruesource (truth)

The same connectives are used in many-valued logics as well. However, it is often useful to include different versions of, say, conjunction, in the same logic, and that would require different symbols to keep the versions separate. Some many-valued logics also include connectives that have no equivalent in classical logic. So, we'll be a bit more general than usual.

Propositional languages and arities

A propositional language consists of a set L\Lang Lsource of connectives. Each connective \starsource has an arity; a connective of arity nnsource is said to be nnsource-place. Connectives of arity 00source are also called constants; connectives of arity 11source are called unary, and connectives of arity 22source, binary.

Standard propositional language and alternative operators

The standard language of propositional logic L0\Lang L_0source consists of the following connectives (with associated arities): \lfalsesource (00source) ¬\lnotsource (11source), \landsource (22source), \lorsource (22source), \lifsource (22source). Most logics we consider will use this language. Some logics by tradition an convention use different symbols for some connectives. For instance, in product logic, the conjunction symbol is often \odotsource instead of \landsource. Sometimes it is convenient to add a new operator, e.g., the determinateness operator \trianglesource (11source-place).

Source file content/many-valued-logic/syntax-and-semantics/formulas.tex

formula

Inductive definition of formulas

[Formula] The set Frm(L)\Frm[L]source of formulas of a propositional language L\Lang Lsource is defined inductively as follows:

  1. Every propositional variable pi\Obj p_isource is an atomic formula.

  2. Every 00source-place connective (propositional constant) of L\Lang Lsource is an atomic formula.

  3. If \starsource is an nnsource-place connective of L\Lang Lsource, and A1!A_1source, dots, An!A_nsource are formulas, then (A1,,An)\star(!A_1, \dots, !A_n)source is a formula.

  4. Nothing else is a formula.

If \starsource is 11source-place, then (A1)\star(!A_1)source will often be written simply as A1\star !A_1source. If \starsource is 22source-place (A1,A2)\star(!A_1,!A_2)source will often be written as (A1A2)(!A_1 \star !A_2)source.

As usual, we will often silently leave out the outermost parentheses.

Examples of formulas in different languages

In the standard language L0\Lang{L_0}source, p1(p1¬p2)\Obj p_1 \lif (\Obj p_1 \land \lnot \Obj p_2)source is a formula. In the language of product logic, it would be written instead as p1(p1¬p2)\Obj p_1 \lif (\Obj p_1 \odot \lnot \Obj p_2)source. If we add the 11source-place \trianglesource to the language, we would also have formulas such as (p1p2)(p1p2)\triangle (\Obj p_1 \land \Obj p_2) \lif (\triangle \Obj p_1 \land \triangle \Obj p_2)source.

Source file content/many-valued-logic/syntax-and-semantics/matrices.tex

Matrices

A many-valued logic is defined by its language, its set of truth values VVsource, a subset of designated truth values, and truth functions for its connective. Together, these elements are called a matrix.

Matrix for a many-valued logic

[Matrix] A matrix for the logic L\Log Lsource consists of:

  1. a set of connectives making up a language L\Lang Lsource;

  2. a set VV \neq \emptysetsource of truth values;

  3. a set V+VV^+ \subseteq Vsource of designated truth values;

  4. for each nnsource-place connective \starsource in L\Lang Lsource, a truth function ~:VnV\tf{\star} : V^n \to Vsource. If n=0n = 0source, then ~\tf{\star}source is just an element of VVsource.

Classical logic as a many-valued matrix

The matrix for classical logic C\LogCLsource consists of:

  1. The standard propositional language L0\Lang L_0source with \lfalsesource, ¬\lnotsource, \landsource, \lorsource, \lifsource.

  2. The set of truth values V={T,F}V = \{\True, \False\}source.

  3. T\Truesource is the only designated value, i.e., V+={T}V^+ = \{\True\}source.

  4. For \lfalsesource, we have ~=F\tf{\lfalse} = \Falsesource. The other truth functions are given by the usual truth tables (see the figure of classical truth functions).

Four truth functions of classical logic

The figure contains four separately linearized tables. The unary table pairs input with output; binary tables use the first argument as the row label and the second argument as the column label. True precedes false on each axis.

Source transcription

Classical negation truth table

Truth table for the negation truth function. Columns are input and output, in that order. Row one, input true: output false. Row two, input false: output true. End of truth table.

¬~\tf{\lnot}source
Classical negation truth table
inputoutput
T\TruesourceF\Falsesource
F\FalsesourceT\Truesource
source 43

quad

Classical conjunction truth table

Truth table for the conjunction truth function. Rows give the first argument; columns give the second argument. Column values, in source order: true, false. Row one, input true: outputs in that column order: true, false. Row two, input false: outputs in that column order: false, false. End of truth table.

~\tf{\land}source
Classical conjunction truth table
first argumentT\TruesourceF\Falsesource
T\TruesourceT\TruesourceF\Falsesource
F\FalsesourceF\FalsesourceF\Falsesource
source 50

quad

Classical disjunction truth table

Truth table for the disjunction truth function. Rows give the first argument; columns give the second argument. Column values, in source order: true, false. Row one, input true: outputs in that column order: true, true. Row two, input false: outputs in that column order: true, false. End of truth table.

~\tf{\lor}source
Classical disjunction truth table
first argumentT\TruesourceF\Falsesource
T\TruesourceT\TruesourceT\Truesource
F\FalsesourceT\TruesourceF\Falsesource
source 57

quad

Classical conditional truth table

Truth table for the conditional truth function. Rows give the first argument; columns give the second argument. Column values, in source order: true, false. Row one, input true: outputs in that column order: true, false. Row two, input false: outputs in that column order: true, true. End of truth table.

~\tf{\lif}source
Classical conditional truth table
first argumentT\TruesourceF\Falsesource
T\TruesourceT\TruesourceF\Falsesource
F\FalsesourceT\TruesourceT\Truesource
source 64

captionTruth functions for classical logic C\LogCLsource.

Source file content/many-valued-logic/syntax-and-semantics/valuations-sat.tex

valuation and Satisfaction

Valuation into a truth value set

[Valuations] Let VVsource be a set of truth values. A valuation for L\Lang{L}source into VVsource is a function v\pAssign{v}source assigning an element of VVsource to the propositional variables of the language, i.e., v:At0V\pAssign{v} \colon \PVar \to Vsource.

Evaluation function on all formulas

Given a valuation v\pAssign{v}source into the set of truth values VVsource of a many-valued logic L\Log Lsource, define the evaluation function v¯:Frm(L)V\pValue{v} \colon \Frm[L] \to Vsource inductively by:

  1. v¯(pn)=v(pn)\pValue{v}(\Obj p_n) = \pAssign{v}(\Obj p_n)source;

  2. If \starsource is a 00source-place connective, then v¯()=~L\pValue{v}(\star) = \tf{\star}[\Log L]source;

  3. If \starsource is an nnsource-place connective, then

    v¯((A1,,An))=~L(v¯(A1),,v¯(An)).\pValue{v}(\star(!A_1, \dots, !A_n)) = \tf{\star}[\Log L] (\pValue{v}(!A_1), \dots, \pValue{v}(!A_n)).source

Satisfaction by designated values

[Satisfaction] The formula A!Asource is satisfied by a valuation v\pAssign{v}source, vLA\pSat{v}{!A}[\Log L]source, iff v¯L(A)V+\pValue{v}(!A)[\Log L] \in V^+source, where V+V^+source is the set of designated truth values of L\Log Lsource.

We write vLA\pSat/{v}{!A}[\Log L]source to mean “not vLA\pSat{v}{!A}[\Log L]source.” If Γ\Gammasource is a set of formulas, vLΓ\pSat{v}{\Gamma}[\Log L]source iff vLA\pSat{v}{!A}[\Log L]source for every AΓ!A \in \Gammasource.

Source file content/many-valued-logic/syntax-and-semantics/semantic-notions.tex

Semantic Notions

Suppose a many-valued logic L\Log Lsource is given by a matrix. Then we can define the usual semantic notions for L\Log Lsource.

Satisfiability, tautology and entailment

  1. A formula A!Asource is satisfiable if for some v\pAssign{v}source, vA\pSat{v}{!A}source; it is unsatisfiable if for no v\pAssign{v}source, vA\pSat{v}{!A}source;

  2. A formula A!Asource is a tautology if vA\pSat{v}{!A}source for all valuations vvsource;

  3. If Γ\Gammasource is a set of formulas, ΓA\Gamma \Entails !Asource (“Γ\Gammasource entails A!Asource”) if and only if vA\pSat{v}{!A}source for every valuation v\pAssign{v}source for which vΓ\pSat{v}{\Gamma}source.

  4. If Γ\Gammasource is a set of formulas, Γ\Gammasource is satisfiable if there is a valuation v\pAssign{v}source for which vΓ\pSat{v}{\Gamma}source, and Γ\Gammasource is unsatisfiable otherwise.

We have some of the same facts for these notions as we do for the case of classical logic:

General facts about many-valued entailment

  1. A!Asource is a tautology if and only if A\emptyset \Entails !Asource;

  2. If Γ\Gammasource is satisfiable then every finite subset of Γ\Gammasource is also satisfiable;

  3. Monotonicity: if ΓΔ\Gamma \subseteq \Deltasource and ΓA\Gamma \Entails !Asource then also ΔA\Delta \Entails !Asource;

  4. Transitivity: if ΓA\Gamma \Entails !Asource and Δ{A}B\Delta \cup \{ !A\} \Entails !Bsource then ΓΔB\Gamma \cup \Delta \Entails !Bsource;

Proof

Exercise.

Exercise on semantic facts

Prove the proposition on the four general semantic facts

In classical logic we can connect entailment and the conditional. For instance, we have the validity of modus ponens: If ΓA\Gamma \Entails !Asource and ΓAB\Gamma \Entails !A \lif !Bsource then ΓB\Gamma \Entails !Bsource. Another important relationship between \Entailssource and \lifsource in classical logic is the semantic deduction theorem: ΓAB\Gamma \Entails !A \lif !Bsource if and only if Γ{A}B\Gamma \cup \{!A\} \Entails !Bsource. These results do not always hold in many-valued logics. Whether they do depends on the truth function ~\tf{\lif}source.

Source file content/many-valued-logic/syntax-and-semantics/sublogics.tex

Many-valued logics as sublogics of C\LogCLsource

The usual many-valued logics are all defined using matrices in which the value of a truth-function for arguments in {T,F}\{\True, \False\}source agrees with the classical truth functions. Specifically, in these logics, if x{T,F}x \in \{\True, \False\}source, then ¬~L(x)=¬~C(x)\tf{\lnot}[\Log L](x) = \tf{\lnot}[\LogCL](x)source, and for \starsource any one of \landsource, \lorsource, \lifsource, if x,y{T,F}x, y \in \{\True, \False\}source, then ~L(x,y)=~C(x,y)\tf{\star}[\Log L](x,y) = \tf{\star}[\LogCL](x,y)source. In other words, the truth functions for ¬\lnotsource, \landsource, \lorsource, \lifsource restricted to {T,F}\{\True,\False\}source are exactly the classical truth functions.

Agreement with classical evaluation on classical inputs

Suppose that a many-valued logic L\Log Lsource contains the connectives ¬\lnotsource, \landsource, \lorsource, \lifsource in its language, T,FV\True, \False \in Vsource, and its truth functions satisfy:

  1. ¬~L(x)=¬~C(x)\tf{\lnot}[\Log L](x) = \tf{\lnot}[\LogCL](x)source if x=Tx = \Truesource or x=Fx = \Falsesource;

  2. ~L(x,y)=~C(x,y)\tf{\land}[\Log L](x,y) = \tf{\land}[\LogCL](x,y)source,

  3. ~L(x,y)=~C(x,y)\tf{\lor}[\Log L](x,y) = \tf{\lor}[\LogCL](x,y)source,

  4. ~L(x,y)=~C(x,y)\tf{\lif}[\Log L](x,y) = \tf{\lif}[\LogCL](x,y)source, if x,y{T,F}x, y \in \{\True, \False\}source.

Then, for any valuation v\pAssign vsource into VVsource such that v(p){T,F}\pAssign v(p) \in \{\True,\False\}source, v¯L(A)=v¯C(A)\pValue v[\Log L](!A) = \pValue v[\LogCL](!A)source.

Proof

By induction on A!Asource.

  1. If Ap!A \ident psource is atomic, we have v¯L(A)=v(p)=v¯C(A)\pValue v[\Log L](!A) = \pAssign v(p) = \pValue v[\LogCL](!A)source.

  2. If A¬B!A \ident \lnot Bsource, we have

    v¯L(A)=¬~L(v¯L(B))by the evaluation definition=¬~L(v¯C(B))by inductive hypothesis=¬~C(v¯C(B))by assumption the assumption that negation agrees on true and false,since v¯C(B){T,F},=v¯C(A)by the evaluation definition.\pValue v[\Log L](!A) & = \tf{\lnot}[\Log L](\pValue v[\Log L](!B)) & &\text{by \olref[val]{defn:pValue}}\\ & = \tf{\lnot}[\Log L](\pValue v[\LogCL](!B)) && \text{by inductive hypothesis}\\ & = \tf{\lnot}[\LogCL](\pValue v[\LogCL](!B)) &&\text{by assumption \olref{prop:not},}\\ &&&\text{since $\pValue v[\LogCL](!B) \in \{\True, \False\}$,}\\ & = \pValue v[\LogCL](!A) &&\text{by \olref[val]{defn:pValue}}.source
  3. If A(BC)!A \ident (!B \land !C)source, we have

    v¯L(A)=~L(v¯L(B),v¯L(C))by the evaluation definition=~L(v¯C(B),v¯C(C))by inductive hypothesis=~C(v¯C(B),v¯C(C))by assumption the assumption that conjunction agrees on true and false,since v¯C(B),v¯C(C){T,F},=v¯C(A)by the evaluation definition.\pValue v[\Log L](!A) & = \tf{\land}[\Log L](\pValue v[\Log L](!B), \pValue v[\Log L](!C)) & &\text{by \olref[val]{defn:pValue}}\\ & = \tf{\land}[\Log L](\pValue v[\LogCL](!B),\pValue v[\LogCL](!C)) && \text{by inductive hypothesis}\\ & = \tf{\land}[\LogCL](\pValue v[\LogCL](!B),\pValue v[\LogCL](!C)) &&\text{by assumption \olref{prop:land},}\\ &&&\text{since $\pValue v[\LogCL](!B),\pValue v[\LogCL](!C) \in \{\True, \False\}$,}\\ & = \pValue v[\LogCL](!A) &&\text{by \olref[val]{defn:pValue}}.source

The cases where A(BC)!A \ident (!B \lor !C)source and A(BC)!A \ident (!B \lif !C)source are similar.

Consequence relation included in classical consequence

If a many-valued logic satisfies the conditions of the proposition on agreement with classical evaluation, TV+\True \in V^+source and FV+\False \notin V^+source, then LC{\Entails[\Log L]} \subseteq {\Entails[\LogCL]}source, i.e., if ΓLB\Gamma \Entails[\Log L] !Bsource then ΓCB\Gamma \Entails[\LogCL] !Bsource. In particular, every tautology of L\Log Lsource is also a classical tautology.

Proof

We prove the contrapositive. Suppose ΓCB\Gamma \Entails/[\LogCL] !Bsource. Then there is some valuation v:At0{T,F}\pAssign v\colon \PVar \to \{\True, \False\}source such that v¯C(A)=T\pValue v[\LogCL](!A) = \Truesource for all AΓ!A \in \Gammasource and v¯C(B)=F\pValue v[\LogCL](!B) = \Falsesource. Since T,FV\True, \False \in Vsource, the valuation v\pAssign vsource is also a valuation for L\Log Lsource. By the proposition on agreement with classical evaluation, v¯L(A)=T\pValue v[\Log L](!A) = \Truesource for all AΓ!A \in \Gammasource and v¯L(B)=F\pValue v[\Log L](!B) = \Falsesource. Since TV+\True \in V^+source and FV+\False \notin V^+source that means vLΓ\pAssign v \Entails[\Log L] \Gammasource and vLB\pAssign v \Entails/[\Log L] !Bsource, i.e., ΓLB\Gamma \Entails/[\Log L] !Bsource.

Source disclosures