Predicate logic formulas without quantifiers can be verified using derivation. But when it comes to first order logic (predicate logic with quantifiers), the simplest way is to apply logical reasoning. Most of these questions asked will be for very small formulas and we can easily apply logical reasoning to check if they are valid. The method is to convert the logical formula into its corresponding English meaning. This is shown in the following examples:

1. Which of the following predicate calculus statements is/are valid?

(1) <math>\forall (x) P(x) \vee \forall(x)Q(x) \implies \forall (x) (P(x) \vee Q(x))</math>

(2) <math>\exists (x) P(x) \wedge \exists(x)Q(x) \implies \exists (x) (P(x) \wedge Q(x))</math>

(3) <math>\exists (x) (P(x) \vee Q(x)) \implies \forall (x) P(x) \vee \forall (x) Q(x)</math>

(4) <math>\exists (x) (P(x) \vee Q(x)) \implies \sim \forall (x) </math>


Solution by Arjun Suresh

(1) The corresponding English meaning: If <math>P(x)</math> is true for all <math>x</math>, or if <math>Q(x)</math> is true for all <math>x</math>, then for all <math>x</math>, either <math>P(x)</math> is true or <math>Q(x)</math> is true. This is always true and hence valid. To understand deeply, consider <math>X = \{3,6,9,12\}</math>. For LHS of implication to be true, either <math>P(x)</math> must be true for all elements in <math>X</math> or <math>Q(x)</math> must be true for all elements in <math>X</math>. In either case, if we take each element <math>x</math> in <math>X</math>, either one of <math>P(x)</math> or <math>Q(x)</math> will be true. Hence, this implication is always valid.

(If still in doubt, let <math>P(x)</math> means <math>x</math> is a multiple of <math>3</math> and <math>Q(x)</math> means <math>x</math> is a multiple of <math>2</math>)

(2) The corresponding English meaning: If <math>P(x)</math> is true for at least one <math>x</math>, and if <math>Q(x)</math> is true for all <math>x</math>, then there is at least one <math>x</math> for which both <math>P(x)</math> and <math>Q(x)</math> are true. This is always true and hence valid. To understand deeply, consider <math>X = \{3,6,9,12\}</math>. Let <math>P(x)</math> be <math>x</math> is a multiple of <math>9</math> and <math>Q(x)</math> be <math>x</math> is a multiple of <math>3</math>. Now, LHS of implication is true, since <math>P(x)</math> is true for <math>x = 9</math>, and <math>Q(x)</math> is true for all <math>x</math>. This makes RHS also true as for <math>9</math>, both <math>P(x)</math> and <math>Q(x)</math> are true. The same thing will happen, if we take any P(x) and Q(x). Hence, this implication is always valid.

(3) If there is at least one <math>x</math> for which either <math>P(x)</math> is true or <math>Q(x)</math> is true then <math>P(x)</math> is true for all <math>x</math> or <math>Q(x)</math> is true for all <math>x</math>. Just one read is enough to see this is an invalid implication.

(4)If there is at least one <math>x</math> for which either <math>P(x)</math> is true or <math>Q(x)</math> is true then not true for all <math>x</math>. This should mean, if <math>P(x)</math> is true for at least one <math>x</math> or if <math>Q(x)</math> is true for at least one <math>x</math>, then no x can exist. This implication can never be true as the LHS of implication makes sure that at least one <math>x</math> exists (<math>\exists (x) (P(x) \vee Q(x)) \implies \exists (x) </math> is valid). For example, consider <math>X = \{3,6,9,12\}</math> and <math>P(x)</math> be <math>x</math> is a multiple of <math>9</math> and <math>Q(x)</math> be <math>x</math> is a multiple of <math>5</math>. <math>P(x)</math> or <math>Q(x)</math> is true means at least one <math>x</math> (here, <math>x = 9</math>) is present in <math>X</math>. The same thing will happen, if we take any P(x) and Q(x). Hence, this implication is invalid.

Note

De Morgan's law is applicable in first order logic and is quite useful:

<math>\forall(x)(P(x)) \equiv \neg \exists (x)(\neg P(x))</math>

This is a logical reasoning statement which means if <math>P(x)</math> is true for all <math>x</math>, then there can never exist an <math>x</math> for which <math>P(x)</math> is not true. This formula is quite useful in proving validity of many statements as is its converse given below:

<math>\exists(x)(P(x)) \equiv \neg \forall (x)(\neg P(x))</math>





blog comments powered by Disqus

Predicate logic formulas without quantifiers can be verified using derivation. But when it comes to first order logic (predicate logic with quantifiers), the simplest way is to apply logical reasoning. Most of these questions asked will be for very small formulas and we can easily apply logical reasoning to check if they are valid. The method is to convert the logical formula into its corresponding English meaning. This is shown in the following examples:

1. Which of the following predicate calculus statements is/are valid?[edit]

(1) <math>\forall (x) P(x) \vee \forall(x)Q(x) \implies \forall (x) (P(x) \vee Q(x))</math>

(2) <math>\exists (x) P(x) \wedge \exists(x)Q(x) \implies \exists (x) (P(x) \wedge Q(x))</math>

(3) <math>\exists (x) (P(x) \vee Q(x)) \implies \forall (x) P(x) \vee \forall (x) Q(x)</math>

(4) <math>\exists (x) (P(x) \vee Q(x)) \implies \sim \forall (x) </math>


Solution by Arjun Suresh[edit]

(1) The corresponding English meaning: If <math>P(x)</math> is true for all <math>x</math>, or if <math>Q(x)</math> is true for all <math>x</math>, then for all <math>x</math>, either <math>P(x)</math> is true or <math>Q(x)</math> is true. This is always true and hence valid. To understand deeply, consider <math>X = \{3,6,9,12\}</math>. For LHS of implication to be true, either <math>P(x)</math> must be true for all elements in <math>X</math> or <math>Q(x)</math> must be true for all elements in <math>X</math>. In either case, if we take each element <math>x</math> in <math>X</math>, either one of <math>P(x)</math> or <math>Q(x)</math> will be true. Hence, this implication is always valid.

(If still in doubt, let <math>P(x)</math> means <math>x</math> is a multiple of <math>3</math> and <math>Q(x)</math> means <math>x</math> is a multiple of <math>2</math>)

(2) The corresponding English meaning: If <math>P(x)</math> is true for at least one <math>x</math>, and if <math>Q(x)</math> is true for all <math>x</math>, then there is at least one <math>x</math> for which both <math>P(x)</math> and <math>Q(x)</math> are true. This is always true and hence valid. To understand deeply, consider <math>X = \{3,6,9,12\}</math>. Let <math>P(x)</math> be <math>x</math> is a multiple of <math>9</math> and <math>Q(x)</math> be <math>x</math> is a multiple of <math>3</math>. Now, LHS of implication is true, since <math>P(x)</math> is true for <math>x = 9</math>, and <math>Q(x)</math> is true for all <math>x</math>. This makes RHS also true as for <math>9</math>, both <math>P(x)</math> and <math>Q(x)</math> are true. The same thing will happen, if we take any P(x) and Q(x). Hence, this implication is always valid.

(3) If there is at least one <math>x</math> for which either <math>P(x)</math> is true or <math>Q(x)</math> is true then <math>P(x)</math> is true for all <math>x</math> or <math>Q(x)</math> is true for all <math>x</math>. Just one read is enough to see this is an invalid implication.

(4)If there is at least one <math>x</math> for which either <math>P(x)</math> is true or <math>Q(x)</math> is true then not true for all <math>x</math>. This should mean, if <math>P(x)</math> is true for at least one <math>x</math> or if <math>Q(x)</math> is true for at least one <math>x</math>, then no x can exist. This implication can never be true as the LHS of implication makes sure that at least one <math>x</math> exists (<math>\exists (x) (P(x) \vee Q(x)) \implies \exists (x) </math> is valid). For example, consider <math>X = \{3,6,9,12\}</math> and <math>P(x)</math> be <math>x</math> is a multiple of <math>9</math> and <math>Q(x)</math> be <math>x</math> is a multiple of <math>5</math>. <math>P(x)</math> or <math>Q(x)</math> is true means at least one <math>x</math> (here, <math>x = 9</math>) is present in <math>X</math>. The same thing will happen, if we take any P(x) and Q(x). Hence, this implication is invalid.

Note[edit]

De Morgan's law is applicable in first order logic and is quite useful:

<math>\forall(x)(P(x)) \equiv \neg \exists (x)(\neg P(x))</math>

This is a logical reasoning statement which means if <math>P(x)</math> is true for all <math>x</math>, then there can never exist an <math>x</math> for which <math>P(x)</math> is not true. This formula is quite useful in proving validity of many statements as is its converse given below:

<math>\exists(x)(P(x)) \equiv \neg \forall (x)(\neg P(x))</math>





blog comments powered by Disqus