100% FREE Updated: Mar 2026 Logic and Boolean Algebra Propositional and Predicate Logic

Predicate Logic

Comprehensive study notes on Predicate Logic for CMI M.Sc. and Ph.D. Computer Science preparation. This chapter covers key concepts, formulas, and examples needed for your exam.

Predicate Logic

This chapter introduces predicate logic, a fundamental extension of propositional logic essential for formalizing statements with variables and quantifiers. Mastery of these concepts is crucial for advanced topics in discrete mathematics, artificial intelligence, and formal verification, and frequently tested in CMI examinations.

---

Chapter Contents

|

| Topic |

|---|-------| | 1 | Predicates and Quantifiers | | 2 | Negation of Quantified Statements |

---

We begin with Predicates and Quantifiers.

Part 1: Predicates and Quantifiers

Predicate logic extends propositional logic by allowing us to represent properties of individuals and relationships between them, enabling a more granular analysis of statements relevant to computer science and mathematics. This unit provides the foundational concepts for constructing and interpreting quantified statements.

---

Core Concepts

1. Predicates (Atomic Formulas)

A predicate is a property or relation involving variables that becomes a proposition (true or false) when specific elements are assigned to these variables or when the variables are quantified.

πŸ“– Predicate

A predicate P(x1,x2,…,xn)P(x_1, x_2, \ldots, x_n) is a statement containing nn variables, which becomes a proposition when values are substituted for the variables.

Worked Example:
Let P(x)P(x) be the predicate "xx is an even number" and Q(x,y)Q(x,y) be the predicate "xx is greater than yy". We want to express specific propositions using these predicates.

Step 1: Express "5 is an even number".

> P(5)P(5)

Step 2: Express "10 is greater than 7".

> Q(10,7)Q(10, 7)

Answer: P(5)P(5) and Q(10,7)Q(10, 7)

:::question type="MCQ" question="Given the predicate L(x,y)L(x,y) meaning 'xx loves yy', and the domain of discourse being all people. Which of the following correctly represents the statement 'Alice loves Bob'?" options=["L(person,person)L(\text{person}, \text{person})","L(Alice,Bob)L(\text{Alice}, \text{Bob})","L(x,y)L(x,y)","L(Bob,Alice)L(\text{Bob}, \text{Alice})"] answer="L(Alice,Bob)L(\text{Alice}, \text{Bob})" hint="Identify the specific individuals and their roles in the relation." solution="The predicate L(x,y)L(x,y) means 'xx loves yy'. To express 'Alice loves Bob', Alice takes the role of xx and Bob takes the role of yy. Therefore, the correct representation is L(Alice,Bob)L(\text{Alice}, \text{Bob})."
:::

---

2. Universal Quantifier (βˆ€\forall)

The universal quantifier, denoted by βˆ€\forall, is used to express that a predicate holds for all elements in a given domain of discourse.

πŸ“ Universal Quantification
βˆ€x.P(x)\forall x . P(x)
Where: βˆ€\forall means "for all" or "for every", xx is a variable, and P(x)P(x) is a predicate. When to use: When asserting a property holds for every member of a set.

Worked Example:
Translate the English sentence "All students are intelligent" into predicate logic. Let the domain of discourse be all people. Let S(x)S(x) be "xx is a student" and I(x)I(x) be "xx is intelligent".

Step 1: Identify the quantifier and the main assertion.

The sentence states that if someone is a student, then they are intelligent. This applies to all people.

Step 2: Formulate the logical expression.

> βˆ€x(S(x)β€…β€ŠβŸΉβ€…β€ŠI(x))\forall x (S(x) \implies I(x))

Answer: βˆ€x(S(x)β€…β€ŠβŸΉβ€…β€ŠI(x))\forall x (S(x) \implies I(x))

:::question type="MCQ" question="Let C(x)C(x) be 'xx is a cat' and M(x)M(x) be 'xx is a mammal'. The domain of discourse is all animals. Which expression correctly translates 'All cats are mammals'?" options=["βˆƒx(C(x)∧M(x))\exists x (C(x) \land M(x))","βˆ€x(C(x)∧M(x))\forall x (C(x) \land M(x))","βˆ€x(C(x)β€…β€ŠβŸΉβ€…β€ŠM(x))\forall x (C(x) \implies M(x))","βˆƒx(C(x)β€…β€ŠβŸΉβ€…β€ŠM(x))\exists x (C(x) \implies M(x))"] answer="βˆ€x(C(x)β€…β€ŠβŸΉβ€…β€ŠM(x))\forall x (C(x) \implies M(x))" hint="The statement 'All A are B' is generally translated as βˆ€x(A(x)β€…β€ŠβŸΉβ€…β€ŠB(x))\forall x (A(x) \implies B(x)). Consider the implication." solution="The statement 'All cats are mammals' means that for any animal, if it is a cat, then it must be a mammal. This is a universal statement requiring an implication.
βˆ€x(C(x)β€…β€ŠβŸΉβ€…β€ŠM(x))\forall x (C(x) \implies M(x)) correctly captures this meaning.
βˆƒx(C(x)∧M(x))\exists x (C(x) \land M(x)) would mean 'Some cats are mammals'.
βˆ€x(C(x)∧M(x))\forall x (C(x) \land M(x)) would mean 'Every animal is both a cat and a mammal', which is incorrect.
βˆƒx(C(x)β€…β€ŠβŸΉβ€…β€ŠM(x))\exists x (C(x) \implies M(x)) would mean 'There exists an animal xx such that if xx is a cat, then xx is a mammal', which is trivially true (e.g., pick a non-cat)."
:::

---

3. Existential Quantifier (βˆƒ\exists)

The existential quantifier, denoted by βˆƒ\exists, is used to express that a predicate holds for at least one element in a given domain of discourse.

πŸ“ Existential Quantification
βˆƒx.P(x)\exists x . P(x)
Where: βˆƒ\exists means "there exists" or "for some", xx is a variable, and P(x)P(x) is a predicate. When to use: When asserting a property holds for at least one member of a set.

Worked Example:
Translate the English sentence "Some birds can fly" into predicate logic. Let the domain of discourse be all animals. Let B(x)B(x) be "xx is a bird" and F(x)F(x) be "xx can fly".

Step 1: Identify the quantifier and the relationship.

The sentence states that there is at least one animal that is a bird and can fly.

Step 2: Formulate the logical expression.

> βˆƒx(B(x)∧F(x))\exists x (B(x) \land F(x))

Answer: βˆƒx(B(x)∧F(x))\exists x (B(x) \land F(x))

:::question type="MCQ" question="Let P(x)P(x) be 'xx is a prime number' and E(x)E(x) be 'xx is an even number'. The domain of discourse is integers. Which expression correctly translates 'There is an even prime number'?" options=["βˆ€x(P(x)β€…β€ŠβŸΉβ€…β€ŠE(x))\forall x (P(x) \implies E(x))","βˆƒx(P(x)∧E(x))\exists x (P(x) \land E(x))","βˆ€x(P(x)∧E(x))\forall x (P(x) \land E(x))","βˆƒx(P(x)β€…β€ŠβŸΉβ€…β€ŠE(x))\exists x (P(x) \implies E(x))"] answer="βˆƒx(P(x)∧E(x))\exists x (P(x) \land E(x))" hint="The statement implies the existence of a number that satisfies both properties simultaneously. Consider using conjunction." solution="The statement 'There is an even prime number' means that there exists at least one number that is both prime and even. This requires an existential quantifier and a conjunction.
βˆƒx(P(x)∧E(x))\exists x (P(x) \land E(x)) correctly captures this meaning. (The number 2 is such a number).
βˆ€x(P(x)β€…β€ŠβŸΉβ€…β€ŠE(x))\forall x (P(x) \implies E(x)) would mean 'All prime numbers are even', which is false.
βˆ€x(P(x)∧E(x))\forall x (P(x) \land E(x)) would mean 'All numbers are prime and even', which is false.
βˆƒx(P(x)β€…β€ŠβŸΉβ€…β€ŠE(x))\exists x (P(x) \implies E(x)) would mean 'There exists a number xx such that if xx is prime, then xx is even', which is trivially true (e.g., pick x=4x=4, which is not prime, so P(4)P(4) is false, making the implication true)."
:::

---

4. Free and Bound Variables

Variables in predicate logic can be either free or bound. A variable is bound if it falls within the scope of a quantifier; otherwise, it is free.

πŸ“– Free and Bound Variables

In a formula, an occurrence of a variable xx is bound if it is within the scope of a quantifier βˆ€x\forall x or βˆƒx\exists x. An occurrence is free if it is not bound by any quantifier.

Worked Example:
Identify the free and bound variables in the formula βˆ€x(P(x,y)βˆ§βˆƒyQ(y,z))\forall x (P(x, y) \land \exists y Q(y, z)).

Step 1: Identify the quantifiers and their scopes.

The first quantifier is βˆ€x\forall x. Its scope is (P(x,y)βˆ§βˆƒyQ(y,z))(P(x, y) \land \exists y Q(y, z)).
The second quantifier is βˆƒy\exists y. Its scope is Q(y,z)Q(y, z).

Step 2: Determine which variables are bound by each quantifier.

  • In P(x,y)P(x, y), the variable xx is bound by βˆ€x\forall x. The variable yy is not bound by βˆ€x\forall x (the βˆƒy\exists y binds a different yy in a different part of the formula).
  • In βˆƒyQ(y,z)\exists y Q(y, z), the variable yy in Q(y,z)Q(y, z) is bound by βˆƒy\exists y.
  • The variable zz is not bound by any quantifier.
Step 3: List free and bound variables.
  • Bound variables: xx (bound by βˆ€x\forall x), yy (bound by βˆƒy\exists y within Q(y,z)Q(y,z)).
  • Free variables: yy (in P(x,y)P(x,y)), zz.
Answer: Bound variables are xx and the yy in Q(y,z)Q(y,z). Free variables are the yy in P(x,y)P(x,y) and zz.

:::question type="MCQ" question="In the formula βˆƒx(R(x,y)βˆ¨βˆ€yS(y,z))\exists x (R(x, y) \lor \forall y S(y, z)), which variables are free?" options=["x,y,zx, y, z","y,zy, z","x,zx, z","zz"] answer="zz" hint="Trace the scope of each quantifier. A variable is free if it is not within the scope of any quantifier binding it." solution="Let's analyze the formula βˆƒx(R(x,y)βˆ¨βˆ€yS(y,z))\exists x (R(x, y) \lor \forall y S(y, z)):

  • The quantifier βˆƒx\exists x binds xx within the entire parenthesis (R(x,y)βˆ¨βˆ€yS(y,z))(R(x, y) \lor \forall y S(y, z)). So, xx is a bound variable.

  • Inside the parenthesis, we have R(x,y)βˆ¨βˆ€yS(y,z)R(x,y) \lor \forall y S(y,z).

  • In R(x,y)R(x,y), xx is bound by βˆƒx\exists x. The variable yy in R(x,y)R(x,y) is not bound by βˆƒx\exists x.

  • The quantifier βˆ€y\forall y binds yy only within S(y,z)S(y, z). So, the yy in S(y,z)S(y,z) is bound by βˆ€y\forall y.

  • The variable zz is not within the scope of any quantifier that binds zz.
  • Therefore, the variable yy in R(x,y)R(x,y) is free, and zz is free. The variables xx (in R(x,y)R(x,y)) and yy (in S(y,z)S(y,z)) are bound. The question asks for free variables.

    Wait, I made a mistake in the analysis for the yy in R(x,y)R(x,y). The variable yy in R(x,y)R(x,y) is not bound by any quantifier in this specific formula. The βˆ€y\forall y only affects S(y,z)S(y,z). Therefore, yy in R(x,y)R(x,y) is free.

    Corrected analysis:

    • βˆƒx\exists x binds xx in R(x,y)R(x,y).

    • βˆ€y\forall y binds yy in S(y,z)S(y,z).

    • The yy in R(x,y)R(x,y) is not bound by any quantifier.

    • The zz in S(y,z)S(y,z) is not bound by any quantifier.


    So, the free variables are yy (from R(x,y)R(x,y)) and zz.
    Looking at the options, only 'y,zy, z' includes both.
    Let's re-evaluate the solution based on the options. The options seem to imply a single variable, or a combination. The option 'y,zy, z' is available.

    Let's re-check the question carefully: "which variables are free?"
    In βˆƒx(R(x,y)βˆ¨βˆ€yS(y,z))\exists x (R(x, y) \lor \forall y S(y, z)):

    • xx in R(x,y)R(x,y) is bound by βˆƒx\exists x.

    • yy in R(x,y)R(x,y) is not bound by any quantifier. It is free.

    • yy in S(y,z)S(y,z) is bound by βˆ€y\forall y.

    • zz in S(y,z)S(y,z) is not bound by any quantifier. It is free.


    Thus, the free variables are yy and zz.

    The correct option is "y,zy, z". I need to be careful with the solution explanation to reflect this accurately.

    Let's refine the solution:
    The formula is βˆƒx(R(x,y)βˆ¨βˆ€yS(y,z))\exists x (R(x, y) \lor \forall y S(y, z)).

  • The quantifier βˆƒx\exists x binds all occurrences of xx within its scope, which is (R(x,y)βˆ¨βˆ€yS(y,z))(R(x, y) \lor \forall y S(y, z)). Thus, xx in R(x,y)R(x, y) is bound.

  • The quantifier βˆ€y\forall y binds all occurrences of yy within its scope, which is S(y,z)S(y, z). Thus, yy in S(y,z)S(y, z) is bound.

  • The variable yy in R(x,y)R(x, y) is not within the scope of the βˆ€y\forall y quantifier (which only applies to S(y,z)S(y,z)), and it is not bound by βˆƒx\exists x. Therefore, this occurrence of yy is free.

  • The variable zz in S(y,z)S(y, z) is not bound by any quantifier. Therefore, zz is free.
  • The free variables in the formula are yy (from R(x,y)R(x,y)) and zz.
    "
    The correct answer is "y,zy, z". My reasoning was correct, just a momentary doubt.

    "
    Solution:
    The formula is βˆƒx(R(x,y)βˆ¨βˆ€yS(y,z))\exists x (R(x, y) \lor \forall y S(y, z)).

  • The quantifier βˆƒx\exists x binds the variable xx within its scope, which is the entire expression (R(x,y)βˆ¨βˆ€yS(y,z))(R(x, y) \lor \forall y S(y, z)). Therefore, the variable xx in R(x,y)R(x, y) is bound.

  • The quantifier βˆ€y\forall y binds the variable yy within its scope, which is S(y,z)S(y, z). Therefore, the variable yy in S(y,z)S(y, z) is bound.

  • The variable yy in R(x,y)R(x, y) is not within the scope of the βˆ€y\forall y quantifier (which only applies to S(y,z)S(y,z)), and it is not bound by βˆƒx\exists x. Therefore, this occurrence of yy is free.

  • The variable zz in S(y,z)S(y, z) is not bound by any quantifier. Therefore, zz is free.

  • Thus, the free variables in the formula are yy and zz.
    "
    This is good.

    ---

    πŸ’‘ Next Up

    Proceeding to Negation of Quantified Statements.

    ---

    Part 2: Negation of Quantified Statements

    This section covers the essential rules for negating statements involving universal (βˆ€\forall) and existential (βˆƒ\exists) quantifiers, a fundamental skill in predicate logic for CMI examinations. We focus on direct application through worked examples.

    ---

    Core Concepts

    1. Negating Universal Statements

    We define the negation of a universally quantified statement by transforming it into an existentially quantified statement where the predicate is negated.

    πŸ“ Negation of Universal Quantifier
    Β¬(βˆ€xP(x))β‰‘βˆƒx(Β¬P(x))\neg (\forall x P(x)) \equiv \exists x (\neg P(x))
    Where: * βˆ€x\forall x means "for all xx" * βˆƒx\exists x means "there exists an xx" * P(x)P(x) is a predicate (a property or relation concerning xx) When to use: To find the logical opposite of a statement claiming a property holds for every element in a domain.

    Worked Example: Negate the statement: "All CMI students are proficient in discrete mathematics."

    Step 1: Translate the statement into predicate logic.
    Let SS be the domain of CMI students.
    Let P(x)P(x) be the predicate "xx is proficient in discrete mathematics."
    The statement is βˆ€x∈S,P(x)\forall x \in S, P(x).

    Step 2: Apply the negation rule.
    >

    Β¬(βˆ€xP(x))β‰‘βˆƒx(Β¬P(x))\neg (\forall x P(x)) \equiv \exists x (\neg P(x))

    Step 3: Translate the negated statement back into natural language.
    The negation is "There exists a CMI student xx such that xx is not proficient in discrete mathematics."
    Answer: There exists a CMI student who is not proficient in discrete mathematics.

    :::question type="MCQ" question="Which of the following is the correct negation of the statement: 'Every integer nn is such that n2β‰₯nn^2 \ge n'?" options=["There exists an integer nn such that n2<nn^2 < n.","Every integer nn is such that n2<nn^2 < n.","There exists an integer nn such that n2≀nn^2 \le n.","Every integer nn is such that n2≀nn^2 \le n. "] answer="There exists an integer nn such that n2<nn^2 < n." hint="Identify the quantifier and the predicate, then apply the negation rule." solution="Step 1: Identify the original statement's structure.
    The statement is βˆ€n∈Z,(n2β‰₯n)\forall n \in \mathbb{Z}, (n^2 \ge n).
    Here, P(n)P(n) is the predicate n2β‰₯nn^2 \ge n.

    Step 2: Apply the rule for negating a universal quantifier.

    Β¬(βˆ€nP(n))β‰‘βˆƒn(Β¬P(n))\neg (\forall n P(n)) \equiv \exists n (\neg P(n))

    Step 3: Negate the predicate P(n)P(n).
    The negation of n2β‰₯nn^2 \ge n is n2<nn^2 < n.

    Step 4: Combine to form the negated statement.

    βˆƒn∈Z,(n2<n)\exists n \in \mathbb{Z}, (n^2 < n)

    This translates to: 'There exists an integer nn such that n2<nn^2 < n.'"
    :::

    ---

    2. Negating Existential Statements

    We define the negation of an existentially quantified statement by transforming it into a universally quantified statement where the predicate is negated.

    πŸ“ Negation of Existential Quantifier
    Β¬(βˆƒxP(x))β‰‘βˆ€x(Β¬P(x))\neg (\exists x P(x)) \equiv \forall x (\neg P(x))
    Where: * βˆƒx\exists x means "there exists an xx" * βˆ€x\forall x means "for all xx" * P(x)P(x) is a predicate When to use: To find the logical opposite of a statement claiming a property holds for at least one element in a domain.

    Worked Example: Negate the statement: "Some programming languages support multiple inheritance."

    Step 1: Translate the statement into predicate logic.
    Let LL be the domain of programming languages.
    Let P(x)P(x) be the predicate "xx supports multiple inheritance."
    The statement is βˆƒx∈L,P(x)\exists x \in L, P(x).

    Step 2: Apply the negation rule.
    >

    Β¬(βˆƒxP(x))β‰‘βˆ€x(Β¬P(x))\neg (\exists x P(x)) \equiv \forall x (\neg P(x))

    Step 3: Translate the negated statement back into natural language.
    The negation is "For all programming languages xx, xx does not support multiple inheritance."
    Answer: All programming languages do not support multiple inheritance (or, no programming language supports multiple inheritance).

    :::question type="MCQ" question="What is the negation of the statement: 'There exists a real number xx such that x2+1=0x^2 + 1 = 0'?" options=["For all real numbers xx, x2+1β‰ 0x^2 + 1 \neq 0.","For all real numbers xx, x2+1=0x^2 + 1 = 0.","There exists a real number xx such that x2+1β‰ 0x^2 + 1 \neq 0.","There is no real number xx such that x2+1β‰ 0x^2 + 1 \neq 0. "] answer="For all real numbers xx, x2+1β‰ 0x^2 + 1 \neq 0." hint="Recall the negation rules for existential quantifiers." solution="Step 1: The original statement is βˆƒx∈R,(x2+1=0)\exists x \in \mathbb{R}, (x^2 + 1 = 0).
    Let P(x)P(x) be the predicate x2+1=0x^2 + 1 = 0.

    Step 2: Apply the negation rule for existential quantifiers:

    Β¬(βˆƒxP(x))β‰‘βˆ€x(Β¬P(x))\neg (\exists x P(x)) \equiv \forall x (\neg P(x))

    Step 3: Negate the predicate P(x)P(x).
    The negation of x2+1=0x^2 + 1 = 0 is x2+1β‰ 0x^2 + 1 \neq 0.

    Step 4: Combine to form the negated statement.

    βˆ€x∈R,(x2+1β‰ 0)\forall x \in \mathbb{R}, (x^2 + 1 \neq 0)

    This translates to: 'For all real numbers xx, x2+1β‰ 0x^2 + 1 \neq 0.'"
    :::

    ---

    3. Negating Multiply Quantified Statements

    We apply the negation rules sequentially from left to right, moving the negation symbol past each quantifier and negating the predicate at the end.

    πŸ“ Negation of Multiple Quantifiers
    Β¬(βˆ€xβˆƒyP(x,y))β‰‘βˆƒxβˆ€y(Β¬P(x,y))\neg (\forall x \exists y P(x,y)) \equiv \exists x \forall y (\neg P(x,y))
    Β¬(βˆƒxβˆ€yP(x,y))β‰‘βˆ€xβˆƒy(Β¬P(x,y))\neg (\exists x \forall y P(x,y)) \equiv \forall x \exists y (\neg P(x,y))
    Where: P(x,y)P(x,y) is a predicate involving xx and yy. When to use: For statements with two or more nested quantifiers.

    Worked Example 1: Negate the statement: "For every natural number xx, there exists a natural number yy such that y>xy > x." (Every natural number has a successor).

    Step 1: Translate to predicate logic.
    Let P(x,y)P(x,y) be the predicate y>xy > x.
    The statement is βˆ€x∈N,βˆƒy∈N,P(x,y)\forall x \in \mathbb{N}, \exists y \in \mathbb{N}, P(x,y).

    Step 2: Apply the negation rule for the first quantifier (βˆ€x\forall x).
    >

    Β¬(βˆ€xβˆƒyP(x,y))β‰‘βˆƒx(Β¬(βˆƒyP(x,y)))\neg (\forall x \exists y P(x,y)) \equiv \exists x (\neg (\exists y P(x,y)))

    Step 3: Apply the negation rule for the second quantifier (βˆƒy\exists y).
    >

    βˆƒx(Β¬(βˆƒyP(x,y)))β‰‘βˆƒx(βˆ€y(Β¬P(x,y)))\exists x (\neg (\exists y P(x,y))) \equiv \exists x (\forall y (\neg P(x,y)))

    Step 4: Negate the predicate P(x,y)P(x,y).
    The negation of y>xy > x is y≀xy \le x.

    Step 5: Combine and translate back.
    >

    βˆƒx∈N,βˆ€y∈N,(y≀x)\exists x \in \mathbb{N}, \forall y \in \mathbb{N}, (y \le x)

    Answer: There exists a natural number xx such that for all natural numbers yy, y≀xy \le x. (This statement claims there is a largest natural number, which is false but correctly formed).

    Worked Example 2: Negate the statement: "There exists a real number MM such that for every real number xx, ∣xβˆ£β‰€M|x| \le M." (The set of real numbers is bounded).

    Step 1: Translate to predicate logic.
    Let P(M,x)P(M,x) be the predicate ∣xβˆ£β‰€M|x| \le M.
    The statement is βˆƒM∈R,βˆ€x∈R,P(M,x)\exists M \in \mathbb{R}, \forall x \in \mathbb{R}, P(M,x).

    Step 2: Apply the negation rule for the first quantifier (βˆƒM\exists M).
    >

    Β¬(βˆƒMβˆ€xP(M,x))β‰‘βˆ€M(Β¬(βˆ€xP(M,x)))\neg (\exists M \forall x P(M,x)) \equiv \forall M (\neg (\forall x P(M,x)))

    Step 3: Apply the negation rule for the second quantifier (βˆ€x\forall x).
    >

    βˆ€M(Β¬(βˆ€xP(M,x)))β‰‘βˆ€M(βˆƒx(Β¬P(M,x)))\forall M (\neg (\forall x P(M,x))) \equiv \forall M (\exists x (\neg P(M,x)))

    Step 4: Negate the predicate P(M,x)P(M,x).
    The negation of ∣xβˆ£β‰€M|x| \le M is ∣x∣>M|x| > M.

    Step 5: Combine and translate back.
    >

    βˆ€M∈R,βˆƒx∈R,(∣x∣>M)\forall M \in \mathbb{R}, \exists x \in \mathbb{R}, (|x| > M)

    Answer: For every real number MM, there exists a real number xx such that ∣x∣>M|x| > M. (This statement claims that for any proposed bound, there's a real number larger than it, correctly reflecting that real numbers are unbounded).

    :::question type="MCQ" question="Consider the statement: 'For every positive integer aa, there exists a positive integer bb such that a⋅b=1a \cdot b = 1.' Which of the following is its correct negation?" options=["There exists a positive integer aa such that for every positive integer bb, a⋅b≠1a \cdot b \neq 1.","For every positive integer aa, for every positive integer bb, a⋅b≠1a \cdot b \neq 1.","There exists a positive integer aa such that there exists a positive integer bb such that a⋅b≠1a \cdot b \neq 1.","For every positive integer aa, there exists a positive integer bb such that a⋅b=1a \cdot b = 1."] answer="There exists a positive integer aa such that for every positive integer bb, a⋅b≠1a \cdot b \neq 1." hint="Apply the negation rules for multiple quantifiers sequentially from left to right." solution="Step 1: Translate the original statement into predicate logic.
    Let the domain be positive integers (Z+\mathbb{Z}^+).
    The statement is βˆ€a∈Z+,βˆƒb∈Z+,(aβ‹…b=1)\forall a \in \mathbb{Z}^+, \exists b \in \mathbb{Z}^+, (a \cdot b = 1).
    Let P(a,b)P(a,b) be the predicate aβ‹…b=1a \cdot b = 1.

    Step 2: Apply the negation operator to the entire statement.

    Β¬(βˆ€aβˆƒbP(a,b))\neg (\forall a \exists b P(a,b))

    Step 3: Move the negation past the first quantifier (βˆ€a\forall a).

    βˆƒa(Β¬(βˆƒbP(a,b)))\exists a (\neg (\exists b P(a,b)))

    Step 4: Move the negation past the second quantifier (βˆƒb\exists b).

    βˆƒa(βˆ€b(Β¬P(a,b)))\exists a (\forall b (\neg P(a,b)))

    Step 5: Negate the predicate P(a,b)P(a,b).
    The negation of a⋅b=1a \cdot b = 1 is a⋅b≠1a \cdot b \neq 1.

    Step 6: Combine and translate back into natural language.

    βˆƒa∈Z+,βˆ€b∈Z+,(aβ‹…bβ‰ 1)\exists a \in \mathbb{Z}^+, \forall b \in \mathbb{Z}^+, (a \cdot b \neq 1)

    This translates to: 'There exists a positive integer aa such that for every positive integer bb, a⋅b≠1a \cdot b \neq 1.'"
    :::

    ---

    Advanced Applications

    We can apply these rules to more complex logical expressions involving multiple predicates and propositional connectives within the quantified scope.

    Worked Example: Negate the statement: "For every student ss, if ss studies diligently, then ss will pass the exam."

    Step 1: Translate to predicate logic.
    Let SS be the domain of students.
    Let D(s)D(s) be "ss studies diligently."
    Let P(s)P(s) be "ss will pass the exam."
    The statement is βˆ€s∈S,(D(s)β†’P(s))\forall s \in S, (D(s) \to P(s)).

    Step 2: Apply the negation rule for the universal quantifier.
    >

    Β¬(βˆ€s(D(s)β†’P(s)))β‰‘βˆƒs(Β¬(D(s)β†’P(s)))\neg (\forall s (D(s) \to P(s))) \equiv \exists s (\neg (D(s) \to P(s)))

    Step 3: Apply the negation rule for implication.
    Recall that Β¬(Aβ†’B)≑A∧¬B\neg (A \to B) \equiv A \land \neg B.
    Here, A=D(s)A = D(s) and B=P(s)B = P(s).
    >

    βˆƒs(D(s)∧¬P(s))\exists s (D(s) \land \neg P(s))

    Step 4: Translate back into natural language.
    Answer: There exists a student ss such that ss studies diligently AND ss will not pass the exam.

    :::question type="MSQ" question="Which of the following statements are logically equivalent to the negation of 'There exists a program PP such that for every input II, PP terminates for II AND PP produces the correct output for II'?" options=["For every program PP, there exists an input II such that PP does not terminate for II OR PP does not produce the correct output for II.","For every program PP, there exists an input II such that PP does not terminate for II AND PP does not produce the correct output for II.","It is not the case that there exists a program PP such that for every input II, PP terminates for II AND PP produces the correct output for II.","For every program PP, there exists an input II such that PP does not terminate for II OR PP produces the correct output for II."] answer="For every program PP, there exists an input II such that PP does not terminate for II OR PP does not produce the correct output for II.,It is not the case that there exists a program PP such that for every input II, PP terminates for II AND PP produces the correct output for II." hint="Negate quantifiers and then apply De Morgan's laws for the conjunction." solution="Step 1: Translate the original statement into predicate logic.
    Let T(P,I)T(P,I) be 'PP terminates for II'.
    Let C(P,I)C(P,I) be 'PP produces the correct output for II'.
    The statement is βˆƒPβˆ€I(T(P,I)∧C(P,I))\exists P \forall I (T(P,I) \land C(P,I)).

    Step 2: Apply the negation operator.

    Β¬(βˆƒPβˆ€I(T(P,I)∧C(P,I)))\neg (\exists P \forall I (T(P,I) \land C(P,I)))

    Step 3: Move the negation past the first quantifier (βˆƒP\exists P).

    βˆ€P(Β¬(βˆ€I(T(P,I)∧C(P,I))))\forall P (\neg (\forall I (T(P,I) \land C(P,I))))

    Step 4: Move the negation past the second quantifier (βˆ€I\forall I).

    βˆ€P(βˆƒI(Β¬(T(P,I)∧C(P,I))))\forall P (\exists I (\neg (T(P,I) \land C(P,I))))

    Step 5: Apply De Morgan's Law to negate the conjunction.
    Recall that Β¬(A∧B)≑¬A∨¬B\neg (A \land B) \equiv \neg A \lor \neg B.
    Here, A=T(P,I)A = T(P,I) and B=C(P,I)B = C(P,I).

    βˆ€P(βˆƒI(Β¬T(P,I)∨¬C(P,I)))\forall P (\exists I (\neg T(P,I) \lor \neg C(P,I)))

    Step 6: Translate back to natural language.
    'For every program PP, there exists an input II such that PP does not terminate for II OR PP does not produce the correct output for II.'

    Option 1 matches this derived negation. Option 3 is simply the original statement prefixed with 'It is not the case that', which is always logically equivalent to its negation by definition."
    :::

    ---

    Problem-Solving Strategies

    πŸ’‘ Systematic Negation

    When negating a quantified statement, systematically move the negation symbol from left to right across each quantifier and logical connective:

    • Quantifiers: Β¬βˆ€β‰‘βˆƒΒ¬\neg \forall \equiv \exists \neg and Β¬βˆƒβ‰‘βˆ€Β¬\neg \exists \equiv \forall \neg.

    • Connectives:

    • Β¬(A∧B)≑¬A∨¬B\neg (A \land B) \equiv \neg A \lor \neg B (De Morgan's)
      Β¬(A∨B)≑¬A∧¬B\neg (A \lor B) \equiv \neg A \land \neg B (De Morgan's)
      Β¬(Aβ†’B)≑A∧¬B\neg (A \to B) \equiv A \land \neg B
      Β¬(A↔B)≑(A∧¬B)∨(Β¬A∧B)\neg (A \leftrightarrow B) \equiv (A \land \neg B) \lor (\neg A \land B)
    • Predicates: Finally, negate the innermost predicate.

    ---

    Common Mistakes

    ⚠️ Negating Only the Quantifier

    ❌ Students often negate the quantifier but forget to negate the predicate.
    Example: Negating 'All birds can fly' as 'Some birds can fly' (incorrect).
    βœ… The correct approach is to negate both the quantifier AND the predicate.
    Correct: 'There exists a bird that cannot fly.'
    The negation of βˆ€xP(x)\forall x P(x) is βˆƒxΒ¬P(x)\exists x \neg P(x), not βˆƒxP(x)\exists x P(x).

    ⚠️ Incorrect De Morgan's Application

    ❌ Misapplying De Morgan's laws within the predicate.
    Example: Negating 'There exists xx such that P(x)∧Q(x)P(x) \land Q(x)' as 'For all xx, ¬P(x)∧¬Q(x)\neg P(x) \land \neg Q(x)'. (Incorrectly applies De Morgan's and changes OR to AND).
    βœ… The correct approach is to apply De Morgan's laws:
    Correct: 'For all xx, ¬P(x)∨¬Q(x)\neg P(x) \lor \neg Q(x)'.

    ---

    Practice Questions

    :::question type="MCQ" question="Which of the following is the correct negation of the statement: 'Every person has a unique best friend'?" options=["There exists a person who does not have a unique best friend.","There exists a person who has multiple best friends.","Every person has at least two best friends.","No person has a best friend."] answer="There exists a person who does not have a unique best friend." hint="First, formalize the original statement carefully, then apply the negation rules." solution="Step 1: Formalize the original statement.
    Let P(x,y)P(x,y) mean 'yy is xx's best friend'.
    'Every person xx has a unique best friend yy' can be written as:

    βˆ€xβˆƒy(P(x,y)βˆ§βˆ€z(P(x,z)β†’z=y))\forall x \exists y (P(x,y) \land \forall z (P(x,z) \to z=y))

    Step 2: Apply negation.

    Β¬(βˆ€xβˆƒy(P(x,y)βˆ§βˆ€z(P(x,z)β†’z=y)))\neg (\forall x \exists y (P(x,y) \land \forall z (P(x,z) \to z=y)))

    Step 3: Move negation inwards.

    βˆƒxΒ¬(βˆƒy(P(x,y)βˆ§βˆ€z(P(x,z)β†’z=y)))\exists x \neg (\exists y (P(x,y) \land \forall z (P(x,z) \to z=y)))

    βˆƒxβˆ€yΒ¬(P(x,y)βˆ§βˆ€z(P(x,z)β†’z=y))\exists x \forall y \neg (P(x,y) \land \forall z (P(x,z) \to z=y))

    Using Β¬(A∧B)≑¬A∨¬B\neg (A \land B) \equiv \neg A \lor \neg B:
    βˆƒxβˆ€y(Β¬P(x,y)∨¬(βˆ€z(P(x,z)β†’z=y)))\exists x \forall y (\neg P(x,y) \lor \neg (\forall z (P(x,z) \to z=y)))

    Now negate Β¬(βˆ€z(P(x,z)β†’z=y))\neg (\forall z (P(x,z) \to z=y)):
    βˆƒzΒ¬(P(x,z)β†’z=y)\exists z \neg (P(x,z) \to z=y)

    Using Β¬(Aβ†’B)≑A∧¬B\neg (A \to B) \equiv A \land \neg B:
    βˆƒz(P(x,z)∧¬(z=y))\exists z (P(x,z) \land \neg (z=y))

    So, the full negation is:
    βˆƒxβˆ€y(Β¬P(x,y)βˆ¨βˆƒz(P(x,z)∧zβ‰ y))\exists x \forall y (\neg P(x,y) \lor \exists z (P(x,z) \land z \neq y))

    Step 4: Interpret the negation.
    This means 'There exists a person xx such that for all yy, either yy is not xx's best friend, OR there exists another person zz who is also xx's best friend and zz is not yy (i.e., xx has multiple best friends), OR xx has no best friend at all (if no yy satisfies P(x,y)P(x,y)).
    This simplifies to: 'There exists a person who does not have a unique best friend.' This covers cases where a person has no best friend or multiple best friends."
    :::

    :::question type="NAT" question="Let P(x,y)P(x,y) be the predicate 'xx divides yy'. Consider the statement: 'For every integer xx, there exists an integer yy such that P(x,y)P(x,y) and y≠xy \neq x'. If the domain is all non-zero integers, how many quantifiers change their type (from universal to existential or vice versa) when this statement is negated?" answer="2" hint="Apply the negation rules systematically." solution="Step 1: Formalize the original statement.
    Let the domain be non-zero integers (Zβˆ—\mathbb{Z}^*).
    The statement is βˆ€x∈Zβˆ—,βˆƒy∈Zβˆ—,(P(x,y)∧yβ‰ x)\forall x \in \mathbb{Z}^, \exists y \in \mathbb{Z}^, (P(x,y) \land y \neq x).

    Step 2: Apply negation to the statement.

    Β¬(βˆ€xβˆƒy(P(x,y)∧yβ‰ x))\neg (\forall x \exists y (P(x,y) \land y \neq x))

    Step 3: Move negation inwards.

    βˆƒxΒ¬(βˆƒy(P(x,y)∧yβ‰ x))\exists x \neg (\exists y (P(x,y) \land y \neq x))

    βˆƒxβˆ€yΒ¬(P(x,y)∧yβ‰ x)\exists x \forall y \neg (P(x,y) \land y \neq x)

    Step 4: Quantifier changes:
    The first quantifier changed from βˆ€x\forall x to βˆƒx\exists x. (1 change)
    The second quantifier changed from βˆƒy\exists y to βˆ€y\forall y. (1 change)
    Total changes = 2.

    Step 5: Complete the negation (not required for the question, but useful for verification).
    Negate the conjunction using De Morgan's:

    βˆƒxβˆ€y(Β¬P(x,y)∨¬(yβ‰ x))\exists x \forall y (\neg P(x,y) \lor \neg (y \neq x))

    βˆƒxβˆ€y(Β¬P(x,y)∨y=x)\exists x \forall y (\neg P(x,y) \lor y = x)

    In words: 'There exists a non-zero integer xx such that for every non-zero integer yy, xx does not divide yy or y=xy = x.'

    The number of quantifiers that changed their type is 2."
    :::

    :::question type="MCQ" question="The negation of 'There is a computer science student who has taken every course in the curriculum' is:" options=["Every computer science student has not taken every course in the curriculum.","Every computer science student has taken at least one course not in the curriculum.","For every computer science student, there exists a course in the curriculum that they have not taken.","There is a computer science student who has not taken any course in the curriculum."] answer="For every computer science student, there exists a course in the curriculum that they have not taken." hint="Identify the quantifiers and predicates, then apply the negation rules sequentially." solution="Step 1: Formalize the original statement.
    Let SS be the set of computer science students.
    Let CC be the set of courses in the curriculum.
    Let T(s,c)T(s,c) be the predicate 'ss has taken cc'.
    The statement is βˆƒs∈S,βˆ€c∈C,T(s,c)\exists s \in S, \forall c \in C, T(s,c).

    Step 2: Apply negation.

    Β¬(βˆƒsβˆ€cT(s,c))\neg (\exists s \forall c T(s,c))

    Step 3: Move negation past the first quantifier (βˆƒs\exists s).

    βˆ€sΒ¬(βˆ€cT(s,c))\forall s \neg (\forall c T(s,c))

    Step 4: Move negation past the second quantifier (βˆ€c\forall c).

    βˆ€sβˆƒcΒ¬T(s,c)\forall s \exists c \neg T(s,c)

    Step 5: Translate back into natural language.
    'For every computer science student ss, there exists a course cc in the curriculum that ss has not taken.'
    This matches the third option."
    :::

    :::question type="MSQ" question="Let RR be a binary relation on a set AA. Consider the statement: 'For every x∈Ax \in A, there exists y∈Ay \in A such that (x,y)∈R(x,y) \in R and (y,x)βˆ‰R(y,x) \notin R'. Which of the following are equivalent to the negation of this statement?" options=["There exists x∈Ax \in A such that for every y∈Ay \in A, (x,y)βˆ‰R(x,y) \notin R or (y,x)∈R(y,x) \in R.","There exists x∈Ax \in A such that for every y∈Ay \in A, if (x,y)∈R(x,y) \in R then (y,x)∈R(y,x) \in R.","For every x∈Ax \in A, for every y∈Ay \in A, (x,y)βˆ‰R(x,y) \notin R or (y,x)∈R(y,x) \in R.","There exists x∈Ax \in A such that for every y∈Ay \in A, it is not true that ((x,y)∈R∧(y,x)βˆ‰R)((x,y) \in R \land (y,x) \notin R)."] answer="There exists x∈Ax \in A such that for every y∈Ay \in A, (x,y)βˆ‰R(x,y) \notin R or (y,x)∈R(y,x) \in R.,There exists x∈Ax \in A such that for every y∈Ay \in A, if (x,y)∈R(x,y) \in R then (y,x)∈R(y,x) \in R.,There exists x∈Ax \in A such that for every y∈Ay \in A, it is not true that ((x,y)∈R∧(y,x)βˆ‰R)((x,y) \in R \land (y,x) \notin R)." hint="Apply negation rules for quantifiers and then De Morgan's laws for the conjunction. Remember that Aβ†’B≑¬A∨BA \to B \equiv \neg A \lor B." solution="Step 1: Formalize the original statement.
    Let P(x,y)P(x,y) be (x,y)∈R(x,y) \in R and Q(x,y)Q(x,y) be (y,x)βˆ‰R(y,x) \notin R.
    The statement is βˆ€xβˆƒy(P(x,y)∧Q(x,y))\forall x \exists y (P(x,y) \land Q(x,y)).

    Step 2: Apply negation.

    Β¬(βˆ€xβˆƒy(P(x,y)∧Q(x,y)))\neg (\forall x \exists y (P(x,y) \land Q(x,y)))

    Step 3: Move negation inwards.

    βˆƒxΒ¬(βˆƒy(P(x,y)∧Q(x,y)))\exists x \neg (\exists y (P(x,y) \land Q(x,y)))

    βˆƒxβˆ€yΒ¬(P(x,y)∧Q(x,y))\exists x \forall y \neg (P(x,y) \land Q(x,y))

    Step 4: Apply De Morgan's Law to negate the conjunction.

    βˆƒxβˆ€y(Β¬P(x,y)∨¬Q(x,y))\exists x \forall y (\neg P(x,y) \lor \neg Q(x,y))

    Step 5: Translate back and check options.
    Β¬P(x,y)\neg P(x,y) is (x,y)βˆ‰R(x,y) \notin R.
    ¬Q(x,y)\neg Q(x,y) is (y,x)∈R(y,x) \in R.
    So the negation is: 'There exists x∈Ax \in A such that for every y∈Ay \in A, (x,y)βˆ‰R(x,y) \notin R or (y,x)∈R(y,x) \in R.' This matches Option 1.

    Let's check other options:
    Option 2: 'There exists x∈Ax \in A such that for every y∈Ay \in A, if (x,y)∈R(x,y) \in R then (y,x)∈R(y,x) \in R.'
    Recall that Aβ†’B≑¬A∨BA \to B \equiv \neg A \lor B. So, 'if (x,y)∈R(x,y) \in R then (y,x)∈R(y,x) \in R' is equivalent to '(x,y)βˆ‰R(x,y) \notin R or (y,x)∈R(y,x) \in R'.
    Thus, Option 2 is equivalent to Option 1 and is also correct.

    Option 3: 'For every x∈Ax \in A, for every y∈Ay \in A, (x,y)βˆ‰R(x,y) \notin R or (y,x)∈R(y,x) \in R.'
    This statement starts with βˆ€xβˆ€y\forall x \forall y, which is incorrect as our negation starts with βˆƒxβˆ€y\exists x \forall y. So, Option 3 is incorrect.

    Option 4: 'There exists x∈Ax \in A such that for every y∈Ay \in A, it is not true that ((x,y)∈R∧(y,x)βˆ‰R)((x,y) \in R \land (y,x) \notin R).'
    This is literally the step βˆƒxβˆ€yΒ¬(P(x,y)∧Q(x,y))\exists x \forall y \neg (P(x,y) \land Q(x,y)) before applying De Morgan's. Thus, this is also equivalent to the negation and is correct.

    Therefore, Options 1, 2, and 4 are correct."
    :::

    ---

    Summary

    ❗ Key Formulas & Takeaways

    |

    | Concept | Expression |

    |---|-----------------------------|----------------------------------------------------| | 1 | Negation of Universal | Β¬(βˆ€xP(x))β‰‘βˆƒx(Β¬P(x))\neg (\forall x P(x)) \equiv \exists x (\neg P(x)) | | 2 | Negation of Existential | Β¬(βˆƒxP(x))β‰‘βˆ€x(Β¬P(x))\neg (\exists x P(x)) \equiv \forall x (\neg P(x)) | | 3 | Negation of βˆ€xβˆƒy\forall x \exists y | Β¬(βˆ€xβˆƒyP(x,y))β‰‘βˆƒxβˆ€y(Β¬P(x,y))\neg (\forall x \exists y P(x,y)) \equiv \exists x \forall y (\neg P(x,y)) | | 4 | Negation of βˆƒxβˆ€y\exists x \forall y | Β¬(βˆƒxβˆ€yP(x,y))β‰‘βˆ€xβˆƒy(Β¬P(x,y))\neg (\exists x \forall y P(x,y)) \equiv \forall x \exists y (\neg P(x,y)) | | 5 | Negation of Implication | Β¬(Aβ†’B)≑A∧¬B\neg (A \to B) \equiv A \land \neg B | | 6 | De Morgan's Law 1 | Β¬(A∧B)≑¬A∨¬B\neg (A \land B) \equiv \neg A \lor \neg B | | 7 | De Morgan's Law 2 | Β¬(A∨B)≑¬A∧¬B\neg (A \lor B) \equiv \neg A \land \neg B |

    ---

    What's Next?

    πŸ’‘ Continue Learning

    This topic connects to:

      • Proof Techniques: Understanding negation is crucial for proofs by contradiction and contrapositive, where negating statements correctly is the first step.

      • Set Theory: Quantified statements are often used to define properties of sets (e.g., injectivity, surjectivity), and their negations describe when these properties do not hold.

      • Formal Verification: In computer science, specifying system properties often involves quantified statements, and negating them helps identify counterexamples or violations.

    Chapter Summary

    ❗ Predicate Logic β€” Key Points

    Predicates: Generalize propositions by introducing variables, allowing for open statements P(x)P(x) whose truth value depends on the assignment of values to variables from a specified domain.
    Quantifiers: Universal (βˆ€\forall) and Existential (βˆƒ\exists) quantifiers bind variables in predicates, transforming them into propositions with definite truth values.
    Domain of Discourse: Crucial for interpreting quantified statements, as it defines the set of all possible values for the variables, directly impacting the truth value.
    Negation Rules: Fundamental for logical manipulation: Β¬(βˆ€xP(x))β‰‘βˆƒxΒ¬P(x)\neg (\forall x P(x)) \equiv \exists x \neg P(x) and Β¬(βˆƒxP(x))β‰‘βˆ€xΒ¬P(x)\neg (\exists x P(x)) \equiv \forall x \neg P(x). These rules extend to nested quantifiers by applying them iteratively.
    Nested Quantifiers: Used to express complex relationships involving multiple variables, requiring careful attention to their order and scope for correct interpretation.
    Logical Equivalence: Understanding when two quantified statements are logically equivalent is vital for simplifying expressions, performing proofs, and verifying arguments.

    Chapter Review Questions

    :::question type="MCQ" question="Which of the following is logically equivalent to the negation of the statement βˆ€x(P(x)β€…β€ŠβŸΉβ€…β€Šβˆƒy(Q(y)∧R(x,y)))\forall x (P(x) \implies \exists y (Q(y) \land R(x,y)))?" options=["βˆƒx(P(x)βˆ§βˆ€y(Β¬Q(y)∨¬R(x,y)))\exists x (P(x) \land \forall y (\neg Q(y) \lor \neg R(x,y)))", "βˆƒx(Β¬P(x)βˆ¨βˆ€y(Β¬Q(y)∨¬R(x,y)))\exists x (\neg P(x) \lor \forall y (\neg Q(y) \lor \neg R(x,y)))", "βˆ€x(P(x)βˆ§βˆƒy(Β¬Q(y)∧¬R(x,y)))\forall x (P(x) \land \exists y (\neg Q(y) \land \neg R(x,y)))", "βˆƒx(P(x)βˆ§βˆƒy(Β¬Q(y)∨¬R(x,y)))\exists x (P(x) \land \exists y (\neg Q(y) \lor \neg R(x,y)))"] answer="βˆƒx(P(x)βˆ§βˆ€y(Β¬Q(y)∨¬R(x,y)))\exists x (P(x) \land \forall y (\neg Q(y) \lor \neg R(x,y)))" hint="Apply De Morgan's laws for quantifiers and propositional logic equivalences step-by-step." solution="Let the given statement be SS.
    S=βˆ€x(P(x)β€…β€ŠβŸΉβ€…β€Šβˆƒy(Q(y)∧R(x,y)))S = \forall x (P(x) \implies \exists y (Q(y) \land R(x,y)))
    We need to find Β¬S\neg S.

  • Β¬S≑¬(βˆ€x(P(x)β€…β€ŠβŸΉβ€…β€Šβˆƒy(Q(y)∧R(x,y))))\neg S \equiv \neg (\forall x (P(x) \implies \exists y (Q(y) \land R(x,y))))

  • Apply quantifier negation: β‰‘βˆƒxΒ¬(P(x)β€…β€ŠβŸΉβ€…β€Šβˆƒy(Q(y)∧R(x,y)))\equiv \exists x \neg (P(x) \implies \exists y (Q(y) \land R(x,y)))

  • Apply implication equivalence Β¬(Aβ€…β€ŠβŸΉβ€…β€ŠB)≑A∧¬B\neg (A \implies B) \equiv A \land \neg B: β‰‘βˆƒx(P(x)∧¬(βˆƒy(Q(y)∧R(x,y))))\equiv \exists x (P(x) \land \neg (\exists y (Q(y) \land R(x,y))))

  • Apply quantifier negation again: β‰‘βˆƒx(P(x)βˆ§βˆ€yΒ¬(Q(y)∧R(x,y)))\equiv \exists x (P(x) \land \forall y \neg (Q(y) \land R(x,y)))

  • Apply De Morgan's law Β¬(A∧B)≑¬A∨¬B\neg (A \land B) \equiv \neg A \lor \neg B: β‰‘βˆƒx(P(x)βˆ§βˆ€y(Β¬Q(y)∨¬R(x,y)))\equiv \exists x (P(x) \land \forall y (\neg Q(y) \lor \neg R(x,y)))

  • Therefore, the equivalent statement is βˆƒx(P(x)βˆ§βˆ€y(Β¬Q(y)∨¬R(x,y)))\exists x (P(x) \land \forall y (\neg Q(y) \lor \neg R(x,y)))."}
    :::

    :::question type="NAT" question="Let the domain of discourse be the set of integers D={βˆ’5,βˆ’4,…,4,5}D = \{-5, -4, \dots, 4, 5\}. Consider the predicate P(x)P(x) defined as 'x2<10x^2 < 10'. How many elements in DD satisfy the predicate P(x)P(x)?" answer="7" hint="List the integers in the domain whose square is less than 10." solution="We need to find integers xx in D={βˆ’5,βˆ’4,…,4,5}D = \{-5, -4, \dots, 4, 5\} such that x2<10x^2 < 10.
    Let's test values:
    * (Β±0)2=0<10(\pm 0)^2 = 0 < 10 (satisfies)
    * (Β±1)2=1<10(\pm 1)^2 = 1 < 10 (satisfies)
    * (Β±2)2=4<10(\pm 2)^2 = 4 < 10 (satisfies)
    * (Β±3)2=9<10(\pm 3)^2 = 9 < 10 (satisfies)
    * (Β±4)2=16<ΜΈ10(\pm 4)^2 = 16 \not< 10 (does not satisfy)
    * (Β±5)2=25<ΜΈ10(\pm 5)^2 = 25 \not< 10 (does not satisfy)
    The integers satisfying P(x)P(x) are {βˆ’3,βˆ’2,βˆ’1,0,1,2,3}\{-3, -2, -1, 0, 1, 2, 3\}.
    There are 7 such elements."}
    :::

    :::question type="MCQ" question="Let S(x)S(x) be 'x is a student', C(y)C(y) be 'y is a course', and T(x,y)T(x,y) be 'x is taking y'. Which of the following predicate logic statements correctly translates the English sentence: 'Every student is taking at least one course'?" options=["βˆ€x(S(x)β€…β€ŠβŸΉβ€…β€Šβˆƒy(C(y)∧T(x,y)))\forall x (S(x) \implies \exists y (C(y) \land T(x,y)))", "βˆ€xβˆƒy(S(x)∧C(y)∧T(x,y))\forall x \exists y (S(x) \land C(y) \land T(x,y))", "βˆƒyβˆ€x(S(x)∧C(y)β€…β€ŠβŸΉβ€…β€ŠT(x,y))\exists y \forall x (S(x) \land C(y) \implies T(x,y))", "βˆ€x(S(x)βˆ§βˆƒy(C(y)β€…β€ŠβŸΉβ€…β€ŠT(x,y)))\forall x (S(x) \land \exists y (C(y) \implies T(x,y)))"] answer="βˆ€x(S(x)β€…β€ŠβŸΉβ€…β€Šβˆƒy(C(y)∧T(x,y)))\forall x (S(x) \implies \exists y (C(y) \land T(x,y)))" hint="Break down the sentence: 'Every student...' suggests a universal quantifier over students. '...is taking at least one course' suggests an existential quantifier over courses, connected with 'taking'." solution="Let's analyze the English sentence: 'Every student is taking at least one course'.
    'Every student': This implies a universal quantifier over students. So, βˆ€x(S(x)β€…β€ŠβŸΉβ€…β€Š...)\forall x (S(x) \implies ...). The implication is used because we are talking about if x is a student, then* something follows.
    '...is taking at least one course': For each student, there exists some course they are taking. So, βˆƒy(C(y)∧T(x,y))\exists y (C(y) \land T(x,y)). Here, we use conjunction because the student must be taking a course (C(y)) AND that specific course* (T(x,y)).
    Combining these, we get βˆ€x(S(x)β€…β€ŠβŸΉβ€…β€Šβˆƒy(C(y)∧T(x,y)))\forall x (S(x) \implies \exists y (C(y) \land T(x,y))).

    Let's look at why other options are incorrect:
    βˆ€xβˆƒy(S(x)∧C(y)∧T(x,y))\forall x \exists y (S(x) \land C(y) \land T(x,y)): This means 'For every x, there exists a y such that x is a student AND y is a course AND x is taking y'. This falsely implies that everything* in the domain is a student, or that if x is a student, then it is necessarily taking a course AND for every x and y, x is a student and y is a course. The implication for 'every student' is lost.
    βˆƒyβˆ€x(S(x)∧C(y)β€…β€ŠβŸΉβ€…β€ŠT(x,y))\exists y \forall x (S(x) \land C(y) \implies T(x,y)): This translates to 'There exists a course y such that for every x, if x is a student and y is a course, then x is taking y'. This means there is one specific course that all students* are taking, which is not what the original sentence says.
    * βˆ€x(S(x)βˆ§βˆƒy(C(y)β€…β€ŠβŸΉβ€…β€ŠT(x,y)))\forall x (S(x) \land \exists y (C(y) \implies T(x,y))): This means 'For every x, x is a student AND there exists a y such that if y is a course, then x is taking y'. The initial conjunction S(x)∧...S(x) \land ... means that every element in the domain must be a student, which is incorrect. Also, C(y)β€…β€ŠβŸΉβ€…β€ŠT(x,y)C(y) \implies T(x,y) for the existential part is not the correct formulation for 'taking at least one course'."}
    :::

    What's Next?

    πŸ’‘ Continue Your CMI Journey

    Having mastered predicate logic, you've established a robust foundation for advanced logical reasoning. This chapter's concepts directly underpin the formal proofs and deductive systems explored in subsequent chapters on Proof Techniques and Set Theory. A strong grasp here will also significantly aid in understanding Boolean Algebra and its applications in digital logic and computer science, where precise logical statements are paramount.

    🎯 Key Points to Remember

    • βœ“ Master the core concepts in Predicate Logic before moving to advanced topics
    • βœ“ Practice with previous year questions to understand exam patterns
    • βœ“ Review short notes regularly for quick revision before exams

    Related Topics in Logic and Boolean Algebra

    More Resources

    Why Choose MastersUp?

    🎯

    AI-Powered Plans

    Personalized study schedules based on your exam date and learning pace

    πŸ“š

    15,000+ Questions

    Verified questions with detailed solutions from past papers

    πŸ“Š

    Smart Analytics

    Track your progress with subject-wise performance insights

    πŸ”–

    Bookmark & Revise

    Save important questions for quick revision before exams

    Start Your Free Preparation β†’

    No credit card required β€’ Free forever for basic features