Quantifiers
About 393 wordsAbout 1 min
2025-07-29
Negating Quantifiers
A key relationship in logic is how to negate quantified statements:
- ¬(∀x,P(x))≡∃x,¬P(x)
- "It is not true that all students passed" ≡ "There exists at least one student who did not pass."
- ¬(∃x,P(x))≡∀x,¬P(x)
- "There does not exist a perfect number" ≡ "For all numbers, they are not perfect."
Existential quantifier
Existential Quantifier (∃): Read as "there exists". The statement
∃X,P(X) is true if there is at least one value for X in its domain that makes P(X) true. It is analogous to a logical
Universal quantifier
Universal Quantifier (∀): Read as "for all" or "for every". The statement
∀X,P(X) is true if P(X) is true for every possible value of X in its domain.
Doing logic with quantifiers
- With Conjunction (∧):
- ∀X(p(X)∧q(X))≡(∀X,p(X))∧(∀X,q(X)). "Everything is a square and is blue" is the same as "Everything is a square AND everything is blue".
- ∃X(p(X)∧q(X))⇒(∃X,p(X))∧(∃X,q(X)). If there exists a "blue square", then there must exist something that is blue AND there must exist something that is a square. The reverse is not true (having a blue circle and a red square doesn't mean a blue square exists).
- With Disjunction (∨):
- ∃X(p(X)∨q(X))≡(∃X,p(X))∨(∃X,q(X)). "There exists something that is a square or is blue" is the same as "There exists a square OR there exists something blue".
- (∀X,p(X))∨(∀X,q(X))⇒∀X(p(X)∨q(X)). The reverse implication is not true.
- Example: Let the domain be integers. Let p(X) be "X is even" and q(X) be "X is odd".
- ∀X(p(X)∨q(X)) means "For all integers, X is either even or odd". This is TRUE.
- (∀X,p(X))∨(∀X,q(X)) means "All integers are even, OR all integers are odd". This is FALSE.
- Example: Let the domain be integers. Let p(X) be "X is even" and q(X) be "X is odd".
Changelog
8/4/25, 11:40 AM
View All Changelog
2b7ff
-web-deploy(Auto): Update base URL for web-pages branchon
Copyright
Copyright Ownership:WARREN Y.F. LONG
License under:Attribution-NonCommercial-NoDerivatives 4.0 International (CC-BY-NC-ND-4.0)