§ — — Discrete Structures 1
Propositional logic handles individual statements, but it cannot express relationships involving general quantities like "all" or "some." Predicate logic extends propositional logic to handle these kinds of statements.
For example, from "Every computer on a network is functioning normally" and "Machine X is on the network," we can conclude "Machine X is functioning normally." Propositional logic alone cannot make this deduction — predicate logic can.
In everyday grammar, a sentence has a subject and a predicate. In logic, a predicate describes a property that a subject (variable) may or may not have. Predicates are functions that return a truth value.
Example:
The domain of a predicate variable is the set of all values the variable can take.
Quantifiers specify how broadly a predicate applies across a domain.
Means "for all" or "for every." The expression ∀x ∈ D, P(x) is true only if P(x) holds for every element in the domain D.
Example: "All foxes are sly."
Means "there exists at least one." The expression ∃x ∈ D, P(x) is true if P(x) holds for at least one element in D.
Example: "Some students are attending online classes."
| Rule | Form |
|---|---|
| Universal Instantiation | ∀x P(x) ∴ P(c) |
| Universal Generalization | P(c) for arbitrary c ∴ ∀x P(x) |
| Existential Generalization | P(c) for some c ∴ ∃x P(x) |
| Existential Instantiation | ∃x P(x) ∴ P(c) for some c in the domain |
Universal Instantiation says: if something is true for all elements of a domain, it is true for any specific element.
Worked example:
Proof:
A proof is a logical argument that uses hypotheses, definitions, axioms, and inference rules to demonstrate that a conclusion is true.
Assume the hypothesis is true, then use logical reasoning to show the conclusion follows.
Example: Prove that if k and g are both odd integers, then k + g is even.
To prove P → Q, instead prove ¬Q → ¬P.
Example: Prove that if rl is even, then r is even or l is even.
When the hypothesis can be divided into separate cases, prove each case separately.
Example: Prove that if integer y is not divisible by 3, then y² = 3k + 1 for some integer k.
Proves ∃x P(x). Two types:
To prove P ↔ Q, prove both P → Q and Q → P separately.
Example: Prove that for any integer h, h is odd if and only if h² is odd.
ProReviewer — locked
Drills, code labs, and full solutions.
Done with this module? Track it — your progress shows on the subject list.
Up next
Lesson 4: Set Concepts→←Previous: Lesson 2: Proof Techniques in Propositional Logic