## Predicate LogicPredicate Logic deals with predicates, which are propositions, consist of variables.
A predicate is an expression of one or more variables determined on some specific domain. A predicate with variables can be made a proposition by either authorizing a value to the variable or by quantifying the variable. The following are some examples of predicates.- Consider E(x, y) denote "x = y"
- Consider X(a, b, c) denote "a + b + c = 0"
- Consider M(x, y) denote "x is married to y."
## Quantifier:The variable of predicates is quantified by quantifiers. There are two types of quantifier in predicate logic - Existential Quantifier and Universal Quantifier. ## Existential Quantifier:If p(x) is a proposition over the universe U. Then it is denoted as ∃x p(x) and read as "There exists at least one value in the universe of variable x such that p(x) is true. The quantifier ∃ is called the existential quantifier. There are several ways to write a proposition, with an existential quantifier, i.e., (∃x∈A)p(x) or ∃x∈A such that p (x) or (∃x)p(x) or p(x) is true for some x ∈A. ## Universal Quantifier:If p(x) is a proposition over the universe U. Then it is denoted as ∀x,p(x) and read as "For every x∈U,p(x) is true." The quantifier ∀ is called the Universal Quantifier. There are several ways to write a proposition, with a universal quantifier. ∀x∈A,p(x) or p(x), ∀x ∈A Or ∀x,p(x) or p(x) is true for all x ∈A. ## Negation of Quantified Propositions:When we negate a quantified proposition, i.e., when a universally quantified proposition is negated, we obtain an existentially quantified proposition,and when an existentially quantified proposition is negated, we obtain a universally quantified proposition. The two rules for negation of quantified proposition are as follows. These are also called DeMorgan's Law.
1.∀x p(x)∧ ∃ y q(y)
2. (∃x∈U) (x+6=25)
3. ~( ∃ x p(x)∨∀ y q(y)
## Propositions with Multiple Quantifiers:The proposition having more than one variable can be quantified with multiple quantifiers. The multiple universal quantifiers can be arranged in any order without altering the meaning of the resulting proposition. Also, the multiple existential quantifiers can be arranged in any order without altering the meaning of the proposition. The proposition which contains both universal and existential quantifiers, the order of those quantifiers can't be exchanged without altering the meaning of the proposition, e.g., the proposition ∃x ∀ y p(x,y) means "There exists some x such that p (x, y) is true for every y."
1.∀ x ∃ m(x
2. ∃ m∀ x(x
Next TopicNormal Forms |