I was reading through the ZF axioms and got to the axiom of foundation which my textbook defined as: $$\forall x(x\neq\emptyset\to\exists y\in x(y\cap x=\emptyset)).$$ Which I found quite confusing. I think I understand what it's saying but the $\exists y$ there feels slightly weird, wouldn't we want it to be $\forall y\in x$?
Constructing a set $A=\{A,\emptyset\}$ isn't disallowed with the axiom (since there exists a $y\in x$ such that $y$ is disjoint from $x$) which undermines its purpose? Or am I understanding it wrong?