To serve as a model of the logic of a given
natural language, a formal language must be semantically interpreted. In
classical logic, all propositions evaluate to exactly one of two
truth-values:
True or
False. For example, "
Wikipedia is a
free online encyclopedia that anyone can edit"
evaluates to True, while "Wikipedia is a
paper encyclopedia"
evaluates to False. In other respects, the following formal semantics can apply to the language of any propositional logic, but the assumptions that there are only two semantic values (
bivalence), that only one of the two is assigned to each formula in the language (
noncontradiction), and that every formula gets assigned a value (
excluded middle), are distinctive features of classical logic. To learn about
nonclassical logics with more than two truth-values, and their unique semantics, one may consult the articles on "
Many-valued logic", "
Three-valued logic", "
Finite-valued logic", and "
Infinite-valued logic".
Interpretation (case) and argument For a given language \mathcal{L}, an
interpretation,
valuation,
Boolean valuation, or
case, is an
assignment of
semantic values to each formula of \mathcal{L}. For a formal language of classical logic, a case is defined as an
assignment, to each formula of \mathcal{L}, of one or the other, but not both, of the
truth values, namely
truth (
T, or 1) and
falsity (
F, or 0). An interpretation that follows the rules of classical logic is sometimes called a
Boolean valuation. An interpretation of a formal language for classical logic is often expressed in terms of
truth tables. Since each formula is only assigned a single truth-value, an interpretation may be viewed as a
function, whose
domain is \mathcal{L}, and whose
range is its set of semantic values \mathcal{V} = \{\mathsf{T}, \mathsf{F}\}, or \mathcal{V} = \{1, 0\}. For n distinct propositional symbols there are 2^n distinct possible interpretations. For any particular symbol a, for example, there are 2^1=2 possible interpretations: either a is assigned
T, or a is assigned
F. And for the pair a, b there are 2^2=4 possible interpretations: either both are assigned
T, or both are assigned
F, or a is assigned
T and b is assigned
F, or a is assigned
F and b is assigned
T. Since \mathcal{L} has \aleph_0, that is,
denumerably many propositional symbols, there are 2^{\aleph_0}=\mathfrak c, and therefore
uncountably many distinct possible interpretations of \mathcal{L} as a whole. Where \mathcal{I} is an interpretation and \varphi and \psi represent formulas, the definition of an
argument, given in , may then be stated as a pair \langle \{\varphi_1, \varphi_2, \varphi_3, ..., \varphi_n\} , \psi \rangle, where \{\varphi_1, \varphi_2, \varphi_3, ..., \varphi_n\} is the set of premises and \psi is the conclusion. The definition of an argument's
validity, i.e. its property that \{\varphi_1, \varphi_2, \varphi_3, ..., \varphi_n\} \models \psi, can then be stated as its
absence of a counterexample, where a
counterexample is defined as a case \mathcal{I} in which the argument's premises \{\varphi_1, \varphi_2, \varphi_3, ..., \varphi_n\} are all true but the conclusion \psi is not true. As will be seen in , this is the same as to say that the conclusion is a
semantic consequence of the premises.
Propositional connective semantics An interpretation assigns semantic values to
atomic formulas directly. Molecular formulas are assigned a
function of the value of their constituent atoms, according to the connective used; the connectives are defined in such a way that the
truth-value of a sentence formed from atoms with connectives depends on the truth-values of the atoms that they're applied to, and
only on those. This assumption is referred to by
Colin Howson as the assumption of the
truth-functionality of the connectives.
Semantics via truth tables Since logical connectives are defined semantically only in terms of the
truth values that they take when the
propositional variables that they're applied to take either of the
two possible truth values, the semantic definition of the connectives is usually represented as a
truth table for each of the connectives, as seen below: }T || T || T || T || T || T || F || F This table covers each of the main five
logical connectives:
conjunction (here notated p \land q),
disjunction (),
implication (),
biconditional () and
negation, (¬
p, or ¬
q, as the case may be). It is sufficient for determining the semantics of each of these operators. For more truth tables for more different kinds of connectives, see the article "
Truth table".
Semantics via assignment expressions Some authors write out the connective semantics using a list of statements instead of a table. In this format, where \mathcal{I}(\varphi) is the interpretation of \varphi, the five connectives are defined as: • \mathcal{I}(\neg P) = \mathsf{T} if, and only if, \mathcal{I}(P) = \mathsf{F} • \mathcal{I}(P \land Q) = \mathsf{T} if, and only if, \mathcal{I}(P) = \mathsf{T} and \mathcal{I}(Q) = \mathsf{T} • \mathcal{I}(P \lor Q) = \mathsf{T} if, and only if, \mathcal{I}(P) = \mathsf{T} or \mathcal{I}(Q) = \mathsf{T} • \mathcal{I}(P \to Q) = \mathsf{T} if, and only if, it is true that, if \mathcal{I}(P) = \mathsf{T}, then \mathcal{I}(Q) = \mathsf{T} • \mathcal{I}(P \leftrightarrow Q) = \mathsf{T} if, and only if, it is true that \mathcal{I}(P) = \mathsf{T} if, and only if, \mathcal{I}(Q) = \mathsf{T} Instead of \mathcal{I}(\varphi), the interpretation of \varphi may be written out as |\varphi|, or, for definitions such as the above, \mathcal{I}(\varphi) = \mathsf{T} may be written simply as the English sentence "\varphi is given the value \mathsf{T}". Yet other authors may prefer to speak of a
Tarskian model \mathfrak{M} for the language, so that instead they'll use the notation \mathfrak{M} \models \varphi, which is equivalent to saying \mathcal{I}(\varphi) = \mathsf{T}, where \mathcal{I} is the interpretation function for \mathfrak{M}.
Connective definition methods Some of these connectives may be defined in terms of others: for instance, implication, p \rightarrow q, may be defined in terms of disjunction and negation, as \neg p \lor q; and disjunction may be defined in terms of negation and conjunction, as \neg(\neg p \land \neg q). In fact, a
truth-functionally complete system, in the sense that all and only the classical propositional tautologies are theorems, may be derived using only disjunction and negation (as
Russell,
Whitehead, and
Hilbert did), or using only implication and negation (as
Frege did), or using only conjunction and negation, or even using only a single connective for "not and" (the
Sheffer stroke), as
Jean Nicod did. A
joint denial connective (
logical NOR) will also suffice, by itself, to define all other connectives. Besides NOR and NAND, no other connectives have this property. Some authors, namely
Howson and Cunningham, distinguish equivalence from the biconditional. (As to equivalence, Howson calls it "truth-functional equivalence", while Cunningham calls it "logical equivalence".) Equivalence is symbolized with ⇔ and is a metalanguage symbol, while a biconditional is symbolized with ↔ and is a logical connective in the object language \mathcal{L}. Regardless, an equivalence or biconditional is true if, and only if, the formulas connected by it are assigned the same semantic value under every interpretation. Other authors often do not make this distinction, and may use the word "equivalence", and/or the symbol ⇔, to denote their object language's biconditional connective.
Semantic truth, validity, consequence Given \varphi and \psi as
formulas (or sentences) of a language \mathcal{L}, and \mathcal{I} as an interpretation (or case) of \mathcal{L}, then the following definitions apply: •
Truth-in-a-case: A sentence \varphi of \mathcal{L} is
true under an interpretation \mathcal{I} if \mathcal{I} assigns the truth value
T to \varphi. If \varphi is
true under \mathcal{I}, then \mathcal{I} is called a
model of \varphi. •
Falsity-in-a-case: \varphi is
false under an interpretation \mathcal{I} if, and only if, \neg\varphi is true under \mathcal{I}. This is the "truth of negation" definition of falsity-in-a-case. Falsity-in-a-case may also be defined by the "complement" definition: \varphi is
false under an interpretation \mathcal{I} if, and only if, \varphi is not true under \mathcal{I}. In
classical logic, these definitions are equivalent, but in
nonclassical logics, they are not. •
Semantic consequence: A sentence \psi of \mathcal{L} is a
semantic consequence (\varphi \models \psi) of a sentence \varphi if there is no interpretation under which \varphi is true and \psi is not true. •
Valid formula (tautology): A sentence \varphi of \mathcal{L} is
logically valid (\models\varphi),{{refn|group=lower-alpha|Conventionally \models\varphi, with nothing to the left of the turnstile, is used to symbolize a tautology. It may be interpreted as saying that \varphi is a semantic consequence of the empty set of formulae, i.e., \{\}\models\varphi, but with the empty brackets omitted for simplicity; which is just the same as to say that it is a tautology, i.e., that there is no interpretation under which it is false.}} or a
tautology, if it is true under every interpretation, or
true in every case. •
Consistent sentence: A sentence of \mathcal{L} is
consistent if it is true under at least one interpretation. It is
inconsistent if it is not consistent. An inconsistent formula is also called
self-contradictory, and said to be a
self-contradiction, or simply a
contradiction, although this latter name is sometimes reserved specifically for statements of the form (p \land \neg p). For interpretations (cases) \mathcal{I} of \mathcal{L}, these definitions are sometimes given: •
Complete case: A case \mathcal{I} is
complete if, and only if, either \varphi is true-in-\mathcal{I} or \neg\varphi is true-in-\mathcal{I}, for any \varphi in \mathcal{L}. •
Consistent case: A case \mathcal{I} is
consistent if, and only if, there is no \varphi in \mathcal{L} such that both \varphi and \neg\varphi are true-in-\mathcal{I}. For
classical logic, which assumes that all cases are complete and consistent, the following theorems apply: • For any given interpretation, a given formula is either true or false under it. • No formula is both true and false under the same interpretation. • \varphi is true under \mathcal{I} if, and only if, \neg\varphi is false under \mathcal{I}; \neg\varphi is true under \mathcal{I} if, and only if, \varphi is not true under \mathcal{I}. • If \varphi and (\varphi \to \psi) are both true under \mathcal{I}, then \psi is true under \mathcal{I}. • If \models\varphi and \models(\varphi \to \psi), then \models\psi. • (\varphi \to \psi) is true under \mathcal{I} if, and only if, either \varphi is not true under \mathcal{I}, or \psi is true under \mathcal{I}. • \varphi \models \psi if, and only if, (\varphi \to \psi) is
logically valid, that is, \varphi \models \psi if, and only if, \models(\varphi \to \psi). ==Proof systems==