\begin{theorem}[Finite smooth partitions near a compact set]
\label{v037:forms:finitepartition}
Let $X$ be good and Hausdorff, let $S\subseteq X$ be
compact, and let $O_1,\ldots,O_m$ be ordinary open sets
covering $S$. There are compactly supported sections
$\chi_i\in\mathcal A_X^{0,0}(X)$ such that
\[
\begin{gathered}
0\leq\chi_i\leq1,\qquad
\operatorname{supp}(\chi_i)\subseteq O_i,\\
\sum_i\chi_i=1
\quad\hbox{on an ordinary neighbourhood of }S.
\end{gathered}
\]
If $X$ is pure of analytic dimension $d$, $\mathcal F$
is coherent, and $\alpha\in\mathcal A_{X,c}^{d,d}(X)$
has support in $S$, then
\[
\int_{X,\mathcal F}\alpha
=\sum_i\int_{O_i,\mathcal F|_{(O_i)_G}}
(\chi_i\alpha)|_{O_i}.
\]
Each term is a compactly supported integral on the
indicated open analytic subspace.
\end{theorem}
Full selected proof · exact TeX
\begin{proof}
The case $S=\varnothing$ uses zero functions. Otherwise,
apply Lemma~\ref{v037:forms:smoothcutoff} at each point
of $S$, with one $O_i$ containing it. Compactness gives
finitely many resulting functions $b_j$ whose loci
where they equal one cover $S$ by ordinary neighbourhoods.
Group them by the chosen index and put
\[
b_i'=\sum_{j\text{ assigned to }i}b_j,
\qquad s=\sum_i b_i'.
\]
Thus $s\geq1$ on $S$ and each $b_i'$ has compact support
contained in $O_i$.
Choose a smooth real function $\eta$ with
$0\leq\eta\leq1$, equal to zero for $t\leq1/4$
and to one for $t\geq1/2$, by the profile construction
in that lemma. The function
\[
h(t)=\begin{cases}\eta(t)/t,&t>0,\\0,&t\leq0\end{cases}
\]
is smooth, since it is identically zero for $t\leq1/4$.
Set $\chi_i=h(s)b_i'$. Smooth composition and the
sheaf algebra of Theorem~\ref{v037:forms:germsheaf}
make these global smooth moment sections.
Since $0\leq b_i'\leq s$, they take values in $[0,1]$,
and their supports are contained in those of $b_i'$.
Their sum is $\eta(s)$, which equals one on the open
neighbourhood $\{s>1/2\}$ of $S$. This proves the
partition assertion.
The equality $\alpha=\sum_i\chi_i\alpha$ holds as
sections: it holds on a neighbourhood of its support,
and every germ of $\alpha$ off that support is zero.
The support of $\chi_i\alpha$ is compact and lies in
$O_i$. By the affinoid-neighbourhood basis, one may
choose its finite compact affinoid neighbourhood
entirely inside $O_i$. The same finite-chart formula
then computes its integral in $X$ and in $O_i$, by
Theorem~\ref{v037:forms:compactintegral}.
Open subspaces are good by that same neighbourhood
basis and Hausdorff by restriction; their nonempty
affinoid charts have dimension $d$ by
Lemma~\ref{v037:integration:puritylocality}.
Thus all the indicated integrals exist, and linearity
gives the displayed formula.
\end{proof}
\begin{theorem}[Finite smooth partitions near a compact set]
\label{v037:forms:finitepartition}
Let $X$ be good and Hausdorff, let $S\subseteq X$ be
compact, and let $O_1,\ldots,O_m$ be ordinary open sets
covering $S$. There are compactly supported sections
$\chi_i\in\mathcal A_X^{0,0}(X)$ such that
\[
\begin{gathered}
0\leq\chi_i\leq1,\qquad
\operatorname{supp}(\chi_i)\subseteq O_i,\\
\sum_i\chi_i=1
\quad\hbox{on an ordinary neighbourhood of }S.
\end{gathered}
\]
Selected scope proof · exact TeX
\begin{proof}
The case $S=\varnothing$ uses zero functions. Otherwise,
apply Lemma~\ref{v037:forms:smoothcutoff} at each point
of $S$, with one $O_i$ containing it. Compactness gives
finitely many resulting functions $b_j$ whose loci
where they equal one cover $S$ by ordinary neighbourhoods.
Group them by the chosen index and put
\[
b_i'=\sum_{j\text{ assigned to }i}b_j,
\qquad s=\sum_i b_i'.
\]
Thus $s\geq1$ on $S$ and each $b_i'$ has compact support
contained in $O_i$.
Choose a smooth real function $\eta$ with
$0\leq\eta\leq1$, equal to zero for $t\leq1/4$
and to one for $t\geq1/2$, by the profile construction
in that lemma. The function
\[
h(t)=\begin{cases}\eta(t)/t,&t>0,\\0,&t\leq0\end{cases}
\]
is smooth, since it is identically zero for $t\leq1/4$.
Set $\chi_i=h(s)b_i'$. Smooth composition and the
sheaf algebra of Theorem~\ref{v037:forms:germsheaf}
make these global smooth moment sections.
Since $0\leq b_i'\leq s$, they take values in $[0,1]$,
and their supports are contained in those of $b_i'$.
Their sum is $\eta(s)$, which equals one on the open
neighbourhood $\{s>1/2\}$ of $S$. This proves the
partition assertion.