Syntax
The primitive vocabulary of the language of propositional logic includes:
- a countable set of propositional variables , , , … with or without numerical subscripts.
- a monadic sentential operator:
- a binary sentential operator:
- two parentheses: ,
The use of and as basic connectives is a departure from common presentations of the language, which generally include , , and . These connectives will be defined in terms of and .
Certain strings of symbols in the vocabulary of propositional logic qualify as well-formed formulas (wff) of the language. Those are the strings constructed in accordance to the following rules:
Definition 4.1 (Well-Formed Formula) We define what is for a string of symbols of the language to be a well-formed formula of :
- All propositional variables are well-formed formulas of .
- If is a well-formed formula of , then is a well-formed formula of .
- If and are well-formed formulas of , then is a well-formed formula of .
- Nothing else is a well-formed formula of .
The set of well-formed formulas is constructed inductively from an initial set of atomic formulas. The set of well-formed formulas of propositional logic is the -least set containing every propositional variable and closed under applications of negation and conditional.
We now define familiar connectives in terms of and , where is read as: `abbreviates’.
Definition 4.2 (Connectives)
The inductive definition of well-formed formula vindicates a principle of induction for well-formed formulas, which will help us prove different generalizations over them.
Proposition 4.1 (Induction on the Complexity of Well-Formed Formulas) Given a condition on formulas of , if
- every atomic formula satisfies ,
- if a formula satisfies , satisfies , and
- if two formulas and satisfy , satisfies ,
then every formula satisfies .
We will use the method of induction on the complexity of a formula to prove that every formula satisfies a certain condition __________.
We proceed in three steps. The base case is a proof that every propositional variable satisfies the condition.
- Base Case Every propositional variable is __________
The next two steps establish each a generalization of a conditional statement:
Inductive Step for If a formula is __________, then its negation is __________
Inductive Step for If a formula is __________ and a formula is __________, then the conditional is __________
Once the three steps are completed, we are entitled to conclude:
- Every formula is __________
Here is an example of a simple induction on the complexity of formulas:
Example 4.1 Call a well-formed formula balanced if, and only if, it contains the same number of left and right parentheses. We will use an induction to establish the proposition:
- Every well-formed formula is balanced.
We use an induction on the complexity of formulas.
Base Case. A propositional variable contains an equal number of left and right parentheses, namely, zero.
Inductive Step for . If a formula is balanced, then the negation will be balanced.
Let be a balanced well-formed formula. Since contains exactly as many left and right parentheses as , we have that it contains an equal number of left and right parentheses. So, is balanced.
Inductive Step for . If a formula and a formula are each balanced, then the conditional is balanced as well.
Let and be two balanced well-formed formulas and let and be the number of left and right parentheses each formula has. will contain left parentheses, that is the number of left parentheses in plus that of left parentheses in plus the initial left parenthesis of the formula. will similarly contain right parentheses, that is the number of right parentheses in plus that of right parentheses in plus the final right parenthesis of the formula. So, will contain exactly the same number of left and right parentheses, which means that it will be a balanced well-formed formula.
We conclude that a well-formed formula is balanced.