The Predicate Calculus

One limitation of the propositional calculus is that you cannot refer to the components of a statement. For example, it would be impossible to prove that the following argument is valid in the propositional calculus:

All humans are mortal.
Socrates is human.
Therefore, Socrates is mortal.
The problem is that the only way to symbolize this argument is by three different propositional symbols: P, Q, therefore R. But this is like saying, from any two premises, P and Q, any statement, R, follows logically. Obviously, this is not a valid deduction.

The predicate calculus allows us to break these kinds of statements into parts. For example, to represent "Socrates is mortal" we would use mortal(socrates), where mortal is a predicate symbol, and socrates refers to an object. As we'll see, if we represent things in this way, we can prove that the above argument is valid.

Predicate Calculus Syntax

TYPE SYMBOLS
Alphabeta..z, A..Z, 0..9, and _.
SymbolsAny sequence of alphabet characters beginning with a letter.
VariablesBegin with an UPPERCASE letter
ConstantsBegin with an lowercase letter
FunctionsBegin with an lowercase letter
PredicatesBegin with an lowercase letter

Summary of Syntax Rules

Examples:

plus(two,three) is a function and not a sentence.
equal(plus(two,three),five). is a sentence.
equal(plus(two,three),seven). is a (false) sentence.
equal(plus(two,three),seven) -> equal(five,seven). is a sentence.
∃ Y integer(Y) ^ greater(Y,two). is a sentence
∀ X integer(Y) ^ (odd(Y) v even(Y)). is a sentence

Examples


mother(eve,abel).
mother(eve,cain).
father(adam,abel).
father(adam,cain).

∀ X ∀ Y (father(X,Y) v mother(X,Y)) -> parent(X,Y).
∀ X ∀ Y ∀ Z (parent(X,Y) ^ parent(X,Z)) -> sibling(Y,Z).

These would be translated as:

Eve is the mother of Abel.
Eve is the mother of Cain.
Adam is the father of Abel.
Adam is the father of Cain.
For all X and Y, X is the parent of Y if X is the father of Y or X is the mother of Y.
For all X, Y, and Z, Y is a sibling of Z if X is a parent of Y and X is a parent of Z.

Some Translation Rules of Thumb

Exercise:  Translate each of the following expressions into English.


sister(jane,joan).
brother(bill,bob).
mother(ann,bill).
father(jim,jane).

∀ X ∀ Y (sister(X,Y) v brother(X,Y)) -> sibling(X,Y).
∀ X ∃ Y sister(X,Y) -> female(X).
∃ X ∃ Y ∃ Z sister(X,Y) ^ mother(X,Z).
∀ X ∀ Y ∀ Z (sister(X,Y) ^ mother(Z,X)) -> mother(Z,Y).
∀ X ∀ Y ∀ Z (sister(X,Y) ^ sister(Y,Z)) -> sister(X,Z).

Exercise: Translate each of the following sentences into predicate calculus sentences.

Some students are lazy.
Some students got Bs.
All students received a passing grade.
Not every student received an A.
Not any student received an A.
An aspirin a day keeps the doctor away.
Baseball players are always male.
Children are in the classroom.
Everything is coming up roses.
Everything that happens isn't his fault.
Only items purchased in Sears can be returned to Sears.
Freshman are not always lonesome.