Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    ArrowInvalid
Message:      JSON parse error: Missing a closing quotation mark in string. in row 19
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 145, in _generate_tables
                  dataset = json.load(f)
                File "/usr/local/lib/python3.9/json/__init__.py", line 293, in load
                  return loads(fp.read(),
                File "/usr/local/lib/python3.9/json/__init__.py", line 346, in loads
                  return _default_decoder.decode(s)
                File "/usr/local/lib/python3.9/json/decoder.py", line 340, in decode
                  raise JSONDecodeError("Extra data", s, end)
              json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 162385)
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1995, in _prepare_split_single
                  for _, table in generator:
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 148, in _generate_tables
                  raise e
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 122, in _generate_tables
                  pa_table = paj.read_json(
                File "pyarrow/_json.pyx", line 308, in pyarrow._json.read_json
                File "pyarrow/error.pxi", line 154, in pyarrow.lib.pyarrow_internal_check_status
                File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status
              pyarrow.lib.ArrowInvalid: JSON parse error: Missing a closing quotation mark in string. in row 19
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1529, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1154, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1027, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1122, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1882, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2038, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

text
string
meta
dict
\section{Introduction} \setcounter{equation}{0} Our main purpose in this paper is to introduce a (1+1)-dimensional field theory generalization of the elliptic $N$-body Ruijsenaars-Schneider model \cite{RS86,Ruijs12} which is usually regarded as a relativistic extension of the Calogero-Moser system. This is done in two different ways, so the paper consists of two main parts. In the first part (sections 2--4) we define a discrete space classical Ruijsenaars-Schneider chain starting from the classical homogeneous elliptic ${\rm GL}_N$ spin chain on $n$ sites. Assuming periodic boundary conditions in discrete space, it is a finite-dimensional integrable system of classical mechanics. By construction, it is gauge equivalent to the elliptic spin chain (or lattice version of the generalized Landau-Lifshitz model) with some special choice of the classical spin matrix at each site. In the second part (sections 5 and 6) we introduce a (1+1)-dimensional field analogue of the Ruijsenaars-Schneider model with continuous space variable whose natural finite-dimensional reduction turns out to be equivalent to the Ruijsenaars-Schneider chain introduced in the first part. Our method is based on investigation of general elliptic solutions (called elliptic families) to the difference version of the 2D Toda equation. We derive equations of motion for their poles together with a zero-curvature representation for them and show that they are Hamiltonian. The limit to differential equations in space rather than difference is shown to give the field extension of the Calogero-Moser model introduced in \cite{AKV02} via analyzing elliptic families of solutions to the Kadomtsev-Petviashvili equation. Regarding the motivation of our work, we should say that the field analog of the Ruijsenaars-Schneider system is a new integrable model which is valuable by itself. Its role in modern mathematical physics can be compared with the role of the field extension of the Calogero-Moser system, which is known to be gauge equivalent to continuous 1+1 integrable Landau-Lifshitz model \cite{LOZ,AtZ}. Below we describe the contents of both parts of the paper in more details. The classical homogeneous elliptic ${\rm GL}_N$ spin chain on $n$ sites is a widely known integrable system. It is also called an integrable ${\rm GL}_N$-generalization of the lattice Landau-Lifshitz equation \cite{Skl}--\cite{FTbook}. It is defined via the (classical) monodromy matrix depending on a spectral parameter $z$ as a product of the Lax matrices at each site: \begin{equation}\label{qa01} \begin{array}{c} \displaystyle{ T(z)={{\mathcal L}}^{1}(z){\mathcal L}^{2}(z)\ldots {\mathcal L}^{n}(z)\,, \quad {\mathcal L}^i(z)\in {\rm Mat}(N,\CC) . } \end{array} \end{equation} % Each Lax matrix depends on a set of dynamical variables (coordinates in the phase space), which are combined into a matrix $S^i\in {\rm Mat}(N,\CC) $, so that ${\mathcal L}^i(z)={\mathcal L}^i(z,S^i)$. The trace of the monodromy matrix $t(z)={\rm tr} \, T(z)$ is a generating function of Hamiltonians. They are in involution with respect to the classical quadratic $r$-matrix structure (with the Belavin-Drinfeld elliptic classical $r$-matrix \cite{BD} and $c$ be an arbitrary constant) \begin{equation}\label{qb22} \begin{array}{c} \displaystyle{ \{{\mathcal L}_1^{i}(z),{\mathcal L}_2^{j}(w)\}=\frac{1}{c}\, \delta^{ij}[{\mathcal L}_1^{i}(z){\mathcal L}_2^{i}(w),r_{12}(z-w)]\,, } \end{array} \end{equation} which is equivalent to $n$ copies of the classical generalized Sklyanin algebras at each site. In this paper we use a modified description of the classical Sklyanin's elliptic Lax matrix. Namely, following \cite{LOZ8} we define ${\mathcal L}^i(z,S^i)$ as \begin{equation}\label{qb23} \begin{array}{c} \displaystyle{ {\mathcal L}^i(z,S^i)={\rm tr}_2(R_{12}^\eta(z)S_2^i)\,, \quad S_2^i=1_{N} \otimes S^i\in{\rm Mat}(N,\mbox{\Bbb C})^{\otimes 2}\,, } \end{array} \end{equation} where $R_{12}^\eta(z)\in{\rm Mat}(N,\mbox{\Bbb C})^{\otimes 2}$ is the {\it quantum} Baxter-Belavin elliptic $R$-matrix \cite{Baxter,Belavin} and we use the standard convention on numbering the spaces where the matrices act. Let us stress that although $R_{12}^\eta(z)$ is quantum, the Lax matrix (\ref{qb23}) is classical. The parameter $\eta$ usually plays the role of the Planck constant since in the classical limit $\eta\rightarrow 0$ we have $R_{12}^\eta(z)= \eta^{-1}1_{N}\otimes 1_N+r_{12}(z)+\ldots $, where $r_{12}(z)$ is the classical $r$-matrix entering (\ref{qb22}). At the same time in (\ref{qb23}) $\eta$ is regarded as the relativistic deformation parameter, similarly to what happens in the Ruijsenaars-Schneider model\footnote{An explanation of the presence of quantum $R$-matrix in a classical model comes from associative Yang-Baxter equation $R^{\hbar}_{12} R^{\eta}_{23} = R^{\eta}_{13} R^{\hbar-\eta}_{12} + R^{\eta-\hbar}_{23} R^{\hbar}_{13}$ ($R^u_{ab} = R^u_{ab}(x_a-x_b)$), which is fulfilled by the quantum Baxter-Belavin elliptic $R$-matrix in the fundamental representation of ${\rm GL}_N$. This equation (and its degenerations) provides the classical Lax equation for the Lax matrix (\ref{qb23}). In this respect the associative Yang-Baxter equation unifies classical and quantum integrable structures. See \cite{KZ19,GSZ,Z18} and references therein. }. In fact, the explicit dependence on $\eta$ can be removed by some simple re-definitions. However, we keep it since the form (\ref{qb23}) has the following important property \cite{Hasegawa} (see also \cite{Hasegawa1}--\cite{VZ},\cite{KZ19}). In the case when $S^i$ is a rank 1 matrix ($S^i=\xi^i\otimes\psi^i$, $\xi^i,\psi^i\in\mbox{\Bbb C}^N$), the Lax matrix can be represented in the factorized form \begin{equation}\label{qb24} \begin{array}{c} \displaystyle{ {\mathcal L}^i(z,S^i)=g(z+N\eta,q^i)e^{P^i/c}g^{-1}(z,q^i)\in {\rm Mat}(N,\CC) \,,\quad P^i={\rm diag}(p_1^i,\ldots ,p_N^i) } \end{array} \end{equation} (up to a scalar factor), where $q^i$ denotes a set of $N$ coordinate variables $q^i=\{q_1^i,\ldots ,q_N^i\}$ and the explicit form of the matrix $g(z, q^i)$ is given below in the main text. It is known as the intertwining matrix entering the IRF-Vertex correspondence \cite{Baxter2}--\cite{Pasquier}. The factorization (\ref{qb24}) provides an explicit parametrization of the matrix $S^i$ through the canonical variables $p^i_k$, $q^i_k$, $i=1,\ldots ,n$, $k=1,\ldots ,N$, thus providing the classical analogue for representation of the generalized Sklyanin algebra by difference operators. Moreover, the gauge transformed Lax matrix \begin{equation}\label{qb25} \begin{array}{c} \displaystyle{ g^{-1}(z,q^i){\mathcal L}^i(z,S^i)g(z,q^i)=g^{-1}(z,q^i)g(z+N\eta,q^i)e^{P^i/c}:=L^{RS}(z,p^i,q^i) } \end{array} \end{equation} is equal to the Lax matrix of the classical $N$-body elliptic Ruijsenaars-Schneider model with momenta $p^i$, coordinates of particles $q^i$ and the relativistic deformation parameter $\eta$. The ``velocity of light'' $c$ enters (\ref{qb25}) as a normalization factor. On the spin chain side it is the constant in the r.h.s. of (\ref{qb22}). We restrict ourselves to the case when all matrices of dynamical variables $S^i$ are of rank one. Then, taking into account (\ref{qb24})--(\ref{qb25}), we represent the transfer matrix $t(z)$ in the form % \begin{equation}\label{qa43} \begin{array}{l} \displaystyle{ t(z)= {\rm tr}\Big( {\ti L}^1(z) {\ti L}^2(z)\ldots {\ti L}^n(z) \Big)\,, } \end{array} \end{equation} % where \begin{equation}\label{qa440} \begin{array}{l} \displaystyle{ {\ti L}^i(z)=g^{-1}(z,q^{i-1})g(z+N\eta,q^i)\,e^{P^i/c}\,,\quad i=1,\ldots ,n\ \ \hbox{and}\ \ q^0=q^n\,. } \end{array} \end{equation} % The Lax matrices ${\ti L}^i(z)$ can be found explicitly. Then we derive equations of motion generated by a special Hamiltonian flow. It is the one which has continuous limit to the (1+1)-dimensional field theory (the generalized Landau-Lifshitz equation) for the elliptic spin chain. More precisely, we prove that the transfer-matrix (\ref{qa43}) provides the Hamiltonian \begin{equation}\label{qb4433} \begin{array}{c} \displaystyle{ H=c\sum\limits_{k=1}^n \log h_{k-1,k}\,,\qquad h_{k-1,k}=\sum\limits_{j=1}^N b^k_j\,, \qquad b_j^k= \frac{\prod\limits_{l=1}^N\vartheta({\bar q}^k_j-{\bar q}^{k-1}_l-\eta) } {\vartheta(-\eta)\prod\limits_{l: l\neq j}^N\vartheta({ q}^{k}_j-{ q}^{k}_l) }\,e^{p^k_j/c}\,, } \end{array} \end{equation} % where $\vartheta (z)$ is the odd Jacobi theta-function (\ref{a25}), and ${\bar q}^k_j=q^k_j-\sum_{i=1}^N q^k_i/N$ are coordinates ``in the center of masses frame'' at each site\footnote{Notice that ${ q}^{k}_j-{ q}^{k}_l={\bar q}^{k}_j-{\bar q}^{k}_l$.}. This Hamiltonian generates equations of motion (in the Newtonian form) % \begin{equation}\label{qb706} \begin{array}{c} \displaystyle{ \frac{{\ddot q}^k_i }{ {\dot q}^k_i }= -\sum\limits_{l=1}^N {\dot { q}}_l^{k+1}E_1({\bar q}_i^k-{\bar q}_l^{k+1}+\eta) -\sum\limits_{l=1}^N {\dot { q}}_l^{k-1}E_1({\bar q}_i^k-{\bar q}_l^{k-1}-\eta) +2\sum\limits_{l:l\neq i}^N {\dot {q}}_l^{k}E_1({q}_i^k-{q}_l^{k})+ } \\ \displaystyle{ +\sum\limits_{m,l=1}^N {\dot { q}}_m^{k}{\dot { q}}_l^{k+1}E_1({\bar q}_m^k-{\bar q}_l^{k+1}+\eta) -\sum\limits_{m,l=1}^N {\dot { q}}_l^{k}{\dot { q}}_m^{k-1}E_1({\bar q}_m^{k-1}-{\bar q}_l^k+\eta)\,, } \end{array} \end{equation} where $E_1(z)$ is the logarithmic derivative of the odd Jacobi theta-function (\ref{a093}). With some simple normalization factor the Lax matrix (\ref{qa440}) turns into \begin{equation}\label{qa5333} \displaystyle{ {L'}^k_{ij}(z)= \phi(z,{\bar q}^{k-1}_i-{\bar q}^{k}_j+\eta){\dot q}_j^k\,, } \end{equation} where $\phi (z, q)$ is the Kronecker elliptic function (\ref{a09}). Equations of motion (\ref{qb706}) are equivalently written in the form of the semi-discrete zero curvature (Zakharov-Shabat) equation \begin{equation}\label{qb4733} \begin{array}{c} \displaystyle{ \frac{d}{dt}\,{{ L'}^k}(z)={L'}^k(z){M'}^k(z)-{ M'}^{k-1}(z){ L'}^k(z)\,. } \end{array} \end{equation} with $M$-matrices \begin{equation}\label{qb6733} \begin{array}{c} \displaystyle{ {M'}^k_{ij}(z)=-(1-\delta_{ij})\phi(z,q_i^k-q_j^k)\, {\dot q}_j^k+\delta_{ij}\sum\limits_{m,l=1}^N {\dot { q}}_l^{k+1}{\dot { q}}_m^{k} E_1({\bar q}_m^{k}-{\bar q}_l^{k+1}+\eta)+ } \\ \displaystyle{ +\delta_{ij}\Big(-E_1(z){\dot q}^k_i \sum\limits_{m: m\neq i}^N{\dot q}_m^kE_1(q_i^k-q_m^k) -\sum\limits_{m=1}^N{\dot q}_m^{k+1}E_1({\bar q}^k_i-{\bar q}^{k+1}_m+\eta) \Big)\,. } \end{array} \end{equation} At this stage the model is discrete and finite-dimensional. To proceed to field generalization we use another approach. We will see that the 1+1 version corresponds to straightforward field extension of the described Ruijsenaars-Schneider chain. The idea of the other approach is to exploit the close connection between elliptic solutions to nonlinear integrable equations and many-body systems. The investigation of dynamics of poles of singular solutions to nonlinear integrable equations was initiated in the seminal paper \cite{AMM77}, where elliptic and rational solutions to the Korteweg-de Vries and Boussinesq equations were studied. As it was proved later in \cite{Krichever78,CC77}, poles of rational solutions to the Kadomtsev-Petviashvili (KP) equation as functions of the second hierarchical time $t_2$ move as particles of the integrable Calogero-Moser system \cite{Calogero71,Calogero75,Moser75,OP81}. The method suggested by Krichever \cite{Krichever80} for elliptic solutions of the KP equation consists in substituting the solution not in the KP equation itself but in the auxiliary linear problem for it (this implies a suitable pole ansatz for the wave function). This method allows one to obtain the equations of motion together with their Lax representation. Dynamics of poles of elliptic solutions to the 2D Toda lattice and modified KP (mKP) equations was studied in \cite{KZ95}, see also \cite{Z19}. It was proved that the poles move as particles of the integrable Ruijsenaars-Schneider many-body system which is a relativistic generalization of the Calogero-Moser system. In the paper \cite{AKV02} elliptic families of solutions to the KP equation were studied. In this more general case the solution is assumed to be an elliptic function not of $x=t_1$, as it was assumed before, but of a general linear combination of higher times of the KP hierarchy. It was shown that poles of such solutions as functions of $x=t_1$ and $t_2$ move according to equations of motion of the field generalization of the Calogero-Moser system. In this paper we extend this result to elliptic families of solutions to the 2D Toda hierarchy. We derive equations of motion for such solutions. These equations of motion can be naturally thought of as a field generalization of the Ruijsenaars-Schneider system. In the limit when the parameter $\eta$ having the meaning of the inverse velocity of light tends to 0, the obtained equations of motion become those dealt with in the paper \cite{AKV02}. We also consider elliptic families of solutions to the fully difference integrable version of the 2D Toda lattice equation and derive equations of motion for the poles. Let us say a few words about the nature of the elliptic families. These solutions belong to a particular class of algebraic-geometrical solutions associated with an algebraic curve $\Gamma$ of genus $g$ with some additional data. An algebraic-geometrical solution is elliptic with respect to some variable $\lambda$ if there exists a $g$-dimensional vector ${\bf W}$ such that it spans an elliptic curve ${\cal E}$ embedded in the Jacobian of the curve $\Gamma$. The tau-function of such solution is \cite{Krichever77,Dubrovin81} \begin{equation}\label{toda8aa} \tau (x, {\bf t}, \lambda )=e^{Q(x, {\bf t})} \Theta \Bigl ( {\bf V}_0 x/\eta +\sum_{k\geq 1}{\bf V}_k t_k +{\bf W}\lambda +{\bf Z}\Bigr ), \end{equation} where $\Theta$ is the Riemann theta-function and $Q$ is a quadratic form in the hierarchical times ${\bf t}=\{t_1, t_2, t_3, \ldots \}$ of the 2D Toda hierarchy (we put all ``negative'' times equal to zero for simplicity). The vectors ${\bf V}_k$ are $b$-periods of certain normalized meromorphic differentials on $\Gamma$. The existence of a $g$-dimensional vector ${\bf W}$ such that it spans an elliptic curve ${\cal E}$ embedded in the Jacobian is a nontrivial transcendental constraint. If such a vector ${\bf W}$ exists, then the theta-divisor intersects the shifted elliptic curve $\displaystyle{{\cal E}+{\bf V}_0 x/\eta + \sum_k {\bf V}_k t_k}$ at a finite number of points $\lambda_i =\lambda_i(x,{\bf t})$. Therefore, for elliptic families we have: \begin{equation}\label{toda8bb} \Theta \Bigl ( {\bf V}_0 x/\eta +\sum_{k\geq 1}{\bf V}_k t_k +{\bf W}\lambda +{\bf Z}\Bigr )=f(x, {\bf t})e^{\gamma_1\lambda +\gamma_2\lambda^2}\prod _{i=1}^N \sigma (\lambda -\lambda_i(x, {\bf t})). \end{equation} with a function $f(x, {\bf t})$ and some constants $\gamma_1, \gamma_2$. Here $\sigma (\lambda )$ is the Weierstrass $\sigma$-function defined in the Appendix A. The zeros $\lambda_i$ of the tau-function are poles of the elliptic solutions. We show that the equations of motion of the poles $\lambda_i =\lambda_i(x,t)$, where $t=t_1$, are given by \begin{equation}\label{el131} \begin{array}{c} \displaystyle{ \ddot \lambda_i(x)+\sum\limits_{k=1}^N \Bigl ( \dot \lambda_i(x)\dot \lambda_k(x-\eta )\zeta (\lambda_i(x)-\lambda_k(x-\eta ))+ \dot \lambda_i(x)\dot \lambda_k(x+\eta )\zeta (\lambda_i(x)-\lambda_k(x+\eta ))\Bigr )} \\ \\ \displaystyle{ -\, 2 \sum_{k:k\neq i}^N\dot \lambda_i(x)\dot \lambda_k(x ) \zeta (\lambda_i(x)-\lambda_k(x))+(c(x-\eta , t)-c(x, t))\dot \lambda_i(x)=0\,.} \end{array} \end{equation} Here \begin{equation}\label{el14a1} c(x, t)=\frac{1}{\beta}\sum\limits_{i,k=1}^N\dot \lambda_i(x)\dot \lambda_k(x+\eta ) \zeta (\lambda_i(x)-\lambda_k(x+\eta )), \qquad \beta =\sum\limits_{i=1}^N \dot \lambda_i(x), \end{equation} and $\zeta (\lambda )$ is the Weierstrass $\zeta$-function (a close relative of the function $E_1$ in (\ref{qb706})). Equations (\ref{el131}) are represented in the zero-curvature form \begin{equation}\label{el90} \dot L(x)+L(x)M(x)-M(x+\eta )L(x)=0\,, \end{equation} and the Lax pair is obtained explicitly in section 5.3. Then, the equations (\ref{el131}) can be naturally restricted to the lattice by setting $\lambda_i^k=\lambda_i(x_0+k\eta )$ and rewritten as \begin{equation}\label{el13a1} \begin{array}{c} \displaystyle{ \ddot \lambda_i^k+\sum\limits_{j=1}^N \Bigl ( \dot \lambda_i^k\dot \lambda_j^{k-1}\zeta (\lambda_i^k-\lambda_j^{k-1})+ \dot \lambda_i^k\dot \lambda_j^{k+1}\zeta (\lambda_i^k-\lambda_j^{k+1})\Bigr )- } \\ \displaystyle{ -\, 2 \sum\limits_{j:j\neq i}^N\dot \lambda_i^k\dot \lambda_j^k \zeta (\lambda_i^k-\lambda_j^k)+(c^{k-1}(t)-c^k(t))\dot \lambda_i^k=0} \end{array} \end{equation} with \begin{equation}\label{el14b1} c^k(t)=\frac{1}{\beta}\sum\limits_{i,j=1}^N\dot \lambda_i^k\dot \lambda_j^{k+1} \zeta (\lambda_i^k-\lambda_j^{k+1}), \end{equation} in which form they can be shown to be equivalent to equations (\ref{qb706}). Details of the equivalence between (\ref{el131})-(\ref{el14b1}) and (\ref{qb706})-(\ref{qb6733}) are given in section 5.4. In section 5.6 we also describe the $\eta \to 0$ limit to the (1+1)-dimensional Calogero-Moser field theory discussed in \cite{AKV02}. The fully discrete version of the equations (\ref{el13a1}) is obtained in section 6. In Appendix A the necessary definitions and properties of elliptic functions are given. In Appendix B we describe properties of the elliptic $R$-matrix which are used in the derivation of the Ruijsenaars-Schneider spin chain. In Appendix C, using the factorization formulae for the Lax matrix, we obtain the explicit change of variables between the Ruijsenaars-Schneider model and the relativistic top. \section{Ruijsenaars-Schneider model in the form of relativistic top} \setcounter{equation}{0} In this section we recall the necessary preliminaries related to the Ruijsenaars-Schneider model and relativistic top. From the point of view of the next sections this case corresponds to the ``Ruijsenaars-Schneider chain'' on one site. \subsection{Classical Ruijsenaars-Schneider model} \paragraph{The standard Hamiltonian and equations of motion.} The elliptic Ruijsenaars-Schneider model is defined by the Lax matrix \cite{Ruijs12} % \begin{equation}\label{a12} \begin{array}{l} \displaystyle{ L^{\rm RS}_{ij}(z)=\phi(z,q_{ij}+\eta)\,b_j\,,\ i,j=1,\ldots ,N\,, } \end{array} \end{equation} where $\phi (z, q)$ is the Kronecker function defined in (\ref{a09}) and % \begin{equation}\label{a13} \begin{array}{l} \displaystyle{ b_j=\prod_{k:k\neq j}^N\frac{\vartheta(q_{j}-q_k-\eta)}{\vartheta(q_{j}-q_k)}\, e^{p_j/c}\,,\quad c={\rm const}\in\mbox{\Bbb C}\,. } \end{array} \end{equation} Here $\vartheta (z)$ is the odd Jacobi theta-function (\ref{a25}). Note that original definition of $b_j$ in \cite{Ruijs12} is different from (\ref{a13}). This is due to a freedom in the definition of (\ref{a12})--(\ref{a13}) coming from the canonical map % \begin{equation}\label{a17} \begin{array}{c} \displaystyle{ p_j\ \rightarrow\ p_j+c_1\log \prod\limits_{k:k\neq j}^N \frac{\vartheta(q_{j}-q_k+\eta)}{\vartheta(q_{j}-q_k-\eta)} } \end{array} \end{equation} with arbitrary constant $c_{1}$. The Hamiltonian % \begin{equation}\label{a14} \begin{array}{l} \displaystyle{ H^{\rm RS}=c\frac{{\rm tr} L^{\rm RS}(z)}{\phi(z,\eta)}=c\sum\limits_{j=1}^N b_j(p,q) } \end{array} \end{equation} with the canonical Poisson brackets % \begin{equation}\label{a15} \begin{array}{c} \displaystyle{ \{p_i,q_j\}=\delta_{ij}\,,\quad \{p_i,p_j\}=\{q_i,q_j\}=0 } \end{array} \end{equation} % provides the following equations of motion: % \begin{equation}\label{a131} \begin{array}{l} \displaystyle{ {\dot q}_j=\{H^{\rm RS},q_j\}=\partial_{p_j}H^{\rm RS}=b_j=\prod^N_{k:k\neq j}\frac{\vartheta(q_{j}-q_k-\eta)}{\vartheta(q_{j}-q_k)}\,e^{p_j/c}\,. } \end{array} \end{equation} % We see that the Hamiltonian is proportional to the sum of velocities: % \begin{equation}\label{a132} \begin{array}{l} \displaystyle{ \frac{1}{c}\,H^{\rm RS} =\sum\limits_{j=1}^N{\dot q}_j } \end{array} \end{equation} and the Lax matrix (\ref{a12}) takes the form % \begin{equation}\label{a135} \begin{array}{l} \displaystyle{ L^{\rm RS}_{ij}(z)=\phi(z,q_{ij}+\eta)\,{\dot q}_j\,. } \end{array} \end{equation} % The Hamiltonian equations for momenta are as follows: % \begin{equation}\label{a133} \begin{array}{c} \displaystyle{ \frac{1}{c}\,{\dot p}_i=\frac{1}{c}\,\{H^{\rm RS},p_i\}=-\frac{1}{c}\,\partial_{q_i}H^{\rm RS}= } \\ \ \\ \displaystyle{ =\sum\limits_{l:l\neq i}^N ({\dot q}_i+{\dot q}_l)E_1(q_{il})-{\dot q}_i E_1(q_{il}-\eta) -{\dot q}_l E_1(q_{il}+\eta)\,, } \end{array} \end{equation} % where $q_{ij}=q_i-q_j$, and $E_1(w)=\vartheta'(w)/\vartheta(w)$ (\ref{a091}). By differentiating both parts of (\ref{a131}) with respect to time we get % \begin{equation}\label{a134} \begin{array}{c} \displaystyle{ \frac{{\ddot q}_i}{{\dot q}_i}=\frac{1}{c}\,{\dot p}_i+\sum\limits_{l:l\neq i}^N ({\dot q}_i-{\dot q}_l)(E_1(q_{il}-\eta)-E_1(q_{il}))\,. } \end{array} \end{equation} % Plugging (\ref{a133}) into (\ref{a134}) we get the well known equations of motion of the elliptic Ruijsenaars-Schneider model in the Newtonian form: % \begin{equation}\label{a16} \begin{array}{c} \displaystyle{ {\ddot q}_i=\sum\limits_{k:k\neq i}^N{\dot q}_i{\dot q}_k (2E_1(q_{ik})-E_1(q_{ik}+\eta)-E_1(q_{ik}-\eta))\,,\quad i=1, \ldots , N\,. } \end{array} \end{equation} % Equations of motion (\ref{a16}) are equivalent to the Lax equation \begin{equation}\label{a18} \begin{array}{c} \displaystyle{ {\dot L}^{\rm RS}(z)\equiv\{H^{\rm RS},L^{\rm RS}(z)\}=[L^{\rm RS}(z),M^{\rm RS}(z)] } \end{array} \end{equation} with the $M$-matrix % \begin{equation}\label{a181} \begin{array}{c} \displaystyle{ M^{\rm RS}_{ij}(z)= -(1-\delta_{ij})\phi(z,q_i-q_j)\,{\dot q}_j } \\ \ \\ \displaystyle{ -\delta_{ij}\Big({\dot q}_i\,(E_1(z)+E_1(\eta)) + \sum\limits_{k:k\neq i}^N {\dot q}_k\,(E_1(q_{ik}+\eta)-E_1(q_{ik})) \Big). } \end{array} \end{equation} This follows from a direct calculation with the help of (\ref{b151}) and (\ref{a092}). \paragraph{Logarithm of the Hamiltonian.} Alternatively, one can use the following Hamiltonian: % \begin{equation}\label{a171} \begin{array}{c} \displaystyle{ H'=c\log H^{\rm RS}=c\log\sum\limits_{j=1}^N b_j\,. } \end{array} \end{equation} Then % \begin{equation}\label{a172} \begin{array}{c} \displaystyle{ {\dot q}_j=\frac{\partial H'}{\partial p_j}=\frac{b_j}{H^{\rm RS}}\,, \qquad \frac{1}{c}\,{\dot p}_i=-\frac{1}{c}\frac{\partial H'}{\partial q_i}=-\frac{1}{H^{\rm RS}}\frac{\partial H^{\rm RS}}{\partial q_i}\,, } \end{array} \end{equation} so that (cf. (\ref{a132})) % \begin{equation}\label{a173} \begin{array}{c} \displaystyle{ \sum\limits_{j=1}^N{\dot q}_j=1\,. } \end{array} \end{equation} The Lax matrix (\ref{a12}) becomes now % \begin{equation}\label{a174} \begin{array}{c} L^{\rm RS}_{ij}(z)=\phi(z,q_{ij}+\eta)\,{\dot q}_jH^{\rm RS} \end{array} \end{equation} instead of (\ref{a135}) but this makes no difference since $H^{\rm RS}$ is a conserved quantity. It is easy to see that the equations of motion in the Newtonian form (\ref{a16}) remain the same with the Hamiltonian (\ref{a171}). We will use the Hamiltonian description similar to the presented above (with logarithm of the Hamiltonian) in the Ruijsenaars chain. \subsection{Classical relativistic top} Let us consider the elliptic ${\rm GL}_N$ spin chain on a single site. It is an integrable system called relativistic top \cite{LOZ8}. The Lax matrix is as follows: % \begin{equation}\label{b040} \begin{array}{c} \displaystyle{ {\mathcal L}^\eta(z)=\sum\limits_{a\in\,\raise-1pt\hbox{$\mbox{\Bbbb Z}$}_{ N}\times\raise-1pt\hbox{$\mbox{\Bbbb Z}$}_{ N}} T_a { S}_a\varphi_a(z,\omega_a+\eta)\,, } \end{array} \end{equation} % where $S_a$ are dynamical variables (classical spins) numbered by the index $a=(a_1,a_2)\in\mbox{\Bbb Z}_N\times\mbox{\Bbb Z}_N$ in the special matrix basis $T_a\in {\rm Mat}(N,\CC) $ (\ref{a07}), which is often used for elliptic quantum $R$-matrices. The set of functions $\varphi_a(z,\omega_a+\eta)$ and the quantities $\omega_a$ are given in (\ref{a08}). The dynamical variables are combined into a matrix $S\in {\rm Mat}(N,\CC) $: % \begin{equation}\label{b0401} \begin{array}{c} \displaystyle{ S=\sum\limits_{i,j=1}^N S_{ij}E_{ij}=\sum\limits_{a_1,a_2=0}^{N-1} S_{a}T_a\,, } \end{array} \end{equation} % where $E_{ij}$ are the usual matrix units. Using the property (\ref{a072}) let us rewrite the Lax matrix (\ref{b040}) in terms of the Baxter-Belavin elliptic $R$-matrix $R_{12}^\eta(z)$ \cite{Baxter,RT} in the form (\ref{d07}): \begin{equation}\label{a10} \begin{array}{c} \displaystyle{ R_{12}^\eta(z)=\frac{1}{N}\sum\limits_{a\in\,\raise-1pt\hbox{$\mbox{\Bbbb Z}$}_{ N}\times\raise-1pt\hbox{$\mbox{\Bbbb Z}$}_{ N}} T_a\otimes T_{-a} \varphi_a(z,\omega_a+\eta) \in{\rm Mat}(N,\mbox{\Bbb C})^{\otimes 2}\,. } \end{array} \end{equation} % Alternative equivalent forms are given in the Appendix B. In terms of the $R$-matrix, the Lax matrix (\ref{b040}) acquires the following compact form: % \begin{equation}\label{b0402} \begin{array}{c} \displaystyle{ {\mathcal L}^\eta(z)={\rm tr}_2(R_{12}^\eta(z)S_2)\,,\quad S_2=1_N\otimes S, } \end{array} \end{equation} % where the trace is over the second tensor component. We emphasis that the $R$-matrix is quantum, while the Lax matrix is classical. The parameter $\eta$ plays the role of the Planck constant in the $R$-matrix since the classical $r$-matrix comes from (\ref{a10}) in the classical limit\footnote{The classical $r$-matrix is used for construction of the non-relativistic top similarly to (\ref{b0402}). See \cite{GSZ,LOZ}.} \begin{equation}\label{b05} \begin{array}{c} \displaystyle{ R_{12}^\eta(z)=\frac{1}{N\eta}+r_{12}(z)+O(\eta)\,, } \end{array} \end{equation} \begin{equation}\label{b06} \begin{array}{c} \displaystyle{ r_{12}(z)=\frac{1}{N}\,1_N\otimes 1_N\, E_1(z) +\frac{1}{N}\sum\limits_{a\in\mbox{\Bbb Z}_N^{\times 2},a\neq 0} T_a\otimes T_{-a} \varphi_a(z,\omega_a) \in{\rm Mat}(N,\mbox{\Bbb C})^{\otimes 2}\,. } \end{array} \end{equation} At the same time $\eta$ plays the role of the relativistic deformation parameter in the relativistic top model similarly to the Ruijsenaars-Schneider model. In the standard approach \cite{Skl,Skl2} the parameter $\eta$ is absent in the Lax matrix and so it does not enter the classical (Poisson) Sklyanin algebra. Below we explain how this parameter can be eliminated by some re-definitions. However, it is important for us to keep it in the Lax matrix because in this form the latter has a nice property of factorization. % \paragraph{Classical Sklyanin algebra.} The classical quadratic $r$-matrix Poisson structure is\footnote{The coefficient $1/c$ in (\ref{b04}) is introduced here in order to match the relation with the Ruijsenaars-Schneider model.}: \begin{equation}\label{b04} \begin{array}{c} \displaystyle{ \{{\mathcal L}_1^{\eta}(z),{\mathcal L}_2^{\eta}(w)\}=\frac{1}{c}\,[{\mathcal L}_1^{\eta}(z){\mathcal L}_2^{\eta}(w),r_{12}(z-w)]\,, } \end{array} \end{equation} where the classical $r$-matrix is given by (\ref{b06}). Plugging the Lax matrix (\ref{b040}) into (\ref{b04}) and using identity (\ref{b153}) one gets % \begin{equation}\label{b062} \begin{array}{c} \displaystyle{ \{S_\alpha,S_\beta\}= } \\ \ \\ \displaystyle{ =\frac{1}{c}\sum\limits_{\xi\in\mbox{\Bbb Z}_N^{\times 2},\,\xi\neq 0} \kappa_{\alpha-\beta,\xi}S_{\alpha-\xi}S_{\beta+\xi} \Big( E_1(\omega_\xi)-E_1(\omega_{\alpha-\beta-\xi})+E_1(\omega_{\alpha-\xi}+\eta)-E_1(\omega_{\beta+\xi}+\eta) \Big)\,, } \end{array} \end{equation} which is the classical Sklyanin algebra. The constants $\kappa_{\alpha,\beta}$ are defined in (\ref{a071}). \paragraph{Eliminating the parameter $\eta$.} Let us comment on the form of the classical Lax matrix ${\mathcal L}^{\eta}(z)$ (\ref{b040}), (\ref{b0402}). Usually \cite{Skl,Skl2} the classical Lax matrix of the top is written as % \begin{equation}\label{b33} \begin{array}{c} \displaystyle{ {\mathcal L}(z,{\ti S})=1_N {\ti S}_0+\sum\limits_{a\in\mbox{\Bbb Z}_N^{\times 2}, a\neq 0} T_a {\ti S}_a\varphi_a(z,\omega_a)\,. } \end{array} \end{equation} It is known to satisfy (\ref{b04}), which provides the classical Sklyanin Poisson algebra for $N^2$ generators ${\ti S}_a$. Writing (\ref{b04}), we assume that it is also fulfilled for ${\mathcal L}^{\eta}(z)$. It happens for the following reason \cite{CLOZ,LOZ8}. First of all, this can be verified by a direct calculation, so that the classical Sklyanin algebra for $S_a$ contains additional parameter $\eta$. However, this dependence is artificial. Using the relation % \begin{equation}\label{b34} \begin{array}{c} \displaystyle{ \frac{\varphi_a(z-\eta,\omega_a+\eta)}{\phi(z-\eta,\eta)}=\frac{\varphi_a(z,\omega_a)}{\varphi_a(\eta,\omega_a)}, } \end{array} \end{equation} one easily obtains % \begin{equation}\label{b35} \begin{array}{c} \displaystyle{ \frac{1}{\phi(z-\eta,\eta)}\,{\mathcal L}^\eta(z-\eta,S)={\mathcal L}(z,{\ti S}) } \end{array} \end{equation} if \begin{equation}\label{b36} \begin{array}{c} \displaystyle{ S={\mathcal L}(\eta,{\ti S})\,. } \end{array} \end{equation} Using (\ref{b33}) in the basis $T_\alpha$ (\ref{a07}) we may write (\ref{b36}) explicitly: \begin{equation}\label{b361} \begin{array}{c} \displaystyle{ S_0={\ti S}_0\,,\qquad S_\alpha={\ti S}_\alpha\varphi_\alpha(\eta,\omega_\alpha)\ {\rm for}\ \alpha\neq 0\,. } \end{array} \end{equation} Let us remark that a similar phenomenon with the same change of variables take place in quantum Sklyanin algebra generated by exchange relation $R_{12}^\hbar(z-w){\hat {\mathcal L}}^\eta_1(z){\hat {\mathcal L}}^\eta_2(w)= {\hat {\mathcal L}}^\eta_2(w){\hat {\mathcal L}}^\eta_1(z)R_{12}^\hbar(z-w)$. Then it contains two parameters $\hbar$ and $\eta$, but the latter can be removed by (\ref{b36}) or fixed somehow. For example, in the case $\hbar=\eta$ the Sklyanin algebra has representation ${\hat S}_a=T_{-a}$ since the exchange relation turns into the Yang-Baxter equation in this case. So that the second parameter is artificial. We see that the two Lax matrices ${\mathcal L}^\eta(z)$ and (\ref{b33}) are related by the explicit change of variables (\ref{b36}) or (\ref{b361}), and the shift of the spectral parameter $z\rightarrow z-\eta$ does not effect (\ref{b04}) because $r_{12}(z-w)$ depends on the difference of spectral parameters. In what follows we need the explicit dependence on $\eta$ in ${\mathcal L}^\eta(z)$ for establishing its relation to the Ruijsenaars-Schneider model. For this purpose we will consider $S$ to be a rank one matrix (this is not true for $\ti S$). The possibility to fix the rank of matrix $S$ follows from equations of motion (see (\ref{b14}) below). The eigenvalues of $S$ are conservation laws on these equations. \paragraph{Lax pair.} The Lax equation follows from (\ref{b04}) in the following way. Since $S=\mathop{\hbox{Res}}\limits\limits_{w=0}{\mathcal L}^\eta(w)$, then the residue at $w=0$ of both parts of (\ref{b04}) yields % \begin{equation}\label{b10} \begin{array}{c} \displaystyle{ \{{\mathcal L}_1^{\eta}(z),S_2\}=[{\mathcal L}_1^{\eta}(z)S_2,\frac{1}{c}\,r_{12}(z)]\,. } \end{array} \end{equation} Taking trace of both parts of (\ref{b10}) in the second tensor component, we get the Lax equation % \begin{equation}\label{b11} \begin{array}{c} \displaystyle{ {\dot {\mathcal L}}^{\eta}(z)=\{H^{top},{\mathcal L}_1^{\eta}(z)\}=[{\mathcal L}_1^{\eta}(z),M(z)]\,,\qquad M(z)=-{\rm tr}_2\Big(r_{12}(z)S_2\Big)\,, } \end{array} \end{equation} where the Hamiltonian is % \begin{equation}\label{b12} \begin{array}{c} \displaystyle{ H^{top}=c\,{\rm tr}\, S=c\,\frac{{\rm tr} {\mathcal L}^\eta(z)}{\phi(z,\eta)}\,. } \end{array} \end{equation} % More precisely, % \begin{equation}\label{b13} \begin{array}{c} \displaystyle{ M(z)=-S_0 1_N E_1(z)-\sum\limits_{\alpha\in\mbox{\Bbb Z}_N^{\times 2}, \alpha\neq 0}T_\alpha S_\alpha\varphi_\alpha(z,\omega_\alpha)\,. } \end{array} \end{equation} Equations of motion take the form: % \begin{equation}\label{b14} \begin{array}{c} \displaystyle{ \dot S=[S,J^\eta(S)]\,, } \end{array} \end{equation} % \begin{equation}\label{b15} \begin{array}{c} \displaystyle{ J^\eta(S)=1_N S_0 E_1(\eta)+\sum\limits_{\alpha\in\mbox{\Bbb Z}_N^{\times 2}, \alpha\neq 0}T_\alpha S_\alpha J_\alpha^\eta\,,\quad J_\alpha^\eta=E_1(\eta+\omega_\alpha)-E_1(\omega_\alpha)\,. } \end{array} \end{equation} They follow from the Lax equation (\ref{b11}) under the substitution (\ref{b040}), (\ref{b13}) and usage of (\ref{a071}) and the identity (\ref{b151}). \subsection{Factorization of Lax matrices and relation between the models} % Following \cite{Baxter2,Jimbo,Pasquier}, we introduce the intertwining matrix % \begin{equation}\label{a21} \begin{array}{l} \displaystyle{ g(z,q)=\Xi(z,q)\left(d^{0}\right)^{-1} } \end{array} \end{equation} % with % \begin{equation}\label{a22} \begin{array}{c} \displaystyle{ \Xi_{ij}(z,q)= \vartheta\left[ \begin{array}{c} \frac12-\frac{i}{N} \\ \frac N2 \end{array} \right] \left(z-Nq_j+\sum\limits_{m=1}^N q_m\left.\right|N\tau\right)\,, } \end{array} \end{equation} and the diagonal matrix % \begin{equation}\label{a23} \begin{array}{c} \displaystyle{ d^0_{ij}(z,q)=\delta_{ij}d^0_{j}=\delta_{ij} {\prod\limits_{k:k\neq j}^N\vartheta(q_j-q_k)}\,, } \end{array} \end{equation} % where the theta function with characteristics is defined in (\ref{a24}). The matrix (\ref{a21}) is the intertwining matrix entering the relations of the IRF-Vertex correspondence. Its properties are described in the Appendix B. \paragraph{Factorization formula.}It was observed in \cite{Hasegawa} (at quantum level) that the Lax matrix (\ref{a12})--(\ref{a13}) can be represented in the factorized form \begin{equation}\label{a31} \begin{array}{l} \displaystyle{ L^{\rm RS}_{ij}(z)=\frac{\vartheta'(0)}{\vartheta(\eta)}\sum\limits_{k=1}^N g^{-1}_{ik}(z,q)g_{kj}(z+N\eta,q)\,e^{p_j/c}\,, } \end{array} \end{equation} or \begin{equation}\label{a32} \begin{array}{l} \displaystyle{ L^{\rm RS}(z)=\frac{\vartheta'(0)}{\vartheta(\eta)}\, g^{-1}(z,q)g(z+N\eta,q)\,e^{P/c}\,,\quad P={\rm diag}(p_1,\ldots ,p_N)\,. } \end{array} \end{equation} % Moreover, the gauge transformed Lax matrix \begin{equation}\label{a33} \begin{array}{l} \displaystyle{ {\mathcal L}^\eta(z)=g(z,q)L^{\rm RS}(z)g^{-1}(z,q)=\frac{\vartheta'(0)}{\vartheta(\eta)}\, g(z+N\eta,q)\,e^{P/c}g^{-1}(z,q) } \end{array} \end{equation} % is the Lax matrix of type (\ref{b040}) since it has the same quasi-periodic properties (see (\ref{a03}) below) and a simple pole at $z=0$. In contrast to (\ref{b040}) a special choice of the residue $S$ is assumed in (\ref{a33}). It is a rank one matrix. We may fix the rank since the eigenvalues of $S$ are conserved on the dynamics given by (\ref{b14}). likewise the spinless Calogero-Moser model is related to the coadjoint orbit of minimal dimension. Relation (\ref{a33}) can be viewed as the classical version of the IRF-Vertex relation (\ref{a26}). It provides the change $S=S(p,q,\eta,c)$ from canonical variables to spin variables, which will be discussed in detail in the next subsection. Let us compute the residue of both parts of (\ref{a33}) at $z=0$. For this purpose we need the properties of the matrix $g(z,q)$ (\ref{a50})--(\ref{b32}). In particular, it is degenerated at $z=0$, and the residue $\breve{g}(0,q)=\mathop{\hbox{Res}}\limits\limits_{z=0}g^{-1}(z,q)$ is a rank one matrix. In this way we get parametrization of $S$ matrix in the form $S=\xi\otimes\psi$: % \begin{equation}\label{b37} \begin{array}{l} \displaystyle{ S=\frac{\vartheta'(0)}{\vartheta(\eta)}\, g(N\eta,q)\,e^{P/c} \breve{g}(0,q) } \end{array} \end{equation} % or % \begin{equation}\label{b38} \begin{array}{c} \displaystyle{ S=\xi\otimes\psi\,,\qquad \xi=\frac{\vartheta'(0)}{\vartheta(\eta)}\, g(N\eta)\,e^{P/c}\,\rho\,,\qquad \psi=\frac1N\,\rho^T{\breve g}(0)\,. } \end{array} \end{equation} % with $\rho$ from (\ref{b30}) and $\breve{g}(0,q)$ from (\ref{b31}). \paragraph{Factorization from IRF-Vertex relations.} Notice that on one hand we deal with the Lax matrix ${\mathcal L}^\eta(z)$ in the form (\ref{b0402}), and on the other hand we use its factorized form (\ref{a33}) for a special choice of $S$. A connection between these two representations come from the IRF-Vertex relation, which includes both $R$-matrix and the matrix $g(z,q)$. We review it in Appendix B. The easiest way is to use the identity (\ref{b01}) in $ {\rm Mat}(N,\CC) ^{\otimes 2}$, which includes a special matrix $\mathcal O_{12}\in {\rm Mat}(N,\CC) ^{\otimes 2}$ (\ref{b03}) with the property (\ref{b07}). Following \cite{VZ}, multiply both parts of (\ref{b01}) by $S_2=1_N\otimes S$ with $S$-matrix presented in the form (\ref{b38}) % % \begin{equation}\label{b381} \begin{array}{c} \displaystyle{ \frac{\vartheta'(0)}{\vartheta(\eta)}\,g_2(N\eta)e^{P_2/c}{\breve g}_2(0,q)\,R^\eta_{12}(z)= } \\ \displaystyle{ =\frac{\vartheta'(0)}{\vartheta(\eta)}\,g_2(N\eta)e^{P_2/c}g_1(z+N\eta,q)\, \mathcal O_{12}\, g_2^{-1}(N\eta,q)\, g_1^{-1}(z,q)\,. } \end{array} \end{equation} % Next, compute the trace over the second tensor component of both parts (\ref{b381}). The property (\ref{b07}) simplifies the r.h.s. of (\ref{b381}) since ${\rm tr}_2(\mathcal O_{12}e^{P_2/c})=e^{P/c}$, and therefore % \begin{equation}\label{b39} \begin{array}{c} \displaystyle{ {\mathcal L}^\eta(z,S)={\rm tr}_2(R^\eta_{12}(z)S_2)=\frac{\vartheta'(0)}{\vartheta(\eta)}\, g(z+N\eta,q)\,e^{P/c}g^{-1}(z,q)\,. } \end{array} \end{equation} % In what follows we also need degeneration of the factorized form. By comparing (\ref{a31}) and (\ref{a12}) in the $\eta\rightarrow 0$ limit we get % \begin{equation}\label{b391} \begin{array}{l} \displaystyle{ \left(g^{-1}(z)g'(z)\right)_{ij}=\frac{1}{N}\,\delta_{ij}\left(E_1(z)-\sum\limits_{k:k\neq i}^NE_1(q_{ik})\right) +\frac{1}{N}\,(1-\delta_{ij})\phi(z,q_{ij})\,. } \end{array} \end{equation} % In Section 4 we also use degeneration of (\ref{b381}) coming from (\ref{b011}) to derive the accompany $M$-matrix. \paragraph{Explicit change of variables.} The explicit change of variables $S_a=S_a(p,q,\eta,c)$ can be found in \cite{Hasegawa} (see also \cite{Chen1,Chen}) in the elliptic case. (The trigonometric and rational cases were addressed in \cite{LOZ8}.) In Appendix C we derive this formula in the elliptic case. In our notation it takes the form % \begin{equation}\label{b40} \begin{array}{c} \displaystyle{ S_a=\frac{(-1)^{a_1+a_2}}{N}\,e^{\pi\imath a_2\omega_a} \sum\limits_{m=1}^N e^{p_m/c} e^{2\pi\imath a_2(\eta-{\bar q}_m)} \frac{\vartheta(\eta+\omega_\alpha)}{\vartheta(\eta)} \prod\limits_{l:\,l\neq m}^N\frac{\vartheta(q_m-q_l-\eta-\omega_a)}{\vartheta(q_m-q_l)}\,, } \end{array} \end{equation} % where $\bar q_m$ is the coordinate in the center of masses frame. The classical Sklyanin generators $S_a$ are dynamical variables in the relativistic top model described above, and (\ref{b40}) provides its relation to the Ruijsenaars-Schneider model in the special case ${\rm rk}(S)=1$ generated by the gauge equivalence (\ref{a33}). Put it differently, (\ref{b40}) is a classical analogue of the representation of the generalized Sklyanin algebra by difference operators (in the classical limit the shift operators are substituted by exponents of momenta). Therefore, we have the following statement. The set of functions $S_a=S_a(p,q,\eta,c)$ satisfy the classical Sklyanin algebra Poisson brackets (\ref{b062}) computed by means of the canonical Poisson brackets (\ref{a15}). The Lax matrix (\ref{b39}) satisfy the classical exchange relations (\ref{b04}). The proof of a similar statement was proposed in \cite{Chen} by a direct gauge transformation relating the $r$-matrix structure (\ref{b04}) with the dynamical one known for the Ruijsenaars-Schneider model \cite{NKSR}. We also claim that the matrix of dynamical variables $S$ with components (\ref{b40}) is represented in the form (\ref{b38}). The proof and explicit expressions for $\xi$ and $\psi$ are given in Appendix C. \section{Classical ${\rm GL}_N$ elliptic spin chain} \setcounter{equation}{0} Here we review properties of the Lax matrices for elliptic classical spin chains and describe the Hamiltonian flow which is then used for constructing the Ruijsenaars-Schneider chain in the next section. We deal with the classical version \cite{Skl,Skl2} of the generalized elliptic (anisotropic) homogeneous spin chain on $n$ sites associated with ${\rm GL}_N$. It is described by the elliptic Baxter-Belavin $R$-matrix \cite{Baxter,RT}. The generating function of the Hamiltonians is given by trace $t(z)$ of the monodromy matrix $T(z)$: \begin{equation}\label{a01} \begin{array}{c} \displaystyle{ t(z)={\rm tr} T(z)\,,\qquad T(z)={\mathcal L}^{1}(z){\mathcal L}^{2}(z)...{\mathcal L}^{n}(z)\,, } \end{array} \end{equation} % where ${\mathcal L}^i(z)$ is the classical Sklyanin's Lax matrix (\ref{b040}) on the $i$-th site of the chain. It is fixed by the quasi-periodic properties on the lattice $\mbox{\Bbb Z}\oplus\tau\mbox{\Bbb Z}$ in the complex plane (defining the elliptic curve $\Sigma_\tau={\mbox{\Bbb C}}/(\mbox{\Bbb Z}\oplus\tau\mbox{\Bbb Z})$) and the residue at a simple pole $z=0$: % \begin{equation}\label{a02} \begin{array}{c} \displaystyle{ \mathop{\hbox{Res}}\limits\limits_{z=0}{\mathcal L}^i(z)=S^i=\sum\limits_{k,j=1}^N E_{kj}S_{kj}^i\in{\rm Mat}(N,\mbox{\Bbb C}) } \end{array} \end{equation} (it is the only pole in the fundamental domain). Here $E_{kj}$ is the standard matrix basis in ${\rm Mat}(N,\mbox{\Bbb C})$ (matrix units) and $S^i_{kj}$ are the classical Sklyanin's generators at $i$-th site\footnote{The latter means that the variables $S^i_{\alpha}$ satisfy the quadratic Poisson brackets (\ref{b062}) for any fixed $i$.}. The monodromy properties are as follows: % \begin{equation}\label{a03} \begin{array}{c} \displaystyle{ {\mathcal L}^i(z+1)= Q_1^{-1}{\mathcal L}^{i}(z)Q_1\,,\quad\quad {\mathcal L}^{i}(z+\tau)=\exp(-2\pi\imath\eta) Q_2^{-1} {\mathcal L}^{i}(z)Q_2\,, } \end{array} \end{equation} where $Q_{1,2}\in{\rm Mat}(N,\mbox{\Bbb C})$ are finite-dimensional representations for generators of the Heisenberg group given by (\ref{a04}). More explicitly, \begin{equation}\label{a06} \begin{array}{c} \displaystyle{ {\mathcal L}^{i}(z)=\sum\limits_{a\in\,\raise-1pt\hbox{$\mbox{\Bbbb Z}$}_{ N}\times\raise-1pt\hbox{$\mbox{\Bbbb Z}$}_{ N}} S^i_a T_a \varphi_a(z,\omega_a+\eta)\,, } \end{array} \end{equation} where $T_a$ is the special basis (\ref{a07}) in ${\rm Mat}(N,\mbox{\Bbb C})$ constructed by means of the matrices $Q_1$, $Q_2$. Similarly to (\ref{b0402}), we can write the Lax matrices (\ref{a06}) in the compact form: % \begin{equation}\label{a11} \begin{array}{c} \displaystyle{ {\mathcal L}^i(z)={\rm tr}_2(R_{12}^\eta(z)S_2^i)\,, \qquad S_2^i=1_{N\times N}\otimes S^i\in{\rm Mat}(N,\mbox{\Bbb C})^{\otimes 2}\,. } \end{array} \end{equation} % Consider the lattice version of the generalized Landau-Lifshitz model, i.e. the classical elliptic spin chain \cite{Skl}. It is defined by the monodromy matrix $T(z)$ (\ref{a01}) with the Lax matrices ${\mathcal L}^i(z)$ (\ref{a06}) or (\ref{a11}). The Poisson structure is given by $n$ copies of (\ref{b04}): % \begin{equation}\label{b22} \begin{array}{c} \displaystyle{ \{{\mathcal L}_1^{i}(z),{\mathcal L}_2^{j}(w)\}=\frac{1}{c}\,\delta^{ij}[{\mathcal L}_1^{i}(z){\mathcal L}_2^{i}(w),r_{12}(z-w)]\,. } \end{array} \end{equation} In order to have a local Hamiltonian (when only neighbouring sites interact), the residues $S^i$ \begin{equation}\label{b08} \begin{array}{c} \displaystyle{ S^i=\mathop{\hbox{Res}}\limits\limits_{z=0}{\mathcal L}^i(z)\,,\quad i=1\,,\ldots \,,n } \end{array} \end{equation} should be rank one matrices: \begin{equation}\label{b09} \begin{array}{c} \displaystyle{ S^i=\xi^i\otimes \psi^i\,, } \end{array} \end{equation} where $\xi^i\in\mbox{\Bbb C}^N$ are column-vectors and $\psi^i\in\mbox{\Bbb C}^N$ are row-vectors. % Then the local Hamiltonian is defined as follows. Let us compute the coefficient of $t(z)$ (\ref{a01}) in front of $1/z^n$. It equals \begin{equation}\label{b16} \begin{array}{c} \displaystyle{ \exp(H/c)=\mathop{\hbox{Res}}\limits\limits_{z=0}z^{n-1}t(z)={\rm tr}(S^1S^2...S^n). } \end{array} \end{equation} Plugging (\ref{b09}) into (\ref{b16}) and taking its logarithm, we get \begin{equation}\label{b17} \begin{array}{c} \displaystyle{ H=c\log{\rm tr}(S^1S^2...S^n)=c\sum\limits_{k=1}^n \log h_{k,k+1}\,, } \end{array} \end{equation} \begin{equation}\label{b18} \begin{array}{c} \displaystyle{ h_{k,k+1}=(\psi^k,\xi^{k+1})=\sum\limits_{l=1}^N \psi^k_l\xi^{k+1}_l\,, } \end{array} \end{equation} where $\xi^{n+1}=\xi^{1}$ and the notation $(\psi^k,\xi^{k+1})$ means the standard scalar product. To get equations of motion, consider \begin{equation}\label{b23} \begin{array}{c} \displaystyle{ {\rm tr}_2\{{\mathcal L}_1^k(z),T_2(w)\}\stackrel{(\ref{b22})}{=}-{\mathcal L}^k(z) M^k(z,w)+M^{k-1}(z,w){\mathcal L}^k(z)\,, } \end{array} \end{equation} where \begin{equation}\label{b24} \begin{array}{c} \displaystyle{ M^k(z,w)=-\frac{1}{c}\,{\rm tr}_2\Big( {\mathcal L}^1_2(w)\,...\, {\mathcal L}_2^k(w)r_{12}(z-w){\mathcal L}_2^{k+1}(w)\,...\,{\mathcal L}_2^n(w) \Big) } \end{array} \end{equation} By taking the coefficient of the $n$th order pole at $w=0$ in (\ref{b23})--(\ref{b24}) and dividing both parts of (\ref{b23}) by $\exp(H/c)$ (\ref{b16}), we see that the Lax matrices ${\mathcal L}^k(z)$ satisfy a set of the semi-discrete Zakharov-Shabat equations\footnote{The Lax equation holds for the monodromy matrix $T(z)$. From (\ref{b19}) it follows that ${\dot T}(z)=[T(z),M^n(z)]$.} \begin{equation}\label{b19} \begin{array}{c} \displaystyle{ {\dot {\mathcal L}}^k(z)=\{H,{\mathcal L}^k(z)\}={\mathcal L}^k(z)M^k(z)-M^{k-1}(z){\mathcal L}^k(z)\,, } \end{array} \end{equation} where \begin{equation}\label{b20} \begin{array}{c} \displaystyle{ M^k(z)=-{\rm tr}_2\Big( r_{12}(z) {\mathcal S}^{k+1,k}_2\Big)\,, \quad \mathop{\hbox{Res}}\limits\limits_{z=0}M^k(z)=-{\mathcal S}^{k+1,k}\,, } \end{array} \end{equation} and \begin{equation}\label{b201} \begin{array}{c} \displaystyle{ \quad {\mathcal S}^{k+1,k} \frac{\xi^{k+1}\otimes \psi^{k}}{h_{k,k+1}}\,. } \end{array} \end{equation} % The second order pole at $z=0$ in the r.h.s. of (\ref{b19}) is cancelled out since $S^k{\mathcal S}^{k+1,k}=S^k$, i.e. \begin{equation}\label{b21} \begin{array}{c} \displaystyle{ \frac{1}{h_{k,k+1}} (\xi^k\otimes \psi^{k})(\xi^{k+1}\otimes \psi^{k}) -\frac{1}{h_{k-1,k}} (\xi^{k}\otimes \psi^{k-1}) (\xi^k\otimes \psi^{k})=0\,. } \end{array} \end{equation} % Similarly to (\ref{b13}) we have the following explicit expression for $M^k(z)$: % \begin{equation}\label{b25} \begin{array}{c} \displaystyle{ M^k(z)=-{\mathcal S}^{k+1,k}_0 1_N E_1(z)-\sum\limits_{\alpha\in\mbox{\Bbb Z}_N^{\times 2}, \alpha\neq 0}T_\alpha {\mathcal S}^{k+1,k}_\alpha\varphi_\alpha(z,\omega_\alpha)\,. } \end{array} \end{equation} The equations of motion are of the form \begin{equation}\label{b26} \begin{array}{c} \displaystyle{ \dot S^k=S^kJ^\eta({\mathcal S}^{k+1,k})-{\mathcal S}^{k+1,k}J^\eta(S^k)\,, } \end{array} \end{equation} % where $J^\eta$ is the linear map (\ref{b15}). \section{The Ruijsenaars-Schneider chain} This section is organized as follows. First, we define the lattice finite-dimensional analogue of the Ruijsenaars-Schneider model (the Ruijsenaars spin chain) and find its Lax matrix. In subsection 4.2 the Hamiltonian and equations of motion are derived similarly to those for the elliptic spin chain described in the previous section. In subsection 4.3, using a set of IRF-Vertex type relations, we compute the $M$-matrices entering the semi-discrete zero curvature (Zakharov-Shabat) equations. Finally, we explain how the obtained Lax pair can be modified in order to have a form similar to the ordinary Ruijsenaars-Schneider model. \subsection{Classical $L$-matrix} Let us parameterize all the $L$-matrices of the elliptic spin chain in (\ref{a01}) by $n$ sets of canonical variables $p^{k}_i,q^{k}_j$, $i,j=1,\ldots ,N$, $k=1,\ldots ,n$ % \begin{equation}\label{a410} \begin{array}{l} \displaystyle{ \{p^k_i,q_j^l\}=\delta^{kl}\delta_{ij} } \end{array} \end{equation} % as in (\ref{a33}), so that % \begin{equation}\label{a41} \begin{array}{l} \displaystyle{ {\mathcal L}^k(z)=\frac{\vartheta'(0)}{\vartheta(\eta)}\, g(z+N\eta,q^k)\,e^{P^k/c}g^{-1}(z,q^k)\,,\quad P^k={\rm diag}(p^k_1,\ldots ,p^k_N) } \end{array} \end{equation} % and % \begin{equation}\label{a411} \begin{array}{l} \displaystyle{ S^k=S^k(p^k,q^k)=\xi^k\otimes\psi^k\,,\ \ k=1,\ldots ,n } \end{array} \end{equation} % with % \begin{equation}\label{a412} \begin{array}{l} \displaystyle{ \xi^k=\xi^k(p^k,q^k)=\frac{\vartheta'(0)}{\vartheta(\eta)}\, g(N\eta,q^k)\,e^{P^k/c}\,\rho\,,\qquad \psi^k=\psi^k(q^k)=\frac1N\,\rho^T{\breve g}(0,q^k)\,, } \end{array} \end{equation} % where $\rho$ is the column vector (\ref{b30}). % Plugging the Lax matrices being written in the factorized form (\ref{a41}) into the monodromy matrix (\ref{a01}), we get % \begin{equation}\label{a42} \begin{array}{l} \displaystyle{ T(z)=\Big(\frac{\vartheta'(0)}{\vartheta(\eta)}\Big)^n g(z+N\eta,q^1)\,e^{P^1/c}g^{-1}(z,q^1)g(z+N\eta,q^2)\,e^{P^2/c}g^{-1}(z,q^2) \ldots \,, } \end{array} \end{equation} % and, therefore, the transfer-matrix $t(z)$ (\ref{a01}) can be equivalently rewritten in the form % \begin{equation}\label{a43} \begin{array}{l} \displaystyle{ t(z)= {\rm tr}\Big( {\ti L}^1(z) {\ti L}^2(z)\ldots {\ti L}^n(z) \Big) } \end{array} \end{equation} (by identifying $q^0=q^n$), where % \begin{equation}\label{a440} \begin{array}{l} \displaystyle{ {\ti L}^k(z)=g^{-1}(z,q^{k-1}){L}^k(z)g(z,q^{k}) } \end{array} \end{equation} % or (from (\ref{a41})) % \begin{equation}\label{a44} \begin{array}{l} \displaystyle{ {\ti L}^k(z)=\frac{\vartheta'(0)}{\vartheta(\eta)}\,g^{-1}(z,q^{k-1})g(z+N\eta,q^k)\,e^{P^k/c}\,. } \end{array} \end{equation} % To obtain explicit an expression for ${\ti L}^k(z)$, we need to compute the matrix $g^{-1}(z,q^{k-1})g(z+N\eta,q^k)$: % \begin{equation}\label{a45} \begin{array}{l} \displaystyle{ g^{-1}(z,q^{k-1})g(z+N\eta,q^k)\stackrel{(\ref{a21})}{=}d^{0}(q^{k-1})\Xi^{-1}(z,{\bar q}^{k-1}) \Xi(z+N\eta,{\bar q}^k)\Big(d^0(q^k)\Big)^{-1}\,, } \end{array} \end{equation} where we have introduced the notation % \begin{equation}\label{a46} \begin{array}{l} \displaystyle{ {\bar q}^k_i=q^k_i-\frac{1}{N}\sum\limits_{j=1}^N q^k_j\,, } \end{array} \end{equation} i.e. each $g$-matrix depends on the coordinates in the center of masses frame (see the definitions (\ref{a21})-(\ref{a23}) and notice that $d^0(q^k)=d^0({\bar q}^k)$). It is necessary for the following reason. The Lax matrix should have a pole at some fixed point ($z=0$), and the latter comes from the inverse of $g(z)$. The pole at $z=0$ then appears from $\det\Xi(z,q)$ (\ref{a50}). Finally, the theta function $\vartheta(z)$ in (\ref{a50}) comes from (\ref{a22}) in the following way: $\vartheta(\frac{1}{N}\sum\limits_{k=1}^N(z-N{\bar q}_k))=\vartheta(z)$, where we used $\sum\limits_{k=1}^N{\bar q}_k=0$. Coming back to the calculation (\ref{a45}), we use the following formula proved in \cite{Hasegawa}: % \begin{equation}\label{a51} \begin{array}{c} \displaystyle{ \Big( -\vartheta'(0)\, \Xi^{-1}(z,{\bar q}^{k-1})\Xi(z+N\eta,{\bar q}^k)\Big)_{ij}= \phi(z,{\bar q}^{k-1}_i-{\bar q}^{k}_j+\eta) \frac{\prod\limits_{l=1}^N\vartheta({\bar q}^k_j-{\bar q}^{k-1}_l-\eta) } {\prod\limits_{l: l\neq i}^N\vartheta({\bar q}^{k-1}_i-{\bar q}^{k-1}_l) }\,. } \end{array} \end{equation} Plugging also the matrices $d^0$ (\ref{a23}) into (\ref{a45}), we get % \begin{equation}\label{a52} \begin{array}{c} \displaystyle{ \Big( -\vartheta'(0)\, g^{-1}(z,{\bar q}^{k-1})g(z+N\eta,{\bar q}^k)\Big)_{ij}= \phi(z,{\bar q}^{k-1}_i-{\bar q}^{k}_j+\eta) \frac{\prod\limits_{l=1}^N\vartheta({\bar q}^k_j-{\bar q}^{k-1}_l-\eta) } {\prod\limits_{l: l\neq j}^N\vartheta({\bar q}^{k}_j-{\bar q}^{k}_l) }\,. } \end{array} \end{equation} Note that under the identification ${\bar q}^{k-1}:={\bar q}^{k}$ the upper product in the r.h.s. acquires the factor $\vartheta(-\eta)$. Dividing by it the both sides, we reproduce the Lax matrix of the Ruijsenaars-Schneider model (\ref{a12})--(\ref{a13}) or (\ref{a32}). Finally, for the $L$-matrices (\ref{a44}) entering the transfer matrix (\ref{a43}) we have: % \begin{equation}\label{a53} \begin{array}{c} \displaystyle{ {\ti L}^k_{ij}(z)= \phi(z,{\bar q}^{k-1}_i-{\bar q}^{k}_j+\eta) \frac{\prod\limits_{l=1}^N\vartheta({\bar q}^k_j-{\bar q}^{k-1}_l-\eta) } {\vartheta(-\eta)\prod\limits_{l: l\neq j}^N\vartheta({\bar q}^{k}_j-{\bar q}^{k}_l) }\,e^{p^k_j/c}\,. } \end{array} \end{equation} \subsection{Hamiltonian and equations of motion} \label{section:EM} \paragraph{The Hamiltonian.} The Hamiltonian can be obtained from $t(z)$ (\ref{a43}) in the same way as in the spin chain case (see (\ref{b16})--(\ref{b18})). For this purpose compute the residue of ${\ti L}^k_{ij}(z)$: % \begin{equation}\label{b41} \begin{array}{c} \displaystyle{ \mathop{\hbox{Res}}\limits\limits_{z=0}{\ti L}^k(z)=\rho^T\otimes b^k\,, } \end{array} \end{equation} % where $\rho$ is taken from (\ref{b30}) and $b^k$ is a row-vector, so that % \begin{equation}\label{b42} \begin{array}{c} \displaystyle{ \mathop{\hbox{Res}}\limits\limits_{z=0}{\ti L}^k_{ij}(z)=b_j^k\,,\quad b_j^k= \frac{\prod\limits_{l=1}^N\vartheta({\bar q}^k_j-{\bar q}^{k-1}_l-\eta) } {\vartheta(-\eta)\prod\limits_{l: l\neq j}^N\vartheta({\bar q}^{k}_j-{\bar q}^{k}_l) }\,e^{p^k_j/c}\,. } \end{array} \end{equation} Then \begin{equation}\label{b43} \begin{array}{c} \displaystyle{ \exp(H/c)=\mathop{\hbox{Res}}\limits\limits_{z=0}z^{n-1}t(z)={\rm tr}\Big( (\rho^T\otimes b^1)(\rho^T\otimes b^2)\ldots (\rho^T\otimes b^n) \Big)\,. } \end{array} \end{equation} Finally, the Hamiltonian is of the form \begin{equation}\label{b44} \begin{array}{c} \displaystyle{ H=c\sum\limits_{k=1}^n \log h_{k,k+1}\,,\quad h_{k,k+1}=(\rho^T,b^{k+1}) } \end{array} \end{equation} % and % \begin{equation}\label{b45} \begin{array}{c} \displaystyle{ h_{k-1,k}=(\rho^T,b^{k})=\sum\limits_{j=1}^N b^k_j=\sum\limits_{j=1}^N \frac{\prod\limits_{l=1}^N\vartheta({\bar q}^k_j-{\bar q}^{k-1}_l-\eta) } {\vartheta(-\eta)\prod\limits_{l: l\neq j}^N\vartheta({\bar q}^{k}_j-{\bar q}^{k}_l) }\,e^{p^k_j/c}\,. } \end{array} \end{equation} By construction, the trace $t(z)$ (\ref{a43}) coincides with the one for the elliptic spin chain (\ref{a01}) under the substitution (\ref{a41})--(\ref{a412}). To see this, we mention that the terms $h_{k,k+1}$ entering (\ref{b17})--(\ref{b18}) and those from (\ref{b44})--(\ref{b45}) are equal to each other: % \begin{equation}\label{b46} \begin{array}{c} \displaystyle{ h_{k-1,k}=(\rho^T,b^{k})=(\psi^{k-1},\xi^k) } \end{array} \end{equation} for $\xi^k$ and $\psi^k$ defined in (\ref{a412}). In order to verify (\ref{b46}), one should compare the trace of the residue of ${\ti L}^k(z)$ computed from (\ref{a44}) and (\ref{a53}). \paragraph{The Hamiltonian equations of motion.} Let us proceed to the equations of motion. From (\ref{b44})--(\ref{b45}) we have % \begin{equation}\label{b461} \begin{array}{c} \displaystyle{ {\dot q}_i^k=\frac{\partial H}{\partial p_i^k}= \frac{b_i^k}{h_{k-1,k}}. } \end{array} \end{equation} % The latter yields % \begin{equation}\label{b462} \begin{array}{c} \displaystyle{ \sum\limits_{i=1}^N{\dot q}_i^k=1\quad \hbox{for}\ \hbox{all}\ k\,. } \end{array} \end{equation} With (\ref{b461}) the Lax matrix (\ref{a53}) takes the form: % \begin{equation}\label{b463} \begin{array}{c} \displaystyle{ {\ti L}^k_{ij}(z)= \phi(z,{\bar q}^{k-1}_i-{\bar q}^{k}_j+\eta)b_j^k\,,\quad b_j^k=h_{k-1,k}\,{\dot q}_j^k\,. } \end{array} \end{equation} % Next, % \begin{equation}\label{b464} \begin{array}{c} \displaystyle{ \frac{1}{c}\, {\dot p}_i^k=-\frac{1}{c}\, \frac{\partial H}{\partial q_i^k}= -\frac{1}{h_{k-1,k}}\,\frac{\partial}{\partial q_i^k }\,h_{k-1,k}-\frac{1}{h_{k,k+1}}\, \frac{\partial}{\partial q_i^k }\,h_{k,k+1}. } \end{array} \end{equation} Its r.h.s is evaluated from the explicit expression (\ref{b45}): % \begin{equation}\label{b465} \begin{array}{c} \displaystyle{ \frac{1}{h_{k-1,k}}\,\frac{\partial}{\partial q_i^k }\,h_{k-1,k}= {\dot q}_i^k\sum\limits_{l=1}^N E_1({\bar q}^{k}_i-{\bar q}^{k-1}_l-\eta) -{\dot q}_i^k\sum\limits_{l:l\neq i}^N E_1(q_i^k-q_l^k) +\sum\limits_{l:l\neq i}^N {\dot q}_l^kE_1(q_l^k-q_i^k)- } \\ \ \\ \displaystyle{ -\frac1N\sum\limits_{l=1}^N {\dot q}_l^k \sum\limits_{m=1}^N E_1({\bar q}^{k}_l-{\bar q}^{k-1}_m-\eta)\,, } \end{array} \end{equation} % \begin{equation}\label{b466} \begin{array}{c} \displaystyle{ \frac{1}{h_{k,k+1}}\,\frac{\partial}{\partial q_i^k }\,h_{k,k+1}=-\sum\limits_{l=1}^N {\dot q}_l^{k+1}E_1({\bar q}_l^{k+1}-{\bar q}_i^k-\eta) +\frac1N\sum\limits_{l=1}^N {\dot q}_l^{k+1}\sum\limits_{m=1}^N E_1({\bar q}_l^{k+1}-{\bar q}_m^k-\eta)\,, } \end{array} \end{equation} where the last terms (double sums) come from dependence on the center of masses coordinates (\ref{a46}). Summing up (\ref{b465}) and (\ref{b466}), we get the following equation for momenta (\ref{b464}): % $$ \displaystyle{ \frac{1}{c}\, {\dot p}_i^k=-{\dot q}_i^k\sum\limits_{l=1}^N E_1({\bar q}^{k}_i-{\bar q}^{k-1}_l-\eta) -\sum\limits_{l=1}^N {\dot q}_l^{k+1}E_1({\bar q}_i^k-{\bar q}_l^{k+1}+\eta) +\sum\limits_{l:l\neq i}^N({\dot q}_i^k+{\dot q}_l^k)E_1(q_i^k-q_l^k)+ } $$ % \begin{equation}\label{b467} \begin{array}{c} \displaystyle{ +\frac1N\sum\limits_{l=1}^N {\dot q}_l^k \sum\limits_{m=1}^N E_1({\bar q}^{k}_l-{\bar q}^{k-1}_m-\eta) -\frac1N\sum\limits_{l=1}^N {\dot q}_l^{k+1}\sum\limits_{m=1}^N E_1({\bar q}_l^{k+1}-{\bar q}_m^k-\eta)\,. } \end{array} \end{equation} The second line of this equation is independent of the index $i$. It has appeared from the dependence of ${\bar q}_l^k$ on the center of masses coordinates $\sum_l q_l^k$ at each ($k$-th) site. \paragraph{The Newtonian form.} Let us represent the Hamiltonian equations of motion in the Newtonian form. By differentiating both parts of (\ref{b461}) with respect to the time $t$, we get % \begin{equation}\label{b701} \begin{array}{c} \displaystyle{ {\ddot q}^k_i=\frac{ {\dot b}^k_i }{h_{k-1,k}}-\frac{ {\dot h}_{k-1,k} }{h_{k-1,k}}\,{\dot q}^k_i ={\dot q}^k_i\Big( \frac{ {\dot b}^k_i }{b^k_i}-\frac{ {\dot h}_{k-1,k} }{h_{k-1,k}} \Big)\,, } \end{array} \end{equation} where % \begin{equation}\label{b702} \begin{array}{c} \displaystyle{ \partial_t\log h_{k-1,k}=\frac{ {\dot h}_{k-1,k} }{h_{k-1,k}}= \frac{ 1 }{h_{k-1,k}}\sum\limits_{l=1}^N {\dot b}^k_l= \sum\limits_{l=1}^N {\dot q}^k_l\,\frac{{\dot b}^k_l }{b^k_l}\,. } \end{array} \end{equation} We see that we need to compute ${{\dot b}^k_i }/{b^k_i}$. From the definition of $b^k_i$ (\ref{b42}) we have % \begin{equation}\label{b703} \begin{array}{c} \displaystyle{ \frac{{\dot b}^k_i }{b^k_i}= \sum\limits_{l=1}^N ({\dot {\bar q}}_i^{k}-{\dot {\bar q}}_l^{k-1})E_1({\bar q}_i^k-{\bar q}_l^{k-1}-\eta) -\sum\limits_{l:l\neq i}^N ({\dot { q}}_i^{k}-{\dot {q}}_l^{k}) E_1({q}_i^k-{q}_l^{k})+\frac{1}{c}\, {\dot p}_i^k\,. } \end{array} \end{equation} Note that we can remove ``bar'' from velocities ${\dot {\bar q}}$ in the first sum since % \begin{equation}\label{b704} \begin{array}{c} \displaystyle{ {\dot {\bar q}}^k_i-{\dot {\bar q}}^m_j={\dot { q}}^k_i-{\dot { q}}^m_j } \end{array} \end{equation} for any values of indices due to (\ref{b462}). Using (\ref{b704}) and plugging (\ref{b467}) into (\ref{b703}), we get \begin{equation}\label{b705} \begin{array}{c} \displaystyle{ \frac{{\dot b}^k_i }{b^k_i}= -\sum\limits_{l=1}^N {\dot { q}}_l^{k+1}E_1({\bar q}_i^k-{\bar q}_l^{k+1}+\eta) -\sum\limits_{l=1}^N {\dot { q}}_l^{k-1}E_1({\bar q}_i^k-{\bar q}_l^{k-1}-\eta) +2\sum\limits_{l:l\neq i}^N {\dot {q}}_l^{k}E_1({q}_i^k-{q}_l^{k})+ } \\ \displaystyle{ +\frac1N\sum\limits_{l=1}^N {\dot q}_l^k \sum\limits_{m=1}^N E_1({\bar q}^{k}_l-{\bar q}^{k-1}_m-\eta) -\frac1N\sum\limits_{l=1}^N {\dot q}_l^{k+1}\sum\limits_{m=1}^N E_1({\bar q}_l^{k+1}-{\bar q}_m^k-\eta) \,. } \end{array} \end{equation} Therefore, from (\ref{b701}) we obtain the following result: \begin{equation}\label{b706} \begin{array}{c} \displaystyle{ \frac{{\ddot q}^k_i }{ {\dot q}^k_i }= -\sum\limits_{l=1}^N {\dot { q}}_l^{k+1}E_1({\bar q}_i^k-{\bar q}_l^{k+1}+\eta) -\sum\limits_{l=1}^N {\dot { q}}_l^{k-1}E_1({\bar q}_i^k-{\bar q}_l^{k-1}-\eta) +2\sum\limits_{l\neq i}^N {\dot {q}}_l^{k}E_1({q}_i^k-{q}_l^{k})+ } \\ \displaystyle{ +\frac1N\sum\limits_{l=1}^N {\dot q}_l^k \sum\limits_{m=1}^N E_1({\bar q}^{k}_l-{\bar q}^{k-1}_m-\eta) -\frac1N\sum\limits_{l=1}^N {\dot q}_l^{k+1}\sum\limits_{m=1}^N E_1({\bar q}_l^{k+1}-{\bar q}_m^k-\eta) -\partial_t\log h_{k-1,k}\,. } \end{array} \end{equation} The last term $\partial_t\log h_{k-1,k}$ can be found using (\ref{b702}) and (\ref{b705}). We have: \begin{equation}\label{b707} \begin{array}{c} \displaystyle{ \partial_t\log h_{k-1,k}= -\sum\limits_{m,l=1}^N {\dot { q}}_m^{k}{\dot { q}}_l^{k+1}E_1({\bar q}_m^k-{\bar q}_l^{k+1}+\eta) +\sum\limits_{m,l=1}^N {\dot { q}}_l^{k}{\dot { q}}_m^{k-1}E_1({\bar q}_m^{k-1}-{\bar q}_l^k+\eta) } \\ \displaystyle{ +\frac1N\sum\limits_{l=1}^N {\dot q}_l^k \sum\limits_{m=1}^N E_1({\bar q}^{k}_l-{\bar q}^{k-1}_m-\eta) -\frac1N\sum\limits_{l=1}^N {\dot q}_l^{k+1}\sum\limits_{m=1}^N E_1({\bar q}_l^{k+1}-{\bar q}_m^k-\eta) \,, } \end{array} \end{equation} where for the last line we also used (\ref{b462}). Note also that the latter expression can be represented in the form \begin{equation}\label{b708} \begin{array}{c} \displaystyle{ \partial_t\log h_{k-1,k}={\ti c}^{k-1}-{\ti c}^{k}\,, } \end{array} \end{equation} where \begin{equation}\label{b709} \begin{array}{c} \displaystyle{ {\ti c}^{k-1}=\sum\limits_{m,l=1}^N {\dot { q}}_l^{k}{\dot { q}}_m^{k-1} E_1({\bar q}_m^{k-1}-{\bar q}_l^k+\eta) +\frac1N\sum\limits_{l=1}^N {\dot q}_l^k \sum\limits_{m=1}^N E_1({\bar q}^{k}_l-{\bar q}^{k-1}_m-\eta)\,. } \end{array} \end{equation} Finally, we obtain the equations of motion by plugging (\ref{b707}) into (\ref{b706}): \begin{equation}\label{b7091} \begin{array}{c} \displaystyle{ \frac{{\ddot q}^k_i }{ {\dot q}^k_i }= -\sum\limits_{l=1}^N {\dot { q}}_l^{k+1}E_1({\bar q}_i^k-{\bar q}_l^{k+1}+\eta) -\sum\limits_{l=1}^N {\dot { q}}_l^{k-1}E_1({\bar q}_i^k-{\bar q}_l^{k-1}-\eta) +2\sum\limits_{l\neq i}^N {\dot {q}}_l^{k}E_1({q}_i^k-{q}_l^{k})+ } \\ \displaystyle{ +\sum\limits_{m,l=1}^N {\dot { q}}_m^{k}{\dot { q}}_l^{k+1}E_1({\bar q}_m^k-{\bar q}_l^{k+1}+\eta) -\sum\limits_{m,l=1}^N {\dot { q}}_l^{k}{\dot { q}}_m^{k-1}E_1({\bar q}_m^{k-1}-{\bar q}_l^k+\eta)\,. } \end{array} \end{equation} \subsection{Semi-discrete Zakharov-Shabat equation} \label{section:ZS} As is seen above, the Ruijsenaars-Schneider chain is the gauge transformed elliptic spin chain together with the change of variables (\ref{a411})--(\ref{a412}). With this identification, the Hamiltonians (\ref{b44}) and (\ref{b18}) coincide. From the relation (\ref{a440}) between the Lax matrices and the semi-discrete Zakharov-Shabat equation (\ref{b19}) we conclude that we also have the semi-discrete Zakharov-Shabat representation for the Ruijsenaars-Schneider chain \begin{equation}\label{b47} \begin{array}{c} \displaystyle{ \frac{d}{dt}\,{{\ti L}^k}(z)=\{H,{\ti L}^k(z)\}={\ti L}^k(z){\ti M}^k(z)-{\ti M}^{k-1}(z){\ti L}^k(z)\,, } \end{array} \end{equation} with the Lax matrices (\ref{a53}) and the $M$-matrices ${\ti M}^k(z)$: \begin{equation}\label{b48} \begin{array}{c} \displaystyle{ {\ti M}^k(z)=g^{-1}(z,q^k) M^k(z) g(z,q^k) +g^{-1}(z,q^k) {\dot g}(z,q^k)\,. } \end{array} \end{equation} Here $M^k(z)$ is given by (\ref{b25}), and the variables $\xi^k,\psi^k$ in (\ref{b201}) are taken from (\ref{a412}). The aim of this subsection is to obtain explicit expression for ${\ti M}^k(z)$ using (\ref{b48}). We follow the strategy used in \cite{VZ} to reproduce the Ruijsenaars-Schneider $M$-matrix (\ref{a181}) from the IRF-Vertex relations. First, let us express $M^k(z)$ (\ref{b20})--(\ref{b201}) through the canonical variables \begin{equation}\label{b50} \begin{array}{c} \displaystyle{ M^k(z)=-\frac{1}{h_{k,k+1}}{\rm tr}_2\Big( \Big( \xi^{k+1}(p^{k+1},q^{k+1})\otimes \psi^{k}(q^k) \Big)_2 r_{12}(z)\Big)\,. } \end{array} \end{equation} Plugging $\xi^{k+1}$ and $\psi^{k}$ from (\ref{a412}), we have \begin{equation}\label{b51} \begin{array}{c} \displaystyle{ M^k(z)=-\frac{1}{h_{k,k+1}}\frac{\vartheta'(0)}{\vartheta(\eta)}\,\frac1N\, {\rm tr}_2\Big( (\rho\otimes \rho^T)_2\, {\breve g}_2(0,q^k)\,r_{12}(z) \,g_2(N\eta,q^{k+1})\,e^{P_2^{k+1}/c} \Big)\,. } \end{array} \end{equation} Next, we substitute ${\breve g}(0,q^k)\,r_{12}(z)$ from (\ref{b011}), where all matrices in the r.h.s. depend on $q^k$. Using $(\rho\otimes \rho^T){\mathcal O}_{12}=N{\mathcal O}_{12}$, we obtain: \begin{equation}\label{b52} \begin{array}{c} \displaystyle{ M^k(z)=-\frac{1}{h_{k,k+1}}\frac{\vartheta'(0)}{\vartheta(\eta)}\, {\rm tr}_2\Big( \Big(g_1'(z,q^k)\, \mathcal O_{12}\, {\breve g}_2(0,q^k)\, g_1^{-1}(z,q^k) } \\ \ \\ \displaystyle{ +g_1(z,q^k)\, \mathcal O_{12}\,A_2(q^k)\, g_1^{-1}(z,q^k)\Big) g_2(N\eta,q^{k+1})\,e^{P_2^{k+1}/c} \Big)\,. } \end{array} \end{equation} Then the gauged transformed $M$-matrix (\ref{b48}) takes the form \begin{equation}\label{b53} \begin{array}{c} \displaystyle{ {\ti M}^k(z)=-g^{-1}(z)g'(z)G-F+g^{-1}(z,q^k) {\dot g}(z,q^k)\,, } \end{array} \end{equation} where \begin{equation}\label{b54} \begin{array}{c} \displaystyle{ G=\frac{1}{h_{k,k+1}}\, {\rm tr}_2\left({\mathcal O}_{12}\frac{\vartheta'(0)}{\vartheta(\eta)}\,{\breve g}_2(0,q^k)g_2(N\eta,q^{k+1})\, e^{P^{k+1}_2/c}\right) } \end{array} \end{equation} and \begin{equation}\label{b55} \begin{array}{c} \displaystyle{ F=\frac{1}{h_{k,k+1}}\, {\rm tr}_2\left({\mathcal O}_{12} \frac{\vartheta'(0)}{\vartheta(\eta)}\,A_2(q^k)\,g_2(N\eta,q^{k+1})\, e^{P_2^{k+1}/c}\right). } \end{array} \end{equation} Let us compute the matrices $F$ and $G$. Consider the residue of ${\ti L}^{k+1}(z)$ at $z=0$. On the one hand it comes from (\ref{a44}), and on the other hand it can be found from (\ref{b41}): \begin{equation}\label{b56} \begin{array}{c} \displaystyle{ {\ti L}^{k+1}[-1]=\mathop{\hbox{Res}}\limits\limits_{z=0}{\ti L}^{k+1}(z)=\frac{\vartheta'(0)}{\vartheta(\eta)}\, {\breve g}(0,q^{k})g(N\eta,q^{k+1})\,e^{P^{k+1}/c} =\rho\otimes b^{k+1}\,. } \end{array} \end{equation} Plugging it into (\ref{b54}) and taking also into account (\ref{b46}), we see that $G$ is the identity matrix: \begin{equation}\label{b57} \begin{array}{c} \displaystyle{ G=1_N\,. } \end{array} \end{equation} In order to compute the matrix $F$, consider the $z^0$-term in the expansion of ${\ti L}^{k+1}(z)$ near $z=0$. Using the factorized form (\ref{a44}) and the expansion (\ref{b31}), we obtain: % \begin{equation}\label{b58} \begin{array}{c} \displaystyle{ {\ti L}^{k+1}[0]=\frac{\vartheta'(0)}{\vartheta(\eta)}\, {\breve g}(0,q^{k})g'(N\eta,q^{k+1})\,e^{P^{k+1}/c}+ \frac{\vartheta'(0)}{\vartheta(\eta)}\,A(q^k)\,g(N\eta,q^{k+1})\, e^{P^{k+1}/c}. } \end{array} \end{equation} % The first term in the r.h.s. of (\ref{b58}) is obtained by differentiating both sides of (\ref{b56}) with respect to $\eta$: \begin{equation}\label{b59} \begin{array}{c} \displaystyle{ \partial_\eta{\ti L}^{k+1}[-1]=-E_1(\eta){\ti L}^{k+1}[-1]+N\frac{\vartheta'(0)}{\vartheta(\eta)}\, {\breve g}(0,q^{k})g'(N\eta,q^{k+1})\,e^{P^{k+1}/c}\,, } \end{array} \end{equation} so that \begin{equation}\label{b60} \begin{array}{c} \displaystyle{ \frac{\vartheta'(0)}{\vartheta(\eta)}\,A(q^k)\,g(N\eta,q^{k+1})\, e^{P^{k+1}/c}= {\ti L}^{k+1}[0]-\frac1N\Big(\partial_\eta{\ti L}^{k+1}[-1]+E_1(\eta){\ti L}^{k+1}[-1]\Big)\,. } \end{array} \end{equation} % Expressions ${\ti L}^{k+1}[-1]$ and ${\ti L}^{k+1}[0]$ are known explicitly from (\ref{a53}) and (\ref{a091}): % \begin{equation}\label{b61} \begin{array}{c} \displaystyle{ {\ti L}^{k+1}_{ij}[-1]=b_j^{k+1}\,,\quad {\ti L}^{k+1}_{ij}[0]=b_j^{k+1} E_1({\bar q}^k_i-{\bar q}^{k+1}_j+\eta)\,, } \\ \ \\ \displaystyle{ \Big(\partial_\eta{\ti L}^{k+1}[-1]+E_1(\eta){\ti L}^{k+1}[-1]\Big)_{ij} =-b_j^{k+1}\sum\limits_{l=1}^NE_1({\bar q}^{k+1}_j-{\bar q}^{k}_l-\eta)\,. } \end{array} \end{equation} % Plugging all this into (\ref{b60}) and dividing both parts by $h_{k,k+1}$, we obtain (using also the definition (\ref{b461})): \begin{equation}\label{b62} \begin{array}{c} \displaystyle{ \frac{1}{h_{k,k+1}}\frac{\vartheta'(0)}{\vartheta(\eta)} \Big(A(q^k)\,g(N\eta,q^{k+1})\, e^{P^{k+1}/c}\Big)_{ij} } \\ \ \\ \displaystyle{ ={\dot q}_j^{k+1}E_1({\bar q}^k_i-{\bar q}^{k+1}_j+\eta) +\frac{1}{N}\,{\dot q}_j^{k+1}\sum\limits_{l=1}^NE_1({\bar q}^{k+1}_j-{\bar q}^{k}_l-\eta)\,. } \end{array} \end{equation} % Using the property (\ref{b07}), we find the (diagonal) matrix $F$ (\ref{b55}): \begin{equation}\label{b63} \begin{array}{c} \displaystyle{ F_{ij}=\delta_{ij}\sum\limits_{m=1}^N{\dot q}_m^{k+1}E_1({\bar q}^k_i-{\bar q}^{k+1}_m+\eta) +\delta_{ij}\frac{1}{N}\sum\limits_{l,m=1}^N{\dot q}_m^{k+1} E_1({\bar q}^{k+1}_m-{\bar q}^{k}_l-\eta)\,. } \end{array} \end{equation} % To get the final answer for ${\ti M}^k(z)$ (\ref{b53}), let us simplify its last term $g^{-1}(z,q^k) {\dot g}(z,q^k)$. Using its definition (\ref{a21})--(\ref{a23}), we have: \begin{equation}\label{b64} \begin{array}{c} \displaystyle{ g^{-1}(z){\dot g}(z)=g^{-1}(z)g'(z)\left(-N\,{\rm diag}(\dot q)+1_{N}\sum\limits_{k=1}^N {\dot q}_k\right)-{\dot d}^0(d^0)^{-1}\,. } \end{array} \end{equation} % Substitute (\ref{b64}) and (\ref{b57}) into (\ref{b53}). Due to (\ref{b462}) the term $-g^{-1}g'(z)G$ is canceled with the one proportional to $\sum\limits_k{\dot q}_k$ in (\ref{b64}): \begin{equation}\label{b65} \begin{array}{c} \displaystyle{ {\ti M}^k(z)=-F-Ng^{-1}(z)g'(z){\rm diag}(\dot q)-{\dot d}^0(d^0)^{-1}\,. } \end{array} \end{equation} The quantity $g^{-1}(z)g'(z)$ is known from (\ref{b391}) and \begin{equation}\label{b66} \begin{array}{c} \displaystyle{ \Big({\dot d}^0(d^0)^{-1}\Big)_{ii}= \sum\limits_{m:m\neq i}^N({\dot q}_i^k-{\dot q}_m^k)E_1(q_i^k-q_m^k)\,. } \end{array} \end{equation} Therefore, \begin{equation}\label{b67} \begin{array}{c} \displaystyle{ {\ti M}_{ij}^k(z)=-(1-\delta_{ij})\phi(z,q_i^k-q_j^k)\, {\dot q}_j^k-\delta_{ij}E_1(z){\dot q}^k_i+ } \end{array} \end{equation} $$ \displaystyle{ +\delta_{ij}\Big( \sum\limits_{m:m\neq i}^N{\dot q}_m^kE_1(q_i^k-q_m^k) -\sum\limits_{m=1}^N{\dot q}_m^{k+1}E_1({\bar q}^k_i-{\bar q}^{k+1}_m+\eta) -\frac{1}{N}\sum\limits_{l,m=1}^N{\dot q}_m^{k+1}E_1({\bar q}^{k+1}_m-{\bar q}^{k}_l-\eta) \Big)\,. } $$ To summarize, we have proved that the semi-discrete Zakharov-Shabat equation (\ref{b47}) holds for the matrices (\ref{b463}) and (\ref{b67}) on the equations of motion of the Ruijsenaars-Schneider chain (\ref{b461}), (\ref{b467}) or (\ref{b705})--(\ref{b707}). This can be also verified by direct substitution using identities (\ref{b151}) and (\ref{a092}) similarly to verification of the Lax pair for the Ruijsenaars-Schneider model (\ref{a12}), (\ref{a181}). \paragraph{Modified Lax pair.} All Lax matrices (\ref{b463}) can be simultaneously divided by $h_{k-1,k}$. Then the resultant Lax matrix depend on the velocities (\ref{b461}). From the point of view of the ordinary Ruijsenaars-Schneider model it is similar to transition to the logarithm of Hamiltonian (\ref{a172}). Consider % \begin{equation}\label{b46333} \begin{array}{c} \displaystyle{ {L'}^k_{ij}(z)={\ti L}^k_{ij}(z)\frac{1}{h_{k-1,k}}= \phi(z,{\bar q}^{k-1}_i-{\bar q}^{k}_j+\eta){\dot q}_j^k\,. } \end{array} \end{equation} % This can be done since the transfer matrix is divided by conserved quantity (\ref{b43}): \begin{equation}\label{a4333} \begin{array}{l} \displaystyle{ t'(z)= {\rm tr}\Big( { L'}^1(z) { L'}^2(z)...{ L'}^n(z) \Big)= \frac{t(z)}{h_{1,2}h_{2,3}...h_{n,1}}=t(z)\exp(-H/c)\,, } \end{array} \end{equation} % The Lax equation for ${ L'}^k(z)$ is of the form: \begin{equation}\label{b4733} \begin{array}{c} \displaystyle{ \frac{d}{dt}\,{{ L'}^k}(z)={L'}^k(z){\ti M}^k(z)-{\ti M}^{k-1}(z){ L'}^k(z)- { L'}^k(z)\partial_t\log h_{k-1,k}\,, } \end{array} \end{equation} Using (\ref{b708}) the last term in (\ref{b4733}) can be removed by redefining ${\ti M}^k(z)$: \begin{equation}\label{b4734} \begin{array}{c} \displaystyle{ {M'}^k(z)={\ti M}^k(z)+{\ti c}^k 1_N\,. } \end{array} \end{equation} Then \begin{equation}\label{b4735} \begin{array}{c} \displaystyle{ \frac{d}{dt}\,{{ L'}^k}(z)={L'}^k(z){M'}^k(z)-{ M'}^{k-1}(z){ L'}^k(z)\,. } \end{array} \end{equation} Explicit form of the $M$-matrix (\ref{b4734}) is as follows: \begin{equation}\label{b4736} \begin{array}{c} \displaystyle{ {M'}^k_{ij}(z)=-(1-\delta_{ij})\phi(z,q_i^k-q_j^k)\, {\dot q}_j^k-\delta_{ij}E_1(z){\dot q}^k_i+ } \end{array} \end{equation} $$ \displaystyle{ +\delta_{ij}\Big( \sum\limits_{m:m\neq i}^N{\dot q}_m^kE_1(q_i^k-q_m^k) -\sum\limits_{m=1}^N{\dot q}_m^{k+1}E_1({\bar q}^k_i-{\bar q}^{k+1}_m+\eta) +\sum\limits_{m,l=1}^N {\dot { q}}_l^{k+1}{\dot { q}}_m^{k} E_1({\bar q}_m^{k}-{\bar q}_l^{k+1}+\eta) \Big)\,. } $$ To summarize, the Lax pair (\ref{b46333}) and (\ref{b4736}) satisfy the semi-discrete zero curvature equation (\ref{b4735}) and provide equations of motion of the Ruijsenaars-Schneider chain (\ref{b7091}). \section{Field analogue of the elliptic Ruijsenaars-Schneider system from elliptic families of solutions to the 2D Toda lattice} In this section we derive equations of motion for poles of general elliptic solutions (which we call elliptic families) to the 2D Toda lattice hierarchy and show that they are Hamiltonian and equivalent to (\ref{b7091}) under some simple substitutions and re-definitions. \subsection{The 2D Toda lattice hierarchy} Following \cite{UT84}, we briefly review the 2D Toda lattice hierarchy. The sets of independent variables are two infinite sets of continuous time variables ${\bf t}=\{t_1, t_2, t_3, \ldots \}$, $\bar {\bf t}=\{\bar t_1, \bar t_2, \bar t_3, \ldots \}$ and a discrete integer-valued variable $n$ which is sometimes denoted as $t_0$. The main objects are two pseudo-difference Lax operators \begin{equation}\label{toda1} {\bf L}=e^{\partial_n}+\sum_{k\geq 0}U_{k,n} e^{-k\partial_n}, \quad \bar {\bf L}=a_n e^{-\partial_n}+\sum_{k\geq 0}\bar U_{k,n} e^{k \partial_n}, \end{equation} where $e^{\partial_n}$ is the shift operator acting as $e^{\pm \partial_n}f(n)=f(n\pm 1 )$ and the coefficient functions are functions of ${\bf t}$, $\bar {\bf t}$. The equations of the hierarchy are differential equations for the functions $a_n$, $U_{k,n}$, $\bar U_{k,n}$. They are encoded in the Lax equations \begin{equation}\label{toda2} \partial_{t_m}{\bf L}=[{\cal B}_m, {\bf L}], \quad \partial_{t_m}\bar {\bf L}=[{\cal B}_m, \bar {\bf L}] \qquad {\cal B}_m=({\bf L}^m)_{\geq 0}, \end{equation} \begin{equation}\label{toda2a} \partial_{\bar t_m}{\bf L}=[\bar {\cal B}_m, {\bf L}], \quad \partial_{\bar t_m}\bar {\bf L}=[\bar {\cal B}_m, \bar {\bf L}] \qquad \bar {\cal B}_m=(\bar {\bf L}^m)_{< 0}, \end{equation} where we use the notation $$\Bigl (\sum_{k\in \raise-1pt\hbox{$\mbox{\Bbbb Z}$}} U_{k,n} e^{k \partial_n}\Bigr )_{\geq 0}= \sum_{k\geq 0} U_{k,n} e^{k\partial_n}, \quad \Bigl (\sum_{k\in \raise-1pt\hbox{$\mbox{\Bbbb Z}$}} U_{k,n} e^{k\partial_n}\Bigr )_{< 0}= \sum_{k<0} U_{k,n} e^{k\partial_n}.$$ For example, ${\cal B}_1=e^{\partial_n}+b_n$, $\bar {\cal B}_1=a_ne^{-\partial_n}$, where we have denoted $U_{0,n}=b_n$. It can be shown that the zero curvature (Zakharov-Shabat) equations \begin{equation}\label{toda3} \partial_{t_n}{\cal B}_m -\partial_{t_m}{\cal B}_n +[{\cal B}_m, {\cal B}_n]=0, \end{equation} \begin{equation}\label{toda3a} \partial_{\bar t_n}{\cal B}_m -\partial_{t_m}\bar {\cal B}_n +[{\cal B}_m, \bar {\cal B}_n]=0, \end{equation} \begin{equation}\label{toda3b} \partial_{\bar t_n}\bar {\cal B}_m -\partial_{\bar t_m}\bar {\cal B}_n +[\bar {\cal B}_m, \bar {\cal B}_n]=0 \end{equation} provide an equivalent formulation of the hierarchy. The 2D Toda equation is the first member of the hierarchy. It is obtained from (\ref{toda3a}) at $m=n=1$ which is equivalent to the system of equations $$ \left \{ \begin{array}{l} \partial_{t_1}\log a_n=b_n-b_{n-1} \\ \\ \partial_{\bar t_1} b_n =a_n -a_{n+1}. \end{array} \right. $$ Excluding $b_n$ from this system, we get the differential equation for $a_n$: \begin{equation}\label{toda4} \partial_{t_1}\partial_{\bar t_1}\log a_n=2a_n-a_{n+1}-a_{n-1}. \end{equation} It is one of the forms of the 2D Toda equation. In terms of the function $\varphi_n$ introduced through the relation $a_n=e^{\varphi_n-\varphi_{n-1}}$ it acquires the familiar form \begin{equation}\label{toda5} \partial_{t_1}\partial_{\bar t_1}\varphi_n=e^{\varphi_n-\varphi_{n-1}}- e^{\varphi_{n+1}-\varphi_n}. \end{equation} The universal dependent variable of the hierarchy is the tau-function $\tau_n =\tau_n ({\bf t}, \bar {\bf t})$. The change of the dependent variables from $a_n, b_n$ to the tau-function, \begin{equation}\label{toda6} a_n=\frac{\tau_{n+1}\tau_{n-1}}{\tau^2_n}, \qquad b_n=\partial_{t_1}\log \frac{\tau_{n+1}}{\tau_n}, \end{equation} brings the 2D Toda equation to the form \cite{JM83} \begin{equation}\label{toda7} \partial_{t_1}\partial_{\bar t_1}\log \tau_n=-\frac{\tau_{n+1}\tau_{n-1}}{\tau^2_n}. \end{equation} At fixed $n$ and $\bar {\bf t}$ the equations of the 2D Toda lattice hierarchy are reduced to the Kadom\-tsev-Pet\-vi\-ash\-vi\-li (KP) hierarchy with the independent variables ${\bf t}=\{t_1, t_2, t_3,\ldots \}$, with the KP equation (the first member of the hierarchy) being satisfied by \begin{equation}\label{toda9} u_n =\partial^2_{t_1}\log \tau_n. \end{equation} An important class of solutions to the 2D Toda lattice hierarchy is the algebraic-geometrical solutions constructed from a smooth algebraic curve $\Gamma$ of genus $g$ with some extra data. The tau-function for such solutions is given by \cite{Krichever77,Dubrovin81} \begin{equation} \tau_n ({\bf t}, \bar {\bf t})=e^{Q(n, {\bf t}, \bar {\bf t})} \Theta \Bigl ( {\bf V}_0 n +\sum_{k\geq 1}{\bf V}_k t_k +\sum_{k\geq 1}\bar {\bf V}_k \bar t_k +{\bf Z}\Bigr ), \end{equation} where $Q$ is a quadratic form of its variables and $\Theta$ is the Riemann theta-function with the Riemann's matrix being the period matrix of holomorphic differentials on the curve $\Gamma$. Components of the $g$-dimensional vectors ${\bf V}_k$, $\bar {\bf V}_k$ are $b$-periods of certain normalized meromorphic differentials on $\Gamma$ with poles at two marked points $P_0, P_{\infty}\in \Gamma$ (see \cite{Krichever77,Dubrovin81} for details). When one considers algebraic-geometrical solutions, it is natural to treat $t_0=n$ as a continuous rather than discrete variable. Namely, let us introduce the continuous variable $x=x_0+\eta n$, where $\eta$ is a constant (a lattice spacing), then the Toda equation becomes a difference equation in $x$: \begin{equation}\label{t3} \partial_{t_1}\partial_{\bar t_1}\log a(x)=2a(x)-a(x+\eta )-a(x-\eta ). \end{equation} It is equivalent to the zero curvature equation $\partial_{\bar t_1}{\cal B}_1 -\partial_{t_1}\bar {\cal B}_1 +[{\cal B}_1, \bar {\cal B}_1]=0$ for the difference operators \begin{equation}\label{t1} {\cal B}_1=e^{\eta \partial_x}+b(x), \qquad \bar {\cal B}_1 =a(x)e^{-\eta \partial_x}, \end{equation} which is the compatibility condition of the linear problems \begin{equation}\label{t2} \begin{array}{l} \partial_{t_1}\psi (x)=\psi (x+\eta )+b(x)\psi (x), \\ \\ \partial_{\bar t_1}\psi (x)=a(x)\psi (x-\eta ) \end{array} \end{equation} for a wave function $\psi$. \subsection{Elliptic families} Let us fix the variables $\bar {\bf t}$ and consider the dependent variables as functions of $x, {\bf t}$. A general solution to the 2D Toda and KP equations is known to be of the form \begin{equation}\label{t8} \begin{array}{l} \displaystyle{a(x, {\bf t})= \frac{\tau (x+\eta , {\bf t}) \tau (x-\eta , {\bf t})}{\tau^2 (x, {\bf t})},} \\ \\ \displaystyle{ b(x, {\bf t})=\partial_{t_1}\log \frac{\tau (x+\eta , {\bf t})}{\tau (x, {\bf t})},} \\ \\ \displaystyle{ u(x, {\bf t})=\partial^2_{t_1}\log \tau (x, {\bf t}).} \end{array} \end{equation} We are going to consider solutions that are elliptic functions with respect to some variable $t_k$ or a linear combination $\displaystyle{\lambda =\beta_0x+\sum_k \beta_k t_k}$. We call them elliptic families. The elliptic families form a subclass of algebraic-geometrical solutions. As it was already mentioned in Introduction, an algebraic-geometrical solution is elliptic with respect to some direction if there exists a $g$-dimensional vector ${\bf W}$ such that it spans an elliptic curve ${\cal E}$ embedded in the Jacobian of the curve $\Gamma$: \begin{equation}\label{toda8a} \tau (x, {\bf t}, \lambda )=e^{Q(x, {\bf t})} \Theta \Bigl ( {\bf V}_0 x/\eta +\sum_{k\geq 1}{\bf V}_k t_k +{\bf W}\lambda +{\bf Z}\Bigr ), \end{equation} This is a nontrivial transcendental constraint. The space of corresponding algebraic curves has codimension $g-1$ in the moduli space of all the curves. If such a vector ${\bf W}$ exists, then the theta-divisor intersects the shifted elliptic curve $\displaystyle{{\cal E}+{\bf V}_0 x/\eta + \sum_k {\bf V}_k t_k}$ at a finite number of points $\lambda_i =\lambda_i(x,{\bf t})$. Therefore, for elliptic families we have: \begin{equation}\label{toda8b} \Theta \Bigl ( {\bf V}_0 x/\eta +\sum_{k\geq 1}{\bf V}_k t_k +{\bf W}\lambda +{\bf Z}\Bigr )=f(x, {\bf t})e^{\gamma_1\lambda +\gamma_2\lambda^2}\prod _{i=1}^N \sigma (\lambda -\lambda_i(x, {\bf t})). \end{equation} Here $\gamma_1, \gamma_2$ are constants and $\sigma (\lambda )$ is the Weierstrass $\sigma$-function defined in the Appendix. The form of the exponential factor in the right hand side of (\ref{toda8b}) follows from monodromy properties of the theta-function. The function $f(x, {\bf t})$ does not depend on $\lambda$. In the tau-function, it is modified by the factor $e^{Q(x, {\bf t})}$ which also does not depend on $\lambda$. Having in mind the discrete version, we will also denote $\lambda_i^k=\lambda (x)$ for $x=x_0+k\eta$. In what follows we denote $t_1=t$. From (\ref{toda8b}) we conclude that if $b(x, t, \lambda )$ is an elliptic family of solutions to the 2D Toda equation, then it has the form \begin{equation}\label{el1} b(x, t, \lambda )=\sum_{i=1}^N \Bigl (\dot \lambda_i (x)\zeta (\lambda -\lambda_i(x)) -\dot \lambda_i (x+\eta )\zeta (\lambda -\lambda_i(x+\eta ))\Bigr ) +c(x,t), \end{equation} where dot means the $t$-derivative and $c(x,t)$ is some function. Since $a(x,t, \lambda )$, $b(x, t, \lambda )$ and $u(x,t,\lambda )$ given by (\ref{t8}) are elliptic functions of $\lambda$, one should have \begin{equation}\label{el2a} \sum\limits_{i=1}^N\Bigl (\lambda_i(x+\eta )+\lambda_i(x-\eta )-2\lambda_i(x)\Bigr )=0, \end{equation} \begin{equation}\label{el2} \sum\limits_{i=1}^N \dot \lambda_i(x+\eta )=\sum\limits_{i=1}^N \dot \lambda_i(x), \end{equation} \begin{equation}\label{el2c} \sum\limits_{i=1}^N \ddot \lambda_i(x)=0. \end{equation} From (\ref{el2a}), (\ref{el2}), (\ref{el2c}) it follows that \begin{equation}\label{el2b} \sum\limits_{i=1}^N \lambda_i(x)= \alpha x +\beta t+\alpha_0, \qquad \dot \alpha =\dot \beta =0. \end{equation} Here $\alpha_0, \alpha , \beta$ are unspecified $\eta$-periodic functions of $x$. We can say that the requirement of ellipticity implies that the ``center of masses'' of the points $\lambda_i$ moves linearly in time. A meromorphic function $f(\lambda )$ is called a {\it double-Bloch} function if it satisfies the following monodromy properties: \begin{equation}\label{bl1} f(\lambda +2\omega_{\alpha})=B_{\alpha}f(\lambda ), \quad \alpha =1,2. \end{equation} The complex constants $B_{\alpha}$ are called Bloch multipliers. Our goal is to find $b(x, t, \lambda )$ such that the equation \begin{equation}\label{bl2} \partial_{t}\psi (x)-\psi (x+\eta )-b(x)\psi (x)=0 \end{equation} has sufficiently many double-Bloch solutions. The existence of such solutions turn out to be a very restrictive condition. The double-Bloch functions with simple poles $\lambda_i$ can be represented in the form \begin{equation}\label{el3} \psi (x)=\sum\limits_{i=1}^N c_i(x)\Phi (\lambda -\lambda_i(x), z ), \end{equation} where $c_i$ are residues at the poles $\lambda_i$ and the function $\Phi (\lambda , z)$ is defined in (\ref{w02}). The variable $z$ has the meaning of the spectral parameter. In what follows we often suppress the second argument of $\Phi$ writing simply $\Phi (\lambda , z):=\Phi (\lambda )$. \subsection{Equations of motion of the field analogue of the elliptic Ruij\-se\-na\-ars-Schnei\-der system}\label{section:53} Our strategy is similar to that of the work \cite{AKV02}. We are going to substitute (\ref{el1}), (\ref{el3}) into (\ref{bl2}) and cancel all the poles which are at $\lambda =\lambda_i(x)$ and $\lambda =\lambda_i(x+\eta)$. The substitution gives: $$ \sum\limits_{i=1}^N \dot c_i(x)\Phi (\lambda -\lambda_i(x))-\sum\limits_{i=1}^N c_i(x)\dot \lambda_i(x) \Phi ' (\lambda -\lambda_i(x))-\sum\limits_{i=1}^N c_i(x+\eta )\Phi (\lambda -\lambda_i(x+\eta )) $$ $$ -\sum\limits_{i=1}^N \Bigl ((\dot \lambda_i (x)\zeta (\lambda -\lambda_i(x)) -\dot \lambda_i (x+\eta )\zeta (\lambda -\lambda_i(x+\eta ))\Bigr ) \sum\limits_{j=1}^N c_j(x)\Phi (\lambda -\lambda_j(x)) $$ $$-c(x,t)\sum\limits_{i=1}^N c_i(x)\Phi (\lambda -\lambda_i(x))=0. $$ The cancellation of poles yields the following system of equations: \begin{equation}\label{el4} c_i(x+\eta )=\dot \lambda_i(x+\eta )\sum\limits_{j=1}^N c_j(x)\Phi (\lambda_i(x+\eta)-\lambda_j(x)), \end{equation} \begin{equation}\label{el5} \begin{array}{c} \displaystyle{ \dot c_i(x)=\dot \lambda_i(x)\sum\limits_{j:j\neq i}^N c_j(x) \Phi (\lambda_i(x)-\lambda_j(x)) +c_i(x)\sum\limits_{j:j\neq i}^N\dot \lambda_j(x) \zeta (\lambda_i(x)-\lambda_j(x))} \\ \\ \displaystyle{ -c_i(x) \sum\limits_{j=1}^N \dot \lambda_j(x+\eta )\zeta (\lambda_i(x)-\lambda_j (x+\eta))+ c_i(x)c (x,t)}. \end{array} \end{equation} Introducing the matrices $L$, $M$ as \begin{equation}\label{L} L_{ij}(x, z)=\dot \lambda_i(x+\eta )\Phi (\lambda_i (x+\eta )-\lambda_j(x), z), \end{equation} \begin{equation}\label{M} \begin{array}{c} M_{ij}(x, z)=(1-\delta_{ij}) \dot \lambda_i(x)\Phi (\lambda_i (x)-\lambda_j(x), z) \\ \\ \displaystyle{ +\, \delta_{ij}\Bigl (\sum\limits_{k:k\neq i}^N\dot \lambda_k (x)\zeta (\lambda_i(x)-\lambda_k(x))- \sum\limits_{k=1}^N\dot \lambda_k (x+\eta ) \zeta (\lambda_i(x)-\lambda_k(x+\eta ))+c(x,t)\Bigr )}, \end{array} \end{equation} one can write the system (\ref{el4}), (\ref{el5}) in the form \begin{equation}\label{el45} c_i(x+\eta )=\sum\limits_{j=1}^N L_{ij}(x)c_j(x), \quad \dot c_i(x)=\sum\limits_{j=1}^N M_{ij}(x)c_j(x). \end{equation} Let us also introduce the matrices \begin{equation}\label{el6} \begin{array}{l} A_{ij}^+(x)=\Phi (\lambda_i(x+\eta)-\lambda_j(x)), \\ \\ A_{ij}^0(x)=(1-\delta_{ij})\Phi (\lambda_i(x)-\lambda_j(x)) \end{array} \end{equation} and diagonal matrices \begin{equation}\label{el7} \begin{array}{l} \Lambda_{ij}(x)=\delta_{ij}\lambda_i(x), \\ \\ \displaystyle{D_{ij}^0(x)=\delta_{ij}\sum\limits_{k:k\neq i}^N\dot \lambda_k(x) \zeta (\lambda_i(x)-\lambda_k(x))}, \\ \\ \displaystyle{D_{ij}^\pm (x)=\delta_{ij}\sum\limits_{k:k\neq i}^N\dot \lambda_k(x\pm \eta ) \zeta (\lambda_i(x)-\lambda_k(x\pm \eta ))}. \end{array} \end{equation} In terms of these matrices, the matrices $L$ and $M$ read: \begin{equation}\label{el8} L(x)=\dot \Lambda (x+\eta)A^+(x), \quad M(x)=\dot \Lambda (x)A^0(x)+D^0(x)- D^+(x)+c(x, t)I, \end{equation} where $I$ is the unity matrix. The compatibility condition of the overdetermined system (\ref{el4}), (\ref{el5}) is the semi-discrete zero curvature (Zakharov-Shabat) equation \begin{equation}\label{el9} R(x):=\dot L(x)+L(x)M(x)-M(x+\eta )L(x)=0. \end{equation} The matrices $L$, $M$ here depend on the spectral parameter $z$. We have: $$ R(x)=\ddot \Lambda (x+\eta )A^+(x)+\dot \Lambda (x+\eta )\Bigl ( S(x)+A^+(x)(D^0(x)-D^+(x)) $$ $$-(D^0(x+\eta )-D^+(x+\eta ))A^+(x) +(c(x,t)-c(x+\eta , t))A^+(x)\Bigr ), $$ where $$ S(x)=\dot A^+(x)+A^+(x)\dot \Lambda (x)A^0(x)-A^0(x+\eta )\dot \Lambda (x+\eta )A^+(x). $$ Using (\ref{id1}), (\ref{id2}), we calculate: $$ \dot A^+_{ij}(x)=(\dot \lambda_i(x+\eta )-\dot \lambda_j(x))\Phi (\lambda_i(x+\eta )-\lambda_j(x)) $$ $$ \times \Bigl ( \zeta (\lambda_i(x+\eta )-\lambda_j(x)+\mu )-\zeta (\lambda_i(x+\eta )-\lambda_j(x))- \zeta (\mu )\Bigr ) , $$ and $$ \Bigl (A^+(x)\dot \Lambda (x)A^0(x)-A^0(x+\eta )\dot \Lambda (x+\eta )A^+(x)\Bigr )_{ij} $$ $$ =\sum\limits_{k:k\neq j}^N\Phi (\lambda_i(x+\eta )-\lambda_k(x))\Phi (\lambda_k(x)-\lambda_j(x)) \dot \lambda_k(x) $$ $$- \sum\limits_{k:k\neq i}^N\Phi (\lambda_i(x+\eta )-\lambda_k(x+\eta))\Phi (\lambda_k(x+\eta)-\lambda_j(x)) \dot \lambda_k(x+\eta) $$ $$ =\Phi (\lambda_i(x+\eta)-\lambda_j(x))\left ( \sum\limits_{k:k\neq j}^N\dot \lambda_k(x)\zeta (\lambda_i(x+\eta)-\lambda_k(x))- \sum\limits_{k:k\neq j}^N\dot \lambda_k(x)\zeta (\lambda_j(x)-\lambda_k(x))\right ) $$ $$ -\Phi (\lambda_i(x+\eta)-\lambda_j(x))\left ( \sum\limits_{k:k\neq i}^N\dot \lambda_k(x+\eta)\zeta (\lambda_i(x+\eta)-\lambda_k(x+\eta))\right. $$ $$-\left. \sum\limits_{k:k\neq i}^N\dot \lambda_k(x+\eta)\zeta (\lambda_j(x)-\lambda_k(x+\eta))\right ) $$ $$ +(\dot \lambda_i(x+\eta )-\dot \lambda_j(x))\Phi (\lambda_i(x+\eta )-\lambda_j(x)) \Bigl (\zeta (\mu )- \zeta (\lambda_i(x+\eta )-\lambda_j(x)+\mu )\Bigr ). $$ In the calculation, the condition (\ref{el2}) was taken into account. Therefore, we have: \begin{equation}\label{el10} S_{ij}(x)=\Phi (\lambda_i(x+\eta )-\lambda_j(x))\Bigl ( D_{ii}^-(x+\eta )+D_{jj}^+(x)-D_{jj}^0(x)-D_{ii}^0(x+\eta )\Bigr ) \end{equation} and, combining everything together, we obtain the matrix identity \begin{equation}\label{el11} R(x)=\Bigl (\ddot \Lambda (x+\eta )\dot \Lambda^{-1}(x+\eta)+D^-(x+\eta)+ D^+(x+\eta )-2D^0(x+\eta ) $$ $$+(c(x,t)-c(x+\eta , t))I\Bigr ) L(x), \end{equation} from which we see that the compatibility condition is equivalent to vanishing of the diagonal matrix in front of $L(x)$: \begin{equation}\label{el12} \ddot \Lambda (x+\eta )\dot \Lambda^{-1}(x+\eta)+D^-(x+\eta)+ D^+(x+\eta )-2D^0(x+\eta )+(c(x,t)-c(x+\eta , t))I=0. \end{equation} This results in the equations of motion \begin{equation}\label{el13} \begin{array}{c} \displaystyle{ \ddot \lambda_i(x)+\sum\limits_{k=1}^N \Bigl ( \dot \lambda_i(x)\dot \lambda_k(x-\eta )\zeta (\lambda_i(x)-\lambda_k(x-\eta ))+ \dot \lambda_i(x)\dot \lambda_k(x+\eta )\zeta (\lambda_i(x)-\lambda_k(x+\eta ))\Bigr )} \\ \\ \displaystyle{ -\, 2 \sum\limits_{k:k\neq i}^N\dot \lambda_i(x)\dot \lambda_k(x ) \zeta (\lambda_i(x)-\lambda_k(x))+(c(x-\eta , t)-c(x, t))\dot \lambda_i(x)=0.} \end{array} \end{equation} Equations (\ref{el13}) resemble the Ruijsenaars-Schneider equations of motion (\ref{a16}) and provide their field generalization. If $\lambda_i(x)=x_i(t)+x$, then equations (\ref{el13}) become the equations of motion for the elliptic Ruijsenaars-Schneider system with coordinates of particles $x_i$ (with $c(x,t)=c(x+\eta , t)$). The condition (\ref{el2b}) allows us to find the explicit form of the function $c(x,t)$. Summing equations (\ref{el13}) over $i=1, \ldots , N$ and using (\ref{el2b}), we get \begin{equation}\label{el14a} c(x, t)=\Bigl (\sum\limits_{i=1}^N \dot \lambda_i(x)\Bigr )^{-1} \sum\limits_{i,k=1}^N\dot \lambda_i(x)\dot \lambda_k(x+\eta ) \zeta (\lambda_i(x)-\lambda_k(x+\eta )) \end{equation} (up to an arbitrary function of $t$ and an $\eta$-periodic function of $x$ which do not affect the equations of motion). Let us also present the lattice version of equations (\ref{el13}) which are obtained from them after the substitution $\lambda_i^k=\lambda_i (k\eta +x_0)$: \begin{equation}\label{el13a} \begin{array}{c} \displaystyle{ \ddot \lambda_i^k+\sum\limits_{j=1}^N \Bigl ( \dot \lambda_i^k\dot \lambda_j^{k-1}\zeta (\lambda_i^k-\lambda_j^{k-1})+ \dot \lambda_i^k\dot \lambda_j^{k+1}\zeta (\lambda_i^k-\lambda_j^{k+1})\Bigr )} \\ \\ \displaystyle{ -\, 2 \sum\limits_{j:j\neq i}^N\dot \lambda_i^k\dot \lambda_j^k \zeta (\lambda_i^k-\lambda_j^k)+(c^{k-1}(t)-c^k(t))\dot \lambda_i^k=0} \end{array} \end{equation} with \begin{equation}\label{el14b} c^k(t)=\frac{1}{\beta}\sum\limits_{i,j=1}^N\dot \lambda_i^k\dot \lambda_j^{k+1} \zeta (\lambda_i^k-\lambda_j^{k+1}). \end{equation} Here $\displaystyle{\beta =\sum\limits_{i=1}^N \dot \lambda_i^k}$ may be regarded as a constant since $\displaystyle{\beta =\sum\limits_{i=1}^N \dot \lambda_i(x)}$ is an $\eta$-periodic function of $x$ (see (\ref{el2b})). \subsection{Equivalence to the equations of sections \ref{section:EM} and \ref{section:53}} It is not difficult to see that with the conditions (\ref{el2a})--(\ref{el2c}) equations (\ref{el13a}), (\ref{el14b}) with $\beta =1$ are equivalent to (\ref{b7091}). Indeed, identifying $\lambda_i^k=q_i^k$ and passing to the center of masses frame, we see that $$ \begin{array}{l} \lambda_i^k-\lambda_j^{k-1}=\bar q_i^k -\bar q_j^{k-1}+\alpha \eta /N, \\ \\ \lambda_i^k-\lambda_j^{k+1}=\bar q_i^k -\bar q_j^{k+1}-\alpha \eta /N, \end{array} $$ where $\alpha$ is defined in (\ref{el2b}), so that the arguments of the $\zeta$- and $E_1$-functions in (\ref{b7091}) and (\ref{el13a}) coincide if $\alpha =-N$. Next, if one chooses the periods to be $2\omega_1=1$, $2\omega_2=\tau$, the $\zeta (z)$- and $E_1(z)$-functions differ by a term linear in $z$ (see (\ref{w1})). The corresponding contribution to $c^k(t)$ (\ref{el14b}) is \begin{equation}\label{el16a} \frac{1}{\beta}\sum\limits_{i=1}^N \dot \lambda_i^k \lambda_i^k \sum\limits_{j=1}^N \dot \lambda_j^{k+1}- \frac{1}{\beta}\sum\limits_{i=1}^N \dot \lambda_i^{k+1}\lambda_i^{k+1}\sum\limits_{j=1}^N \dot \lambda_j^{k}= \sum\limits_{i=1}^N \dot \lambda_i^k \lambda_i^k - \sum\limits_{i=1}^N \dot \lambda_i^{k+1}\lambda_i^{k+1} \end{equation} since $\displaystyle{\sum\limits_{j=1}^N \dot \lambda_j^k =\beta}$. Writing equations (\ref{el13a}) as \begin{equation}\label{el13b} \begin{array}{c} \displaystyle{ \frac{\ddot \lambda_i^k}{\dot \lambda_i^k}+\sum\limits_{j=1}^N \Bigl ( \dot \lambda_j^{k-1}\zeta (\lambda_i^k-\lambda_j^{k-1})+ \dot \lambda_j^{k+1}\zeta (\lambda_i^k-\lambda_j^{k+1})\Bigr )- } \\ \ \\ \displaystyle{ - 2 \sum\limits_{j:j\neq i}^N\dot \lambda_j^k \zeta (\lambda_i^k-\lambda_j^k)+c^{k-1}(t)-c^k(t)=0}, \end{array} \end{equation} we find the corresponding contribution from the sums over $j$ to be $$ \sum\limits_{j=1}^N \dot \lambda_j^{k-1}(\lambda_i^k -\lambda_j^{k-1})+ \sum\limits_{j=1}^N \dot \lambda_j^{k+1}(\lambda_i^k -\lambda_j^{k+1})-2 \sum\limits_{j=1}^N \dot \lambda_j^{k}(\lambda_i^k -\lambda_j^{k})= $$ \begin{equation}\label{el15} =\lambda_i^k \underbrace{\sum\limits_{j=1}^N (\dot \lambda_j^{k-1}+ \dot \lambda_j^{k+1}-2\dot \lambda_j^k)}_{\mbox{$=0$ due to (\ref{el2a})}}- \sum\limits_{j=1}^N (\dot \lambda_j^{k-1}\lambda_j^{k-1}+\dot \lambda_j^{k+1}\lambda_j^{k+1}-2 \dot \lambda_j^{k}\lambda_j^{k}), \end{equation} so this contribution cancels with the one coming from $c^k(t)$ (\ref{el16}). The $L-M$ pair (\ref{b463}), (\ref{b67}) discussed in sections \ref{section:EM}, \ref{section:ZS} is also equivalent to the $L-M$ pair (\ref{L}), (\ref{M}). Indeed, one can straightforwardly check that with the identification of the $L$- and $M$-matrices \begin{equation}\label{el16} \tilde L_{ij}^k(z)=-h_{k-1, k}e^{E_1(z)(\lambda_i^{k-1}-\lambda_j^k)} L_{ji}^{k-1}(-z), \end{equation} \begin{equation}\label{el17} \tilde M_{ij}^k(z)=e^{E_1(z)(\lambda_i^{k}-\lambda_j^k)}M_{ji}^{k}(-z)- \delta_{ij}(E_1(z)\dot \lambda_i^k +\tilde c^k) \end{equation} the semi-discrete Zakharov-Shabat equations (\ref{b47}) and (\ref{el9}) become equivalent. In the right hand sides of (\ref{el16}), (\ref{el17}) the matrices $L^k$, $M^k$ are given by (\ref{L}), (\ref{M}) under the identification $x=k\eta +x_0$: $L^k =L(k\eta +x_0)$, $M^k =M(k\eta +x_0)$. For the modified Lax pair (\ref{b46333}), (\ref{b4736}) the relations (\ref{el16}), (\ref{el17}) slightly simplify: \begin{equation}\label{el18} {L'}_{ij}^k(z)=-e^{E_1(z)(\lambda_i^{k-1}-\lambda_j^k)} L_{ji}^{k-1}(-z), \end{equation} \begin{equation}\label{el19} {M'}_{ij}^k(z)=e^{E_1(z)(\lambda_i^{k}-\lambda_j^k)}M_{ji}^{k}(-z)- \delta_{ij}E_1(z)\dot \lambda_i^k\,. \end{equation} \subsection{Hamiltonian structure} Let us show that the equations (\ref{el13a}) with $c^k(t)$ given by (\ref{el14b}) are Hamiltonian. We fix the canonical Poisson brackets \begin{equation}\label{h1} \{p_i^k, p_j^l\}=\{\lambda_i^k, \lambda_j^l\}=0, \quad \{\lambda_i^k, p_j^l\}=\delta_{ij}\delta_{kl}. \end{equation} The Hamiltonian is \begin{equation}\label{h2} {\cal H}=\frac{\beta}{\eta}\sum\limits_{k=1}^n \log H_k \end{equation} with \begin{equation}\label{h3} H_k=\sum\limits_{i=1}^N e^{\eta p_i^k}\,\frac{\prod\limits_{j=1}^N \sigma (\lambda_i^k-\lambda_j^{k-1})}{\prod\limits_{j:j\neq i}^N \sigma (\lambda_i^k-\lambda_j^k)}\,. \end{equation} The first set of Hamiltonian equations is \begin{equation}\label{h4} \dot \lambda_i^k=\frac{\partial {\cal H}}{\partial p_i^k}=\frac{\beta}{H_k}\, \eta e^{\eta p_i^k}\frac{\prod\limits_{j=1}^N \sigma (\lambda_i^k-\lambda_j^{k-1})}{\prod\limits_{j:j\neq i}^N \sigma (\lambda_i^k-\lambda_j^k)}\,. \end{equation} Taking the time derivative of (logarithm of) this equation, we get \begin{equation}\label{h5} \eta \dot p_i^k=\frac{\ddot \lambda_i^k}{\dot \lambda_i^k}-\sum\limits_{j=1}^N (\dot \lambda_i^k-\dot \lambda_j^{k-1})\zeta (\lambda_i^k-\lambda_j^{k-1}) +\sum\limits_{j:j\neq i}^N(\dot \lambda_i^k-\dot \lambda_j^k)\zeta (\lambda_i^k-\lambda_j^k) +\partial_t \log H_k\,. \end{equation} The second set of Hamiltonian equations is \begin{equation}\label{h6} \dot p_i^k(x)=-\frac{\partial {\cal H}}{\partial \lambda_i^k}. \end{equation} The variation of the Hamiltonian is $$ \eta \delta {\cal H}=\beta \sum\limits_{k=1}^n \frac{\delta H_k}{H_k}= $$ $$ =\sum\limits_{k=1}^n \sum\limits_{i,l=1}^N \dot \lambda_i^k \zeta (\lambda_i^k-\lambda_l^{k-1}) (\delta \lambda_i^k-\delta \lambda_l^{k-1}) -\sum\limits_{k=1}^n \sum\limits_{i,l:i\neq l}^N \dot \lambda_i^k \zeta (\lambda_i^k-\lambda_l^{k}) (\delta \lambda_i^k-\delta \lambda_l^{k}). $$ Changing the summation indices $k\to k+1$ and $i\leftrightarrow l$ when necessary, we have: $$ \eta \delta {\cal H}= \sum\limits_{k=1}^n \sum\limits_{i,l=1}^N \dot \lambda_i^k \zeta (\lambda_i^k-\lambda_l^{k-1})\delta \lambda_i^k + \sum\limits_{k=1}^n \sum\limits_{i,l=1}^N \dot \lambda_l^{k+1} \zeta (\lambda_i^k-\lambda_l^{k+1})\delta \lambda_i^k- $$ $$ -\sum\limits_{k=1}^n \sum\limits_{i,l:i\neq l}^N (\dot \lambda_i^k+\dot \lambda_l^k) \zeta (\lambda_i^k-\lambda_l^{k}) \delta \lambda_i^k. $$ From here we see that \begin{equation}\label{h7} \begin{array}{c} \displaystyle{\eta \dot p_i^k=-\sum\limits_{l=1}^N \dot \lambda_i^k \zeta (\lambda_i^k-\lambda_l^{k-1}) - \sum\limits_{l=1}^N \dot \lambda_l^{k+1} \zeta (\lambda_i^k-\lambda_l^{k+1}) +\sum\limits_{l:l\neq i}^N (\dot \lambda_i^k+\dot \lambda_l^k) \zeta (\lambda_i^k-\lambda_l^{k}).} \end{array} \end{equation} Comparing with (\ref{h5}), we obtain: $$ \frac{\ddot \lambda_i^{k}}{\dot \lambda_i^k}+\sum\limits_{l=1}^N \dot \lambda_l^{k+1} \zeta (\lambda_i^k-\lambda_l^{k+1})+ \sum\limits_{l=1}^N \dot \lambda_l^{k-1} \zeta (\lambda_i^k-\lambda_l^{k-1})-2\sum\limits_{l:l\neq i}^N \dot \lambda_l^k \zeta (\lambda_i^k-\lambda_l^{k})+\partial_t \log H_k=0. $$ The calculation of $\partial_t \log H_k =\dot H_k/H_k$ is straightforward using (\ref{h3}) and (\ref{h7}). The result is \begin{equation}\label{h8} \partial_t \log H_k = c^{k-1}(t)-c^k(t), \end{equation} where $c_k(t)$ is given by (\ref{el14b}). Therefore, the equations of motion (\ref{el13a}) are reproduced. \subsection{The limit to 1+1 Calogero-Moser field theory} In this section we show that the $\eta \to 0$ limit of the field Ruijsenaars-Schneider model yields the field Calogero-Moser model as it appears in \cite{AKV02}. Instead of the lattice version (\ref{h2}) it is convenient to work with the equivalent $x$-dependent Hamiltonian density \begin{equation}\label{c1} {\cal H}(x)=\frac{\beta}{\eta}\, \log \left ( \sum\limits_{i=1}^N e^{\eta p_i(x)}\sigma (\lambda_i(x)-\lambda_i(x-\eta ))\prod\limits_{l:l\neq i}^N \frac{\sigma (\lambda_i(x)-\lambda_l(x-\eta ))}{\sigma (\lambda_i(x)-\lambda_l(x))} \right ) \end{equation} and the canonical Poisson brackets \begin{equation}\label{c2} \{p_i(x), p_j(y)\}=\{\lambda_i(x), \lambda_j(y)\}=0, \quad \{\lambda_i(x), p_j(y)\}=\delta_{ij}\delta (x-y). \end{equation} The Hamiltonian is $\displaystyle{\int {\cal H}(x)dx}$. The Hamiltonian ((\ref{h2}) is a straightforward lattice version of it. The calculation which is completely parallel to the one performed in section 5.5 shows that this Hamiltonian generates the equations of motion (\ref{el13}), (\ref{el14a}) (with the only change that the derivatives with respect to the canonical variables $\lambda_i^k$, $p_i^k$ on the lattice become variational derivatives with respect to the canonical variables $\lambda_i(x)$, $p_i(x)$). We are interested in the $\eta$-expansion of (\ref{c1}) as $\eta \to 0$. We have: $$ {\cal H}(x)=\frac{\beta}{\eta}\, \log \left [\eta \sum\limits_{i=1}^N \Bigl (1+\eta p_i+ \frac{1}{2}\, \eta^2 p_i^2+O(\eta^3)\Bigr )(\lambda_i'- \frac{1}{2}\, \eta \lambda_i'' + \frac{1}{6}\, \eta^2 \lambda_i'''+O(\eta^3)\Bigr )\right. $$ $$ \left. \times \exp \Bigl (\sum\limits_{j:j\neq i}^N\Bigl ( \eta \lambda_j' \zeta (\lambda_i-\lambda_j)-\frac{1}{2}\, \eta^2 \lambda_j'' \zeta (\lambda_i-\lambda_j)-\frac{1}{2}\, \eta^2 \lambda_j'{}^{2} \wp (\lambda_i-\lambda_j)+O(\eta^3)\Bigr )\Bigr )\right ], $$ where prime denotes the $x$-derivative. Equation (\ref{el2b}) implies that \begin{equation}\label{c3} \sum\limits_{i=1}^N \lambda_i'(x)=\alpha . \end{equation} Since $\alpha$ is in general an $\eta$-periodic function of $x$, in the limit $\eta \to 0$ it is natural to assume that $\alpha$ is a constant. In the limit $\eta \to 0$ the vector from the marked point $P_0$ to the marked point $P_{\infty}$ on the Riemann surface $\Gamma$ becomes the tangent vector at $P_{\infty}$. This means that the $x$-flow tends to the $t_1$-flow, and so the limit of $\alpha$ as $\eta \to 0$ is equal to $\beta$. Therefore, the first few terms of the $\eta$-expansion of ${\cal H}(x)$ are \begin{equation}\label{c4} {\cal H}(x)=\mbox{const} \, +(1+O(\eta ))H_1^{\rm CM}(x)-\frac{\eta}{2}\, H_2^{\rm CM}(x) +O(\eta^2), \end{equation} where \begin{equation}\label{c5} H_1^{\rm CM}(x)=\sum\limits_{i=1}^N \tilde p_i\lambda_i' \end{equation} is the first Hamiltonian density of the field Calogero-Moser model (a field analogue of the total momentum) and \begin{equation}\label{c6} \begin{array}{c} \displaystyle{ H_2^{\rm CM}(x)=-\sum\limits_{i=1}^N \tilde p_i^2 \lambda_i'- \frac{1}{4}\sum\limits_{i=1}^N \frac{\lambda_i''{}^2}{\lambda_i'}- \frac{1}{3}\sum\limits_{i=1}^N \lambda_i''' +\frac{1}{\beta}\Bigl (\sum\limits_i \tilde p_i \lambda_i'\Bigr )^2} \\ \\ \displaystyle{-\frac{1}{2}\sum\limits_{i,j:i\neq j}^N(\lambda_i''\lambda_j'- \lambda_j''\lambda_i') \zeta (\lambda_i-\lambda_j)+\frac{1}{2}\sum\limits_{i,j:i\neq j}^N (\lambda_i'\lambda_j'{}^2 +\lambda_j'\lambda_i'{}^2)\wp (\lambda_i-\lambda_j)} \end{array} \end{equation} is the second (standard) Hamiltonian density. The Hamiltonian of the model is \begin{equation}\label{c7} {\cal H}_2^{\rm CM}=\int H_2^{\rm CM}(x)dx. \end{equation} Up to a total derivative and the canonical transformation \begin{equation}\label{c8} p_i\longrightarrow \tilde p_i=p_i-\frac{\lambda_i''}{2\lambda_i'}+\sum\limits_{j:j\neq i}^N \lambda_j'\zeta (\lambda_i-\lambda_j) \end{equation} the Hamiltonian density (\ref{c6}) coincides with the Hamiltonian density for the field Calo\-ge\-ro-Mo\-ser model presented in \cite{AKV02}. The fact that the transformation (\ref{c8}) is canonical can be verified straightforwardly. The only nontrivial calculation that is required is to show that $\{\tilde p_i(x), \tilde p_j(y)\}=0$. This can be done using the identities \begin{equation}\label{c9} f(x)\delta ''(x-y)-f(y)\delta ''(y-x)=-\Bigl (f'(x)\delta '(x-y)- f'(y)\delta ' (y-x)\Bigr ), \end{equation} \begin{equation}\label{c10} f(x)\delta '(x-y)+f(y)\delta '(y-x)=-f'(x)\delta (x-y) \end{equation} for the delta-function and its derivatives. \section{Fully discrete version} The fully discrete (or difference) version of the above construction can be obtained by considering elliptic families of solutions to the Hirota bilinear difference equation \cite{Hirota} for the tau-function $\tau^{l,m}(x)$, where $l,m$ are discrete times: \begin{equation}\label{disc1} \tau^{l,m}(x+\eta )\tau^{l+1,m+1}(x)-\kappa \tau^{l,m+1}(x+\eta )\tau^{l+1,m}(x)+ (\kappa -1)\tau^{l+1,m}(x+\eta )\tau^{l,m+1}(x)=0. \end{equation} Here $\kappa$ is a parameter. This equation is known to provide an integrable time discretization of the 2D Toda equation. One of the auxiliary linear problems for the equation (\ref{disc1}) is \cite{KWZ98} \begin{equation}\label{disc3} \psi^{m+1}(x)=\psi^m(x+\eta)-\kappa \frac{\tau^m(x)\tau^{m+1}(x+\eta )}{\tau^{m+1}(x)\tau^{m}(x+\eta )}\, \psi^m(x), \end{equation} where the index $l$ is supposed to be fixed. The elliptic families of solutions with elliptic parameter $\lambda$ are given by \begin{equation}\label{disc2} \tau^{l,m}(x)=\rho^{l,m}(x)e^{c_1\lambda +c_2\lambda^2}\prod\limits_{j=1}^N \sigma (\lambda - \lambda_j^{l,m}(x)), \end{equation} where $\rho^{l,m}(x)$ is some function which does not depend on $\lambda$ and $c_1, c_2$ are constants. If the constraint \begin{equation}\label{disc4} \sum\limits_{j=1}^N \Bigl (\lambda^{m+1}_j(x+\eta )-\lambda^{m+1}_j(x)\Bigr )= \sum\limits_{j=1}^N \Bigl (\lambda^{m}_j(x+\eta )-\lambda^{m}_j(x)\Bigr ) \end{equation} is satisfied, then the coefficient in front of the second term in the right hand side of (\ref{disc3}) is an elliptic function of $\lambda$ and we can find double-Bloch solutions of the form \begin{equation}\label{el3a} \psi^m (x)=\sum\limits_{i=1}^N c_i^m(x)\Phi (\lambda -\lambda_i^m(x), z ). \end{equation} The substitution of (\ref{el3a}) into (\ref{disc3}) yields: $$ \sum\limits_{i=1}^N c_i^{m+1}(x)\Phi (\lambda -\lambda_i^{m+1}(x))- \sum\limits_{i=1}^N c_i^{m}(x+\eta )\Phi (\lambda -\lambda_i^{m}(x+\eta ))+ $$ $$ +\, \kappa_m(x)\frac{\prod\limits_{j=1}^N\sigma (\lambda -\lambda_j^{m}(x)) \sigma (\lambda -\lambda_j^{m+1}(x+\eta ))}{\prod\limits_{j=1}^N\sigma (\lambda -\lambda_j^{m+1}(x)) \sigma (\lambda -\lambda_j^{m}(x+\eta ))} \sum\limits_{i=1}^N c_i^{m}(x)\Phi (\lambda -\lambda_i^{m}(x))=0, $$ where $$ \kappa_m(x)=\kappa \frac{\rho^m(x)\rho^{m+1}(x+\eta )}{\rho^{m+1}(x)\rho^{m}(x+\eta )}. $$ It is enough to cancel poles in the left hand side at $\lambda = \lambda_i^{m+1}(x)$ and $\lambda = \lambda_i^{m}(x+\eta )$. A direct calculation shows that the conditions of cancellation of the poles read \begin{equation}\label{disc5} c_i^{m}(x+\eta )=f_i^m(x)\sum\limits_{j=1}^N c_j^m(x) \Phi (\lambda_i^{m}(x+\eta )-\lambda_j^m(x)), \end{equation} \begin{equation}\label{disc6} c_i^{m+1}(x)=g_i^m(x)\sum\limits_{j=1}^N c_j^m(x)\Phi (\lambda_i^{m+1}(x)-\lambda_j^m(x)), \end{equation} where \begin{equation}\label{disc7} f_i^m(x)=\kappa_m(x)\frac{\prod\limits_{j=1}^N\sigma (\lambda_i^{m}(x+\eta )-\lambda_j^m(x)) \sigma (\lambda_i^{m}(x+\eta )-\lambda_j^{m+1}(x+\eta ))}{\prod\limits_{j=1}^N \sigma (\lambda_i^{m}(x+\eta )-\lambda_j^{m+1}(x)) \prod\limits_{j:j\neq i}^N\sigma (\lambda_i^{m}(x+\eta )-\lambda_j^{m}(x+\eta ))}, \end{equation} \begin{equation}\label{disc8} g_i^m(x)=-\kappa_m(x)\frac{\prod\limits_{j=1}^N\sigma (\lambda_i^{m+1}(x)-\lambda_j^m(x)) \sigma (\lambda_i^{m+1}(x)-\lambda_j^{m+1}(x+\eta ))}{\prod\limits_{j=1}^N \sigma (\lambda_i^{m+1}(x)-\lambda_j^{m}(x+\eta )) \prod\limits_{j:j\neq i}^N\sigma (\lambda_i^{m+1}(x)-\lambda_j^{m+1}(x ))}. \end{equation} Note that \begin{equation}\label{disc9} \sum\limits_{i=1}^N (f_i^m(x)-g_i^m(x))=0 \end{equation} as the sum of residues of the elliptic function $$ \varphi (\lambda )=\frac{\prod\limits_{j=1}^N\sigma (\lambda -\lambda_j^{m}(x)) \sigma (\lambda -\lambda_j^{m+1}(x+\eta ))}{\prod\limits_{j=1}^N\sigma (\lambda -\lambda_j^{m+1}(x)) \sigma (\lambda -\lambda_j^{m}(x+\eta ))}. $$ Introduce the matrices $L^m(x)$, $M^m(x)$: \begin{equation}\label{disc10} L^m_{ij}(x, z)=f_i^m(x)\Phi \Bigl (\lambda_i^{m}(x+\eta )-\lambda_j^m(x), z\Bigr ), \end{equation} \begin{equation}\label{disc11} M^m_{ij}(x, z)=g_i^m(x)\Phi \Bigl (\lambda_i^{m+1}(x)-\lambda_j^m(x), z\Bigr ). \end{equation} They depend on the spectral parameter $z$. In terms of these matrices, the equations (\ref{disc5}), (\ref{disc6}) read \begin{equation}\label{disc56} c_i^{m}(x+\eta )= \sum\limits_{j=1}^N L_{ij}^m(x)c_j^m(x), \quad c_i^{m+1}(x)= \sum\limits_{j=1}^N M_{ij}^m(x)c_j^m(x). \end{equation} The compatibility condition of the linear problems (\ref{disc5}), (\ref{disc6}) has the form of the fully discrete zero curvature equation \begin{equation}\label{disc12} R^m(x):=L^{m+1}(x)M^m(x)-M^m (x+\eta )L^m(x)=0. \end{equation} We have: \begin{equation}\label{disc13} \begin{array}{c} \displaystyle{R^m_{ij}(x)=f_i^{m+1}(x)\sum\limits_{k=1}^N g_k^m(x)\Phi (\lambda_i^{m+1}(x+\eta)- \lambda_k^{m+1}(x))\Phi (\lambda_k^{m+1}(x)- \lambda_j^{m}(x))} \\ \\ \displaystyle{-\, g_i^{m}(x+\eta)\sum\limits_{k=1}^N f_k^m(x) \Phi (\lambda_i^{m+1}(x+\eta)- \lambda_k^{m}(x+\eta ))\Phi (\lambda_k^{m}(x+\eta )- \lambda_j^{m}(x))}. \end{array} \end{equation} Cancellation of the leading singularity at $z =0$ leads to the condition $$ f_i^{m+1}(x)\sum\limits_{k=1}^N g_k^m(x)-g_i^{m}(x+\eta)\sum\limits_{k=1}^N f_k^m(x)=0 $$ Taking into account (\ref{disc9}) we see that it is equivalent to \begin{equation}\label{disc14} f_i^{m+1}(x)=g_i^{m}(x+\eta). \end{equation} Now we are going to prove that if (\ref{disc14}) is satisfied, then $R_{ij}^m(x)=0$, so the zero curvature equation is fulfilled. The proof is along the lines of ref. \cite{KWZ98}. Using the identity (\ref{id2}), we rewrite (\ref{disc13}) as $$ \begin{array}{c} \displaystyle{R_{ij}^m(x)=\Phi (\lambda_i^{m+1}(x+\eta)-\lambda_j^m(x)) f_i^{m+1}(x)\sum\limits_{k=1}^N g_k^m(x)} \\ \\ \displaystyle{\times \Bigl (\zeta (\lambda_i^{m+1}(x+\eta)-\lambda_k^{m+1}(x)) +\zeta (\lambda_k^{m+1}(x)-\lambda_j^m(x)) + \zeta (\mu)- \zeta (\lambda_i^{m+1}(x+\eta)-\lambda_j^m(x)\Bigr )} \\ \\ \displaystyle{-\, \Phi (\lambda_i^{m+1}(x+\eta)- \lambda_j^m(x))g_i^{m}(x+\eta)\sum\limits_{k=1}^N f_k^m(x)} \\ \\ \displaystyle{\times \Bigl (\zeta (\lambda_i^{m+1}(x+\eta)\! -\! \lambda_k^{m}(x+\eta)) \! +\! \zeta (\lambda_k^{ m}(x+\eta)\! -\! \lambda_j^m(x)) \! + \! \zeta (\mu)\!-\! \zeta (\lambda_i^{m+1}(x+\eta)\! -\! \lambda_j^m(x)\Bigr )} \end{array} $$ Using (\ref{disc9}) and (\ref{disc14}), we can represent it in the form \begin{equation}\label{disc15} R_{ij}^m(x)=g_i^m(x+\eta)\Phi (\lambda_i^{m+1}(x+\eta)-\lambda_j^m(x))G_{ij}^m(x), \end{equation} where $$ G_{ij}^m(x)=\sum\limits_{k=1}^N \Bigl (g_k^m(x)\zeta (\lambda_i^{m+1}(x+\eta )-\lambda_k^{m+1}(x))+ g_k^m(x)\zeta (\lambda_k^{m+1}(x)-\lambda_j^{m}(x)) $$ $$\phantom{aaaaaaaaa} -f_k^m(x)\zeta (\lambda_i^{m+1}(x+\eta )-\lambda_k^{m}(x+\eta))- f_k^m(x)\zeta (\lambda_k^{m}(x+\eta)-\lambda_j^{m}(x))\Bigr ). $$ But $G_{ij}^m(x)$ is the sum of residues of the elliptic function $$ F(\lambda )=\Bigl (\zeta (\lambda_i^{m+1}(x+\eta)-\lambda )+ \zeta (\lambda -\lambda_j^m(x))\Bigr )\prod\limits_{j=1}^N \frac{\sigma (\lambda -\lambda_j^{m}(x)) \sigma (\lambda -\lambda_j^{m+1}(x+\eta ))}{\sigma (\lambda -\lambda_j^{m+1}(x)) \sigma (\lambda -\lambda_j^{m}(x+\eta ))} $$ and, therefore, $G_{ij}^m(x)=0$. Finally, let us write down equations (\ref{disc14}) explicitly: \begin{equation}\label{disc16} \prod\limits_{j=1}^N \frac{\sigma (\lambda_i^m(x)-\lambda_j^{m}(x-\eta)) \sigma (\lambda_i^m(x)-\lambda_j^{m+1}(x)) \sigma (\lambda_i^m(x)-\lambda_j^{m-1}(x+\eta))}{\sigma (\lambda_i^m(x)-\lambda_j^{m}(x+\eta)) \sigma (\lambda_i^m(x)-\lambda_j^{m-1}(x)) \sigma (\lambda_i^m(x)-\lambda_j^{m+1}(x-\eta))}=- \frac{\kappa_{m}(x\! -\! \eta)}{\kappa_{m-1}(x)}. \end{equation} Note that \begin{equation}\label{disc17} \frac{\kappa_{m}(x\! -\! \eta)}{\kappa_{m-1}(x)}= \frac{\rho^{m-1}(x)\rho^m(x+\eta)\rho^{m+1}(x-\eta)}{\rho^{m-1}(x+\eta) \rho^m(x-\eta)\rho^{m+1}(x)}. \end{equation} This is the field analog of the doubly discrete Ruijsenaars-Schneider system \cite{NRK}. Similar equations were obtained in \cite{DNY15}. \section{Conclusion} In this paper we have introduced two integrable models one of which is a natural lattice version of the other. The first one is a finite-dimensional system which we call the Ruijsenaars-Schneider chain. We show that it is gauge equivalent to a special case of the homogenous classical elliptic (XYZ) spin chain when residues of all Lax matrices in the chain are of rank one. The second one is the field analogue of the Ruijsenaars-Schneider model with continuous space and time variables. The definition of this model is the main result of the paper. This is a (1+1)-dimensional model which admits a semi-discrete zero curvature (Zakharov-Shabat) representation for elliptic Lax pair with spectral parameter. This model is obtained through a multi-pole ansatz for general elliptic solutions (elliptic families) of the 2D Toda lattice hierarchy. Then we show that a natural space discretization of this model coincides with the Ruijsenaars-Schneider chain. The fully discrete version of the model (i.e. discrete in both space and time) is also introduced. It is based on studying elliptic families of solutions to the Hirota bilinear difference equation \cite{Hirota} which is known to provide the integrable discretization of the 2D Toda equation. The corresponding equations of motion for poles of the elliptic solutions are very similar to those obtained in \cite{DNY15} from a general ansatz for elliptic $L$-$M$ pair. We also discuss a limit of the model which coincides with the field analogue of the Calogero-Moser system introduced in \cite{Krichever02} and reproduced in \cite{AKV02} as a dynamical system for poles of elliptic families of solutions to the Kadomtsev-Petviashvili equation. Note that by construction the Ruijsenaars-Schneider chain is gauge equivalent to the elliptic spin chain. A similar gauge equivalence exists between the (1+1)-dimensional Calogero-Moser field theory and the continuous Landau-Lifshitz equation \cite{LOZ,AtZ}. The exact relation between the obtained (1+1)-dimensional field analogue of the Ruijsenaars-Schneider model and the (semi-discrete) equations of the Landau-Lifshitz type will be discussed elsewhere. \section{Appendix A: Elliptic functions} \defC.\arabic{equation}{A.\arabic{equation}} \setcounter{equation}{0} \paragraph{Weierstrass $\sigma$-, $\zeta$- and $\wp$-functions.} The $\sigma$-function with quasi-periods $2\omega_1$, $2\omega_2$ such that ${\rm Im} (\omega_2/ \omega_1 )>0$ is defined by the infinite product \begin{equation}\label{w01} \sigma (x)=\sigma (x |\, \omega_1 , \omega_2)= x\prod_{s\neq 0}\Bigl (1-\frac{x}{s}\Bigr )\, e^{\frac{x}{s}+\frac{x^2}{2s^2}}, \quad s=2\omega_1 m_1+2\omega_2 m_2 \quad \mbox{with integer $m_1, m_2$}. \end{equation} It is connected with the Weierstrass $\zeta$- and $\wp$-functions by the formulas $\zeta (x)=\sigma '(x)/\sigma (x)$, $\wp (x)=-\zeta '(x)=-\partial_x^2\log \sigma (x)$. We also need the function $\Phi =\Phi (x, z )$ defined as \begin{equation}\label{w02} \Phi (x, z )=\frac{\sigma (x+z )}{\sigma (z )\sigma (x)}\, e^{-\zeta (z )x}. \end{equation} It has a simple pole at $x=0$ with residue $1$ and the expansion \begin{equation}\label{w03} \Phi (x, z )=\frac{1}{x}-\frac{1}{2}\, \wp (z ) x +\ldots , \qquad x\to 0. \end{equation} The quasiperiodicity properties of the function $\Phi$ are \begin{equation}\label{bloch} \Phi (x+2\omega_{\alpha} , z )=e^{2(\zeta (\omega_{\alpha} )z - \zeta (z )\omega_{\alpha} )} \Phi (x, z ). \end{equation} In the main text we often suppress the second argument of $\Phi$ writing simply $\Phi (x, z )=\Phi (x)$. We will also need the $x$-derivative $\Phi '(x, z )=\partial_x \Phi (x, z )$. The function $\Phi$ satisfies the following identities: \begin{equation}\label{id1} \Phi '(x)=\Phi (x)\Bigl (\zeta (x+z )-\zeta (x)-\zeta (z )\Bigr ), \end{equation} \begin{equation}\label{id2} \Phi (x) \Phi (y)=\Phi (x+y)\Bigl (\zeta (x)+\zeta (y)+\zeta (z )-\zeta (x+y+z )\Bigr ) \end{equation} which are used in the main text. \paragraph{Theta-functions.} The theta-functions with characteristics $a,b$ are defined as follows: \begin{equation}\label{a24} \begin{array}{c} \displaystyle{ \theta{\left[\begin{array}{c} a\\ b \end{array} \right]}(z|\, \tau ) =\sum_{j\in \raise-1pt\hbox{$\mbox{\Bbbb Z}$}} \exp\left(2\pi\imath(j+a)^2\frac\tau2+2\pi\imath(j+a)(z+b)\right)\,. } \end{array} \end{equation} In our paper, we consider the case of rational characteristics $a\,,b\in\frac{1}{N}\,\mbox{\Bbb Z}$. In particular, the odd theta function used in the paper ($\theta_1(z)$ in the Jacobi notation) is % \begin{equation}\label{a25} \begin{array}{c} \displaystyle{ \vartheta(z)=\vartheta(z,\tau)\equiv-\theta{\left[\begin{array}{c} 1/2\\ 1/2 \end{array} \right]}(z|\, \tau )\,. } \end{array} \end{equation} The following quasi-periodicity properties hold. For $a,b,a'\in(1/N)\mbox{\Bbb Z}$ % \begin{equation}\label{c09} \begin{array}{c} \displaystyle{ \theta{\left[\begin{array}{c} a\\ b \end{array} \right]}(z+1|\, \tau ) ={\bf{e}}(a)\, \theta{\left[\begin{array}{c} a\\ b \end{array} \right]}(z|\, \tau )\,, } \end{array} \end{equation} % % \begin{equation}\label{c091} \begin{array}{c} \displaystyle{ \theta{\left[\begin{array}{c} a+1\\ b \end{array} \right]}(z|\, \tau ) = \theta{\left[\begin{array}{c} a\\ b \end{array} \right]}(z|\, \tau )\,, } \end{array} \end{equation} % % \begin{equation}\label{c101} \begin{array}{c} \displaystyle{ \theta{\left[\begin{array}{c} a\\ b \end{array} \right]}(z+a'\tau|\, \tau ) ={\bf{e}}\Big( -{a'}^2\frac{\tau}{2}-a'(z+b) \Big)\, \theta{\left[\begin{array}{c} a+a'\\ b \end{array} \right]}(z|\, \tau )\,, } \end{array} \end{equation} % where we denote \begin{equation}\label{c01} \begin{array}{c} \displaystyle{ {\bf{e}}(x):=\exp(2\pi\imath x) } \end{array} \end{equation} for brevity. \paragraph{The Kronecker function and the function $E_1$.} We also use the following set of $N^2$ functions: % \begin{equation}\label{a08} \begin{array}{c} \displaystyle{ \varphi_a(z,\omega_a+\eta)={\bf{e}} (a_2z/N)\,\phi(z,\omega_a+\eta)\,,\quad \omega_a=\frac{a_1+a_2\tau}{N}\,, } \end{array} \end{equation} where $a=(a_1, a_2)\in\mbox{\Bbb Z}_N\times\mbox{\Bbb Z}_N$ and \begin{equation}\label{a09} \begin{array}{l} \displaystyle{ \phi(z,u)=\frac{\vartheta'(0)\vartheta(z+u)}{\vartheta(z)\vartheta(u)} } \end{array} \end{equation} % is the Kronecker function. It has a simple pole at $z=0$ with residue 1: % \begin{equation}\label{a095} \begin{array}{l} \displaystyle{ \mathop{\hbox{Res}}\limits\limits_{z=0}\phi(z,u)=1\,. } \end{array} \end{equation} % The quasi-periodicity properties are as follows: % \begin{equation}\label{a096} \begin{array}{l} \displaystyle{ \phi(z+1,u)= \phi(z,u)\,,\qquad \phi(z+\tau,u)= {\bf{e}} (-u)\phi(z,u)\,. } \end{array} \end{equation} % The expansion of $\phi(z,u)$ near $z=0$ has the form % \begin{equation}\label{a091} \begin{array}{l} \displaystyle{ \phi(z,u)=\frac{1}{z}+E_1(u)+\frac{E_1^2(u)-\wp(u)}{2}+O(z^2), } \end{array} \end{equation} % where % \begin{equation}\label{a093} \begin{array}{l} \displaystyle{ E_1(u)=\frac{\vartheta'(u)}{\vartheta(u)}. } \end{array} \end{equation} It follows from the definition (\ref{a09}) that % \begin{equation}\label{a092} \begin{array}{l} \displaystyle{ \partial_z\phi(z,u)=(E_1(z+u)-E_1(z))\phi(z,u)\,, } \\ \ \\ \displaystyle{ \partial_u\phi(z,u)=(E_1(z+u)-E_1(u))\phi(z,u)\,. } \end{array} \end{equation} % We also use a set of widely known addition formulae: \begin{equation}\label{b151} \begin{array}{c} \displaystyle{ \phi(z,u_1)\phi(z,u_2)=\phi(z,u_1+u_2)\Big(E_1(z)+E_1(u_1)+E_1(u_2)-E_1(z+u_1+u_2)\Big)\,, } \end{array} \end{equation} \begin{equation}\label{b152} \begin{array}{c} \displaystyle{ \phi(z_1, u_1) \phi(z_2, u_2) = \phi(z_1, u_1 + u_2) \phi(z_2 - z_1, u_2) + \phi(z_2, u_1 + u_2) \phi(z_1 - z_2, u_1) } \end{array} \end{equation} and \begin{equation}\label{b153} \begin{array}{c} \displaystyle{ \phi(z,u_1-v)\phi(w,u_2+v)\phi(z-w,v)-\phi(z,u_2+v)\phi(w,u_1-v)\phi(z-w,u_1-u_2-v)= } \\ \ \\ \displaystyle{ =\phi(z,u_1)\phi(w,u_2)\Big( E_1(v)-E_1(u_1-u_2-v)+E_1(u_1-v)-E_1(u_2+v) \Big)\,. } \end{array} \end{equation} \paragraph{Relation to the Weierstrass functions.} The above definitions of the Weierstrass functions (\ref{w01})--(\ref{w03}) are easily related to those given in terms of theta-functions (\ref{a09})--(\ref{a091}) if we choose the periods to be $2\omega_1=1$, $2\omega_2=\tau$: \begin{equation}\label{w1} \displaystyle{ \zeta(z)=E_1(z)+2\eta_0 z\,,\quad \eta_0=-\frac{1}{6}\frac{\vartheta'''(0)}{\vartheta'(0)}\,, } \end{equation} \begin{equation}\label{w2} \displaystyle{ \sigma(z)=\frac{\vartheta(z)}{\vartheta'(0)}\,e^{\eta_0 z^2}\,, } \end{equation} \begin{equation}\label{w3} \displaystyle{ \Phi(z,u)=\phi(z,u)\,e^{-z E_1(u)}\,, } \end{equation} Under the substitution (\ref{w3}) the identities (\ref{id1})--(\ref{id2}) are transformed into (\ref{a092}) and (\ref{b151}) respectively. The Weierstrass $\wp$-function appearing in (\ref{a091}) is % \begin{equation}\label{a094} \begin{array}{l} \displaystyle{ \wp(u)=-\partial^2_u\log\vartheta(u)+\frac{1}{3}\frac{\vartheta'''(0)}{\vartheta'(0)}\,. } \end{array} \end{equation} % \paragraph{Some relations for theta-functions with rational characteristics.} Using definition (\ref{a24}), one cane rewrite the set of functions (\ref{a08}) in a slightly different form. Set % \begin{equation}\label{d01} \begin{array}{c} \displaystyle{ \theta_{\alpha}(z,\tau)=\theta{\left[\begin{array}{c} \frac{\alpha_2}{N}+\frac{1}{2} \\ \frac{\alpha_1}{N}+\frac{1}{2} \end{array} \right]}(z,\tau)\,,\qquad \alpha\in\mbox{\Bbb Z}_N\times\mbox{\Bbb Z}_N } \end{array} \end{equation} % Then for any $\alpha$ we have % \begin{equation}\label{d02} \begin{array}{c} \displaystyle{ \frac{\theta_{\alpha}(z+\eta,\tau)}{\theta_{\alpha}(\eta,\tau)}={\bf{e}} (\alpha_2z/N) \frac{\vartheta(z+\eta+\omega_\alpha)}{\vartheta(\eta+\omega_\alpha)} } \end{array} \end{equation} % and, therefore, % \begin{equation}\label{d03} \begin{array}{c} \displaystyle{ \varphi_\alpha(z,\eta+\omega_\alpha)=\frac{\vartheta'(0)\theta_{\alpha}(z+\eta,\tau)}{\vartheta(z)\theta_{\alpha}(\eta,\tau)}\,. } \end{array} \end{equation} % % Introduce also % \begin{equation}\label{d04} \begin{array}{c} \displaystyle{ \theta^{(j)}(z)=\theta{\left[\begin{array}{c} \frac{1}{2}-\frac{j}{N} \\ \frac{1}{2} \end{array} \right]}(z,N\tau)\,,\qquad j\in\mbox{\Bbb Z}_N\,. } \end{array} \end{equation} % Then for $-\vartheta(z)$ we have % \begin{equation}\label{d05} \begin{array}{c} \displaystyle{ \theta{\left[\begin{array}{c} \frac{1}{2} \\ \frac{1}{2} \end{array} \right]}(z,\tau)=C(\tau)\prod\limits_{j=0}^{N-1}\theta^{(j)}(z)\,, \qquad \displaystyle{ C(\tau)=\frac{\vartheta'(0,\tau)}{\vartheta'(0,N\tau)}\,\frac{1}{\prod\limits_{j=1}^{N-1}\theta^{(j)}(0)}\,, } } \end{array} \end{equation} % so that the following relation holds: % \begin{equation}\label{d06} \begin{array}{c} \displaystyle{ \frac{\vartheta'(0,\tau)}{\vartheta(z,\tau)}\,\frac{\prod\limits_{j=0}^{N-1}\theta^{(j)}(z)} {\prod\limits_{j=1}^{N-1}\theta^{(j)}(0)}=-\vartheta'(0,N\tau)\,. } \end{array} \end{equation} % Consider the matrix % \begin{equation}\label{a47} \begin{array}{c} \displaystyle{ X_{ij}(x_j)= \vartheta\left[ \begin{array}{c} \frac12-\frac{i}{N} \\ \frac N2 \end{array} \right] \left(Nx_j\left.\right|N\tau\right)\,. } \end{array} \end{equation} Then the following determinant of the Vandermonde type formula holds \cite{Hasegawa}: % \begin{equation}\label{a48} \begin{array}{c} \displaystyle{ \det X=C_N(\tau)\,\vartheta(\sum\limits_{k=1}^N x_k)\prod\limits_{i<j}\vartheta(x_j-x_i)\,,\quad\quad C_N(\tau)=\frac{(-1)^{N}}{(\imath\eta(\tau))^{\frac{(N-1)(N-2)}{2}}}\,, } \end{array} \end{equation} where $\eta(\tau)$ is the Dedekind eta-function: % \begin{equation}\label{a49} \begin{array}{c} \displaystyle{ \eta(\tau)=e^{\frac{\pi\imath\tau}{12}}\prod\limits_{k=1}^\infty (1-e^{2\pi\imath\tau k})=\Big(\frac{\vartheta'(0)}{2\pi}\Big)^{1/3}\,. } \end{array} \end{equation} \paragraph{Finite Fourier transformation on $\mbox{\Bbb Z}_N$.} For any $m\in\mbox{\Bbb Z}$ and $N\in\mbox{\Bbb Z}_+$ % \begin{equation}\label{a771} \begin{array}{c} \displaystyle{ e^{2\pi\imath m\eta}\phi(N\eta,z+m\tau|N\tau)= \frac{1}{N}\sum\limits_{k=0}^{N-1}e^{-2\pi\imath m\frac{k}{N}}\phi(z,\eta+\frac{k}{N}|\tau)\,, } \end{array} \end{equation} % \begin{equation}\label{a772} \begin{array}{c} \displaystyle{ \phi(z,\eta|\tau)= \sum\limits_{k=0}^{N-1}e^{2\pi\imath zk}\phi(Nz,\eta+k\tau|N\tau)\,. } \end{array} \end{equation} \section{Appendix B: Elliptic $R$-matrix and its properties} \defC.\arabic{equation}{B.\arabic{equation}} \setcounter{equation}{0} \paragraph{Matrix basis.} Consider the pair of $N\times N$ matrices \begin{equation}\label{a04} \begin{array}{c} \displaystyle{ (Q_1)_{kl}=\delta_{kl}\exp(\frac{2\pi \imath}{{ N}}k)\,,\ \ \ (Q_2)_{kl}=\delta_{k-l+1=0\,{\hbox{\tiny{mod}}}\, { N}}\,. } \end{array} \end{equation} % They satisfy the properties \begin{equation}\label{a05} \begin{array}{c} \displaystyle{ Q_2^{a_2} Q_1^{a_1}=\exp\left(\frac{2\pi\imath}{{ N}}\,a_1 a_2\right)Q_1^{a_1} Q_2^{a_2}\,,\ a_{1,2}\in\mbox{\Bbb Z};\qquad Q_1^{ N}=Q_2^{ N}=1_{{ N}\times { N}}\,, } \end{array} \end{equation} so that these matrices represent the generators of the Heisenberg group. Let us construct a special basis in ${\rm Mat}(N,\mbox{\Bbb C})$ in terms of (\ref{a04}) in the following way: \begin{equation}\label{a07} \begin{array}{c} \displaystyle{ T_a=T_{a_1 a_2}=\exp\left(\frac{\pi\imath}{{ N}}\,a_1 a_2\right)Q_1^{a_1}Q_2^{a_2}\,,\quad a=(a_1,a_2)\in\mbox{\Bbb Z}_{ N}\times\mbox{\Bbb Z}_{ N}\,. } \end{array} \end{equation} % In particular, $T_0=T_{(0,0)}=1_N$. For the product we have % \begin{equation}\label{a071} \begin{array}{c} \displaystyle{ T_\alpha T_\beta=\kappa_{\alpha,\beta} T_{\alpha+\beta}\,,\quad \kappa_{\alpha,\beta}=\exp\left(\frac{\pi \imath}{N}(\beta_1 \alpha_2-\beta_2\alpha_1)\right)\,,\quad \alpha+\beta=(\alpha_1+\beta_1,\alpha_2+\beta_2) } \end{array} \end{equation} % Also % \begin{equation}\label{a072} \begin{array}{c} \displaystyle{ {\rm tr}(T_\alpha T_\beta)=N\delta_{\alpha+\beta,(0,0)}\,. } \end{array} \end{equation} Let us perform the transformation relating the standard matrix basis $E_{ij}$ in $ {\rm Mat}(N,\CC) $, given by $(E_{ij})_{kl}=\delta_{ik}\delta_{jl}$, with (\ref{a07}). % For the pair of matrices $Q_{1,2}$ (\ref{a04}) and integer numbers $a_1,a_2$ we have % \begin{equation}\label{c02} \begin{array}{c} \displaystyle{ Q_1^{a_1}=\sum\limits_{k=1}^N E_{kk}\,{\bf{e}}(\frac{k a_1}{N})\,,\qquad Q_2^{a_2}=\sum\limits_{k=1}^N E_{k-a_2,k}\,, } \end{array} \end{equation} % where in the last sum we assume the value of index $k-a_2$ modulo $N$. Then for the basis matrix $T_a$ (\ref{a07}) one gets % \begin{equation}\label{c03} \begin{array}{c} \displaystyle{ T_a={\bf{e}}(-\frac{a_1 a_2}{2N}) \sum\limits_{k=1}^N E_{k-a_2,k}\,{\bf{e}}(\frac{k a_1}{N})\,. } \end{array} \end{equation} % For an arbitrary matrix $B=\sum_{i,j=1}^N E_{ij}B_{ij}\in {\rm Mat}(N,\CC) $ its components $B_a=B_{(a_1,a_2)}$ in the basis $T_a$ can be found using (\ref{a072}) and (\ref{c03}): % \begin{equation}\label{c04} \begin{array}{c} \displaystyle{ B_a=\frac{1}{N}\,{\rm tr}(B T_{-a})=\frac{1}{N}\,{\bf{e}}(-\frac{a_1a_2}{2N})\sum\limits_{k=1}^N B_{k,k+a_2}\, {\bf{e}}(-\frac{a_1 k}{N})\,. } \end{array} \end{equation} % Similarly, given a set of components $B_{(\alpha_1,\alpha_2)}$, $\alpha_{1,2}\in\mbox{\Bbb Z}_N$ for a matrix $B\in {\rm Mat}(N,\CC) $ in the basis $\{T_\alpha\}$ we have the following expression for its components $B_{ij}$ in the standard basis: % \begin{equation}\label{a491} \begin{array}{c} B_{ij}=\left\{ \begin{array}{l} \displaystyle{ \sum\limits_{\alpha_1=0}^{N-1}B_{(\alpha_1,j-i)}{\bf{e}}\Big(\frac{\alpha_1(i+j)}{2N}\Big)\,,\quad j\geq i\,, } \\ \displaystyle{ \sum\limits_{\alpha_1=0}^{N-1}B_{(\alpha_1,j-i+N)}{\bf{e}}\Big(\frac{\alpha_1(i+j-N)}{2N}\Big)\,,\quad j<i\,. } \end{array} \right. \end{array} \end{equation} \paragraph{The Baxter-Belavin $R$-matrix.} % We use the Baxter-Belavin elliptic quantum $R$-matrix in the following form: \begin{equation}\label{d07} \begin{array}{c} \displaystyle{ R_{12}^\hbar(z)=\frac{1}{N}\sum\limits_{a\in\,\mbox{\Bbb Z}_{ N}\times\mbox{\Bbb Z}_{ N}} T_a\otimes T_{-a} \varphi_a(z,\omega_a+\hbar) \in{\rm Mat}(N,\mbox{\Bbb C})^{\otimes 2}\,. } \end{array} \end{equation} It is equivalently written in the standard basis as follows \cite{RT}: \begin{equation}\label{d08} \begin{array}{c} \displaystyle{ R_{12}^\hbar(z)=\sum\limits_{i,j,k,l=1}^N R_{ij,kl}\, E_{ij}\otimes E_{kl}\,, } \end{array} \end{equation} \begin{equation}\label{d09} \begin{array}{c} \displaystyle{ R_{ij,kl}=-\vartheta'(0,N\tau) \frac{ \theta^{(i-k)}(z+N\hbar) }{ \theta^{(j-k)}(z)\theta^{(i-j)}(N\hbar) }\, \delta_{i+k=j+l\ {\rm mod}\ N}\,. } \end{array} \end{equation} It is also convenient to write it in terms of the Kronecker function (\ref{a09}). For this purpose we need the identity \begin{equation}\label{d10} \begin{array}{c} \displaystyle{ -\vartheta'(0,N\tau) \frac{ \theta^{(a+b)}(z+u) }{ \theta^{(a)}(z)\theta^{(b)}(u) } ={\bf{e}}\Big( \frac{ab\tau-au-bz}{N} \Big)\phi(z-a\tau,u-b\tau|N\tau) } \\ \ \\ \displaystyle{ = {\bf{e}}(-u\frac{a}{N})\,\varphi_{(0,-\frac{b}{N})}(z-a\tau,u-b\tau|N\tau)\,. } \end{array} \end{equation} Then \begin{equation}\label{d11} \begin{array}{c} \displaystyle{ R_{ij,kl}=\delta_{i+k=j+l\ {\rm mod}\ N}{\bf{e}}\Big( \frac{(k-j) (j-i)\tau+(k-j)N\hbar+(j-i)z}{N} \Big) } \\ \ \\ \displaystyle{ \times\phi(z+(k-j)\tau,N\hbar+(j-i)\tau|N\tau)\,. } \end{array} \end{equation} Equivalence between different representations can be shown by using the relation between the bases $E_{ij}$, $T_a$ and the Fourier formulae (\ref{a771})--(\ref{a772}). % \paragraph{IRF-Vertex correspondence.} The matrix (\ref{a21}) participates in the IRF-Vertex relation % \begin{equation}\label{a26} \begin{array}{c} \displaystyle{ g_2(z_2,q)\, g_1(z_1,q+N\hbar^{(2)})\,R^{\hbox{\tiny{F}}}_{12}(\hbar,z_1-z_2|\,q)=R^\hbar_{12}(\hbar,z_1-z_2)\, g_1(z_1,q)\, g_2(z_2,q+N\hbar^{(1)}) } \end{array} \end{equation} % between the (vertex type) Baxter-Belavin $R$-matrix (\ref{a10}) and the (IRF-type) Felder's dynamical $R$-matrix \cite{Felder2}: \begin{equation}\label{a27} \begin{array}{c} \displaystyle{ R^{\hbox{\tiny{F}}}_{12}(\hbar,z_1-z_2|\,q)= \sum\limits_{i,j:\,i\neq j}^N E_{ii}\otimes E_{jj}\, \phi(N\hbar,-q_{ij})+ } \\ \ \\ \displaystyle{ +\sum\limits_{i,j:\,i\neq j}^N E_{ij}\otimes E_{ji}\, \phi(z_1-z_2,q_{ij})+\phi(N\hbar,z_1-z_2)\sum\limits_{i=1}^N E_{ii}\otimes E_{ii}\,. } \end{array} \end{equation} % The shift of argument $g_1(z_1,q+N\hbar^{(2)})$ in (\ref{a26}) is understood as % \begin{equation}\label{a28} \begin{array}{c} \displaystyle{ g_1(z_1,q+N\hbar^{(2)})=P_2^{N\hbar}\, g_1(z_1,q) P_2^{-N\hbar} \,,\quad P_2^\hbar=\sum\limits_{k=1}^N 1_{N\times N}\otimes E_{kk} \exp(\hbar\frac{\partial}{\partial q_k})\,. } \end{array} \end{equation} \paragraph{Properties of the intertwining matrix.} The matrix $g(z,q)$ is degenerated at $z=0$ due to (\ref{a48}): % % \begin{equation}\label{a50} \begin{array}{c} \displaystyle{ \det\Xi(z,q)=C_N(\tau)\,\vartheta(z)\prod\limits_{i<j}^N\vartheta(q_i-q_j)\,, } \end{array} \end{equation} and the factor $\vartheta(z)$ comes from the fact that the sum of coordinates (in the center of masses frame) equals zero. The matrix $g(z)$ (\ref{a21}) satisfies the following properties (see \cite{VZ} for a review): 1. The matrix $g(z,q)$ is degenerated at $z=0$ (\ref{a50}). 2. The matrix $g(0,q)$ has one-dimensional kernel generated by the vector-column $\rho$: \begin{equation}\label{b30} \begin{array}{c} \displaystyle{ g(0,q)\rho=0\,,\quad \rho=(1,1,...,1)^T\in\mbox{\Bbb C}^N\,. } \end{array} \end{equation} % Properties of this type were described in \cite{RT}. Their proof can be also found in \cite{LOZ}. Let us consider $g^{-1}(z,q)$ near $z=0$: \begin{equation}\label{b31} \begin{array}{c} \displaystyle{ g^{-1}(z,q)=\frac1z\,{\breve g}(0,q)+A(q)+O(z)\,,\quad {\breve g}(0,q)=\mathop{\hbox{Res}}\limits\limits_{z=0}\,g^{-1}(z,q)\,. } \end{array} \end{equation} % Then the matrix ${\breve g}(0)$ is of rank one\footnote{Locally, in some basis $g(z,q)$ is represented in the form ${\rm diag}(z,1,...,1)$. Therefore, ${\breve g}(0,q)$ has $N-1$ zero eigenvalues.} \begin{equation}\label{b32} \begin{array}{c} \displaystyle{ {\breve g}(0)=\rho\otimes\upsilon\,,\quad \upsilon=\frac1N\,\rho^T{\breve g}(0,q)\in\mbox{\Bbb C}^N\,. } \end{array} \end{equation} % Below we derive an explicit expression for the inverse of the matrix $g(z,q)$. \paragraph{IRF-Vertex correspondence for semidynamical $R$-matrix.} In \cite{ACF} the following (semidynamical) $R$-matrix was used for quantization of the Ruijsenaars-Schneider model: \begin{equation}\label{b27} \begin{array}{c} \displaystyle{ R^{\hbox{\tiny{ACF}}}_{12}(\hbar,z_1,z_2|\,q)=\sum\limits_{i,j:\,i\neq j}^N E_{ii}\otimes E_{jj}\, \phi(N\hbar,-q_{ij})+\sum\limits_{i\neq j} E_{ij}\otimes E_{ji}\, \phi(z_1-z_2,-q_{ij})- } \\ \ \\ \displaystyle{ -\sum\limits_{i,j:\,i\neq j}^N E_{ij}\otimes E_{jj}\, \phi(z_1+N\hbar,-q_{ij})+\sum\limits_{i,j:\,i\neq j}^N E_{jj}\otimes E_{ij}\, \phi(z_2,-q_{ij})+ } \\ \ \\ \displaystyle{ +\Big(E_1(N\hbar)+E_1(z_1-z_2)+E_1(z_2)-E_1(z_1+N\hbar)\Big)\sum\limits_{i=1}^N E_{ii}\otimes E_{ii}\,, } \end{array} \end{equation} where $E_1$ is defined in (\ref{a091}). This $R$-matrix satisfies the quantum Yang-Baxter equation with shifted spectral parameters. Following \cite{SeZ} let us write down its relation to the Baxter-Belavin $R$-matrix (\ref{a10}) in the form of type (\ref{a26}): \begin{equation}\label{b28} \begin{array}{c} \displaystyle{ R^\hbar_{12}(z_1-z_2)=g_1(z_1+N\hbar,q)\, g_2(z_2,q)\, R^{\hbox{\tiny{ACF}}}_{12}(\hbar,z_1,z_2|\,q)\, g_2^{-1}(z_2+N\hbar,q)\, g_1^{-1}(z_1,q)\,. } \end{array} \end{equation} Multiplying both sides by $g_2^{-1}(z_2,q)$ and evaluating residue at $z_2=0$, we get the following useful formula \footnote{Note that in the $N=1$ case (\ref{b01}) boils down to the definition (\ref{a09}) of the Kronecker function. A similarity of the quantum $R$-matrix (\ref{a10}) with the Kronecker function underlies the so-called associative Yang-Baxter equation. See \cite{SeZ} and references therein.}: \begin{equation}\label{b01} \begin{array}{c} \displaystyle{ {\breve g}_2(0,q)\,R^\hbar_{12}(z)=g_1(z+N\hbar,q)\, \mathcal O_{12}\, g_2^{-1}(N\hbar,q)\, g_1^{-1}(z,q)\,, } \end{array} \end{equation} where ${\breve g}(0)$ is given by (\ref{b31}) and \begin{equation}\label{b03} \begin{array}{c} \displaystyle{ \mathcal O_{12}=\sum\limits_{i,j=1}^N E_{ii}\otimes E_{ji}\,. } \end{array} \end{equation} For an arbitrary matrix $T=\sum_{i,j}E_{ij}T_{ij}\in {\rm Mat}(N,\CC) $ we have \begin{equation}\label{b07} \begin{array}{c} \displaystyle{ {\rm tr}_2 \left(\mathcal O_{12}T_2\right)=\sum\limits_{i=1}^N E_{ii}\sum\limits_{j=1}^N T_{ij}\,. } \end{array} \end{equation} Besides (\ref{b01}), we use its degeneration (see the classical limit (\ref{b05}) below) $\hbar\rightarrow 0$\footnote{ Relation (\ref{b011}) appears in the $\hbar^0$ order, while in $\hbar^{-1}$ order one has ${\breve g}_2(0)=g_1(z){\mathcal O}_{12}\,g_1^{-1}(z)\,{\breve g}_2(0)$, which is true due to the property (\ref{b32}).}: \begin{equation}\label{b011} \begin{array}{c} \displaystyle{ {\breve g}_2(0,q)\,r_{12}(z)=g_1'(z)\, \mathcal O_{12}\, {\breve g}_2(0)\, g_1^{-1}(z)+ g_1(z)\, \mathcal O_{12}\,A_2\, g_1^{-1}(z)\,, } \end{array} \end{equation} where $A$ comes from the expansion (\ref{b31}) and $g'(z)$ is the derivative of $g(z)$ with respect to $z$. \section{Appendix C: Explicit change of variables} \defC.\arabic{equation}{C.\arabic{equation}} \setcounter{equation}{0} \paragraph{Change of variables.} Here we show how to obtain (\ref{b40}) using the factorization formula (\ref{a31}) for the Ruijsenaars-Schneider Lax matrix (\ref{a12}). Let us compute the $a=(a_1, a_2)$-component of the Lax matrix (\ref{a33}) \begin{equation}\label{c05} \begin{array}{l} \displaystyle{ {\mathcal L}^\eta_{ij}(z)=\frac{\vartheta'(0)}{\vartheta(\eta)}\sum\limits_{m=1}^N \Xi_{im}(z+N\eta,q)e^{p_m/c}\,\Xi_{mj}^{-1}(z,q)\,. } \end{array} \end{equation} % Plugging it into (\ref{c04}), we get \begin{equation}\label{c06} \begin{array}{l} \displaystyle{ {\mathcal L}^\eta_{a}(z)=\frac{1}{N}\,{\bf{e}}(-\frac{a_1a_2}{2N})\frac{\vartheta'(0)}{\vartheta(\eta)}\sum\limits_{k,m=1}^N \Xi_{km}(z+N\eta,q)e^{p_m/c}\,\Xi_{m,k+a_2}^{-1}(z,q)\,{\bf{e}}(-\frac{a_1 k}{N})\,. } \end{array} \end{equation} % From (\ref{b040}) we know that ${\mathcal L}^\eta_{a}(z)=S_a\varphi_a(z,\omega_a+\eta)$. Therefore, we could find $S_a$ from ${\mathcal L}^\eta_{a}(z)$, which we are going to compute. Let us represent (\ref{c06}) in the form \begin{equation}\label{c07} \begin{array}{l} \displaystyle{ {\mathcal L}^\eta_{a}(z)=\sum\limits_{m=1}^N e^{p_m/c}\,{\mathcal L}^\eta_{a;m}(z)\,, } \end{array} \end{equation} % % \begin{equation}\label{c08} \begin{array}{l} \displaystyle{ {\mathcal L}^\eta_{a;m}(z)=\frac{1}{N}\,{\bf{e}}(-\frac{a_1a_2}{2N})\frac{\vartheta'(0)}{\vartheta(\eta)}\sum\limits_{k=1}^N \Xi_{km}(z+N\eta,q)\Xi_{m,k+a_2}^{-1}(z,q)\,{\bf{e}}(-\frac{a_1 k}{N})\,. } \end{array} \end{equation} % Our aim now is to evaluate the latter expression. For this purpose we need the properties (\ref{c09})--(\ref{c101}). Using explicit form of the matrix $\Xi$ (\ref{a22}), it easy to see from (\ref{c09}) that % \begin{equation}\label{c11} \begin{array}{l} \displaystyle{ \Xi_{km}(z+N\eta+a_1,q)=(-1)^{a_1}{\bf{e}}(-\frac{a_1 k}{N})\,\Xi_{km}(z+N\eta,q)\,. } \end{array} \end{equation} % Therefore, % \begin{equation}\label{c12} \begin{array}{l} \displaystyle{ {\mathcal L}^\eta_{a;m}(z)=\frac{1}{N}\,{\bf{e}}(-\frac{a_1a_2}{2N})\,(-1)^{a_1}\frac{\vartheta'(0)}{\vartheta(\eta)}\sum\limits_{k=1}^N \Xi_{km}(z+N\eta+a_1,q)\Xi_{m,k+a_2}^{-1}(z,q)\,. } \end{array} \end{equation} % Next, add and subtract $a_2\tau$ to the argument of $\Xi_{km}(z+N\eta+a_1,q)$. Then using (\ref{c101}) with $a'=-a_2/N$ we obtain \begin{equation}\label{c13} \begin{array}{c} \displaystyle{ \Xi_{km}(z+N\eta+a_1,q)= \vartheta\left[ \begin{array}{c} \frac12-\frac{k}{N} \\ \frac N2 \end{array} \right] \left(z-N{\bar q}_m+N\eta+a_1+a_2\tau -\frac{a_2}{N}\,N\tau \left.\right|N\tau\right) } \\ \ \\ \displaystyle{ ={\bf{e}}\Big( -\frac{a_2^2}{2N}\tau+\frac{a_2}{N}(z-N{\bar q}_m+N\eta+a_1+a_2\tau+\frac{N}{2}) \Big)\, \Xi_{k+a_2,m}(z+N(\eta+\omega_a),q)\,, } \end{array} \end{equation} where the notation $\omega_a$ (\ref{a08}) is used. Plugging it into (\ref{c12}), we arrive at % \begin{equation}\label{c14} \begin{array}{c} \displaystyle{ {\mathcal L}^\eta_{a;m}(z)=\frac{1}{N}\,{\bf{e}}(\frac{a_1a_2}{2N}+\frac{a_2^2}{2N}\tau)\,(-1)^{a_1+a_2} {\bf{e}}(a_2(\eta-{\bar q}_m)){\bf{e}}(z\frac{a_2}{N}) } \\ \ \\ \displaystyle{ \times\frac{\vartheta'(0)}{\vartheta(\eta)}\sum\limits_{k=1}^N \Xi_{m,k+a_2}^{-1}(z,q)\Xi_{k+a_2,m}(z+N(\eta+\omega_a),q)\,. } \end{array} \end{equation} % Finally, we use (\ref{a31}) for the Ruijsenaars-Schneider Lax matrix (\ref{a12})--(\ref{a13}). Namely, we need the $i=j=m$ diagonal element of (\ref{a12}) with $\eta$ being replaced by $\eta+\omega_a$ (except for the common factor $\vartheta'(0)/\vartheta(\eta)$). This yields % \begin{equation}\label{c15} \begin{array}{c} \displaystyle{ {\mathcal L}^\eta_{a;m}(z)=\frac{1}{N}\,{\bf{e}}(\frac{a_2}{2}\,\omega_a)\,(-1)^{a_1+a_2} } \\ \ \\ \displaystyle{ \times{\bf{e}}(a_2(\eta-{\bar q}_m))\varphi_a(z,\omega_a+\eta)\frac{\vartheta(\eta+\omega_\alpha)}{\vartheta(\eta)} \prod\limits_{l:\,l\neq m}^N\frac{\vartheta(q_m-q_l-\eta-\omega_a)}{\vartheta(q_m-q_l)}\,. } \end{array} \end{equation} Returning back to (\ref{c07}) and canceling $\varphi_a(z,\omega_a+\eta)$, we find the final answer % \begin{equation}\label{c16} \begin{array}{c} \displaystyle{ S_a=\frac{(-1)^{a_1+a_2}}{N}\,{\bf{e}}(\frac{a_2}{2}\,\omega_a)\, \sum\limits_{m=1}^N e^{p_m/c}{\bf{e}}(a_2(\eta-{\bar q}_m)) \frac{\vartheta(\eta+\omega_\alpha)}{\vartheta(\eta)}\prod\limits_{l:\,l\neq m}^N\frac{\vartheta(q_m-q_l-\eta-\omega_a)}{\vartheta(q_m-q_l)}\,. } \end{array} \end{equation} \paragraph{Inverse of the matrix $\Xi(z,q)$.} Consider the set of matrices with components (\ref{c15}) in the basis $T_a$: \begin{equation}\label{c17} \begin{array}{c} \displaystyle{ {\mathcal L}_{;m}^\eta(z)=\sum\limits_{a}{\mathcal L}_{a;m}^\eta(z)T_a\in {\rm Mat}(N,\CC) \,,\quad m=1,...,N\,. } \end{array} \end{equation} It follows from its initial definition (\ref{c05}), (\ref{c07}) that the matrix elements in the standard basis are of the form: \begin{equation}\label{c18} \begin{array}{l} \displaystyle{ {\mathcal L}^\eta_{ij;m}(z)=\frac{\vartheta'(0)}{\vartheta(\eta)} \Xi_{im}(z+N\eta,q)\Xi_{mj}^{-1}(z,q)\,. } \end{array} \end{equation} % Therefore, \begin{equation}\label{c19} \begin{array}{c} \displaystyle{ \Xi_{mj}^{-1}(z,q)=\frac{\vartheta(\eta)}{\vartheta'(0)}\frac{{\mathcal L}^\eta_{ij;m}(z)}{\Xi_{im}(z+N\eta,q)}\,. } \end{array} \end{equation} % To get an explicit expression, we need to compute the matrices ${\mathcal L}_{;m}^\eta(z)$, $m=1,...,N$ in the standard basis. For this purpose substitute (\ref{c15}) into (\ref{a491}) with $B_a={\mathcal L}^\eta_{a;m}(z)$. Both cases in the r.h.s. of (\ref{a491}) provide the same answer (the latter is verified directly using the transformation properties (\ref{c09})--(\ref{c101}) for the theta-function (\ref{a25})): \begin{equation}\label{c20} \begin{array}{c} \displaystyle{ \frac{\vartheta(\eta)}{\vartheta'(0)}{\mathcal L}^\eta_{ij;m}(z)=\frac{1}{N}\sum\limits_{a_1=0}^{N-1} {\bf{e}}\Big(\frac{a_1}{2N}(i+j)\Big){\bf{e}}\Big(\frac{j-i}{2}\,\omega_{(a_1,j-i)}\Big)\,(-1)^{a_1+j-i} } \\ \ \\ \displaystyle{ \times{\bf{e}}\Big((j-i)(\eta-{\bar q}_m)\Big){\bf{e}}\Big(z\frac{j-i}{N} \Big)\frac{\vartheta(z+\eta+\omega_{(a_1,j-i)})}{\vartheta(z)} \prod\limits_{l:\,l\neq m}^N\frac{\vartheta(q_m-q_l-\eta-\omega_{(a_1,j-i)})}{\vartheta(q_m-q_l)}\,, } \end{array} \end{equation} % where $ \omega_{(a_1,j-i)}=\frac{a_1+(j-i)\tau}{N} $. Dividing this expression by $\Xi_{im}(z+N\eta,q)$ we obtain $\Xi_{mj}^{-1}(z,q)$ (\ref{c19}). Notice that by construction the r.h.s. of (\ref{c19}) is independent of $\eta$, so we put $\eta=0$ in the final answer since all entering functions are regular in $\eta$. Also, the r.h.s. of (\ref{c19}) is independent of index $i$. We fix it as $i=N$. Finally, using $\Xi_{Nm}(z+N\eta,q)=-\vartheta(z+\frac{N-1}{2}+N\eta-N{\bar q}_m|N\tau)$ we obtain \begin{equation}\label{c21} \begin{array}{c} \displaystyle{ \Xi_{ij}^{-1}(z,q)=\frac{(-1)^{j+1}}{N\vartheta(z+\frac{N-1}{2}-N{\bar q}_i|N\tau)} } \\ \ \\ \displaystyle{\times \sum\limits_{a_1=0}^{N-1} {\bf{e}}\Big(\frac{a_1j}{2N}+j\,\frac{a_1+j\tau}{2N}\Big) {\bf{e}}(-j{\bar q}_i){\bf{e}}\Big(z\frac{j}{N}\Big)\frac{\vartheta(z+\frac{a_1+j\tau}{N})}{\vartheta(z)} \prod\limits_{l:\,l\neq i}^N\frac{\vartheta(q_i-q_l-\frac{a_1+j\tau}{N})}{\vartheta(q_i-q_l)}\,. } \end{array} \end{equation} % Equivalently, for the matrix $g(z,q)$ (\ref{a21}) we have \begin{equation}\label{c22} \begin{array}{c} \displaystyle{ g_{ij}^{-1}(z,q)=\frac{(-1)^{j+1}}{N\vartheta(z+\frac{N-1}{2}-N{\bar q}_i|N\tau)} } \\ \ \\ \displaystyle{\times \sum\limits_{a_1=0}^{N-1} {\bf{e}}\Big(\frac{a_1j}{2N}+j\,\frac{a_1+j\tau}{2N}\Big) {\bf{e}}(-j{\bar q}_i){\bf{e}}\Big(z\frac{j}{N}\Big)\frac{\vartheta(z+\frac{a_1+j\tau}{N})}{\vartheta(z)} \prod\limits_{l:\,l\neq i}^N\vartheta \Big (q_i-q_l-\frac{a_1+j\tau}{N}\Big )\,. } \end{array} \end{equation} % \paragraph{Derivation of $S=\xi\otimes \psi$.} The matrix ${\breve g}(0,q)$ (\ref{b31}) is easily calculated from (\ref{c22}): \begin{equation}\label{c23} \begin{array}{c} \displaystyle{ {\breve g}_{ij}(0,q)=\frac{(-1)^{j}}{N\vartheta(\frac{N-1}{2}-N{\bar q}_i|N\tau)} } \\ \ \\ \displaystyle{\times {\bf{e}}\Big(\frac{j^2\tau}{2N}\Big){\bf{e}}(-j{\bar q}_i)\frac{1}{\vartheta'(0)}\sum\limits_{a_1=0}^{N-1} {\bf{e}}\Big(\frac{a_1j}{N}\Big) \prod\limits_{l=1}^N\vartheta \Big (q_i-q_l-\frac{a_1+j\tau}{N}\Big )\,. } \end{array} \end{equation} % Note that due to (\ref{b32}) the r.h.s. of (\ref{c23}) is independent of the index $i$, so that the functions \begin{equation}\label{c24} \begin{array}{c} \displaystyle{ f_j(x,q)=\frac{{\bf{e}}(-jx)}{\vartheta(\frac{N-1}{2}-Nx|N\tau)} \sum\limits_{a_1=0}^{N-1} {\bf{e}}\Big(\frac{a_1j}{N}\Big) \prod\limits_{l=1}^N\vartheta \Big (x-{\bar q}_l-\frac{a_1+j\tau}{N}\Big ) } \end{array} \end{equation} % obey the property \begin{equation}\label{c25} \begin{array}{c} \displaystyle{ f_j(q)=f_j(q_i,q)=f_j(q_k,q)\quad \mbox{for all $i,j,k$}\,. } \end{array} \end{equation} % In this notation % \begin{equation}\label{c26} \begin{array}{c} \displaystyle{ {\breve g}_{ij}(0,q)=\frac{(-1)^{j}}{N\vartheta'(0)}\,{\bf{e}}\Big(\frac{j^2\tau}{2N}\Big)f_j(q)\,. } \end{array} \end{equation} % Finally, using (\ref{b37})-(\ref{b38}), we find the change of variables (\ref{c16}) in the form $S=\xi\otimes\psi$ with % \begin{equation}\label{c27} \begin{array}{c} \displaystyle{ \xi_i=\frac{\vartheta'(0)}{\vartheta(\eta)}\sum\limits_{k=1}^N g_{ik}(N\eta)\,e^{p_k/c}\,,\qquad \psi_j=\frac{(-1)^{j}}{N\vartheta'(0)}\,{\bf{e}}\Big(\frac{j^2\tau}{2N}\Big)f_j(q)\,. } \end{array} \end{equation} % The normalization can be chosen in a different way since (\ref{c27}) is defined up to $\xi_i\rightarrow \lambda\xi_i$, $\psi_j\rightarrow \psi_j/\lambda$. Let us also mention that in the rational case $\psi_j$ are elementary symmetric functions of coordinates (see \cite{LOZ8}), so that (\ref{c27}) provides its elliptic analogue. \section*{Acknowledgments} \addcontentsline{toc}{section}{\hspace{6mm}Acknowledgments} The work of A. Zabrodin has been funded within the framework of the HSE University Basic Research Program.
{ "timestamp": "2022-05-11T02:21:44", "yymm": "2107", "arxiv_id": "2107.01697", "language": "en", "url": "https://arxiv.org/abs/2107.01697" }
\section{Introduction} Knowledge graphs are directed multi-relational graphs about facts, usually expressed in the form of $(h, r, t)$ triplets, where $h$ and $t$ represent head entity and tail entity respectively, and $r$ is the relation between head entity and tail entity, e.g. (\textit{Geoffrey Hinton, citizen of, Canada}). Large encyclopedic knowledge graphs, like Wikidata \citep{wikidata} and Freebase \citep{freebase}, can provide rich structured information about entities and benefit a wide range of applications, such as recommender systems, question answering and information retrieval. However, large knowledge graphs usually face the challenge of incompleteness. For example, 71\% of people in Freebase have no birth place and 75\% have no nationality \citep{dong2014knowledge}. Therefore, predicting these missing facts in a knowledge graph is a crucial task, also named as knowledge graph completion task. We can see Figure \ref{fig:wikikg} for a clear understanding. In order to address the issue of knowledge graph completion on large knowledge graphs, the 2021 KDD cup releases the WikiKG90M-LSC Task, which focuses on imputing missing facts in a knowledge graph extracted from the entire Wikidata knowledge base. Our method for this task consists of two stages: On the first stage, we propose an ensemble method for different knowledge embedding methods to build a strong model, in which, knowledge embedding methods, like TransE \citep{transe} and RotatE \citep{rotate}, focus on embedding entities and relations into vectors and then we can use these embeddings to predict missing relations. On the second stage, we adopt several statistical features of the WikiKG90M dataset to help improve the final ensemble model performance. We conducted several experiments on WikiKG90M dataset to demonstrate the superiority of our method, and our team is currently among the awardees of the WikiKG90M-LSC track of the OGB-LSC, where we achieve 0.9727 MRR result in the final test set. Some features from test candidates are used in final inference, which are not practical when considering ranking against all the entities. And its limitation will be discussed in Section \ref{limit}. \begin{figure} \centering \includegraphics[width=0.5\linewidth]{figs/wikikg90m.png} \caption{Impute missing triplets in knowledge graphs.\protect\footnotemark[1]} \label{fig:wikikg} \end{figure} \section{Methodology} \footnotetext[1]{https://ogb.stanford.edu/assets/img/ogb\-lsc\-task\-overview.png} \subsection{Representation Learning} \subsubsection{Triplet Embedding} The majority of knowledge graph representation algorithms relies on the triplets and they remain good interpretability in graph reasoning. In this competition, we adopt advance algorithms in different domains to encode the entities and relations, including NOTE, QuatE, RotatE and TransE. Considering the properties of each model, we ensemble their score results for the final prediction. \paragraph{NOTE} \cite{ote} proposes OTE to model the symmetry/antisymmetry, inversion, and composition patterns. It takes the relations as an orthogonal transform in a high dimensional space. Relation matrix is orthogonalized so its inverse matrix can be obtained by simple transposing. The full model can be seen as an ensemble of $K$ OTE models. The score functions are defined as Eq.~\ref{eq:ote_head} and ~\ref{eq:ote_tail}. \begin{equation} \label{eq:ote_head} d((h,r),t)=\sum_{i=1}^K(\| s_r^h(i)\phi(M_r(i))e_h(i)-e_t(i)\|), \end{equation} \begin{equation} \label{eq:ote_tail} d(h,(r,t))=\sum_{i=1}^K(\| s_r^t(i)\phi(M_r(i))^Te_t(i)-e_h(i)\|), \end{equation} where $s_r^h(i)=diag({exp}(s_r(i)))$ and $s_r^t(i)=diag({exp}(-s_r(i)))$ are the weights of relation matrix, $\phi$ is the Gram-Schmidt process. However, though \cite{ote} has scaled the $L_2$ norm of relation embeddings through scalar tensors $s_r(i) \in \mathcal{R}_{d_s}$, the convergence is still unstable in our experiments. The $exp$ operation in $s_r^h(i)$ and $s_r^t(i)$ enlarges values and could lead to this issue. Therefore, we further use $L_2$ norm to regularize the scalar tensors. In this case, the weights of relation matrix are modified into Eq.~\ref{eq:scalar_head} and ~\ref{eq:scalar_tail}. We denote such modified version as NOTE (short for Norm-OTE). \begin{equation} \label{eq:scalar_head} s_r^h(i)=\frac{diag({exp}(s_r(i)))}{\|diag({exp}(s_r(i)))\|}, \end{equation} \begin{equation} \label{eq:scalar_tail} s_r^t(i)=\frac{diag({exp}(-s_r(i)))}{\|diag({exp}(-s_r(i)))\|}. \end{equation} \paragraph{QuatE} \cite{quate} extend ComplEx \citep{complex} into quaternion space for better geometrical interpretations and more latent inter-dependencies. It proves that the Hamilton product in quaternion space can model both symmetry/antisymmetry and inversion patterns except the composition pattern. \paragraph{RotatE} RotatE can be view as an orthogonal transform in complex domain. Each relation is taken as a rotation from the head entity to the tail entity. \cite{rotate} has proved that the Hadamard product is able to model various relation patterns. In theory, it has equivalent model capability as OTE, so we also take it as a basic method. \paragraph{TransE} \cite{transe} interprets relationships as translations operating on entity embeddings in a real field. Although such assumption is not able to model complex relationships such as 1-N, N-1 and N-N, experiments on different datasets have proved its robustness and it can model composition pattern. Thus, we use results of this model to ensemble in our experiments. \subsubsection{Graph Context} Besides the specific triplets, the structure of sub-graphs comprised of triplets also reflect some semantic information. For example, \textit{Geoffrey Hinton} in Figure ~\ref{fig:wikikg} is connected with \textit{King's College Cambridge} through relation \textit{Graduated from}. We can infer that \textit{Geoffrey Hinton} should be a person and is probable to be born in UK, as \textit{King's College Cambridge} is located in UK. Entities and relations in this sub-graph influence each other. To supplement information of the graph structure, we use representative techniques such as Post-Smoothing \citep{appnp} and DeepWalk\citep{deepwalk}. \paragraph{Relation-based Post Smoothing} We propose a two-stage method to capture the relationships among the entities in sub-graphs. Recent end-to-end models always use graph neural networks as encoder and triplet-based methods as decoder. But in our implementation, we take the opposite approach. In the first stage, we train TransE to encode the entities and relations according to the triplet context. In the second stage, we take the learned representations as entity embeddings. Then we propagate them through the entity adjacent matrix. A hyperparameter $\alpha$ decides the weight of the entity itself while $1-\alpha$ denote weights of its neighborhood. The final updated embeddings are used for prediction. For example, for a given entity u, the final embedding $\mathbf{u}'$ is represented in Eq.~\ref{eq:post-smoothing}. \begin{equation} \label{eq:post-smoothing} \mathbf{u}' = \alpha \mathbf{u} + (1-\alpha) \sum_{v \in \mathcal{N}(u)}{f(\mathbf{v}, \mathbf{r})}, \end{equation} where $\mathbf{u}$ and $\mathbf{v}$ are the embedding learned in the first stage. $f$ is depending on the knowledge embedding algorithm. \paragraph{DeepWalk} \cite{deepwalk} propose DeepWalk to learn latent representations of nodes in homogeneous networks. In our solution, the relations in knowledge graph are ignored. We focus on the entity structure and use skip-gram technique to learn the semantic and structural correlations between entities along generated paths. \subsection{Manual Feature Engineering} In addition to embedding models, manual feature engineering is also a key part of our work. Since our goal is to predict tail through head and relation, our manual features include two parts, head to tail feature and relation to tail feature. Feature selection needs to be performed after obtaining the features. \subsubsection{Head to Tail Features} Head to tail feature is to predict the probability of tail by the current head. We start to walk from the head, and calculate the probability of walking through different paths to reach tail. For a head, relation and tail triple, it has 6 different walk directions $direct$, including head to tail(HT), head to relation(HR), relation to head(RH), relation to tail(RT), tail to head(TH), tail to relation(TR). The probability of $e_1$ to $e_2$ in direction $direct$ is as fallow. \begin{equation} \label{eq:probability} P_{direct}(e_1, e_2)=\frac{S_{direct}(e_1, e_2)}{\sum_{e \sim N_{direct}(e_1)}S_{direct}(e_1, e)} \end{equation} $S_{direct}(e_1, e_2)$ is the frequency of $e_1$ to $e_2$ in the direction of $direct$. When developing our model, we calculated all features from the training triplets and validation candidates. It is worth nothing that we only calculate the $F_{HT}$ and $F_{RT}$ from test data at the final inference time, without modifying the weight of our developed models. And we apply the same rule strategies developed from validation for final test prediction. That is to say, test data is only touched at the final inference time. We define 7 manual head to tail feature as follow. \begin{figure} \centering \includegraphics[width=0.7\linewidth]{./figs/HTfeature.pdf} \caption{The walk paths of head to tail features. The yellow arrow is a direction of head entity to tail entity. HT is walk in the direction of head to tail, while TH is in direction of tail to head.} \label{fig:htfeature} \end{figure} \begin{equation} \label{eq:featurehtth} F_{HT}(h, t)= P_{HT}(h, t) \end{equation} \begin{equation} \label{eq:featurehtth} F_{TH}(h, t)= P_{TH}(h, t) \end{equation} \begin{equation} \label{eq:featurethht} F_{TH-HT}(h, t)=\sum_{e \sim N_{TH}(h) \cap N_{TH}(t)}P_{TH}(h, e) * P_{HT}(e, t) \end{equation} \begin{equation} \label{eq:featurehtht} F_{HT-HT}(h, t)=\sum_{e \sim N_{HT}(h) \cap N_{TH}(t)}P_{HT}(h, e) * P_{HT}(e, t) \end{equation} \begin{equation} \label{eq:featurehtth} F_{HT-TH}(h, t)=\sum_{e \sim N_{HT}(h) \cap N_{HT}(t)}P_{HT}(h, e) * P_{TH}(e, t) \end{equation} \begin{equation} \label{eq:featurethth} F_{TH-TH}(h, t)=\sum_{e \sim N_{TH}(h) \cap N_{HT}(t)}P_{TH}(h, e) * P_{TH}(e, t) \end{equation} \begin{equation} \label{eq:featurehtth} F_{HT-HT-TH}(h, t)=\sum_{e_1 \sim N_{HT}(h)} \sum_{e_2 \sim N_{HT}(t)}P_{HT}(h, e_1) *P_{HT}(e_1, e_2) * P_{TH}(e_2, t) \end{equation} \subsubsection{Relation to Tail Features} We also define 5 manual relation to tail feature as fallow. \begin{equation} \label{eq:featurehtth} F_{RT}(r, t)=P_{RT}(r, t) \end{equation} \begin{equation} \label{eq:featurehtth} F_{RH}(r, t)=P_{RH}(r, t) \end{equation} \begin{equation} \label{eq:featurehtth} F_{RT-TR-RT}(r, t)=\sum_{e_1 \sim N_{RT}(r)} \sum_{e_2 \sim N_{TR}(t)}P_{RT}(r, e_1) *P_{TR}(e_1, e_2) * P_{RT}(e_2, t) \end{equation} \begin{equation} \label{eq:featurehtth} F_{RH-HR-RT}(r, t)=\sum_{e_1 \sim N_{RH}(r)} \sum_{e_2 \sim N_{HR}(t)}P_{RH}(r, e_1) *P_{HR}(e_1, e_2) * P_{RT}(e_2, t) \end{equation} \begin{equation} \label{eq:featurehtth} F_{RT-HR-RT}(r, t)=\sum_{e_1 \sim N_{RT}(r)} \sum_{e_2 \sim N_{HR}(t)}P_{RT}(r, e_1) *P_{HR}(e_1, e_2) * P_{RT}(e_2, t) \end{equation} \subsubsection{Feature Selection} In order to combine the above-mentioned features and models, we use grid search for feature selection. The grid search will output the weights of the embedding models and manual features. \subsubsection{Limitation Discussion.}\label{limit} In practical scene, the tail entities follow the long tail distribution. Finding candidates from all entities involves a very complicated process with strategies like rules and approximate nearest neighbor searching. However, different from our actual application, in this competition, candidates are provided from uniform distribution together with long tail ground truth according to the task description paper from \cite{hu2021ogblsc}. Therefore, it comes a simple strategy to narrow the candidate choices by dropping tail entities with low frequencies counting from candidates. But the long tail relations still depend on the Knowledge Embedding strategies, which can be found in our experimental results. To narrow the gap between competition and practical application in the real scene, we suggest that the candidates should not be provided. \section{Experiments} \label{sec:others} \subsection{Experimental Details} Original WikiKG90M dataset contains three time-stamps: September, October, and November of 2020, for training, validation, and testing, respectively, and only entities and relation types that appear in the earliest September knowledge graph are retained. The default parameter settings all models are batch\_size=1000, learning rate of the mlp (mlp\_lr)=2e-5, learning rate decay step (lrd\_step)=1e-5, learning rate of the embedding (lr)=0.1, gamma=12 and hidden\_size=200. Specifically, ote\_size=20 in NOTE model. For our final submission, we mix the training data and validation data. \if{} \subsection{Single Model} Table \ref{tab:table1} shows the official validation dataset result of single model we use w/o manual features. We can learn that our normalized OTE model NOTE achieves best single model performance. \begin{table}[h] \centering \caption{Single Model We Use} \begin{tabular}{ccc} \toprule \textbf{Model} & \textbf{Without manual features} & \textbf{With manual features} \\ \midrule TransE & 0.8559 & 0.9537 \\ RotatE & 0.8871 & 0.9698 \\ QuatE & 0.8846 & 0.9608 \\ NOTE & 0.9189 & 0.9748 \\ \bottomrule \end{tabular} \label{tab:table1} \end{table} \fi \subsection{Experimental Results} Table \ref{tab:table2} shows the specific structure of all the models we use for ensemble, and report the final validation and test results of our ensemble method. \begin{table}[h] \centering \caption{Experimental Results: "-" means default parameter setting.} \scalebox{0.8}{ \begin{tabular}{ccc} \toprule \textbf{Model Settings} & \textbf{Main Parameter Settings} & \textbf{Validation Acc.}\\ \midrule NOTE-1 & - & 0.9189 \\ NOTE-2 & batch\_size=1200 & 0.9191 \\ NOTE-3 & lrd\_step=2e5 & 0.9172 \\ NOTE-4 & lrd\_step=4e4 & 0.9170 \\ NOTE-5 & mlplr=4e-5 & 0.9179 \\ NOTE-6 & lr=0.3 & 0.9181 \\ NOTE-7 & gamma=10 & 0.9160 \\ NOTE-8 & gamma=14 & 0.9173 \\ NOTE-9 & ote\_size=40 & 0.9201 \\ NOTE-10 & hidden\_size=240 & 0.9182 \\ TransE & - & 0.8559 \\ TransE & post-smoothing & 0.8800 \\ RotatE & - & 0.8871 \\ RotatE & post-smoothing & 0.8940 \\ QuatE & - & 0.8846 \\ DeepWalk & - & 0.6132 \\ \midrule features (from training triples) & - & 0.8457 \\ features (from validation candidates) & - & 0.7551 \\ features (from training triples \& validation candidates) & - & 0.8778 \\ \midrule Ensemble the Above Models & w/o features & 0.9435 \\ Ensemble the Above Models & w/ features (from training triples)& 0.9492 \\ Ensemble the Above Models & w/ features (from training triples \& validation candidates) & 0.9797 \\ \bottomrule \end{tabular} } \label{tab:table2} \end{table} \section{Conclusion} In this paper, we present our solution for the final test. First, we ensemble different models for representation learning. Specifically, we propose the NOTE model to make the training process steady. And the DeepWalk and the post-smoothing technique are used to capture the graph structure information among learned embeddings. We also use recent advance models including QuatE, RotatE, TransE. Second, we detail the manual feature engineering. The selected features are used to adjust the predictions. The experimental results show that our solution achieves excellent performance on the WikiKG90M dataset. For the final submission, we apply the same strategy on the test candidates in final inference, and these features are not practical when considering ranking against all the entities. \bibliographystyle{unsrtnat} \section{Introduction} Knowledge graphs are directed multi-relational graphs about facts, usually expressed in the form of $(h, r, t)$ triplets, where $h$ and $t$ represent head entity and tail entity respectively, and $r$ is the relation between head entity and tail entity, e.g. (\textit{Geoffrey Hinton, citizen of, Canada}). Large encyclopedic knowledge graphs, like Wikidata \citep{wikidata} and Freebase \citep{freebase}, can provide rich structured information about entities and benefit a wide range of applications, such as recommender systems, question answering and information retrieval. However, large knowledge graphs usually face the challenge of incompleteness. For example, 71\% of people in Freebase have no birth place and 75\% have no nationality \citep{dong2014knowledge}. Therefore, predicting these missing facts in a knowledge graph is a crucial task, also named as knowledge graph completion task. We can see Figure \ref{fig:wikikg} for a clear understanding. In order to address the issue of knowledge graph completion on large knowledge graphs, the 2021 KDD cup releases the WikiKG90M-LSC Task, which focuses on imputing missing facts in a knowledge graph extracted from the entire Wikidata knowledge base. Our method for this task consists of two stages: On the first stage, we propose an ensemble method for different knowledge embedding methods to build a strong model, in which, knowledge embedding methods, like TransE \citep{transe} and RotatE \citep{rotate}, focus on embedding entities and relations into vectors and then we can use these embeddings to predict missing relations. On the second stage, we adopt several statistical features of the WikiKG90M dataset to help improve the final ensemble model performance. We conducted several experiments on WikiKG90M dataset to demonstrate the superiority of our method, and our team is currently among the awardees of the WikiKG90M-LSC track of the OGB-LSC, where we achieve 0.9727 MRR result in the final test set. Some features from test candidates are used in final inference, which are not practical when considering ranking against all the entities. And its limitation will be discussed in Section \ref{limit}. \begin{figure} \centering \includegraphics[width=0.5\linewidth]{figs/wikikg90m.png} \caption{Impute missing triplets in knowledge graphs.\protect\footnotemark[1]} \label{fig:wikikg} \end{figure} \section{Methodology} \footnotetext[1]{https://ogb.stanford.edu/assets/img/ogb\-lsc\-task\-overview.png} \subsection{Representation Learning} \subsubsection{Triplet Embedding} The majority of knowledge graph representation algorithms relies on the triplets and they remain good interpretability in graph reasoning. In this competition, we adopt advance algorithms in different domains to encode the entities and relations, including NOTE, QuatE, RotatE and TransE. Considering the properties of each model, we ensemble their score results for the final prediction. \paragraph{NOTE} \cite{ote} proposes OTE to model the symmetry/antisymmetry, inversion, and composition patterns. It takes the relations as an orthogonal transform in a high dimensional space. Relation matrix is orthogonalized so its inverse matrix can be obtained by simple transposing. The full model can be seen as an ensemble of $K$ OTE models. The score functions are defined as Eq.~\ref{eq:ote_head} and ~\ref{eq:ote_tail}. \begin{equation} \label{eq:ote_head} d((h,r),t)=\sum_{i=1}^K(\| s_r^h(i)\phi(M_r(i))e_h(i)-e_t(i)\|), \end{equation} \begin{equation} \label{eq:ote_tail} d(h,(r,t))=\sum_{i=1}^K(\| s_r^t(i)\phi(M_r(i))^Te_t(i)-e_h(i)\|), \end{equation} where $s_r^h(i)=diag({exp}(s_r(i)))$ and $s_r^t(i)=diag({exp}(-s_r(i)))$ are the weights of relation matrix, $\phi$ is the Gram-Schmidt process. However, though \cite{ote} has scaled the $L_2$ norm of relation embeddings through scalar tensors $s_r(i) \in \mathcal{R}_{d_s}$, the convergence is still unstable in our experiments. The $exp$ operation in $s_r^h(i)$ and $s_r^t(i)$ enlarges values and could lead to this issue. Therefore, we further use $L_2$ norm to regularize the scalar tensors. In this case, the weights of relation matrix are modified into Eq.~\ref{eq:scalar_head} and ~\ref{eq:scalar_tail}. We denote such modified version as NOTE (short for Norm-OTE). \begin{equation} \label{eq:scalar_head} s_r^h(i)=\frac{diag({exp}(s_r(i)))}{\|diag({exp}(s_r(i)))\|}, \end{equation} \begin{equation} \label{eq:scalar_tail} s_r^t(i)=\frac{diag({exp}(-s_r(i)))}{\|diag({exp}(-s_r(i)))\|}. \end{equation} \paragraph{QuatE} \cite{quate} extend ComplEx \citep{complex} into quaternion space for better geometrical interpretations and more latent inter-dependencies. It proves that the Hamilton product in quaternion space can model both symmetry/antisymmetry and inversion patterns except the composition pattern. \paragraph{RotatE} RotatE can be view as an orthogonal transform in complex domain. Each relation is taken as a rotation from the head entity to the tail entity. \cite{rotate} has proved that the Hadamard product is able to model various relation patterns. In theory, it has equivalent model capability as OTE, so we also take it as a basic method. \paragraph{TransE} \cite{transe} interprets relationships as translations operating on entity embeddings in a real field. Although such assumption is not able to model complex relationships such as 1-N, N-1 and N-N, experiments on different datasets have proved its robustness and it can model composition pattern. Thus, we use results of this model to ensemble in our experiments. \subsubsection{Graph Context} Besides the specific triplets, the structure of sub-graphs comprised of triplets also reflect some semantic information. For example, \textit{Geoffrey Hinton} in Figure ~\ref{fig:wikikg} is connected with \textit{King's College Cambridge} through relation \textit{Graduated from}. We can infer that \textit{Geoffrey Hinton} should be a person and is probable to be born in UK, as \textit{King's College Cambridge} is located in UK. Entities and relations in this sub-graph influence each other. To supplement information of the graph structure, we use representative techniques such as Post-Smoothing \citep{appnp} and DeepWalk\citep{deepwalk}. \paragraph{Relation-based Post Smoothing} We propose a two-stage method to capture the relationships among the entities in sub-graphs. Recent end-to-end models always use graph neural networks as encoder and triplet-based methods as decoder. But in our implementation, we take the opposite approach. In the first stage, we train TransE to encode the entities and relations according to the triplet context. In the second stage, we take the learned representations as entity embeddings. Then we propagate them through the entity adjacent matrix. A hyperparameter $\alpha$ decides the weight of the entity itself while $1-\alpha$ denote weights of its neighborhood. The final updated embeddings are used for prediction. For example, for a given entity u, the final embedding $\mathbf{u}'$ is represented in Eq.~\ref{eq:post-smoothing}. \begin{equation} \label{eq:post-smoothing} \mathbf{u}' = \alpha \mathbf{u} + (1-\alpha) \sum_{v \in \mathcal{N}(u)}{f(\mathbf{v}, \mathbf{r})}, \end{equation} where $\mathbf{u}$ and $\mathbf{v}$ are the embedding learned in the first stage. $f$ is depending on the knowledge embedding algorithm. \paragraph{DeepWalk} \cite{deepwalk} propose DeepWalk to learn latent representations of nodes in homogeneous networks. In our solution, the relations in knowledge graph are ignored. We focus on the entity structure and use skip-gram technique to learn the semantic and structural correlations between entities along generated paths. \subsection{Manual Feature Engineering} In addition to embedding models, manual feature engineering is also a key part of our work. Since our goal is to predict tail through head and relation, our manual features include two parts, head to tail feature and relation to tail feature. Feature selection needs to be performed after obtaining the features. \subsubsection{Head to Tail Features} Head to tail feature is to predict the probability of tail by the current head. We start to walk from the head, and calculate the probability of walking through different paths to reach tail. For a head, relation and tail triple, it has 6 different walk directions $direct$, including head to tail(HT), head to relation(HR), relation to head(RH), relation to tail(RT), tail to head(TH), tail to relation(TR). The probability of $e_1$ to $e_2$ in direction $direct$ is as fallow. \begin{equation} \label{eq:probability} P_{direct}(e_1, e_2)=\frac{S_{direct}(e_1, e_2)}{\sum_{e \sim N_{direct}(e_1)}S_{direct}(e_1, e)} \end{equation} $S_{direct}(e_1, e_2)$ is the frequency of $e_1$ to $e_2$ in the direction of $direct$. When developing our model, we calculated all features from the training triplets and validation candidates. It is worth nothing that we only calculate the $F_{HT}$ and $F_{RT}$ from test data at the final inference time, without modifying the weight of our developed models. And we apply the same rule strategies developed from validation for final test prediction. That is to say, test data is only touched at the final inference time. We define 7 manual head to tail feature as follow. \begin{figure} \centering \includegraphics[width=0.7\linewidth]{./figs/HTfeature.pdf} \caption{The walk paths of head to tail features. The yellow arrow is a direction of head entity to tail entity. HT is walk in the direction of head to tail, while TH is in direction of tail to head.} \label{fig:htfeature} \end{figure} \begin{equation} \label{eq:featurehtth} F_{HT}(h, t)= P_{HT}(h, t) \end{equation} \begin{equation} \label{eq:featurehtth} F_{TH}(h, t)= P_{TH}(h, t) \end{equation} \begin{equation} \label{eq:featurethht} F_{TH-HT}(h, t)=\sum_{e \sim N_{TH}(h) \cap N_{TH}(t)}P_{TH}(h, e) * P_{HT}(e, t) \end{equation} \begin{equation} \label{eq:featurehtht} F_{HT-HT}(h, t)=\sum_{e \sim N_{HT}(h) \cap N_{TH}(t)}P_{HT}(h, e) * P_{HT}(e, t) \end{equation} \begin{equation} \label{eq:featurehtth} F_{HT-TH}(h, t)=\sum_{e \sim N_{HT}(h) \cap N_{HT}(t)}P_{HT}(h, e) * P_{TH}(e, t) \end{equation} \begin{equation} \label{eq:featurethth} F_{TH-TH}(h, t)=\sum_{e \sim N_{TH}(h) \cap N_{HT}(t)}P_{TH}(h, e) * P_{TH}(e, t) \end{equation} \begin{equation} \label{eq:featurehtth} F_{HT-HT-TH}(h, t)=\sum_{e_1 \sim N_{HT}(h)} \sum_{e_2 \sim N_{HT}(t)}P_{HT}(h, e_1) *P_{HT}(e_1, e_2) * P_{TH}(e_2, t) \end{equation} \subsubsection{Relation to Tail Features} We also define 5 manual relation to tail feature as fallow. \begin{equation} \label{eq:featurehtth} F_{RT}(r, t)=P_{RT}(r, t) \end{equation} \begin{equation} \label{eq:featurehtth} F_{RH}(r, t)=P_{RH}(r, t) \end{equation} \begin{equation} \label{eq:featurehtth} F_{RT-TR-RT}(r, t)=\sum_{e_1 \sim N_{RT}(r)} \sum_{e_2 \sim N_{TR}(t)}P_{RT}(r, e_1) *P_{TR}(e_1, e_2) * P_{RT}(e_2, t) \end{equation} \begin{equation} \label{eq:featurehtth} F_{RH-HR-RT}(r, t)=\sum_{e_1 \sim N_{RH}(r)} \sum_{e_2 \sim N_{HR}(t)}P_{RH}(r, e_1) *P_{HR}(e_1, e_2) * P_{RT}(e_2, t) \end{equation} \begin{equation} \label{eq:featurehtth} F_{RT-HR-RT}(r, t)=\sum_{e_1 \sim N_{RT}(r)} \sum_{e_2 \sim N_{HR}(t)}P_{RT}(r, e_1) *P_{HR}(e_1, e_2) * P_{RT}(e_2, t) \end{equation} \subsubsection{Feature Selection} In order to combine the above-mentioned features and models, we use grid search for feature selection. The grid search will output the weights of the embedding models and manual features. \subsubsection{Limitation Discussion.}\label{limit} In practical scene, the tail entities follow the long tail distribution. Finding candidates from all entities involves a very complicated process with strategies like rules and approximate nearest neighbor searching. However, different from our actual application, in this competition, candidates are provided from uniform distribution together with long tail ground truth according to the task description paper from \cite{hu2021ogblsc}. Therefore, it comes a simple strategy to narrow the candidate choices by dropping tail entities with low frequencies counting from candidates. But the long tail relations still depend on the Knowledge Embedding strategies, which can be found in our experimental results. To narrow the gap between competition and practical application in the real scene, we suggest that the candidates should not be provided. \section{Experiments} \label{sec:others} \subsection{Experimental Details} Original WikiKG90M dataset contains three time-stamps: September, October, and November of 2020, for training, validation, and testing, respectively, and only entities and relation types that appear in the earliest September knowledge graph are retained. The default parameter settings all models are batch\_size=1000, learning rate of the mlp (mlp\_lr)=2e-5, learning rate decay step (lrd\_step)=1e-5, learning rate of the embedding (lr)=0.1, gamma=12 and hidden\_size=200. Specifically, ote\_size=20 in NOTE model. For our final submission, we mix the training data and validation data. \if{} \subsection{Single Model} Table \ref{tab:table1} shows the official validation dataset result of single model we use w/o manual features. We can learn that our normalized OTE model NOTE achieves best single model performance. \begin{table}[h] \centering \caption{Single Model We Use} \begin{tabular}{ccc} \toprule \textbf{Model} & \textbf{Without manual features} & \textbf{With manual features} \\ \midrule TransE & 0.8559 & 0.9537 \\ RotatE & 0.8871 & 0.9698 \\ QuatE & 0.8846 & 0.9608 \\ NOTE & 0.9189 & 0.9748 \\ \bottomrule \end{tabular} \label{tab:table1} \end{table} \fi \subsection{Experimental Results} Table \ref{tab:table2} shows the specific structure of all the models we use for ensemble, and report the final validation and test results of our ensemble method. \begin{table}[h] \centering \caption{Experimental Results: "-" means default parameter setting.} \scalebox{0.8}{ \begin{tabular}{ccc} \toprule \textbf{Model Settings} & \textbf{Main Parameter Settings} & \textbf{Validation Acc.}\\ \midrule NOTE-1 & - & 0.9189 \\ NOTE-2 & batch\_size=1200 & 0.9191 \\ NOTE-3 & lrd\_step=2e5 & 0.9172 \\ NOTE-4 & lrd\_step=4e4 & 0.9170 \\ NOTE-5 & mlplr=4e-5 & 0.9179 \\ NOTE-6 & lr=0.3 & 0.9181 \\ NOTE-7 & gamma=10 & 0.9160 \\ NOTE-8 & gamma=14 & 0.9173 \\ NOTE-9 & ote\_size=40 & 0.9201 \\ NOTE-10 & hidden\_size=240 & 0.9182 \\ TransE & - & 0.8559 \\ TransE & post-smoothing & 0.8800 \\ RotatE & - & 0.8871 \\ RotatE & post-smoothing & 0.8940 \\ QuatE & - & 0.8846 \\ DeepWalk & - & 0.6132 \\ \midrule features (from training triples) & - & 0.8457 \\ features (from validation candidates) & - & 0.7551 \\ features (from training triples \& validation candidates) & - & 0.8778 \\ \midrule Ensemble the Above Models & w/o features & 0.9435 \\ Ensemble the Above Models & w/ features (from training triples)& 0.9492 \\ Ensemble the Above Models & w/ features (from training triples \& validation candidates) & 0.9797 \\ \bottomrule \end{tabular} } \label{tab:table2} \end{table} \section{Conclusion} In this paper, we present our solution for the final test. First, we ensemble different models for representation learning. Specifically, we propose the NOTE model to make the training process steady. And the DeepWalk and the post-smoothing technique are used to capture the graph structure information among learned embeddings. We also use recent advance models including QuatE, RotatE, TransE. Second, we detail the manual feature engineering. The selected features are used to adjust the predictions. The experimental results show that our solution achieves excellent performance on the WikiKG90M dataset. For the final submission, we apply the same strategy on the test candidates in final inference, and these features are not practical when considering ranking against all the entities. \bibliographystyle{unsrtnat}
{ "timestamp": "2021-07-06T02:31:41", "yymm": "2107", "arxiv_id": "2107.01892", "language": "en", "url": "https://arxiv.org/abs/2107.01892" }
"\\section{Introduction}\n\nSharing of risk, or risk exchange by redistributing risk among economic (...TRUNCATED)
{"timestamp":"2021-07-06T02:23:50","yymm":"2107","arxiv_id":"2107.01730","language":"en","url":"http(...TRUNCATED)
"\\section{Introduction}\nAcross most industries, machine learning (ML) models are deployed to captu(...TRUNCATED)
{"timestamp":"2021-07-06T02:30:58","yymm":"2107","arxiv_id":"2107.01873","language":"en","url":"http(...TRUNCATED)
"\\section{Introduction}\nThe Ensemble Kalman filter ({abbreviated EnKF}) is a class of interacting (...TRUNCATED)
{"timestamp":"2021-07-06T02:30:02","yymm":"2107","arxiv_id":"2107.01855","language":"en","url":"http(...TRUNCATED)
"\\section{Introduction}\n\nHigh-$Q$ resonances are of utmost importance in a wide diversity of prob(...TRUNCATED)
{"timestamp":"2021-09-29T02:06:33","yymm":"2107","arxiv_id":"2107.01822","language":"en","url":"http(...TRUNCATED)
"\\section{Introduction}\\label{sec:intro}\nWhen a high-intensity laser pulse strikes a solid target(...TRUNCATED)
{"timestamp":"2021-07-06T02:23:40","yymm":"2107","arxiv_id":"2107.01723","language":"en","url":"http(...TRUNCATED)
"\\section{introduction}\nThe property of expansiveness introduced by R. Utz in 1950 is an importa(...TRUNCATED)
{"timestamp":"2021-07-06T02:22:32","yymm":"2107","arxiv_id":"2107.01708","language":"en","url":"http(...TRUNCATED)
"\\section{Introduction}\n\nAntiferromagnetism has attracted tremendous interests due to the fact th(...TRUNCATED)
{"timestamp":"2021-07-06T02:25:34","yymm":"2107","arxiv_id":"2107.01765","language":"en","url":"http(...TRUNCATED)
"\\section{Introduction}\n\\label{S:intro} \n\nPrediction of future observations is a common goal i(...TRUNCATED)
{"timestamp":"2021-07-06T02:21:52","yymm":"2107","arxiv_id":"2107.01688","language":"en","url":"http(...TRUNCATED)
End of preview.

No dataset card yet

Downloads last month
2