This may seem like a rather simple question, but I haven't been able to come up with an explanation myself or find one on the Internet.
I've learned that Adam's Law states that
$$E(E(Y|X)) = E(Y)$$
While solving an exercise problem, I noticed that the solution used the fact that
$$E(E(Y|X)|X) = E(Y|X)$$
I'm a bit confused as to how this equality has been derived. The form of Adam's Law with extra conditioning I'm familiar with is
$$E(E(Y|X, Z)|Z) = E(Y|Z)$$
but there seems to be something missing in the equation that I've given.
Would anybody be able to help me understand the derivation?
Thank you.
EDIT
The textbook that I'm using is Introduction to Probability (1e) - Blitzstein & Hwang.
There isn't particularly a specific definition regarding the property that I mentioned. If I were to quote the textbook exactly:
Conditional expectation has some very useful properties, that often allow us to solve problems without having to go all the way back to the definition.
...
Theorem 9.3.7 (Adam's Law): For any random variables $X$ and $Y$,
$$E(E(Y|X)) = E(Y)$$
Adam's law with extra conditioning:
$$E(E(Y|X, Z) = E(Y|Z)$$
The remainder of the textbook related to the law is about how to prove the equality, which I understand how to do.
Here's the specific exercise problem that has led me to ask this question:
Let $X$ and $Y$ be random variables with finite variances, and let $W = Y - E(Y|X)$.
Compute $E(W|X)$.
My approach is as follows:
\begin{align} E(W|X) & = E(Y - E(Y|X) | X) \\ & = E(Y|X) - E(E(Y|X)|X) \\ \end{align}
and this is the particular part that threw me off. The correct answer would be that $E(E(Y|X)|X) = E(Y|X)$ therefore giving us $0$.
All you need it to read your book (the one by Blitzstein-Hwang you mentioned in the post) more thoroughly, really.
The definition you need is that of conditional expectations given a random variable. The first thing you should know is what the notation $E(Y|X)$ means before discussing anything about it. Section 9.2: Conditional expectation given an r.v. is the place you should refer to in the first place.
Note that the whole Section 9.3 is about "Properties of conditional expectation". In particular, you have
Applying Theorem 9.3.2, one has $$ E(E(Y|X)|X)=E(g(X)\cdot 1|X)=g(X)E(1|X)=g(X)\cdot 1=g(X), $$ where $g(X):=E(Y|X)$.
[Added:] Note that a rigorous measure theory based answer to your question would be very different. (Even Definition 9.2.1 and statement of Theorem 9.3.2 would change in that setting.)