Introduction to Quantifiers and First Order Predicate Logic
Here we will learn about the introduction to quanitifiers and predicate logic
Gulshan Kumar
Propositional logic treats complete statements such as
as single units.
However, many mathematical statements contain variables and describe properties that may hold for some or all objects.
For example:
Every natural number is greater than or equal to zero.
or
There exists a prime number greater than 100.
To represent such statements formally, we use predicate logic, also called first-order logic.
The two most important ideas in predicate logic are:
- Predicates
- Quantifiers
Predicates
A predicate is a statement containing one or more variables whose truth value depends on the values assigned to those variables.
For example,
is a predicate.
It is not automatically true or false until a value is assigned to .
If
then
is true.
If
then
is false.
Thus, a predicate becomes a proposition after its variables are given specific values or are bound by quantifiers.
Domain of Discourse
The domain of discourse, or simply the domain, is the collection of values that a variable is allowed to take.
Consider
If the domain is the set of natural numbers,
then only
satisfies the predicate.
If the domain is the set of integers,
then both
and
satisfy it.
Therefore, the truth of a quantified statement may depend on the chosen domain.
Quantifiers
A quantifier specifies how many elements of a domain satisfy a predicate.
The two fundamental quantifiers are:
- Universal Quantifier
- Existential Quantifier
Universal Quantifier
The symbol
is called the universal quantifier.
It is read as:
for all
or
for every
If is a predicate, then
means:
is true for every value of in the domain.
For example,
means:
For every real number , is greater than or equal to zero.
This statement is true.
Example
Let
Over the set of real numbers,
means
Since the statement is true for every real number,
is true.
Existential Quantifier
The symbol
is called the existential quantifier.
It is read as:
there exists
or
there is at least one
The expression
means:
There exists at least one value of in the domain for which is true.
For example,
means:
There exists an integer whose square is 9.
Since
and
the statement is true.
Universal vs Existential Quantifier
Suppose
and the domain is
Then
means:
Every integer is greater than zero.
This is false.
But
means:
There exists an integer greater than zero.
This is true.
Thus,
requires the predicate to hold for every element, whereas
requires it to hold for at least one element.
Truth of Quantified Statements
Universal Statement
A statement of the form
is true only if is true for every element of the domain.
To show that it is false, we only need to find one value for which is false.
Such a value is called a counterexample.
Example
Consider
Take
Then
becomes
which is false.
Therefore,
is false.
Here, is a counterexample.
Existential Statement
A statement of the form
is true if we can find at least one value for which is true.
For example,
is true because
satisfies the predicate.
Negation of Quantified Statements
The negation of quantified statements is extremely important.
The universal and existential quantifiers change into each other under negation.
Negation of Universal Quantifier
The negation of
is
In words:
It is not true that holds for every
means
There exists at least one for which does not hold.
Example
Consider:
Every student passed the examination.
Let
The statement is
Its negation is
Therefore:
There exists at least one student who did not pass the examination.
Notice that the negation is not:
No student passed.
That would be a much stronger statement.
Negation of Existential Quantifier
The negation of
is
In words:
There does not exist an satisfying
means
Every fails to satisfy .
Example
Consider:
There exists a student who scored 100 marks.
Let
The statement is
Its negation is
Therefore:
Every student did not score 100 marks.
More naturally:
No student scored 100 marks.
Quantifier Negation Laws
The two important laws are
and
These are similar in spirit to De Morgan's Laws.
Translating Statements Using Quantifiers
Quantifiers allow ordinary mathematical or English statements to be written formally.
Suppose the domain is the set of all people.
Let
and
Every Student Is Hardworking
The statement
Every student is hardworking.
can be written as
The implication is important.
We do not write
because that would mean that every person in the entire domain is both a student and hardworking.
Some Student Is Hardworking
The statement
Some student is hardworking.
means that at least one person is both a student and hardworking.
Therefore,
No Student Is Hardworking
The statement
No student is hardworking.
can be written as
or equivalently,
Some Student Is Not Hardworking
This statement is represented by
Free and Bound Variables
Variables in predicate logic can be either free or bound.
Bound Variable
A variable is bound if it lies within the scope of a quantifier.
For example,
Here, is bound by the universal quantifier.
Similarly, in
the variable is bound by the existential quantifier.
A formula in which every variable is bound represents a complete proposition with a definite truth value.
Free Variable
A variable is free if it is not controlled by any quantifier.
For example,
contains the free variable .
Its truth value cannot be determined until a value of is specified.
Consider
Here,
- is bound,
- is free.
Therefore, the expression still depends on the value of .
Scope of a Quantifier
The scope of a quantifier is the part of the formula to which the quantifier applies.
For example,
has the entire expression
inside the scope of .
Parentheses are useful for making the scope clear.
For example,
is different in structure from an expression where only one component is quantified.
Quantifiers with Logical Connectives
Quantifiers often appear together with implication, conjunction, and disjunction.
Understanding their placement is important.
Universal Statements Commonly Use Implication
Suppose
and
The statement
Every dog is an animal
is represented as
Existential Statements Commonly Use Conjunction
The statement
There exists a dog that is black
can be represented as
where
and
This requires one object to satisfy both properties.
Useful Equivalences Involving Quantifiers
Some useful logical equivalences are:
This says that every object satisfies both properties exactly when every object satisfies the first property and every object satisfies the second.
Similarly,
However, similar-looking expressions do not always distribute in the same way.
For example,
does not generally mean the same thing as
The reason is that the two existential statements may be satisfied by different objects.
Example
Suppose the domain contains two people:
- Aman is a student but not a teacher.
- Ravi is a teacher but not a student.
Then
is true, and
is also true.
Therefore,
is true.
But
is false because no single person is both a student and a teacher.
Important Quantifier Formulae
The most important identities to remember are
Also,
and
What did you think?
Follow the idea
Keep reading
K-Map Simplification — Part 2
Premium · 20 min read
K-Map Simplification — Part 1
Free · 15 min read
Continue the conversation
Share a question, an insight, or a different perspective.
Discussion loads when you reach this section.