Lecture Notes: Pridicate Logic
1. Introduction
Statements involving variables (e.g., "x > 10", "Book y is sold out") are neither true nor false until the variable is specified. These are called propositional functions or predicates.
- Structure:
: The variable (subject). : The predicate (property the subject may have).
- Domain of Discourse (
): The set of valid values for the variable . - Definition:
is a propositional function with respect to if for each ,is a proposition (i.e., has a truth value).
Example
Let
is True. is False.is True.
2. Quantification
Quantification creates a proposition from a propositional function by specifying the extent to which the predicate applies to the domain.
2.1 Universal Quantifier ( )
- Definition: The statement "for every
, " is a universally quantified statement. - Notation:
- Reading: "For all
", "For every ". - Truth Value:
- True: If
is true for every in the domain. - False: If there is at least one
in the domain for which is false.
- True: If
- Counterexample: An element
for which is false is called a counterexample. It is used to disprove a universal quantification.
Example:
Let
2.2 Existential Quantifier ( )
- Definition: The statement "there exists
, " is an existentially quantified statement. - Notation:
- Reading: "There exists an
", "For some ", "There is an ". - Truth Value:
- True: If there is at least one element
in the domain such that is true. - False: If
is false for every in the domain.
- True: If there is at least one element
Example:
Let
3. Negation and De Morgan's Laws
Negating quantified statements involves switching the quantifier and negating the predicate.
Laws
Negation of Universal:
Meaning: "It is not the case that for all , " is equivalent to "There exists an such that not ".Negation of Existential:
Meaning: "It is not the case that there exists an , " is equivalent to "For all , not ".
Examples
- Statement: "All Malaysians like teh tarik" (
).- Negation: "At least one Malaysian does not like teh tarik" (
).
- Negation: "At least one Malaysian does not like teh tarik" (
- Statement: "There is an honest politician" (
).- Negation: "All politicians are not honest" (
).
- Negation: "All politicians are not honest" (
4. Nested Quantifiers
When a predicate has more than one variable (e.g.,
- Order Matters: The order of quantifiers is crucial if they are of different types.
- Same Type: If quantifiers are the same, order does not change the meaning.
Example:
Let
: True (let ). : True (for any , we can find ).
5. Rules of Inference
These rules allow for the derivation of conclusions from premises in predicate logic.
5.1 Universal Instantiation
If
5.2 Universal Generalization
If
5.3 Existential Instantiation
If
5.4 Existential Generalization
If
Example Derivation
Premises:
(All M are P) (Some M are C)
Conclusion:
Step-by-Step Proof:
(Existential Instantiation from 2) (Simplification from 1) (Universal Instantiation from 1) (Modus Ponens from 2, 3) (Simplification from 1) (Conjunction from 4, 5) (Existential Generalization from 6)
- Title: Lecture Notes: Pridicate Logic
- Author: Chinono
- Created at : 2025-11-26 22:33:26
- Updated at : 2025-12-01 09:10:38
- Link: https://hexo-blog-sooty-ten.vercel.app/2025/11/26/Lecture-Notes-Pridicate-Logic/
- License: This work is licensed under CC BY-NC-SA 4.0.