The universal quantifier is used in predicate logic to ensure a predicate is true for all elements in a set. It can be thought of as a generalised conjunction.
For example, the statement “All natural numbers are greater or equal to 0 can be written as:
Definition
Universal Quantifier
Let be a predicate and let be a universe (universal set) consisting of . Then the universal quantifier is applied as:
Which means for all elements in , the predicate must hold.
A convention when having a proper subset , is:
Truth (Universal Quantifier) ^definition-truth
The universal quantifier is true if negation is false (woah.):
Its truth is usually expressed through the existential quantifier
The universal quantifier is always true for an empty set, i.e. is true.
Universal Quantifier Couples With Implication
The universal quantifier couples well with implication ().
- means all things
- means is a person
- means is mortal
The statement above means ‘all people are mortal’. More specifically, if a thing is a person, it must be mortal.
Compare with conjunction ():
means everything is a mortal person, (obviously a very different, and usually less-desired meaning)!
%%🖋 Edit in Excalidraw, and the dark exported image%%
Examples
- Every program produces input: where
- means produces input.
- is the set of all programs