CH 2
CH 2
CALCULUS
Knowledge
Sentences in the propositional calculus are formed from these atomic symbols according to the following
rules:
Answer
Yes, it is a well-formed sentence in the propositional calculus because it has been
constructed (through a series of applications of legal rules and is therefore “well
formed) as follows:
P, Q, and R are propositions and thus sentences.
P ∧ Q, the conjunction of two sentences, is a sentence.
(P ∧ Q) → R, the implication of a sentence for another, is a sentence.
¬ P and ¬ Q, the negations of sentences, are sentences.
¬ P ∨ ¬ Q, the disjunction of two sentences, is a sentence.
¬ P ∨ ¬ Q ∨ R, the disjunction of two sentences, is a sentence.
((P ∧ Q) → R) ≡ ¬ P ∨ ¬ Q ∨ R, the equivalence of two sentences, is a
sentence.
The Semantics of the Propositional Calculus
As mentioned earlier, the symbols true and false are part of the set of
well-formed sentences of the propositional calculus; i.e., they are distinct
from the truth value assigned to a sentence.
To enforce this distinction, the symbols T and F are used for truth value
assignment.
The interpretation for sentences in the
Propositional Calculus
The truth assignment of conjunction (∧) is T only when both conjuncts have
truth value T; otherwise it is F.
The truth assignment of disjunction (∨) is F only when both disjuncts have
truth value F; otherwise it is T.
The truth assignment of implication (→) is F only when the premise (symbol
before the implication) is T and the truth value of the consequent (symbol
after the implication) is F; otherwise it is T.
The truth assignment of equivalence (≡) is T only when both expressions have
the same truth assignment for all possible interpretations; otherwise it is F.
Propositional Calculus Laws
George
YES
Fire3
YES
science!!!
No
ahmd_and_salem
YES
3jack
No
bill
YES
XXXX
YES
Cheating not allowed
No
friends_of
YES
ab%cd
No
Predicate Calculus Symbols (ii)
Parentheses “( )”, commas “,”, and periods “.” are used solely to
construct well-formed expressions and do not denote objects or
relations in the world. These are called improper symbols.
Atomic sentence
Is the most primitive unit of the predicate calculus language.
It is a predicate of arity n followed by n terms enclosed in parentheses and
separated by commas.
The truth values, true and false, are also atomic sentences
Atomic sentences are also called atomic expressions, atoms, or
propositions
mother(eve, abel)
mother(eve , cain)
father(adam , abel)
father(adam , cain)
∀ X ∀ Y father(X, Y) ∨ mother(X, Y) → parent(X, Y)
∀ X ∀ Y ∀ Z parent(X, Y) ∧ parent(X, Z) → sibling (Y, Z)
A Semantics for the Predicate Calculus
Every city has a dogcatcher who has been bitten by every dog in town.
∀x City(x) ⇒ [∃y DogCatcher(y)∧[∀z Dog(z)∧LivesIn(z, x) ⇒ BittenBy(y, z)]]
Example (iii)
Given the fact that Ali is a light sleeper, Does Ali have mice?
Explain.
Answer
1. ∀x(Hound(x) → Howl(x))
Unification specifies conditions under which two (or more) predicate calculus
expressions may be said to be equivalent.
Because p(X) and p(Y) are equivalent, Y may be substituted for X to make the
sentences match.
Unification is complicated by the fact that a variable may be replaced by any term,
including other variables and function expressions of arbitrary complexity. These
expressions may themselves contain variables.
Examples