Say we have a first order logic formula like this one:
$$ \forall x \forall y \forall z ( (R(x,y) \land R(y,z) \implies R(x,z)) \land \forall x (\lnot R(x,x) \land R(x,f(x))) $$
Is the variable $x$ in this case be double bound ? This concept doesnt make sense to me, because to me it seems that the $x$ in the $\forall x(R(x,z))$ is not the same than the "global" $x$.
Which means that I could substitute it with a better name.
Is my idea correct ?
A quantifier only binds free occurrences of the quantified variable in its scope. So yes, you can replace the nested $x$ with a different variable, for example, your formula is equivalent to the following:
$$\forall x \forall y \forall z ( (R(x,y) \land R(y,z) \implies R(x,z)) \land \forall t (\lnot R(t,t) \land R(t,f(t)))$$