Daily current affairs on DailyCA
DailyCA NotesStudy notes for competitive exams My revisionsRevisions Sign in

ಪ್ರೆಡಿಕೇಟ್ ಲಾಜಿಕ್ (Predicate Logic), ಕ್ವಾಂಟಿಫೈಯರ್‌ಗಳು (Quantifiers) ಮತ್ತು ನೆಸ್ಟೆಡ್ ಕ್ವಾಂಟಿಫೈಯರ್‌ಗಳು (Nested Quantifiers) | Predicate Logic, Quantifiers and Nested Quantifiers

Advanced 18 min read Updated

In the syllabus of UGC NET CS

Saved in this browser only. Sign in to keep your ticks on every device. See all revisions due

Key points

  • ∀ ಜೊತೆ →, ∃ ಜೊತೆ ∧. | ∀ pairs with →, ∃ pairs with ∧.
  • ನೆಗೇಶನ್ ಕ್ವಾಂಟಿಫೈಯರ್ ದಾಟಿದಾಗ ∀ ಎಂಬುದು ∃ ಆಗುತ್ತದೆ ಮತ್ತು ವಿರುದ್ಧ. | Negation passing a quantifier turns ∀ into ∃ and the reverse.
  • ∀ ಎಂಬುದು ∧ ಮೇಲೆ ವಿತರಿಸುತ್ತದೆ, ∃ ಎಂಬುದು ∨ ಮೇಲೆ; ವಿರುದ್ಧ ಜೋಡಿಗಳು ಇಲ್ಲ. | ∀ distributes over ∧ and ∃ over ∨; the crossed pairs do not.
  • ∃y∀x ಇಂದ ∀x∃y ಬರುತ್ತದೆ; ವಿರುದ್ಧ ದಿಕ್ಕು ಬರುವುದಿಲ್ಲ. | ∃y∀x implies ∀x∃y; the reverse does not follow.
  • ಫಸ್ಟ್-ಆರ್ಡರ್ ವ್ಯಾಲಿಡಿಟಿ ಅನ್‌ಡಿಸಿಡಬಲ್ ಆದರೆ ಸೆಮಿ-ಡಿಸಿಡಬಲ್. | First-order validity is undecidable but semi-decidable.
On this page
  1. ಪ್ರೆಡಿಕೇಟ್ (Predicate) ಮತ್ತು ಡೊಮೈನ್ (Domain) | Predicates and the domain
  2. ಅನುವಾದದ ಸುವರ್ಣ ನಿಯಮ | The golden rule of translation
  3. ಕ್ವಾಂಟಿಫೈಯರ್ ನೆಗೇಶನ್ (Quantifier Negation) | Negating quantifiers
  4. ವಿತರಣೆ: ಯಾವುದು ಸರಿ, ಯಾವುದು ಅಲ್ಲ | Distribution: what holds and what does not
  5. ನೆಸ್ಟೆಡ್ ಕ್ವಾಂಟಿಫೈಯರ್‌ಗಳು (Nested Quantifiers) | Nested quantifiers
  6. ಪ್ರೆಡಿಕೇಟ್ ಲಾಜಿಕ್‌ನ ಇನ್‌ಫರೆನ್ಸ್ ನಿಯಮಗಳು | Inference rules for quantifiers
  7. ವ್ಯಾಲಿಡಿಟಿ (Validity) ಮತ್ತು ಡಿಸಿಡಬಿಲಿಟಿ (Decidability) | Validity and decidability

ಪ್ರೆಡಿಕೇಟ್ (Predicate) ಮತ್ತು ಡೊಮೈನ್ (Domain) | Predicates and the domain

ಪ್ರೆಡಿಕೇಟ್ (Predicate) P(x) ಎಂಬುದು ವೇರಿಯೇಬಲ್ ಹೊಂದಿರುವ ವಾಕ್ಯ; x ಗೆ ಡೊಮೈನ್ (Domain) ನಿಂದ ಮೌಲ್ಯ ಕೊಟ್ಟಾಗ ಅಥವಾ ಕ್ವಾಂಟಿಫೈಯರ್ (Quantifier) ಸೇರಿಸಿದಾಗ ಮಾತ್ರ ಅದು ಪ್ರೊಪೊಸಿಷನ್ ಆಗುತ್ತದೆ. | A predicate P(x) is a sentence with a variable; it becomes a proposition only when x is given a value from the domain or is bound by a quantifier.

  • ∀x P(x): ಡೊಮೈನ್‌ನ ಪ್ರತಿ x ಗೆ P(x) ಸತ್ಯ. ಸೀಮಿತ ಡೊಮೈನ್‌ನಲ್ಲಿ ಇದು ದೊಡ್ಡ ∧. | ∀x P(x): P(x) holds for every x in the domain. On a finite domain it is a big ∧.
  • ∃x P(x): ಕನಿಷ್ಠ ಒಂದು x ಗೆ P(x) ಸತ್ಯ. ಸೀಮಿತ ಡೊಮೈನ್‌ನಲ್ಲಿ ಇದು ದೊಡ್ಡ ∨. | ∃x P(x): P(x) holds for at least one x. On a finite domain it is a big ∨.
  • ಬೌಂಡ್ ವೇರಿಯೇಬಲ್ (Bound Variable): ಕ್ವಾಂಟಿಫೈಯರ್ ವ್ಯಾಪ್ತಿಯೊಳಗಿರುವುದು. ಫ್ರೀ ವೇರಿಯೇಬಲ್ (Free Variable): ಯಾವ ಕ್ವಾಂಟಿಫೈಯರ್‌ಗೂ ಒಳಪಡದ್ದು. | Bound variable: inside the scope of a quantifier. Free variable: bound by none.

ಅನುವಾದದ ಸುವರ್ಣ ನಿಯಮ | The golden rule of translation

ವಾಕ್ಯ | Sentenceಸರಿ | Correctಸಾಮಾನ್ಯ ತಪ್ಪು | Common error
ಎಲ್ಲಾ ವಿದ್ಯಾರ್ಥಿಗಳು ಬುದ್ಧಿವಂತರು | All students are clever∀x (S(x) → C(x)) | ∀x (S(x) → C(x))∀x (S(x) ∧ C(x)): ಪ್ರತಿಯೊಂದೂ ವಿದ್ಯಾರ್ಥಿ ಎಂದು ಹೇಳುತ್ತದೆ | ∀x (S(x) ∧ C(x)): says everything is a student
ಕೆಲವು ವಿದ್ಯಾರ್ಥಿಗಳು ಬುದ್ಧಿವಂತರು | Some students are clever∃x (S(x) ∧ C(x)) | ∃x (S(x) ∧ C(x))∃x (S(x) → C(x)): ವಿದ್ಯಾರ್ಥಿಯಲ್ಲದ ಒಂದು ವಸ್ತು ಇದ್ದರೂ ಸತ್ಯ | ∃x (S(x) → C(x)): true as soon as one non-student exists
ಯಾವ ವಿದ್ಯಾರ್ಥಿಯೂ ಬುದ್ಧಿವಂತನಲ್ಲ | No student is clever∀x (S(x) → ¬C(x)) | ∀x (S(x) → ¬C(x))∀x (¬S(x) → ¬C(x)) | ∀x (¬S(x) → ¬C(x))
ಎಲ್ಲಾ ವಿದ್ಯಾರ್ಥಿಗಳು ಬುದ್ಧಿವಂತರಲ್ಲ (Not all) | Not all students are clever∃x (S(x) ∧ ¬C(x)) | ∃x (S(x) ∧ ¬C(x))∀x (S(x) → ¬C(x)) | ∀x (S(x) → ¬C(x))

∀ ಜೊತೆ → , ∃ ಜೊತೆ ∧. ಇದನ್ನು ಮುರಿದ ಆಯ್ಕೆ ಬಹುತೇಕ ಯಾವಾಗಲೂ ತಪ್ಪು ಉತ್ತರ. | ∀ goes with →, ∃ goes with ∧. An option that breaks this pairing is almost always the wrong one.

ಕ್ವಾಂಟಿಫೈಯರ್ ನೆಗೇಶನ್ (Quantifier Negation) | Negating quantifiers

  • ¬∀x P(x) ≡ ∃x ¬P(x) | ¬∀x P(x) ≡ ∃x ¬P(x)
  • ¬∃x P(x) ≡ ∀x ¬P(x) | ¬∃x P(x) ≡ ∀x ¬P(x)
  • ¬∀x (P(x) → Q(x)) ≡ ∃x (P(x) ∧ ¬Q(x)) | ¬∀x (P(x) → Q(x)) ≡ ∃x (P(x) ∧ ¬Q(x))
  • ¬∃x (P(x) ∧ Q(x)) ≡ ∀x (P(x) → ¬Q(x)) | ¬∃x (P(x) ∧ Q(x)) ≡ ∀x (P(x) → ¬Q(x))

ವಿತರಣೆ: ಯಾವುದು ಸರಿ, ಯಾವುದು ಅಲ್ಲ | Distribution: what holds and what does not

ಸೂತ್ರ | Formulaಸ್ಥಿತಿ | Status
∀x (P ∧ Q) ≡ ∀x P ∧ ∀x Q | ∀x (P ∧ Q) ≡ ∀x P ∧ ∀x Qಸಮಾನ | Equivalent
∃x (P ∨ Q) ≡ ∃x P ∨ ∃x Q | ∃x (P ∨ Q) ≡ ∃x P ∨ ∃x Qಸಮಾನ | Equivalent
∀x P ∨ ∀x Q → ∀x (P ∨ Q) | ∀x P ∨ ∀x Q → ∀x (P ∨ Q)ಒಂದು ದಿಕ್ಕಿನಲ್ಲಿ ಮಾತ್ರ | One direction only
∃x (P ∧ Q) → ∃x P ∧ ∃x Q | ∃x (P ∧ Q) → ∃x P ∧ ∃x Qಒಂದು ದಿಕ್ಕಿನಲ್ಲಿ ಮಾತ್ರ | One direction only

ಪೂರ್ಣಾಂಕಗಳಲ್ಲಿ: ಪ್ರತಿ ಸಂಖ್ಯೆ ಸಮ ಅಥವಾ ಬೆಸ ಎಂಬುದು ಸತ್ಯ, ಆದರೆ ಎಲ್ಲವೂ ಸಮ ಅಥವಾ ಎಲ್ಲವೂ ಬೆಸ ಎಂಬುದು ಅಸತ್ಯ. ಆದ್ದರಿಂದ ∀ ಎಂಬುದು ∨ ಮೇಲೆ ವಿತರಿಸುವುದಿಲ್ಲ. | Over the integers: every number is even or odd is true, but every number is even, or every number is odd, is false. So ∀ does not distribute over ∨.

ನೆಸ್ಟೆಡ್ ಕ್ವಾಂಟಿಫೈಯರ್‌ಗಳು (Nested Quantifiers) | Nested quantifiers

  • ಒಂದೇ ಪ್ರಕಾರದ ಕ್ವಾಂಟಿಫೈಯರ್‌ಗಳ ಕ್ರಮ ಬದಲಿಸಬಹುದು: ∀x∀y ≡ ∀y∀x, ∃x∃y ≡ ∃y∃x. | Quantifiers of the same kind commute: ∀x∀y ≡ ∀y∀x and ∃x∃y ≡ ∃y∃x.
  • ಮಿಶ್ರ ಕ್ವಾಂಟಿಫೈಯರ್‌ಗಳ ಕ್ರಮ ಬದಲಿಸಬಾರದು: ∃y∀x P(x, y) → ∀x∃y P(x, y) ಸದಾ ಸತ್ಯ, ವಿರುದ್ಧ ದಿಕ್ಕು ಅಲ್ಲ. | Mixed quantifiers do not commute: ∃y∀x P(x, y) → ∀x∃y P(x, y) is valid, the reverse is not.
  • ಉದಾ: ಪೂರ್ಣಾಂಕಗಳಲ್ಲಿ ∀x∃y (x + y = 0) ಸತ್ಯ (y = ಋಣ x), ಆದರೆ ∃y∀x (x + y = 0) ಅಸತ್ಯ. | Example: over the integers ∀x∃y (x + y = 0) is true (y = minus x), but ∃y∀x (x + y = 0) is false.

ಪ್ರೆಡಿಕೇಟ್ ಲಾಜಿಕ್‌ನ ಇನ್‌ಫರೆನ್ಸ್ ನಿಯಮಗಳು | Inference rules for quantifiers

  • ಯೂನಿವರ್ಸಲ್ ಇನ್‌ಸ್ಟಾಂಶಿಯೇಶನ್ (Universal Instantiation): ∀x P(x) ಇಂದ ಯಾವುದೇ c ಗೆ P(c). | Universal instantiation: from ∀x P(x) infer P(c) for any c.
  • ಯೂನಿವರ್ಸಲ್ ಜನರಲೈಸೇಶನ್ (Universal Generalization): ಯಾದೃಚ್ಛಿಕ (arbitrary) c ಗೆ P(c) ಸಾಬೀತಾದರೆ ∀x P(x). | Universal generalization: from P(c) for an arbitrary c infer ∀x P(x).
  • ಎಕ್ಸಿಸ್ಟೆನ್ಶಿಯಲ್ ಇನ್‌ಸ್ಟಾಂಶಿಯೇಶನ್ (Existential Instantiation): ∃x P(x) ಇಂದ ಹೊಸ ಕಾನ್ಸ್ಟಂಟ್ c ಗೆ P(c); ಈಗಾಗಲೇ ಬಳಸಿದ ಹೆಸರು ಬಳಸಬಾರದು. | Existential instantiation: from ∃x P(x) infer P(c) for a new constant c; never reuse a name already in the proof.
  • ಎಕ್ಸಿಸ್ಟೆನ್ಶಿಯಲ್ ಜನರಲೈಸೇಶನ್ (Existential Generalization): P(c) ಇಂದ ∃x P(x). | Existential generalization: from P(c) infer ∃x P(x).

ವ್ಯಾಲಿಡಿಟಿ (Validity) ಮತ್ತು ಡಿಸಿಡಬಿಲಿಟಿ (Decidability) | Validity and decidability

  • ಸೂತ್ರ ವ್ಯಾಲಿಡ್ (Valid) ಆಗುವುದು ಅದರ ನೆಗೇಶನ್ ಅನ್‌ಸ್ಯಾಟಿಸ್ಫಯಬಲ್ (Unsatisfiable) ಆದಾಗ ಮಾತ್ರ. | A formula is valid exactly when its negation is unsatisfiable.
  • ಪ್ರೊಪೊಸಿಷನಲ್ ಸ್ಯಾಟಿಸ್ಫಯಬಿಲಿಟಿ (SAT) ಡಿಸಿಡಬಲ್ (Decidable) ಮತ್ತು ಎನ್‌ಪಿ-ಕಂಪ್ಲೀಟ್ (NP-complete). | Propositional satisfiability (SAT) is decidable and NP-complete.
  • ಫಸ್ಟ್-ಆರ್ಡರ್ ಲಾಜಿಕ್ (First-Order Logic) ವ್ಯಾಲಿಡಿಟಿ ಅನ್‌ಡಿಸಿಡಬಲ್ (Undecidable), ಆದರೆ ಸೆಮಿ-ಡಿಸಿಡಬಲ್ (Semi-decidable): ವ್ಯಾಲಿಡ್ ಸೂತ್ರಗಳನ್ನು ಸಾಬೀತುಪಡಿಸುವ ಪ್ರಕ್ರಿಯೆ ನಿಲ್ಲುತ್ತದೆ, ಇತರವುಗಳಿಗೆ ನಿಲ್ಲದಿರಬಹುದು. | First-order validity is undecidable but semi-decidable: a procedure halts on valid formulas but may run forever on the rest.

Practice questions

Answer all, then check. Explanations appear after checking.

1¬∀x P(x) ಗೆ ಸಮಾನ ಯಾವುದು? | Which is equivalent to ¬∀x P(x)?
2ಎಲ್ಲಾ ಹಕ್ಕಿಗಳು ಹಾರುತ್ತವೆ (All birds fly). B(x): x ಹಕ್ಕಿ, F(x): x ಹಾರುತ್ತದೆ. ಸರಿಯಾದ ಸೂತ್ರ? | All birds fly. With B(x): x is a bird and F(x): x flies, the correct formula is
3ಕೆಲವು ವಿದ್ಯಾರ್ಥಿಗಳು ಸೋಮಾರಿಗಳು (Some students are lazy). S(x), L(x) ಬಳಸಿ ಸರಿಯಾದ ಸೂತ್ರ? | Some students are lazy. Using S(x) and L(x), the correct formula is
4ಎಲ್ಲಾ ಹಕ್ಕಿಗಳು ಹಾರುವುದಿಲ್ಲ (Not all birds fly). ಸರಿಯಾದ ಸೂತ್ರ? | Not all birds fly. The correct formula is
5¬∃x (P(x) ∧ Q(x)) ಗೆ ಸಮಾನ ಯಾವುದು? | Which is equivalent to ¬∃x (P(x) ∧ Q(x))?
6ಪೂರ್ಣಾಂಕಗಳ (Integers) ಡೊಮೈನ್‌ನಲ್ಲಿ ಯಾವುದು ಸತ್ಯ? | Over the domain of integers, which statement is true?
7ಕೆಳಗಿನವುಗಳಲ್ಲಿ ಯಾವುದು ವ್ಯಾಲಿಡ್ (Valid), ಅಂದರೆ ಎಲ್ಲಾ ಇಂಟರ್‌ಪ್ರಿಟೇಶನ್‌ಗಳಲ್ಲಿ ಸತ್ಯ? | Which of the following is valid, that is, true in every interpretation?
8ಕೆಳಗಿನ ಯಾವ ಸಮಾನತೆ ಸಾಮಾನ್ಯವಾಗಿ ಸರಿಯಲ್ಲ? | Which of these equivalences does NOT hold in general?
9∀x (P(x, y) → ∃y Q(x, y)) ಸೂತ್ರದಲ್ಲಿ ಫ್ರೀ ವೇರಿಯೇಬಲ್ (Free Variable) ಯಾವುದು? | In ∀x (P(x, y) → ∃y Q(x, y)), which variable occurs free?
10ಎಕ್ಸಿಸ್ಟೆನ್ಶಿಯಲ್ ಇನ್‌ಸ್ಟಾಂಶಿಯೇಶನ್ (Existential Instantiation) ಬಳಸುವಾಗ ಯಾವ ನಿರ್ಬಂಧ ಇದೆ? | What restriction applies when using existential instantiation?
11ಡೊಮೈನ್ {1, 2, 3}, P(x): x ಸಮ ಸಂಖ್ಯೆ. ಸರಿಯಾದ ಹೇಳಿಕೆ ಯಾವುದು? | Domain {1, 2, 3}, P(x): x is even. Which statement is correct?
12ಒಂದು ಸೂತ್ರ φ ವ್ಯಾಲಿಡ್ (Valid) ಆಗುವುದು ಯಾವಾಗ? | A formula φ is valid if and only if
13ಫಸ್ಟ್-ಆರ್ಡರ್ ಲಾಜಿಕ್ (First-Order Logic) ನಲ್ಲಿ ವ್ಯಾಲಿಡಿಟಿ (Validity) ಸಮಸ್ಯೆ ಬಗ್ಗೆ ಯಾವುದು ಸರಿ? | Which is true of the validity problem for first-order logic?
14ಪ್ರತಿ ವ್ಯಕ್ತಿಯೂ ಯಾರನ್ನಾದರೂ ಪ್ರೀತಿಸುತ್ತಾರೆ (Everybody loves somebody). L(x, y): x ಎಂಬವರು y ಅನ್ನು ಪ್ರೀತಿಸುತ್ತಾರೆ. ಸರಿಯಾದ ಸೂತ್ರ? | Everybody loves somebody. With L(x, y): x loves y, the correct formula is
15∀x P(x) ಸತ್ಯ ಎಂದು ತಿಳಿದಿದೆ. ಯೂನಿವರ್ಸಲ್ ಇನ್‌ಸ್ಟಾಂಶಿಯೇಶನ್ (Universal Instantiation) ಮೂಲಕ ಯಾವುದನ್ನು ಪಡೆಯಬಹುದು? | Given ∀x P(x), what does universal instantiation allow you to infer?

Finished this topic? Tick it off.

Saved in this browser only. Sign in to keep your ticks on every device. See all revisions due