Predicate S
Predicate S
there are some statements which cannot be called true or false like:
“x > 3,” “x = y + 3,” “x + y = z,” In these examples x is the subject and “>3” is
predicate
and
Solution: We obtain the statement P(4) by setting x = 4 in the statement “x > 3.” Hence, P(4), which is the
statement “4 > 3,” is true. However, P(2), which is the statement “2 > 3,” is false.
Example: Let A(x) denote the statement “Computer x is under attack by an intruder.” Suppose that of the
computers on campus, only CS2 and MATH1 are currently under attack by intruders. What are truth values of
A(CS1), A(CS2), and A(MATH1)?
Solution in class
Example: Let A(c, n) denote the statement “Computer c is connected to network n,” where c is a variable
representing a computer and n is a variable representing a network. Suppose that the computer MATH1 is
connected to network CAMPUS2, but not to network CAMPUS1.
Solution in class
Quantifiers
Quantification expresses the extent to which a predicate is true over a
range of elements.
When the variables in a propositional function are assigned values, the
resulting statement becomes a proposition with a certain truth value.
However, there is another important way, called quantification,
THE UNIVERSAL QUANTIFIER
THE EXISTENTIAL QUANTIFIER
Solution in class
Solution in class
Solution in class
Solution in class
Negating Quantified Expressions
let x represents a student and domain of x is every student in the class. Let P(x) is statement “x has read ITC” and ¬P(x) means “x
has not read ITC”
Quantifier Meaning When true? When false? Negation Meaning When True? When false? Equivalence
∀xP(x) all students When every When at- ¬∀xP(x) all students when ∀xP(x) when ∀xP(x) ¬∀xP(x) ≡
in the class x has read least 1 have not is false is true ∃x¬P(x)
has read ITC student has read ITC means no
ITC not read ITC one student
has not read
ITC
∃xP(x) There is at- When at- When all ¬∃xP(x) There is no when ∃xP(x) when ∃xP(x) ¬∃xP(x) ≡
least one least one students not one student is false, is true, ∀x¬P(x)
student who student has read ITC who has means all means at-
has read read ITC read ITC the students least one
ITC have not student has
read ITC read ITC