As a programmer learning basic set theory, I'm a bit confused by the symbol $\in$.
For example, let $a$ be a real number and an element of a set $A$. What is the "value" of the expression $a\in A$? Is it
- a truth value, such that $(a\in A)\in \{false, true\}$, or
- the number $a$, or
- either of the above, depending on the context?
Also, given another set $B$ such that $A\in B$, is the expression $a\in A\in B$ valid, and is it supposed to be read as $(a\in A)\land(A\in B)$?
For your first question: The correct option is 3, i.e., it depends on context. For example, you can say
and you can also say
For your second question: Yes, that is how it should be read, $a\in A\in B$ means that $a\in A$ and $A\in B$. It's a similar sort of combined notation to saying $x\leq y\leq z$ for numbers, for example.