[step:Prove that compactly supported functions inside $U_I$ belong to $I$]
Let $g\in C_c(X)$ satisfy $\operatorname{supp}g\subset U_I$. Define
\begin{align*}
K:=\operatorname{supp}g.
\end{align*}
Then $K$ is compact and $K\subset U_I$.
For each $x\in K$, choose $h_x\in I$ such that $h_x(x)\neq 0$. By continuity of $h_x$, there is an open neighbourhood $V_x\subset U_I$ of $x$ such that $h_x(y)\neq 0$ for every $y\in V_x$. The family $(V_x)_{x\in K}$ is an [open cover](/page/Open%20Cover) of $K$. By compactness, choose points $x_1,\dots,x_m\in K$ such that
\begin{align*}
K\subset V_{x_1}\cup\cdots\cup V_{x_m}.
\end{align*}
For each $j\in\{1,\dots,m\}$, write $h_j:=h_{x_j}$ and $V_j:=V_{x_j}$.
Using the locally compact Hausdorff shrinking and cutoff lemma for the finite cover of the compact set $K$, choose functions $\psi_j:X\to[0,1]$ in $C_c(X)$ with $\operatorname{supp}\psi_j\subset V_j$ for $j\in\{1,\dots,m\}$ such that $\sum_{j=1}^{m}\psi_j(x)=1$ for every $x\in K$.
For each $j\in\{1,\dots,m\}$, define a function $q_j:X\to\mathbb C$ by setting $q_j(y)=\psi_j(y)g(y)/h_j(y)$ for $y\in V_j$ and $q_j(y)=0$ for $y\in X\setminus \operatorname{supp}\psi_j$. This definition is consistent because $\operatorname{supp}\psi_j\subset V_j$ and $h_j$ has no zeros on $V_j$. More precisely, on the open set $V_j$ the quotient $\psi_j g/h_j$ is continuous, and it vanishes on a neighbourhood of $X\setminus V_j$ because $\operatorname{supp}\psi_j\subset V_j$. Hence the extension by $0$ is continuous on $X$. Its support is contained in the compact set $\operatorname{supp}\psi_j$, so $q_j\in C_c(X)\subset C_0(X)$.
Since $h_j\in I$, $q_j\in C_0(X)$, and $I$ is an ideal, we have $q_jh_j\in I$ for every $j$. Therefore the finite sum
\begin{align*}
s:=\sum_{j=1}^{m}q_jh_j
\end{align*}
belongs to $I$.
For every $y\in K$, the defining relation for the functions $\psi_j$ gives
\begin{align*}
s(y)=\sum_{j=1}^{m}\psi_j(y)g(y)=g(y).
\end{align*}
For every $y\in X\setminus K$, one has $g(y)=0$. Also, if $\psi_j(y)\neq 0$, then $y\in \operatorname{supp}\psi_j$, so $q_j(y)h_j(y)=\psi_j(y)g(y)=0$. Hence $s(y)=0=g(y)$ for $y\in X\setminus K$. Thus $s=g$ on all of $X$, and therefore $g\in I$.
[/step]