Example
The well-known syllogism
- All men are mortal
- Socrates is a man
- Therefore, Socrates is mortal
cannot be formalized in propositional logic, because of the use of predicates like "is a man" and "is mortal". The obvious formalization in first-order logic uses universal quantification to model the use of "All".
The following weak version of the syllogism can be formalized in propositional logic:
- If Socrates is a man, then Socrates is mortal
- Socrates is a man
- Therefore, Socrates is mortal
This can be done by introducing propositional constants SMN (for "Socrates is a man") and SML (for "Socrates is mortal"), and the two axioms
- SMN → SML, and
- SMN.
Together with the usual rule of modus ponens the conclusion, SML, follows.
In this weak version most of the essence of the original syllogism has been lost. In predicate logic one can instead introduce predicates Man (for "is a man'), Mortal (for "is mortal"), constants A (for "Aristotle"), S (for "Socrates"), Z (for "Zeus"), and so on, and use a multitude of axioms, one for each individual:
- Man(A) → Mortal(A)
- Man(S) → Mortal(S)
- Man(Z) → Mortal(Z)
- ...
- Man(S)
- ¬Mortal(Z)
Again, modus ponens allows to conclude Mortal(S). If the axioms for contraposition are added, also ¬Man(Z) becomes a theorem.
By using an axiom schema, the above can be collapsed into:
- Man(x) → Mortal(x)
- Man(S)
- ¬Mortal(Z)
The first line uses the variable x, which can be instantiated by any constant for an individual, such as S. The axioms are then the substitution instances of the schema.
An equivalent approach is to declare the schema to be a plain axiom and to make variable substitution a special inference rule of the logic.
Read more about this topic: Zeroth-order Logic
Famous quotes containing the word example:
“Our intellect is not the most subtle, the most powerful, the most appropriate, instrument for revealing the truth. It is life that, little by little, example by example, permits us to see that what is most important to our heart, or to our mind, is learned not by reasoning but through other agencies. Then it is that the intellect, observing their superiority, abdicates its control to them upon reasoned grounds and agrees to become their collaborator and lackey.”
—Marcel Proust (18711922)