I'm reading about one-time pad in "Introduction to Modern Cryptography" by Katz and Lindell. I can understand the definition of perfect secrecy. However, how is OTP proven to be perfectly secure ? I'm quite rusty on probability, so please explain the steps.
The proof in the book goes like this,
$M$ is the set of messages (all possible bit strings of length $\ell$), the message space. $K$ (the key space) is equal to the message space, and the cipher is computer as $c=k\oplus m$, where $k$ belongs to $K$ (chosen uniformly at random) and m belongs to $M$, \begin{align*} \Pr&[C=c\mathrel|M=m] \\ &= \Pr[M \oplus K = c \mathrel| M = m] \\&\quad\text{(How did the random variable $C$ become $M\oplus K$ here?)} \\ &= \Pr[m \oplus K = c] \\&\quad\text{(where did the conditional probability go ? what rule should I apply here ?)} \\ &= \Pr[K = m \oplus c] \\&\quad\text{(what is this ?)} \\ &= 1/2^\ell \\&\quad\text{(how should I arrive at this finally ?)} \end{align*} I did not understand any of these four steps. Please explain the reasoning behind these steps. This result is being used to show that it satisfies the definition of perfect secrecy. Please help me understand this result.