Definition (0)
Let be $X$ a topological space. So a pair $(h,K)$ is a compactification of $X$ if $K$ is a compact space and if $h:X\rightarrow K$ is an embedding of $X$ in $K$ such that $h[X]$ is dense in $K$. Moreover a compactification $(h,K)$ of $X$ is a $T_2$ compactification if $K$ is a Hausdorf -compact- space.
Definition (1)
If $(h_1,K_1)$ and $(h_2,K_2)$ are two compactification of some topological space $X$ we say that $(h_1,K_1)\preccurlyeq(h_2,K_2)$ if there exist a continuous function $p$ such that $p\circ h_2=h_1$.
Lemma (2)
If $X$ a locally compact space and $f:X\rightarrow Y$ a surjective continuous function onto the topological space $Y$ then too $Y$ is locally compact.
Lemma (3)
If X is an Hausdorff space locally compact, then any dense locally compact subspace $Y$ is open.
Lemma (4)
Let be $(X,\mathcal{T})$ a not compact topological space and let be $\infty\notin X$; thus on $X^\infty=X\cup\{\infty\}$ we consider the topology $$ \mathcal{T}^\infty:= \{U \subseteq X^\infty\mid U \cap X \in \mathcal{T} \land (\infty \in U \implies X \setminus U \mathrm{\ compact)}\} $$ and the function $i:X\rightarrow X^\infty$ defined as $$ i(x)=x $$ So the pair $(i,X^\infty)$ is a compactification of the space $X$, that we name Alexandroff compactification of the space $X$.
Lemma (5)
Let be $X$ a not compact Hausdorff space: so the Alexandroff compactification $(i,X^\infty)$ of $X$ is a Hausdorff space iff $X$ is locally compact.
Statement (6)
The Alexandroff compactification $(i,X^\infty)$ is the smallest compactification of any locally compact $T_2$ space $X$.
Proof. Well let be $X$ a locally compact $T_2$ space and $(h,K)$ an its compactification. So we consider the function $p:K\rightarrow X^\infty$ defined as $$ p(k)=\begin{cases}i(x),\text{if } k=h(x)\text{ for some }x\in X\\\infty,\text{ if }x\in K\setminus h[X]\end{cases} $$ and we observe that $p\circ h=i$ so if we will prove that $p$ is continuous we will have proved the statement. So let be $U\in\mathcal{T^\infty}$ and we prove that $p^{-1}(U)$ is open in $K$. Previously we observe that $h[X]$ is open in $K$ since $h[X]$ is locally compact and dense in $K$. So if $\infty\notin U$ and so if $U\subseteq X$ it results that $U$ is open in $X$ and by the definition of $p$ we have $p^{-1}(U)=h[U]$ that is open in $h[X]$ and so in $K$. Then if $\infty\in U$ then $X\setminus U$ is compact in $X$...
Unfortunately I can't prove the continuity of $p$ so I ask for your assistance. Then I used the lemma $4$ on $h[X]$ but I don't know if $K$ is $T_2$. Could someone help me, please?