\section{Introduction}


The theory of $L$-functions of automorphic forms or automorphic representations is a central topic in modern number theory \cite{Langlands1970}. One fruitful way to study $L$-functions is through an integral formula, 
which is commonly referred to as an integral representation.
The usual Rankin-Selberg method \cite{Bump1989} involves a global integral which unfolds to a unique model such as the Whittaker model or the Bessel model, and it is the local uniqueness of the model which forces the global integral to be Eulerian;
see, for example, \cite{JacquetLanglands1970, JacquetPiatetski-ShapiroShalika197901, JacquetPiatetski-ShapiroShalika197902, JacquetShalika198101, JacquetShalika198102, Piatetski-Shapiro1997, Furusawa1993, File2013}. 
In 1987, Piatetski-Shapiro and Rallis \cite{Piatetski-ShapiroRallis1987Doubling} introduced a different approach to integral representations of the standard $L$-functions for classical groups. Their construction, now known as the doubling method, unfolded to an integral involving a global matrix coefficient on the classical group. More recently, the doubling construction has been vastly generalized by Cai, Friedberg, Ginzburg and Kaplan \cite{CaiFriedbergGinzburgKaplan2019} to represent the tensor product partial $L$-function $L^S(s, \pi\times \tau)$, where $\pi$ and $\tau$ are irreducible cuspidal automorphic representations on a classical group and a general linear group respectively. The new ingredients of the twisted doubling constructions in \cite{CaiFriedbergGinzburgKaplan2019}, are the use of the generalized Speh representations as inducing data for the Eisenstein series, and the use of a new model which generalizes the Whittaker model. The twisted doubling constructions, together with the Converse Theorem \cite{CogdellPiatetski-Shapiro1994, CogdellPiatetski-Shapiro1999}, can be applied to obtain global functoriality from $G({\mathbb A})$ to $\rm GL_N({\mathbb A})$, where $G$ is either a symplectic group or a split special orthogonal group or a split general spin group \cite[Theorem 1]{CaiFriedbergKaplan2020}, and ${\mathbb A}$ is the ring of adeles of a number field $F$.
 
In \cite{GinzburgSoudry2020}, Ginzburg and Soudry proposed a relatively simple procedure to derive integrals from the (twisted) doubling method. 
Starting from the global (twisted) doubling integral, after an unfolding process, 
they used the process of global root exchange, and identities between Eisenstein series proved in \cite{GinzburgSoudry2021}, to derive and obtain a ``simpler'' integral. 
They gave several examples of the procedure, such as the Jacquet-Langlands \cite{JacquetLanglands1970} integral for the standard $L$-function attached to an irreducible cuspidal automorphic representation of $\text{GL}_2(\mathbb{A})$, as well as the integrals of Piatetski-Shapiro and Rallis analyzed by the New Way method in \cite{Piatetski-ShapiroRallis1988}.


The New Way method was originally developed by Piatetski-Shapiro and Rallis in \cite{Piatetski-ShapiroRallis1988}, where they used a non-unique model to obtain integral representations for the standard $L$-functions for $\rm Sp_{2n}$. We mention that several other constructions via a non-unique model for general linear groups and split orthogonal groups
were given in \cite{BumpFurusawaGinzburg1995}. The standard $L$-function for a quasi-split unitary group was treated in \cite{Qin2007}. 
Recently, Pollach and Shah adapted the New Way method to obtain the Spin $L$-functions for $\text{GSp}_4$ \cite{PollackShah2017} and $\text{GSp}_6$ \cite{PollackShah2018} . For the standard $L$-function for the exceptional group $G_2$ as well as its $\text{GL}_1$ twist, we mention the works in \cite{GurevichSegal2015, Segal2017}. The New Way method also applies to the standard $L$-function for the $n$-fold metaplectic covering group $\text{GL}^{(n)}_r(\mathbb{A})$ \cite{BumpFriedberg1999, Ginzburg2018}.



Ginzburg and Soudry showed how one can use the procedure they described in \cite{GinzburgSoudry2020} to construct a new global integral which unfolds to a non-unique model, and they conjectured that this new integral is Eulerian by the New Way method. 
To give more details about their construction, we introduce some notations. 
Let $\pi$ be an irreducible cuspidal automorphic representation of $\text{Sp}_4(\mathbb{A})$, with $\varphi\in V_\pi$ a cusp form in the space of $\pi$.
Let $T_0$ denote a symmetric matrix in $\text{GL}_2(F)$ and let
$T=J_2 T_0$ with $J_2=\left(\begin{smallmatrix} & 1\\
1& \end{smallmatrix}\right)$. Let $\chi_T$ be the quadratic character on $F^\times\backslash \mathbb{A}^\times$, given by $\chi_T(x)=(x, \det(T))$ where $(\cdot, \cdot)$ is the global Hilbert symbol. 
Consider the dual pair $(\text{SO}_{T_0}, \text{Sp}_4)$ inside $\text{Sp}_8$.
The adelic group $\text{SO}_{T_0}(\mathbb{A})\times \text{Sp}_4(\mathbb{A})$ splits in $\widetilde{\text{Sp}}_8(\mathbb{A})$, and we consider the restriction of the Weil representation $\omega_\psi=\omega_{\psi, 8}$ of 
$\widetilde{\text{Sp}}_8(\mathbb{A})$,
corresponding to the character $\psi$, to the group 
$\text{SO}_{T_0}(\mathbb{A})\times \text{Sp}_4(\mathbb{A})$ 
under the splitting. We may realize the Weil representation in the Schwartz space $\mathcal{S}(\text{Mat}_2(\mathbb{A}))$. For a Schwartz function $\Phi\in \mathcal{S}(\text{Mat}_2(\mathbb{A}))$, let $\theta_{\psi}^\Phi $ be the corresponding theta series. 
Let $N_{2,8}$ be the unipotent radical of the standard parabolic subgroup of $\text{Sp}_8$ whose Levi subgroup is isomorphic to $\rm GL_2\times \rm Sp_4$. Note that $N_{2,8}$ has a structure of the Heisenberg group $\mathcal{H}_9$ in $9$ variables, under the map $\alpha_T:N_{2,8}\to \mathcal{H}_9$  which will be given in \eqref{eq-alpha_T}. 
Let $\tau$ be an irreducible unitary cuspidal automorphic representation of $\text{GL}_2(\mathbb{A})$. Let $E(\cdot, f_{\Delta(\tau\otimes \chi_T, 2), s})$ be an Eisenstein series on $\text{Sp}_8(\mathbb{A})$, corresponding to 
a  
section $f_{\Delta(\tau\otimes \chi_T, 2), s}$  in the Siegel induced representation 
\begin{equation*}
\text{Ind}_{P_8(\mathbb{A})}^{\text{Sp}_8(\mathbb{A})}(\Delta(\tau\otimes \chi_T, 2)|\det \cdot |^s),
\end{equation*}
where 
$\Delta(\tau\otimes \chi_T, 2)$ is the generalized Speh representation of $\text{GL}_4(\mathbb{A})$ attached to $\tau\otimes\chi_T$, defined by Jacquet \cite{Jacquet1984}. Here and thereafter, induction is normalized. The representation $\Delta(\tau\otimes \chi_T, 2)$ affords certain unique model, denoted by $\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T})$.

\iffalse

Ginzburg and Soudry showed how one can use the procedure they described in \cite{GinzburgSoudry2020} to construct a new global integral which unfolds to a non-unique model, and they conjectured that this new integral is Eulerian by the New Way method. 
To give more details about their construction, we introduce some notations. 
Let $\pi$ be an irreducible cuspidal automorphic representation of $\text{Sp}_4(\mathbb{A})$, with $\varphi\in V_\pi$ a cusp form in the space of $\pi$.
Let $\tau$ be an irreducible unitary cuspidal automorphic representation of $\text{GL}_2(\mathbb{A})$.
Let $\theta_{\psi}^\Phi $ be a theta series on $\mathcal{H}_9(\mathbb{A}) \rtimes \text{Sp}_8(\mathbb{A})$ associated with a Schwartz function $\Phi\in \mathcal{S}(\text{Mat}_2(\mathbb{A}))$, where
$\mathcal{H}_9$ 
is the Heisenberg group in $9$ variables. Here $\psi$ is a non-trivial additive character on $F\backslash {\mathbb A}$. 
Let $T_0$ denote a symmetric matrix in $\text{GL}_2(F)$ and let
$T=J_2 T_0$ with $J_2=\left(\begin{smallmatrix} & 1\\
1& \end{smallmatrix}\right)$. Let $\chi_T$ be the quadratic character on $F^\times\backslash \mathbb{A}^\times$, given by $\chi_T(x)=(x, \det(T))$ where $(\cdot, \cdot)$ is the global Hilbert symbol. 
Let $N_{2,8}$ be the unipotent radical of the standard parabolic subgroup of $\text{Sp}_8$ whose Levi subgroup is isomorphic to $\rm GL_2\times \rm Sp_4$. Note that $N_{2,8}$ has a structure of the Heisenberg group $\mathcal{H}_9$, under the map $\alpha_T:N_{2,8}\to \mathcal{H}_9$  which will be given in \eqref{eq-alpha_T}. Let $E(\cdot, f_{\Delta(\tau\otimes \chi_T, 2), s})$ be an Eisenstein series on $\text{Sp}_8(\mathbb{A})$, corresponding to 
a  
section $f_{\Delta(\tau\otimes \chi_T, 2), s}$  in the Siegel induced representation 
\begin{equation*}
\text{Ind}_{P_8(\mathbb{A})}^{\text{Sp}_8(\mathbb{A})}(\Delta(\tau\otimes \chi_T, 2)|\det \cdot |^s),
\end{equation*}
where 
$\Delta(\tau\otimes \chi_T, 2)$ is the generalized Speh representation of $\text{GL}_4(\mathbb{A})$ attached to $\tau\otimes\chi_T$, defined by Jacquet \cite{Jacquet1984}. Here and thereafter, induction is normalized. The representation $\Delta(\tau\otimes \chi_T, 2)$ affords certain unique model, denoted by $\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T})$.

\fi

Starting from the global twisting doubling integral 
in \cite{CaiFriedbergGinzburgKaplan2019}, Ginzburg and Soudry used global computation to derive the following integral
\begin{equation}
\begin{split}
\mathcal{Z}( \varphi,   \theta_{\psi}^\Phi   , &E(\cdot, f_{\Delta(\tau\otimes \chi_T, 2), s}))\\
&=
\int\limits_{\text{Sp}_4(F)\backslash \text{Sp}_4(\mathbb{A})} \int\limits_{N_{2, 8}(F)\backslash N_{2, 8}(\mathbb{A})}   \varphi(h)     \theta_{\psi}^\Phi (\alpha_T(v)(1, h))E(v(1, h), f_{\Delta(\tau\otimes \chi_T, 2), s})dvdh.
\label{Introduction-eq-global-integral-0}
\end{split}
\end{equation}
Moreover, they formed a conjecture on the relation between the integral above and the tensor product partial $L$-function $L^S( s+\frac{1}{2}, \pi\times \tau)$, where $S$ is a finite set of places defined in Section~\ref{subsection-non-unique-models-and-the-new-way-method}. 

\begin{conjecture}(Ginzburg-Soudry, \cite{GinzburgSoudry2020}).
The integral \eqref{Introduction-eq-global-integral-0} is Eulerian in the sense of the New Way method, and represents the partial $L$-function $L^S( s+\frac{1}{2}, \pi\times \tau)$.
\label{conjecture-Ginzburg-Soudry}
\end{conjecture}

The main purpose of this paper is to prove Conjecture~\ref{conjecture-Ginzburg-Soudry}. Our result can be formulated in terms of normalized Eisenstein series. Let \begin{equation*}
    d_{\tau\otimes\chi_T}^{\rm Sp_8, S}(s)=\prod_{\nu\not\in S} d_{\tau_\nu\otimes\chi_T}^{\rm Sp_8 }(s),
\end{equation*}
where
\begin{equation*}
    d_{\tau_\nu\otimes\chi_T}^{\rm Sp_8}(s)=L (s+\frac{3}{2}, \tau_\nu\otimes\chi_T)L (2s+2, \tau_\nu\otimes\chi_T, \text{Ext}^2) L (2s+1, \tau_\nu\otimes\chi_T, \text{Sym}^2).
\end{equation*}
Here, $\text{Ext}^2$ is the exterior square representation, and $\text{Sym}^2$ is the symmetric square representation. This is the normalizing factor outside $S$ for the Eisenstein series $E(\cdot,  f_{\Delta(\tau\otimes \chi_T, 2), s})$ (see \cite[(1.48)]{GinzburgSoudry2021}). Denote
\begin{equation*}
    E^{*, S}(g, f_{\Delta(\tau\otimes \chi_T, 2), s})=    d_{\tau\otimes\chi_T}^{\rm Sp_8, S}(s) E(g, f_{\Delta(\tau\otimes \chi_T, 2), s}).
\end{equation*}
Throughout this paper, a normalized Eisenstein series means that the Eisenstein series is partially normalized outside $S$.



\begin{theorem}
Conjecture~\ref{conjecture-Ginzburg-Soudry} holds. That is,
given an irreducible cuspidal automorphic representation $\pi$ of $\rm Sp_4({\mathbb A})$, 
an irreducible unitary cuspidal automorphic representation $\tau$ of $\rm GL_2({\mathbb A})$, 
and a non-zero cusp form $\varphi\in V_\pi$ which corresponds to $\otimes_\nu \xi_\nu$ under some choice of factorization $\pi\cong \otimes_\nu^\prime \pi_\nu$, there is a choice of a matrix $T=J_2 T_0\in \rm GL_2(F)$ where $T_0$ is symmetric, a section $f_{\Delta(\tau\otimes \chi_T, 2), s}\in \text{Ind}_{P_8(\mathbb{A})}^{\text{Sp}_8(\mathbb{A})}(\Delta(\tau\otimes \chi_T, 2)|\det \cdot |^s)$ and some $\Phi=\prod_{\nu}\Phi_\nu \in \mathcal{S}(\text{Mat}_2({\mathbb A}))$ so that
\begin{equation}
\mathcal{Z}( \varphi,   \theta_{\psi}^\Phi   , E^{*, S}(\cdot, f_{\Delta(\tau\otimes \chi_T, 2), s})) = 
L^S(s+\frac{1}{2}, \pi\times \tau)  \cdot \mathcal{Z}_S(\varphi, \Phi, f^*_{\mathcal{W}(\tau\otimes \chi_{T}, 2, \psi_{2T}), s}) ,
\label{Introduction-eq-in-major-theorem}
\end{equation}
where $S$ is certain finite set of places (depending on $T$) which includes all the archimedean ones, and $\mathcal{Z}_S(\varphi, \Phi, f^*_{\mathcal{W}(\tau\otimes \chi_{T}, 2, \psi_{2T}), s})$ 
is a meromorphic function which 
does not depend on $\pi$.
Moreover, for any $s_0\in \mathbb{C}$, the data can be chosen so that $\mathcal{Z}_S(\varphi, \Phi, f^*_{\mathcal{W}(\tau\otimes \chi_{T}, 2, \psi_{2T}), s})$ is 
non-zero at $s_0$. 
\label{thm-conjecture-holds}
\end{theorem}












This explains \cite[(4.38)]{GinzburgSoudry2020}.
Our proof of Theorem~\ref{thm-conjecture-holds} uses the New Way method developed in \cite{Piatetski-ShapiroRallis1988}. We show that the integral \eqref{Introduction-eq-global-integral-0} unfolds to the Fourier coefficient
\begin{equation}
\label{Introduction-eq-Fourier-coefficient}
    \int\limits_{N_4(F)\backslash N_4({\mathbb A})}\varphi(nh)\psi_T(n)dn.
\end{equation}
Here, $N_4$ is the unipotent radical of the Siegel parabolic subgroup of $\rm Sp_4$, and $\psi_T$ is the additive character on $N_4(F)\backslash N_4({\mathbb A})$ given by
\begin{equation*}
    \psi_T\left(\begin{smallmatrix} I_2 & z \\ & I_2\end{smallmatrix}\right)=\psi(\text{tr}(Tz)).
\end{equation*}
Hence, the integral unfolds to a non-unique model, which is the same non-unique model as in \cite{Piatetski-ShapiroRallis1988}. We also remark that, by a theorem of Li \cite{LiJian-Shu1992}, every cuspidal automorphic representation of $\rm Sp_4(\mathbb{A})$ possesses such a non-zero Fourier coefficient for certain $T$ of maximal rank.
Then, at a local place where all data are unramified, we show that the corresponding local integral produces the local $L$-function.
We emphasis that the local unramified computation does not depend on the choice of the  corresponding local linear functional $l_T$; see 
Theorem~\ref{theorem-unramified-computation}. 
Then, we obtain \eqref{Introduction-eq-in-major-theorem} by an induction argument similar to \cite{Piatetski-ShapiroRallis1988}; see Theorem~\ref{theorem-global-1}. 
In contract to all previously known constructions, the integral \eqref{Introduction-eq-global-integral-0} proposed by Ginzburg and Soudry is the first example of a New Way type integral representation for the $L$-function for $G\times \text{GL}_k$, where $G$ is a classical group and $k>1$. We hope to generalize the construction to the $L$-function for $\text{Sp}_{2n}\times \text{GL}_k$ in a future article. In particular, we discuss the case $n=k$ in Section~\ref{section-conjecture}.

We mention some other integrals for the $L$-function for $\text{Sp}_{2n}\times \text{GL}_k$. There are integrals of Gelbart and Piatetski-Shapiro \cite{GelbartPiatetski-Shapiro1987} (when $n=k$) and  integrals of Ginzburg, Rallis, and Soudry \cite{GinzburgRallisSoudry1998} (for $n\ge k$ and for $n<k$), both of which unfold to the Whittaker model and hence they only apply to generic representations. There are also integrals of Ginzburg, Jiang, Rallis and Soudry \cite{GinzburgJiangRallisSoudry2011} which unfold to the Fourier-Jacobi model. All of the above constructions use certain unique model.


It is expected that the integral $\mathcal{Z}( \varphi,   \theta_{\psi}^\Phi   , E^{*, S}(\cdot, f_{\Delta(\tau\otimes \chi_T, 2), s}))$ will play an important role in answering many questions regarding the analytic properties of the partial $L$-function $L^S(s, \pi\times \tau)$. 
As an immediate consequence, we obtain another proof of the following result.

\begin{corollary}(Cai-Friedberg-Kaplan, \cite[Theorem 60]{CaiFriedbergKaplan2020}).
Let $S$ be the finite set of places defined in Section~\ref{subsection-non-unique-models-and-the-new-way-method}. The partial $L$-function $L^S(s, \pi\times \tau)$ admits meromorphic continuation to the whole complex plane. 
\label{corollary-of-major-theorem}
\end{corollary}

In the sequel, we will use Theorem~\ref{thm-conjecture-holds} to study the poles of $L^S(s,\pi\times \tau)$ and relate their existence to functorial liftings  and the non-vanishing of Fourier-Jacobi periods. 


The rest of this paper is organized as follows. In Section~\ref{section-Preliminaries}, we define the groups, and recall relevant theta seires and Eisenstein series, as well as the generalized Speh representations. In Section~\ref{section-main-theorems}, we discuss the general technique of Piatetski-Shapiro and Rallis to analyze a non-unique model, and state the main theorems. In Section~\ref{section-Unfolding}, we give the global unfolding computation. In Section~\ref{section-Unramified computation}, we compute the local integral at an unramified place, and show that the unramified local integral produces the local $L$-function. In Section~\ref{section-Ramified computation}, we control the local integrals at finite ramified places and the archimedean places. In addition, we prove some result on the archimedean generalized Kirillov model in Section~\ref{Subsection-archimedean-generalized-kirillov}.
In Section~\ref{section-conjecture}, we discuss the extension of the integral~\eqref{Introduction-eq-global-integral-0} to  $\text{Sp}_{2n}\times \text{GL}_n$.

\section{Preliminaries}
\label{section-Preliminaries}
\subsection{General notations}
We start with some general notations. For a positive integer $n$, we let $J_n$ denote the $n\times n$ matrix which has ones on the antidiagonal and zeros everywhere else. We realize the symplectic group $\text{Sp}_{2n}$ as
\begin{equation*}
\text{Sp}_{2n}=\left\{g \in \text{GL}_{2 n} : {}^t g \left(\begin{smallmatrix}
 & J_n\\
 -J_n &
\end{smallmatrix}\right) g=\left(\begin{smallmatrix}
 & J_n\\
 -J_n &
\end{smallmatrix}\right)\right\}.
\end{equation*} 
For each $0\le r \le n$, we let $P_{r,2n}$ be the standard parabolic subgroup of $\text{Sp}_{2n}$ with the standard Levi decomposition $P_{r,2n}=M_{r,2n}\ltimes N_{r,2n}$, where the Levi part is $M_{r,2n}\cong \text{GL}_r\times \text{Sp}_{2n-2r}$. When $r=0$, we understand that $M_{0,2n}=\text{Sp}_{2n}$ and $N_{0,2n}=\{I_{2n}\}$.
Let $P_{2n}=P_{n,2n}$,  $M_{2n}=M_{n,2n}$, and $N_{2n}=N_{n,2n}$. 
Then $P_{2n}$ is the standard Siegel parabolic subgroup of $\text{Sp}_{2n}$.
Let $\text{Mat}_{m\times n}$ denote the algebraic group of all matrices of size $m\times n$ and let $\text{Mat}_n=\text{Mat}_{n\times n}$. Denote
\begin{equation*}
\text{Mat}_{n}^{0}=\left\{A \in \text{Mat}_{n} : {}^t A J_{n}=J_{n} A\right\}.
\end{equation*}
Then  
\begin{equation*}
M_{2n}=\left\{ \hat{g}=\left(\begin{smallmatrix}
 g & \\
  & J_n {}^t g^{-1} J_n
\end{smallmatrix}\right) :g\in \text{GL}_{n}\right\}, \,  N_{2n}=\left\{ \left(\begin{smallmatrix}
 I_n & z \\
  & I_n
\end{smallmatrix}\right) :z\in \text{Mat}_n^0\right\}.
\end{equation*}



\subsection{The Weil representation}
Let $F$ be a number field and $\mathbb{A}=\mathbb{A}_F$ the ring of adeles of $F$. We fix a nontrivial additive character $\psi:F\backslash \mathbb{A}\to \mathbb{C}^\times$. Let $T_0\in \text{GL}_2(F)$ be a symmetric matrix. To simplify our calculation we may assume that $T_0=\text{diag}(t_1, t_2)$ is diagonal, but this assumption is not essential. Let $T=J_2 T_0=\left(\begin{smallmatrix}
0& t_2\\
t_1 &0
\end{smallmatrix}\right)$. We denote by $\chi_T$ the quadratic character of $F^\times\backslash \mathbb{A}^\times$ given by \begin{equation*}
    \chi_T(x)=(x, \det(T)),
\end{equation*}
where $(\cdot, \cdot)$ is the global Hilbert symbol. This is the quadratic character corresponding to $\text{disc}(T_0)$.
Let $\text{SO}_{T_0}$ be the special orthogonal group defined over $F$, corresponding to $T_0$. The matrix realization of $\text{SO}_{T_0}$ is given by
\begin{equation*}
    \text{SO}_{T_0}=\left\{g\in \text{SL}_2: {}^t g T_0 g =T_0\right\}.
\end{equation*}


We consider the following Heisenberg group $\mathcal{H}_9$ in $9$ variables, realized as $\text{Mat}_2\times \text{Mat}_2\times \text{Mat}_1$. This is the group of
elements $(X, Y, z)$ where $X, Y\in \text{Mat}_2$, $z\in \text{Mat}_1$, with multiplication given by
\begin{equation*}
    (X_1, Y_1, z_1)(X_2, Y_2, z_2)=(X_1+X_2, Y_1+Y_2, z_1+z_2+\text{tr}(T(X_1J_2{}^t Y_2 J_2- Y_1J_2{}^t X_2 J_2))).
\end{equation*}
We also consider the unipotent group $N_{2,8}$,  which consists of matrices of the form
\begin{equation}
    v(x, y, z)=\left(\begin{smallmatrix}
I_2 & x & y & z\\
& I_2 & & y^* \\
& &I_2 & x^*\\
& & &I_2
\end{smallmatrix}\right)
\label{Preliminaries-eq-N_2,8}
\end{equation}
where $y^*=J_2 {}^t y J_2, x^*=-J_2 {}^t x J_2$, and $z-xy^*\in \text{Mat}_2^0$. Then $N_{2,8}$ is isomorphic to the Heisenberg group $\mathcal{H}_9$ by the map 
\begin{equation}
    \alpha_T \left(\begin{smallmatrix}
I_2 & x & y & z\\
& I_2 & & y^* \\
& &I_2 & x^*\\
& & &I_2
\end{smallmatrix}\right)=(x, y, \text{tr}(Tz)).
\label{eq-alpha_T}
\end{equation}
We embed $\text{SO}_{T_0}\times \text{Sp}_4$ inside $\text{Sp}_8$ via $(m,h)\mapsto \text{diag}(m, h, m^*)$ where $m^*=J_2{}^t m^{-1} J_2$. Then the action of conjugation of $\text{diag}(m,h, m^*)$ on the element \eqref{Preliminaries-eq-N_2,8} is given by
\begin{equation*}
    \text{diag}(m^{-1}, h^{-1}, (m^{-1})^*)\, v(x, y, z) \, \text{diag}(m,h, m^*)= v((m^{-1}x, m^{-1}y)h, m^{-1}zJ_2{}^tm^{-1} J_2). 
\end{equation*}
To simplify our notation, we re-denote $(m, h)=\text{diag}(m, h, m^*)$.














Let $\widetilde{\text{Sp}}_8(\mathbb{A})$ be the metaplective double cover of $\text{Sp}_8(\mathbb{A})$.
We consider the dual pair $(\text{SO}_{T_0}, \text{Sp}_4)$ inside $\text{Sp}_8$.
The adelic group $\text{SO}_{T_0}(\mathbb{A})\times \text{Sp}_4(\mathbb{A})$ splits in $\widetilde{\text{Sp}}_8(\mathbb{A})$, and we consider the restriction of the Weil representation $\omega_\psi=\omega_{\psi, 8}$ of 
$\widetilde{\text{Sp}}_8(\mathbb{A})$,
corresponding to the character $\psi$, to the group 
$\text{SO}_{T_0}(\mathbb{A})\times \text{Sp}_4(\mathbb{A})$ 
under the splitting.  We realize the Weil representation in the Schwartz space $\mathcal{S}(\text{Mat}_2(\mathbb{A}))$. Note that we have an isomorphism $\alpha_T:N_{2,8}(\mathbb{A})\cong \mathcal{H}_9(\mathbb{A})$ via \eqref{eq-alpha_T}. We have the following formulas (see \cite{Kudla1996} or \cite{GinzburgRallisSoudry2011}) for the Weil representations
\begin{equation}
\omega_\psi \left( \alpha_T(v(x, y, z)) \right) \Phi(\xi)= \psi(\text{tr}(Tz)) \psi(\text{tr}(TxJ_2 {}^t yJ_2)  ) \psi(\text{tr}(2T\xi J_2 {}^t y J_2 ))\Phi(\xi+x),
\label{Preliminaries-eq-Weil-formula1}
\end{equation}
\begin{equation}
\omega_\psi          \left(1,  \left(\begin{smallmatrix}
a & \\
& a^*
\end{smallmatrix} \right) \right)  \Phi(\xi)=   \chi_T(\det(a)) |\det a| \Phi(\xi a), 
\label{Preliminaries-eq-Weil-formula2}
\end{equation}
\begin{equation}
\omega_\psi \left(       1,  \left(\begin{smallmatrix}
I_2 & w\\
& I_2
\end{smallmatrix}\right)  \right)   \Phi(\xi)=   \psi (   \text{tr}( T   {}^t \xi w  \xi)     )\Phi(\xi)  .
\end{equation}
Here, $\xi\in \text{Mat}_2(\mathbb{A})$, $\Phi\in \mathcal{S}(\text{Mat}_2(\mathbb{A}))$, $v(x, y, z)\in N_{2,8}(\mathbb{A})$, $\left(\begin{smallmatrix}
a & \\
& a^*
\end{smallmatrix} \right)\in M_4(\mathbb{A})$, $\left(\begin{smallmatrix}
I_2 & w\\
& I_2
\end{smallmatrix}\right)\in N_4(\mathbb{A})$.

For $\Phi\in \mathcal{S}(\text{Mat}_{2}(\mathbb{A}))$, we form the theta series 
\begin{equation}
\label{Preliminaries-eq-theta-series-Sp8} 
\theta_{\psi}^{\Phi}(\alpha_T(v) (m,h))=\theta_{\psi, 8}^{\Phi}(\alpha_T(v) (m,h))=\sum_{\xi\in \text{Mat}_{2}(F)}\omega_\psi(\alpha_T(v) (m,h))\Phi(\xi), 
\end{equation}
where $v\in N_{2,8}(\mathbb{A}), m\in \rm SO_{T_0}(\mathbb{A}), h \in \rm Sp_4({\mathbb A})$.
It is known that the above series converges absolutely (see \cite[Proposition 5.3.1]{KudlaRallis1994}), and it is of moderate growth in each variable (see \cite[Lemma 2.1]{HowePiatetski-Shapiro1983}).

We also need another theta series. Consider the unipotent radical, $N_{2^2, 16}$, which consists of all matrices of the form
\begin{equation}
\label{Preliminaries-eq-N_2^2,16} 
\left(\begin{smallmatrix}
I_2 & a_1 & a_2 & a_3& a_4\\
    & I_2& y &Z&a_3^\prime\\
    & & I_8 &y^\prime&a_2^\prime\\
    &&&I_2 & a_1^\prime\\
    &&&&I_2
\end{smallmatrix}\right)\in \rm Sp_{16}.
\end{equation}
Then $N_{2^2, 16}$ has a structure of a generalized Heisenberg group $\mathcal{H}_{17}$ in $17$ variables, through the map
\begin{equation*}
    \alpha_T^0(u)=(y, \text{tr}(TZ))\in \mathcal{H}_{17},
\end{equation*}
where $u\in N_{2^2, 16}$ is in the form \eqref{Preliminaries-eq-N_2^2,16}. We consider the dual pair $(\rm SO_{T_0}, \rm Sp_8)$ inside $\rm Sp_{16}$. The adelic group $\rm SO_{T_0}({\mathbb A})\times \rm Sp_{8}({\mathbb A})$ splits in $\widetilde{\rm Sp}_{16}({\mathbb A})$.
We may realize the Weil representation $\omega_{\psi, 16}$ of $\widetilde{\rm Sp}_{16}({\mathbb A})$, corresponding to the character $\psi$, in $\mathcal{S}(\text{Mat}_{2\times 4}({\mathbb A}))$, and we consider the restriction of the Weil representation to the group $\rm SO_{T_0}({\mathbb A})\times \rm Sp_{8}({\mathbb A})$. Given $\phi\in \mathcal{S}(\text{Mat}_{2\times 4}({\mathbb A}))$, we form the corresponding theta series $\theta_{\psi, 16}^\phi$, similar to \eqref{Preliminaries-eq-theta-series-Sp8}. 




\subsection{Generalized Speh representations}


In this subsection, we describe the generalized Speh representations, defined by Jacquet \cite{Jacquet1984}.


Let $\tau$ be an irreducible unitary cuspidal automorphic represntation of $\text{GL}_2(\mathbb{A})$.  Let $c$ be a positive integer. We consider the unipotent subgroup $U_{(c^2)}$ of $\text{GL}_{2c}$ of the type $(c, c)$, consisting of matrices of the form
\begin{equation*}
    u=\left(\begin{smallmatrix}
    I_c & u_{1,2}\\ & I_c\end{smallmatrix}\right), \, u_{1,2}\in \text{Mat}_c.
\end{equation*}
We extend the character $\psi$ of $F\backslash \mathbb{A}$ to a character of $U_{(c^2)}(F)\backslash U_{(c^2)}(\mathbb{A})$ by
\begin{equation}
    \psi(u)=\psi(\text{tr}(u_{1,2})).
    \label{Preliminaries-eq-additive-character}
\end{equation}
For an automorphic function $\varphi$ on $\text{GL}_{2c}(F)\backslash \text{GL}_{2c}(\mathbb{A})$, we consider the following Fourier coefficient
\begin{equation}
    \Lambda(\varphi)=\int\limits_{U_{(c^2)}(F)\backslash U_{(c^2)}(\mathbb{A})}\varphi(u)\psi^{-1}(u)du.
    \label{Preliminaries-eq-Whittaker-Speh-Shalika-coefficient}
\end{equation}
This is called a Whittaker-Speh-Shalika coefficient in \cite{CaiFriedbergGinzburgKaplan2019}, generalizing the notion of Whittaker-Fourier coefficient when $c=1$.


For   $c>1$, we let $P_{(2^c)}=M_{(2^c)}\ltimes U_{(2^c)}$ be the standard parabolic subgroup of $\text{GL}_{2c}$ of the type $(2,  \cdots, 2)$ with the Levi part $M_{(2^c)}$ isomorphic to $\text{GL}_2\times \cdots \times \text{GL}_2$ ($c$ times).
Let $\underline{s}=(s_1, \cdots, s_c)\in {\mathbb C}^c$, and let $E(g;\xi, \underline{s})$ be the Eisenstein series associated with the induced representation 
\begin{equation*}
    \text{Ind}_{P_{(2^c)}(\mathbb{A})}^{\text{GL}_{2c}(\mathbb{A})}(|\det|^{s_1}\tau\otimes  \cdots \otimes |\det|^{s_c}\tau), 
\end{equation*}
where $\xi$ is a standard section. Let $\underline{s}_0\in \mathbb{C}^c$ be the tuple \begin{equation*}
    \underline{s}_0=\left(\frac{c-1}{2}, \frac{c-3}{2}, \cdots, \frac{1-c}{2}\right).
\end{equation*} 
Then the series $E(g;\xi, \underline{s})$ has a simple multi-residue at $\underline{s}_0$, 
\begin{equation*}
    E_{\underline{s}_0}(g;\xi)=\lim_{\underline{s}\to \underline{s}_0} \prod_{i=1}^{c-1} (s_{i}-s_{i+1}-1)M(w_0, \underline{s})\xi(g;\underline{s}),
\end{equation*}
where $M(w_0, \underline{s})$ is the intertwining operator defined by (the meromorphic continuation of)
\begin{equation*}
    M(w_0, \underline{s})\xi(g;\underline{s})=\int\limits_{U_{(2^c)}(\mathbb{A})} \xi(w_0 ug, \underline{s})du, \, w_0=\left( \begin{smallmatrix} & & & I_2 \\ &  &I_2& \\ &\reflectbox{$\ddots$} & &\\ I_2&&& \\ &&&\end{smallmatrix}\right).
\end{equation*}
The residue function $E_{\underline{s}_0}(g;\xi)$ is square integrable, and hence belongs to the discrete spectrum of the space $L^2(\text{GL}_{2c}(F)\backslash \text{GL}_{2c}(\mathbb{A}), \omega_\tau^c)$ of all square integrable automorphic forms, where $\omega_\tau$ is the central character of $\tau$. Let $\Delta(\tau, c)$ be the automorphic representation of $\text{GL}_{2c}(\mathbb{A})$ generated by all the residue functions $E_{\underline{s}_0}(g;\xi)$. It is known that  $\Delta(\tau, c)$ is irreducible \cite{MoeglinWaldspurger1989}. 


The representation $\Delta(\tau, c)$ is one of the main new ideas in the twisted doubling constructions in \cite{CaiFriedbergGinzburgKaplan2019}. The following property of $\Delta(\tau, c)$ is crucial for their constructions.

\begin{theorem}(Cai-Friedberg-Ginzburg-Kaplan \cite[Theorem 13]{CaiFriedbergGinzburgKaplan2019}, and Cai-Ginzburg-Kaplan \cite[Theorem 5]{CaiFriedbergKaplan2020}).
Let $\tau$ be an irreducible unitary cuspidal automorphic representation of $\text{GL}_2(\mathbb{A})$. Then the following holds. 
\begin{enumerate}
    \item The Fourier coefficient $\Lambda(\varphi)$ does not vanish identically on the space of $\Delta(\tau, c)$, and moreover, for all unipotent orbits greater than or non-comparable with $(2^c)$, all corresponding Fourier coefficients are zero for all choices of data. 
    
    \item Let $\Delta(\tau_\nu, c)$ denote the irreducible constituent of $\Delta(\tau, c)$ at a place $\nu$. Then for all unipotent orbits greater than or non-comparable with $(2^c)$, the corresponding twisted Jacquet module of $\Delta(\tau_\nu, c)$ vanishes (i.e., the local analogue of (1) holds). Moreover, the space $\text{Hom}_{U_{(c^2)}(F_\nu)}(\Delta(\tau_\nu, c), \psi)$ (continuous morphisms over archimedean fields) is one-dimensional, where $\psi$ is given by \eqref{Preliminaries-eq-additive-character}.
\end{enumerate}
\label{theorem-CFGK-Uniqueness}
\end{theorem}


Let $\mathcal{W}(\tau, c, \psi)$ be the space of functions on $\text{GL}_{2c}(\mathbb{A})$
\begin{equation*}
    g\mapsto \Lambda( \Delta(\tau, c)(g) \varphi),
\end{equation*}
as $\varphi$ varies in the space of $\Delta(\tau, c)$. This is the unique model that is afforded by $\Delta(\tau, c)$. 

We write $\Delta(\tau, c) \cong \otimes^\prime_\nu \Delta(\tau_\nu, c)$ as a restricted tensor product where $\Delta(\tau_\nu, c)$ is an irreducible admissible representation of $\text{GL}_{2c}(F_\nu)$ for each place $\nu$ of $F$. This is a restricted tensor product with respect to a system $\{\xi_\nu^0\}_{\nu\not\in S}$ of spherical vectors, where $S$ is a finite set of places. For all $\nu\not\in S$, the representation $\Delta(\tau_\nu, c)$ is unramified and the vector $\xi_\nu^0$ is a spherical vector in the space of $\Delta(\tau_\nu, c)$. By Theorem~\ref{theorem-CFGK-Uniqueness}, the space $\text{Hom}_{U_{(c^2)}(F_\nu)}(\Delta(\tau_\nu, c), \psi)$ is one dimensional at all places. We fix a non-zero functional $\Lambda_\nu\in \text{Hom}_{U_{(c^2)}(F_\nu)}(\Delta(\tau_\nu, c), \psi)$ at each place. 
The local unique model with respect to the character $\psi$, denoted as $\mathcal{W}(\tau_\nu, c, \psi)$, is the space of functions on $\text{GL}_{2c}(F_\nu)$ given by
\begin{equation}
\label{Preliminaries-eq-local-generalized-Whittaker-function}
    g_\nu \mapsto \Lambda_\nu( \Delta(\tau_\nu, c)(g_\nu) \xi_\nu),
\end{equation}
as $\xi_\nu$ varies in the space of $\Delta(\tau_\nu, c)$. We have the following decomposition result. 

\begin{proposition}
Let $\varphi$ be a decomposable vector in the space of $\Delta(\tau, c)$, corresponding to the element $\otimes_\nu \xi_\nu\in \otimes_\nu^\prime \Delta(\tau_\nu, c)$. For each place $\nu$ of $F$, there exists a functional $\Lambda_\nu\in \text{Hom}_{U_{(c^2)}(F_\nu)}(\Delta(\tau_\nu, c), \psi)$ such that $\Lambda_\nu(\xi_\nu^0)=1$ for all $\nu\not\in S$, and for all $g\in \text{GL}_{2c}(\mathbb{A})$, we have
\begin{equation*}
    \Lambda( \Delta(\tau, c)(g) \varphi)=\prod_{\nu} \Lambda_\nu( \Delta(\tau_\nu, c)(g_\nu)\xi_\nu).
\end{equation*}
\label{proposition-CFGK-factorization}
\end{proposition}
\begin{proof}
The proof is similar to \cite[Theorem 3.5.2]{Bump1997}, \cite[\S 4]{Shalika1974}, and \cite[Lemma 2.15]{Cai2021}.
\end{proof}

\begin{remark}
We remark that this decomposition is stated as an ``almost Euler product'' in \cite[Claim 4]{CaiFriedbergGinzburgKaplan2019} due to the lack of the local uniqueness of the functional at finite ramified places and archimedean places at the time. This gap was later filled in in \cite[Theorem 5]{CaiFriedbergKaplan2020}, which allows one to treat the complete $L$-function using the twisted doubling method. 
\end{remark}


We now describe the local unramified components of $\Delta(\tau, c)$. We write $\tau\cong \otimes_\nu^\prime \tau_\nu$, where $\tau_\nu$ is an irreducible unitary generic representation of $\text{GL}_2(F_\nu)$ at all places $\nu$, and at almost all places $\tau_\nu$ is unramified and can be written in the form
\begin{equation}
    \text{Ind}_{B_{\text{GL}_2}(F_\nu)}^{\text{GL}_2(F_\nu)}(\chi_{1,\nu}\otimes \chi_{2,\nu}),
    \label{Preliminaries-eq-tau-nu}
\end{equation}
where $\chi_{1,\nu}, \chi_{2,\nu}$ are unramified quisi-characters of $F_\nu^\times$. Here $B_{\rm GL_2}$ is the upper triangular Borel subgroup of $\rm GL_2$.

\begin{proposition}(Cai-Friedberg-Ginzburg-Kaplan, \cite[Claim 9]{CaiFriedbergGinzburgKaplan2019}).
Let $\nu$ be a finite place such that both $\tau_\nu$ and $\Delta(\tau_\nu, c)$ are unramified, and that $\tau_\nu$ is given by \eqref{Preliminaries-eq-tau-nu}. Then 
\begin{equation}
    \Delta(\tau_\nu, c)=\text{Ind}_{P_{(c^2)}(F_\nu)}^{\text{GL}_{2c}(F_\nu)}(\chi_{1,\nu}(\det)\otimes \chi_{2,\nu}(\det)).
\end{equation}
\label{proposition-CFGK-local-Speh}
\end{proposition}

The above (global and local) functionals satisfy certain equivariance property. Let 
\begin{equation*}
    \text{GL}_c^\Delta=\left\{g^\Delta= \text{diag}(g, g):g\in \text{GL}_c\right\}
\end{equation*} be the diagonal embedding of $\text{GL}_c$ in $\text{GL}_{2c}$.

\begin{proposition}(Cai-Friedberg-Ginzburg-Kaplan \cite[Claim 8 and Proposition 24]{CaiFriedbergGinzburgKaplan2019}, and Cai-Ginzburg-Kaplan \cite[Lemma 14]{CaiFriedbergKaplan2020}).
For any $g\in \text{SL}_{c}(\mathbb{A})$ and $\varphi$ in the space of $\Delta(\tau, c)$, we have
\begin{equation*}
    \Lambda(\Delta(\tau, c)(g^\Delta)\varphi)= \Lambda(\varphi).
\end{equation*}
For any $g_\nu\in \text{GL}_c(F_\nu)$ and any $\xi_\nu$ in the space of $\Delta(\tau_\nu, c)$, we have
\begin{equation*}
    \Lambda_\nu(\Delta(\tau_\nu, c)(g_\nu^\Delta)\xi_\nu)=\tau_\nu(\det(g_\nu)I_2) \Lambda_\nu(\xi_\nu).
\end{equation*}
\label{proposition-CFGK-equivariance-under-diagonal-embedding}
\end{proposition}



\subsection{An identity relating Siegel Eisenstein series}


Let $\tau$ be an irreducible unitary cuspidal automorphic representation of $\text{GL}_2(\mathbb{A})$, and let
$\Delta(\tau, 4)$  be the generalized Speh representation of $\rm GL_8({\mathbb A})$ associated to $\tau$. Let $f_{\Delta(\tau, 4), s}$ be a smooth holomorphic section of $\text{Ind}_{P_{16}(\mathbb{A})}^{\text{Sp}_{16}(\mathbb{A})}(\Delta(\tau, 4)|\det|^s)$, and let $E(\cdot, f_{\Delta(\tau, 4), s})$ be the corresponding Eisenstein series on $\rm Sp_{16}({\mathbb A})$, defined by
\begin{equation*}
    E(g, f_{\Delta(\tau, 4), s})=\sum_{\delta\in P_{16}(F)\backslash \text{Sp}_{16}(F)}f_{\Delta(\tau, 4), s}(\delta g).
\end{equation*}
It's known (see \cite{langlands1976}) that the above series converges absolutely for $\text{Re}(s)\gg 0$ and admits a meromorphic continuation to the entire complex plane. 

We multiply the above Eisenstein series by its normalizing factor outside $S$, to get the normalized Eisenstein series. The normalizing factor outside $S$ is (see \cite[(1.48)]{GinzburgSoudry2021})
\begin{equation*}
\begin{split}
    d_{\tau}^{\rm Sp_{16}, S}(s)=  \prod_{\nu\not\in S} d_{\tau_\nu}^{\rm Sp_{16}}(s),
\end{split}
\end{equation*}
where
\begin{equation*}
    d_{\tau_\nu}^{\rm Sp_{16}}(s)=   L( s+\frac{5}{2}, \tau_\nu)     \prod_{1\le j \le 2} L (2s+2j, \tau_\nu, \text{Ext}^2)L (2s+2j-1, \tau_\nu, \text{Sym}^2).
\end{equation*}
We set
\begin{equation*}
    E^{*, S}(g, f_{\Delta(\tau, 4), s})=d_{\tau}^{\rm Sp_{16}, S}(s)E(g, f_{\Delta(\tau, 4), s}).
\end{equation*}

Let $\psi_{N_{2^2, 16}}$ be the character of $N_{2^2, 16}$ defined by
\begin{equation*}
    \psi_{N_{2^2, 16}}(u)=\psi(\text{tr}(a_1)),
\end{equation*}
where $u\in N_{2^2, 16}$ is of the form \eqref{Preliminaries-eq-N_2^2,16}.
We consider the following Fourier-Jacobi coefficient of $E(\cdot, f_{\Delta(\tau, 4), s})$, 
\begin{equation}
\label{Preliminaries-eq-Fourier-Jacobi-Sp16}
\int\limits_{N_{2^2, 16}(F)\backslash N_{2^2, 16}({\mathbb A})} \theta_{\psi, 16}^\phi \left( \alpha_T^0(u) (h_0, g_0)\right) E(u {}^d(h_0, g_0), f_{\Delta(\tau, 4), s}) \psi^{-1}_{N_{2^2, 16}}(u)du.
\end{equation}
Here, ${}^d (h_0, g_0)=\text{diag}(h_0, h_0, g_0, h_0^*, h_0^*)$, $h_0\in \rm SO_{T_0}({\mathbb A})$, $g_0\in \rm Sp_8({\mathbb A})$, $\phi\in \mathcal{S}(\text{Mat}_{2\times 4}({\mathbb A}))$.


Recall that $\chi_T$ is the  quadratic character on $F^\times \backslash \mathbb{A}^\times$ given by $\chi_T(x)=(x, \det(T))$. Let $\Delta(\tau\otimes \chi_T, 2)$ be the generalized Speh representation of $\text{GL}_4(\mathbb{A})$ associated to $\tau\otimes\chi_T$.


We have the following identity relating Eisenstein series. 

\begin{lemma}(Ginzburg-Soudry, \cite[Lemma 2]{GinzburgSoudry2020})
\label{Preliminaries-lemma-GinzburgSoudry-Eisenstein-series-identity}
Let $h_0=1$. Then, as a function of $g_0\in \rm Sp_8({\mathbb A})$, the integral \eqref{Preliminaries-eq-Fourier-Jacobi-Sp16} is an Eisenstein series on $\rm Sp_8({\mathbb A})$. More precisely, there is a Schwartz function $\phi$ and a smooth, meromorphic section $f_{\Delta(\tau\otimes\chi_T, 2), s}\in \text{Ind}_{P_8(\mathbb{A})}^{\text{Sp}_8(\mathbb{A})}(\Delta(\tau\otimes\chi_T, 2)|\det|^s)$, such that the integral \eqref{Preliminaries-eq-Fourier-Jacobi-Sp16} is equal to the Eisenstein series $E(g_0, f_{\Delta(\tau\otimes\chi_T, 2), s})$. The corresponding section $f_{\Delta(\tau\otimes\chi_T, 2), s}$ is given by explicit unipotent adelic integration of $f_{\Delta(\tau, 4), s}$.
\end{lemma}

\begin{remark}
\label{Preliminaries-remark-GinzburgSoudry-Eisenstein-series-identity}
The section $f_{\Delta(\tau\otimes\chi_T, 2), s}$ in Lemma~\ref{Preliminaries-lemma-GinzburgSoudry-Eisenstein-series-identity} is given by the following integral
\begin{equation*}
    \int\limits_{N_{4,16}^0(\mathbb{A})} \omega_{\psi, 16}(\alpha_T^0(u_0)(1, g_0)) 
    f_{\Delta(\tau, 4), s}^{\psi^\prime}\left( w_0 u_0 {}^d(1, g_0)\right)\psi_{N_{4,16}^0, T}^{-1}(u_0)du_0.
\end{equation*}
We explain the notation. The group $N_{4,16}^0$  consists of elements of the form 
\begin{equation}
\label{Preliminaries-eq-N_4,16^0}
\begin{split}
u_0=    \left( \begin{smallmatrix} I_4 & x & &z\\ & I_4& &\\&&I_4 & x^* \\&&&I_4\end{smallmatrix}\right) \in \text{Sp}_{16}.
\end{split}
\end{equation}
Write the matrix $z$ in \eqref{Preliminaries-eq-N_4,16^0} as $\left(\begin{smallmatrix} * & * \\ z_1 &*\end{smallmatrix}\right)$ with $z_1\in \text{Mat}_2^0$, then 
the character $\psi_{N_{4,16}^0, T}$ is given by 
\begin{equation*}
    \psi_{N_{4,16}^0, T}(u_0)=\psi(\text{tr}(Tz_1)).
\end{equation*}
The matrix $w_0$ is given by 
\begin{equation*}
    w_0=\left( \begin{smallmatrix} &I_4 &&\\ &&&I_4\\ -I_4&&&\\ &&I_4&\end{smallmatrix}\right).
\end{equation*}
Finally, $f_{\Delta(\tau, 4), s}^{\psi^\prime}$ is given by
\begin{equation*}
    f_{\Delta(\tau, 4), s}^{\psi^\prime}(g)= \int\limits f_{\Delta(\tau, 4), s} \left( \left(\begin{smallmatrix} 
    I_4 &x_3 &x_1 & && \\  &I_2 & x_2&&& \\ &&I_2 &&& \\ &&&I_2 & x_2^\prime &* \\ &&&&I_2&x_3^\prime \\ &&&&&I_4
    \end{smallmatrix}\right)  g\right)  \psi^{-1}(\text{tr}(x_2))dx_i,
\end{equation*}
where the variables $x_1, x_3$ are both integrated over $\text{Mat}_{2\times 4}(F)\backslash \text{Mat}_{2\times 4}(\mathbb{A})$, and the variable $x_2$ is integrated over $\text{Mat}_{2}(F)\backslash \text{Mat}_{2}(\mathbb{A})$.
Moreover, it follows from  \cite[Theorem 7.4 and Theorem 8.3]{GinzburgSoudry2021}
that the identity in Lemma~\ref{Preliminaries-lemma-GinzburgSoudry-Eisenstein-series-identity} 
is compatible with normalization
and
holds for normalized Eisenstein series as well. Namely, there is a Schwartz function $\phi$ and a smooth, meromorphic section $f_{\Delta(\tau\otimes\chi_T, 2), s}\in \text{Ind}_{P_8(\mathbb{A})}^{\text{Sp}_8(\mathbb{A})}(\Delta(\tau\otimes\chi_T, 2)|\det|^s)$, such that, the integral \eqref{Preliminaries-eq-Fourier-Jacobi-Sp16}, with $ E(\cdot, f_{\Delta(\tau, 4), s})$ replaced by $E^{*, S}(\cdot,f_{\Delta(\tau, 4), s})$,  is equal to the normalized Eisenstein series $E^{*, S}(g_0, f_{\Delta(\tau\otimes\chi_T, 2), s})$.
\end{remark}

\subsection{The $L$-function for $\text{Sp}_4\times \text{GL}_2$}

In this subsection we describe the $L$-functions we study in this paper. Let $F_\nu$ be a non-archimedean local field with $q_\nu$ the cardinality of the residue field. Let $\pi_\nu$ be an irreducible unramified representation of $\rm Sp_4(F_\nu)$ and let $\tau_\nu$ be an irreducible unramified representation of $\rm GL_2(F_\nu)$. Recall that the $L$-group of $\rm Sp_4$ is ${}^L \rm Sp_4=\rm SO_5(\mathbb{C})$ and the $L$-group of $\rm GL_2$ is ${}^L \rm GL_2=\rm GL_2(\mathbb{C})$. Let $t_{\pi_\nu}$ be the semisimple conjugacy class of $\rm SO_5({\mathbb C})$ attached to $\pi_\nu$, given by
\begin{equation*}
    t_{\pi_\nu}=\text{diag}(\alpha_{1,\nu}, \alpha_{2, \nu}, 1, \alpha_{2, \nu}^{-1}, \alpha_{1,\nu}^{-1}).
\end{equation*}
Similarly, let $t_{\tau_\nu}$ be the semisimple conjugacy class of $\rm GL_2({\mathbb C})$ attached to $\tau_\nu$, given by
\begin{equation*}
    t_{\tau_\nu}=\text{diag}(\beta_{1, \nu}, \beta_{2, \nu}).
\end{equation*}
Then the local tensor product $L$-function for $\pi_\nu$ and $\tau_\nu$ is defined by
$$
L(s, \pi_\nu \times \tau_\nu)=\det(1 - t_{\pi_\nu} \otimes t_{\tau_\nu} q_\nu^{-s})^{-1}.
$$
The local standard $L$-function for $\tau_\nu$ is
\begin{equation*}
L(s, \tau_\nu)=(1-\beta_{1, \nu} q_\nu^{-s} )^{-1}   (1-\beta_{2, \nu} q_\nu^{-s} )^{-1}.
\end{equation*}
The local symmetric square $L$-function for $\tau_\nu$ is 
\begin{equation*}
L(s, \tau_\nu, \text{Sym}^2)=(1-\beta_{1,\nu}^2 q_\nu^{-s})^{-1} (1-\beta_{1,\nu} \beta_{2, \nu} q_\nu^{-s})^{-1} (1-\beta_{2, \nu}^2 q_\nu^{-s})^{-1},
\end{equation*}
and the local exterior square $L$-function for $\tau_\nu$ is 
\begin{equation*}
L(s, \tau_\nu, \text{Ext}^2)= (1-\beta_{1,\nu} \beta_{2, \nu} q_\nu^{-s})^{-1} .
\end{equation*}
It follows that for a quadratic character $\chi$ on $F_\nu^\times$, we have the identities
\begin{equation*}
    L(s, \tau_\nu\otimes\chi )=L(s, \tau_\nu), \, L(s, \tau_\nu\otimes\chi, \text{Sym}^2)=L(s, \tau_\nu, \text{Sym}^2), \,  L(s, \tau_\nu\otimes\chi, \text{Ext}^2)=L(s, \tau_\nu, \text{Ext}^2).
\end{equation*}

For a pair of irreducible cuspidal automorphic representations $\pi\cong \otimes^\prime_\nu \pi_\nu$ and $\tau\cong \otimes_\nu^\prime \tau_\nu$, of $\rm Sp_4(\mathbb{A})$ and $\rm GL_2(\mathbb{A})$ respectively, where the local represetations $\pi_\nu$ and $\tau_\nu$ are unramified outside a finite set $S$ of places, the tensor product partial $L$-function   is defined by
$$
L^S(s, \pi\times \tau)=\prod_{\nu\not\in S} L(s, \pi_\nu\times \tau_\nu).
$$
Similarly, the partial standard $L$-function, the partial symmetric square $L$-function, and the partial exterior square $L$-function for $\tau$ are given by
\begin{equation*}
\begin{split}
L^S(s, \tau) &= \prod_{\nu\not\in S} L(s, \tau_\nu),\\
L^S(s, \tau, \text{Sym}^2) &=\prod_{\nu\not\in S} L(s, \tau_\nu, \text{Sym}^2),\\
L^S(s, \tau, \text{Ext}^2) & =\prod_{\nu\not\in S} L(s, \tau_\nu, \text{Ext}^2).
\end{split}
\end{equation*}



\section{Main theorems}
\label{section-main-theorems}
In this section we state the main theorems of the paper. 


\subsection{The global integral}
\label{subsection-the-global-integral}
Let $F$ be a number field and $\mathbb{A}=\mathbb{A}_F$ the ring of adeles of $F$. We fix a nontrivial additive character $\psi$ on $F\backslash \mathbb{A}$. Let $(\pi, V_\pi)$ be an irreducible cuspidal automorphic representation of $\text{Sp}_4(\mathbb{A})$ and let $(\tau, V_\tau)$  be an irreducible unitary cuspidal automorphic representation of $\text{GL}_2(\mathbb{A})$.

For a cusp form $\varphi\in V_\pi$, we denote the Fourier coefficient of $\varphi$ along  the unipotent radical of the Siegel parabolic subgroup by
\begin{equation*}
\varphi_{\psi, T}(h):= \int\limits_{\text{Mat}_2^0(F)\backslash \text{Mat}_2^0(\mathbb{A})} \varphi \left(  \left(\begin{smallmatrix}
I_2 & z\\
& I_2
\end{smallmatrix}\right) h \right) \psi(\text{tr}(Tz))dz,
\end{equation*}
where $T=J_2 T_0$, and $T_0\in \text{GL}_2(F)$ is a definite symmetric matrix. 
We remark that it follows from a theorem of Li \cite{LiJian-Shu1992} that every non-zero cusp form affords a non-zero Fourier coefficient $\varphi_{\psi, T}$ where $T$ has maximal rank.
Let $T$ be such that $\varphi_{\psi, T}\not= 0$. 
The space of such Fourier coefficients is denoted by $\mathcal{W}(\pi, \psi, T)$. 
To simplify our calculation we may assume that $T_0=\text{diag}(t_1, t_2)$ is diagonal. 




We consider the integral
\begin{equation}
\begin{split}
\mathcal{Z}( \varphi,   \theta_{\psi}^\Phi   , &E^{*, S}(\cdot, f_{\Delta(\tau\otimes \chi_T, 2), s}))\\
&=\int\limits_{\text{Sp}_4(F)\backslash \text{Sp}_4(\mathbb{A})} \int\limits_{N_{2, 8}(F)\backslash N_{2, 8}(\mathbb{A})}   \varphi(h)     \theta_{\psi}^\Phi (\alpha_T(v)(1, h))E^{*, S}(v(1, h), f_{\Delta(\tau\otimes \chi_T, 2), s})dvdh.
\label{eq-global-integral-0}
\end{split}
\end{equation}
Here, $\varphi\in V_\pi$ is a cusp form in the space of $\pi$.  $\theta_{\psi}^\Phi $ is the theta series on $\mathcal{H}_9(\mathbb{A}) \rtimes \text{Sp}_8(\mathbb{A})$ associated with a Schwartz function $\Phi\in \mathcal{S}(\text{Mat}_2(\mathbb{A}))$.  
$E^{*, S}(\cdot, f_{\Delta(\tau\otimes \chi_T, 2), s})$ is the normalized Eisenstein series obtained through Lemma~\ref{Preliminaries-lemma-GinzburgSoudry-Eisenstein-series-identity}, corresponding to a smooth, holomorphic, factorizable section $f_{\Delta(\tau, 4), s}$ of 
$\text{Ind}_{P_{16}(\mathbb{A})}^{\text{Sp}_{16}(\mathbb{A})}(\Delta(\tau, 4)|\det|^s)$.


 


Let
\begin{equation*}
\begin{split}
\gamma = \left(\begin{smallmatrix}
&I_2 & &\\&&&-I_2\\I_2&&&\\&&I_2&
\end{smallmatrix}\right),
\end{split}
\end{equation*}
and let
\begin{equation*}
    N_{2,8}^0=\left\{ v(x, 0, z)=\left(\begin{smallmatrix} I_2 & x & 0& z\\ &I_2 &0 &0 \\ &&I_2 & x^*\\ &&&I_2\end{smallmatrix}\right) \in N_{2,8} \right\}.
\end{equation*}

In the following theorem we state the basic properties of the global integral. 

\begin{theorem}
The integral $\mathcal{Z}( \varphi,   \theta_{\psi}^\Phi   , E^{*, S}(\cdot, f_{\Delta(\tau\otimes \chi_T, 2), s}))$ converges absolutely when $\text{Re}(s)\gg 0$ and can be meromorphically continued to all $s\in \mathbb{C}$.
When $\text{Re}(s)\gg 0$, the integral $\mathcal{Z}( \varphi,   \theta_{\psi}^\Phi   , E^{*, S}(\cdot, f_{\Delta(\tau\otimes \chi_T, 2), s}))$ unfolds to
\begin{equation}
\begin{split}
 \int\limits_{ N_4(\mathbb{A})  \backslash  \text{Sp}_4(\mathbb{A})}     \int\limits_{N_{2,8}^0(\mathbb{A})}      \varphi_{\psi, T}(h) \omega_\psi\left( \alpha_T(v)(1,h)\right) )\Phi(I_2 )     f^*_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}(\gamma v(1, h) )      dv dh.
\end{split}
\label{eq-thm-global-integral-unfolding-final}
\end{equation}
Here, 
\begin{equation*}
    f^*_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}(g)  = d_{\tau\otimes\chi_T}^{\rm Sp_8, S}(s) f_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}(g ) , 
\end{equation*}
where $f_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}$ is the composition of the section and the unique functional attached to $\Delta(\tau\otimes\chi_T, 2)$; for any $g\in \text{Sp}_8(\mathbb{A})$, 
\begin{equation*}
\begin{split}
f_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}(g)=
\int\limits_{U_{(2^2)}(F)\backslash U_{(2^2)}(\mathbb{A}) } f_{\Delta(\tau\otimes \chi_T, 2), s} \left(     \left(\begin{smallmatrix} u & \\ & u^*\end{smallmatrix}\right) g \right) \psi_{2T}^{-1}(u) du,
\end{split}
\end{equation*}
where $U_{(2^2)}=\left\{ \left(\begin{smallmatrix} I_2 & x \\ & I_2\end{smallmatrix}\right)\in \text{GL}_4  \right\}$, and $\psi_{2T}\left(\begin{smallmatrix} I_2 & x \\ & I_2\end{smallmatrix}\right)=\psi\left( \text{tr}(2Tx)\right)$.
\label{theorem-global-unfolding}
\end{theorem}

The first statement of Theorem~\ref{theorem-global-unfolding} is standard and we omit it; see for example \cite[Theorem A(a)]{Ginzburg1990}.  
The proof of the second statement occupies Section~\ref{section-Unfolding}. We remark that,
if $f_{\Delta(\tau\otimes \chi_T, 2), s}$ is decomposable, then 
by Proposition~\ref{proposition-CFGK-factorization}, we can write
\begin{equation*}
  f_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}(g) = \prod_{\nu} f_{\mathcal{W}(\tau_\nu\otimes \chi_{T}, 2, \psi_{2T}), s}(g_\nu), 
\end{equation*}
where $f_{\mathcal{W}(\tau_\nu\otimes \chi_{T}, 2, \psi_{2T}), s}\in \text{Ind}_{P_8(F_\nu)}^{\rm Sp_8(F_\nu)}(\mathcal{W}(\tau_\nu\otimes\chi_{T}, 2, \psi_{2T})|\det|^s)$. 
We caution the reader that we have used $\psi_{2T}$ (respectively, $\chi_T$) for both the global additive (respectively, multiplicative) character and its local component. We hope that the meanings of these characters are evident from the context. 
 




\subsection{Non-unique model and the New Way method}
\label{subsection-non-unique-models-and-the-new-way-method}
The Fourier coefficient $\varphi_{\psi, T}$ does not factor into an Euler product, due to the lack of uniqueness of corresponding linear functionals on the space of representations. However, there is still a technique, developed by  Piatetski-Shapiro and Rallis
\cite{Piatetski-ShapiroRallis1988}, to handle this situation. 


Let $S$ be the following finite set of places: $\nu\not\in S$ if and only if the following conditions are satisfied:
\begin{enumerate}[(i)]
\item $\nu \not|  \, 2, 3, \infty$,
\item ${\pi_\nu} $ and $\tau_\nu$ are unramified,
\item the local component of $\psi$ at $\nu$ is unramified,
\item the diagonal coordinates of $T_0$ are in $\mathcal{O}_{F_\nu}^\times$, where $\mathcal{O}_{F_\nu}^\times$ is the group of unites of the ring of integers of $F_\nu$.
\end{enumerate}
\iffalse
\begin{enumerate}[label=(\roman*)]
\item $\nu \not|  \, 2, 3, \infty$,
\item ${\pi_\nu} $ and $\tau_\nu$ are unramified,
\item The diagonal coordinates of $T_0$ are in $\mathcal{O}_{F_\nu}^\times$.
\end{enumerate}
\fi
Note that $S$ depends on $T$.

For any place $\nu\not\in S$, we fix in the space of $\text{Ind}_{P_{16}(F_\nu)}^{\text{Sp}_{16}(F_\nu)}(\mathcal{W}(\tau_\nu, 4, \psi^{-1})|\det|^s)$, the spherical vector $f_{\mathcal{W}(\tau_\nu, 4, \psi^{-1}), s}^0$, which is normalized, such that, for $a\in \rm GL_8(F_\nu)$, we have
\begin{equation*}
    f_{\mathcal{W}(\tau, 4, \psi^{-1}), s}^0(a;I_{16})=W^0_{\Delta(\tau_\nu, 4)}(a),
\end{equation*}
where $W^0_{\Delta(\tau_\nu, 4)}$ is the unique unramified function in the unique model $\mathcal{W}(\tau_\nu, 4, \psi^{-1})$ given by \eqref{Preliminaries-eq-local-generalized-Whittaker-function}, such that its value at $I_8$ is 1. To east notation, we also denote $f_{\mathcal{W}(\tau_\nu, 4, \psi^{-1}), s}^0(g)=f_{\mathcal{W}(\tau_\nu, 4, \psi^{-1}), s}^0(I_8;g)$ for $g\in \text{Sp}_{16}(F_\nu)$.
Thus, let us fix an isomorphism
\begin{equation}
\label{eq-global-tensor-product-decomposition-Delta(tau,4)}
    \Delta(\tau, 4)\cong \otimes_\nu^\prime \Delta(\tau_\nu, 4),
\end{equation}
with respect to a system $\{\xi_\nu^0 \}_{\nu\not\in S}$ of spherical vectors. For $\nu\not\in S$, $\Delta(\tau_\nu, 4)$ is an unramified representation of $\text{GL}_8(F_\nu)$, and the vector $\xi_\nu^0$ is a spherical vector in the space of $\Delta(\tau_\nu, 4)$. We further fix a non-zero functional $\Lambda_\nu\in \text{Hom}_{U_{(4^2)}(F_\nu)}(\Delta(\tau_\nu, 4), \psi^{-1})$ such that $W^0_{\Delta(\tau_\nu, 4)}(I_8)=\Lambda_\nu(\xi_\nu^0)=1$.

Recall that
\begin{equation*}
    d_{\tau_\nu}^{\rm Sp_{16}}(s)=L( s+\frac{5}{2}, \tau_\nu)     \prod_{1\le j \le 2} L(2s+2j, \tau_\nu, \text{Ext}^2)L(2s+2j-1, \tau_\nu, \text{Sym}^2)
\end{equation*}
and
\begin{equation*}
    d_{\tau_\nu\otimes \chi_T}^{\rm Sp_{8}}(s)=L(s+\frac{3}{2}, \tau_\nu\otimes\chi_T)L(2s+2, \tau_\nu\otimes\chi_T, \text{Ext}^2) L(2s+1, \tau_\nu\otimes\chi_T, \text{Sym}^2).
\end{equation*}
For $\nu\not\in S$, let
\begin{equation*}
    f_{\mathcal{W}(\tau_\nu, 4, \psi^{-1}), s}^*(g)= d_{\tau_\nu}^{\rm Sp_{16}}(s) f_{\mathcal{W}(\tau_\nu, 4, \psi^{-1}), s}^0(g).
\end{equation*}

Recall that the normalized Eisenstein section $E^{*, S}(\cdot, f_{\Delta(\tau\otimes \chi_T, 2), s})$ is determined by the normalized Eisenstein series $E^{*, S}(\cdot, f_{\Delta(\tau, 4), s})$, through the integral \eqref{Preliminaries-eq-Fourier-Jacobi-Sp16} (with the Eisenstein series in \eqref{Preliminaries-eq-Fourier-Jacobi-Sp16} replaced by the normalized Eisenstein series). 
For $\nu\not\in S$, we consider the induced representation $\text{Ind}_{P_8(F_\nu)}^{\text{Sp}_8(F_\nu)}(\mathcal{W}( \tau_\nu\otimes \chi_T, 2, \psi_{2T})|\det|^s)$, and let  $f^0_{\mathcal{W}(\tau_\nu\otimes \chi_T, 2, \psi_{2T}), s}$ be an unramified section in the space of $\text{Ind}_{P_8(F_\nu)}^{\text{Sp}_8(F_\nu)}(\mathcal{W}( \tau_\nu\otimes \chi_T, 2, \psi_{2T})|\det|^s)$, 
such
that, when viewed as a complex-valued function, its value at the identity
is equal to 
\begin{equation}
\label{eq-local-unramified-section-at-identity-ratio2}
    \frac{d_{\tau_\nu}^{\rm Sp_{16}}(s)}{d_{\tau_\nu\otimes\chi_T}^{\rm Sp_{8}}(s)}.
\end{equation}
This is a meromorphic function in $s$, and it comes from comparing the normalizing factors of a pair of Eisenstein series (see Remark~\ref{Preliminaries-remark-GinzburgSoudry-Eisenstein-series-identity}).
Denote, for $\nu\not\in S$, \begin{equation*}    f^*_{\mathcal{W}(\tau_\nu\otimes \chi_{T}, 2, \psi_{2T}), s}(g_\nu)= d_{\tau_\nu\otimes\chi_T}^{\rm Sp_8}(s) f^0_{\mathcal{W}(\tau_\nu\otimes \chi_{T}, 2, \psi_{2T}), s}(g_\nu),\end{equation*} and, for $\nu \in S$, \begin{equation*}    f^*_{\mathcal{W}(\tau_\nu\otimes \chi_{T}, 2, \psi_{2T}), s}(g_\nu)=  f_{\mathcal{W}(\tau_\nu\otimes \chi_{T}, 2, \psi_{2T}), s}(g_\nu).\end{equation*}







Now let $F_{\nu}$ be a non-archimedean local field, and let $\mathcal{O}_{F_\nu}$ be its ring of integers. Suppose ${\pi_\nu}$ is an irreducible unramified representation of $\text{Sp}_4({F_\nu})$. Let $T$ be as before, and let $l_{T}:V_{\pi_\nu}\to \mathbb{C}$ be a linear functional on $V_{{\pi_\nu}}$ such that 
\begin{equation}
l_{T}\left( {\pi_\nu} \left(\begin{smallmatrix}
I_2 &z\\
& I_2
\end{smallmatrix}\right) v \right)={\psi}^{-1}(\text{tr}(Tz))l_{T}(v), \  \  \text{ for all } v\in V_{{\pi_\nu}}, z\in \text{Mat}_2^0({F_\nu}).
\label{eq-l_T}
\end{equation}



\begin{theorem}[Unramified computation]
Suppose that ${\pi_\nu}$ is an irreducible unramified representation of $\text{Sp}_4({F_\nu})$, ${\tau_\nu}$ is an irreducible unramified generic representation of  $\text{GL}_2({F_\nu})$, $\Phi^0_\nu=\textbf{1}_{\text{Mat}_2(\mathcal{O}_{F_\nu})}$ is the characteristic function of $\text{Mat}_2(\mathcal{O}_{F_\nu})$, and $f^*_{\mathcal{W}({\tau_\nu} \otimes\chi_{T}, 2, \psi_{2T}), s}$ is the above  unramified  section in $\text{Ind}_{P_8({F_\nu})}^{\text{Sp}_8({F_\nu})}(\mathcal{W}( {\tau_\nu}\otimes \chi_{T}, 2, \psi_{2T})|\det|^s)$.
Let $v_0\in V_{{\pi_\nu}}$ be a non-zero unramified vector in $V_{{\pi_\nu}}$. 
We denote
\begin{equation*}
\begin{split}
    &\mathcal{Z}^*_\nu(l_{T}, s)=\mathcal{Z}^*_\nu(l_{T}, \tau_\nu, s)\\
   = & \int\limits_{N_4({F_\nu})\backslash \text{Sp}_4({F_\nu})}  \int\limits_{N_{2,8}^0({F_\nu})}  l_{T}({\pi_\nu}(h)v_0)    \omega_{{\psi}}\left( \alpha_T(v)(1,h)\right) )\Phi^0_\nu(I_2 )
       f^*_{\mathcal{W}({\tau_\nu} \otimes\chi_{T}, 2, \psi_{2T}), s}( \gamma v (1, h) )    dv     dh .
\end{split}
\end{equation*}
For $\text{Re}(s)\gg 0$ and for any linear functional $l_{T}$ satisfying \eqref{eq-l_T}, we have
\begin{equation}
\begin{split}
 \mathcal{Z}^*_\nu(l_{T}, s)        = L(s+\frac{1}{2},  {\pi_\nu}\times {\tau_\nu}) \cdot l_{T}(v_0)  .
\label{eq-local-unramified-identity}
\end{split}
\end{equation}
\label{theorem-unramified-computation}
\end{theorem}


\begin{remark}
In general, $l_{T}(v_0)$ could be zero. However, if we take certain linear functional $l_{T}:V_{\pi_\nu}\to {\mathbb C}$ that we shall explain in the proof of Theorem~\ref{theorem-global-1} below, then $l_{T}(v_0)\not=0$. We also stress that \eqref{eq-local-unramified-identity} does not depend on the choice of the local linear functional $l_{T}$.
\end{remark}



 
 
Theorem~\ref{theorem-unramified-computation} will be proved in Section~\ref{section-Unramified computation}. A major tool for proving Theorem~\ref{theorem-unramified-computation} is the local unramified integral from \cite[Theorem 29]{CaiFriedbergGinzburgKaplan2019} which represents the local $L$-function $L(s+\frac{1}{2}, {\pi_\nu}\times \tau_\nu)$.





For  a finite set  $\Omega$  of places, we denote
\begin{equation*}
\begin{split}
    &\mathcal{Z}_\Omega(\varphi, \Phi, f^*_{\mathcal{W}(\tau\otimes \chi_{T}, 2, \psi_{2T}), s})\\
   =&
     \int\limits_{ N_4(\mathbb{A}_\Omega)  \backslash  \text{Sp}_4(\mathbb{A}_\Omega)}     \int\limits_{N_{2,8}^0(\mathbb{A}_\Omega)}      \varphi_{\psi, T}(h) \omega_{\psi, \Omega}\left( \alpha_T(v)(1,h)\right) )\Phi_\Omega(I_2 )     f^*_{\mathcal{W}(\tau_\Omega\otimes \chi_{T}, 2, \psi_{2T}), s}(\gamma v (1, h) )      dv dh .
\end{split}
\end{equation*}
Here, for an algebraic group $H$,  we write $H({\mathbb A}_\Omega)=\prod_{\nu\in \Omega}H(F_\nu)$. Also, $\Phi_\Omega$ and $f^*_{\mathcal{W}(\tau_\Omega\otimes \chi_{T}, 2, \psi_{2T}), s}$ respectively denote the product of the factors of  $\Phi$ and $f^*_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}$ at the places in $\Omega$. 



Now we apply the argument in \cite[pg. 117-118]{Piatetski-ShapiroRallis1988} to obtain the following result. 

\begin{theorem}
Fix an isomorphism $\pi\cong \otimes_\nu^\prime \pi_\nu$. Assume $\varphi\in V_\pi$ corresponds to a pure tensor $\otimes_\nu \xi_\nu$ with $\xi_\nu\in V_{\pi_\nu}$.
For $\text{Re}(s)\gg 0$, we have
\begin{equation*}
    \mathcal{Z}( \varphi,   \theta_{\psi}^\Phi   , E^{*, S}(\cdot, f_{\Delta(\tau\otimes \chi_T, 2), s})) =  L^S(s+\frac{1}{2}, \pi\times \tau)  \cdot \mathcal{Z}_S(\varphi, \Phi, f^*_{\mathcal{W}(\tau\otimes \chi_{T}, 2, \psi_{2T}), s}) .
\end{equation*}
\label{theorem-global-1}
\end{theorem}


\begin{proof}
Let $\Omega$ be a finite set of places containing $S$. By the definition of the adelic integral we have
\begin{equation*}
    \mathcal{Z}( \varphi,   \theta_{\psi}^\Phi   , E^{*, S}(\cdot, f_{\Delta(\tau\otimes \chi_T, 2), s}))= \varinjlim_{\Omega\supseteq S} \mathcal{Z}_\Omega(\varphi, \Phi, f^*_{\mathcal{W}(\tau\otimes \chi_{T}, 2, \psi_{2T}), s}).
\end{equation*}
If $\nu$ is a place not in $\Omega$, then 
\begin{equation}
\begin{split}
    & \mathcal{Z}_{\Omega\cup\{\nu\}}(\varphi, \Phi, f^*_{\mathcal{W}(\tau\otimes \chi_{T}, 2, \psi_{2T}), s})\\
 =&  \int\limits_{ N_4(\mathbb{A}_{\Omega\cup\{\nu\}})  \backslash  \text{Sp}_4(\mathbb{A}_{\Omega\cup\{\nu\}})}     \int\limits_{N_{2,8}^0(\mathbb{A}_{\Omega\cup\{\nu\}})}      \varphi_{\psi, T}(h) \omega_{\psi, {\Omega\cup\{\nu\}}}\left( \alpha_T(v)(1,h)\right) )  \Phi_{\Omega\cup\{\nu\}}(I_2 )     f^*_{\mathcal{W}(\tau_{\Omega\cup\{\nu\}}\otimes \chi_{T}, 2, \psi_{2T}), s}(\gamma v (1, h) )      dv dh \\
 =&    \int\limits_{ N_4(\mathbb{A}_\Omega)  \backslash  \text{Sp}_4(\mathbb{A}_\Omega)}     \int\limits_{N_{2,8}^0(\mathbb{A}_\Omega)}       \omega_{\psi, \Omega}\left( \alpha_T(v)(1,h)\right) )\Phi_\Omega(I_2 )     f^*_{\mathcal{W}(\tau_\Omega\otimes \chi_{T}, 2, \psi_{2T}), s}(\gamma v (1, h) )      dv  \\
 &\times  \left( \int\limits_{ N_4(F_\nu)  \backslash  \text{Sp}_4(F_\nu)}  \int\limits_{N_{2,8}^0(F_\nu)}   \varphi_{\psi, T}(h_\nu h) \omega_{\psi, \nu}\left( \alpha_T(v_\nu)(1,h_\nu)\right) )\Phi_\nu(I_2 )     f^*_{\mathcal{W}(\tau_\nu\otimes \chi_{T}, 2, \psi_{2T}), s}(\gamma v_\nu (1, h_\nu) ) dv_\nu dh_\nu \right) dh
\end{split}
\label{eq-Main-Theorems-Basic-Lemma-argument1}
\end{equation}
since $\omega_\psi$, $\Phi$, and $ f^*_{\mathcal{W}(\tau \otimes \chi_T, 2, \psi_{2T}), s}$ are factorizable. 

Now we fix $h\in \text{Sp}_4({\mathbb A}_\Omega)$. Since $\pi_{\nu}$ is unramified (recall $\nu$ is not in $S$), there is a unramified vector $v_0$ in $V_{\pi_\nu}$. Let $i_\nu:V_{\pi_\nu}\to V_\pi$ be a
$\text{Sp}_4(F_\nu)$-equivariant map that sends $v_0$ to the cusp form $\varphi$. For example, we may take
\begin{equation*}
    i_\nu(v_\nu)=\bigotimes_{w\not=\nu}\xi_w\otimes v_\nu.
\end{equation*}
Consider the linear functional $l_{T}:V_{\pi_\nu}\to \mathbb{C}$ given by
\begin{equation*}
    l_{T}(v_\nu)=   \int\limits_{\text{Mat}_2^0(F)\backslash \text{Mat}_2^0(\mathbb{A})} (\pi(h)i_\nu(v_\nu) )\left(\begin{smallmatrix}
I_2 & z\\
& I_2
\end{smallmatrix} \right) \psi(\text{tr}(Tz))dz.
\end{equation*}
It's clear that $l_{T}(v_0)=\varphi_{\psi, T}(h)$. Since $h_\nu\in \text{Sp}_4(F_\nu)$ commutes with $h\in \text{Sp}_4({\mathbb A}_\Omega)$,
$l_{T}$ satisfies \eqref{eq-l_T}. Moreover, we have
\begin{equation*}
    \varphi_{\psi, T}(h_\nu h)=l_{T}(\pi_\nu(h_\nu)v_0).
\end{equation*}
Now we use \eqref{eq-Main-Theorems-Basic-Lemma-argument1} and Theorem~\ref{theorem-unramified-computation} to obtain
\begin{equation*}
\begin{split}
    & \mathcal{Z}_{\Omega\cup\{\nu\}}(\varphi, \Phi, f^*_{\mathcal{W}(\tau\otimes \chi_{T}, 2, \psi_{2T}), s})\\
=&   \int\limits_{ N_4(\mathbb{A}_\Omega)  \backslash  \text{Sp}_4(\mathbb{A}_\Omega)}     \int\limits_{N_{2,8}^0(\mathbb{A}_\Omega)}       \omega_{\psi, \Omega}\left( \alpha_T(v)(1,h)\right) )\Phi_\Omega(I_2 )     f^*_{\mathcal{W}(\tau_\Omega\otimes \chi_{T}, 2, \psi_{2T}), s}(\gamma v (1, h) )      dv  \\
 &\times  \left( \int\limits_{ N_4(F_\nu)  \backslash  \text{Sp}_4(F_\nu)}  \int\limits_{N_{2,8}^0(F_\nu)}  l_{T}(\pi_\nu(h_\nu) v_0 ) \omega_{\psi, \nu}\left( \alpha_T(v_\nu)(1,h_\nu)\right) )\Phi_\nu(I_2 )     f^*_{\mathcal{W}(\tau_\nu\otimes \chi_{T}, 2, \psi_{2T}), s}(\gamma v_\nu (1, h_\nu) ) dv_\nu dh_\nu \right) dh \\
=&   \int\limits_{ N_4(\mathbb{A}_\Omega)  \backslash  \text{Sp}_4(\mathbb{A}_\Omega)}     \int\limits_{N_{2,8}^0(\mathbb{A}_\Omega)}       \omega_{\psi, \Omega}\left( \alpha_T(v)(1,h)\right) )\Phi_\Omega(I_2 )     f^*_{\mathcal{W}(\tau_\Omega\otimes \chi_{T}, 2, \psi_{2T}), s}(\gamma v (1, h) )      dv  \cdot   L(s+\frac{1}{2},  {\pi_\nu}\times {\tau_\nu}) \cdot  \varphi_{\psi, T}(h) dh \\
=&  L(s+\frac{1}{2},  {\pi_\nu}\times {\tau_\nu})  \mathcal{Z}_\Omega(\varphi, \Phi, f^*_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}).
\end{split}
\end{equation*}
Finally, we take the limit to obtain the result. 
\end{proof}

The local integral at a finite ramified place can be controlled by the following result.

\begin{proposition} 
Let $F_\nu$ be non-archimedean, and let $K_0$ be an open compact subgroup of $\text{Sp}_4(F_\nu)$. There exist a Schwartz function $\Phi_0\in \mathcal{S}(\text{Mat}_2(F_\nu))$ and a section $f_{0,s} \in \text{Ind}_{P_8(F_\nu)}^{\text{Sp}_8(F_\nu)}(\mathcal{W}( \tau_\nu\otimes \chi_T, 2, \psi_{2T})|\det|^s)$  such that for any irreducible admissible representation $\pi_\nu$ of $\text{Sp}_4(F_\nu)$, any vector $v_0 \in V_{\pi_\nu}$ which is stabilized by $K_0$, and any choice of the functional $l_T$ satisfying \eqref{eq-l_T}, we have
\begin{equation}
\int\limits_{N_4(F_\nu)\backslash \text{Sp}_4(F_\nu)}     \int\limits_{N_{2,8}^0(F_\nu)}  l_T(\pi_\nu(h)v_0)   \omega_{\psi,\nu}\left( \alpha_T(v )(1,h)\right) )\Phi_0(I_2 )   f_{0, s}(\gamma v (1, h))dv dh=l_T(v_0).
\label{eq-ramified-calculation-finiteplace}
\end{equation}
\label{proposition-ramified-finiteplace}
\end{proposition}

The archimedean integral is given by
\begin{equation*}
\mathcal{Z}_\infty(\varphi, \Phi_\infty, f_{\infty, s}) =     \int\limits_{N_4(\mathbb{A}_\infty)\backslash \text{Sp}_4(\mathbb{A}_\infty)} \int\limits_{N_{2,8}^0(\mathbb{A}_\infty)}   \varphi_{\psi, T}(h)   \omega_{\psi, \infty}\left( \alpha_T(v)(1,h)\right) )\Phi_\infty(I_2 )
f_{\infty, s}( \gamma v (1, h) )    dv   dh,
\end{equation*}
where $\Phi_\infty\in \mathcal{S}(\text{Mat}_{2}(F_\infty))$, $f_{\infty, s}\in \text{Ind}_{P_8(F_\infty)}^{\text{Sp}_8(F_\infty)}(\mathcal{W}( \tau_\infty\otimes \chi_T, 2, \psi_{2T})|\det|^s)$.
Note that here we use the actual Fourier coefficient $\varphi_{\psi, T}$, instead of the linear functional $l_T$ as in the finite place. We have the following result.


\begin{proposition} 
Let $s_0\in \mathbb{C}$ be a complex number. There is a choice of data $(\varphi_j, \Phi_j, f_{j,s})$, such that the finite sum $\sum_j \mathcal{Z}_\infty(\varphi_j, \Phi_j, f_{j,s})$ admits meromorphic continuation to the whole complex plane and its meromorphic continuation is non-zero at $s_0$.
\label{proposition-ramified-archimedean}
\end{proposition}

Proposition~\ref{proposition-ramified-finiteplace} and Proposition~\ref{proposition-ramified-archimedean} will be proved in Section~\ref{section-Ramified computation}. 

Now we prove Theorem~\ref{thm-conjecture-holds}.

\begin{proof}[Proof of Theorem~\ref{thm-conjecture-holds}]
Choose $T$ such that $\varphi_{\psi, T}\not=0$. 
Let $S$ be the finite set of places as in Section~\ref{subsection-non-unique-models-and-the-new-way-method}. Let $\Phi=\prod_{\nu}\Phi_\nu$, $f_{\Delta(\tau\otimes \chi_T, 2), s} = \prod_{\nu} f_{\Delta(\tau_\nu\otimes \chi_T, 2), s}$ be factorizable. 
By Theorem~\ref{theorem-global-1}, we have
\begin{equation*}
    \mathcal{Z}( \varphi,   \theta_{\psi}^\Phi   , E^{*, S}(\cdot, f_{\Delta(\tau\otimes \chi_T, 2), s})) =  L^S(s+\frac{1}{2}, \pi\times \tau)  \cdot \mathcal{Z}_S(\varphi, \Phi, f^*_{\mathcal{W}(\tau\otimes \chi_{T}, 2, \psi_{2T}), s}) .
\end{equation*}
By Proposition~\ref{proposition-ramified-finiteplace} and Proposition~\ref{proposition-ramified-archimedean}, we can choose data so that the local integral at a finite place $\nu\in S$ is equal to $l_T(v_0)$, where $v_0$ is a vector stabilized by an open compact subgroup of $\text{Sp}_4(F_\nu)$,
and the local integral at an archimedean place $\nu\in S$ admits meromorphic continuation to the whole complex plane and is non-zero at $s_0$. Hence $\mathcal{Z}_S(\varphi, \Phi, f^*_{\mathcal{W}(\tau\otimes \chi_{T}, 2, \psi_{2T}), s})$ admits meromorphic continuation to the whole complex plane and can be made non-zero. This proves Theorem~\ref{thm-conjecture-holds}.
\end{proof}


\begin{proof}[Proof of Corollary~\ref{corollary-of-major-theorem}]
The left-hand side of \eqref{Introduction-eq-in-major-theorem} admits meromorphic continutation by Theorem~\ref{theorem-global-unfolding}, and on the right-hand side, $\mathcal{Z}_S(\varphi, \Phi, f^*_{\mathcal{W}(\tau\otimes \chi_{T}, 2, \psi_{2T}), s})$ admits meromorphic continuation. This proves Corollary~\ref{corollary-of-major-theorem}.
\end{proof}









\section{Unfolding} \label{section-Unfolding}

In this section we unfold the global integral and prove Theorem~\ref{theorem-global-unfolding}. It's convenient to work with the integral $\mathcal{Z}( \varphi,   \theta_{\psi}^\Phi   ,  E(\cdot, f_{\Delta(\tau\otimes \chi_T, 2), s}))$ where the Eisenstein series is not normalized.

We begin with a parametrization of the representatives of  the $P_{2,8}(F)$-orbits in $P_8(F)\backslash \text{Sp}_8(F)$. For each orbit $P_8(F)\gamma_i$, we denote $H_{\gamma_i}(F)$ its stabilizer in $P_{2,8}(F)$. There are three $P_{2,8}(F)$-orbits. The representatives of the orbits and their stabilizers are given below.
\begin{lemma}
The following is a list of representatives of the $P_{2,8}(F)$-orbits in $P_8(F)\backslash \text{Sp}_8(F)$ and their stabilizers: \\
\begin{enumerate}
\item $\gamma_0=I_8$, and the stabilizer $H_{\gamma_0}(F)=M_{\gamma_0}(F)\ltimes N_{\gamma_0}(F)$, where
\begin{equation*}
\begin{split}
M_{\gamma_0}(F)        &  =\left\{ \left(\begin{smallmatrix}
g_0 &&\\
&h_0 &\\
&&J_2 {}^{t}g_0^{-1}J_2
\end{smallmatrix}\right) : g_0\in \text{GL}_2(F), h_0\in P_4(F)\right\},\\
 N_{\gamma_0}(F)        &  =N_{2,8}(F).
 \end{split}
\end{equation*}
\item  $ \gamma_1=  \left(\begin{smallmatrix}
& & &-1\\
& &I_{6} &\\
&1  &&
\end{smallmatrix}\right)$, and the stabilizer  $H_{\gamma_1}(F)=M_{\gamma_1}(F)\ltimes N_{\gamma_1}(F)$, where
\begin{equation*}
\begin{split}
M_{\gamma_1}(F)          &=\left\{ \left(\begin{smallmatrix}
g_0 &&\\
&h_0 &\\
&&J_2 {}^{t}g_0^{-1}J_2
\end{smallmatrix}\right) : g_0 \text{ in lower triangular Borel } B_{\text{GL}_2}^{-}(F), h_0\in P_4(F)\right\}, \\ 
 N_{\gamma_1}(F)            &=\left\{ v(x, y, z)\in N_{2,8}(F): x=\left(\begin{smallmatrix}
0 & 0\\
* & *
\end{smallmatrix}\right) , z=\left(\begin{smallmatrix}
* & 0\\
* &*
\end{smallmatrix}\right) \right\}.
\end{split}
\end{equation*}
\item $ \gamma_2=\left(\begin{smallmatrix}
& & &-I_2\\
& &I_{4} &\\
&I_2  &&
 \end{smallmatrix}\right)$, and the stabilizer $H_{\gamma_2}(F)=M_{\gamma_2}(F)\ltimes N_{\gamma_2}(F)$, where
 \begin{equation*}
 \begin{split}
 M_{\gamma_2}(F)         &=\left\{ \left(\begin{smallmatrix}
g_0 &&\\
&h_0 &\\
&&J_2 {}^{t}g_0^{-1}J_2
\end{smallmatrix}\right) : g_0\in \text{GL}_2(F),  h_0\in P_4(F)\right\}  , \\
 N_{\gamma_2}(F)&    =\left\{ v(0, y, 0)\in N_{2,8}(F)\right\}.
\end{split}
 \end{equation*}
\end{enumerate}
\label{lemma-double-coset-decomposition}
\end{lemma}

\begin{proof}
See \cite[Section 4]{GinzburgRallisSoudry1998} for the explicit representatives $\gamma_i$. Their stabilizers can be determined by matrix computations.
\end{proof}

Now we unfold the Eisenstein series. For $\text{Re}(s)\gg 0$,
we have
\begin{equation*}
\begin{split}
\mathcal{Z}( \varphi,   \theta_{\psi}^\Phi   , & E(\cdot, f_{\Delta(\tau\otimes \chi_T, 2), s})) =\int\limits_{\text{Sp}_4(F)\backslash \text{Sp}_4(\mathbb{A})} \int\limits_{N_{2, 8}(F)\backslash N_{2, 8}(\mathbb{A})}  \\
&\varphi(h)     \theta_{\psi}^\Phi (\alpha_T(v)(1, h))  \sum_{\gamma_i \in P_8(F)\backslash \text{Sp}_{8}(F)  / P_{2, 8}(F)}  \sum_{g \in H_{\gamma_i}(F) \backslash P_{2, 8}(F)} f_{\Delta(\tau\otimes \chi_T, 2), s}(\gamma_i g v(1, h))
dvdh. 
\end{split}
\end{equation*}
We now interchange the summation over $\gamma_i$ with integration. This shows that 
\begin{equation*}
\begin{split}
\mathcal{Z}( \varphi,   \theta_{\psi}^\Phi   , E(\cdot, f_{\Delta(\tau\otimes \chi_T, 2), s})) = \sum_{\gamma_i \in P_8(F)\backslash \text{Sp}_8(F) / P_{2,8}(F)}I(\gamma_i),
\end{split}
\end{equation*}
where
\begin{equation*}
I(\gamma_i)= \int\limits_{\text{Sp}_4(F)\backslash \text{Sp}_4(\mathbb{A})} \int\limits_{N_{2, 8}(F)\backslash N_{2, 8}(\mathbb{A})}   \varphi(h)     \theta_{\psi}^\Phi (\alpha_T(v)(1, h))   \sum_{g \in H_{\gamma_i}(F) \backslash P_{2, 8}(F)     } f_{\Delta(\tau\otimes \chi_T, 2), s}(\gamma_i g v(1, h))  dvdh.
\end{equation*}
Our goal is to show that there is a unique double coset $P_8(F)\gamma_2 P_{2,8}(F)$ that supports non-zero contribution towards the global integral $\mathcal{Z}( \varphi,   \theta_{\psi}^\Phi   , E(\cdot, f_{\Delta(\tau\otimes \chi_T, 2), s}))$. 

We will use the following two methods to show that $I(\gamma_i)=0$. The first one is to use the character $\psi$. Specifically, if there is a unipotent group $U$ such that $\psi_U$ is a non-trivial additive character on $U(F)\backslash U({\mathbb A})$, then the integral of $\psi_U$ on $U(F)\backslash U({\mathbb A})$ vanishes. The second one is to use the cuspidality of $\pi$: if $N$ is the unipotent radical of a parabolic subgroup of $\text{Sp}_4$, then the integral $\int_{N(F)\backslash N({\mathbb A})}\varphi(nh)dn$ is zero because $\varphi$ is a cusp form. 

\subsection{Contribution from $I(\gamma_0)$}

In this subsection, we show that $I(\gamma_0)=0$.

By Lemma~\ref{lemma-double-coset-decomposition}, $ H_{\gamma_0}(F) \backslash P_{2, 8}(F)\cong P_4(F)\backslash \text{Sp}_4(F)$.
We interchange summation with integration over $N_{2,8}(F)\backslash N_{2,8}(\mathbb{A})$ to obtain
\begin{equation*}
\begin{split}
I(\gamma_0)&= \int\limits_{\text{Sp}_4(F)\backslash \text{Sp}_4(\mathbb{A})}   \sum_{h_0 \in  P_4(F)\backslash \text{Sp}_4(F)}    \int\limits_{N_{2, 8}(F)\backslash N_{2, 8}(\mathbb{A})}   \varphi(h)     \theta_{\psi}^\Phi (\alpha_T(v)(1, h))     f_{\Delta(\tau\otimes \chi_T, 2), s} (  (1, h_0)v(1, h))  dvdh.
\end{split}
\end{equation*}
We write $v=v(x, y, z)$. After conjugating $(1, h_0)$ to the right of $v(x, y, z)$, and doing a change of variables $v(x, y, z)\mapsto v((x, y)h_0, z)$, we get
\begin{equation*}
\begin{split}
I(\gamma_0)  = \int\limits_{\text{Sp}_4(F)\backslash \text{Sp}_4(\mathbb{A})}  & \sum_{h_0 \in  P_4(F)\backslash \text{Sp}_4(F)}    \int\limits_{N_{2, 8}(F)\backslash N_{2, 8}(\mathbb{A})}    \\
&  \varphi(h) \theta_{\psi}^\Phi (\alpha_T(v((x, y)h_0, z))(1, h))     f_{\Delta(\tau\otimes \chi_T, 2), s} (  v(x, y, z) (1, h_0)(1,  h))  dvdh.
\end{split}    
\end{equation*}
Using the automorphy of $\varphi$ and $\theta_{\psi}^\Phi $, we see that for any $h_0\in \text{Sp}_4(F)$, we have
\begin{equation*}
 \varphi(h) \theta_{\psi}^\Phi (\alpha_T(v((x, y)h_0, z))(1, h))  =  \varphi( h_0 h) \theta_{\psi}^\Phi (\alpha_T(v(x, y, z))(1, h_0 h)).
\end{equation*}
We may collapse the summation over $P_4(F)\backslash \text{Sp}_4(F)$
with the $dh$-integration, to obtain
\begin{equation*}
\begin{split}
I(\gamma_0)  =  \int\limits_{P_4(F)\backslash \text{Sp}_4(\mathbb{A})} \int\limits_{N_{2, 8}(F)\backslash N_{2, 8}(\mathbb{A})}      \varphi(h) \theta_{\psi}^\Phi (\alpha_T(v) (1, h))     f_{\Delta(\tau\otimes \chi_T, 2), s} (  v   (1,  h))  dvdh.
\end{split}
\end{equation*}
We consider the following normal subgroup of $N_{2,8}$, 
\begin{equation*}
    N_{2,8}^c:=\left\{ v(0,0, z)=\left(\begin{smallmatrix}
I_2 &  &  & z\\
& I_2 & &  \\
& &I_2 & \\
& & &I_2
\end{smallmatrix}\right)\in N_{2,8} \right\}.
\end{equation*}
Note that for any $v(0,0,z)\in N_{2,8}^c(\mathbb{A})$, $v^\prime\in N_{2,8}(\mathbb{A}), h\in \text{Sp}_4(\mathbb{A})$, we have
\begin{equation}
\begin{split}
\theta_{\psi}^\Phi(\alpha_T(v(0, 0, z))\alpha_T(v^\prime)(1, h)) =\psi(\text{tr}(Tz)) \theta_{\psi}^\Phi(\alpha_T(v^\prime)(1, h)) , 
\end{split}
\label{eq-global-unfolding-I(gamma_0)-theta}
\end{equation}
and
\begin{equation*}
  f_{\Delta(\tau\otimes \chi_T, 2), s} ( v(0,0,z) v^\prime   (1,  h)) = f_{\Delta(\tau\otimes \chi_T, 2), s} (   v^\prime   (1,  h))   .
\end{equation*}
Then
\begin{equation*}
\begin{split}
I(\gamma_0)   = & \int\limits_{P_4(F)\backslash \text{Sp}_4(\mathbb{A})} \int\limits_{ N_{2,8}^c(\mathbb{A}) N_{2, 8}(F)\backslash N_{2, 8}(\mathbb{A})}  \int\limits_{\text{Mat}_2^0(F)\backslash \text{Mat}_2^0(\mathbb{A})}    \\ 
& \ \ \ \ \ \ \ \ \ \ \varphi(h) \theta_{\psi}^\Phi ( \alpha_T(v(0,0,z)) \alpha_T(v) (1, h))     f_{\Delta(\tau\otimes \chi_T, 2), s} (v(0,0,z)  v   (1,  h))  dz dvdh \\
 = & \int\limits_{P_4(F)\backslash \text{Sp}_4(\mathbb{A})} \int\limits_{ N_{2,8}^c(\mathbb{A}) N_{2, 8}(F)\backslash N_{2, 8}(\mathbb{A})}  \left(\int\limits_{\text{Mat}_2^0(F)\backslash \text{Mat}_2^0(\mathbb{A})} \psi(\text{tr}(Tz))dz \right)\\
 & \ \ \ \ \ \ \ \ \ \ \varphi(h) \theta_{\psi}^\Phi ( \alpha_T( v) (1, h))     f_{\Delta(\tau\otimes \chi_T, 2), s} (  v   (1,  h))   dvdh.
\end{split}
\end{equation*}
We conclude that $I(\gamma_0)$ vanishes since the most inner integral is equal to zero.


\subsection{Contribution from $I(\gamma_1)$}

In this subsection, we show that $I(\gamma_1)=0$.

By Lemma~\ref{lemma-double-coset-decomposition}, we can  write
\begin{equation*}
\begin{split}
I({\gamma_1})   = \int\limits_{\text{Sp}_4(F)\backslash \text{Sp}_4(\mathbb{A})} &\int\limits_{N_{2, 8}(F)\backslash N_{2, 8}(\mathbb{A})}     \varphi(h)     \theta_{\psi}^\Phi (\alpha_T(v)(1, h))    \\  
&    \sum_{\substack{g_0\in B_{\text{GL}_2}^{-}(F)\backslash \text{GL}_2(F)\\ h_0\in P_4(F)\backslash \text{Sp}_4(F)}}  \sum_{\substack{v_0  \in  N_{\gamma_1}(F) \backslash N_{2,8}(F)}} f_{\Delta(\tau\otimes \chi_T, 2), s} (\gamma_1 v_0 (g_0, h_0)v(1, h))  dvdh.
\end{split}
\end{equation*}
Interchanging the integration over $N_{2,8}(F)\backslash N_{2,8}(\mathbb{A})$ with the summation in $g_0$ and $h_0$, we have
\begin{equation*}
\begin{split}
I({\gamma_1})   = \int\limits_{\text{Sp}_4(F)\backslash \text{Sp}_4(\mathbb{A})}  &      \sum_{\substack{g_0\in B_{\text{GL}_2}^{-}(F)\backslash \text{GL}_2(F)\\ h_0\in P_4(F)\backslash \text{Sp}_4(F)}}   \int\limits_{N_{2, 8}(F)\backslash N_{2, 8}(\mathbb{A})}     \varphi(h)     \theta_{\psi}^\Phi (\alpha_T(v)(1, h))    \\  
&    \sum_{\substack{v_0  \in  N_{\gamma_1}(F) \backslash N_{2,8}(F)}} f_{\Delta(\tau\otimes \chi_T, 2), s} (\gamma_1 v_0 (g_0, h_0)v(1, h))  dvdh.
\end{split}
\end{equation*}
We write $v=v(x, y, z)$. Then 
\begin{equation*}
\begin{split}
    (g_0, h_0)v(x, y, z) &=(g_0, 1) v((x, y)h_0^{-1}, z) (1, h_0), \\
    (1, h_0)\alpha_T(v((x, y)h_0, z)) &=\alpha_T(v(x, y, z))(1, h_0).
\end{split}
\end{equation*}
Changing the variables $v(x, y, z)\mapsto v((x, y)h_0, z)$ and using automorphy of $\theta_{\psi}^\Phi$, and collapsing the summation over $P_4(F)\backslash \text{Sp}_4(F)$ with the integration over $\text{Sp}_4(F)\backslash \text{Sp}_4(\mathbb{A})$, we obtain
\begin{equation*}
\begin{split}
I({\gamma_1})   = \int\limits_{P_4(F)\backslash \text{Sp}_4(\mathbb{A})}  \sum_{g_0\in B_{\text{GL}_2}^{-}(F)\backslash \text{GL}_2(F)}        &          \int\limits_{N_{2, 8}(F)\backslash N_{2, 8}(\mathbb{A})}     \varphi(h)     \theta_{\psi}^\Phi (\alpha_T(v)(1, h))    \\  
&    \sum_{\substack{v_0  \in  N_{\gamma_1}(F) \backslash N_{2,8}(F)}} f_{\Delta(\tau\otimes \chi_T, 2), s} (\gamma_1 v_0 (g_0, 1)v(1, h))  dvdh.
\end{split}
\end{equation*}
Recall that $N_{2,8}^c$ is a normal subgroup of $N_{2,8}$. Using 
\eqref{eq-global-unfolding-I(gamma_0)-theta}, we get
\begin{equation*}
\begin{split}
I({\gamma_1})   =  \int\limits_{P_4(F)\backslash \text{Sp}_4(\mathbb{A})} & \sum_{g_0\in B_{\text{GL}_2}^{-}(F)\backslash \text{GL}_2(F)}    \int\limits_{ N_{2,8}^c(\mathbb{A}) N_{2, 8}(F)\backslash N_{2, 8}(\mathbb{A})}  \int\limits_{\text{Mat}_2^0(F)\backslash \text{Mat}_2^0(\mathbb{A})}        \varphi(h) \psi(\text{tr}(Tz)) \\
&\theta_{\psi}^\Phi (\alpha_T(v)(1, h))   \sum_{\substack{v_0  \in  N_{\gamma_1}(F) \backslash N_{2,8}(F)}} f_{\Delta(\tau\otimes \chi_T, 2), s} (\gamma_1 v_0 (g_0, 1) v(0,0,z) v(1, h))  dvdh.
\end{split}
\end{equation*}
Now we use
\begin{equation*}
    (g_0, 1) v(0,0,z)=v(0,0, g_0 z J_2 {}^t g_0 J_2) (g_0, 1).
\end{equation*}
to conjugate $(g_0, 1)$ to the right of $v(0,0,z)$.
After changing variables $z\mapsto g_0^{-1}zJ_2 {}^t g_0^{-1} J_2$, we obtain
\begin{equation*}
\begin{split}
I({\gamma_1})   = & \int\limits_{P_4(F)\backslash \text{Sp}_4(\mathbb{A})}  \sum_{g_0\in B_{\text{GL}_2}^{-}(F)\backslash \text{GL}_2(F)}    \int\limits_{ N_{2,8}^c(\mathbb{A}) N_{2, 8}(F)\backslash N_{2, 8}(\mathbb{A})}  \int\limits_{\text{Mat}_2^0(F)\backslash \text{Mat}_2^0(\mathbb{A})}        \varphi(h) \psi(\text{tr}(T g_0^{-1}zJ_2 {}^t g_0^{-1} J_2)) \\
&\theta_{\psi}^\Phi (\alpha_T(v)(1, h))   \sum_{\substack{v_0  \in  N_{\gamma_1}(F) \backslash N_{2,8}(F)}} f_{\Delta(\tau\otimes \chi_T, 2), s} (\gamma_1 \cdot v_0 \cdot  v(0,0,z) \cdot (g_0, 1) \cdot  v\cdot (1, h))  dvdh.
\end{split}
\end{equation*}
Recall that $\text{Mat}_2^0=\left\{ \left(\begin{smallmatrix}
z_1 & z_2 \\
z_3 & z_1
\end{smallmatrix} \right)\right\}$. Since $N_{2,8}^c$ is a normal subgroup of $N_{2,8}$, we have
\begin{equation*}
\begin{split}
I({\gamma_1})   =     & \int\limits_{P_4(F)\backslash \text{Sp}_4(\mathbb{A})}  \sum_{g_0\in B_{\text{GL}_2}^{-}(F)\backslash \text{GL}_2(F)}    
\int\limits_{ N_{2,8}^c(\mathbb{A}) N_{2, 8}(F)\backslash N_{2, 8}(\mathbb{A})}  \int\limits_{(F\backslash \mathbb{A})^3}          \\
&         \psi(\text{tr}(T g_0^{-1}\left(\begin{smallmatrix} z_1 & z_2 \\ z_3 & z_1\end{smallmatrix}\right)J_2 {}^t g_0^{-1} J_2))      \varphi(h) \theta_{\psi}^\Phi (\alpha_T(v)(1, h))  \sum_{\substack{v_0  \in  N_{\gamma_1}(F) \backslash N_{2,8}(F)}}    \\
&           f_{\Delta(\tau\otimes \chi_T, 2), s} \left(\gamma_1 \cdot   v\left(0,0, \left(\begin{smallmatrix} 0 & 0 \\z_3&0\end{smallmatrix}\right) \right) \cdot  v\left(0,0,\left(\begin{smallmatrix} z_1 & z_2 \\ 0 & z_1\end{smallmatrix}\right) \right)
\cdot v_0  \cdot (g_0, 1) \cdot  v\cdot (1, h)
\right)  dz_3 dz_2 dz_1 dvdh.
\end{split}
\end{equation*}
Note that $\gamma_1$ commutes with $v\left(0,0, \left(\begin{smallmatrix} 0 & 0 \\z_3&0\end{smallmatrix}\right) \right)$, and $v\left(0,0, \left(\begin{smallmatrix} 0 & 0 \\z_3&0\end{smallmatrix}\right) \right)\in N_8(\mathbb{A})$. Therefore, we get
\begin{equation*}
\int\limits_{F\backslash \mathbb{A}}  \psi\left(\text{tr}(Tg_0^{-1}  \left(\begin{smallmatrix}
0 & 0\\
z_3 &0
\end{smallmatrix}\right) J_2 {}^t g_0^{-1} J_2)\right) dz_3
\end{equation*}
as an inner integration, which is zero. Thus, $I(\gamma_1)=0$.

We now have shown that for $\text{Re}(s)\gg 0$, 
\begin{equation*}
 \mathcal{Z}( \varphi,   \theta_{\psi}^\Phi   , E(\cdot, f_{\Delta(\tau\otimes \chi_T, 2), s})) = I(\gamma_2).   
\end{equation*}





\subsection{Contribution from $I(\gamma_2)$}


Using Lemma~\ref{lemma-double-coset-decomposition}, we see that
\begin{equation*}
\begin{split}
I({\gamma_2})   = \int\limits_{\text{Sp}_4(F)\backslash \text{Sp}_4(\mathbb{A})} &\int\limits_{N_{2, 8}(F)\backslash N_{2, 8}(\mathbb{A})}     \varphi(h)     \theta_{\psi}^\Phi (\alpha_T(v)(1, h))    \\  
&    \sum_{ h_0\in P_4(F)\backslash \text{Sp}_4(F)}  \sum_{\substack{v_0  \in  N_{\gamma_2}(F) \backslash N_{2,8}(F)}} f_{\Delta(\tau\otimes \chi_T, 2), s} (\gamma_2 v_0 (1, h_0)v(1, h))  dvdh.
\end{split}
\end{equation*}
We interchange the summation over $P_4(F)\backslash \text{Sp}_4(F)$ with the $dv$-integration, then make a change of variables $v(x, y, z)\mapsto v((x, y)h_0, z)$, and then use the automorphy of $\varphi$ and $\theta_{\psi}^\Phi$, and then collapse the integrals with summations, to get
\begin{equation*}
\begin{split}
I({\gamma_2})   = \int\limits_{P_4(F)\backslash \text{Sp}_4(\mathbb{A})} \int\limits_{N_{\gamma_2}(F) \backslash N_{2, 8}(\mathbb{A})}     \varphi(h)     \theta_{\psi}^\Phi (\alpha_T(v)(1, h))    f_{\Delta(\tau\otimes \chi_T, 2), s} (\gamma_2 v (1, h))  dvdh.
\end{split}
\end{equation*}

Our next step is to unfold the theta series $\theta_{\psi}^\Phi$. Note that $\text{GL}_2(F)$ acts on $\text{Mat}_2 (F)$ by right multiplication.
There are four $\text{GL}_2(F)$-orbits in $\text{Mat}_2 (F)$, given below:
\begin{enumerate}
\item   $\text{GL}_2(F)$, represented by $\xi=I_2$.\\
\item   $\{0\}$, represented by $\xi=0$.\\
\item   $\left\{\left(\begin{smallmatrix}
a & b\\
\lambda a &\lambda b
\end{smallmatrix}\right):(a ,b)\not=(0,0), \lambda\in F \right\}$, represented by $\xi_\lambda=\left(\begin{smallmatrix}
0 & 1\\
0 &\lambda
\end{smallmatrix}\right)$.\\
\item   $\left\{\left(\begin{smallmatrix}
0 & 0\\
a & b
\end{smallmatrix}\right):(a ,b)\not=(0,0) \right\}$, represented by $\xi=\left(\begin{smallmatrix}
0 & 0\\
0 &1
\end{smallmatrix}\right)$.
\end{enumerate}
For $\xi\in \text{Mat}_2(F)$, we denote the stabilizer of $\xi$ by $G_\xi$, i.e., $G_\xi =\{g\in \text{GL}_2(F):\xi g=\xi\}$. Then 
\begin{equation*}
\begin{split}
 \theta_{\psi, 8}^\Phi (\alpha_T( v)(1, h)) = \sum_{\xi\in \text{Mat}_2(F)/\text{GL}_2(F)} \sum_{a\in G_{\xi}\backslash \text{GL}_2(F)} \omega_\psi(\alpha_T(v)(1, h))\Phi(\xi a),
\end{split}
\end{equation*}
and
\begin{equation*}
\begin{split}
I(\gamma_2)=           &\int\limits_{P_4(F)\backslash \text{Sp}_4(\mathbb{A})}  \int\limits_{N_{\gamma_2}(F)\backslash N_{2, 8}(\mathbb{A})} \varphi(h) \\
&  \ \ \ \ \ \ \ \ \     \sum_{\xi\in \text{Mat}_2(F)/\text{GL}_2(F)} \sum_{a\in G_{\xi}\backslash \text{GL}_2(F)} \omega_\psi(\alpha_T(v)(1, h))\Phi(\xi a)   f_{\Delta(\tau\otimes \chi_T, 2), s} (\gamma_2  v(1, h))  dvdh.
\end{split} 
\end{equation*}
After interchanging the summations with the integration over $N_{\gamma_2}(F)\backslash N_{2, 8}(\mathbb{A})$, we obtain
\begin{equation*}
\begin{split}
I(\gamma_2)=           &\int\limits_{P_4(F)\backslash \text{Sp}_4(\mathbb{A})} \sum_{\xi\in \text{Mat}_2(F)/\text{GL}_2(F)} \sum_{a\in G_{\xi}\backslash \text{GL}_2(F)}   \\
&  \ \ \ \ \ \ \ \ \    \int\limits_{N_{\gamma_2}(F) \backslash N_{2, 8}(\mathbb{A})} \varphi(h) \omega_\psi(\alpha_T(v)(1, h))\Phi(\xi a)   f_{\Delta(\tau\otimes \chi_T, 2), s} (\gamma_2  v(1, h))  dvdh.
\end{split} 
\end{equation*}
We further interchange the summation over $\text{Mat}_2(F)/\text{GL}_2(F)$ with the integration over $P_4(F)\backslash \text{Sp}_4(\mathbb{A})$, to get
\begin{equation*}
\begin{split}
I(\gamma_2)=  \sum_{\xi\in \text{Mat}_2(F)/\text{GL}_2(F)} I(\gamma_2, \xi)     ,
\end{split} 
\end{equation*}
where
\begin{equation*}
\begin{split}
 I(\gamma_2, \xi) =   \int\limits_{P_4(F)\backslash \text{Sp}_4(\mathbb{A})}    \sum_{a\in G_{\xi}\backslash \text{GL}_2(F)}       & \int\limits_{N_{\gamma_2}(F)\backslash N_{2, 8}(\mathbb{A})} \\
& \varphi(h) \omega_\psi(\alpha_T(v)(1, h))\Phi(\xi a)   f_{\Delta(\tau\otimes \chi_T, 2), s} (\gamma_2  v(1, h))  dvdh.
 \end{split}
\end{equation*}

\begin{proposition}
$I(\gamma_2, \xi)$ vanishes for all $\xi$ except when $\xi\in \text{GL}_2(F)$.
\label{prop-global-unfolding-I(gamma_2, xi)-vanishes}
\end{proposition}

\begin{proof}
First, we show that $I(\gamma_2, 0)=0$. The stabilizer of $\xi=0$ is the full group $\text{GL}_2(F)$. We see that
\begin{equation*}
\begin{split}
  I(\gamma_2, 0) =  \int\limits_{N_4(\mathbb{A})M_4(F)\backslash \text{Sp}_4(\mathbb{A})} &   \int\limits_{N_4(F)\backslash N_4(\mathbb{A})}    \int\limits_{N_{\gamma_2}(F)\backslash N_{2, 8}(\mathbb{A})}  \\
  &    \varphi(n h) \omega_\psi(\alpha_T(v)(1, nh))\Phi(0)   f_{\Delta(\tau\otimes \chi_T, 2), s} (\gamma_2  v(1, nh))  dvdndh.
 \end{split}
\end{equation*}
We observe that for any $n\in N_4(\mathbb{A})$, $\Phi^\prime\in \mathcal{S}(\text{Mat}_2(\mathbb{A}))$, $g\in \text{Sp}_8(\mathbb{A})$, we have
\begin{equation*}
\begin{split}
    \omega_\psi \left( (1, n)  \right) \Phi^\prime(0) &=\Phi^\prime(0),\\ 
    f_{\Delta(\tau\otimes \chi_T, 2), s} \left(\gamma_2 (1, n)g\right)&=f_{\Delta(\tau\otimes \chi_T, 2), s}\left((1, n) \gamma_2 g\right)=f_{\Delta(\tau\otimes \chi_T, 2), s}(\gamma_2 g).
\end{split}
\end{equation*}
We write $v=v(x, y, z)$. Then  
\begin{equation*}
\begin{split}
I(\gamma_2, 0) \\
=&\int\limits_{N_4(\mathbb{A})M_4(F)\backslash \text{Sp}_4(\mathbb{A})}    \int\limits_{N_4(F)\backslash N_4(\mathbb{A})}    \int\limits_{N_{\gamma_2}(F)\backslash N_{2, 8}(\mathbb{A})}  \\
& \ \ \       \varphi(n h) \omega_\psi((1, n) \alpha_T(v(x, y)n, z))(1, h))\Phi(0)   f_{\Delta(\tau\otimes \chi_T, 2), s} (  \gamma_2 (1, n)  v((x, y)n, z) (1, h))  dvdndh \\
=&\int\limits_{N_4(\mathbb{A})M_4(F)\backslash \text{Sp}_4(\mathbb{A})}    \int\limits_{N_4(F)\backslash N_4(\mathbb{A})}    \int\limits_{N_{\gamma_2}(F)\backslash N_{2, 8}(\mathbb{A})}  \\
& \ \ \       \varphi(n h) \omega_\psi( \alpha_T(v(x, y)n, z))(1, h))\Phi(0)   f_{\Delta(\tau\otimes \chi_T, 2), s} (  \gamma_2    v((x, y)n, z) (1, h))  dvdndh.
 \end{split}
\end{equation*}
After a change of variables $v(x, y, z)\mapsto v((x, y)n^{-1}, z)$, we see that
\begin{equation*}
\begin{split}
 I(\gamma_2, 0) =  \int\limits_{N_4(\mathbb{A})M_4(F)\backslash \text{Sp}_4(\mathbb{A})} &    \int\limits_{N_{\gamma_2}(F)\backslash N_{2, 8}(\mathbb{A})}    \int\limits_{N_4(F)\backslash N_4(\mathbb{A})}      \varphi(n h) dn \\
 &\omega_\psi( \alpha_T(v)(1, h))\Phi(0)   f_{\Delta(\tau\otimes \chi_T, 2), s} (  \gamma_2    v (1, h))  dvdh,
 \end{split}
\end{equation*}
which is zero because $\varphi$ is a cusp form.


It remains to prove $ I(\gamma_2, \xi)=0$ for $\xi=\left(\begin{smallmatrix}
0 & 1\\
0 &\lambda
\end{smallmatrix}\right)$ and $\xi=\left(\begin{smallmatrix}
0 & 0\\
0 &1
\end{smallmatrix}\right)$. Let $\xi$ be either $\left(\begin{smallmatrix}
0 & 1\\
0 &\lambda
\end{smallmatrix}\right)$ or $\left(\begin{smallmatrix}
0 & 0\\
0 &1
\end{smallmatrix}\right)$. In both cases, 
\begin{equation*}
G_\xi=\left\{ \left(\begin{smallmatrix}
* & *\\
0 &1
\end{smallmatrix}\right)\in \text{GL}_2(F)\right\}
\end{equation*}
is the mirabolic subgroup of $\text{GL}_2(F)$, and 
\begin{equation*}
\text{tr}\left( T \  {}^t \xi \left(\begin{smallmatrix}
z_1 & z_2\\
z_3 & z_1
\end{smallmatrix}\right) \xi \right)=0.
\end{equation*}
Similar to the case $I(\gamma_2, 0)$, we observe that for any $n=\left(\begin{smallmatrix} I_2 & z \\ & I_2\end{smallmatrix}\right)\in N_4(\mathbb{A})$ and any $a\in \text{GL}_2(F)$, we have
\begin{equation}
\begin{split}
  \omega_\psi((1, n)  \alpha_T(v)(1, h))\Phi(\xi) &= \psi \left( \text{tr}\left( T \  {}^t \xi z \xi \right)\right)   \omega_\psi( \alpha_T(v)(1, h))\Phi(\xi)= \omega_\psi( \alpha_T(v)(1, h))\Phi(\xi),\\
\end{split}
\label{eq-global-unfolding-I(gamma2)-vanishing-1}
\end{equation}
\begin{equation}
\begin{split}
  f_{\Delta(\tau\otimes \chi_T, 2), s} (  \gamma_2  (1, n)  g) &= f_{\Delta(\tau\otimes \chi_T, 2), s} (    (1, n) \gamma_2  g)=f_{\Delta(\tau\otimes \chi_T, 2), s} (    \gamma_2  g),
\end{split}
\label{eq-global-unfolding-I(gamma2)-vanishing-2}
\end{equation}
and
\begin{equation}
\begin{split}
  f_{\Delta(\tau\otimes \chi_T, 2), s} (  \gamma_2    g) &= f_{\Delta(\tau\otimes \chi_T, 2), s} (  (1, \text{diag}(a, a^*))  \gamma_2  g)=f_{\Delta(\tau\otimes \chi_T, 2), s} (    \gamma_2 (1, \text{diag}(a, a^*))  g).
  \label{eq-global-unfolding-I(gamma2)-vanishing-3}
\end{split}
\end{equation}
We also note that 
\begin{equation}
    \omega_\psi(\alpha_T(v)(1, h))\Phi(\xi a) =  \omega_\psi( (1, \tilde{a}) \alpha_T(v)(1, h))\Phi(\xi),
\label{eq-global-unfolding-I(gamma2)-vanishing-4}
\end{equation}
where $\tilde{a}=\text{diag}(a, a^*)$. For a subgroup $G\subset \text{GL}_2(F)$, we denote by $\tilde{G}=\left\{ \text{diag}(a, a^*): a\in G\right\}$ its embedding into $\text{Sp}_4(F)$. Using \eqref{eq-global-unfolding-I(gamma2)-vanishing-4}, we see that $I(\gamma_2, \xi)$ is equal to
\begin{equation*}
\begin{split}
   \int\limits_{P_4(F)\backslash \text{Sp}_4(\mathbb{A})}    \sum_{a\in G_{\xi}\backslash \text{GL}_2(F)}        \int\limits_{N_{\gamma_2}(F) \backslash N_{2, 8}(\mathbb{A})}  \varphi(h) \omega_\psi((1, \tilde{a}) \alpha_T(v)(1, h))\Phi(\xi)   f_{\Delta(\tau\otimes \chi_T, 2), s} (\gamma_2  v(1, h))  dvdh.
 \end{split}
\end{equation*}
We then make a change of variables $v(x, y, z)\mapsto v((x, y)\tilde{a}, z)$, and use \eqref{eq-global-unfolding-I(gamma2)-vanishing-3}, to get that $I(\gamma_2, \xi) $ is equal to 
\begin{equation*}
  \int\limits_{P_4(F)\backslash \text{Sp}_4(\mathbb{A})}    \sum_{a\in G_{\xi}\backslash \text{GL}_2(F)}        \int\limits_{N_{\gamma_2}(F)\backslash N_{2, 8}(\mathbb{A})}  \varphi(h) \omega_\psi( \alpha_T(v) (1, \tilde{a}) (1, h))\Phi(\xi)   f_{\Delta(\tau\otimes \chi_T, 2), s} (\gamma_2  v (1, \tilde{a})(1, h))  dvdh.
\end{equation*}
Now we use the automorphy of $\varphi$ and then collapse the integral over $P_4(F)\backslash \text{Sp}_4(\mathbb{A})$ with the summation over $G_{\xi}\backslash \text{GL}_2(F)$,
to obtain
\begin{equation*}
 I(\gamma_2, \xi)= \int\limits_{\tilde{G}_\xi N_4(F)\backslash \text{Sp}_4(\mathbb{A})}            \int\limits_{N_{\gamma_2}(F)\backslash N_{2, 8}(\mathbb{A})}  \varphi(h) \omega_\psi( \alpha_T(v)   (1, h))\Phi(\xi)   f_{\Delta(\tau\otimes \chi_T, 2), s} (\gamma_2  v  (1, h))  dvdh.
\end{equation*}
Note that $N_4(F)$ is a normal subgroup of $\tilde{G}_\xi N_4(F)$. We see that 
\begin{equation*}
\begin{split}
&I(\gamma_2, \xi)  \\
=& \int\limits_{\tilde{G}_\xi N_4(\mathbb{A})\backslash \text{Sp}_4(\mathbb{A})}   \int\limits_{N_4(F)\backslash N_4(\mathbb{A})}          \int\limits_{N_{\gamma_2}(F)\backslash N_{2, 8}(\mathbb{A})}  \varphi(n h) \omega_\psi( \alpha_T(v)   (1, n h))\Phi(\xi)   f_{\Delta(\tau\otimes \chi_T, 2), s} (\gamma_2  v  (1, n h))  dvdndh \\ 
=& \int\limits_{\tilde{G}_\xi N_4(\mathbb{A})\backslash \text{Sp}_4(\mathbb{A})}   \int\limits_{N_4(F)\backslash N_4(\mathbb{A})}          \int\limits_{N_{\gamma_2}(F)\backslash N_{2, 8}(\mathbb{A})} \\
&   \ \ \ \ \ \ \ \ \varphi(n h) \omega_\psi( (1, n) \alpha_T(v ((x, y)n, z))   (1,  h))\Phi(\xi)   f_{\Delta(\tau\otimes \chi_T, 2), s} (\gamma_2 (1, n)  v((x, y)n, z)  (1,  h))  dvdndh.
\end{split}    
\end{equation*}
Then we make a change of variables $v(x, y, z)\mapsto v((x, y)n^{-1}, z)$ and use \eqref{eq-global-unfolding-I(gamma2)-vanishing-1} and \eqref{eq-global-unfolding-I(gamma2)-vanishing-2} to obtain
\begin{equation*}
\begin{split}
I(\gamma_2, \xi) = \int\limits_{\tilde{G}_\xi N_4(\mathbb{A})\backslash \text{Sp}_4(\mathbb{A})}   \int\limits_{N_4(F)\backslash N_4(\mathbb{A})}          \int\limits_{N_{\gamma_2}(F)\backslash N_{2, 8}(\mathbb{A})}   \varphi(n h) \omega_\psi(  \alpha_T(v )   (1,  h))\Phi(\xi)   f_{\Delta(\tau\otimes \chi_T, 2), s} (\gamma_2   v  (1,  h))  dvdndh.
\end{split}    
\end{equation*}
As in the case of $I(\gamma_2, 0)$, we obtain
\begin{equation*}
  \int\limits_{N_4(F)\backslash N_4(\mathbb{A})} \varphi(nh)dn  
\end{equation*}
as an inner integration, which is zero by the cuspidality of $\varphi$. Thus $I(\gamma_2, \xi)=0$.
\end{proof}

We have proved that 
\begin{equation*}
 \mathcal{Z}( \varphi,   \theta_{\psi}^\Phi   , E(\cdot, f_{\Delta(\tau\otimes \chi_T, 2), s})) = I(\gamma_2, I_2). 
\end{equation*}
Note that $\tilde{G}_{I_2}=\{I_4\}$. We see that
\begin{equation*}
\begin{split}
& \mathcal{Z}( \varphi,   \theta_{\psi}^\Phi   , E(\cdot, f_{\Delta(\tau\otimes \chi_T, 2), s})) \\
=&     \int\limits_{N_4(F)\backslash \text{Sp}_4(\mathbb{A})}         \int\limits_{N_{\gamma_2}(F)\backslash N_{2, 8}(\mathbb{A})}  \varphi(h) \omega_\psi(\alpha_T(v)(1, h))\Phi(I_2)   f_{\Delta(\tau\otimes \chi_T, 2), s} (\gamma_2  v(1, h))  dvdh \\
=&     \int\limits_{N_4(\mathbb{A})\backslash \text{Sp}_4(\mathbb{A})}     \int\limits_{N_4(F)\backslash N_4(\mathbb{A})}       \int\limits_{N_{\gamma_2}(F)\backslash N_{2, 8}(\mathbb{A})}  \varphi( n h) \omega_\psi(\alpha_T(v)(1,  n h))\Phi(I_2)   f_{\Delta(\tau\otimes \chi_T, 2), s} (\gamma_2  v(1, n h))  dvdndh.
\end{split}
\end{equation*}
Note that for $n=\left(\begin{smallmatrix} I_2 & z \\ & I_2\end{smallmatrix}\right)\in N_4(\mathbb{A})$, we have
\begin{equation}
\begin{split}
  \omega_\psi((1, n)  \alpha_T(v)(1, h))\Phi(I_2) &= \psi \left( \text{tr}\left( T z \right)\right)   \omega_\psi( \alpha_T(v)(1, h))\Phi(I_2).
\end{split}
\label{eq-global-unfolding-Weil-action-1}
\end{equation}
Making a change of variables $v(x, y, z)\mapsto v((x, y)n^{-1}, z)$ and using \eqref{eq-global-unfolding-I(gamma2)-vanishing-2} and  \eqref{eq-global-unfolding-Weil-action-1}, we see that
\begin{equation*}
\begin{split}
  &\mathcal{Z}( \varphi,   \theta_{\psi}^\Phi   , E(\cdot, f_{\Delta(\tau\otimes \chi_T, 2), s})) \\
  =&     \int\limits_{N_4(\mathbb{A})\backslash \text{Sp}_4(\mathbb{A})}       \int\limits_{N_{\gamma_2}(F)\backslash N_{2, 8}(\mathbb{A})}  \varphi_{\psi, T}( h) \omega_\psi(\alpha_T(v)(1,   h))\Phi(I_2)   f_{\Delta(\tau\otimes \chi_T, 2), s} (\gamma_2  v(1,  h))  dvdh \\
  =&     \int\limits_{N_4(\mathbb{A})\backslash \text{Sp}_4(\mathbb{A})}       \int\limits_{N_{\gamma_2} (\mathbb{A})\backslash N_{2, 8}(\mathbb{A})} \int\limits_{N_{\gamma_2}(F)\backslash N_{\gamma_2}(\mathbb{A})}  \varphi_{\psi, T}( h) \omega_\psi(\alpha_T(v_0) \alpha_T(v)(1,   h))\Phi(I_2)   f_{\Delta(\tau\otimes \chi_T, 2), s} (\gamma_2 v_0  v(1,  h))  dv_0 dvdh.
\end{split}
\end{equation*}
Recall that 
\begin{equation*}
    N_{\gamma_2}=\left\{ v(0,y, 0)\in N_{2,8}\right\}, N_{2,8}^0=\left\{ v(x,0,z)\in N_{2,8}\right\}.
\end{equation*}
For fixed $v\in N_{2,8}(\mathbb{A})$ and $h\in \text{Sp}_4(\mathbb{A})$, we have
\begin{equation*}
\begin{split}
    &\int\limits_{N_{\gamma_2}(F)\backslash N_{\gamma_2}(\mathbb{A})} \omega_\psi(\alpha_T(v_0) \alpha_T(v)(1,   h))\Phi(I_2)   f_{\Delta(\tau\otimes \chi_T, 2), s} (\gamma_2 v_0  v(1,  h)) dv_0 \\
   = &  \omega_\psi( \alpha_T(v)(1,   h))\Phi(I_2) \int\limits_{\text{Mat}_2(F)\backslash \text{Mat}_2(\mathbb{A})} f_{\Delta(\tau\otimes \chi_T, 2), s} \left(    \left(\begin{smallmatrix}&I_2&&\\I_2 &&&\\&&&I_2\\&&I_2&
     \end{smallmatrix}\right) \gamma_2 \left(\begin{smallmatrix} I_2 &&y&\\ &I_2 &&y^*\\ &&I_2&\\ &&&I_2\end{smallmatrix}\right)   v(1,  h) \right) \psi(\text{tr}(2Ty)) dy\\
        = &  \omega_\psi( \alpha_T(v)(1,   h))\Phi(I_2) \int\limits_{\text{Mat}_2(F)\backslash \text{Mat}_2(\mathbb{A})} f_{\Delta(\tau\otimes \chi_T, 2), s} \left(     \left(\begin{smallmatrix} I_2 &-J_2 {}^t y J_2&&\\ &I_2 &&\\ &&I_2&y\\ &&&I_2\end{smallmatrix}\right) \gamma   v(1,  h) \right) \psi(\text{tr}(2Ty)) dy \\
                = &  \omega_\psi( \alpha_T(v)(1,   h))\Phi(I_2) \int\limits_{\text{Mat}_2(F)\backslash \text{Mat}_2(\mathbb{A})} f_{\Delta(\tau\otimes \chi_T, 2), s} \left(     \left(\begin{smallmatrix} I_2 &y&&\\ &I_2 &&\\ &&I_2&y^*\\ &&&I_2\end{smallmatrix}\right) \gamma   v(1,  h) \right) \psi^{-1}(\text{tr}(2Ty)) dy \\
                =&  \omega_\psi( \alpha_T(v)(1,   h))\Phi(I_2) f_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}(\gamma v (1, h)).
\end{split}
\end{equation*}
Thus, we obtain \eqref{eq-thm-global-integral-unfolding-final}. We have completed the proof of Theorem~\ref{theorem-global-unfolding}.



\section{The unramified computation} \label{section-Unramified computation}

In this section, we carry out the local unramified computation. Henceforth until the end of Section~\ref{section-Ramified computation}, 
we drop the reference to the local place $\nu$ to ease notation. Throughout Section~\ref{section-Unramified computation}, we let $F$ be a non-archimedean local field with ring $\mathcal{O}_F$ of integers, with a fixed  uniformizer $\varpi$. Let $q$ be the cardinality of the residue field. We assume that the residual characteristic is not equal to $2$ or $3$. The absolute value $|\cdot |$ on $F$ is normalized so that $|\varpi|=q^{-1}$. We fix a  non-trivial additive unramified character $\psi$ of $F$. For any $a\in F^\times$, the character $\psi_a$ is defined by $\psi_a(x)=\psi(ax)$. The local Hilbert symbol is denoted by $(\ , \ )_F$. Let $T_0=\text{diag}(t_1, t_2)$, $T=J_2 T_0$, and we assume that the diagonal coordinates of $T_0$ are in $\mathcal{O}_F^\times$. $\chi_T$ is the quadratic character on $F^\times$ defined by $\chi_T(a)=(a, \det(T))_F$. 
Given a character $\chi$ on $F^\times$, we extend it to a character on $\text{GL}_n(F)$ by compositing it with the determinant map, and we still denote it by $\chi$, so that $\chi=\chi\circ \det$ is a character on $\text{GL}_n(F)$.
Let $\Phi^0=\textbf{1}_{\text{Mat}_2(\mathcal{O}_F)}$ be the characteristic function of $\text{Mat}_2(\mathcal{O}_F)$. Let $(\pi, V_\pi)$ be an irreducible admissible unramified representation of $\text{Sp}_4(F)$, with a non-zero unramified vector $v_0\in V_\pi$. 
Let $(\tau, V_\tau)$ be an irreducible unramified principle series representation $\text{Ind}_{\text{B}_{\text{GL}_2}(F)}^{\text{GL}_2(F)}(\chi_1 \otimes \chi_2)$, where $\chi_1, \chi_2$ are unramified quasi-characters of $F^\times$. 






\subsection{Preliminaries for the unramified computation}\label{Preliminaries for the unramified computation}

In this subsection we prove a relation between unramified sections belonging to different induced representations that we will use later. 

Recall that the representation $\Delta(\tau\otimes \chi_T, 2)$ is the local Speh representation of $\text{GL}_4(F)$, given by (see Proposition~\ref{proposition-CFGK-local-Speh})
\begin{equation}
\Delta(\tau\otimes\chi_T, 2)=\text{Ind}_{P_{(2^2)}(F)}^{\text{GL}_4(F)}(\chi_1 \chi_T \otimes \chi_2 \chi_T).
\label{eq-local-Speh-representation-GL4}
\end{equation}
This representation affords a unique non-zero linear functional $\Lambda$ on $\Delta(\tau\otimes \chi_T, 2)$ such that 
$$
\Lambda\left(\Delta(\tau\otimes \chi_T, 2)\left(\begin{smallmatrix}
I_2 &Y\\
&I_2
\end{smallmatrix}\right) \xi \right) =\psi(\text{tr}(Y))\Lambda(\xi).
$$
Put $$w_{2,2}=\left(\begin{smallmatrix} & I_2\\I_2 & \end{smallmatrix}\right)\in \text{GL}_4.$$
Then $\Lambda$ can be realized by (see  \cite[(3.4)]{CaiFriedbergGinzburgKaplan2019})
\begin{equation}
\xi  \mapsto  \int\limits_{U_{(2^2)}(F)} \xi(w_{2,2} u)\psi^{-1}(u)du.
\label{eq-local-Speh-linear-functional-explicit-GL4-psi}
\end{equation}
The corresponding unique model $\mathcal{W}( \tau\otimes \chi_T, 2, \psi)$ consists of complexed-valued functions $W_\xi$ on $\text{GL}_4(F)$ of the form 
\begin{equation*}
    W_\xi(g)=\Lambda( \Delta(\tau\otimes \chi_T, 2)(g)\xi)
\end{equation*} where $\xi\in \Delta(\tau\otimes \chi_T, 2)$. To simplify notation, we will also write $g\cdot \xi$ for $\Delta(\tau\otimes \chi_T, 2)(g)\xi$.


Let $\psi_{2T}$ be the character on $U_{(2^2)}(F)$ defined by
$$
\psi_{2T} \left(\begin{smallmatrix} I_2 & Y \\&I_2\end{smallmatrix}\right) =\psi(\text{tr}(2TY)). 
$$
We also have a unique model $\mathcal{W}( \tau\otimes \chi_T, 2, \psi_{2T})\subset  \text{Ind}_{U_{(2^2)}(F)}^{\text{GL}_4(F)}(\psi_{2T})$, corresponding to the linear functional
\begin{equation}
\xi  \mapsto  \int\limits_{U_{(2^2)}(F)} \xi(w_{2,2} u)\psi_{2T}^{-1}(u)du.
\label{eq-local-Speh-linear-functional-explicit-GL4-psi-2T}
\end{equation}
More generally, for any $g_1, g_2\in \text{GL}_2(F)$, we define the character $\psi_{2g_1 T g_2^{-1}}$ on $U_{(2^2)}(F)$ by
\begin{equation*}
   \psi_{2g_1 T g_2^{-1}}\left(\begin{smallmatrix}I_2 &Y\\ &I_2\end{smallmatrix}\right)=\psi(\text{tr}(2g_1 T g_2^{-1}Y)),
\end{equation*}
and we get a unique model $\mathcal{W}( \tau\otimes \chi_T, 2, \psi_{2g_1 T g_2^{-1}})$ corresponding to the character  $\psi_{2g_1 T g_2^{-1}}$ and the linear functional
\begin{equation*}
 \xi  \mapsto  \int\limits_{U_{(2^2)}(F)} \xi( w_{2,2}  u)\psi_{2g_1 T g_2^{-1}}^{-1}(u)du.
\end{equation*}


We have the following result. 

\begin{lemma}
Let $W_\xi\in \mathcal{W}(\tau\otimes\chi_T, 2, \psi_{2T})$ be the function corresponding to $\xi\in \Delta(\tau\otimes\chi_T, 2)$ and the linear functional given by \eqref{eq-local-Speh-linear-functional-explicit-GL4-psi-2T}. Let $g_1, g_2\in \text{GL}_2(F)$. There exists some $W^{g_1,g_2}_\xi\in  \mathcal{W}(\tau\otimes\chi_T, 2, \psi_{2g_2^{-1}T g_1 })$ corresponding to $\xi$
such that for any $g\in \text{GL}_4(F)$, we have
\begin{equation}
W_\xi\left( \left(\begin{smallmatrix}g_1 &\\
 &g_2\end{smallmatrix}\right) g    \right)=\left| \frac{\det(g_1)}{\det(g_2)} \right|  \chi_1(\det(g_2)) \chi_T(\det(g_2)) \chi_2(\det(g_1)) \chi_T(\det(g_1)) W^{g_1, g_2}_\xi(g).
\end{equation}
Moreover, if $W_\xi$ is unramified (i.e., $\xi$ is unramified), then $W_\xi^{g_1, g_2}$ is also unramified. 
\label{lemma-local-Speh-model-equivariance-GL4-different-characters}
\end{lemma}



\begin{proof}
We realize $W_\xi$ through \eqref{eq-local-Speh-linear-functional-explicit-GL4-psi-2T}, i.e., $W_\xi(g)=\Lambda(g \cdot \xi)$ where $\Lambda$ is the linear functional defined in \eqref{eq-local-Speh-linear-functional-explicit-GL4-psi-2T}. We have
\begin{equation*}
\begin{split}
W_\xi\left( \left(\begin{smallmatrix}g_1 &\\ &g_2\end{smallmatrix}\right) g    \right)   &        =\int\limits_{U_{(2^2)}(F)} g\cdot \xi \left( w_{2,2} u \left(\begin{smallmatrix}g_1 &\\&g_2\end{smallmatrix}\right)  \right)\psi_{2T}^{-1}(u)du\\
 &             =\int\limits_{\text{Mat}_{2}(F)} g\cdot \xi \left( w_{2,2}  \left(\begin{smallmatrix}I_2&Y \\&I_2\end{smallmatrix}\right) \left(\begin{smallmatrix}g_1 &\\&g_2\end{smallmatrix}\right)  \right)\psi^{-1}(\text{tr}(2TY))dY \\
  &             =\int\limits_{\text{Mat}_{2}(F)} g\cdot \xi \left( w_{2,2} \left(\begin{smallmatrix}g_1 &\\&g_2\end{smallmatrix}\right) \left(\begin{smallmatrix}I_2&g_1^{-1}Y g_2\\ &I_2\end{smallmatrix}\right)   \right)\psi^{-1}(\text{tr}(2TY))dY\\
 &             =\int\limits_{\text{Mat}_{2}(F)} g\cdot \xi \left( \left(\begin{smallmatrix}g_2 &\\&g_1\end{smallmatrix}\right) w_{2,2} \left(\begin{smallmatrix}I_2&g_1^{-1}Y g_2\\ &I_2\end{smallmatrix}\right)   \right)\psi^{-1}(\text{tr}(2TY))dY.
\end{split}
\end{equation*}
By a change of variable $Y\mapsto g_1Yg_2^{-1}$, $dY\mapsto  |\det(g_1)|^2 |\det(g_2)|^{-2}dY$, we obtain 
\begin{equation*}
\begin{split}
W_\xi\left( \left(\begin{smallmatrix}g_1 &\\ &g_2\end{smallmatrix}\right) g    \right)        =   \left| \frac{\det(g_1)}{\det(g_2)} \right|^2    \int\limits_{\text{Mat}_{2}(F)} g\cdot \xi \left( \left(\begin{smallmatrix}g_2 &\\&g_1\end{smallmatrix}\right) w_{2,2} \left(\begin{smallmatrix}I_2&Y\\ &I_2\end{smallmatrix}\right)   \right)\psi^{-1}(\text{tr}(2Tg_1 Yg_2^{-1}))dY .
\end{split}
\end{equation*}
Since $g\cdot \xi\in \Delta(\tau\otimes \chi_T, 2)$, we have
\begin{equation*}
g\cdot \xi \left( \left(\begin{smallmatrix}g_2 &\\&g_1\end{smallmatrix}\right)  w_{2,2} \left(\begin{smallmatrix}I_2&Y\\ &I_2\end{smallmatrix}\right)   \right) = \chi_1(\det(g_2))\chi_T(\det(g_2)) \chi_2(\det(g_1))\chi_T(\det(g_1))   \left| \frac{\det(g_2)}{\det(g_1)} \right| g\cdot \xi \left(  w_{2,2} \left(\begin{smallmatrix}I_2&Y\\ &I_2\end{smallmatrix}\right)   \right).
\end{equation*}
Now take
$$
W_\xi^{g_1, g_2}(g)= \int\limits_{\text{Mat}_{2}(F)} g\cdot \xi \left( w_{2,2} \left(\begin{smallmatrix}I_2&Y \\&I_2\end{smallmatrix}\right)   \right)\psi^{-1}(\text{tr}(2 g_2^{-1} Tg_1 Y))dY .
$$
The result follows. 
\end{proof}





We realize $\text{Ind}_{P_8(F)}^{\text{Sp}_8(F)}(\mathcal{W}( \tau\otimes \chi_T, 2, \psi_{2T})|\det|^s)$ in the space  of smooth functions $f_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}$ on $\text{Sp}_8(F)$ which take values in the model $\mathcal{W}(\tau\otimes \chi_T, 2,\psi_{2T})$, so we may regard $f_{W(\tau\otimes \chi_T, 2, \psi_{2T}), s}(m,g)$ as a function of two variables where $m\in \text{GL}_4(F)$, $g\in \text{Sp}_8(F)$,   satisfying
$$
f_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}(m, \hat{a} ug)= \delta_{P_8}^{\frac{1}{2}}(\hat{a})   |\det(a)|^{s} f_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}(ma, g),
$$
where $\hat{a}=\text{diag}(a, a^*)\in M_8(F), u\in N_8(F)$.
Here $\delta_{P_8}(\hat{a})=|\det(a)|^{5}$.
To ease notation, we also re-denote
$$
f_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}(g)=f_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}(I_4, g).
$$
Let $f^0_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}$ be the unramified section in $\text{Ind}_{P_8(F)}^{\text{Sp}_8(F)}(\mathcal{W}( \tau\otimes \chi_T, 2, \psi_{2T})|\det|^s)$, such that its value at identity is equal to
\begin{equation*}
    \frac{d_{\tau}^{\rm Sp_{16}}(s)}{d_{\tau\otimes\chi_T}^{\rm Sp_{8}}(s)},
\end{equation*}
where
\begin{equation*}
         d_{\tau}^{\rm Sp_{16}}(s) =   L( s+\frac{5}{2}, \tau)     \prod_{1\le j \le 2} L(2s+2j, \tau, \text{Ext}^2)L(2s+2j-1, \tau, \text{Sym}^2), 
\end{equation*}
\begin{equation*}
           d_{\tau_\nu\otimes \chi_T}^{\rm Sp_{8}}(s) =L(s+\frac{3}{2}, \tau\otimes\chi_T)L(2s+2, \tau\otimes\chi_T, \text{Ext}^2) L(2s+1, \tau\otimes\chi_T, \text{Sym}^2).
\end{equation*}
This is a meromorphic function in $s$
(see Section~\ref{subsection-non-unique-models-and-the-new-way-method}).
Then we have
\begin{equation}
\begin{split}
f^0_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}\left(    m u g  \right)
&=\delta_{P_8}^{\frac{1}{2}}(m) |\det(a_m)|^{s}  f^0_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}(a_m, g) \\
&=  |\det(a_m)|^{s+\frac{5}{2}} f^0_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}(a_m, g)      
\label{eq-local-unramified-section-Sp8-property1}
\end{split}
\end{equation}
where $m=\left(\begin{smallmatrix}
a_m &\\
&a_m^*
\end{smallmatrix}\right)\in M_8(F), u\in N_8(F), g\in \text{Sp}_8(F).$
We also have
\begin{equation}
\begin{split}
f^0_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}\left(    \left(\begin{smallmatrix}
I_2 &Y & &\\
 & I_2 & &\\
& &I_2 &-J_2 {}^t Y J_2\\
&& & I_2
\end{smallmatrix}\right) g  \right)=\psi(\text{tr}(2 TY))f^0_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}\left(   g \right) 
\label{eq-local-unramified-section-Sp8-property3}
\end{split}
\end{equation}
for all $Y\in \text{Mat}_2(F), g\in \text{Sp}_8(F)$, due to the equivariance property of elements in $\mathcal{W}( \tau\otimes \chi_T, 2, \psi_{2T})$. Set 
 \begin{equation*}    
 f^*_{\mathcal{W}(\tau\otimes \chi_{T}, 2, \psi_{2T}), s}(g )= d_{\tau\otimes\chi_T}^{\rm Sp_8}(s) f^0_{\mathcal{W}(\tau\otimes \chi_{T}, 2, \psi_{2T}), s}(g).
 \end{equation*}


As a consequence of Lemma \ref{lemma-local-Speh-model-equivariance-GL4-different-characters}, we have the following relation between unramified sections belonging to different induced representations. 
\begin{lemma}
Let $g_1, g_2\in \text{GL}_2(F)$. Then there exists an unramified section $f^0_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2g_2^{-1}Tg_1}), s}$ in $\text{Ind}_{P_8(F)}^{\text{Sp}_8(F)}(\mathcal{W}(\tau\otimes\chi_T, 2, \psi_{2g_2^{-1}Tg_1})|\det|^s )$, which is determined by the section $f^0_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}$, such that, 
for any
 $g\in \text{Sp}_8(F)$, we have
\begin{equation}
\begin{split}
&f^0_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}\left(  \left(\begin{smallmatrix}
g_1 &&&\\
&g_2 && \\
&&g_2^*& \\
&&&g_1^*
\end{smallmatrix}\right)g \right) \\
 = & |\det(g_1)|^{s+\frac{7}{2}} |\det(g_2)|^{s+\frac{3}{2}}  \chi_1(\det(g_2))\chi_2(\det(g_1))  \chi_T(\det(g_1 g_2))  f^0_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2g_2^{-1}Tg_1}), s}\left(  g \right).
\end{split}
\label{eq-lemma-local-unramified-section-Sp8-property5}
\end{equation}
\label{lemma-local-unramified-section-Sp8-property5}
\end{lemma}




\begin{proof}
We have
\begin{equation*}
\begin{split}
                    &f^0_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s}\left(  \left(\begin{smallmatrix}
g_1 &&&\\
&g_2 && \\
&&g_2^*& \\
&&&g_1^*
\end{smallmatrix}\right)g\right) \\
 =&                        \delta_{P_8}^{\frac{1}{2}}\left( \left(\begin{smallmatrix}
g_1 &&&\\
&g_2 && \\
&&g_2^*& \\
&&&g_1^*
\end{smallmatrix}\right) \right)  \left|\det \left(\begin{smallmatrix}
g_1&\\
&g_2 \end{smallmatrix}\right)  \right|^s f^0_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s} \left(  \left(\begin{smallmatrix}
g_1 &\\
&g_2 \end{smallmatrix}\right), g \right)\\
=& |\det(g_1g_2)|^{s+\frac{5}{2}}  f^0_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s} \left( \left(\begin{smallmatrix}
g_1&\\
&g_2 \end{smallmatrix}\right) , g\right).
\end{split}
\end{equation*}
Then by Lemma  \ref{lemma-local-Speh-model-equivariance-GL4-different-characters}, we see that 
\begin{equation*}
\begin{split}
&f^0_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T}), s} \left( \left(\begin{smallmatrix}
g_1&\\
&g_2 \end{smallmatrix}\right), g \right) \\
=&       \left| \frac{\det(g_1)}{\det(g_2)} \right|  \chi_1(\det(g_2)) \chi_T(\det(g_2)) \chi_2(\det(g_1)) \chi_T(\det(g_1))  f^0_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2g_2^{-1}Tg_1}), s}(g),
\end{split}
\end{equation*}
for an unramified section $f^0_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2g_2^{-1}Tg_1}), s}$ in $\text{Ind}_{P_8(F)}^{\text{Sp}_8(F)}(\mathcal{W}(\tau\otimes\chi_T, 2, \psi_{2g_2^{-1}Tg_1})|\det|^s )$. Then \eqref{eq-lemma-local-unramified-section-Sp8-property5} follows. 
\end{proof}
















\subsection{Proof of the unramified computation} 

We start with the explicit determination of the local $L$-function $L(s, \pi\times \tau)$ from  \cite{CaiFriedbergGinzburgKaplan2019}. We introduce more notations. 

Let $t:\text{Sp}_4(F)\times \text{Sp}_4(F) \to \text{Sp}_{16}(F)$ be the embedding given by
\begin{equation*}
(g_1, g_2) \mapsto t(g_1, g_2)= \left(\begin{smallmatrix}
g_1 & & & & \\
      &g_{1,1} & &g_{1,2} & \\
      & &g_2 & &\\
      &g_{1,3} & &g_{1,4} & \\
      & & & &J_4 {}^t g_1^{-1} J_4
\end{smallmatrix}\right)
\label{eq-Sp4xSp4 embedding}
\end{equation*}
where $g_1=\left(\begin{smallmatrix}
g_{1,1} & g_{1,2}\\
g_{1,3} & g_{1,4}
\end{smallmatrix}\right)\in \text{Sp}_4(F), g_2\in \text{Sp}_4(F)$. In particular, for $g\in \text{Sp}_4(F)$,
we have 
\begin{equation*}
t(1, g)= \left(\begin{smallmatrix}
I_6 &&\\
&g&\\
&&I_6
\end{smallmatrix}\right).
\end{equation*}
For $g\in \text{Sp}_4(F)$, we denote
\begin{equation*}
    g^\iota=\left(\begin{smallmatrix}&I_2\\I_2 &\end{smallmatrix}\right) g \left(\begin{smallmatrix}&I_2\\I_2 &\end{smallmatrix}\right).
\end{equation*}
Note that if we write $g=\left(\begin{smallmatrix}
g_{1} & g_{2}\\
g_{3} & g_{4}
\end{smallmatrix}\right)\in \text{Sp}_4(F)$, then  $g^\iota=\left(\begin{smallmatrix}g_{4} & g_{3}\\
g_{2}&g_{1}\end{smallmatrix}\right)$. An elementary matrix calculation shows that for $g_1, g_2\in \text{Sp}_4(F)$, we have
\begin{equation}
t(1, g_1 g_2) t(g_1^\iota , 1) =t(g_1^\iota, g_1) t(1, g_2).
\label{eq-embedding-Sp16-property1}
\end{equation}


We let $\delta\in \text{Sp}_{16}(F)$ be the element
\begin{equation*}
\begin{split}
\delta=\left(\begin{smallmatrix}
0 & I_4 &0&0\\
0 &0&0& I_4\\
-I_4&0&0&0\\
0&I_4 &I_4&0
\end{smallmatrix}\right).
\end{split}
\end{equation*}
Let $N_{4,16}^0(F)$ be the subgroup of $N_{4,16}(F)$ given by
\begin{equation}
\begin{split}
&N_{4,16}^0(F)=\left\{     \left( \begin{smallmatrix} I_4 & x & &z\\ & I_4& &\\&&I_4 & x^* \\&&&I_4\end{smallmatrix}\right) \in \text{Sp}_{16}(F)\right\}  \subset  N_{4,16}(F)=\left\{   u(x, y, z)= 
 \left( \begin{smallmatrix} I_4 & x &y &z\\ & I_4& &y^\prime\\&&I_4 & x^\prime \\&&&I_4\end{smallmatrix}\right)  \in \text{Sp}_{16}(F)    \right\},
\end{split}
\label{eq-unipotent-subgroup-Sp16}
\end{equation}
realizing the quotient $\delta^{-1}P_{16}(F)\delta\cap N_{4,16}(F)\backslash N_{4,16}(F)$.
 The character $\psi_{N_{4,16}}$ on $N_{4,16}(F)$ is defined as 
\begin{equation}
\psi_{N_{4,16}}(u(x, y, z))=\psi(x_{11}+x_{22}+y_{33}+y_{44}), \ \ x=(x_{ij})\in \text{Mat}_{4}(F), y=(y_{ij})\in \text{Mat}_{4}(F),
\end{equation}
where we write $u(x, y, z)\in N_{4,16}(F)$ as in \eqref{eq-unipotent-subgroup-Sp16}.


Recall that $\Delta(\tau, 4)$ is the local Speh representation of $\text{GL}_8(F)$, which affords a unique model $\mathcal{W}(\tau, 4, \psi^{-1})$ with respect to the unipotent subgroup $U_{(4^2)}(F)$ and the character on $U_{(4^2)}(F)$ given by 
\begin{equation*}
    \left(\begin{smallmatrix}I_4 &x\\&I_4\end{smallmatrix}\right)\mapsto \psi^{-1}(\text{tr}(x)).
\end{equation*} 
For $\xi\in \Delta(\tau, 4)$, we let $W_\xi\in \mathcal{W}(\tau, 4, \psi^{-1})$ be the function on $\text{GL}_8(F)$ associated with the vector $\xi$, hence it satisfies the  equivariance property
$$
W_\xi\left( \left(\begin{smallmatrix}
I_4 & x\\
&I_4
\end{smallmatrix}\right) g  \right)=\psi^{-1}(\text{tr}(x))W_\xi(g).
$$


We let $f_{\mathcal{W}(\tau, 4, \psi^{-1}), s}^0\in \text{Ind}_{P_{16}(F)}^{\text{Sp}_{16}(F)}(\mathcal{W}(\tau, 4, \psi^{-1})|\det|^s)$ be the unramified standard section, which is normalized, such that, for $a\in \rm GL_8(F)$, we have
\begin{equation*}
    f_{\mathcal{W}(\tau, 4, \psi^{-1}), s}^0(a;I_{16})=W_{\Delta(\tau, 4)}^0(a),
\end{equation*}
where $W_{\Delta(\tau, 4)}^0$ is the unique unramified function in $\mathcal{W}(\tau, 4, \psi^{-1})$ such that its value at the identity is 1. We re-denote $f_{\mathcal{W}(\tau, 4, \psi^{-1}), s}^0(g)=f_{\mathcal{W}(\tau, 4, \psi^{-1}), s}^0(I_{8};g)$.
The section $f_{\mathcal{W}(\tau, 4, \psi^{-1}), s}^0$ satisfies the property that
\begin{equation}
\begin{split}
f_{\mathcal{W}(\tau, 4, \psi^{-1}), s}^0\left( \left(\begin{smallmatrix}I_4 & x & &\\
&I_4 &&\\
&&I_4 &-J_4 {}^t x J_4\\
&&&I_4\end{smallmatrix}\right) g\right) =\psi^{-1}(\text{tr}(x)) f_{\mathcal{W}(\tau, 4, \psi^{-1}), s}^0\left( g\right).
\end{split}
\label{eq-local-unramified-Sp16-equivariant-property3}
\end{equation}
Recall that  (see Proposition~\ref{proposition-CFGK-equivariance-under-diagonal-embedding}) for any $g_0\in \text{SL}_4(F)$ and $g\in \text{Sp}_{16}(F)$, we have
 \begin{equation}
  f^0_{\mathcal{W}(\tau, 4, \psi^{-1}), s}\left(  \text{diag}(g_0, g_0, g_0^*, g_0^*) g
   \right)   =   f^0_{\mathcal{W}(\tau, 4, \psi^{-1}), s}\left( g \right).
 \label{eq-local-unramified-Sp16-equivariant-property2}
\end{equation}
Moreover, for any $h_0\in \text{Sp}_4(F)$, we have
\begin{equation}
\int\limits_{N_{4,16}^0(F)}   f^0_{\mathcal{W}(\tau, 4, \psi^{-1}), s}\left( 
    \delta u_0 t\left(h_0 g, h_0^{\iota} h \right) \right)\psi^{-1}_{N_{4,16}}(u_0)du_0   =  \int\limits_{N_{4,16}^0(F)}   f^0_{\mathcal{W}(\tau, 4, \psi^{-1}), s}\left( 
    \delta u_0 t\left( g, h \right) \right)\psi^{-1}_{N_{4,16}}(u_0)du_0 ;
 \label{eq-local-unramified-Sp16-equivariant-property1}
\end{equation}
see \cite[p. 1029]{CaiFriedbergGinzburgKaplan2019} or \cite[(2.7)]{GinzburgSoudry2020}. 
Denote
\begin{equation*}
    f_{\mathcal{W}(\tau, 4, \psi^{-1}), s}^*(g)=d_{\tau}^{\rm Sp_{16}}(s)f_{\mathcal{W}(\tau, 4, \psi^{-1}), s}^0(g).
\end{equation*}
Then 
\begin{equation}
\label{eq-local-unramified-sections-equal-at-identity}
    f_{\mathcal{W}(\tau, 4, \psi^{-1}), s}^*(I_{16})=f^*_{\mathcal{W}(\tau\otimes \chi_{T}, 2, \psi_{2T}), s}(I_8 ).
\end{equation}






We write down the unramified local integral of the twisted doubling method. 


\begin{theorem}(Cai-Friedberg-Ginzburg-Kaplan \cite[Theorem 29]{CaiFriedbergGinzburgKaplan2019})
Let $\omega^0_{\pi}$ be the unramified matrix coefficient of $\pi$, normalized so that $\omega^0_{\pi}(I_4)=1$. Then
\begin{equation}
\int\limits_{\text{Sp}_4(F)} \int\limits_{N_{4,16}^0(F)} \omega^0_{\pi}(h)   f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}(\delta u_0 t(1, h) )\psi_{N_{4,16}}^{-1}(u_0)du_0      dh= L(s+\frac{1}{2}, \pi\times \tau) .
\label{eq-Local L function - Twisted Doubling}
\end{equation}
\label{thm-Local L-function-Twisted Doubling}
\end{theorem}


\begin{remark}
We refer the readers to \cite[Proposition 4.8]{GinzburgSoudry2021} for more versions of explicit local integrals, all of which can be deduced from \cite[Theorem 29]{CaiFriedbergGinzburgKaplan2019}. 
\end{remark}


Next, we replace the matrix coefficient $\omega^0_{\pi}(h)$ on the left-hand side of \eqref{eq-Local L function - Twisted Doubling} by $l_{T}(\pi(h)v_0)$, to get the following result.

\begin{lemma}
Let $v_0$ be an unramified vector in $V_\pi$ and let $l_T$ be any linear functional on $V_\pi$ satisfying \eqref{eq-l_T}. Then 
\begin{equation}
\int\limits_{\text{Sp}_4(F)}  \int\limits_{N_{4, 16}^0(F)} l_T(\pi(h) v_0)  f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}(\delta u_0 t(1, h))\psi_{N_{4,16}}^{-1}(u_0)du_0      dh    =   L( s+\frac{1}{2}, \pi\times \tau)   \cdot l_T(v_0) .
\label{eq-Local-L-function-linear-functional}
\end{equation}
\label{lemma-Local-L-function-linear-functional}
\end{lemma}

\begin{proof}
Since $v_0\in V_\pi$ is unramified, the function
\begin{equation*}
h\mapsto \int\limits_{\text{Sp}_4(\mathcal{O}_F)} l_T(\pi(kh) v_0)dk
\end{equation*}
is a function on $\text{Sp}_4(F)$ which is bi-invariant under $\text{Sp}_4(\mathcal{O}_F)$, whose value at identity is $l_T(v_0)$.  It follows that 
\begin{equation*}
 \int\limits_{\text{Sp}_4(\mathcal{O}_F)} l_T(\pi(kh) v_0)dk=l_T(v_0)\omega_{\pi}^0(h).
\end{equation*}
Note that the function 
\begin{equation*}
h\mapsto     \int\limits_{N_{4, 16}^0(F)}   f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}(\delta u_0 t(1, h))\psi_{N_{4,16}}^{-1}(u_0)du_0  
\end{equation*}
is bi-invariant under $\text{Sp}_4(\mathcal{O}_F)$, thus we obtain
\begin{equation*}
\begin{split}
&\int\limits_{\text{Sp}_4(F)}  \int\limits_{N_{4, 16}^0(F)} l_T(\pi(h) v_0)  f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}(\delta u_0 t(1, h))\psi_{N_{4,16}}^{-1}(u_0)du_0      dh  \\
=& \int\limits_{  \text{Sp}_4(\mathcal{O}_F) \setminus \text{Sp}_4(F) }  \int\limits_{\text{Sp}_4(\mathcal{O}_F)}  l_T(\pi( k h) v_0) dk   \int\limits_{N_{4, 16}^0(F)}    f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}(\delta u_0 t(1, h))\psi_{N_{4,16}}^{-1}(u_0)du_0      dh \\
=&l_T(v_0)  \int\limits_{\text{Sp}_4(F)}  \int\limits_{N_{4, 16}^0(F)} \omega_\pi^0(h)  f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}(\delta u_0 t(1, h))\psi_{N_{4,16}}^{-1}(u_0)du_0      dh \\
=& l_T(v_0)  \cdot L( s+\frac{1}{2}, \pi\times \tau). 
\end{split}
\end{equation*}
where we have used Theorem~\ref{thm-Local L-function-Twisted Doubling}  in the last equality.
\end{proof}


Now we prove Theorem~\ref{theorem-unramified-computation}. 

\begin{proof}[Proof of Theorem~\ref{theorem-unramified-computation}]
By comparing \eqref{eq-local-unramified-identity} with \eqref{eq-Local-L-function-linear-functional}, it suffices to show that 
\begin{equation}
\mathcal{Z}^*(l_T, s)=\int\limits_{\text{Sp}_4(F)} \int\limits_{N_{4,16}^0(F)} l_T(\pi(h)v_0)   f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}(\delta u_0 t(1, h) )\psi_{N_{4,16}}^{-1}(u_0)du_0      dh  .
\label{eq-Local-L-function-bridge-between-two-identities}
\end{equation}



We first consider the right-hand side of \eqref{eq-Local-L-function-bridge-between-two-identities}.
By the Iwasawa decomposition,  we see that the right-hand side of \eqref{eq-Local-L-function-bridge-between-two-identities} is equal to 
 \begin{equation*}
    \int\limits_{\text{Sp}_4(\mathcal{O}_F)} \int\limits_{M_4(F)} \int\limits_{N_4(F)}      \int\limits_{N_{4,16}^0(F)}   l_T(\pi(umk) v_0) f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}(\delta u_0 t(1, umk))\psi^{-1}_{N_{4,16}}(u_0)du_0   \delta_{P_4}^{-1}(m)    dudmdk.
 \end{equation*}
 The $dk$-integration evaluates to 1, so we obtain
 \begin{equation}
   \int\limits_{M_4(F)} \int\limits_{N_4(F)}      \int\limits_{N_{4,16}^0(F)}   l_T(\pi(um) v_0) f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}(\delta u_0 t(1, um))\psi^{-1}_{N_{4,16}}(u_0)du_0   \delta_{P_4}^{-1}(m)    dudm.
 \end{equation}
 Using \eqref{eq-l_T}, we see that  the right-hand side of \eqref{eq-Local-L-function-bridge-between-two-identities} is equal to
\begin{equation}
\begin{split}
                   \int\limits_{\text{GL}_2(F)}           \int\limits_{\text{Mat}_2^0(F)}     \int\limits_{N_{4,16}^0(F)}   l_T\left( \pi   (\hat{a})  v_0 \right)     f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}\left(     \delta u_0 t\left( 1, \left(\begin{smallmatrix}
I_2 & z\\
& I_2
\end{smallmatrix}\right)\hat{a}\right) \right)\psi^{-1}_{N_{4,16}}(u_0)  \psi^{-1}(\text{tr}(Tz))  |\det(a)|^{-3} du_0     dz  da .
\end{split}
\label{eq-integral-l_T-simplification1}
\end{equation}


Using \eqref{eq-local-unramified-Sp16-equivariant-property1}, we see that the inner integration in \eqref{eq-integral-l_T-simplification1} becomes
\begin{equation*}
\begin{split}
&      \int\limits_{N_{4,16}^0(F)}     f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}\left(     \delta u_0 t\left( 1, \left(\begin{smallmatrix}
I_2 & z\\
& I_2
\end{smallmatrix}\right)\hat{a}\right) \right)\psi^{-1}_{N_{4,16}}(u_0) du_0   \\
=&    \int\limits_{N_{4,16}^0(F)}     f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}\left(     \delta u_0 t\left( \left(\begin{smallmatrix}
I_2 & \\
-z& I_2
\end{smallmatrix}\right) , \hat{a}\right) \right)\psi^{-1}_{N_{4,16}}(u_0) du_0    \\
=&    \int\limits_{N_{4,16}^0(F)}     f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}\left(     \delta u_0 \delta^{-1} \delta t\left( \left(\begin{smallmatrix}
I_2 & \\
-z& I_2
\end{smallmatrix}\right) , \hat{a}\right) \delta^{-1} \right)\psi^{-1}_{N_{4,16}}(u_0) du_0 \\
=& \int\limits_{\overline{N}_{4,16}^0(F)}  
f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}\left(  
\overline{u}_0(A, 0, C)
\left(\begin{smallmatrix}
I_2 &&&&\\
&a& &&\\
&&I_8 & &\\
&& & a^* & \\
& & &&I_2
\end{smallmatrix}\right)
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&I_2&&&&&&\\
&&I_2 &&&&&\\
&&z&I_2&&&&\\
&&&&I_2&&&\\
&&&&-z&I_2 &&\\
J_2{}^t a J_2-I_2&0&&&& & I_2 & \\
-z&a-I_2&&&&&&I_2
\end{smallmatrix}\right)
\right) 
\psi(\text{tr}(a_1)) d\overline{u}_0
\end{split}
\end{equation*}
where
\begin{equation*}
\overline{N}_{4,16}^0(F)= \delta N_{4,16}(F) \delta^{-1}=  \left\{ \overline{u}_0(A,0, C)=\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&I_2&&&&&&\\
&&I_2 &&&&&\\
&&&I_2&&&&\\
a_1&a_2&c_1&c_2&I_2&&&\\
a_3&a_4&c_3&c_1^*&&I_2 &&\\
0&0&a_4^*&a_2^*&& & I_2 & \\
0&0& a_3^*&a_1^*&&&&I_2
\end{smallmatrix}\right)
  \right\}.
\end{equation*}

Let $z\in \text{Mat}_2^0(F)$ be fixed. We claim that the function 
\begin{equation}
a \mapsto  \int\limits_{\overline{N}_{4,16}^0(F)}  
f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}\left(  
\overline{u}_0(A, 0, C)
\left(\begin{smallmatrix}
I_2 &&&&\\
&a& &&\\
&&I_8 & &\\
&& & a^* & \\
& & &&I_2
\end{smallmatrix}\right)
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&I_2&&&&&&\\
&&I_2 &&&&&\\
&&z&I_2&&&&\\
&&&&I_2&&&\\
&&&&-z&I_2 &&\\
J_2{}^t a J_2-I_2&0&&&& & I_2 & \\
-z&a-I_2&&&&&&I_2
\end{smallmatrix}\right)
\right) 
\psi(\text{tr}(a_1)) d\overline{u}_0
\label{eq-local-unramified-Sp16-inner-integral-support-in-a}
\end{equation}
is supported in $\text{GL}_2(F)\cap \text{Mat}_2(\mathcal{O}_F)$. To prove this, we use the right translations by the following elements fixing the section $f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}$, for all $r\in \text{Mat}_2(\mathcal{O}_F)$, \begin{equation*}
\begin{split}
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&I_2&&r&&&&\\
&&I_2 &&&&&\\
&&&I_2&&&&\\
&&&&I_2&&-J_2{}^t r J_2&\\
&&&&&I_2 &&\\
&&&&& & I_2 & \\
&&&&&&&I_2
\end{smallmatrix}\right).
\end{split}
\end{equation*}
We conjugate the above matrix to the left and obtain
\begin{equation*}
\begin{split}
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&I_2&-arz&ar&&&&\\
&&I_2 &&&&&\\
&&&I_2&&&&\\
&&&&I_2&&-J_2{}^t r J_2&\\
&&&&&I_2 &J_2 {}^t (arz) J_2&\\
&&&&& & I_2 & \\
&&&&&&&I_2
\end{smallmatrix}\right),
\end{split}
\end{equation*}
which contributes $\psi^{-1}(\text{tr}(ar))$. The change of variables in $\overline{u}_0$ contributes $\psi^{-1}(\text{tr}(ar))\psi(\text{tr}(r))=\psi^{-1}(\text{tr}(ar))$. Thus, in order for \eqref{eq-local-unramified-Sp16-inner-integral-support-in-a} to be non-vanishing, we must have $\psi^{-1}(\text{tr}(2ar))=1$ for all $r\in \text{Mat}_2^0(F)$, and hence we must have $a\in \text{Mat}_2(\mathcal{O}_F)$. This shows that the function \eqref{eq-local-unramified-Sp16-inner-integral-support-in-a} is supported in $\text{GL}_2(F)\cap \text{Mat}_2(\mathcal{O}_F)$.

Note that for $a\in \text{GL}_2(F)\cap \text{Mat}_2(\mathcal{O}_F)$, the inner integration in \eqref{eq-integral-l_T-simplification1} equals
\begin{equation*}
\begin{split}
   \int\limits_{\overline{N}_{4,16}^0(F)}  
f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}\left(  
\overline{u}_0(A, 0, C)
\left(\begin{smallmatrix}
I_2 &&&&\\
&a& &&\\
&&I_8 & &\\
&& & a^* & \\
& & &&I_2
\end{smallmatrix}\right)
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&I_2&&&&&&\\
&&I_2 &&&&&\\
&&z&I_2&&&&\\
&&&&I_2&&&\\
&&&&-z&I_2 &&\\
 &&&&& & I_2 & \\
-z& &&&&&&I_2
\end{smallmatrix}\right)
\right) 
\psi(\text{tr}(a_1)) d\overline{u}_0 .
\end{split}
\end{equation*}
For fixed $a\in \text{GL}_2(F)\cap \text{Mat}_2(\mathcal{O}_F)$ and $z\in \text{Mat}_2^0(F)$, we consider the following function on $a_2\in \text{Mat}_2(F)$,
\begin{equation}
\begin{split}
 \int\limits  
f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}\left(  
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&I_2&&&&&&\\
&&I_2 &&&&&\\
&&&I_2&&&&\\
a_1&a_2&c_1&c_2&I_2&&&\\
a_3&a_4&c_3&c_1^*&&I_2 &&\\
0&0&a_4^*&a_2^*&& & I_2 & \\
0&0& a_3^*&a_1^*&&&&I_2
\end{smallmatrix}\right)
\left(\begin{smallmatrix}
I_2 &&&&\\
&a& &&\\
&&I_8 & &\\
&& & a^* & \\
& & &&I_2
\end{smallmatrix}\right)
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&I_2&&&&&&\\
&&I_2 &&&&&\\
&&z&I_2&&&&\\
&&&&I_2&&&\\
&&&&-z&I_2 &&\\
 &&&&& & I_2 & \\
-z& &&&&&&I_2
\end{smallmatrix}\right)
\right) 
\psi(\text{tr}(a_1)) da_1 da_3 da_4 dC.
\label{eq-local-unramified-Sp16-inner-integral-support-in-a_2}
\end{split}
\end{equation}
This time, we use the left translations by the following elements fixing the section $f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}$ according to \eqref{eq-local-unramified-Sp16-equivariant-property2}, for all $r\in \text{Mat}_2(\mathcal{O}_F)$, 
\begin{equation*}
\begin{split}
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
ar&I_2&&&&&&\\
&&I_2 &&&&&\\
&&ar&I_2&&&&\\
&&&&I_2&&&\\
&&&&-J_2{}^t (ar) J_2&I_2 &&\\
&&&&& & I_2 & \\
&&&&&&-J_2{}^t (ar) J_2&I_2
\end{smallmatrix}\right).
\end{split}
\end{equation*}
We conjugate the above matrices to the right, to obtain matrices of the form
\begin{equation*}
\begin{split}
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
r&I_2&&&&&&\\
&&I_2 &&&&&\\
&&ar&I_2&&&&\\
&&&&I_2&&&\\
&&&&-J_2{}^t (ar) J_2&I_2 &&\\
&&&&& & I_2 & \\
&&&&&&-J_2{}^t r J_2&I_2
\end{smallmatrix}\right),
\end{split}
\end{equation*}
which belong to $\text{Sp}_{16}(\mathcal{O}_F)$ and hence fixing the section $f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}$.
The change of variables in the coordinates $(a_1, a_3, a_4, C)$ produces a factor $\psi(\text{tr}(a_2 ar))$. Therefore, if \eqref{eq-local-unramified-Sp16-inner-integral-support-in-a_2} is non-vanishing, then $a_2 a\in \text{Mat}_2(\mathcal{O}_F)$. Using this, we see that 
\small
\begin{equation*}
\begin{split}
&    \int\limits_{\overline{N}_{4,16}^0(F)}  
f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}\left(  
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&I_2&&&&&&\\
&&I_2 &&&&&\\
&&&I_2&&&&\\
a_1&a_2&c_1&c_2&I_2&&&\\
a_3&a_4&c_3&c_1^*&&I_2 &&\\
0&0&a_4^*&a_2^*&& & I_2 & \\
0&0& a_3^*&a_1^*&&&&I_2
\end{smallmatrix}\right)
\left(\begin{smallmatrix}
I_2 &&&&\\
&a& &&\\
&&I_8 & &\\
&& & a^* & \\
& & &&I_2
\end{smallmatrix}\right)
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&I_2&&&&&&\\
&&I_2 &&&&&\\
&&z&I_2&&&&\\
&&&&I_2&&&\\
&&&&-z&I_2 &&\\
 &&&&& & I_2 & \\
-z& &&&&&&I_2
\end{smallmatrix}\right)
\right) 
\psi(\text{tr}(a_1)) dAdC \\
=&    \int\limits_{\overline{N}_{4,16}^0(F)}  
f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}\left(  
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&I_2&&&&&&\\
&&I_2 &&&&&\\
&&&I_2&&&&\\
a_1&0&c_1&c_2&I_2&&&\\
a_3&a_4&c_3&c_1^*&&I_2 &&\\
0&0&a_4^*&0&& & I_2 & \\
0&0& a_3^*&a_1^*&&&&I_2
\end{smallmatrix}\right)
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&a&&&&&&\\
&&I_2 &&&&&\\
&&z&I_2&&&&\\
&&&&I_2&&&\\
&&&&-z&I_2 &&\\
 &&&&& & a^* & \\
-z& &&&&&&I_2
\end{smallmatrix}\right) 
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&I_2&&&&&&\\
&&I_2 &&&&&\\
&&&I_2&&&&\\
0&a_2 a&0&0&I_2&&&\\
0&0&0&0&&I_2 &&\\
0&0&0&(a_2 a)^*&& & I_2 & \\
0&0& 0&0&&&&I_2
\end{smallmatrix}\right)
\right) 
\psi(\text{tr}(a_1)) dAdC \\
=&  |\det(a)|^{-2}     \int
f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}\left(  
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&I_2&&&&&&\\
&&I_2 &&&&&\\
&&&I_2&&&&\\
a_1&0&c_1&c_2&I_2&&&\\
a_3&a_4&c_3&c_1^*&&I_2 &&\\
0&0&a_4^*&0&& & I_2 & \\
0&0& a_3^*&a_1^*&&&&I_2
\end{smallmatrix}\right) 
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&a&&&&&&\\
&&I_2 &&&&&\\
&&z&I_2&&&&\\
&&&&I_2&&&\\
&&&&-z&I_2 &&\\
 &&&&& & a^* & \\
-z& &&&&&&I_2
\end{smallmatrix}\right)
\right) 
\psi(\text{tr}(a_1)) da_1 da_3 da_4 dC.
\end{split}
\end{equation*}
\normalsize
Thus, the right-hand side of \eqref{eq-Local-L-function-bridge-between-two-identities} is equal to
\begin{equation}
\begin{split}
                   \int\limits_{\text{GL}_2(F)\cap \text{Mat}_2(\mathcal{O}_F)} \int\limits_{\text{Mat}_2^0(F)}      \int\limits_{\overline{N}^1_{4,16}(F)}   l_T\left( \pi   (\hat{a})  v_0 \right)   
&                   f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}\left(  
\overline{u}_1 \cdot
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&a&&&&&&\\
&&I_2 &&&&&\\
&&z&I_2&&&&\\
&&&&I_2&&&\\
&&&&-z&I_2 &&\\
 &&&&& & a^* & \\
-z& &&&&&&I_2
\end{smallmatrix}\right)
\right) 
\\
& \ \ \ \ \ \ \ \ \  \ \ \ \ \ \  \ \ \ \ \ \ \ \   \psi(\text{tr}(a_1))   \psi^{-1}(\text{tr}(Tz)) |\det(a)|^{-5}  
 d\overline{u}_1  dz  da, 
\end{split}
\label{eq-integral-l_T-simplification2}
\end{equation}
where 
\begin{equation*}
\overline{N}^1_{4,16}(F)=    \left\{ 
 \overline{u}_1=   \left(\begin{smallmatrix}
I_2 &&&&&&&\\
&I_2&&&&&&\\
&&I_2 &&&&&\\
&&&I_2&&&&\\
a_1&0&c_1&c_2&I_2&&&\\
a_3&a_4&c_3&c_1^*&&I_2 &&\\
0&0&a_4^*&0&& & I_2 & \\
0&0& a_3^*&a_1^*&&&&I_2
\end{smallmatrix}\right) \in \overline{N}_{4,16}^0(F)
\right\}.
\end{equation*}

Next, we fix $a\in \text{GL}_2(F)\cap \text{Mat}_2(\mathcal{O}_F)$, and consider the function on $z$, given by
\begin{equation}
\begin{split}
\int\limits_{\overline{N}^1_{4,16}(F)}             f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}\left(  
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&I_2&&&&&&\\
&&I_2 &&&&&\\
&&&I_2&&&&\\
a_1&0&c_1&c_2&I_2&&&\\
a_3&a_4&c_3&c_1^*&&I_2 &&\\
0&0&a_4^*&0&& & I_2 & \\
0&0& a_3^*&a_1^*&&&&I_2
\end{smallmatrix}\right) 
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&a&&&&&&\\
&&I_2 &&&&&\\
&&z&I_2&&&&\\
&&&&I_2&&&\\
&&&&-z&I_2 &&\\
 &&&&& & a^* & \\
-z& &&&&&&I_2
\end{smallmatrix}\right)
\right)   \psi(\text{tr}(a_1))   
d\overline{u}_1.
\end{split}
\label{eq-integral-l_T-simplification--3}
\end{equation}
We use the right translations by the following elements fixing the section $f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}$, 
for all $r\in \text{Mat}_2(\mathcal{O}_F)$, \begin{equation*}
\begin{split}
\left(\begin{smallmatrix}
I_2 &&&r&&&&\\
&I_2&&&&&&\\
&&I_2 &&&&&\\
&&&I_2&&&&\\
&&&&I_2&&&-J_2{}^t r J_2\\
&&&&&I_2 &&\\
&&&&& & I_2 & \\
&&&&&&&I_2
\end{smallmatrix}\right).
\end{split}
\end{equation*}
We conjugate the above matrices to the left and obtain
\begin{equation*}
\begin{split}
\left(\begin{smallmatrix}
I_2 &&-rz&r&&&&\\
&I_2&&&&&&\\
&&I_2 &&&&&\\
&&&I_2&&&&\\
&&&&I_2&&&-J_2{}^t r J_2\\
&&&&&I_2 &&J_2{}^t(rz)J_2\\
&&&&& & I_2 & \\
&&&&&&&I_2
\end{smallmatrix}\right),
\end{split}
\end{equation*}
which contribute $\psi(\text{tr}(rz))$. The change of variables in $a_1$ contributes $\psi(\text{tr}(rz))$ as well. In order for \eqref{eq-integral-l_T-simplification--3} to be non-vanishing, we must have $\psi(\text{tr}(2rz))=1$ for all $r\in \text{Mat}_2(\mathcal{O}_F)$.
We see that the function \eqref{eq-integral-l_T-simplification--3} is supported in $z\in \text{Mat}_2^0(\mathcal{O}_F)$, and hence the $dz$-integration in \eqref{eq-integral-l_T-simplification2} evaluates to 1. Thus, 
the right-hand side of \eqref{eq-Local-L-function-bridge-between-two-identities} is equal to
\begin{equation}
\begin{split}
                   \int\limits_{\text{GL}_2(F)\cap \text{Mat}_2(\mathcal{O}_F)}      \int\limits_{\overline{N}^1_{4,16}(F)}   l_T\left( \pi   (\hat{a})  v_0 \right)   
&                   f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}\left(  
\overline{u}_1 \cdot
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&a&&&&&&\\
&&I_2 &&&&&\\
&&&I_2&&&&\\
&&&&I_2&&&\\
&&&&&I_2 &&\\
 &&&&& & a^* & \\
& &&&&&&I_2
\end{smallmatrix}\right)
\right) 
\\
& \ \ \ \ \ \ \ \ \  \ \ \ \ \ \  \ \ \ \ \ \ \ \   \psi(\text{tr}(a_1))    |\det(a)|^{-5}  
 d\overline{u}_1    da.
\end{split}
\label{eq-integral-l_T-simplification--4}
\end{equation}



Next, we consider the inner integration in \eqref{eq-integral-l_T-simplification--4}, and adapt the global argument in \cite[p. 32]{GinzburgSoudry2020} to our local setting.
For $g= \left(\begin{smallmatrix}
 g_1 & g_2 \\
 g_3 & g_4\end{smallmatrix}\right) \in \text{Sp}_4(F)$ with $g_i\in \text{Mat}_2(F)$, we define 
\begin{equation*}
\begin{split}
&\lambda(f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s})(g) \\
=&
\int\limits_{\overline{N}^1_{4,16}(F)}     
   f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}\left(
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&I_2&&&&&&\\
&&I_2 &&&&&\\
&&&I_2&&&&\\
a_1&0&c_1&c_2&I_2&&&\\
a_3&a_4&c_3&c_1^*&&I_2 &&\\
0&0&a_4^*&0&& & I_2 & \\
0&0& a_3^*&a_1^*&&&&I_2
\end{smallmatrix}\right) 
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&g_1&&&&&g_2&\\
&&I_2 &&&&&\\
&&&I_2&&&&\\
&&&&I_2&&&\\
&&&&&I_2 &&\\
 &g_3&&&& & g_4 & \\
& &&&&&&I_2
\end{smallmatrix}\right)
\right) 
  \psi(\text{tr}(a_1))  d\overline{u}_1.
\end{split}
\end{equation*}
The above integral defining $\lambda(f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s})(g) $ is absolutely convergent for $\text{Re}(s)\gg 0$.
We claim that $\lambda(f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s})(g)$ is an unramified section of the induced representation \begin{equation*}
     \text{Ind}_{P_4(F)}^{\text{Sp}_4(F)} ( \mathcal{W}(\tau, 1, \psi^{-1})|\det|^{s+3}).
 \end{equation*}  
To prove this, we need to consider a matrix of the form $\left(\begin{smallmatrix}
A &B\\
&A^*
\end{smallmatrix}\right)\in P_4(F)$. 
 First, we check that $\lambda(f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s})(g)$ is left-invariant under  $\left(\begin{smallmatrix}
I_2 &B\\
&I_2
\end{smallmatrix}\right)$, by conjugating the matrix 
\begin{equation*}
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
& I_2&&&&&B&\\
&&I_2 &&&&&\\
&&&I_2&&&&\\
&&&&I_2&&&\\
&&&&&I_2 &&\\
 & &&&& &I_2 & \\
& &&&&&&I_2
\end{smallmatrix}\right)
\end{equation*}
to the left and do a change of variable in the coordinates $(c_1, c_2, c_3)$. Second, we plug in $g_0=\left(\begin{smallmatrix}
A &\\
&A^*
\end{smallmatrix}\right)$ where $A\in \text{GL}_2(F)$, and conjugate it to the left. We obtain $|\det(A)|^{-2}$ from the change of variable in $a_4$. 
We also obtain a factor of 
$$|\det(A)|^{s} \delta_{P_{16}}^{\frac{1}{2}} (\text{diag}(I_2, A, I_8, A^*, I_2))=|\det(A)|^{s+\frac{9}{2}}$$ 
from the section $f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}$, as well as a factor of 
$$\mathcal{W}(\tau, 1, \psi^{-1})(A)\delta_L^{\frac{1}{2}}(\text{diag}(I_2, A, I_4))=\mathcal{W}(\tau, 1, \psi^{-1})(A)|\det(A)|^2$$ from the action of the underlying inducing representation, where $L$ is the standard parabolic subgroup of $\text{GL}_8$ whose Levi subgroup is isomorphic to $\text{GL}_4\times \text{GL}_4$. Thus, $\left(\begin{smallmatrix}
A &\\
&A^*
\end{smallmatrix}\right)$ is transformed as $ \mathcal{W}(\tau, 1, \psi^{-1})|\det|^{s+3} \delta_{P_4}^{\frac{1}{2}}. $ Finally, $\lambda(f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s})(gk)=\lambda(f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s})(g)$ for any $k\in \text{Sp}_4(\mathcal{O}_F)$ because the section $f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}$ is unramified. This proves the claim. 


Next, we claim that 
\begin{equation}
    \lambda(f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s})\left( 
I_4
\right)= d_{\tau}^{\rm Sp_{16}}(s).
\label{eq-Sp(16)-evaluation-of-local-unramified-integral}
\end{equation}
This can be verified by matrix multiplication, as follows. Specifically, one can use \eqref{eq-local-unramified-Sp16-equivariant-property3}, \eqref{eq-local-unramified-Sp16-equivariant-property2},  and the right-invariance of $f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}$ by $\text{Sp}_{16}(\mathcal{O}_F)$, to show that 
\begin{equation*}
\begin{split}
\lambda(f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s})\left(
I_4
\right) =     
\int\limits_{\overline{N}^1_{4,16}(\mathcal{O}_F)}    
   f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s} 
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&I_2&&&&&&\\
&&I_2 &&&&&\\
&&&I_2&&&&\\
a_1&0&c_1&c_2&I_2&&&\\
a_3&a_4&c_3&c_1^*&&I_2 &&\\
0&0&a_4^*&0&& & I_2 & \\
0&0& a_3^*&a_1^*&&&&I_2
\end{smallmatrix} 
\right) 
  \psi(\text{tr}(a_1))  d\overline{u}_1.
  \end{split}
\end{equation*}
First, we use conjugation by the following elements, for $r\in \text{Mat}_2(\mathcal{O}_F)$, 
\begin{equation*}
\left(\begin{smallmatrix}
I_2 &r&&&&&&\\
& I_2&&&&&&\\
&&I_2 &r&&&&\\
&&&I_2&&&&\\
&&&&I_2&r^*&&\\
&&&&&I_2 &&\\
 & &&&& &I_2 &r^* \\
& &&&&&&I_2
\end{smallmatrix}\right),
\end{equation*}
which produces the character $\psi(\text{tr}(J_2{}^t r J_2 a_3)$, to conclude that 
\begin{equation*}
    a_3\mapsto \int    
   f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}  
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&I_2&&&&&&\\
&&I_2 &&&&&\\
&&&I_2&&&&\\
a_1&0&c_1&c_2&I_2&&&\\
a_3&a_4&c_3&c_1^*&&I_2 &&\\
0&0&a_4^*&0&& & I_2 & \\
0&0& a_3^*&a_1^*&&&&I_2
\end{smallmatrix} 
\right) 
  \psi(\text{tr}(a_1))  da_1 da_4 dC
\end{equation*}
is supported in $\text{Mat}_2(\mathcal{O}_F)$. For the variable $a_1$, we consider other unipotent matrices $g_0\in \text{SL}_4(\mathcal{O}_F)$, and use conjugation by $\text{diag}(g_0, g_0, g_0^*, g_0^*)$, to show that  
\begin{equation*}
    a_1\mapsto \int    
   f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s} 
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&I_2&&&&&&\\
&&I_2 &&&&&\\
&&&I_2&&&&\\
a_1&0&c_1&c_2&I_2&&&\\
0&a_4&c_3&c_1^*&&I_2 &&\\
0&0&a_4^*&0&& & I_2 & \\
0&0&0 &a_1^*&&&&I_2
\end{smallmatrix} 
\right) 
  \psi(\text{tr}(a_1))   da_4 dC
\end{equation*}
is supported in $\text{Mat}_2(\mathcal{O}_F)$. Then we consider the variable $a_4$. This time, we use matrices of the form
\begin{equation*}
\left(\begin{smallmatrix}
I_2 &&&&&&r&\\
& I_2&&&&&&r^*\\
&&I_2 &&&&&\\
&&&I_2&&&&\\
&&&&I_2&&&\\
&&&&&I_2 &&\\
 & &&&& &I_2 & \\
& &&&&&&I_2
\end{smallmatrix}\right)
\end{equation*}
where $r\in \text{Mat}_2(\mathcal{O}_F)$, to conclude that 
\begin{equation*}
    a_4\mapsto \int    
   f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s} 
\left(\begin{smallmatrix}
I_2 &&&&&&&\\
&I_2&&&&&&\\
&&I_2 &&&&&\\
&&&I_2&&&&\\
0&0&c_1&c_2&I_2&&&\\
0&a_4&c_3&c_1^*&&I_2 &&\\
0&0&a_4^*&0&& & I_2 & \\
0&0&0 &0&&&&I_2
\end{smallmatrix} 
\right) 
    dC
\end{equation*}
is supported in $\text{Mat}_2(\mathcal{O}_F)$. The next step is to use matrices of the form
\begin{equation*}
    \left(\begin{smallmatrix}
        I_4 & &r &\\
        & I_4 & &r^* \\
        & & I_4 & \\
        &&&I_4
    \end{smallmatrix}\right),
\end{equation*}
for $r\in \text{Mat}_4(\mathcal{O}_F)$, to conclude that 
\begin{equation*}
    C\mapsto 
   f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s}  
\left(\begin{smallmatrix}
        I_4 & & &\\
        & I_4 & & \\
        & C& I_4 & \\
        &&&I_4
\end{smallmatrix}\right) 
\end{equation*}
is supported in $\text{Mat}_4^0(\mathcal{O}_F)$. Therefore, 
\begin{equation*}
\begin{split}
\lambda(f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s})\left(
I_4
\right) =     
\int\limits_{\overline{N}^1_{4,16}(\mathcal{O}_F)}    
   f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s} 
\left(I_{16}
\right) 
   d\overline{u}_1=  f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s} 
\left(I_{16}
\right) =  d_{\tau}^{\rm Sp_{16}}(s).
  \end{split}
\end{equation*}
This proves \eqref{eq-Sp(16)-evaluation-of-local-unramified-integral}. 
Thus, 
the right-hand side of \eqref{eq-Local-L-function-bridge-between-two-identities} is equal to
\begin{equation}
\begin{split}
                   \int\limits_{\text{GL}_2(F)\cap \text{Mat}_2(\mathcal{O}_F)}        l_T\left( \pi   (\hat{a})  v_0 \right)   
\lambda(f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s})\left( \begin{smallmatrix} a& \\ & a^*\end{smallmatrix}\right)  |\det(a)|^{-5}  
     da.
\end{split}
\label{eq-integral-l_T-simplification--5}
\end{equation}
where
$\lambda(f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s})(g)$ is an unramified section of the induced representation \begin{equation*}
     \text{Ind}_{P_4(F)}^{\text{Sp}_4(F)} ( \mathcal{W}(\tau, 1, \psi^{-1})|\det|^{s+3})
 \end{equation*}
and its value at identity is $\lambda(f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s})(I_4)=d_{\tau}^{\rm Sp_{16}}(s)$.
Thus, it suffices to prove
\begin{equation}
\label{eq-Local-L-function-bridge-between-two-identities-2}
\begin{split}
 \mathcal{Z}^*(l_T, s) =                   \int\limits_{\text{GL}_2(F)\cap \text{Mat}_2(\mathcal{O}_F)}        l_T\left( \pi   (\hat{a})  v_0 \right)   
\lambda(f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s})\left( \begin{smallmatrix} a& \\ & a^*\end{smallmatrix}\right)  |\det(a)|^{-5}  
     da.
\end{split}
\end{equation}




Now we consider $\mathcal{Z}^*(l_T, s)$.
Using the Iwasawa decomposition again, we compute that
\begin{equation*}
\begin{split}
 &\mathcal{Z}^*(l_T, s)\\
=&        \int\limits_{N_4(F)\backslash \text{Sp}_4(F)} \int\limits_{N_{2,8}^0(F)}    l_T(\pi(h)v_0)  \omega_{\psi}\left( \alpha_T(v)(1,h)\right) )\Phi^0(I_2 )
f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi_{2T}), s}( \gamma v (1, h) )    dv   dh   \\
=& \int\limits_{\text{Sp}_4(\mathcal{O}_F)} \int\limits_{\text{GL}_2(F)}   \int\limits_{N_{2,8}^0(F)}  l_T(\pi(\hat{a} k)v_0)   \omega_{\psi}\left( \alpha_T(v)(1,\hat{a}k )\right) )\Phi^0(I_2 )
f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi_{2T}), s}( \gamma v (1, \hat{a} k ) )   |\det(a)|^{-3}  dvdadk.
\end{split}
\end{equation*}
The $dk$-integration evaluates to 1. Thus  $\mathcal{Z}^*(l_T, s)$ is equal to
\begin{equation}
\int\limits_{\text{GL}_2(F)}    \int\limits_{N_{2,8}^0(F)}   l_T(\pi(\hat{a} )v_0)   \omega_{\psi}\left( \alpha_T(v)(1,\hat{a} )\right) )\Phi^0(I_2 )
f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi_{2T}), s}( \gamma v (1, \hat{a}  ) )   |\det(a)|^{-3} dv  da.
\label{eq-local-unramified-LHS-reduction1}
\end{equation}

Recall that $$N_{2,8}^0(F)=\left\{v(x, 0, z)=\left(\begin{smallmatrix}
I_2 &x  &0  & z\\
& I_2 & &0  \\
& &I_2 & -J_2{}^t z J_2\\
& & &I_2
\end{smallmatrix}\right)\in N_{2,8}(F): x\in \text{Mat}_2(F), z\in \text{Mat}_2^0(F)  \right\}.$$
According to the action of the Weil representation, we have
\begin{equation*}
\begin{split}
 \omega_{\psi}\left( \alpha_T(v(x,0,z))(1,\hat{a} )\right) )\Phi^0(I_2 )   &      =\omega_{\psi}\left(  (1,\hat{a} )  \alpha_T(v(xa,0,z))\right) )\Phi^0(I_2 )\\
 &       =\chi_T(\det(a)) |\det(a)|   \omega_{\psi}\left(   \alpha_T(v(xa,0,z))\right) )\Phi^0(a).
\end{split}
\end{equation*}
Moreover, by direct matrix computation we see that
\begin{equation*}
 v(x,0,z)  \cdot  (1, \hat{a}  ) = (1, \hat{a}) \cdot  v(xa, 0, z).\end{equation*}
Then the inner integration of \eqref{eq-local-unramified-LHS-reduction1} becomes
\begin{equation*}
\begin{split}
       &\int\limits_{N_{2,8}^0(F)}    \omega_{\psi}\left( \alpha_T(v(x,0,z))(1,\hat{a} )\right) \Phi^0(I_2 )
f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi_{2T}), s}( \gamma v(x,0,z) (1, \hat{a}  ) ) dv  \\
=     & \chi_T(\det(a)) |\det(a)|     \iint    
 \omega_{\psi}\left( \alpha_T(v(xa,0,z)) \right) \Phi^0(a)
f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi_{2T}), s}(    \gamma (1, \hat{a}  )  v(xa,0,z)  )         \psi(\text{tr}(Tz))  dxdz \\
=     & \chi_T(\det(a)) |\det(a)|^{-1}    \iint    
 \omega_{\psi}\left( \alpha_T(v(x,0,z)) \right) \Phi^0(a)
f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi_{2T}), s}(     \gamma (1, \hat{a}  )   v(x,0,z)  )         \psi(\text{tr}(Tz))  dxdz.
\end{split}
\end{equation*}
Note that
\begin{equation*}
\omega_{\psi}  \left( \alpha_T(v(x,0,z)) \right) \Phi^0(a) = \psi  (\text{tr}(Tz)) \Phi^0(a+x).
\end{equation*}
We see that the inner integration of \eqref{eq-local-unramified-LHS-reduction1} equals
\begin{equation*}
\begin{split}
 \chi_T(\det(a)) |\det(a)|^{-1}    \iint    
 \Phi^0(a+x) f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi_{2T}), s}( \gamma (1, \hat{a}  )     v(x,0,z)  )         \psi(\text{tr}(Tz))  dxdz .
 \end{split}
 \end{equation*}
 We apply a change of variable $x\mapsto x-a$ to get
 \begin{equation*}
 \begin{split}
 \chi_T(\det(a)) |\det(a)|^{-1}    \iint    
  \Phi^0(x) f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi_{2T}), s}( \gamma (1, \hat{a}  )    v(x-a,0,z)  )         \psi(\text{tr}(Tz))  dxdz .
\end{split}
\end{equation*}
Since  $\Phi^0=1_{\text{Mat}_2(\mathcal{O}_F)}$ and $ f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi_{2T}), s}$ is invariant under right translation by $v(x, 0, 0)$ for $x\in \text{Mat}_2(\mathcal{O}_F)$, the $dx$-integration evaluates to 1. Thus the inner integration of \eqref{eq-local-unramified-LHS-reduction1} equals
\begin{equation*}
\begin{split}
      & \chi_T(\det(a)) |\det(a)|^{-1}    \int\limits_{\text{Mat}_2^0(F)}     
  f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi_{2T}), s}( \gamma (1, \hat{a}  )    v(-a,0,z)  )         \psi(\text{tr}(Tz))  dz  \\
   =     & \chi_T(\det(a)) |\det(a)|^{-1}    \int\limits_{\text{Mat}_2^0(F)}    
  f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi_{2T}), s}( \gamma (1, \hat{a}  )  \gamma^{-1} \gamma    v(-a,0,z) \gamma^{-1} )         \psi(\text{tr}(Tz))  dz  \\
  =&    \chi_T(\det(a)) |\det(a)|^{-1}     \int\limits_{\text{Mat}_2^0(F)}     
  f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi_{2T}), s} \left(     
  \left(\begin{smallmatrix}
a &&&\\ &I_2 &&\\&&I_2&\\&&&a^*
\end{smallmatrix}\right)
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\-a&z&I_2&\\&-J_2 {}^t a J_2&&I_2
\end{smallmatrix}\right)
  \right)         \psi^{-1}(\text{tr}(Tz))  dz  .
\end{split}
\end{equation*}
Therefore,  $\mathcal{Z}^*(l_T, s)$ is equal to
\begin{equation}
\begin{split}
\int\limits_{\text{GL}_2(F)}    \int\limits_{\text{Mat}_2^0(F)}    l_T(\pi(\hat{a} )v_0)   & f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi_{2T}), s} \left(     
      \left(\begin{smallmatrix}
a &&&\\ &I_2 &&\\&&I_2&\\&&&a^*
\end{smallmatrix}\right)
       \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\-a&z&I_2&\\&-J_2 {}^t a J_2&&I_2
\end{smallmatrix}\right) \right)   \\
& \psi^{-1}(\text{tr}(Tz)) \chi_T(\det(a)) |\det(a)|^{-4} dz  da.
 \label{eq-local-unramified-LHS-reduction2}
\end{split}
\end{equation}



Next we look at the inner integration in \eqref{eq-local-unramified-LHS-reduction2}.
We use the relation between unramified sections of different induced representations in Lemma \ref{lemma-local-unramified-section-Sp8-property5}, and apply it to $g_1=I_2, g_2=-\frac{T}{2}$. 
Since $\det(T)\in \mathcal{O}_F^\times$, we have $|\det(T/2)|=1$  and
$\chi_1(\det(T/2))=1$. Also, since $(\mathcal{O}_F^\times, \mathcal{O}_F^\times)_F=1$ (see \cite[Lema 3.3]{Szpruch2010thesis}), we have
\begin{equation*}
    \chi_T(\det(T/2))=(\det(T), \det(T/2))_F=\left(\det(T), \frac{\det(T)}{4}\right)_F=1.
\end{equation*}
Thus, 
\begin{equation*}
     |\det(T/2)|^{s+\frac{3}{2}} \chi_1(\det(T/2))\chi_T (\det(T/2) )=1.
\end{equation*}
We obtain that the inner integration in \eqref{eq-local-unramified-LHS-reduction2} is equal to
\begin{equation*}
\begin{split}
 & \int\limits_{\text{Mat}_2^0(F)}  
  f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi_{2T}), s} \left(     
  \left(\begin{smallmatrix}
a &&&\\ &I_2 &&\\&&I_2&\\&&&a^*
\end{smallmatrix}\right)
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\-a&z&I_2&\\&-J_2 {}^t a J_2&&I_2
\end{smallmatrix}\right)
  \right)         \psi^{-1}(\text{tr}(Tz)) dz  \\
    =&                 \int\limits_{\text{Mat}_2^0(F)}  
  f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1} ), s} \left(     
  \left(\begin{smallmatrix}
I_2 &&&\\
&-2T^{-1} && \\
&&-\frac{1}{2}J_2{}^t T J_2 & \\
&&&I_2
\end{smallmatrix}\right) 
  \left(\begin{smallmatrix}
a &&&\\ &I_2 &&\\&&I_2&\\&&&a^*
\end{smallmatrix}\right)
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\-a&z&I_2&\\&-J_2 {}^t a J_2&&I_2
\end{smallmatrix}\right)
  \right)         \psi^{-1}(\text{tr}(Tz)) dz,
\end{split}
\end{equation*}
where $f^*_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi^{-1}), s}$ is an unramified section in $\text{Ind}_{P_8(F)}^{\text{Sp}_8(F)}(\mathcal{W}(\tau\otimes\chi_T, 2, \psi^{-1})|\det|^s )$.
Also, if we plug in $g=I_8$ in \eqref{eq-lemma-local-unramified-section-Sp8-property5}, 
we see that 
\begin{equation*}
    f^*_{\mathcal{W}(\tau\otimes \chi_T, 2, \psi^{-1}), s}(I_8)=f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi_{2T}), s}(I_8).
\end{equation*}
We conjugate the matrix involving $T$ to the right, and do a change of variable in $z$, to get
\begin{equation}
\begin{split}
 \int\limits_{\text{Mat}_2^0(F)}  
  f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1} ), s} \left(     
    \left(\begin{smallmatrix}
a &&&\\ &I_2 &&\\&&I_2&\\&&&a^*
\end{smallmatrix}\right)
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\\frac{1}{2} J_2 {}^t T J_2 a&z&I_2&\\&\frac{1}{2} J_2 {}^t a J_2 T&&I_2
\end{smallmatrix}\right)
  \right)        
   \psi^{-1}(\text{tr}(4zT^{-1})) dz.
    \label{eq-local-unramified-LHS-reduction2-inner}
\end{split}
\end{equation}

We claim that the integral in \eqref{eq-local-unramified-LHS-reduction2-inner} vanishes if $a\not\in \text{Mat}_2(\mathcal{O}_F)$. To see this, we let $r\in \text{Mat}_2(\mathcal{O}_F)$. Then $f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s}=v(r,0,0)\cdot f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s}$ since $f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s}$ is unramified. Conjugating the element $v(r,0,0)$ to the left-hand side, we see that
\begin{equation*}
\begin{split}
 &\int\limits_{\text{Mat}_2^0(F)}  
  f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(     
    \left(\begin{smallmatrix}
a &&&\\ &I_2 &&\\&&I_2&\\&&&a^*
\end{smallmatrix}\right)
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\\frac{1}{2} J_2 {}^t T J_2 a&z&I_2&\\&\frac{1}{2} J_2 {}^t a J_2 T&&I_2
\end{smallmatrix}\right) v(r,0,0)
  \right)        
   \psi^{-1}(\text{tr}(4zT^{-1})) dz \\
 =   &           \int\limits_{\text{Mat}_2^0(F)}  
  f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(     
v(ar, 0, 0)
    \left(\begin{smallmatrix}
a &&&\\ &I_2 &&\\&&I_2&\\&&&a^*
\end{smallmatrix}\right)
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\\frac{1}{2} J_2 {}^t T J_2 a&z+\frac{1}{2} J_2 ({}^t r {}^t a J_2 T+{}^t T J_2 a r)&I_2&\\&\frac{1}{2} J_2 {}^t a J_2 T&&I_2
\end{smallmatrix}\right) 
  \right)        
   \psi^{-1}(\text{tr}(4zT^{-1})) dz .
\end{split}
\end{equation*}
The element $v(ar, 0, 0)$ contributes $\psi^{-1}(\text{tr}(ar))$, and the change of variable $z\mapsto z-\frac{1}{2} J_2 ({}^t r {}^t a J_2 T+{}^t T J_2 a r)$ contributes $\psi(\text{tr}(4ar))$. Thus, we see that 
\begin{equation*}
\begin{split}
&\int\limits_{\text{Mat}_2^0(F)}  
  f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(     
    \left(\begin{smallmatrix}
a &&&\\ &I_2 &&\\&&I_2&\\&&&a^*
\end{smallmatrix}\right)
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\\frac{1}{2} J_2 {}^t T J_2 a&z&I_2&\\&\frac{1}{2} J_2 {}^t a J_2 T&&I_2
\end{smallmatrix}\right) 
  \right)        
   \psi^{-1}(\text{tr}(4zT^{-1})) dz \\
 =   &   \psi(\text{tr}(3ar))     \int\limits_{\text{Mat}_2^0(F)}  
  f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(     
    \left(\begin{smallmatrix}
a &&&\\ &I_2 &&\\&&I_2&\\&&&a^*
\end{smallmatrix}\right)
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\\frac{1}{2} J_2 {}^t T J_2 a&z&I_2&\\&\frac{1}{2} J_2 {}^t a J_2 T&&I_2
\end{smallmatrix}\right)  
  \right)        
   \psi^{-1}(\text{tr}(4zT^{-1})) dz      
\end{split}
\end{equation*}
 for any $r\in \text{Mat}_2(\mathcal{O}_F)$. Therefore, in order for the integral in \eqref{eq-local-unramified-LHS-reduction2-inner} to be non-vanishing, we must have
  $\psi(\text{tr}(3ar))=1$ for all $r\in \text{Mat}_2(\mathcal{O}_F)$, and consequently we must have $a\in \text{Mat}_2(\mathcal{O}_F)$. 
  
  We also note that if $a\in \text{Mat}_2(\mathcal{O}_F)$, then
 \begin{equation*}
 \begin{split}
 & f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(     
    \left(\begin{smallmatrix}
a &&&\\ &I_2 &&\\&&I_2&\\&&&a^*
\end{smallmatrix}\right)
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\\frac{1}{2} J_2 {}^t T J_2 a&z&I_2&\\&\frac{1}{2} J_2 {}^t a J_2 T&&I_2
\end{smallmatrix}\right)  
  \right)  \\ 
=& f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(     
    \left(\begin{smallmatrix}
a &&&\\ &I_2 &&\\&&I_2&\\&&&a^*
\end{smallmatrix}\right)
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\ &z&I_2&\\& &&I_2
\end{smallmatrix}\right)  
  \right) \\   
=&   f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(     
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\ &z&I_2&\\& &&I_2
\end{smallmatrix}\right)  
    \left(\begin{smallmatrix}
a &&&\\ &I_2 &&\\&&I_2&\\&&&a^*
\end{smallmatrix}\right)
  \right) .
 \end{split}
 \end{equation*} 
 Therefore, we have
 \begin{equation}
 \label{eq-local-unramified-LHS-reduction3}
\begin{split}
\mathcal{Z}^*(l_T, s) =&  \int\limits_{\text{GL}_2(F)\cap \text{Mat}_2(\mathcal{O}_F)}    \int\limits_{\text{Mat}_2^0(F)}    l_T(\pi(\hat{a} )v_0)   \\
&f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(     
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\ &z&I_2&\\& &&I_2
\end{smallmatrix}\right)  
    \left(\begin{smallmatrix}
a &&&\\ &I_2 &&\\&&I_2&\\&&&a^*
\end{smallmatrix}\right)
  \right)     \psi^{-1}(\text{tr}(4zT^{-1})) \chi_T(\det(a)) |\det(a)|^{-4} dz  da.
\end{split}
\end{equation}


For $g= \left(\begin{smallmatrix}
 g_1 & g_2 \\
 g_3 & g_4\end{smallmatrix}\right) \in \text{Sp}_4(F)$ with $g_i\in \text{Mat}_2(F)$, we define 
\begin{equation*}
\begin{split}
\tilde{\lambda}(f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s})(g)=
\int\limits_{\text{Mat}_2^0(F)}      f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(     
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\ &z&I_2&\\& &&I_2
\end{smallmatrix}\right)  
    \left(\begin{smallmatrix}
g_1 &&&g_2\\ &I_2 &&\\&&I_2&\\g_3&&&g_4
\end{smallmatrix}\right)
  \right)     \psi^{-1}(\text{tr}(4zT^{-1})) dz.
\end{split}
\end{equation*}
The above integral is absolutely convergent for $\text{Re}(s)\gg 0$. 
 We claim that $\tilde{\lambda}(f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s})$ is an unramified section of the induced representation \begin{equation*}
     \text{Ind}_{P_4(F)}^{\text{Sp}_4(F)} ( \mathcal{W}(\tau\otimes \chi_T, 1, \psi^{-1})|\det|^{s+2}).
 \end{equation*}
 We consider a matrix of the form $g_0=\left(\begin{smallmatrix}
A & B \\
 & A^*\end{smallmatrix}\right)\in P_4(F)$, where $A\in \text{GL}_2(F)$. First, $\tilde{\lambda}(f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s})$ is left invariant under $\left(\begin{smallmatrix}
I_2 & B \\
 & I_2\end{smallmatrix}\right)\in N_4(F)$ because
\begin{equation*}
\begin{split}
&\tilde{\lambda}(f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s})\left( 
\left(\begin{smallmatrix}
I_2 & B \\
 & I_2\end{smallmatrix}\right)
 g
\right) \\
=&       \int\limits_{\text{Mat}_2^0(F)}    f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(     
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\ &z&I_2&\\& &&I_2
\end{smallmatrix}\right)  
   \left(\begin{smallmatrix}
I_2 &&&B\\ &I_2 &&\\&&I_2&\\ &&&I_2
\end{smallmatrix}\right)
    \left(\begin{smallmatrix}
g_1 &&&g_2\\ &I_2 &&\\&&I_2&\\g_3&&&g_4
\end{smallmatrix}\right)
  \right)     \psi^{-1}(\text{tr}(4zT^{-1})) dz\\
=&       \int\limits_{\text{Mat}_2^0(F)}    f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(     
   \left(\begin{smallmatrix}
I_2 &&&B\\ &I_2 &&\\&&I_2&\\ &&&I_2
\end{smallmatrix}\right)
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\ &z&I_2&\\& &&I_2
\end{smallmatrix}\right)  
    \left(\begin{smallmatrix}
g_1 &&&g_2\\ &I_2 &&\\&&I_2&\\g_3&&&g_4
\end{smallmatrix}\right)
  \right)     \psi^{-1}(\text{tr}(4zT^{-1})) dz\\
  =&       \int\limits_{\text{Mat}_2^0(F)}    f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(     
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\ &z&I_2&\\& &&I_2
\end{smallmatrix}\right)  
    \left(\begin{smallmatrix}
g_1 &&&g_2\\ &I_2 &&\\&&I_2&\\g_3&&&g_4
\end{smallmatrix}\right)
  \right)     \psi^{-1}(\text{tr}(4zT^{-1})) dz \\
  =& \tilde{\lambda}(f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s})\left( 
 g
\right) .
\end{split}
\end{equation*}
Next, we plug in   $g_0=\left(\begin{smallmatrix}
A &  \\
 & A^*\end{smallmatrix}\right)$ and conjugate to the left, to get
 \begin{equation*}
 \begin{split}
 &\tilde{\lambda}(f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s})\left( 
\left(\begin{smallmatrix}
A &  \\
 & A^*\end{smallmatrix}\right)
 g
\right) \\
=&     \int\limits_{\text{Mat}_2^0(F)}    f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(     
   \left(\begin{smallmatrix}
A &&&\\ &I_2 &&\\&&I_2&\\ &&&A^*
\end{smallmatrix}\right)
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\ &z&I_2&\\& &&I_2
\end{smallmatrix}\right)  
    \left(\begin{smallmatrix}
g_1 &&&g_2\\ &I_2 &&\\&&I_2&\\g_3&&&g_4
\end{smallmatrix}\right)
  \right)     \psi^{-1}(\text{tr}(4zT^{-1})) dz.
 \end{split}
 \end{equation*}
 We obtain a factor of $ |\det(A)|^{s}  \delta_{P_8}^{\frac{1}{2}}(\text{diag}(A, I_2))=|\det(A)|^{s+\frac{5}{2}}$ from the section $f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s}$. We also obtain a factor of $$\mathcal{W}(\tau\otimes \chi_T, 1, \psi^{-1})(A)\delta_L^{\frac{1}{2}}(\text{diag}(A, I_2))=\mathcal{W}(\tau\otimes \chi_T, 1, \psi^{-1})(A) |\det(A)|$$ 
 from the action of the underlying inducing representation, where $L$ is the standard parabolic subgroup of $\text{GL}_4$ whose Levi part is isomorphic to $\text{GL}_2\times \text{GL}_2$. We see that $\left(\begin{smallmatrix}
A &  \\
 & A^*\end{smallmatrix}\right)$ is transformed as 
 $$ |\det(A)|^{s+\frac{7}{2}}  \mathcal{W}(\tau\otimes \chi_T, 1, \psi^{-1})(A) =  \mathcal{W}(\tau\otimes \chi_T, 1, \psi^{-1})(A) \cdot |\det(A)|^{s+2} \cdot \delta_{P_4}^{\frac{1}{2}}(A).$$ 
 Finally, since the section $f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s}$ is unramified, we have $$\tilde{\lambda}(f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s})\left( 
 gk
\right)=\tilde{\lambda}(f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s})\left( 
 g
\right)$$ 
for any $k\in \text{Sp}_4(\mathcal{O}_F)$. This proves the claim. 


Next, we claim that 
\begin{equation}
\label{eq-local-unramified-computation-lambdatilde-at-identity}
\tilde{\lambda}(f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s})(I_4)=f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s}(I_8).
\end{equation}
Let $r\in \text{Mat}_2(\mathcal{O}_F)$. Using the identity
\begin{equation*}
     \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\ &z&I_2&\\& &&I_2
\end{smallmatrix}\right)  
\left(\begin{smallmatrix}
I_2 &&r&\\ &I_2 &&J_2{}^t r J_2\\ &&I_2&\\& &&I_2
\end{smallmatrix}\right) =
\left(\begin{smallmatrix}
I_2 &-rz&r&\\ &I_2 &&J_2{}^t r J_2\\ &&I_2&zJ_2{}^tr J_2\\& &&I_2
\end{smallmatrix}\right)\left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\ &z&I_2&\\& &&I_2
\end{smallmatrix}\right) 
\end{equation*}
and the right $\text{Sp}_8(\mathcal{O}_F)$-invariance of $f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s}$, we have
\begin{equation*}
    \begin{split}
        f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(     
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\ &z&I_2&\\& &&I_2
\end{smallmatrix}\right)  
  \right)  
                   &= f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(    
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\ &z&I_2&\\& &&I_2
\end{smallmatrix}\right)  
\left(\begin{smallmatrix}
I_2 &&r&\\ &I_2 &&J_2{}^t r J_2\\ &&I_2&\\& &&I_2
\end{smallmatrix}\right)
  \right)   \\
                  &= f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(   
   \left(\begin{smallmatrix}
I_2 &-rz&r&\\ &I_2 &&J_2{}^t r J_2\\ &&I_2&zJ_2{}^tr J_2\\& &&I_2
\end{smallmatrix}\right)\left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\ &z&I_2&\\& &&I_2
\end{smallmatrix}\right) 
       \right)  \\
                &= \psi(\text{tr}(rz)) f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(   
      \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\ &z&I_2&\\& &&I_2
\end{smallmatrix}\right) 
       \right) .
    \end{split}
\end{equation*}
This means that if $f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left( 
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\ &z&I_2&\\& &&I_2
\end{smallmatrix}\right)  
  \right)  \not=0$, then $\psi(\text{tr}(rz))=1$ for all $r\in \text{Mat}_2(\mathcal{O}_F)$, and consequently we must have $z\in \text{Mat}_2^0(\mathcal{O}_F)$. So the function
  \begin{equation*}
      z\mapsto f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(     
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\ &z&I_2&\\& &&I_2
\end{smallmatrix}\right)  
  \right)
  \end{equation*}
 is supported in $\text{Mat}_2^0(\mathcal{O}_F)$. Recall from Lemma \ref{lemma-local-unramified-section-Sp8-property5} that $f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s}(k)=1$ for all $k\in \text{Sp}_8(\mathcal{O}_F)$. We see that
 \begin{equation}
\begin{split}
     \tilde{\lambda}(f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s})\left( 
I_4
\right) 
&            =  
  \int\limits_{\text{Mat}_2^0(F)}      f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(     
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\ &z&I_2&\\& &&I_2
\end{smallmatrix}\right)  
  \right)     \psi^{-1}(\text{tr}(4zT^{-1})) dz \\
  &               =
  \int\limits_{\text{Mat}_2^0(\mathcal{O}_F)}      f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(     
  \left(\begin{smallmatrix}
I_2 &&&\\ &I_2 &&\\ &z&I_2&\\& &&I_2
\end{smallmatrix}\right)  
  \right)     \psi^{-1}(\text{tr}(4zT^{-1})) dz \\
  &= \int\limits_{\text{Mat}_2^0(\mathcal{O}_F)} f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(I_8\right) dz\\
  &=f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(I_8\right).
\end{split}
\label{eq-local-unramified-LHS-reduction3-2}
 \end{equation}
This proves \eqref{eq-local-unramified-computation-lambdatilde-at-identity}. Therefore, we have
 \begin{equation}
 \label{eq-local-unramified-LHS-reduction4}
\begin{split}
\mathcal{Z}^*(l_T, s) = \int\limits_{\text{GL}_2(F)\cap \text{Mat}_2(\mathcal{O}_F)}    l_T(\pi(\hat{a} )v_0)  \tilde{\lambda}(f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s})
\left(\begin{smallmatrix}a& \\ & a^*\end{smallmatrix}\right) 
     \chi_T(\det(a)) |\det(a)|^{-4}   da,
\end{split}
\end{equation}
where 
$\tilde{\lambda}(f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s})(g)$ is an unramified section of the induced representation \begin{equation*}
     \text{Ind}_{P_4(F)}^{\text{Sp}_4(F)} ( \mathcal{W}(\tau\otimes \chi_T, 1, \psi^{-1})|\det|^{s+2})
 \end{equation*}
whose value at identity is $\tilde{\lambda}(f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s})(I_{4})=f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s} \left(I_8\right)$.

Examining the two unramified sections $\lambda(f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s})(g)$ and $\tilde{\lambda}(f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s})(g)$, it follows from \eqref{eq-local-unramified-sections-equal-at-identity} that 
their values at identity agree. Then, for $a\in \text{GL}_2(F)$, we have
\begin{equation*}
\begin{split}
     \frac{\tilde{\lambda}(f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s})
\left(\begin{smallmatrix}a& \\ & a^*\end{smallmatrix}\right)}{\lambda(f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s})\left(\begin{smallmatrix}a& \\ & a^*\end{smallmatrix}\right)}  =
\frac{|\det(a)|^{s+\frac{7}{2}}\chi_T(\det(a)) }{|\det(a)|^{s+\frac{9}{2}}}.
\end{split}
\end{equation*}
This means that 
\begin{equation*}
    \tilde{\lambda}(f^*_{\mathcal{W}(\tau \otimes\chi_{T}, 2, \psi^{-1}), s})
\left(\begin{smallmatrix}a& \\ & a^*\end{smallmatrix}\right)=\lambda(f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s})\left(\begin{smallmatrix}a& \\ & a^*\end{smallmatrix}\right) \cdot |\det(a)|^{-1} \chi_T(\det(a)).
\end{equation*}
Since $\chi_T$ is quadratic, it follows from \eqref{eq-local-unramified-LHS-reduction4} that
\begin{equation*}
\begin{split}
 \mathcal{Z}^*(l_T, s) =                   \int\limits_{\text{GL}_2(F)\cap \text{Mat}_2(\mathcal{O}_F)}        l_T\left( \pi   (\hat{a})  v_0 \right)   
\lambda(f^*_{\mathcal{W}(\tau, 4, \psi^{-1}), s})\left( \begin{smallmatrix} a& \\ & a^*\end{smallmatrix}\right)  |\det(a)|^{-5}  
     da.
\end{split}
\end{equation*}
This is exactly \eqref{eq-Local-L-function-bridge-between-two-identities-2}. This completes the proof of Theorem~\ref{theorem-unramified-computation}.

\end{proof}




\section{Finite ramified and archimedean non-vanishing}\label{section-Ramified computation}


In this section we prove Proposition~\ref{proposition-ramified-finiteplace} and Proposition~\ref{proposition-ramified-archimedean}. 




\subsection{Non-vanishing at finite ramified places}

Let $F$ be a non-archimedean local field. 

\begin{proof}[Proof of Proposition~\ref{proposition-ramified-finiteplace}]
The proof is similar to \cite[Proposition 6.6]{GinzburgRallisSoudry1998}.



Let $\overline{N}_4(F)=\left\{ \overline{n}_4(w)=
\left( \begin{smallmatrix}
I_2 & \\ w & I_2
\end{smallmatrix}\right) \in \text{Sp}_4(F)
  \right\}$. Then
$N_4(F)M_4(F)\overline{N}_4(F)$ is an open dense subset of $\text{Sp}_4(F)$ whose complement has Haar measure 0.
We write the left-hand side of \eqref{eq-ramified-calculation-finiteplace} as
\begin{equation}
\begin{split}
   &\int\limits_{\text{GL}_2(F)} \int\limits_{\text{Mat}_2^0(F)}    \int\limits_{\overline{N}_{2,8}^0(F)}  l_T\left(\pi\left( \left(\begin{smallmatrix} a & \\ & a^*\end{smallmatrix}\right)  \overline{n}_4(w)   \right)  v_0 \right)   \psi^{-1}(\text{tr}(Tz)) \chi_T(\det(a)) |\det(a)|^{-2} \\
\ \ \ \ \ \ \ \ \ \ \    & \ \ \ \ \ \ \ \ \ \ \ \  \ \ \ \omega_{\psi}\left( (1,\overline{n}_4(w) \right) \Phi_0( a+xa)
f_{0, s}
 \left(  
 \left(\begin{smallmatrix} I_2 &&&\\ & I_2&&\\ x & z &I_2 & \\ &x^* &&I_2\end{smallmatrix} \right)    
  \left(\begin{smallmatrix} a &&&\\ & I_2&&\\  &  &I_2 & \\ & &&a^*\end{smallmatrix} \right)  
   \left(\begin{smallmatrix} I_2 &&&\\ & I_2&&\\  &  &I_2 & \\ w& &&I_2\end{smallmatrix} \right) \gamma
 \right)    d\overline{v} dw  da.
\label{eq-local-ramified-eq1}
\end{split}
\end{equation}
Here, 
\begin{equation*}
   \overline{N}_{2,8}^0(F)=\gamma N_{2,8}^0(F) \gamma^{-1}= \left\{ 
 \overline{v}(x, z)=\left(\begin{smallmatrix} I_2 &&&\\ & I_2&&\\ x & z &I_2 & \\ &x^* &&I_2\end{smallmatrix} \right): z\in \text{Mat}_2^0(F), x\in \text{Mat}_2(F)
  \right\}.
\end{equation*}
We conjugate $  \left(\begin{smallmatrix} a &&&\\ & I_2&&\\  &  &I_2 & \\ & &&a^*\end{smallmatrix} \right) $ to the left of $ \left(\begin{smallmatrix} I_2 &&&\\ & I_2&&\\ x & z &I_2 & \\ &x^* &&I_2\end{smallmatrix} \right) $, and make the change of variable $x\mapsto xa^{-1}$, to get
\begin{equation}
\begin{split}
    &\int\limits_{\text{GL}_2(F)} \int\limits_{\text{Mat}_2^0(F)}    \int\limits_{\overline{N}_{2,8}^0(F)}  l_T\left(\pi\left( \left(\begin{smallmatrix} a & \\ & a^*\end{smallmatrix}\right)  \overline{n}_4(w)  \right)  v_0 \right)   \psi^{-1}(\text{tr}(Tz)) \chi_T(\det(a)) |\det(a)|^{-4} \\
\ \ \ \ \ \ \ \ \ \ \    & \ \ \ \ \ \ \ \ \ \ \ \  \ \ \ \ \ \ \ \  \ \ \ \ \ \ \ \ \ \   \ \ \ \ \    \omega_{\psi}\left( (1,\overline{n}_4(w) \right) \Phi_0( a+x)
f_{0, s}
 \left(  
   \left(\begin{smallmatrix} a &&&\\ & I_2&&\\  &  &I_2 & \\ & &&a^*\end{smallmatrix} \right) 
 \left(\begin{smallmatrix} I_2 &&&\\ & I_2&&\\ x & z &I_2 & \\ w&x^* &&I_2\end{smallmatrix} \right)    
  \gamma
 \right)    d\overline{v} dw  da .
 \end{split}
 \label{eq-local-ramified-eq2}
 \end{equation}
 Writing the section in Jacquet's style notation, we get
 \begin{equation}
 \begin{split}
     &\int\limits_{\text{GL}_2(F)} \int\limits_{\text{Mat}_2^0(F)}    \int\limits_{\overline{N}_{2,8}^0(F)}  l_T\left(\pi\left( \left(\begin{smallmatrix} a & \\ & a^*\end{smallmatrix}\right)  \overline{n}_4(w) \right)  v_0 \right)   \psi^{-1}(\text{tr}(Tz)) \chi_T(\det(a)) |\det(a)|^{s-\frac{3}{2}} \\
\ \ \ \ \ \ \ \ \     & \ \ \ \ \ \ \ \ \ \ \ \  \ \ \ \ \ \ \ \ \ \   \ \ \ \ \ \ \ \  \ \ \ \ \ \ \ \ \ \     \omega_{\psi}\left( (1,\overline{n}_4(w)\right) \Phi_0( a+x)
f_{0, s}
 \left(  
   \left(\begin{smallmatrix} a & \\ & I_2 \end{smallmatrix} \right) ;
 \left(\begin{smallmatrix} I_2 &&&\\ & I_2&&\\ x & z &I_2 & \\ w&x^* &&I_2\end{smallmatrix} \right)    
  \gamma
 \right)    d\overline{v} dw  da .  
  \label{eq-local-ramified-eq3}
\end{split}
\end{equation}
Similar to \cite[Proposition 6.6]{GinzburgRallisSoudry1998}, we choose the right $\gamma$-translate of $f_{0,s}$ to have support in $P_8(F)\cdot \mathcal{U}$, where  $\mathcal{U}\subset \text{Sp}_8(F)$ is a  small neighborhood of identity, such that  $f_{0,s}(m; u \gamma)=W_{0}(m)$ for $u\in \mathcal{U}$, $m\in \text{GL}_4(F)\cong M_8(F)$. Here $W_{0}$ is a function in the generalized Whittaker-Speh-Shalika model $\mathcal{W}(\tau\otimes \chi_T, 2, \psi_{2T})$, to be chosen later. We denote
\begin{equation*}
\mathcal{V}_1=\left\{ x:   \left(\begin{smallmatrix} I_2 &&&\\ & I_2&&\\ x &  &I_2 & \\ &x^* &&I_2\end{smallmatrix} \right)  \in \mathcal{U} \right\}, \mathcal{V}_2=\left\{ z:   \left(\begin{smallmatrix} I_2 &&&\\ & I_2&&\\ & z &I_2 & \\  &  &&I_2\end{smallmatrix} \right)  \in \mathcal{U} \right\}, \mathcal{V}_3=\left\{ w:   \left(\begin{smallmatrix} I_2 &&&\\ & I_2&&\\   & &I_2 & \\ w& &&I_2\end{smallmatrix} \right)  \in \mathcal{U} \right\}.
\end{equation*}
With this choice of $f_{0,s}$, 
$\mathcal{V}_1$ must be a small neighborhood of zero in $\text{Mat}_2(F)$, $\mathcal{V}_2$ and $\mathcal{V}_3$ must be small neighborhoods of zero in $\text{Mat}^0_2(F)$.
We choose $\mathcal{U}$ so small that $\pi(\overline{n}_4(w))v_0=v_0$ and $\omega_{\psi}\left( (1,\overline{n}_4(w)\right) \Phi_0=\Phi_0$ for $w\in \mathcal{V}_3$, $\psi^{-1}(\text{tr}(Tz))=1$ for $z\in \mathcal{V}_2$, and $\Phi_0(a+x)=\omega_{\psi}(\alpha_T(v(x, 0, 0) )\Phi(a)=\Phi_0(a)$ for $x\in \mathcal{V}_1$. Then  \eqref{eq-local-ramified-eq3} is equal to
 \begin{equation}
 \begin{split}
\text{vol}(\mathcal{U}\cap \overline{N}_{8}(F))  \int\limits_{\text{GL}_2(F)}   l_T\left(\pi \left(\begin{smallmatrix} a & \\ & a^*\end{smallmatrix}\right)    v_0 \right) \chi_T(\det(a)) |\det(a)|^{s-\frac{3}{2}} \Phi_0(a) W_0\left(\begin{smallmatrix} a & \\ & I_2\end{smallmatrix} \right) da.
 \end{split}
   \label{eq-local-ramified-eq4}
 \end{equation}
Note that $v_0$ is stabilized by a compact open subgroup $K_0\subset \text{Sp}_4(F)$.  
We choose $M_1$ to be a small neighborhood of $I_2$ in $\text{GL}_2(F)$ such that for any $a\in M_1$, $\left(\begin{smallmatrix} a & \\ & a^*\end{smallmatrix}\right)\in K_0$. We choose $M_2$ to be a small neighborhood of $I_2$ in $\text{GL}_2(F)$ such that for any $a\in M_2$, $\left(\begin{smallmatrix} a & \\ & I_2\end{smallmatrix}\right)$ belongs to the stabilizer of $W_0$. We choose $M_3$ to be a small neighborhood of $I_2$ in $\text{GL}_2(F)$ such that for any $a\in M_3$, $\det(a)$ belongs to the intersection of $\mathcal{O}_F^\times$ and the conductor of $\chi_T$. Let $M_0=M_1\cap M_2\cap M_3$, and let $\Phi_0$ be the characteristic function of $M_0$. Then \eqref{eq-local-ramified-eq4} is equal to
\begin{equation}
 \begin{split}
&\text{vol}(\mathcal{U}\cap \overline{N}_{8}(F)) \int\limits_{M_0}   l_T\left(\pi \left(\begin{smallmatrix} a & \\ & a^*\end{smallmatrix}\right)    v_0 \right) \chi_T(\det(a)) |\det(a)|^{s-\frac{3}{2}} W_0\left(\begin{smallmatrix} a & \\ & I_2\end{smallmatrix} \right) da\\
=& l_T(v_0) \cdot \text{vol}(\mathcal{U}\cap \overline{N}_{8}(F)) \text{vol}(M_0) W_0(I_4).
 \end{split}
   \label{eq-local-ramified-eq5}
 \end{equation}
Setting $W_0(I_4)=\text{vol}(M_0)^{-1} \text{vol}(\mathcal{U} \cap \overline{N}_8(F))^{-1}$ gives the proposition.
\end{proof}


\subsection{Some result on the archimedean generalized Kirillov model}
\label{Subsection-archimedean-generalized-kirillov}
In this subsection, we prove some result on the archimedean generalized Kirillov model. Since this subsection may be of independent interest, for the reader's convenience we have tried to present this subsection in a self-contained manner. 

Let $F={\mathbb R}$ or $F={\mathbb C}$. For a positive integer $l$,  we consider a unitary irreducible representation  $\pi$ of $\text{GL}_{l}(F)$ on a Hilbert space $\mathcal{H}_{\pi}$ with norm $\| \cdot \|$. 
For an algebraic group $G$ defined over $F$, we will abbreviate $G$ for $G(F)$. 
We let $\mathcal{V}_\pi$ be the space of $\text{GL}_{l}$ smooth vectors, equipped with the topology defined by the semi-norms
\begin{equation*}
    v\mapsto \| d\pi(X) v\|
\end{equation*}
with $X\in \mathcal{U}(\text{GL}_{l})$ where $\mathcal{U}(\text{GL}_{l})$ is the universal enveloping algebra of $\text{Lie}(\text{GL}_l)$ \cite{Casselman1989}. We let $\mathcal{V}_\pi^\prime$ be the topological conjugate dual of $\mathcal{V}_\pi$. Then we have inclusions
\begin{equation*}
    \mathcal{V}_\pi\subseteq \mathcal{H}_\pi\subseteq \mathcal{V}_\pi^\prime.
\end{equation*}
The positive-definite scalar product on $\mathcal{V}_\pi\times \mathcal{V}_\pi$ extends to $\mathcal{V}_\pi\times \mathcal{V}_\pi^\prime$. 


Let $k, c$ be positive integers. Let  $P_{(c^k)}=M_{(c^k)}\ltimes U_{(c^k)}$ be  the standard, block upper triangular, parabolic subgroup of $\text{GL}_{kc}$ of the type $(c,  \cdots, c)$ with the standard Levi decomposition, where $M_{(c^k)}\cong \text{GL}_c\times \cdots \times \text{GL}_c$. We denote a matrix $u \in U_{(c^k)}$ by $u=(u_{i,j})_{1\le i, j \le k}$, where $u_{i,j}\in \text{Mat}_c$. Thus
\begin{equation*}
M_{(c^k)}= \left\{ \left( 
\begin{smallmatrix}
g_1  & &\\
& \ddots & \\
& & g_k
\end{smallmatrix}
\right) : g_i\in \text{GL}_c \right\},  \,
    U_{(c^k)}=\left\{ \left(\begin{smallmatrix} 
    I_c & u_{1,2} &  \cdots    & u_{1,k}\\
        & I_c & \cdots   &  u_{2,k} \\
        &  &\ddots   & \vdots\\
        &  &         &I_c
    \end{smallmatrix}\right) : u_{i, j}\in \text{Mat}_c\right\}.
\end{equation*}
We also consider the ``block mirabolic subgroup'',
\begin{equation*}
P=P_{((k-1)c, 1^c)} := \left\{ \left( 
\begin{smallmatrix}
* & \hdots & * & *\\
\vdots & & \vdots & \vdots\\
* & \hdots & * & *\\
0 & \hdots & 0 & I_c
\end{smallmatrix}
\right)\right\} \subseteq \text{GL}_{kc},
\end{equation*}
with the standard Levi decomposition $P=M\ltimes U$ where
\begin{equation*}
    M=M_P= \left\{ \left( 
\begin{smallmatrix}
* & \hdots & * & 0\\
\vdots & & \vdots & \vdots\\
* & \hdots & * & 0\\
0 & \hdots & 0 & I_c
\end{smallmatrix}
\right)\right\} \cong \text{GL}_{(k-1)c}, \, U=U_P= \left\{ \left(
\begin{smallmatrix}
I_{(k-1)c} & * \\
0 & I_c
\end{smallmatrix}
\right)\right\} .
\end{equation*}
Let $\overline{U}$ (respectively $\overline{U}_{(c^k)}$) be the transpose of $U$ (respectively $U_{(c^k)}$). Let $\text{GL}_c^{\Delta}$ be the diagonal embedding of $\text{GL}_c$ in $\text{GL}_{kc}$, i.e., 
\begin{equation*}
   \text{GL}_c^\Delta=\left\{ h^\Delta= \text{diag}(h, \cdots, h): h\in \text{GL}_c \right\}.
\end{equation*}
We fix a non-trivial additive character $\psi:F\to \mathbb{C}^\times$, and extend it to a character of $U_{(c^k)}$ by
\begin{equation}
    \psi(u)=\psi ( \sum_{i=1}^{k-1} \text{tr}(u_{i,i+1})  ).
\end{equation}

\begin{example}
When $k=c=2$, we have
\begin{equation*}
 P_{(2^2)}=\left\{ \left( 
\begin{smallmatrix}
g_1   &*\\
&  g_2
\end{smallmatrix}
\right) : g_i\in \text{GL}_2\right\}, \,   M_{(2^2)}=\left\{ \left( 
\begin{smallmatrix}
g_1   &\\
&  g_2
\end{smallmatrix}
\right) : g_i\in \text{GL}_2\right\}, \,
U_{(2^2)}=\left\{ \left(\begin{smallmatrix} 
    I_2  & u_{1,2}\\
        &  I_2
    \end{smallmatrix}\right) : u_{1,2}\in \text{Mat}_2\right\},
\end{equation*}
and
\begin{equation*}
 P=\left\{ \left( 
\begin{smallmatrix}
g   &*\\
&  I_2
\end{smallmatrix}
\right) : g\in \text{GL}_2\right\}, \,    M=\left\{ \left(\begin{smallmatrix} 
    g  &  \\
        &  I_2
    \end{smallmatrix}\right) :g\in \text{GL}_2\right\}, \,
    U= \left\{ \left( 
\begin{smallmatrix}
I_{2} & *\\
0 & I_2
\end{smallmatrix}
\right)\right\} .
\end{equation*}
The diagonal embedding of $\text{GL}_2$ in $\text{GL}_4$ is 
\begin{equation*}
    \text{GL}_2^\Delta=\left\{ \left(\begin{smallmatrix} 
    g  &  \\
        &  g
    \end{smallmatrix}\right) :g\in \text{GL}_2\right\}.
\end{equation*}
The character $\psi$ on $U_{(2^2)}$ is
\begin{equation*}
    \psi \left(\begin{smallmatrix} 
    I_2  & u_{1,2}\\
        &  I_2
    \end{smallmatrix}\right)=\psi(\text{tr}(u_{1,2})).
\end{equation*}
\end{example}

Let $\pi$ be an irreducible unitary representation of $\text{GL}_{kc}$ which affords a unique Whittaker-Speh-Shalika model (as in \cite{CaiFriedbergGinzburgKaplan2019}), i.e., 
\begin{equation}
    {\rm dim} {\rm Hom}_{U_{(c^k)}}(\pi, \psi)=1.
\end{equation}
Here, morphisms are continuous. Then there is an element $\lambda\not=0$ of $\mathcal{V}_{{\pi}}^\prime$, unique up to scalars, such that 
\begin{equation}
    ({{\pi}}(u)v, \lambda)=\psi(u)(v, \lambda)
    \label{archimedean-Kirillov-eq-functional}
\end{equation}
for all $v\in \mathcal{V}_{{\pi}}$ and $u\in U_{(c^k)}$.
 For each $v\in \mathcal{V}_{{\pi}}$, we define a complex-valued function $W_v$ on $\text{GL}_{kc}$ by
\begin{equation*}
    W_v(g)=({{\pi}}(g)v, \lambda).
\end{equation*}
The resulting unique Whittaker-Speh-Shalika model, denoted by $\mathcal{W}({{\pi}}, \psi)$,  is the space of functions
\begin{equation*}
    g\mapsto W_v(g),
\end{equation*}
where $v\in \mathcal{V}_{{\pi}}$. We identify $\mathcal{V}_\pi$ and  $\mathcal{W}({{\pi}}, \psi)$. Thus, for any $W\in \mathcal{W}(\pi, \psi)$, we have
\begin{equation*}
    W(e)=(W, \lambda).
\end{equation*}


\begin{definition}
The generalized Kirillov model of ${\pi}$ is the space of functions on $P$ defined by
\begin{equation}
    \mathcal{K}({\pi}, \psi)= \left\{ W_v(p): W_v\in \mathcal{W}({\pi}, \psi), p\in P \right\}.
\end{equation}
\end{definition}


\begin{definition}
Let $\pi$ be an irreducible unitary representation of $\text{GL}_{kc}$. We say that $\pi$ is a \textit{Whittaker-Speh-Shalika representation}  if
\begin{equation}
    {\rm dim} {\rm Hom}_{U_{(c^k)}}(\pi, \psi)=1,
    \label{eq-multiplicity-one}
\end{equation}
and 
\begin{equation}
    (\pi(h^\Delta)v, \lambda)=\chi_\pi(\det(h)) (v, \lambda),
    \label{eq-EquivariancePropertyUnderGLc^Delta}
\end{equation}
 where $\chi_\pi:F^\times \to \mathbb{C}^\times$ is a multiplicative character. 
\end{definition}

\begin{remark}
When $c=1$,
a Whittaker-Speh-Shalika representation of $\text{GL}_k$ is exactly a generic representation of $\text{GL}_k$. In this case,  
\eqref{eq-multiplicity-one} is the uniqueness of the Whittaker model proved in \cite{Shalika1974}, and $\chi_\pi$ in \eqref{eq-EquivariancePropertyUnderGLc^Delta} is equal to the central character of $\pi$.
\end{remark}


\begin{example}
Here is an example of a Whittaker-Speh-Shalika representation. Let $\tau$ be an irreducible generic unitary representation of $\text{GL}_k$, and let $\Delta(\tau, c)$ be the Langlands quotient of 
\begin{equation}
    \text{Ind}_{P_{(k^c)}}^{\text{GL}_{kc}}\left( (\tau\otimes \cdots \otimes \tau)\delta_{P_{(k^c)}}^{1/(2k)} \right). 
\end{equation}
Then it follows from \cite[Theorem 5]{CaiFriedbergKaplan2020} and \cite[Lemma 14]{CaiFriedbergKaplan2020} that  $\Delta(\tau, c)$ is a Whittaker-Speh-Shalika representation. This is our motivating example.  
\label{example-1}
\end{example}


We denote by $C_c^\infty(\text{GL}_{(k-1)c}, \psi)$ the space of smooth and compactly supported module $U_{(c^{k-1})}$ functions $f:\text{GL}_{(k-1)c}\to \mathbb{C}$ such that $f(ug)=\psi(u)f(g)$ for all $u\in U_{(c^{k-1})}$, $g\in \text{GL}_{(k-1)c}$.
The main result is the following.

\begin{theorem}
\label{theorem-archimedean-generalized-kirillov}
Let $\pi$ be an irreducible unitary Whittaker-Speh-Shalika representation of $\text{GL}_{kc}$. Assume that the space of $P$-invariant sesquilinear forms on $\mathcal{V}_\pi$ is one-dimensional. 
Given $\phi\in C_c^\infty( \text{GL}_{(k-1)c}, \psi)$, there is a 
$W_{\phi}\in \mathcal{V}_{\pi}$ such that, for all $g\in \text{GL}_{(k-1)c}$, we have
\begin{equation}
    W_{\phi}\left(\begin{smallmatrix} g & \\  & I_c\end{smallmatrix}\right) =\phi(g).
\end{equation}
\end{theorem}


\begin{remark}
When $c=1$, $P$ is the usual mirabolic subgroup of $\text{GL}_k$. By \cite[Theorem 10.1]{Baruch2003}, any $P$-invariant sesquilinear form on $\mathcal{V}_\pi$ is $\text{GL}_k$-invariant, hence it is a scalar multiple of the canonical form induced by $\mathcal{H}_\pi$ \cite{Poulsen1972}. So the assumption on the uniqueness of $P$-invariant sesquilinear forms is redundant when $c=1$. It would be interesting to consider if one can drop this assumption in the general case. 
\end{remark}
 
When $c=1$, Theorem~\ref{theorem-archimedean-generalized-kirillov} was proved in
\cite[Proposition 5]{Jacquet2010} when $F={\mathbb R}$, and in \cite{Kemarsky2015} when $F={\mathbb C}$, and in \cite{GelfandKazhdan1975} when $F$ is a $p$-adic field. The analogous assertion in the $p$-adic case for the $p$-adic Speh representations was proved in \cite[Corollary 3.13]{LapidMao2020}. Our proof of Theorem~\ref{theorem-archimedean-generalized-kirillov} is similar to Jacquet's proof \cite{Jacquet2010}.

We apply Theorem~\ref{theorem-archimedean-generalized-kirillov} to certain representation in Example~\ref{example-1}, to obtain the following result.

\begin{corollary}
\label{Corollary-Speh-representation}
Let $k=2$, and let $\tau$ be an irreducible generic unitary representation of $\text{GL}_2$. Let $\Delta(\tau, c)$ be the Langlands quotient of 
\begin{equation}
    \text{Ind}_{P_{(2^c)}}^{\text{GL}_{2c}}\left( (\tau\otimes \cdots \otimes \tau)\delta_{P_{(k^c)}}^{1/4} \right). 
\end{equation}
Given $\phi\in C_c^\infty(\text{GL}_{c}, \psi)$, there is a 
$W_{\phi}\in \mathcal{V}_{{\Delta(\tau, c)}}$ such that, for all $g\in \text{GL}_{c}$, 
\begin{equation}
    W_{\phi}\left(\begin{smallmatrix} g & \\  & I_c\end{smallmatrix}\right) =\phi(g).
\end{equation}
\end{corollary}

 
\begin{proof}
By \cite[Theorem 2]{SahiStein1990}, the representation $\Delta(\tau, c)$ is irreducible when restricted to $P$. It follows from \cite{Poulsen1972} that the space of $P$-invariant sesquilinear forms on $\mathcal{V}_{\Delta(\tau, c)}$ is one-dimensional. Thus $\Delta(\tau, c)$ satisfies the assumption in Theorem~\ref{theorem-archimedean-generalized-kirillov}. The result follows. 
\end{proof}


\begin{remark}
We expect that Corollary~\ref{Corollary-Speh-representation} will be useful in the study of the Archimedean Rankin-Selberg integrals for the Speh representations which are analogous to the integrals studied in \cite{LapidMao2020} in the $p$-adic case. 
\end{remark}




To prove Theorem~\ref{theorem-archimedean-generalized-kirillov}, we first prove a preliminary lemma. 

For a Lie algebra $\mathfrak{g}$ over $F$, we denote by $\mathcal{U}(\mathfrak{g})$ its universal enveloping algebra, and by $\mathcal{Z}(\mathcal{U}(\mathfrak{g}))$ the center of $\mathcal{U}(\mathfrak{g})$. For a Lie group $G$, we denote by $\text{Lie}(G)$ the Lie algebra of $G$, by $\mathcal{U}(G)$ its universal enveloping algebra, and by $\mathcal{Z}(\mathcal{U}(G))$ the center of $\mathcal{U}(G)$.
We identify $\text{Lie}(G)$ with its image in $\mathcal{U}(G)$.



We denote by $E_{i,j}$, for $1\le i,  j\le kc$, the matrix with $1$ in the $(i,j)$ entry and zero in all other entries. 
The set 
\begin{equation*}
    \{ E_{i,j}: 1\le i, j \le kc\}
\end{equation*}
is a basis of $\text{Lie}(\text{GL}_{kc}({\mathbb R}))$ when $F={\mathbb R}$. Additionally, when $F={\mathbb C}$, we further deonte by $E_{\sqrt{-1}i, j}$, for $1\le i, j, \le kc$, the matrix with $\sqrt{-1}$ in the $(i,j)$ entry and zero in all other entries. Then
the set 
\begin{equation*}
    \{ E_{i,j}, E_{\sqrt{-1}i,j}: 1\le i, j \le kc\}
\end{equation*}
is a basis of $\text{Lie}(\text{GL}_{kc}({\mathbb C}))$. There are two natural embeddings of Lie algebras 
\begin{equation*}
    i_1, i_2:\text{Lie}(\text{GL}_{kc}({\mathbb R}))\to\text{Lie}(\text{GL}_{kc}({\mathbb C})) 
\end{equation*}
given by
\begin{equation*}
    i_1(E_{i,j})=\frac{1}{2}(E_{i,j}+\sqrt{-1}E_{\sqrt{-1}i,j}), i_2(E_{i,j})=\frac{1}{2}(E_{i,j}-\sqrt{-1}E_{\sqrt{-1}i,j}).
\end{equation*}
We have
\begin{equation*}
    \text{Lie}(\text{GL}_{kc}({\mathbb C}))=i_1(\text{Lie}(\text{GL}_{kc}({\mathbb R})))\oplus i_2( \text{Lie}(\text{GL}_{kc}({\mathbb R}))).
\end{equation*}

Let $\pi$ be an irreducible unitary Whittaker-Speh-Shalika representation of $\text{GL}_{kc}(F)$ and let $\lambda$ be the unique functional as in \eqref{archimedean-Kirillov-eq-functional}. For any $v\in \mathcal{V}_\pi$,  $0\le m \le k-1$,  $1\le i,j\le c$, we have
\begin{equation}
    (d\pi(E_{cm+i,cm+c+j}) v, \lambda)= \begin{cases}
    0 & \text{ if }i\not=j,\\
    c_0 v & \text{ if }i=j,
    \end{cases}
    \label{eq-technical-lemma-1}
\end{equation}
where $c_0 \in \mathbb{C}^\times$, and $c_0$ only depends on the choice of $\psi$. In addition, when $F={\mathbb C}$, for any $v\in \mathcal{V}_\pi$,  $0\le m \le k-1$,  $1\le i,j\le c$, we have
\begin{equation}
    (d\pi(E_{\sqrt{-1}cm+i,cm+c+j}) v, \lambda)= \begin{cases}
    0 & \text{ if }i\not=j,\\
    c_{\sqrt{-1}} v & \text{ if }i=j,
    \end{cases}
\end{equation}
where $c_{\sqrt{-1}} \in \mathbb{C}^\times$ and it only depends on the choice of $\psi$.

\iffalse
let $X_{m,i,j}\in \text{Lie}(U_{(c^k)})$ be the element whose only non-zero entry is the $(cm+i,cm+c+j)$-entry, and this non-zero entry is equal to 1. Then for any $v\in \mathcal{V}_\pi$, we have
\begin{equation}
    (d\pi(X_{m,i,j}) v, \lambda)= \begin{cases}
    0 & \text{ if }i\not=j,\\
    c_0 v & \text{ if }i=j,
    \end{cases}
    \label{eq-technical-lemma-1A}
\end{equation}
where $c_0 \in \mathbb{C}^\times$, and $c_0$ only depends on the choice of $\psi$. 
 \fi


\iffalse
We consider a $\text{Lie}(\text{GL}_{kc})$ module $V$, and let $\lambda$ be a non-zero vector in $V$. We consider the positive roots of $A_{kc}$ with respect to $N_{kc}$. We denote by $\alpha_1, \alpha_2, \cdots, \alpha_{kc-1}$ the simple roots in the usual ordering. For each root $\alpha$, we denote by $X_\alpha$ the corresponding root vector in $\text{Lie}(\text{GL}_{kc})$. We assume that there is a non-zero constant $c_0$ such that 
\begin{equation*}
    X_\alpha \lambda = \begin{cases}
                        c_0 \lambda & \, \text{ if $\alpha$ is simple,}\\
                        0 & \, \text{ otherwise}.
                        \end{cases}
\end{equation*}
\fi

For each positive integer $l<kc$, we embed $\text{GL}_{l}$ into $\text{GL}_{kc}$ via
\begin{equation*}
    g \mapsto \left(\begin{smallmatrix}
    g & \\
    & I_{kc-l}
    \end{smallmatrix}\right).
\end{equation*}

\begin{lemma}
\label{lemma-technicallemma}
Let the notation be as above. Then 
\begin{equation}
    \text{Lie}(\overline{U}_{(c^k)}) \lambda \subset \mathcal{U}(\text{GL}_{(k-1)c})  \mathcal{U}(\text{GL}_{c}^\Delta) \mathcal{Z}(\mathcal{U}( \text{GL}_{kc}))  \lambda,
\label{eq-technicallemma-inclusion1}
\end{equation}
\begin{equation}
    \mathcal{U}(\overline{U}_{(c^k)}) \lambda \subset \mathcal{U}(\text{GL}_{(k-1)c}) \mathcal{U}(\text{GL}_{c}^\Delta) \mathcal{Z}(\mathcal{U}( \text{GL}_{kc}))   \lambda,
\label{eq-technicallemma-inclusion2}
\end{equation}    
\begin{equation}
     \mathcal{U}( \text{GL}_{kc}) \lambda \subset \mathcal{U}(\text{GL}_{(k-1)c}) \mathcal{U}(\text{GL}_{c}^\Delta) \mathcal{Z}(\mathcal{U}( \text{GL}_{kc}))   \lambda.
\label{eq-technicallemma-inclusion3}
\end{equation}
\end{lemma}

\begin{remark}
We remark that the special case when $c=1$ is proved in \cite[Lemma 3]{Jacquet2010} (for $F={\mathbb R}$) and \cite[Lemma 1]{Kemarsky2015} (for $F={\mathbb C}$). 
\end{remark}

\begin{proof}[Proof of Lemma~\ref{lemma-technicallemma}]
First, we consider the case when $F={\mathbb R}$. Since $\text{GL}_{(k-1)c}$ normalizes $\overline{U}_{(c^k)}$, \eqref{eq-technicallemma-inclusion2} follows from \eqref{eq-technicallemma-inclusion1}. Also, by the Poincar\'{e}-Birkhoff-Witt Theorem, we have
\begin{equation*}
      \mathcal{U}( \text{GL}_{kc}) =  \mathcal{U}(\text{GL}_{(k-1)c})  \mathcal{U}( U_{(c^k)}) \mathcal{U}(\overline{U}_{(c^k)})  \mathcal{U}(\text{GL}_c^\Delta).
\end{equation*}
Moreover, $\text{GL}_{(k-1)c}$ normalizes $U_{(c^k)}$, $\mathcal{U}(\text{GL}_c^\Delta) \lambda={\mathbb C} \lambda$, and $\mathcal{U}(U_{(c^k)}) \lambda={\mathbb C} \lambda$. Thus \eqref{eq-technicallemma-inclusion3} follows from \eqref{eq-technicallemma-inclusion2}. It remains to prove \eqref{eq-technicallemma-inclusion1}. Note that it suffices to prove that 
\begin{equation*}
    d\pi(E_{i,j})\lambda\in  \mathcal{U}(\text{GL}_{(k-1)c})  \mathcal{U}(\text{GL}_{c}^\Delta) \mathcal{Z}(\mathcal{U}(\text{GL}_{kc})) \lambda 
\end{equation*}
for 
\begin{equation*}
 (k-1)c+1\le i \le kc, \, 1\le j \le (k-1)c.   
\end{equation*}
Now we recall \cite[Lemma 3]{Jacquet2010}. For a positive integer $l$, we denote by $N_l$ the standard maximal unipotent subgroup of $\text{GL}_l$. Then by \cite[Lemma 3]{Jacquet2010}, if $\mathcal{U}(N_l)\lambda={\mathbb C} \lambda$, then 
\begin{equation*}
    d\pi(E_{l,j})\lambda \in \mathcal{U}(\text{GL}_{l-1})\mathcal{Z}(\mathcal{U}(\text{GL}_{l}))\lambda \, \text{ for all } 1\le j \le l. 
\end{equation*}
We first apply this to $l=(k-1)c+1$, to conclude that 
\begin{equation*}
    d\pi(E_{(k-1)c+1, j}) \lambda\in \mathcal{U}(\text{GL}_{(k-1)c})  \mathcal{U}(\text{GL}_{c}^\Delta) \mathcal{Z}(\mathcal{U}(\text{GL}_{kc})) \lambda 
\end{equation*}
for all $1\le j \le (k-1)c$.
Next, we apply \cite[Lemma 3]{Jacquet2010} to $l=(k-1)c+2$, and then we apply it to $l=(k-1)c+3$, and continue in this way until $l=kc$. This proves the lemma when $F={\mathbb R}$.

When $F={\mathbb C}$, the result can be obtained by deducing from the corresponding result when $F={\mathbb R}$ using the embeddings $i_1$ and $i_2$, along the same line as in the proof of \cite[Lemma 1]{Kemarsky2015}.  
\end{proof}




Let $dg$ denote an invariant measure on $U_{(c^{k-1})}\backslash \text{GL}_{(k-1)c}$.
For any $v_1, v_2\in \mathcal{V}_\pi$, we claim that the integral
\begin{equation}
\int\limits_{U_{(c^{k-1})}\backslash \text{GL}_{(k-1)c}} W_{v_1}\left(\begin{smallmatrix} g & \\  & I_c\end{smallmatrix}\right)  \overline{W_{v_2}\left(\begin{smallmatrix} g & \\  & I_c\end{smallmatrix}\right)} dg
\label{eq-inner-product-integral}
\end{equation}
converges. To prove the claim, we follow similar ideas in \cite[Proposition 1.3, Proposition 3.16]{JacquetShalika198101}.
First, we consider the case where $v_1=v_2=v$. Let $A(v)=W_v$. 
So $A$ is a non-zero  operator in $\text{Hom}_P(\mathcal{V}_\pi, \text{Ind}_{U_{(c^k)}}^P(\psi)^\infty)$. Moreover, $A$ is continuous due to the Automatic Continuity Theorem \cite{Casselman1989, Wallach1992}.
Then
\begin{equation*}
\begin{split}
 \int\limits_{U_{(c^{k-1})}\backslash \text{GL}_{(k-1)c}} W_{v}\left(\begin{smallmatrix} g & \\  & I_c\end{smallmatrix}\right)  \overline{W_{v}\left(\begin{smallmatrix} g & \\  & I_c\end{smallmatrix}\right)} dg    =     \int\limits_{U_{(c^{k-1})}\backslash \text{GL}_{(k-1)c}}|A(v)|^2 \left(\begin{smallmatrix} g & \\  & I_c\end{smallmatrix}\right) dg
 =\| A(v)\|^2 
\le  \|A\|^2 \|v\|^2<\infty.
\end{split}
\end{equation*}
The general case follows from the Cauchy-Schwarz inequality:
\begin{equation*}
\begin{split}
    & \left|\int_{U_{(c^{k-1})}\backslash \text{GL}_{(k-1)c}}   W_{v_1}\left(\begin{smallmatrix} g & \\  & I_c\end{smallmatrix}\right)  \overline{W_{v_2}\left(\begin{smallmatrix} g & \\  & I_c\end{smallmatrix}\right)} dg  \right|^2  \\
 \le &  
 \left(\int_{U_{(c^{k-1})}\backslash \text{GL}_{(k-1)c}} \left| W_{v_1}\right|^2\left(\begin{smallmatrix} g & \\  & I_c\end{smallmatrix}\right)  dg \right)  \left(\int_{U_{(c^{k-1})}\backslash \text{GL}_{(k-1)c}} \left| W_{v_2}\right|^2\left(\begin{smallmatrix} g & \\  & I_c\end{smallmatrix}\right)  dg \right)   
 <   \infty.
\end{split}
\end{equation*}
This proves the claim. 

For $v_1, v_2\in \mathcal{V}_{{\pi}}$, we define a scalar product through the convergent integral
\begin{equation}
    (v_1, v_2):=\int\limits_{U_{(c^{k-1})}\backslash \text{GL}_{(k-1)c} } W_{v_1}\left(\begin{smallmatrix} g & \\  & I_c\end{smallmatrix}\right)  \overline{W_{v_2}\left(\begin{smallmatrix} g & \\  & I_c\end{smallmatrix}\right)} dg.
\label{eq-inner-product}
\end{equation}
By assumption on the uniqueness of $P$-invariant sesquilinear forms, the above form in \eqref{eq-inner-product} is a scalar multiple of the canonical form on $\mathcal{V}_\pi$ induced by $\mathcal{H}_\pi$. We may assume that the canonical scalar product on $\mathcal{V}_\pi$ is equal to the one given by this convergent integral \eqref{eq-inner-product}. 

 



Consider the space $\mathcal{V}_{(k-1)c}$ of $\text{GL}_{(k-1)c}$ smooth vectors in $\mathcal{H}_\pi$. Note that $\mathcal{V}_\pi$ is dense in $\mathcal{H}_\pi$. Since $\mathcal{V}_\pi$ is $\text{GL}_{kc}$-invariant, it is also $\text{GL}_{(k-1)c}$-invariant. So $\mathcal{V}_\pi\subset \mathcal{V}_{(k-1)c}$. Hence $\mathcal{V}_\pi$ is dense in $\mathcal{V}_{(k-1)c}$.
Thus, we have continuous inclusions 
\begin{equation*}
    \mathcal{V}_\pi\subset \mathcal{V}_{(k-1)c} \subset \mathcal{H}_\pi \subset \mathcal{V}^\prime_{(k-1)c}\subset \mathcal{V}^\prime.
    \label{eq-continuous-inclusions}
\end{equation*}
The space $\mathcal{V}_{(k-1)c}$ is a $\text{GL}_{(k-1)c}$-module, and it consists of $C^\infty$ functions $f_0$ such that $f_0(ug)=\psi(u)f_0(g)$ for $u\in U_{(c^{k-1})}$, $g\in \text{GL}_{(k-1)c}$. Thus, there is an element $\nu$ of $\mathcal{V}_{(k-1)c}^\prime$ such that, for all $f_0\in \mathcal{V}_{(k-1)c}$, 
\begin{equation*}
    (f_0, \nu)=f_0(e).
\end{equation*}
Because of the inclusion $\mathcal{V}^\prime_{(k-1)c}\subset \mathcal{V}_\pi^\prime$, $\nu$ is a vector in $\mathcal{V}_\pi^\prime$ such that, for all $v\in \mathcal{V}_\pi$, and all $u\in U_{(c^k)}$, 
\begin{equation*}
    (\pi(u)v, \nu)=\psi(u)(v, \nu).
\end{equation*}
Thus, by \eqref{eq-multiplicity-one} we conclude that $\nu$ is a scalar multiple of $\lambda$. We may assume that $\nu=\lambda$. Thus, the element $\lambda$, which in priori belongs to $\mathcal{V}_\pi^\prime$, belongs to $\mathcal{V}_{(k-1)c}^\prime$.

\iffalse
\begin{lemma}
The vector $\lambda$, which is a priori in $\mathcal{V}_\pi^\prime$, belongs to $\mathcal{V}_{(k-1)c}^\prime$.
\end{lemma}
\fi

Given $\phi\in C_c^\infty(\text{GL}_{(k-1)c})$, we set
\begin{equation*}
   \check{\phi}(g)=\phi(g^{-1}), \, \phi^*(g)=\overline{\phi(g^{-1})}, \, \text{ for }g\in \text{GL}_{(k-1)c},
\end{equation*}
and
\begin{equation}
    u_\phi:= \int\limits_{g\in \text{GL}_{(k-1)c}} \phi(g) \pi\left(\begin{smallmatrix}
    g & \\
     & I_c
    \end{smallmatrix}\right) \lambda dg.
\end{equation}



\begin{lemma}
\label{lemma-u_phi-in-V_(k-1)c}
The vector $u_\phi$, which is a priori in $\mathcal{V}_{(k-1)c}^\prime$, is in fact  in $\mathcal{V}_{(k-1)c}$, and in particular in $\mathcal{H}_\pi$. 
\end{lemma}

\begin{proof}
Let $W$ be an arbitrary element of $\mathcal{V}_\pi$.
We have
\begin{equation*}
\begin{split}
    (W, u_\phi) &= \left( W,  \int\limits_{g\in \text{GL}_{(k-1)c}} \phi(g) \pi\left(\begin{smallmatrix}
    g & \\
     & I_c
    \end{smallmatrix}\right) \lambda dg \right) \\
    &= \left(   \int\limits_{g\in \text{GL}_{(k-1)c}} \phi^*(g) \pi\left(\begin{smallmatrix}
    g & \\
     & I_c
    \end{smallmatrix}\right) W dg , \lambda \right)  \\
    &=  \int\limits_{g\in \text{GL}_{(k-1)c}}  W\left(\begin{smallmatrix}
    g & \\
     & I_c
    \end{smallmatrix}\right) \phi^*(g)  dg \\
    &=\int\limits_{U_{(c^{k-1})}\backslash \text{GL}_{(k-1)c}}    W\left(\begin{smallmatrix}
    g & \\
     & I_c
    \end{smallmatrix}\right) \int\limits_{U_{(c^{k-1})}} \phi^*(ug)\psi(u)du dg \\
    &=\int\limits_{U_{(c^{k-1})}\backslash \text{GL}_{(k-1)c}}    W\left(\begin{smallmatrix}
    g & \\
     & I_c
    \end{smallmatrix}\right) \overline{\int\limits_{U_{(c^{k-1})}} \check{\phi}(ug)\overline{\psi(u)}du} dg \\
    &= \left( W,   W_{\phi_0}  \right)
\end{split}
\end{equation*}
where 
\begin{equation*}
    \phi_0(g)= \int\limits_{U_{(c^{k-1})}} \check{\phi}(ug)\overline{\psi(u)}du .
\end{equation*}
Thus, $u_\phi=W_{\phi_0}\in \mathcal{V}_{(k-1)c}$.
\end{proof}

Now we use Lemma~\ref{lemma-technicallemma} and Lemma~\ref{lemma-u_phi-in-V_(k-1)c} to prove a stronger result on the vector $u_\phi$. We recall some additional notation. For any Lie group $G$, let $Y\mapsto \check{Y}$ be the anti-automorphism of $\mathcal{U}(G)$ such that $\check{Y}=-Y$ for $Y\in \text{Lie}(G)$. Let $\rho(Y)$ be the action of $Y\in \mathcal{U}(G)$ on $C^\infty$ functions on $G$ such that 
\begin{equation*}
    \rho(Y)f(g)=\frac{d}{dt}f(g\exp(tY))|_{t=0},
\end{equation*}
for $Y\in \text{Lie}(G)$. 

\begin{lemma}
For every $X\in \mathcal{U}(\text{GL}_{kc})$ and every $\phi\in C_c^\infty(\text{GL}_{(k-1)c})$, the vector $d\pi(X) u_\phi$, which, a priori, is in $\mathcal{V}_\pi^\prime$, is in fact in $\mathcal{H}_\pi$. 
\label{lemma-d(pi)u_phi-in-H}
\end{lemma}

\begin{proof}
We follow \cite[Lemma 5]{Jacquet2010}. Let $\{X_\alpha\}$ be a basis of $\mathcal{U}(\text{GL}_{kc})$. Then 
\begin{equation*}
    \text{Ad}\left( \begin{smallmatrix} g^{-1} & \\ & I_c\end{smallmatrix}\right) X= \sum_{\alpha} c_\alpha(g) X_\alpha
\end{equation*}
with smooth functions $c_\alpha$, almost all 0. Thus, 
\begin{equation*}
    d\pi(X) u_\phi=\sum_{\alpha} \int\limits_{\text{GL}_{(k-1)c}} \pi\left(\begin{smallmatrix} g & \\& I_c\end{smallmatrix}\right)\phi(g)c_\alpha(g)  \, d\pi(X_\alpha)\lambda dg.
\end{equation*}
By Lemma~\ref{lemma-technicallemma}, $d\pi(X_\alpha)\lambda=d\pi(Y_\alpha)\lambda$ with $Y_\alpha\in \mathcal{U}(\text{GL}_{(k-1)c})$. Then we have
\begin{equation*}
    d\pi(X) u_\phi=\sum_{\alpha} \int\limits_{\text{GL}_{(k-1)c}} \pi\left(\begin{smallmatrix} g & \\& I_c\end{smallmatrix}\right)\phi(g)c_\alpha(g)  \, d\pi(Y_\alpha)\lambda dg.
\end{equation*}
Now we set $\phi_\alpha(g):=\phi(g)c_\alpha(g)$ and $\phi_\alpha^\prime(g):=\rho(\check{Y_\alpha})\phi_\alpha$. We thus get
\begin{equation}
     d\pi(X) u_\phi=\sum_{\alpha} \int\limits_{\text{GL}_{(k-1)c}} \phi_\alpha^\prime(g) \pi\left(\begin{smallmatrix} g & \\& I_c\end{smallmatrix}\right)  \lambda dg.
     \label{eq-d_pi(X)u_phi-right-hand-side}
\end{equation}
By Lemma~\ref{lemma-u_phi-in-V_(k-1)c}, the right-hand side of \eqref{eq-d_pi(X)u_phi-right-hand-side} is in $\mathcal{H}_\pi$. 
\end{proof}


Next, we recall the following standard lemma from functional analysis. 

\begin{lemma}
Suppose $v_0\in \mathcal{H}_\pi$ is a vector such that for every $X\in \mathcal{U}(\text{GL}_{kc})$ the vector $d\pi(X) v_0$, which a priori is in $\mathcal{V}_\pi^\prime$, is in fact in $\mathcal{H}_\pi$. Then $v_0$ is in $\mathcal{V}_\pi$.
\label{lemma-functional-analysis}
\end{lemma}

\begin{proof}
See \cite[Lemma 6]{Jacquet2010}.
\end{proof}

\begin{proposition}
For every $\phi\in C_c^\infty(\text{GL}_{(k-1)c})$, the vector
\begin{equation*}
    u_\phi:= \int\limits_{g\in \text{GL}_{(k-1)c}} \phi(g) \pi\left(\begin{smallmatrix}
    g & \\
     & I_c
    \end{smallmatrix}\right) \lambda dg
\end{equation*}
is in $\mathcal{V}_\pi$. 
\end{proposition}

\begin{proof}
This follows immediately from Lemma~\ref{lemma-d(pi)u_phi-in-H} and Lemma \ref{lemma-functional-analysis}.
\end{proof}

\begin{lemma}
If $v=u_\phi$, then 
\begin{equation*}
    W_v\left(\begin{smallmatrix} g & \\ & I_c \end{smallmatrix}\right)=\phi_0(g),
\end{equation*}
where 
\begin{equation*}
    \phi_0(g)=\int\limits_{U_{(c^{k-1})}}\check{\phi}(ug)\overline{\psi(u)}du.
    \end{equation*}
    \label{lemma-W_v=phi_0}
\end{lemma}

\begin{proof}
This follows from the proof of Lemma~\ref{lemma-u_phi-in-V_(k-1)c}.
\end{proof}

Now we prove Theorem~\ref{theorem-archimedean-generalized-kirillov}.

\begin{proof}[Proof of Theorem~\ref{theorem-archimedean-generalized-kirillov}]
Given $\phi\in C_c^\infty( \text{GL}_{(k-1)c}, \psi)$, we can find $\phi_0\in C_c^\infty(\text{GL}_{(k-1)c})$ such that 
\begin{equation*}
    \phi(g)=\int\limits_{U_{(c^{k-1})}}\phi_0(g^{-1} u)\psi(u)du.
\end{equation*}
Let $v=u_{\phi_0}$ and let $W_\phi=W_v$. Then it follows from Lemma~\ref{lemma-W_v=phi_0} that 
\begin{equation*}
    W_{\phi}\left(\begin{smallmatrix} g & \\  & I_c\end{smallmatrix}\right) =\phi(g).
\end{equation*}
This proves the existence of $W_\phi$.  
\end{proof}

\subsection{Meromorphic continuation and non-vanishing at archimedean places}

Finally we consider the archimedean local integral, which is given by
\begin{equation*}
\mathcal{Z}_\infty(\varphi, \Phi_\infty, f_{\infty, s}) =     \int\limits_{N_4(\mathbb{A}_\infty)\backslash \text{Sp}_4(\mathbb{A}_\infty)} \int\limits_{N_{2,8}^0(\mathbb{A}_\infty)}   \varphi_{\psi, T}(h)   \omega_{\psi, \infty}\left( \alpha_T(v)(1,h)\right) )\Phi_\infty(I_2 )
f_{\infty, s}( \gamma v (1, h) )    dv   dh.
\end{equation*}
Here $\Phi_\infty\in \mathcal{S}(\text{Mat}_{2}(F_\infty))$, $f_{\infty, s}\in \text{Ind}_{P_8(F_\infty)}^{\text{Sp}_8(F_\infty)}(\mathcal{W}( \tau_\infty\otimes \chi_T, 2, \psi_{2T})|\det|^s)$.

\begin{proof}[Proof of Proposition~\ref{proposition-ramified-archimedean}]
The proof is similar to \cite[Proposition 6.7]{GinzburgRallisSoudry1998}. Similar to \eqref{eq-local-ramified-eq2}, we have
\begin{equation*}
\begin{split}
\mathcal{Z}_\infty(\varphi, \Phi_\infty, f_{\infty, s}) = 
    &\int\limits_{\text{GL}_2(\mathbb{A}_\infty)} \int\limits_{\text{Mat}_2^0(\mathbb{A}_\infty)}    \int\limits_{\overline{N}_{2,8}^0(\mathbb{A}_\infty)} \varphi_{\psi, T}\left(  \left(\begin{smallmatrix} a & \\ & a^*\end{smallmatrix}\right)  \overline{n}_4(w)      \right)   \psi^{-1}(\text{tr}(Tz)) \chi_T(\det(a)) |\det(a)|^{-4} \\
\ \ \ \ \ \ \ \ \ \ \    & \ \ \ \ \ \ \ \ \ \    \omega_{\psi, \infty}\left( (1,\overline{n}_4(w) \right) \Phi_\infty( a+x)
f_{\infty, s}
 \left(  
   \left(\begin{smallmatrix} a &&&\\ & I_2&&\\  &  &I_2 & \\ & &&a^*\end{smallmatrix} \right) 
 \left(\begin{smallmatrix} I_2 &&&\\ & I_2&&\\ x & z &I_2 & \\ w&x^* &&I_2\end{smallmatrix} \right)    
  \gamma
 \right)    d\overline{v} dw  da .
 \end{split}
 \label{eq-local-ramified-archimedean-eq1}
\end{equation*}
We choose $f_{\infty, s}$ such that the right $\gamma$-translate of $f_{\infty, s}$ has support in $P_8(\mathbb{A}_\infty)\cdot \overline{N}_8(\mathbb{A}_\infty)$, where
$$
\overline{N}_8(\mathbb{A}_\infty)=\left\{  \overline{u}(x, z, w)=\left(\begin{smallmatrix} I_2 &&&\\ & I_2&&\\ x & z &I_2 & \\ w&x^* &&I_2\end{smallmatrix} \right)      \in \text{Sp}_8(\mathbb{A}_\infty)  \right\}.$$
Assume that 
\begin{equation*}
\gamma\cdot f_{\infty, s} \left(  \left(\begin{smallmatrix} I_4 & * \\ & I_4\end{smallmatrix}\right) \left(\begin{smallmatrix} m &  \\ & m^*\end{smallmatrix}\right)  \overline{u}    \right)  =|\det(m)|^{s+\frac{5}{2}} \phi(\overline{u}) W_\infty (m),
\end{equation*}
where $\overline{u}\in \overline{N}_8(\mathbb{A}_\infty)$, $m\in \text{GL}_4(\mathbb{A}_\infty)$, $W_\infty\in \mathcal{W}(\tau_\infty\otimes \chi_{T}, 2, \psi_{2T})$, and $\phi$ is a smooth function with compact support in $C_c^\infty(\overline{N}_8(\mathbb{A}_\infty))$ given by 
\begin{equation*}
\phi(\overline{u}(x, z, w))=\phi_1(x) \phi_2(z)\phi_3(w)
\end{equation*}
where $\phi_1\in C_c^\infty(\text{Mat}_2(\mathbb{A}_\infty)) $, $\phi_2\in C_c^\infty(\text{Mat}_2^0(\mathbb{A}_\infty)) $, $\phi_3\in C_c^\infty(\text{Mat}_2^0(\mathbb{A}_\infty)) $.
With  these choices,  $\mathcal{Z}_\infty(\varphi, \Phi_\infty, f_{\infty, s})$ is equal to
\begin{equation*}
\begin{split}
    &\int\limits_{\text{GL}_2(\mathbb{A}_\infty)} \int\limits_{\text{Mat}_2^0(\mathbb{A}_\infty)}    \int\limits_{\overline{N}_{2,8}^0(\mathbb{A}_\infty)}   \pi\left( \begin{smallmatrix} I_2  & \\ w & I_2\end{smallmatrix} \right) \varphi_{\psi, T}   \left(\begin{smallmatrix} a & \\ & a^*\end{smallmatrix}\right)      \psi^{-1}(\text{tr}(Tz)) \chi_T(\det(a)) |\det(a)|^{s-\frac{3}{2}} \\
\ \ \ \ \ \ \ \ \    & \ \ \ \ \ \ \ \ \ \   \ \ \ \ \ \ \ \    \ \ \ \ \ \ \ \  \ \   \ \ \ \ \ \    \ \   \ \ \ \ \         \omega_{\psi, \infty}\left( (1,\overline{n}_4(w) \right) \Phi_\infty( a+x)
W_{\infty}
   \left(\begin{smallmatrix} a  &\\ & I_2 \end{smallmatrix} \right) 
  \phi_1(x) \phi_2(z)\phi_3(w)  d\overline{u}  da .
 \end{split}
\end{equation*}
The $dz$-integration gives a constant $\int \phi_2(z)\psi^{-1}(\text{tr}(Tz))dz$, and we may choose $\phi_2$ such that this constant is non-zero. Thus, up to this non-zero constant, $\mathcal{Z}_\infty(\varphi, \Phi_\infty, f_{\infty, s})$ is equal to
\begin{equation}
\begin{split}
    &\int\limits_{\text{GL}_2(\mathbb{A}_\infty)} \int\limits   \pi\left( \begin{smallmatrix} I_2  & \\ w & I_2\end{smallmatrix} \right) \varphi_{\psi, T}   \left(\begin{smallmatrix} a & \\ & a^*\end{smallmatrix}\right)      \chi_T(\det(a)) |\det(a)|^{s-\frac{3}{2}} \\
\ \ \ \ \ \ \ \ \    & \ \ \ \ \ \ \ \ \ \   \ \ \ \ \ \ \ \    \ \ \ \ \ \ \ \  \ \   \ \ \ \ \ \    \ \   \ \ \ \ \     \omega_{\psi, \infty}\left( (1,\overline{n}_4(w) \right) \Phi_\infty( a+x)
W_{\infty}
   \left(\begin{smallmatrix} a  &\\ & I_2 \end{smallmatrix} \right) 
  \phi_1(x)  \phi_3(w)  dw dx  da .
 \end{split}
 \label{eq-local-archimedean-eq4}
\end{equation}
Next, we consider the $dw$-integration
\begin{equation}
\int  \phi_3(w)  \pi\left( \begin{smallmatrix} I_2  & \\ w & I_2\end{smallmatrix} \right)  \varphi_{\psi, T}  \otimes   \omega_{\psi, \infty}\left( (1,\overline{n}_4(w) \right) \Phi_\infty dw.
 \label{eq-local-archimedean-eq5}
\end{equation}
This is a convolution of $\phi_3$ against $\varphi_{\psi, T}\otimes \Phi_\infty \in \mathcal{W}(\pi, \psi, T)\hat{\otimes} \omega_\psi$. Here, $  \mathcal{W}(\pi, \psi, T)$ is the space spanned by the global Fourier coefficient of the form $\varphi_{\psi, T}$ and we regard it as the representation space  under the right translation action of $\overline{N}_4(\mathbb{A}_\infty)$. By the Dixmier-Malliavin Theorem \cite{DixmierMalliavin1978}, a linear combination of integrals of the form \eqref{eq-local-archimedean-eq5} represents a general element in the space $\mathcal{W}(\pi, \psi, T)\hat{\otimes} \omega_\psi$. Thus, up to a suitable linear combination of integrals of the form  \eqref{eq-local-archimedean-eq4}, we get
\begin{equation}
\begin{split}
    \int\limits_{\text{GL}_2(\mathbb{A}_\infty)} \int\limits   \varphi^\prime_{\psi, T}   \left(\begin{smallmatrix} a & \\ & a^*\end{smallmatrix}\right)      \chi_T(\det(a)) |\det(a)|^{s-\frac{3}{2}} \Phi_\infty^\prime ( a+x)
W_{\infty}
   \left(\begin{smallmatrix} a  &\\ & I_2 \end{smallmatrix} \right) 
  \phi_1(x)  dx  da .
 \end{split}
 \label{eq-local-archimedean-eq6}
\end{equation}
where $\varphi^\prime_{\psi, T} \in \mathcal{W}(\pi, \psi, T)$, $\Phi_\infty^\prime\in \mathcal{S}(\text{Mat}_2(\mathbb{A})_\infty)$.
By the Dixmier-Malliavin Theorem \cite{DixmierMalliavin1978} again, up to a linear combination, the $dx$-integration
\begin{equation}
\int  \phi_1(x) \Phi_\infty^\prime(a+x)dx = \int \phi_1(x) \omega_\psi(\alpha_T(v(x,0,0)))\Phi_\infty^\prime(a) dx
\label{eq-local-archimedean-eq7}
\end{equation}
represents a general element of  $\mathcal{S}(\text{Mat}_2(\mathbb{A}_\infty)) $. Thus, after a suitable linear combination, \eqref{eq-local-archimedean-eq6} becomes
\begin{equation}
\begin{split}
    \int\limits_{\text{GL}_2(\mathbb{A}_\infty)}     \varphi^\prime_{\psi, T}   \left(\begin{smallmatrix} a & \\ & a^*\end{smallmatrix}\right)      \chi_T(\det(a)) |\det(a)|^{s-\frac{3}{2}} \Phi_\infty^{\prime \prime} ( a)
W_{\infty}
   \left(\begin{smallmatrix} a  &\\ & I_2 \end{smallmatrix} \right) 
   da 
 \end{split}
 \label{eq-local-archimedean-eq8}
\end{equation}
where $\Phi_\infty^{\prime\prime}\in \mathcal{S}(\text{Mat}_2(\mathbb{A}_\infty))$.
We choose $W_\infty\in \mathcal{W}(\tau_\infty\otimes\chi_T, 2, \psi_{2T})$ such that $W_{\infty}
   \left(\begin{smallmatrix} a  &\\ & I_2 \end{smallmatrix} \right)=\phi_4(a)$ where $\phi_4\in C_c^\infty(\text{GL}_2({\mathbb A}_\infty))$ is a smooth and compactly supported function on $\text{GL}_2({\mathbb A}_\infty)$
   (see Theorem~\ref{theorem-archimedean-generalized-kirillov}). 
Let $\Phi_\infty^{\prime\prime\prime}(a)= \Phi_\infty^{\prime \prime} ( a)
W_{\infty}
   \left(\begin{smallmatrix} a  &\\ & I_2 \end{smallmatrix} \right) $, so  $\Phi_\infty^{\prime\prime\prime}$ is a Schwartz function on $\text{GL}_2({\mathbb A}_\infty)$. 
The integral \eqref{eq-local-archimedean-eq8} becomes
\begin{equation}
\begin{split}
    \int\limits_{\text{GL}_2(\mathbb{A}_\infty)}     \varphi^\prime_{\psi, T}   \left(\begin{smallmatrix} a & \\ & a^*\end{smallmatrix}\right)      \chi_T(\det(a)) |\det(a)|^{s-\frac{3}{2}} \Phi_\infty^{\prime \prime \prime} ( a)
   da .
 \end{split}
 \label{eq-local-archimedean-eq9}
\end{equation}
Note that \eqref{eq-local-archimedean-eq9} is an archimedean integral consider in
\cite{RallisSoudry1989}. By 
\cite{RallisSoudry1989} we know that there is a choice of data so that \eqref{eq-local-archimedean-eq9} admits meromorphic continuation to the whole complex plane and \eqref{eq-local-archimedean-eq9} is non-vanishing at $s_0$. This proves the proposition.
\end{proof}

\section{A conjecture on $L$-function for $\text{Sp}_{2n}\times \text{GL}_n$}
\label{section-conjecture}

In this section we discuss how one can extend the global integral proposed by Ginzburg and Soudry to the tensor product partial $L$-function for a pair of irreducible automorphic cuspidal representations of $\text{Sp}_{2n}({\mathbb A})$ and $\text{GL}_n({\mathbb A})$. We assume that $n$ is even. This assumption is made in order to avoid the use of Eisenstein series for the metaplectic group. 

Let $\pi$ be an irreducible cuspidal automorphic representation of $\text{Sp}_{2n}(\mathbb{A})$, and let $\tau$ be an irreducible unitary cuspidal automorphic representation of   $\text{GL}_n(\mathbb{A})$. Fix a non-trivial additive character $\psi$ on $F\backslash {\mathbb A}$.
Let $T_0$ denote a symmetric matrix in $\text{GL}_n(F)$, and let $T=J_n T_0$. Denote by $\chi_T$ the quadratic character of $F^\times \backslash {\mathbb A}^\times$ given by $\chi_T(x)=(x, \det(T))$, where $(\cdot, \cdot)$ is the global Hilbert symbol as before. Extend $\chi_T$ to a character on $\text{GL}_n({\mathbb A})$ by composing it with the determinant. 
Let
$\varphi\in V_\pi$ be a cusp form in the space of $\pi$.

Let $\rm SO_{T_0}$ be the special orthogonal group in $n$ variables defined over $F$, corresponding to $T_0$.
Consider the dual pair $(\rm SO_{T_0}, \rm Sp_{2n})$ inside $\rm Sp_{2n^2}$. Since $n$ is even, the adelic group $\rm SO_{T_0}({\mathbb A})\times \rm Sp_{2n}({\mathbb A})$ splits in $\widetilde{\rm Sp}_{2n^2}({\mathbb A})$, and let $i_T$ be a splitting. Let $\omega_{\psi}$ be the Weil representation corresponding to this dual pair. We may realize the Weil representation in $\mathcal{S}(\text{Mat}_{n}({\mathbb A}))$.
Note that the unipotent radical $N_{n^{n-1}, 2n^2}$, which consists of matrices of the form
\begin{equation}
   \left(\begin{smallmatrix}
    I_n &*  &* &* &*&*&*  \\
    &\ddots &*&*&*&*&*\\ 
    &&I_n &y&z&*&*\\
    &&&I_{2n}&y^*&*&*\\
    &&&&I_n &*&*\\
    &&&&&\ddots &*\\
    &&&&&&I_n
    \end{smallmatrix}\right)\in \text{Sp}_{2n^2},
\label{FutureDirection-eq-unipotent-radical}
\end{equation}
has a structure of a generalized Heisenberg group $\mathcal{H}_{2n^2+1}$ of $2n^2+1$ variables, under the map
\begin{equation*}
    \alpha_T\left( v\right)=(y, \text{tr}(Tz)),
\end{equation*}
where $v$ is in the form \eqref{FutureDirection-eq-unipotent-radical}. 
Given a Schwartz function $\Phi\in \mathcal{S}(\text{Mat}_n(\mathbb{A}))$, we form the theta series
\begin{equation*}
    \theta_{\psi, 2n^2}^{\Phi}(\alpha_T(v)i_T(m,h))=\sum_{\xi\in \text{Mat}_n(F)}\omega_\psi(\alpha_T(v)i_T(m,h))\Phi(\xi)
\end{equation*}
where $v\in N_{n^{n-1}, 2n^2}({\mathbb A})$, $m\in \rm SO_{T_0}({\mathbb A})$, $h\in \rm Sp_{2n}({\mathbb A})$.

 
We also embed $\text{SO}_{T_0}\times \text{Sp}_{2n}$ inside $\text{Sp}_{4n}$ via $(m,h)\mapsto \text{diag}(m, h, m^*)$ where $m^*=J_n{}^t m^{-1} J_n$. We re-denote $(m, h)=\text{diag}(m, h, m^*)$. The group $\text{Sp}_{4n}$ is embedded inside $\text{Sp}_{2n^2}$ via 
\begin{equation*}
    t(g) = \left(\begin{smallmatrix} I_{n^2-2n} & & \\ & g & \\ & & I_{n^2-2n}\end{smallmatrix}\right).
\end{equation*}

Let $f_{\Delta(\tau\otimes \chi_T, n), s}$ be a  section in the induced representation 
\begin{equation*}
\text{Ind}_{P_{2n^2}(\mathbb{A})}^{\text{Sp}_{2n^2}(\mathbb{A})}(\Delta(\tau\otimes \chi_T, n)|\det \cdot |^s),
\end{equation*}
Here, $\Delta(\tau\otimes \chi_T, n)$ is the Speh representation of $\text{GL}_{n^2}(\mathbb{A})$ associated to $\tau\otimes \chi_T$, and $P_{2n^2}$ is the Siegel parabolic subgroup of $\text{Sp}_{2n^2}$. 
Let $E(\cdot, f_{\Delta(\tau\otimes \chi_T, n), s})$ be the corresponding Eisenstein series on $\text{Sp}_{2n^2}(\mathbb{A})$.

\begin{conjecture}
The integral
\begin{equation*}
\begin{split}
\int\limits_{\text{Sp}_{2n}(F)\backslash \text{Sp}_{2n}(\mathbb{A})} \int\limits_{N_{n^{n-1}, 2n^2}(F)\backslash N_{n^{n-1}, 2n^2}(\mathbb{A})}   \varphi(h)     \theta_{\psi, 2n^2}^\Phi (\alpha_T(v) i_T(1, h))E(v t((1, h)), f_{\Delta(\tau\otimes \chi_T, n), s})dvdh
\label{FutureDirection-eq-global-integral-0}
\end{split}
\end{equation*}
is Eulerian in the sense of the New Way method, and represents the tensor product partial $L$-function $L^S( s+\frac{1}{2}, \pi\times \tau)$.
\label{conjecture-Sp(2n)xGL(n)}
\end{conjecture}

With Theorem~\ref{thm-conjecture-holds}, we have proved Conjecture~\ref{conjecture-Sp(2n)xGL(n)} for the case $n=2$.

 


\section*{Acknowledgements}

I would like to thank my advisor Jim Cogdell for providing a tremendous amount of advice, support and encouragement. I also thank Yuanqing Cai for helpful discussions. 





\bibliographystyle{plain}
