[step:Patch compatible fractions on the finite principal cover]We prove the patching statement needed for the fractions $r_i/s_i$. Let $\bar s_i,\bar r_i\in A$ denote the residue classes of $s_i,r_i$. For any $u\in A$, write
\begin{align*}
A_u:=A[u^{-1}]
\end{align*}
for the localization of $A$ obtained by inverting $u$. The principal opens $D_X(s_i)$ cover $X$, and the fractions
\begin{align*}
\frac{\bar r_i}{\bar s_i}
\end{align*}
agree as functions on overlaps because all of them equal $\varphi$. Since $A$ is reduced by [citetheorem:9543], equality of elements of $A$ as functions on $X$ is detected by pointwise equality on $X$.
[claim:Finite principal-open patching]
There exists an element $\bar F\in A$ such that, for every $1\le i\le m$, the restriction of $\bar F$ to $D_X(s_i)$ agrees with $\bar r_i/\bar s_i$.
[/claim]
[proof]
For every pair $i,j$, define
\begin{align*}
\delta_{ij}:=\bar s_j\bar r_i-\bar s_i\bar r_j\in A.
\end{align*}
On $D_X(s_i)\cap D_X(s_j)$, the equality of the two local functions represented by the fractions implies that $\delta_{ij}$ vanishes as a function. Hence $\delta_{ij}$ vanishes on the principal open $D_X(s_is_j)$. Therefore every point of $X$ at which $\delta_{ij}$ is nonzero lies in $V_X(s_is_j)$, or equivalently
\begin{align*}
V_X(s_is_j)\cup V_X(\delta_{ij})=X.
\end{align*}
Thus the product $(\bar s_i\bar s_j)\delta_{ij}$ vanishes at every point of $X$. Since $A$ is reduced by [citetheorem:9543], this product is zero in $A$. In particular, there is an integer $M_{ij}\in\mathbb N$ such that
\begin{align*}
(\bar s_i\bar s_j)^{M_{ij}}\delta_{ij}=0
\end{align*}
in $A$. Let $M\in\mathbb N$ be an integer with $M\ge M_{ij}$ for every pair $i,j$. Define
\begin{align*}
t_i:=\bar s_i^{M+1}\in A,\qquad a_i:=\bar r_i\bar s_i^M\in A.
\end{align*}
Then the principal opens $D_X(t_i)$ still cover $X$, because $D_X(t_i)=D_X(s_i)$. Moreover, for every $i,j$,
\begin{align*}
t_j a_i-t_i a_j
=\bar s_j^{M+1}\bar r_i\bar s_i^M-\bar s_i^{M+1}\bar r_j\bar s_j^M
=(\bar s_i\bar s_j)^M(\bar s_j\bar r_i-\bar s_i\bar r_j)
=0.
\end{align*}
Since the opens $D_X(t_1),\ldots,D_X(t_m)$ cover $X$, the elements $t_1,\ldots,t_m$ have no common zero on $X$. Applying the weak Hilbert Nullstellensatz to the ideal $(t_1,\ldots,t_m)\trianglelefteq A$, whose zero set in $X$ is empty, gives that this ideal is the unit ideal. Therefore there exist $c_1,\ldots,c_m\in A$ such that
\begin{align*}
c_1t_1+\cdots+c_mt_m=1.
\end{align*}
Define
\begin{align*}
\bar F:=c_1a_1+\cdots+c_ma_m\in A.
\end{align*}
Fix $j$. Recall that $A_{t_j}=A[t_j^{-1}]$ denotes the localization of $A$ obtained by inverting $t_j$. In the localization $A_{t_j}$, the identity $t_j a_i=t_i a_j$ gives
\begin{align*}
a_i=\frac{t_i a_j}{t_j}.
\end{align*}
Thus
\begin{align*}
\bar F
=\sum_{i=1}^m c_i a_i
=\sum_{i=1}^m c_i\frac{t_i a_j}{t_j}
=\frac{a_j}{t_j}\sum_{i=1}^m c_i t_i
=\frac{a_j}{t_j}.
\end{align*}
Because
\begin{align*}
\frac{a_j}{t_j}=\frac{\bar r_j\bar s_j^M}{\bar s_j^{M+1}}=\frac{\bar r_j}{\bar s_j}
\end{align*}
in $A_{t_j}=A_{\bar s_j}$, the restriction of $\bar F$ to $D_X(s_j)$ is
\begin{align*}
\frac{\bar r_j}{\bar s_j}.
\end{align*}
This proves the claim.
[/proof][/step]