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:

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 \forall(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

(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 or <math>Q(x)</math> must be true for all elements. 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 x 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. 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 \sim \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>. Hence, implication is invalid.

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:

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 \forall(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[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 or <math>Q(x)</math> must be true for all elements. 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 x 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. 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 \sim \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>. Hence, implication is invalid.