Question #259847

3. Give an example of a predicate P(x,y) such that ∃x∀yP(x,y) and ∀y∃xP (x, y) have different truth values.


Expert's answer

Let us give an example of a predicate P(x,y)P(x,y) such that ∃x∀yP(x,y)∃x∀yP(x,y) and ∀y∃xP(x,y)∀y∃xP (x, y) have different truth values.

Let P(x,y)P(x,y) means x≥y,x\ge y, and the domains for xx and yy are the set N\N of all positive integers.

Since the set N\N does not contain the greatest element, the value of ∃x∀y(x≥y)∃x∀y(x\ge y) is false. On the other hand, for any y∈Ny\in\N let x=yx=y. Then y≥y=x,y\ge y=x, and hence the value of ∀y∃xP(x,y)∀y∃xP (x, y) is true.


LATEST TUTORIALS
APPROVED BY CLIENTS