Reading my textbook, I came across exercises for nested quantifiers.
The question: Let $L(x, y)$ be the statement “$x$ loves $y$,” where the domain for both $x$ and $y$ consists of all people in the world. Use quantifiers to express each of these statements.
i) Everyone loves himself or herself.
Textbook answer: $$ \forall xL(x, x) $$
Is this equivalent to my answer? : $$ \forall x\forall y((x=y)\to L(x,y)) $$
They're equivalent.
Let's start with $(\forall x)(\forall y) ((x=y)\to L(x,y))$:
And the other way around: Let's start with $(\forall x) L(x,x)$.