I'm trying to understand the following relationship intuitively.
We have the generic TPT which states:
$P(A)=\int_{R_X}P(A|X=t)f_X(t)dt$
Where $A$ is some event, and $X$ is a continuous random variable with possible values in $R_X$.
When we apply this to a conditional case, we now restrict the sample space to $B$ (for some event $B$), and we get:
$P(A|B)=\int_{X\in B}P(A|B|X=t)f_{X|B}(t)dt$
But apparently this is the same as:
$P(A|B)=\int_{X\in B}P(A|B,X=t)f_{X|B}(t)dt$
How do we get there? I was trying to think in terms of Venn diagrams but the fact that $X=t$ is a zero probability event is throwing me off.
It might help to look at what happens in the discrete case. Let $X$ be a discrete random variables taking values in a set $\mathcal X$. I will use $P(E,F,G)$ to denote $P(E\cap F\cap G)$. Then \begin{align} P(A|B) &=\frac{P(A,B)}{P(B)} \\&=\sum_{t\in \mathcal X}\frac{P(A, B, X=t)}{P(B)} \\&=\sum_{t\in \mathcal X}\frac{P(A, B, X=t)}{P(B, X=t)}\cdot \frac{P(B, X=t)}{P(B)} \\&=\sum_{t\in \mathcal X}P(A|B,X=t)P(X=t|B) \end{align} This is the discrete analogue of your integral formula.