Here is a procedure which shows us how to convert any FOL formula into a propositional formula:

I wonder how to formalize this rigurously in a simple way? by that I mean, give a precise definition which shouws a machine how to construct $\phi_p$ from $\phi$.
I tried doing this but I didn't find a simple rigurous formalization for this untill now (I have a very complicated formlization which may take about 1.5-2 page though! but this works only for countable languages)
Any good(simple) formalization?
See Herbert Enderton, A Mathematical Introduction to Logic (2nd ed - 2001), page 114 for the "specification" of the process (it does not mean that it is easily translatable into a computer program ...) :
The "procedure" must start from formula $\varphi$ and decompose it according to the main connective; if there is none, i.e. if the formula is $\forall x \psi$, then it is a prime and thus we are done: its "propositional transformation" is simply $p_1$.
If the main connective is $\rightarrow$, this means that $\varphi$ is $\psi_1 \rightarrow \psi_2$. Then we have to "search into" the two sub-formulae for their main connectives, if any; otherwise they are prime.