KonkurStudy
همه کارت‌ها

Negating Quantified Statements (Predicate-Logic De Morgan)

To negate a quantified sentence, push the negation inward: flip every quantifier (∀↔∃\forall\leftrightarrow\exists) in order and negate the innermost predicate, turning ∧/∨\wedge/\vee and →\to by De Morgan.

کارت مفهوم کنکور ارشد علوم کامپیوتر

اهمیت
۰/۵

Intuition

Negating a first-order sentence is purely mechanical: move ¬\neg rightward through the whole prefix, flipping each quantifier as it passes, until it lands on the atomic predicate, then negate the connectives inside. "Not everyone is happy" becomes "someone is unhappy"; nothing needs cleverness — only the swap rules below.

The two quantifier rules (De Morgan for ∀,∃\forall,\exists)

¬ ∀x P(x)  ≡  ∃x ¬P(x),¬ ∃x P(x)  ≡  ∀x ¬P(x).\neg\,\forall x\,P(x) \;\equiv\; \exists x\,\neg P(x), \qquad \neg\,\exists x\,P(x) \;\equiv\; \forall x\,\neg P(x). Apply them repeatedly, left to right, so every ∀\forall in the prefix becomes ∃\exists and vice versa, in the same order. For example: ¬ ∀x ∃y ∀z Q  ≡  ∃x ∀y ∃z ¬Q.\neg\,\forall x\,\exists y\,\forall z\,Q \;\equiv\; \exists x\,\forall y\,\exists z\,\neg Q.

Negating the connectives inside

Once ¬\neg reaches the matrix, use ordinary propositional De Morgan:

Expression Its negation
p∧qp \wedge q ¬p∨¬q\neg p \vee \neg q
p∨qp \vee q ¬p∧¬q\neg p \wedge \neg q
p→qp \to q p∧¬qp \wedge \neg q
p↔qp \leftrightarrow q p⊕qp \oplus q (exactly one holds)

The implication line is the one most people miss: ¬(p→q)≡p∧¬q\neg(p\to q)\equiv p\wedge\neg q — a conjunction, never another implication.

Bounded / restricted quantifiers

"All AA's are BB" and "some AA is BB" hide an implication and a conjunction; their negations swap the two:

Statement Formalization Negation
Every AA is BB ∀x (A(x)→B(x))\forall x\,(A(x)\to B(x)) ∃x (A(x)∧¬B(x))\exists x\,(A(x)\wedge\neg B(x))
Some AA is BB ∃x (A(x)∧B(x))\exists x\,(A(x)\wedge B(x)) ∀x (A(x)→¬B(x))\forall x\,(A(x)\to\neg B(x))

Equivalently, the shorthand forms obey ¬ ∀x ⁣∈ ⁣S P(x)≡∃x ⁣∈ ⁣S ¬P(x)\neg\,\forall x\!\in\! S\,P(x)\equiv\exists x\!\in\! S\,\neg P(x) and ¬ ∃x ⁣∈ ⁣S P(x)≡∀x ⁣∈ ⁣S ¬P(x)\neg\,\exists x\!\in\! S\,P(x)\equiv\forall x\!\in\! S\,\neg P(x) — the domain restriction x∈Sx\in S is untouched; only the quantifier and the body flip.

Worked mini-example

Negate "not all humans are intelligent" is really asking for ¬(∀x (A(x)→B(x)))\neg\big(\forall x\,(A(x)\to B(x))\big) where AA = human, BB = intelligent: ¬ ∀x (A(x)→B(x))  ≡  ∃x ¬(A(x)→B(x))  ≡  ∃x (A(x)∧¬B(x)),\neg\,\forall x\,(A(x)\to B(x)) \;\equiv\; \exists x\,\neg(A(x)\to B(x)) \;\equiv\; \exists x\,(A(x)\wedge\neg B(x)), read "there is a human who is not intelligent." A wrong-but-tempting answer keeps the implication as ∃x (A(x)→¬B(x))\exists x\,(A(x)\to\neg B(x)) — a vacuously-true statement about non-humans, so it is not equivalent.

Application: negating a compound definition

Definitions built from several quantifiers negate the same way. A function f:A→Bf:A\to B is bijective iff injective ∧\wedge surjective, so its negation is a disjunction of the two failures: ¬(inj∧surj)≡¬(inj)∨¬(surj).\neg(\text{inj}\wedge\text{surj}) \equiv \neg(\text{inj})\vee\neg(\text{surj}).

  • Injective ∀a,a′ (a≠a′→f(a)≠f(a′))\forall a,a'\,(a\neq a'\to f(a)\neq f(a')) negates (via ¬(p→q)\neg(p\to q)) to ∃a,a′ (a≠a′∧f(a)=f(a′))\exists a,a'\,(a\neq a'\wedge f(a)=f(a')) — "two distinct inputs collide."
  • Surjective ∀b ∃a (f(a)=b)\forall b\,\exists a\,(f(a)=b) negates (flip both quantifiers in order) to ∃b ∀a (f(a)≠b)\exists b\,\forall a\,(f(a)\neq b) — "some target is never hit."

Pitfall: Two classic traps. (1) When negating p→qp\to q inside a ∀\forall, it becomes p∧¬qp\wedge\neg q, not p→¬qp\to\neg q. (2) Flip each quantifier's type in order — ¬ ∀b ∃a\neg\,\forall b\,\exists a is ∃b ∀a\exists b\,\forall a, never ∀a ∃b\forall a\,\exists b — and remember a negated ∧\wedge turns into ∨\vee.

فرمول‌های کلیدی

Quantifier negation (De Morgan for FOL)
¬∀x P(x)≡∃x ¬P(x),¬∃x P(x)≡∀x ¬P(x)\neg\forall x\,P(x) \equiv \exists x\,\neg P(x), \qquad \neg\exists x\,P(x) \equiv \forall x\,\neg P(x)

Push negation through a quantifier by flipping its type and negating the body; apply left to right through the whole prefix.

Negation of an implication
¬(p→q)≡p∧¬q\neg(p \to q) \equiv p \wedge \neg q

The negation of an implication is a conjunction, not another implication — the main exam trap in bounded quantifiers.

Negation of 'every A is B'
¬ ∀x (A(x)→B(x))≡∃x (A(x)∧¬B(x))\neg\,\forall x\,(A(x)\to B(x)) \equiv \exists x\,(A(x)\wedge\neg B(x))

'Not all A are B' means 'some A is not B'; the bounded universal becomes a bounded existential with a conjunction.

#quantifier-negation#de-morgan#predicate-logic#negation-of-implication#bounded-quantifiers#universal-quantifier#existential-quantifier#fol-translation#bijection

سوالات تمرینی