In this answer $X$ stands for a random vector and $x$ is one of
the values that it can take. I am not sure whether this meets your
question (as my comment makes clear).
Maybe it will be of help anyhow. If not then let me know. In that
case I will delete it.
Formally $P\left(X=x\mid c_{i}\right)P\left(c_{i}\right)=P\left(X=x\wedge c_{i}\right)$
where $c_{i}$ stands for the event that $X$ belongs to class $i$.
Then $P\left(X=x\mid c_{1}\right)P\left(c_{1}\right)+\cdots+P\left(X=x\mid c_{n}\right)P\left(c_{n}\right)=P\left(X=x\wedge c_{1}\right)+\cdots+P\left(X=x\wedge c_{n}\right)$
Also $P\left(X=x\right)=P\left(\left[X=x\wedge c_{1}\right]\vee\cdots\vee\left[X=x\wedge c_{n}\right]\right)=P\left(X=x\wedge c_{1}\right)+\cdots+P\left(X=x\wedge c_{n}\right)$
This because $X$ must belong to exactly one class.
So LHS of first equality equals LHS of second equality.