Lecture 5
Lecture 5
Variables: Symbols that can take different values (e.g., "x", "y", "a", "b").
Connectives: Logical operators like NOT (¬), AND (∧), OR (∨), IMPLIES (→), and EQUIVALENCE
(↔).
o Universal Quantifier (∀): "For all" (e.g., ∀n∈N, n≥0 means "every natural number is
greater than or equal to zero").
o Existential Quantifier (∃): "There exists" (e.g., ∃x, x > 3 means "some x exists such that x
is greater than 3").
2. Predicates
3. Quantification
Universal Quantification (∀): Used when a statement is true for all values.
Existential Quantification (∃): Used when a statement is true for at least one value.
o Example: ∃x, x > 10 means "there exists at least one x greater than 10."
If a statement says "somebody likes Brian" (∃x Likes(x, Brian)), the negation is "nobody likes
Brian" (¬∃x Likes(x, Brian)), which is the same as saying "everybody does not like Brian" (∀x
¬Likes(x, Brian)).
Negation Rule: When negating, universal quantifiers (∀) become existential quantifiers (∃),
and vice versa.
1. Degree of a Predicate
One-place predicate: A statement with one subject (e.g., "Jay is clever" → P(Jay)).
Two-place predicate: A statement with two subjects (e.g., "Jay admires Kay" → Admire(Jay,
Kay)).
N-place predicate: Statements with multiple subjects (e.g., "x is the brother of y" → Brother(x,
y)).
2. Singular Terms
A singular term refers to one specific thing (e.g., "The Eiffel Tower", "New York").
3. Compound Formulas
o Implication (→): If one thing happens, another follows (e.g., "If Jay is a freshman, then
Kay is a freshman" → Fj → Fk).
4. Propositional Functions
A propositional function is a statement with variables that becomes true or false when specific
values are given.
o Example: "x is greater than 3" → P(x) means P(4) is true, but P(2) is false.
Example predicates:
5. Domain of a Predicate
Example:
If n belongs to all integers → Truth set = {1, 2, 4, 8, -1, -2, -4, -8}.
Free variable: Not restricted by quantifiers (e.g., "n > 5" where n is free).
Bound variable: Defined using quantifiers (e.g., "∀n, n > 5" where n is bound).
7. Substitution
Example:
o If P(n) = "n > 5", substituting n = 3 gives P(3) = "3 > 5", which is false.
o If P(n) = "n > 5", substituting n = (3 + 4) gives P(3+4) = "7 > 5", which is true.
8. Uniqueness (∃!)
Example: