Predicate Logic (Rosen, Sections 1.4, 1.5)
Predicate Logic (Rosen, Sections 1.4, 1.5)
rock.
(T and F) ■ What are the truth values of:
R(rock, paper)
■ When we assign values to x and y, then P ■
■ R(scissors, paper)
has a truth value. false
true
Evaluating Expressions:
English to Logic Precedence and Variable Bindings
■ No one in this class is wearing shorts and a ski ■ Precedence:
parka. ■ Quantifiers and negation are evaluated
■ Domain of x is persons in this class before operators
■ S(x): x is wearing shorts ■ Otherwise left to right
■ P(x): x is wearing a ski parka ■ Bound:
■ ¬∃x(S(x)∧P(x)) ■ Variables can be given specific values or
■ Domain of x is all persons ■ Can be constrained by quantifiers
■ C(x): x belongs to the class
■ ¬∃x(C(x)∧S(x)∧P(x))