Good mornig to all of you. If I have a formula like $( \exists x ) ( P(x) ) \land ( \exists x ) ( Q(x) )$ this means that $x$ is the same? I try to be more clear with an exemple. If I have $\exists x ( x-2=0)$, this is true since $x =2$ satisfies $x-2=0$. If I have $\exists x (x-3=0)$, this is true because $x=3$ satisfies $x-3=0$. But what if I have $\exists x (x-2=0) \land \exists x (x-3=0)$. Is $x$ the same? Can I choose if $x$ is the same or not? Is $\exists x (x-2=0) \land \exists x (x-3=0)$ true or false? Beacause if $x$ has to be the same, then it is false. Thanks.
Logic: variable names and quantifiers
225 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail AtThere are 3 best solutions below
On
The issue here is one of scope: parts of a formula where variables refer to the same thing. Scope also shows up in computer science where we can reuse variable names in different subroutines: the same letter refers to something completely different in those different subroutines, and is treated as if it had a completely different letter.
In a formula like $\exists x: (x-2=0) \wedge \exists x: (x-3=0)$ there are two separate variables referred to as $x$. Their scopes are: $$\exists x: \underbrace{(x-2=0)}_\text{scope of first} \wedge \exists x: \underbrace{(x-3=0)}_\text{scope of second}$$
We can associate a variable that isn't free with its quantifier, and each separate quantifier gives a different scope. In order to determine which quantifier a variable goes with, work your way up the parse tree of the formula until you hit a quantifier. If the variable is free its scope is the entire formula*.
*Unless the variable is quantified over within the formula.
On
The parentheses after the quantifier indicate the scope of the quantifier: within that scope, all references to the variable being quantified refer to the same object. Outside that scope you can reuse that variable, but it can denote something different.
The same is going on in English expressions, if you think about it. Consider: "Something is big, and something is blue". Sure, I use the very same word "something" twice, but clearly the first "something" can refer to a different something than the second "something"
They are different variables which just happen to have the same name. The sentence is equivalent to $(\exists x)(x - 2 = 0) \land (\exists y)(y - 3 = 0)$.
If you would want to denote the same variable, you would have to use only one quantifier like so: $$ (\exists x)(x - 2 = 0 \land x - 3 = 0).$$
Note that in this sentence you cannot rename the one of the two occurrences of $x$, while in the previous case you could.
Edit after comment from rookie_of_math:
It is only a coincidence that the two formulas with $\lor$ are "compatible". Still, they are different:
To make the distinction clearer, the solutions to the first formula are:
The solutions for the second formula (with one quantifier) are:
In general, using two quantifiers is different from using one, as the example with $\land$ illustrates better. The question is "What do you want to express?". If you want to talk about only one entity/number, then you should use only one quantifier. If you want to talk about two entities, then you use two quantifiers.