MCS-212 · Block 1 Unit 1

Propositional Calculus

Section 7 of 8

Block 1 · Unit 1Propositional Calculus14 min · Section 7 of 8

1.7Predicates and quantifiers

Covers IGNOU MCS-212 §1.5

"x>5x > 5" is not a proposition, yet mathematics and programs are full of such sentences. Quantifiers such as “for all” and “there exists” turn them into propositions. They are also the basis of database queries (“find all customers who …”) and of the proofs in Unit 2.

Predicates

Example: let P(x)P(x) be "x>5x > 5" with domain the integers. P(6)P(6) is true, P(0)P(0) is false, and P(x)P(x) by itself is not a proposition. A predicate can have several variables: Q(x,y)Q(x, y): "x+y=0x + y = 0".

The three quantifiers

StatementTrue whenFalse when
∀x P(x)\forall x\, P(x)P(x)P(x) is true for every xxthere is at least one xx with P(x)P(x) false (a counterexample)
∃x P(x)\exists x\, P(x)P(x)P(x) is true for at least one xxP(x)P(x) is false for every xx
∃!x P(x)\exists! x\, P(x)exactly one xx makes P(x)P(x) trueno xx, or two or more xx, make P(x)P(x) true

In programming terms, ∀\forall is Python’s all(...) and ∃\exists is any(...) over the domain.

The domain matters. "∃x (x2=2)\exists x\,(x^2 = 2)" is true over the real numbers (x=2x = \sqrt{2}) but false over the rational numbers.

Negating quantified statements

In words: “not everyone passed” means “someone did not pass”; “nobody passed” means “everyone did not pass”. For several quantifiers, move ¬\neg from left to right, switching each ∀\forall to ∃\exists and each ∃\exists to ∀\forall, and finally negate the predicate.

Nested quantifiers: order matters

With the domain R\mathbb{R}:

  • ∀x ∃y (x+y=0)\forall x\, \exists y\, (x + y = 0): for every xx we can choose y=−xy = -x. True.
  • ∃y ∀x (x+y=0)\exists y\, \forall x\, (x + y = 0): one single yy that works for every xx. For x=0x = 0 we need y=0y = 0, but for x=1x = 1 we need y=−1y = -1. False.

Swapping ∀\forall and ∃\exists changes the meaning.

Key takeaways

  • A predicate P(x)P(x) becomes a proposition when xx is given a value or is quantified.
  • ∀\forall: true for every element; ∃\exists: true for at least one; ∃!\exists!: true for exactly one.
  • ¬∀x P(x)≡∃x ¬P(x)\neg \forall x\, P(x) \equiv \exists x\, \neg P(x) and ¬∃x P(x)≡∀x ¬P(x)\neg \exists x\, P(x) \equiv \forall x\, \neg P(x).
  • The order of different quantifiers matters.

Practice questions

Answer on paper first, then check. The explanation matters more than the letter you chose.

Question 1 · multiple choice

With domain R\mathbb{R}, which is the negation of ∀x ∃y (x<y)\forall x\, \exists y\, (x < y)?

Show answer

Answer: D. ∃x ∀y (x≥y)\exists x\, \forall y\, (x \geq y)

Switch ∀\forall to ∃\exists, switch ∃\exists to ∀\forall, keep the order, and negate x<yx < y to get x≥yx \geq y. Option 1 is tempting, but it only negates the predicate without switching the quantifiers.

Question 2 · multiple choice

With domain R\mathbb{R}, what is the truth value of ∃y ∀x (x+y=0)\exists y\, \forall x\, (x + y = 0)?

Show answer

Answer: A. False

One single yy would have to work for every xx; x=0x = 0 forces y=0y = 0, but then x=1x = 1 fails. Option 2 is tempting, but y=−xy = -x depends on xx, which is allowed only in ∀x ∃y\forall x\, \exists y.

Question 3 · multiple choice

With domain Q\mathbb{Q} (the rational numbers), what is the truth value of ∃x (x2=2)\exists x\, (x^2 = 2)?

Show answer

Answer: B. False

The only real solutions are ±2\pm\sqrt{2}, and 2\sqrt{2} is irrational, so no rational xx works. Option 1 would be correct with domain R\mathbb{R}; the domain changes the answer.

Question 4 · multiple choice

What is the negation of “Every student has a laptop”?

Show answer

Answer: C. Some student does not have a laptop.

¬ ∀x L(x)≡∃x ¬L(x)\neg\, \forall x\, L(x) \equiv \exists x\, \neg L(x). Option 1 is tempting, but “no student has a laptop” is ∀x ¬L(x)\forall x\, \neg L(x), which is much stronger.

Question 5 · multiple choice

Check Your Progress E24(ii): with domain R\mathbb{R}, what is the truth value of ∀x ∃!y (y2=x3)\forall x\, \exists! y\, (y^2 = x^3)?

Show answer

Answer: D. False; for x=−1x = -1 there is no real yy

For x=−1x = -1, y2=−1y^2 = -1 has no real solution (and for x=1x = 1 there are two, y=±1y = \pm 1, so uniqueness also fails). Option 3 is wrong: for x=0x = 0 the only solution is y=0y = 0, so that xx works.

Question 6 · short answer

Check Your Progress E22(ii): write “Every real number is the square of some real number” with quantifiers, write its negation in symbols and in words, and give the truth values.

Show worked answer

Statement: ∀x∈R  ∃y∈R  (x=y2)\forall x \in \mathbb{R}\; \exists y \in \mathbb{R}\; (x = y^2). It is false, because x=−1x = -1 is not the square of any real number. Negation: ∃x∈R  ∀y∈R  (x≠y2)\exists x \in \mathbb{R}\; \forall y \in \mathbb{R}\; (x \neq y^2), i.e. “There is a real number that is not the square of any real number”. The negation is true (example: x=−1x = -1).

↑ ↓ move↵ openTab switch type