# Formal Logic/Sentential Logic/Formal Syntax

 ← The Sentential Language ↑ Sentential Logic Informal Conventions →

# Formal Syntax

In The Sentential Language, we informally described our sentential language. Here we give its formal syntax or grammar. We will call our language ${\displaystyle {\mathcal {L_{S}}}\,\!}$.

## Vocabulary

• Sentence letters: Capital letters 'A' – 'Z', each with (1) a superscript '0' and (2) a natural number subscript. (The natural numbers are the set of positive integers and zero.) Thus the sentence letters are:
${\displaystyle \mathrm {A_{0}^{0}} ,\ \mathrm {A_{1}^{0}} ,\ ...,\ \mathrm {B_{0}^{0}} ,\ \mathrm {B_{1}^{0}} ,\ ...,\ ...,\ \mathrm {Z_{0}^{0}} ,\ \mathrm {Z_{1}^{0}} ,\ ...\,\!}$
• Sentential connectives:
${\displaystyle \land ,\ \lor ,\ \lnot ,\ \rightarrow ,\ \leftrightarrow \,\!}$
• Grouping symbols:
${\displaystyle (,\ )\,\!}$

The superscripts on sentence letters are not important until we get to the predicate logic, so we won't really worry about those here. The subscripts on sentence letters are to ensure an infinite supply of sentence letters. On the next page, we will abbreviate away most superscripts and subscripts.

## Expressions

Any string of characters from the ${\displaystyle {\mathcal {L_{S}}}\,\!}$ vocabulary is an expression of ${\displaystyle {\mathcal {L_{S}}}\,\!}$. Some expressions are grammatically correct. Some are as incorrect in ${\displaystyle {\mathcal {L_{S}}}\,\!}$ as 'Over talks David Mary the' is in English. Still other expressions are as hopelessly ill-formed in ${\displaystyle {\mathcal {L_{S}}}\,\!}$ as 'jmr.ovn asgj as;lnre' is in English.

We call a grammatically correct expression of ${\displaystyle {\mathcal {L_{S}}}\,\!}$ a well-formed formula. When we get to Predicate Logic, we will find that only some well formed formulas are sentences. For now though, we consider every well formed formula to be a sentence.

## Construction rules

An expression of ${\displaystyle {\mathcal {L_{S}}}\,\!}$ is called a well-formed formula of ${\displaystyle {\mathcal {L_{S}}}\,\!}$ if it is constructed according to the following rules.

${\displaystyle {\mbox{i.}}}$ The expression consists of a single sentence letter
${\displaystyle {\mbox{ii.}}}$ The expression is constructed from other well-formed formulae ${\displaystyle \varphi \,\!}$ and ${\displaystyle \psi \,\!}$ in one of the following ways:
${\displaystyle {\mbox{ii-a.}}\ \ \lnot \varphi \,\!}$
${\displaystyle {\mbox{ii-b.}}\ \ (\varphi \land \psi )\,\!}$
${\displaystyle {\mbox{ii-c.}}\ \ (\varphi \lor \psi )\,\!}$
${\displaystyle {\mbox{ii-d.}}\ \ (\varphi \rightarrow \psi )\,\!}$
${\displaystyle {\mbox{ii-e.}}\ \ (\varphi \leftrightarrow \psi )\,\!}$

In general, we will use 'formula' as shorthand for 'well-formed formula'. Since all formulae in ${\displaystyle {\mathcal {L_{S}}}\,\!}$ are sentences, we will use 'formula' and 'sentence' interchangeably.

## Quoting convention

We will take expressions of ${\displaystyle {\mathcal {L_{S}}}\,\!}$ to be self-quoting and so regard

${\displaystyle (\mathrm {P_{0}^{0}} \rightarrow \mathrm {Q_{0}^{0}} )\,\!}$

to include implicit quotation marks. However, something like

${\displaystyle (1)\quad (\varphi \rightarrow \psi )\,\!}$

requires special consideration. It is not itself an expression of ${\displaystyle {\mathcal {L_{S}}}\,\!}$ since ${\displaystyle \varphi \,\!}$ and ${\displaystyle \psi \,\!}$ are not in the vocabulary of ${\displaystyle {\mathcal {L_{S}}}\,\!}$. Rather they are used as variables in English which range over expressions of ${\displaystyle {\mathcal {L_{S}}}\,\!}$. Such a variable is called a metavariable, and an expression using a mix of vocabulary from ${\displaystyle {\mathcal {L_{S}}}\,\!}$ and metavariables is called a metalogical expression. Suppose we let ${\displaystyle \varphi \,\!}$ be ${\displaystyle \mathrm {P_{0}^{0}} \,\!}$ and ${\displaystyle \psi \,\!}$ be ${\displaystyle (\mathrm {Q_{0}^{0}} \lor \mathrm {R_{0}^{0}} )\ .\,\!}$ Then (1) becomes

${\displaystyle (\,\!}$'${\displaystyle \mathrm {P_{0}^{0}} \,\!}$' ${\displaystyle \rightarrow (\,\!}$'${\displaystyle \mathrm {Q_{0}^{0}} \,\!}$' ${\displaystyle \lor \,\!}$'${\displaystyle \mathrm {R_{0}^{0}} \,\!}$'${\displaystyle ))\,\!}$

which is not what we want. Instead we take (1) to mean (using explicit quotes):

the expression consisting of '${\displaystyle (\,\!}$' followed by ${\displaystyle \varphi \,\!}$ followed by '${\displaystyle \rightarrow \,\!}$' followed by ${\displaystyle \psi \,\!}$ followed by '${\displaystyle )\,\!}$' .

Explicit quotes following this convention are called Quine quotes or corner quotes. Our corner quotes will be implicit.

We introduce (or, in some cases, repeat) some useful syntactic terminology.

• We distinguish between an expression (or a formula) and an occurrence of an expression (or formula). The formula
${\displaystyle ((\mathrm {P_{0}^{0}} \land \mathrm {P_{0}^{0}} )\land \lnot \mathrm {P_{0}^{0}} )\,\!}$

is the same formula no matter how many times it is written. However, it contains three occurrences of the sentence letter ${\displaystyle \mathrm {P_{0}^{0}} \,\!}$ and two occurrences of the sentential connective ${\displaystyle \land \,\!}$.

• ${\displaystyle \psi \,\!}$ is a subformula of ${\displaystyle \varphi \,\!}$ if and only if ${\displaystyle \varphi \,\!}$ and ${\displaystyle \psi \,\!}$ are both formulae and ${\displaystyle \varphi \,\!}$ contains an occurrence of ${\displaystyle \psi \,\!}$. ${\displaystyle \psi \,\!}$ is a proper subformula of ${\displaystyle \varphi \,\!}$ if and only if (i) ${\displaystyle \psi \,\!}$ is a subformula of ${\displaystyle \varphi \,\!}$ and (ii) ${\displaystyle \psi \,\!}$ is not the same formula as ${\displaystyle \varphi \,\!}$.
• An atomic formula or atomic sentence is one consisting solely of a sentence letter. Or put the other way around, it is a formula with no sentential connectives. A molecular formula or molecular sentence is one which contains at least one occurrence of a sentential connective.
• The main connective of a molecular formula is the last occurrence of a connective added when the formula was constructed according to the rules above.
• A negation is a formula of the form ${\displaystyle \lnot \varphi \,\!}$ where ${\displaystyle \varphi \,\!}$ is a formula.
• A conjunction is a formula of the form ${\displaystyle (\varphi \land \psi )\,\!}$ where ${\displaystyle \varphi \,\!}$ and ${\displaystyle \psi \,\!}$ are both formulae. In this case, ${\displaystyle \varphi \,\!}$ and ${\displaystyle \psi \,\!}$ are both conjuncts.
• A disjunction is a formula of the form ${\displaystyle (\varphi \lor \psi )\,\!}$ where ${\displaystyle \varphi \,\!}$ and ${\displaystyle \psi \,\!}$ are both formulae. In this case, ${\displaystyle \varphi \,\!}$ and ${\displaystyle \psi \,\!}$ are both disjuncts.
• A conditional is a formula of the form ${\displaystyle (\varphi \rightarrow \psi )\,\!}$ where ${\displaystyle \varphi \,\!}$ and ${\displaystyle \psi \,\!}$ are both formulae. In this case, ${\displaystyle \varphi \,\!}$ is the antecedent, and ${\displaystyle \psi \,\!}$ is the consequent. The converse of ${\displaystyle (\varphi \rightarrow \psi )\,\!}$ is ${\displaystyle (\psi \rightarrow \varphi )\,\!}$. The contrapositive of ${\displaystyle (\varphi \rightarrow \psi )\,\!}$ is ${\displaystyle (\lnot \psi \rightarrow \lnot \varphi )\,\!}$.
• A biconditional is a formula of the form ${\displaystyle (\varphi \leftrightarrow \psi )\,\!}$ where ${\displaystyle \varphi \,\!}$ and ${\displaystyle \psi \,\!}$ are both formulae.

## Examples

${\displaystyle (1)\quad (\lnot (\mathrm {P_{0}^{0}} \lor \mathrm {Q_{0}^{0}} )\rightarrow (\mathrm {R_{0}^{0}} \land \lnot \mathrm {Q_{0}^{0}} ))\,\!}$

By rule (i), all sentence letters, including

${\displaystyle \mathrm {P_{0}^{0}} ,\ \mathrm {Q_{0}^{0}} ,\ {\mbox{and}}\ \mathrm {R_{0}^{0}} \ ,\,\!}$

are formulae. By rule (ii-a), then, the negation

${\displaystyle \lnot \mathrm {Q_{0}^{0}} \,\!}$

is also a formula. Then by rules (ii-c) and (ii-b), we get the disjunction and conjunction

${\displaystyle (\mathrm {P_{0}^{0}} \lor \mathrm {Q_{0}^{0}} ),\ {\mbox{and}}\ (\mathrm {R_{0}^{0}} \land \lnot \mathrm {Q_{0}^{0}} )\,\!}$

as formulae. Applying rule (ii-a) again, we get the negation

${\displaystyle \lnot (\mathrm {P_{0}^{0}} \lor \mathrm {Q_{0}^{0}} )\,\!}$

as a formula. Finally, rule (ii-c) generates the conditional of (1), so it too is a formula.

${\displaystyle (2)\quad ((\mathrm {P_{0}^{0}} \lnot \land \mathrm {Q_{0}^{0}} )\lor \mathrm {S_{0}^{0}} )\,\!}$

This appears to be generated by rule (ii-c) from

${\displaystyle (\mathrm {P_{0}^{0}} \lnot \land \mathrm {Q_{0}^{0}} ),\ {\mbox{and}}\ \mathrm {S_{0}^{0}} \ .\,\!}$

The second of these is a formula by rule (i). But what about the first? It would have to be generated by rule (ii-b) from

${\displaystyle \mathrm {P_{0}^{0}} \lnot \ {\mbox{and}}\ \mathrm {Q_{0}^{0}} \ .\,\!}$

But

${\displaystyle \mathrm {P_{0}^{0}} \lnot \,\!}$

cannot be generated by rule (ii-a). So (2) is not a formula.

 ← The Sentential Language ↑ Sentential Logic Informal Conventions →