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.
Properties
Let be variables, and let be predicates
Self-Commutative
Not commutative with Existential Quantifier
Distributive over conjunction
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%%
Universally Quantifiable Variables
Any free variable (i.e. not bound by an explicit quantifier) conventionally is considered a universally quantifiable variable. Meaning it contains a implicit (hidden) universal quantifier
Let be predicates. Take the formulas
is a bound variable, but and are free so they are considered to be universally quantifiable variables. Hence, we have an implicit quantifier:
Examples
- Every program produces input: where
- means produces input.
- is the set of all programs