On a Conjecture of Yui and Zagier II Thanks: The first author is supported by the LOEWE research unit USAG, the Deutsche Forschungsgemeinschaft (DFG) through the Collaborative Research Centre TRR 326 “Geometry and Arithmetic of Uniformized Structures” (project number 444845124) and the Heisenberg Program “Arithmetic of real-analytic automorphic forms”(project number 539345613). The second author is partially supported by a UW-Madison Mid-Career award. The third author is supported by the Guangdong Basic and Applied Basic Research Foundation (Grant No. 2024A1515030222). Yingkun Li, Tonghai Yang, Dongxi Ye Abstract . Yui and Zagier made some fascinating conjectures on the factorization on the norm of the difference of Weber class invariants f ⁡ ( 𝔞 1 ) − f ⁡ ( 𝔞 2 ) f(\mathfrak{a}_{1})-f(\mathfrak{a}_{2}) based on their calculation in [ 15 ] . Here 𝔞 i \mathfrak{a}_{i} belong two diferent ideal classes of discrimants D i D_{i} in imagainary quadratic fields ℚ ⁡ ( D i ) \mathbb{Q}(\sqrt{D_{i}}) . In [ 10 ] , we proved these conjectures and their generalizations when ( D 1 , D 2 ) = 1 (D_{1},D_{2})=1 using the so-called big CM value formula of Borcherds lifting. In this sequel, we prove the conjectures when ℚ ⁡ ( D 1 ) = ℚ ⁡ ( D 2 ) \mathbb{Q}(\sqrt{D_{1}})=\mathbb{Q}(\sqrt{D_{2}}) using the so-called small CM value formula. In addition, we give a precise factorization formula for the resultant of two different Weber class invariant polynomials for distinct orders. 2000 Mathematics Subject Classification 11G15, 11F41, 14K22 2020 Mathematics Subject Classification 11G18, 11G15, 11F67, 14G40. 1. Introduction This is a sequel to [ 10 ] . Recall the three classical Weber functions of level 48 : \displaystyle\mathfrak{f}(\tau) \displaystyle:=\zeta_{48}^{-1}\frac{\eta(\frac{\tau+1}{2})}{\eta(\tau)}=q^{-\frac{1}{48}}\prod_{n=1}^{\infty}(1+q^{n-\frac{1}{2}}), (1.1) \displaystyle\mathfrak{f}_{1}(\tau) \displaystyle:=\frac{\eta(\frac{\tau}{2})}{\eta(\tau)}=q^{-\frac{1}{48}}\prod_{n=1}^{\infty}(1-q^{n-\frac{1}{2}}), \displaystyle\mathfrak{f}_{2}(\tau) \displaystyle:=\sqrt{2}\frac{\eta(2\tau)}{\eta(\tau)}=\sqrt{2}q^{\frac{1}{24}}\prod_{n=1}^{\infty}(1+q^{n}). where \zeta_{m}:=e^{\frac{2\pi i}{m}} for any m\in\mathbb{N} . For each \mathrm{d}|24 , the vector-valued function (1.2) F_{\mathrm{d}}(\tau):=\sqrt{2}^{24/\mathrm{d}}\begin{pmatrix}\mathfrak{f}_{2}^{-24/\mathrm{d}}(\tau)\\ \mathfrak{f}_{1}^{-24/\mathrm{d}}(\tau)\\ \mathfrak{f}^{-24/\mathrm{d}}(\tau)\end{pmatrix}\in M^{!}(\varrho_{\mathrm{d}}) is a weakly holomorphic modular form of \operatorname{SL}_{2}(\mathbb{Z}) with representation \varrho_{\mathrm{d}} (1.3) \varrho_{\mathrm{d}}(T):=\begin{pmatrix}\zeta_{\mathrm{d}}^{-1}&0&0\\ 0&0&\zeta_{2\mathrm{d}}\\ 0&\zeta_{2\mathrm{d}}&0\end{pmatrix},~\varrho_{\mathrm{d}}(S):=\begin{pmatrix}0&1&0\\ 1&0&0\\ 0&0&1\end{pmatrix}. The starting point of this project was the following inspiring result of Yui and Zagier. Proposition 1.1 ( [ 15 ] Proposition) . Let D<0 be a discriminant satisfying (1.4) D\equiv 1\bmod 8,\hbox{ and }3\nmid D. Denote \varepsilon_{D}:=(-1)^{(D-1)/8} . For each ideal \mathfrak{a}=[a,\frac{b+\sqrt{D}}{2}] of the order \mathcal{O}_{D}:=\mathbb{Z}[\tfrac{D+\sqrt{D}}{2}] with a>0 , let z_{\mathfrak{a}}=\frac{-b+\sqrt{D}}{2a} be the associated CM point and (1.5) f(\mathfrak{a})=\begin{cases}\zeta_{48}^{b(a-c-ac^{2})}\mathfrak{f}(z_{\mathfrak{a}}),&\operatorname{if}2|(a,c),\\ \varepsilon_{D}\zeta_{48}^{b(a-c-ac^{2})}\mathfrak{f}_{1}(z_{\mathfrak{a}}),&\operatorname{if}2|a,2\nmid c,\\ \varepsilon_{D}\zeta_{48}^{b(a-c+a^{2}c)}\mathfrak{f}_{2}(z_{\mathfrak{a}}),&\operatorname{if}2\nmid a,2|c.\end{cases} Then f(\mathfrak{a}) is an algebraic integer depending only on the class of \mathfrak{a} in the class group \mathrm{Cl}(D) of \mathcal{O}_{D} , i.e. it is a class invariant. Moreover, H_{D}:=k_{D}(f(\mathfrak{a}))=k_{D}(j(z_{\mathfrak{a}})) is the ring class field of k_{D} corresponding \mathcal{O}_{D} . Remark 1.2 . If {\mathfrak{A}} is the class of \mathfrak{a} in \operatorname{Cl}(D) , then we will also write f({\mathfrak{A}}) for f(\mathfrak{a}) . Remark 1.3 . It was proved in [ 14 , Theorem 1.1(4)] that f(\mathfrak{a}) is a unit. So for a pair of ideal classes [\mathfrak{a}_{i}] of order \mathcal{O}_{D_{i}} , the difference f(\mathfrak{a}_{1})-f(\mathfrak{a}_{2}) is an algebraic number in the field H_{D_{1}}H_{D_{2}} , and a natural question is what we can say about the factorization of its norm, considering the beautiful results of Gross and Zagier on singular moduli [ 5 ] . Yui and Zagier gave two conjectured formula for the norm: one when (D_{1},D_{2})=1 and the other when D_{1}=D_{2} . In [ 10 ] , two of us proved the conjecture in the case (D_{1},D_{2})=1 using Borcherds products and big CM value formula of Bruinier-Kudla-Yang [ 2 ] . In this paper, we will use the small CM value formula of Schofer [ 11 ] to prove the conjecture in the case D_{1}=D_{2} . Actually, we will give an explicit formula in the more general case when D_{1}/D_{2} is a rational square, i.e., D_{i}=D_{0}t_{i}^{2} with (t_{1},t_{2})=1 (see Theorem 4.1 for detail). For a positive integer n , let \rho(n) be the number of integral ideals of the quadratic field k_{D}=\mathbb{Q}(\sqrt{D}) with norm n . It has factorization \rho(n)=\prod_{p<\infty}\rho_{p}(n)=\sum_{{\mathfrak{A}}\in\operatorname{Cl}(k_{D})}r_{\mathfrak{A}}(n) with r_{{\mathfrak{A}}}(n)=\#\{\mathfrak{c}\subset\mathcal{O}_{D}:{\mathrm{Nm}}(\mathfrak{c})=n,[\mathfrak{c}]={\tilde{\mathfrak{A}}}\} the ideal counting function for n\geq 1 , and (1.6) \rho_{p}(n)=\begin{cases}o_{p}(n)+1&\operatorname{if}p\hbox{ is split},\\ \frac{1+(-1)^{o_{p}(n)}}{2}&\operatorname{if}p\hbox{ is inert},\\ 1&\operatorname{if}p\hbox{ is ramified or }p=\infty.\end{cases} For convenience, we set r_{\mathfrak{A}}(0)=\frac{1}{2},\,\rho(0)=\frac{|\operatorname{Cl}(k_{D})|}{2},\,\rho_{p}(0)=1 ,   and let (1.7) \rho^{(M)}(n)=\begin{cases}\prod_{p\nmid M}\rho_{p}(n)&n>0,\\ \rho(0)&n=0.\end{cases} The following result confirms the Yui-Zagier conjecture for discriminants ( [ 15 , p. 1658] ). Theorem 1.4 . Let D<0 be a discriminant satisfying ( 1.4 ), and for s\mid 24 and each non-trivial class {\tilde{\mathfrak{A}}}=[\tilde{\mathfrak{a}}]\in\operatorname{Cl}(D) with {\rm Nm}(\tilde{\mathfrak{a}})=a , denote \mathrm{disc}(D;s,{\tilde{\mathfrak{A}}}):=\prod_{{\mathfrak{A}}\in\operatorname{Cl}(D)}(f({\mathfrak{A}})^{24/s}-f({\mathfrak{A}}{\tilde{\mathfrak{A}}})^{24/s})\in k_{D}. If -D=p is prime, then the followings hold. (1) For each prime \ell split in k_{D} , we have {\rm ord}_{\ell}({\rm disc}(D;s,\tilde{\mathfrak{A}}))=0 . (2) For each prime \ell\neq 3 inert in k_{D} , we have that \operatorname{ord}_{\ell}(\mathrm{disc}(D;s,{\tilde{\mathfrak{A}}})) amounts to the number of pairs of integral ideals (\mathfrak{b}_{1},\mathfrak{b}_{2}) such that [\mathfrak{b}_{2}]=\tilde{\mathfrak{A}} , \ell^{j}{\rm Nm}(\mathfrak{b}_{1})+{\rm Nm}(\mathfrak{b}_{2})=p for some j>0 , and that \mathfrak{a}=(2s^{\prime})^{-1}\mathfrak{b}_{1}\mathfrak{b}_{2} is a nonzero integral ideal \mathfrak{a} satisfying that c(\mathfrak{a})\left(\ell\frac{{\rm Nm}(\mathfrak{a})}{c(\mathfrak{a})^{2}}+5\right)\equiv 0\pmod{\frac{s}{s^{\prime}}}, where s^{\prime}=\gcd\left(s,3^{1-\left(\frac{D}{3}\right)}\right) . (3) For \ell=3 inert in k_{D} , we have that \displaystyle{\rm ord}_{3}({\rm disc}(D;s,\tilde{\mathfrak{A}})) \displaystyle=\sum_{\begin{subarray}{c}n,\tilde{n}>0\\ n+\tilde{n}=p\\ 2\nmid o_{3}(n)\geq 1\end{subarray}}\sum_{\begin{subarray}{c}r\mid(s/s_{3}),~r>0\\ \frac{n\tilde{n}}{4r^{2}}\equiv 19\bmod{\frac{s/s_{3}}{r}}\end{subarray}}\sum_{AB=2r}\rho^{(3)}\left(\frac{n}{A^{2}}\right)r_{{\tilde{\mathfrak{A}}}}\left(\frac{\tilde{n}}{B^{2}}\right)\frac{o_{3}(n/s_{3})+1}{2}. (4) For \ell=p , we have that {\rm ord}_{\ell}({\rm disc}(D;s,\tilde{\mathfrak{A}}))=\frac{1}{2} . Remark 1.5 . The more general case of D=D_{0}=D_{1}=D_{2} being fundamental is given as Theorem 4.3 . As another consequence of the main formula (Theorem 4.1 ), we will also prove Theorem 4.5 concerning factorization of the resultant of two class polynomials when D_{1}\neq D_{2} . Its simplified version is given below. Theorem 1.6 . Let D_{i}=D_{0}t_{i}^{2} be discriminants satisfying ( 1.4 ) with t_{1},t_{2} co-prime and D_{0} fundamental. Suppose all primes dividing t:=t_{1}t_{2}>1 are inert in k . Let P_{i}(x) be the minimal polynomial of f(\mathfrak{A}_{i}) for \mathfrak{A}_{i}\in\operatorname{Cl}(D_{i}) , which depends only on D_{i} , and R(P_{1},P_{2}) be their resultant. Then for an inert prime \ell\nmid 3t , \hbox{ord}_{\ell}R(P_{1},P_{2}) is given by (1.8) \sum_{\begin{subarray}{c}n,\tilde{n}\in\mathbb{N}\\ n+\tilde{n}=-D_{0}t\\ \gcd(n,t)=1\end{subarray}}\sigma(\gcd(n,{D_{0}}))\sum_{\begin{subarray}{c}r\mid s,~r>0\\ s^{\prime}|r\\ \frac{n\tilde{n}}{4r^{2}}\equiv 19\bmod{\frac{s}{r}}\end{subarray}}\sum_{\begin{subarray}{c}AB=2r\\ j\geq 0\end{subarray}}\rho\left(\frac{n}{A^{2}\ell^{j}}\right)\rho_{\mathrm{g}}(\tilde{n}/B^{2};-n). Here s^{\prime}=\gcd\left(s,3^{1-\left(\frac{D}{3}\right)}\right) , and \sigma(n)=\sum_{d|n}1 is the divisor function and for m\geq 1 \rho_{\mathrm{g}}(m;c):=\sum_{{\mathfrak{A}}\in\operatorname{Cl}(D_{0}),\text{ the genus of }{\mathfrak{A}}\text{ represent }c}r_{\mathfrak{A}}(m). The current paper improves upon [ 10 ] in the following ways. By systematically working with the character \chi defined by the Weber function in ( 2.29 ), we clarify the level of the CM points without resorting to explicit computations as in Lemma 5.2 in [ 10 ] . The small CM point formula requires us to investigate the rational splitting the lattice L in ( 2.26 ). For this, we give a global splitting result in Proposition 2.10 . Using this, we investigate the local splitting behavior in the last section. Finally, we prove results, such as Theorem 4.5 , for non-maximal orders by giving new formula for values of local Whittaker function in Propositions 5.1 , 5.3 and 5.4 , and specializing them to the cases we need in section 5.2.3 . Also, the constant term of the incoherent Eisenstein contributes to the final formula, which creates subtlety in Theorem 4.5 that is not present in [ 10 ] . The paper is organized as follows. In Section 2, after reviewing the Weil representation, we study small CM points on product of modular curves carefully, including their associated lattices and various identifications. These careful identifications are critical to establishing our main formulas in Section 4. In Section 3, we recall the main results of Borcherds liftings in [ 10 ] and then the small CM value formula of Schofer ( [ 11 ] ), and using these we establish a preliminary version of our main formula. In Section 4, we do necessary local calculation and establish a general factorization formula for the norm of difference of Weber functions at a small CM point (Theorem 4.1 ). Using the main theorem, we prove Theorem 4.3 and Theorem 4.5 with more careful calculation in these special cases. We also give some explicit examples for these results. Acknowledgement Later 2. Preliminaries 2.1. Weil Representation. Let (L,Q) be an even integral lattice of signature (2,2) , V:=L\otimes\mathbb{Q} the rational quadratic space, and L^{\prime}\subset V the dual lattice. For R=\mathbb{A}_{f} or \mathbb{Q}_{p} , denote S(V\otimes R) the space of Schwartz functions on V\otimes R , which is acted on by \operatorname{SL}_{2}(R) via the Weil representation \omega=\omega_{V,\psi}=\otimes_{p}\omega_{p} for R=\mathbb{A}_{f} (with \psi the usual idelic character of \mathbb{Q} ) and \omega_{p} for R=\mathbb{Q}_{p} . The restriction of \omega to the (the diagonally embedded) subgroup \operatorname{SL}_{2}(\mathbb{Z})\subset\operatorname{SL}_{2}(\mathbb{A}) acts on the finite dimensional subspace S(L):=\oplus_{\mu\in L^{\prime}/L}\mathbb{C}\phi_{\mu}\subset S(V\otimes\mathbb{A}_{f}) with \hat{L}:=L\otimes\hat{\mathbb{Z}} and \phi_{\mu}:=\operatorname{Char}(\mu+\hat{L}) . We denote this subrepresentation by \omega_{L} and also call it the Weil representation associated to L . Its formula on the following standard generators of \operatorname{SL}_{2}(\mathbb{Z}) T:=\begin{pmatrix}1&1\\ 0&1\end{pmatrix},~S:=\begin{pmatrix}0&-1\\ 1&0\end{pmatrix} can be explicitly given (see e.g. (2.1) of [ 10 ] ). Similarly, \operatorname{SL}_{2}(\mathbb{Z}_{p}) acts on S(L\otimes\mathbb{Z}_{p}) via the local Weil representation \omega_{L,p} . 2.2. Modular curves and product of modular curves as Shimura varieties Let \mathrm{d}>0 be a fixed positive integer. Let V=V_{\mathrm{d}}=M_{2}(\mathbb{Q}) with quadratic form Q_{\mathrm{d}}(x)=\mathrm{d}\det x , and associated bilinear form (\cdot,\cdot)_{\mathrm{d}} . Let H=\operatorname{GSpin}(V)=\{(g_{1},g_{2})\in{\mathrm{GL}}_{2}\times{\mathrm{GL}}_{2}:\,\det g_{1}=\det g_{2}\} act on V via (g_{1},g_{2})X=g_{1}Xg_{2}^{-1} . Let \mathbb{D} be the associated Hermitian symmetric domain of oriented negative 2 -planes in V_{\mathbb{R}} . It has two connected components \mathbb{D}^{\pm} . Let V^{0}=V_{\mathrm{d}}^{0} be the subspace of V of trace zero matrices, H^{0}=\operatorname{GSpin}(V^{0})={\mathrm{GL}}_{2} , and \mathbb{D}^{0}=\cup\mathbb{D}^{0,\pm} the associated oriented negative planes in V_{\mathbb{R}}^{0} . Then H_{0}\subset H diagonally, and it acts on V^{0} via conjugation. The following is a special case of [ 13 , Proposition 3.1] Proposition 2.1 . Define w_{\mathrm{d}}(z_{1},z_{2})=\left(\begin{smallmatrix}\frac{z_{1}}{\mathrm{d}}&\frac{-z_{1}z_{2}}{\mathrm{d}}\\ \frac{1}{\mathrm{d}}&\frac{-z_{2}}{\mathrm{d}}\end{smallmatrix}\right). Then the map \mathbb{H}^{2}\cup(\mathbb{H}^{-})^{2}\cong\mathbb{D},\quad(z_{1},z_{2})\mapsto\mathbb{R}\Re(w_{\mathrm{d}}(z_{1},z_{2}))+\mathbb{R}\Im(w_{\mathrm{d}}(z_{1},z_{2})) is an isomorphism. Moreover, w_{\mathrm{d}} is H(\mathbb{R}) -equivariant, where H(\mathbb{R}) acts on \mathbb{H}^{2}\cup(\mathbb{H}^{-})^{2} via the usual linear fraction transformation: (g_{1},g_{2})(z_{1},z_{2})=(g_{1}(z_{1}),g_{2}(z_{2})), and acts on \mathbb{D} naturally via its action on V . Moreover, one has (2.1) (g_{1},g_{2})w_{\mathrm{d}}(z_{1},z_{2})=\frac{j(g_{1},z_{1})j(g_{2},z_{2})}{\nu(g_{1},g_{2})}w_{\mathrm{d}}(g_{1}(z_{1}),g_{2}(z_{2})), where \nu(g_{1},g_{2})=\det g_{1}=\det g_{2} is the spin character of H\cong\operatorname{GSpin}(V) , and j(g_{i},z_{i})=c_{i}z_{i}+d_{i} is the automorphy factor (of weight (1,1) ). Finally, when restricting to \mathbb{H} diagonally, we obtain a H^{0}(\mathbb{R}) -invariant map w_{\mathrm{d}}^{0}(z)=\frac{1}{\mathrm{d}}\left(\begin{smallmatrix}z&-z^{2}\\ 1&-z\end{smallmatrix}\right), and \mathbb{H}^{\pm}\cong\mathbb{D}^{0,\pm} . 2.3. CM points on \mathbb{H} as CM points associated to V^{0} Let z=\frac{b+\sqrt{D}}{2a}\in\mathbb{H} be a CM point by imaginary quadratic order \mathcal{O}_{D}=\mathbb{Z}+\mathbb{Z}\frac{D+\sqrt{D}}{2} , i.e. \mathfrak{a}=[a,\frac{b+\sqrt{D}}{2}] is a integral ideal of \mathcal{O}_{D} , or equivalently, the elliptic curve E_{z}=\mathbb{C}/(\mathbb{Z}+\mathbb{Z}z) has endomorphism ring \mathcal{O}_{D} . Let U^{0}_{\mathbb{R}}(z)=\mathbb{R}\Re w^{0}_{\mathrm{d}}(z)+\mathbb{R}\Im w^{0}_{\mathrm{d}}(z) be the associated negative two plane, i.e., U^{0}_{\mathbb{R}}(z)=U^{0}(z)\otimes\mathbb{R} with U^{0}(z)=\mathbb{Q}\left(\begin{smallmatrix}\frac{b}{2a}&-\frac{D+b^{2}}{4a^{2}}\\ 1&-\frac{b}{2a}\end{smallmatrix}\right)+\mathbb{Q}\left(\begin{smallmatrix}\frac{1}{2a}&-\frac{b}{2a^{2}}\\ 0&-\frac{1}{2a}\end{smallmatrix}\right). Let T=k_{D}^{\times}=\operatorname{GSpin}(U^{0}) , then we have the commutative diagram (2.2) \textstyle{1\ignorespaces\ignorespaces\ignorespaces\ignorespaces} \textstyle{\mathbb{G}_{m}\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces} \textstyle{T=k_{D}^{\times}\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces} \textstyle{{\mathrm{SO}}(U^{0})=k_{D}^{1}\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces} \textstyle{1} \textstyle{1\ignorespaces\ignorespaces\ignorespaces\ignorespaces} \textstyle{\mathbb{G}_{m}\ignorespaces\ignorespaces\ignorespaces\ignorespaces} \textstyle{H^{0}={\mathrm{GL}}_{2}(\mathbb{Q})\ignorespaces\ignorespaces\ignorespaces\ignorespaces} \textstyle{{\mathrm{SO}}(V^{0})\ignorespaces\ignorespaces\ignorespaces\ignorespaces} \textstyle{1.} Lemma 2.2 . Define \iota_{z}:k_{D}\rightarrow M_{2}(\mathbb{Q}) via the \mathbb{Q} -basis \{1,-\overline{z}\} as follows (2.3) (r,-\overline{z}r)=(1,-\overline{z})\iota_{z}(r). Then \iota_{z} gives the map from T to H^{0} in the diagram ( 2.2 ). Proof. Let z=\frac{b+\sqrt{D}}{2a} and (2.4) P(z)=U^{0}(z)^{\perp}=\mathbb{Q}\iota_{z}(\sqrt{D}),\quad\iota_{z}(\sqrt{D})=\left(\begin{smallmatrix}b&\frac{D-b^{2}}{2a}\\ 2a&-b\end{smallmatrix}\right). Then it is easy to see ( [ 12 , Theorem 24.6(iv)] ) that T=\operatorname{GSpin}(U^{0})=\{g\in{\mathrm{GL}}_{2}(\mathbb{Q}):g\iota_{z}(\sqrt{D})g^{-1}=\iota_{z}(\sqrt{D})\}=(\mathbb{Q}+\mathbb{Q}\iota_{z}(\sqrt{D}))^{\times}. So \iota_{z} gives the embedding from T to H^{0} . ∎ Remark 2.3 . The definition for \iota_{z}(r) above is equivalent to (2.5) \iota_{z}(r)\binom{z}{1}=\binom{rz}{r} for all r\in k_{D} . Furthermore, we have (2.6) \gamma^{-1}\iota_{\gamma z}(r)\gamma=\iota_{z}(r) for all r\in k_{D},\gamma\in\operatorname{SL}_{2}(\mathbb{Z}) . 2.4. Small CM points on \mathbb{H}\times\mathbb{H} A CM point on \mathbb{H}^{2} is a pair (z_{1},z_{2})\in\mathbb{H}^{2} such that z_{i} is a CM point on \mathbb{H} with CM by \mathcal{O}_{D_{i}} . It is called a small CM point if k_{D_{1}}=k_{D_{2}} and a big CM point otherwise. We deal with small CM points here and refer the reader to [ 13 ] for big CM points. Now fix a small CM point Z=(z_{1},z_{2})\in\mathbb{H}^{2} and write (2.7) z_{i}=\frac{b_{i}+\sqrt{D_{i}}}{2a_{i}},~a:=a_{1}a_{2}>0,~w_{\mathrm{d}}:=w_{\mathrm{d}}(z_{1},z_{2}),~\hbox{ and }\tilde{w}_{\mathrm{d}}:=w_{\mathrm{d}}(z_{1},\overline{z_{2}}). We also denote (2.8) D_{0}=\hbox{gcd}(D_{1},D_{2})<0,~D=\hbox{lcm}(D_{1},D_{2})<0,~D_{i}=t_{i}^{2}D_{0},~t:=t_{1}t_{2}. Then D=t^{2}D_{0} and \gcd(t_{1},t_{2})=1 and (2.9) D_{1}=D_{2}\Leftrightarrow t=t_{1}=t_{2}=1. Denote the associated negative two plane and its orthogonal complement in V_{\mathbb{R}} by (2.10) U_{\mathbb{R}}:=\mathbb{R}\Re(w_{\mathrm{d}})+\mathbb{R}\Im(w_{\mathrm{d}}),~U^{\perp}_{\mathbb{R}}:=\mathbb{R}\Re(\tilde{w}_{\mathrm{d}})+\mathbb{R}\Im(\tilde{w}_{\mathrm{d}}). Then U_{\mathbb{R}}=U\otimes\mathbb{R} and U_{\mathbb{R}}^{\perp}=U^{\perp}\otimes\mathbb{R} with (2.11) U^{\perp}:=U_{\mathbb{R}}^{\perp}\cap V,~\hbox{ and }~U:=U_{\mathbb{R}}\cap V. It is easy to check the following isometries of rational quadratic spaces (2.12) \begin{split}(U^{\perp},Q_{\mathrm{d}})&\cong(k_{D_{0}},\frac{\mathrm{d}t}{a}\operatorname{N}),\quad\tilde{\mu}\mapsto\frac{a}{t\sqrt{D_{0}}}(\tilde{\mu},\overline{\tilde{w}_{\mathrm{d}}})_{\mathrm{d}},\\ (U,Q_{\mathrm{d}})&\cong(k_{D_{0}},-\frac{\mathrm{d}t}{a}\operatorname{N}),\quad\mu\mapsto-\frac{a}{t\sqrt{D_{0}}}(\mu,\overline{w_{\mathrm{d}}})_{\mathrm{d}}.\end{split} We will denote the inverse maps by i^{+}_{\mathrm{d}}:k_{D_{0}}\to U^{\perp} and i^{-}_{\mathrm{d}}:k_{D_{0}}\to U respectively, which are given by (2.13) i^{+}_{\mathrm{d}}(\tilde{\lambda}):=-\frac{\mathrm{d}}{\sqrt{D_{0}}}(\tilde{\lambda}\tilde{w}_{\mathrm{d}}-\overline{\tilde{\lambda}\tilde{w}_{\mathrm{d}}}),~i^{-}_{\mathrm{d}}(\lambda):=-\frac{\mathrm{d}}{\sqrt{D_{0}}}(\lambda w_{\mathrm{d}}-\overline{\lambda w_{\mathrm{d}}}). Using the following properties -(w_{\mathrm{d}},\overline{w_{\mathrm{d}}})_{\mathrm{d}}=(\tilde{w}_{\mathrm{d}},\overline{\tilde{w}_{\mathrm{d}}})_{\mathrm{d}}=-\frac{tD_{0}}{\mathrm{d}a},~(w_{\mathrm{d}},\tilde{w}_{\mathrm{d}})_{\mathrm{d}}=(w_{\mathrm{d}},\overline{\tilde{w}_{\mathrm{d}}})_{\mathrm{d}}=0, it is straightforward to verify that i_{\mathrm{d}}^{\pm} are the inverses to the two maps in ( 2.12 ). Their sum then gives an isometry (2.14) \begin{split}i_{\mathrm{d}}:k_{D_{0}}\times k_{D_{0}}&\to V=U^{\perp}\oplus U\\ (\tilde{\lambda},\lambda)&\mapsto i^{+}_{\mathrm{d}}(\tilde{\lambda})+i^{-}_{\mathrm{d}}(\lambda),\end{split} whose inverse is given by (2.15) \begin{split}i_{\mathrm{d}}^{-1}:V&\to k_{D_{0}}\times k_{D_{0}}\\ \mu_{0}&\mapsto\left(\frac{a}{t\sqrt{D_{0}}}(\mu_{0},\overline{\tilde{w}_{\mathrm{d}}})_{\mathrm{d}},-\frac{a}{t\sqrt{D_{0}}}(\mu_{0},\overline{w_{\mathrm{d}}})_{\mathrm{d}}\right).\end{split} Lemma 2.4 . For any (\tilde{\lambda},\lambda)\in k_{D_{0}}\times k_{D_{0}} and r\in k_{D_{0}} , we have (2.16) i_{\mathrm{d}}(r\tilde{\lambda},r\lambda)=\iota_{z_{1}}(r)i_{\mathrm{d}}(\tilde{\lambda},\lambda). Proof. This follows from the definition and the identities (2.17) rw(z_{1},z_{2})=\binom{rz_{1}}{r}(1~-z_{2})=\iota_{z_{1}}(r)\binom{z_{1}}{1}(1~-z_{2})=\iota_{z_{1}}(r)w(z_{1},z_{2}) and r\tilde{w}=\iota_{z_{1}}(r)\tilde{w} . ∎ Now we have again \operatorname{GSpin}(U)=T=k_{D}^{\times} , with the diagram: (2.18) \textstyle{1\ignorespaces\ignorespaces\ignorespaces\ignorespaces} \textstyle{\mathbb{G}_{m}\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces} \textstyle{T=k_{D}^{\times}\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces} \textstyle{{\mathrm{SO}}(U)=k_{D}^{1}\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces} \textstyle{1} \textstyle{1\ignorespaces\ignorespaces\ignorespaces\ignorespaces} \textstyle{\mathbb{G}_{m}\ignorespaces\ignorespaces\ignorespaces\ignorespaces} \textstyle{H\ignorespaces\ignorespaces\ignorespaces\ignorespaces} \textstyle{{\mathrm{SO}}(V)\ignorespaces\ignorespaces\ignorespaces\ignorespaces} \textstyle{1.} Lemma 2.5 . The map T\rightarrow H in diagram ( 2.18 ) is induced by \iota_{Z}=(\iota_{z_{1}},\iota_{z_{2}}):k_{D}\rightarrow M_{2}(\mathbb{Q})\times M_{2}(\mathbb{Q}). Here \iota_{z_{i}} is the map defined in Lemma 2.2 . Proof. First notice that \tilde{\gamma}=\tilde{\alpha}(\tilde{\beta})^{-1}=\iota_{z_{1}}(\sqrt{D_{0}}) is independent of z_{2} , and that \tilde{\delta}=(\tilde{\beta})^{-1}\tilde{\alpha}=\iota_{z_{2}}(\sqrt{D_{0}}) is independent of z_{1} . Now \displaystyle\operatorname{GSpin}(U) \displaystyle=\{g=(g_{1},g_{2})\in H:g\hbox{ acts on }U^{\perp}\hbox{ trivially}\} \displaystyle=\{(g_{1},g_{2})\in H:\,g_{1}\tilde{\gamma}=\tilde{\gamma}g_{1},g_{2}\tilde{\delta}=\tilde{\delta}g_{2},g_{1}\tilde{\beta}=\tilde{\beta}g_{2}\} \displaystyle=\{(g_{1},g_{2})\in{\mathrm{GL}}_{2}\times{\mathrm{GL}}_{2}:\,g_{2}=\iota_{z_{2}}(r),g_{1}=\iota_{z_{1}}(r),\hbox{ for some }r\in k_{D}^{\times}\}. Here the last equality comes from the identities (a_{2},\frac{-b_{2}+\sqrt{D_{2}}}{2})=(a_{1},\frac{-b_{1}+\sqrt{D_{1}}}{2})\frac{2a_{2}}{t_{1}}\tilde{\beta},\quad\hbox{ and }\iota_{z_{1}}(r)=\tilde{\beta}\iota_{z_{2}}(r)\tilde{\beta}^{-1}. So by Lemma 2.2 we have the desired map \iota_{Z}:T\rightarrow H,\quad\iota_{Z}(r)=(\iota_{z_{1}}(r),\iota_{z_{2}}(r)). ∎ 2.5. Lattices To understand the lattices, it is better to have some restrictions on z_{i} , which are harmless in this paper because of the following lemma, whose proof is left to the reader. Lemma 2.6 . Suppose that D_{i} satisfy ( 1.4 ). For ideal classes {\mathfrak{A}}_{i} of \mathcal{O}_{D_{i}} , i=1,2 , there are ideals \mathfrak{a}_{i}=[a_{i},t_{i}\frac{b+\sqrt{D_{0}}}{2}] representing {\mathfrak{A}}_{i} with associated CM points z_{i}=t_{i}\frac{b+\sqrt{D_{0}}}{2a_{i}} such that a_{i}>0 , (2.19) \begin{split}\gcd(a_{1},a_{2})&=1,~\gcd(a_{i},6bD)=1,~b^{2}\equiv D_{0}\bmod(4a_{i}),~48\mid\gcd(a_{i}-t_{i},b-1).\end{split} Remark 2.7 . For any fixed n\in\mathbb{N} and odd r_{i}\in\mathbb{Z} , we can find a_{i} such that 2^{n}\mid a_{i}-r_{i} for i=1,2 . Lemma 2.8 . Let D_{j} be discriminants satisfying ( 1.4 ) and z_{i} CM points chosen as in Lemma 2.6 . Then (2.20) \frac{\mathfrak{f}_{2}(z_{1})}{\mathfrak{f}_{2}(z_{2})}=\frac{f(\mathfrak{a}_{1})}{f(\mathfrak{a}_{2})}. with f(\mathfrak{a}_{i}) the class invariant defined in ( 1.5 ). Proof. This is equivalent to checking that 3(D_{i}-1)+b_{i}(a_{i}-c_{i}+a_{i}^{2}c_{i})\bmod{48} is independent of i=1,2 , where b_{i}:=bt_{i},c_{i}:=\frac{t_{i}^{2}}{a_{i}}c,c:=\frac{b^{2}-D_{0}}{4} . By the choice of z_{i} , we have a_{i}\equiv t_{i}\bmod{48},~c_{i}\equiv t_{i}c\bmod{48}. Furthermore, 2\mid D_{0}+b and 2\mid c . Substituting these in and using c\in 2\mathbb{Z},~2t_{i}^{2}\equiv 2\bmod{48} gives us \displaystyle 3(D_{i}-1) \displaystyle+b_{i}(a_{i}-c_{i}+a_{i}^{2}c_{i})\equiv 3(D_{0}t_{i}^{2}-1)+bt_{i}^{2}(1-c+t_{i}^{2}c) \displaystyle\equiv\frac{3D_{0}+b}{2}2t_{i}^{2}-3-b\frac{c}{2}t_{i}^{2}(2-2t_{i}^{2})\equiv 3D_{0}+b-3\bmod{48}, which is independent of i=1,2 . ∎ From now on, we will suppose that the z_{i} satisfy the conditions in Lemma 2.6 . Let a:=a_{1}a_{2},\quad c:=\frac{b^{2}-D_{0}}{4a}\in 16\mathbb{Z}. The following integral ideals will be important for us (2.21) \begin{split}\mathfrak{a}_{i}&:=a_{i}(\mathbb{Z}+\mathbb{Z}z_{i})\subset\mathcal{O}_{D_{i}},~\mathfrak{b}_{i}:=a_{i}(\mathbb{Z}+2\mathbb{Z}\overline{z_{i}})=\overline{\mathfrak{a}_{i}}\cap\mathcal{O}_{4D_{i}}\subset\mathcal{O}_{4D_{i}},\\ \mathfrak{a}_{0}&=\mathbb{Z}a+\mathbb{Z}\frac{-b+\sqrt{D_{0}}}{2}=\overline{\mathfrak{a}_{1}}\overline{\mathfrak{a}_{2}}\subset\mathcal{O}_{D_{0}},\\ \mathfrak{a}&=\mathbb{Z}a+\mathbb{Z}(-b+\sqrt{D_{0}})=\mathfrak{a}_{0}\cap\mathcal{O}_{4D_{0}}\subset\mathcal{O}_{4D_{0}}.\end{split} In addition, we choose \tilde{b}\in\mathbb{Z} such that (2.22) \begin{split}\tilde{b}+(-1)^{i}b\equiv 0&\bmod 2a_{i},~i=1,2,\\ b\equiv\tilde{b}&\bmod 4D.\end{split} and define the following ideals (2.23) \begin{split}\tilde{\mathfrak{a}}_{0}&:=\mathbb{Z}a+\mathbb{Z}\frac{-\tilde{b}+\sqrt{D_{0}}}{2}=\overline{\mathfrak{a}_{1}}\mathfrak{a}_{2}\subset\mathcal{O}_{D_{0}},\\ \tilde{\mathfrak{a}}&:=\mathbb{Z}a+\mathbb{Z}(-\tilde{b}+\sqrt{D_{0}})=\tilde{\mathfrak{a}}_{0}\cap\mathcal{O}_{4D_{0}}\subset\mathcal{O}_{4D_{0}}.\end{split} Notice that \mathfrak{a}_{0} and \tilde{\mathfrak{a}}_{0} are integral ideals of \mathcal{O}_{D_{0}} , while \mathfrak{a} and \tilde{\mathfrak{a}} are integral ideals of \mathcal{O}_{4D_{0}} . Furthermore, (2.24) a=[\mathcal{O}_{D_{0}}:\mathfrak{a}_{0}]=[\mathcal{O}_{D_{0}}:\tilde{\mathfrak{a}}_{0}]=[\mathcal{O}_{4D_{0}}:\mathfrak{a}]=[\mathcal{O}_{4D_{0}}:\tilde{\mathfrak{a}}]. Using \tilde{\mathfrak{a}},\mathfrak{a}\subset\mathbb{Z}[\sqrt{D_{0}}] , we can make the following canonical identification (2.25) \tilde{\mathfrak{a}}^{\prime}/\tilde{\mathfrak{a}}=\frac{1}{2\mathrm{d}\sqrt{D}}\tilde{\mathfrak{a}}/\tilde{\mathfrak{a}}\cong A\cong\frac{1}{2\mathrm{d}\sqrt{D}}\mathfrak{a}/\mathfrak{a}=\mathfrak{a}^{\prime}/\mathfrak{a},~A:=\frac{1}{2\mathrm{d}\sqrt{D}}\mathbb{Z}[\sqrt{D_{0}}]/\mathbb{Z}[\sqrt{D_{0}}]. Also, denote A_{p}:=A\otimes\mathbb{Z}_{p} . Now, we can view t\mathfrak{a}_{i}/t_{i} and t\mathfrak{a},t\tilde{\mathfrak{a}} as invertible \mathcal{O}_{D} ideals. Let {\mathfrak{A}}_{i}\in\operatorname{Cl}(D_{i}) denote their classes. The following lemma will be helpful for us later. Lemma 2.9 . In the notation above, there exist \tilde{\alpha}\in\tilde{\mathfrak{a}} such that {\mathrm{Nm}}(\tilde{\alpha})=a/t if and only if the classes {\mathfrak{A}}_{i} are the same, i.e. D_{1}=D_{2}=D and {\mathfrak{A}}_{1}={\mathfrak{A}}_{2}\in\operatorname{Cl}(D) . If this happens, then t=1 . Proof. If t=1 , then {\mathfrak{A}}_{1}={\mathfrak{A}}_{2} if and only if \tilde{\mathfrak{a}}_{0}=\overline{\mathfrak{a}_{1}}\mathfrak{a}_{2}=\tilde{\alpha}\mathcal{O}_{D_{0}} . As D_{0}\equiv 1\bmod{8} and {\mathrm{Nm}}(\tilde{\mathfrak{a}}_{0})=a\equiv 1\bmod{16} , we must have \tilde{\alpha}\in\mathcal{O}_{4D_{0}}\cap\tilde{\mathfrak{a}}_{0}=\tilde{\mathfrak{a}} . If t>1 , then D_{1}\neq D_{2} and {\mathfrak{A}}_{1}\neq{\mathfrak{A}}_{2} . On the other hand, we have a={\mathrm{Nm}}(\tilde{\mathfrak{a}})=[\mathcal{O}_{4D_{0}}:\tilde{\mathfrak{a}}]\leq[\mathcal{O}_{4D_{0}}:\tilde{\alpha}\mathcal{O}_{4D_{0}}]={\mathrm{Nm}}(\tilde{\alpha}) for any \tilde{\alpha}\in\tilde{\mathfrak{a}} , so there cannot be any \tilde{\alpha}\in\tilde{\mathfrak{a}} with norm a/t0 a positive integer, denote (2.26) L=L_{\mathrm{d}}:=\left\{\lambda\in L_{0}:\lambda\equiv\begin{pmatrix}*&*\\ 0&*\end{pmatrix}\bmod{2}\right\} with the quadratic form Q_{\mathrm{d}}:=\mathrm{d}\det . Let \mathcal{N}={\mathcal{N}}_{\mathrm{d}}:=L_{\mathrm{d}}\cap U and \mathcal{P}={\mathcal{P}}_{\mathrm{d}}:=L_{\mathrm{d}}\cap U^{\perp} . Then (2.27) \begin{split}i_{\mathrm{d}}^{+}(\tilde{\mathfrak{a}}_{0})&=L_{0}\cap U^{\perp},\quad i_{\mathrm{d}}^{+}(\tilde{\mathfrak{a}})=\mathcal{P},\\ i_{\mathrm{d}}^{-}(\mathfrak{a}_{0})&=L_{0}\cap U,\quad i_{\mathrm{d}}^{-}(\mathfrak{a})=\mathcal{N}.\end{split} The dual lattices of \tilde{\mathfrak{a}} and \mathfrak{a} are \frac{1}{2\mathrm{d}t\sqrt{D_{0}}}\tilde{\mathfrak{a}} and \frac{1}{2\mathrm{d}t\sqrt{D_{0}}}{\mathfrak{a}} respectively. Furthermore, we have (2.28) \begin{split}i_{\mathrm{d}}(\tilde{\lambda},\lambda)\in L_{\mathrm{d}}^{\prime}&\Leftrightarrow\begin{pmatrix}1&1\\ \overline{z_{2}}&z_{2}\end{pmatrix}\binom{\tilde{\lambda}}{\lambda}\in\frac{1}{\mathrm{d}t_{1}}\overline{\mathfrak{a}_{1}}\times\frac{1}{2\mathrm{d}t_{1}}\mathfrak{b}_{1},\\ i_{\mathrm{d}}(\tilde{\lambda},\lambda)\in L_{\mathrm{d}}&\Leftrightarrow\begin{pmatrix}1&1\\ \overline{z_{2}}&z_{2}\end{pmatrix}\binom{\tilde{\lambda}}{\lambda}\in\frac{1}{t_{1}}\mathfrak{b}_{1}\times\frac{1}{t_{1}}\overline{\mathfrak{a}_{1}}.\end{split} This implies that for any (\tilde{\lambda},\lambda)\in\frac{1}{2\mathrm{d}t\sqrt{D_{0}}}\tilde{\mathfrak{a}}\times\frac{1}{2\mathrm{d}t\sqrt{D_{0}}}\mathfrak{a} and \mu_{0}\in L_{\mathrm{d}}^{\prime} , i_{\mathrm{d}}(\tilde{\lambda},\lambda)\equiv\mu_{0}\bmod L_{\mathrm{d}}\Leftrightarrow\begin{pmatrix}1&1\\ \overline{z_{2}}&z_{2}\end{pmatrix}\binom{\tilde{\lambda}-\frac{a}{t\sqrt{D_{0}}}(\mu_{0},\overline{\tilde{w}_{\mathrm{d}}})_{\mathrm{d}}}{\lambda+\frac{a}{t\sqrt{D_{0}}}(\mu_{0},\overline{w_{\mathrm{d}}})_{\mathrm{d}}}\in\frac{1}{t_{1}}\mathfrak{b}_{1}\times\frac{1}{t_{1}}\overline{\mathfrak{a}_{1}}. Remark 2.11 . Since \mathcal{P}\oplus\mathcal{N}\subset L\subset L^{\prime}\subset\mathcal{P}^{\prime}\oplus\mathcal{N}^{\prime}, we have L^{\prime}/(\mathcal{P}+\mathcal{N})\subset\mathcal{P}^{\prime}/\mathcal{P}\oplus\mathcal{N}^{\prime}/\mathcal{N} and the natural projection L^{\prime}/(\mathcal{P}+\mathcal{N})\rightarrow L^{\prime}/L . Proof. To characterize the preimage of L_{\mathrm{d}}\cap U under i^{-}_{\mathrm{d}} , we can use the fact that L_{\mathrm{d}} and L^{\prime}_{\mathrm{d}} are dual lattices, and apply the discussion in section 2.4 to see that \displaystyle i^{-}_{\mathrm{d}}(\lambda) \displaystyle=\frac{1}{\sqrt{D_{0}}}(\lambda w-\overline{\lambda w})\in L_{\mathrm{d}}\Leftrightarrow(i^{-}_{\mathrm{d}}(\lambda),\mu)_{\mathrm{d}}\in\mathbb{Z}\text{ for all }\mu\in L^{\prime}_{\mathrm{d}} \displaystyle\Leftrightarrow\frac{1}{\sqrt{D_{0}}}\left(\lambda w-\overline{\lambda w},\frac{1}{2\mathrm{d}}\begin{pmatrix}\mu_{1}&\mu_{2}\\ \mu_{3}&\mu_{4}\end{pmatrix}\right)_{\mathrm{d}}\in\mathbb{Z}\text{ for all }\mu_{1},\mu_{3},\mu_{4}\in 2\mathbb{Z},\mu_{2}\in\mathbb{Z} \displaystyle\Leftrightarrow\operatorname{Tr}\left(\frac{a\lambda(-\mu_{1}z_{2}+\mu_{4}z_{1}-\mu_{2}+\mu_{3}z_{1}z_{2})}{2a\sqrt{D_{0}}}\right)\in\mathbb{Z}\text{ for all }\mu_{1},\mu_{3},\mu_{4}\in 2\mathbb{Z},\mu_{2}\in\mathbb{Z} \displaystyle\Leftrightarrow\operatorname{Tr}\left(\lambda\overline{\alpha}\right)\in\mathbb{Z}\text{ for all }\alpha\in\frac{1}{2a\sqrt{D_{0}}}\mathfrak{a}\Leftrightarrow\lambda\in\mathfrak{a}. The same argument shows the other three equations in ( 2.27 ). For ( 2.28 ), we argue similarly, and notice that for \mu=\left(\begin{smallmatrix}\mu_{1}&\mu_{2}\\ \mu_{3}&\mu_{4}\end{smallmatrix}\right)\in V , \displaystyle(i_{\mathrm{d}}(\tilde{\lambda},\lambda),\mu)_{\mathrm{d}} \displaystyle=\mathrm{d}\operatorname{Tr}\left(\frac{(\tilde{\lambda}+\lambda)(\mu_{4}z_{1}-\mu_{2})+(\tilde{\lambda}\overline{z_{2}}+\lambda z_{2})(\mu_{3}z_{1}-\mu_{1})}{\sqrt{D_{0}}}\right) \displaystyle=\operatorname{Tr}\left((\tilde{\lambda}+\lambda)\gamma\right)+\operatorname{Tr}\left((\tilde{\lambda}\overline{z_{2}}+\lambda z_{2})\delta\right), with \gamma=\mathrm{d}\frac{\mu_{4}z_{1}-\mu_{2}}{\sqrt{D_{0}}},\delta=\mathrm{d}\frac{\mu_{3}z_{1}-\mu_{1}}{\sqrt{D_{0}}} . So for \mu\in L_{\mathrm{d}} , we have \mu_{1},\mu_{2},\mu_{4}\in\mathbb{Z} and \mu_{3}\in 2\mathbb{Z} . The condition i_{\mathrm{d}}(\tilde{\lambda},\lambda)\in L_{\mathrm{d}}^{\prime} is then equivalent to \operatorname{Tr}\left((\tilde{\lambda}+\lambda)\gamma\right)\in\mathbb{Z},~\operatorname{Tr}\left((\tilde{\lambda}\overline{z_{2}}+\lambda z_{2})\delta\right)\in\mathbb{Z} for all \gamma\in\frac{\mathrm{d}}{\sqrt{D_{0}}}\mathbb{Z}[z_{1}] and \delta\in\frac{\mathrm{d}}{\sqrt{D_{0}}}\mathbb{Z}[2z_{1}] , which is equivalent to \tilde{\lambda}+\lambda\in\frac{1}{\mathrm{d}t_{1}}\overline{\mathfrak{a}_{1}} and \tilde{\lambda}\overline{z_{2}}+\lambda z_{2}\in\frac{1}{2\mathrm{d}t_{1}}\mathfrak{b}_{1} . Similarly, \mu\in L_{\mathrm{d}}^{\prime} is equivalent to \mu_{1},\mu_{3},\mu_{4}\in\frac{1}{\mathrm{d}}\mathbb{Z} and \mu_{2}\in\frac{1}{2\mathrm{d}}\mathbb{Z} , which means \gamma\in\frac{1}{2\sqrt{D_{0}}}\mathbb{Z}[2z_{1}] and \delta\in\frac{1}{\sqrt{D_{0}}}\mathbb{Z}[z_{1}] . Therefore, i_{\mathrm{d}}(\tilde{\lambda},\lambda)\in L_{\mathrm{d}} if and only if \tilde{\lambda}+\lambda\in\frac{1}{t_{1}}\mathfrak{b}_{1} and \tilde{\lambda}\overline{z_{2}}+\lambda z_{2}\in\frac{2}{t_{1}}\overline{\mathfrak{a}_{1}} . The last claim now follows from ( 2.15 ). ∎ 2.6. Level Now we assume \mathrm{d}|24 . Let \Gamma^{\mathrm{d}} be the subgroup of \Gamma_{0}(2) generated by \Gamma_{0}(2)^{\mathrm{der}} , T^{\mathrm{d}} , S^{2} , and TB , where T=\left(\begin{smallmatrix}1&1\\ 0&1\end{smallmatrix}\right),\quad S=\left(\begin{smallmatrix}0&-1\\ 1&0\end{smallmatrix}\right),~\text{ and }B=\left(\begin{smallmatrix}1&0\\ -2&1\end{smallmatrix}\right). This was called \Gamma_{\chi,\mathrm{d}} in [ 10 ] , since \Gamma^{\mathrm{d}}=\ker(\chi^{24/\mathrm{d}}) with \chi:\Gamma_{0}(2)\to\mathbb{C}^{\times} is the character defined by (2.29) \mathfrak{f}_{2}(\gamma z)=\chi(\gamma)\mathfrak{f}_{2}(z),~\gamma\in\Gamma_{0}(2). In particular, (2.30) \Gamma^{1}=\Gamma_{0}(2),\hbox{ and }\Gamma^{24}=\{\gamma\in\Gamma_{0}(2):\mathfrak{f}_{2}(\gamma z)=\mathfrak{f}_{2}(z)\text{ for all }z\in\mathbb{H}\}. \Gamma^{\mathrm{d}} is a normal subgroup of \Gamma_{0}(2) of index \mathrm{d} . It is easy to check that TB\in\Gamma^{24} ,since (2.31) \chi(T)=\chi(B)^{-1}=\zeta_{24}. Since the eta product \mathfrak{f}_{2}(z)^{24/\mathrm{d}} has level \Gamma(2\mathrm{d}) (e.g. see Theorem 1.7 and section 2.1 of [ 7 ] ), \Gamma^{\mathrm{d}} is a congruence subgroup containing \Gamma(2\mathrm{d}) , and \chi is a character of \operatorname{SL}_{2}(\mathbb{Z}/48\mathbb{Z})\cap L_{48} —the image of \Gamma_{0}(2) in \operatorname{SL}_{2}(\mathbb{Z}/48\mathbb{Z}) , where L_{48}=L\otimes\mathbb{Z}/48\mathbb{Z}=\{\gamma\in M_{2}(\mathbb{Z}/48\mathbb{Z}):\gamma\equiv\left(\begin{smallmatrix}*&*\\ 0&*\end{smallmatrix}\right)\bmod{2}\}. The values of \chi can be computed using eta multipliers, and expressed in the following way. Proposition 2.12 . Let \chi=\chi_{2}\chi_{3} with \chi_{p} the p -component of the character defined by \chi_{2}:=\chi^{9},\chi_{3}:=\chi^{16} . Then \chi(\gamma)=\chi_{2}(\gamma_{2})\chi_{3}(\gamma_{3}) for any \gamma=(\gamma_{2},\gamma_{3})\in\operatorname{SL}_{2}(\mathbb{Z}/48\mathbb{Z})\cap L_{48} . Furthermore, \chi_{p} is given by (2.32) \begin{split}\chi_{2}\left(\begin{pmatrix}a&b\\ c&d\end{pmatrix}_{2}\right)&=\left(\frac{2}{a}\right)\zeta_{8}^{3a(b+c/2)},~\chi_{3}\left(\begin{pmatrix}a&b\\ c&d\end{pmatrix}_{3}\right)=\zeta_{3}^{-(a+d)c+bd(c^{2}-1)}\end{split} for any \gamma=\left(\begin{smallmatrix}a&b\\ c&d\end{smallmatrix}\right)\in\operatorname{SL}_{2}(\mathbb{Z}/48\mathbb{Z})\cap L_{48} . Remark 2.13 . Note that c^{2}\equiv 0,1\bmod{3} depending on whether 3 divides c or not. Proof. Since \chi_{p} only depends on \gamma modulo powers of p , the first claim clearly holds. For the explicit formula of \chi_{2} , we know that \Gamma(48)\subset\ker(\chi) and \Gamma(16)\subset\ker(\chi_{2}) . So given \gamma_{2}=\left(\begin{smallmatrix}a&b\\ c&d\end{smallmatrix}\right)\in\operatorname{SL}_{2}(\mathbb{Z}/16\mathbb{Z}) with c\in 2\mathbb{Z}/16\mathbb{Z} , we can apply Lemma 6 in [ 4 ] to write \gamma_{2}\equiv ST^{-(1+c)a^{-1}}ST^{-a}ST^{b(1+c)a^{-1}-d}\equiv B^{(1-(1+c)a^{-1})/2}TB^{(1-a)/2}T^{b(1+c)a^{-1}-d}\bmod{16} with a^{-1} the inverse of a\bmod{16} . Therefore, we have \displaystyle\chi_{2}(\gamma) \displaystyle=\chi(B^{(1-(1+c)a^{-1})/2}TB^{(1-a)/2}T^{b(1+c)a^{-1}-d})^{9} \displaystyle=\zeta_{8}^{3(((1+c)a^{-1}-1)/2+1+(a-1)/2+b(1+c)a^{-1}-d)}. Using a\equiv a^{-1}\bmod{8} and (a+a^{-1})/2\equiv a+(a^{2}-1)/2\bmod{8} , it is easy to check that \displaystyle((1+c)a^{-1}-1)/2+1+(a-1)/2 \displaystyle\equiv(a+a^{-1})/2+a^{-1}c/2 \displaystyle\equiv a(1+c/2)+(a^{2}-1)/2\bmod{8}, \displaystyle b(1+c)a^{-1}-d \displaystyle\equiv ab(1+c)-d \displaystyle\equiv ab+a^{2}d-a-d\equiv a(b-1)\bmod{8}. Substituting these in and applying \left(\frac{2}{a}\right)=(-1)^{(a^{2}-1)/8} gives us the formula ( 2.32 ). The case of \chi_{3} is similar and we leave its proof to the reader. ∎ Let K_{\mathrm{d}}^{0} be the subgroup of {\mathrm{GL}}_{2}(\hat{\mathbb{Z}}) generated by \nu(\hat{\mathbb{Z}}^{\times}) , and the preimage of \Gamma^{\mathrm{d}}/\Gamma(2\mathrm{d}) . Then K_{\mathrm{d}}^{0} is also invariant with respect to conjugation by the preimage of \Gamma_{0}(2) in \operatorname{SL}_{2}(\hat{\mathbb{Z}})\subset{\mathrm{GL}}_{2}(\hat{\mathbb{Z}}) , under the projection {\mathrm{GL}}_{2}(\hat{\mathbb{Z}})\rightarrow{\mathrm{GL}}_{2}(\mathbb{Z}/{2\mathrm{d}\mathbb{Z}}) . Let K_{\mathrm{d}}=H(\mathbb{A}_{f})\cap(K_{\mathrm{d}}^{0}\times K_{\mathrm{d}}^{0}),~K_{\mathrm{d}}^{\prime}=\langle K_{\mathrm{d}},(T,T)\rangle. Notice that K^{\prime}_{1}=K_{1} . Then we have as Shimura varieties \displaystyle X_{\mathrm{d}}^{0} \displaystyle={\mathrm{GL}}_{2}(\mathbb{Q})\backslash\mathbb{D}^{0}\times{\mathrm{GL}}_{2}(\mathbb{A}_{f})/K_{\mathrm{d}}^{0}=\Gamma^{\mathrm{d}}\backslash\mathbb{H}, \displaystyle X_{\mathrm{d}} \displaystyle=H(\mathbb{Q})\backslash\mathbb{D}\times H(\mathbb{A}_{f})/K_{\mathrm{d}}=(\Gamma^{\mathrm{d}}\backslash\mathbb{H})^{2}, and a natural projection X_{\mathrm{d}}\rightarrow X_{\mathrm{d}}^{\prime}=H(\mathbb{Q})\backslash\mathbb{D}\times H(\mathbb{A}_{f})/K_{\mathrm{d}}^{\prime}=H_{\mathrm{d}}^{\prime}\backslash\mathbb{H}^{2}. Here H_{\mathrm{d}}^{\prime}:=K_{\mathrm{d}}^{\prime}\cap H(\mathbb{Q})^{+}=\langle\Gamma^{\mathrm{d}}\times\Gamma^{\mathrm{d}},(T,T)\rangle . We use X_{\mathrm{d}}^{\Delta}\subset X_{\mathrm{d}} to denote the divisor given by the image of the diagonal embedding X_{\mathrm{d}}^{0}\hookrightarrow X_{\mathrm{d}} , and (2.33) X^{\Delta}_{\mathrm{d}}(j):=(T^{j}\times\mathds{1})^{*}(X^{\Delta}_{\mathrm{d}})\subset X_{\mathrm{d}} the pullback along the translation by (T,1) map (see (4.3) of [ 10 ] ). Note that X^{\Delta}_{\mathrm{d}}(j) descends to a divisor on X^{\prime}_{\mathrm{d}} since \Gamma^{\mathrm{d}}\subset\Gamma_{0}(2) is a normal subgroup. We slightly abuse notation and use X^{\Delta}_{\mathrm{d}}(j) to denote this divisor on X_{\mathrm{d}}^{\prime} . The function |\mathfrak{f}_{2}(z_{1})-\epsilon\mathfrak{f}_{2}(z_{2})| ( \epsilon=\pm 1 ) is a (non-holomorphic) modular function on X_{\mathrm{d}}^{\prime} . First, we have the following generalization of [ 10 , Lemma 5.2] . Lemma 2.14 . Let D_{1},D_{2} be discriminants satisfying ( 1.4 ), and Z=(z_{1},z_{2})\in\mathbb{H}^{2} a small CM point with z_{i}=\frac{b_{i}+\sqrt{D_{i}}}{2a_{i}} having discriminant D_{i} and satisfying (2.34) \gcd(6,a_{1}a_{2})=1,~a_{1}b_{2}\equiv a_{2}b_{1}\bmod{48}. Denote \iota_{Z}=(\iota_{z_{1}},\iota_{z_{2}}):T(\mathbb{A}_{f})=k_{D,f}^{\times}\rightarrow H(\mathbb{A}_{f}) the associated embedding from the torus T and H . For \mathrm{d}|24 , let K_{\mathrm{d},T}\subset T(\mathbb{A}_{f}) be the preimage of K_{\mathrm{d}}^{\prime} . Then K_{\mathrm{d},T}=\hat{\mathcal{O}}_{D}^{\times} is independent of \mathrm{d} , where D=\mathrm{lcm}(D_{1},D_{2}) . Remark 2.15 . If z_{0}=\frac{b+\sqrt{D}}{2a} is a CM point with discriminant D\equiv 1\bmod{8} and 2\nmid a , then \iota_{z_{0}}^{-1}(K_{1}^{0})=\hat{\mathcal{O}}_{D}^{\times} by Lemma 5.4 in [ 13 ] . However, \iota_{z_{0}}^{-1}(K_{\mathrm{d}}^{0}) will be strictly contained in \hat{\mathcal{O}}_{D}^{\times} if \mathrm{d}>1 . Remark 2.16 . If z_{i} are chosen as in Lemma 2.6 , then they also satisfy ( 2.34 ). Remark 2.17 . This gives another proof of Lemma 5.2 in [ 10 ] without resorting to explicit calculations. Proof. First of all, we have \iota(\hat{\mathcal{O}}_{D}^{\times})\subset H(\hat{\mathbb{Z}}) . Since K_{1}^{\prime}=K_{1}=H(\mathbb{A}_{f})\cap(K_{1}^{0}\times K_{1}^{0}) , Remark 2.15 implies that K_{1,T}=\iota^{-1}(K_{1}^{\prime})=\iota^{-1}(K_{1})=\iota^{-1}(K_{1}^{0}\times K_{1}^{0})=\iota_{z_{1}}^{-1}(K_{1}^{0})\cap\iota_{z_{2}}^{-1}(K_{1}^{0})=\hat{\mathcal{O}}_{D_{1}}^{\times}\cap\hat{\mathcal{O}}_{D_{2}}^{\times}=\hat{\mathcal{O}}_{D}^{\times}. Since K_{\mathrm{d},T}\subset K_{1,T} by definition, we just need to show that \hat{\mathcal{O}}_{D}^{\times}\subset K_{\mathrm{d},T} , or equivalently \iota(\hat{\mathcal{O}}_{D}^{\times})\subset K_{\mathrm{d}}^{\prime} . Furthermore, we only need to check the places above 2 and 3, as K_{\mathrm{d},T} and K_{1,T} are the same everywhere else. Since the map \iota_{z_{i}} then only depends on a_{i},b_{i},D_{i} modulo 48, we can apply condition ( 2.34 ) and ( 2.4 ) to check that for all r=\alpha+\beta\sqrt{D}\in(\mathcal{O}_{D}/48\mathcal{O}_{D})^{\times}\cong(\mathcal{O}_{D_{0}}/48\mathcal{O}_{D_{0}})^{\times} \iota_{z_{i}}(r)\equiv\iota_{z_{i}^{\prime}}(r^{\prime}_{i})\bmod{48} where r^{\prime}_{i}=\alpha+a_{i}\beta\sqrt{D_{i}^{\prime}}\in(\mathcal{O}_{D}/48\mathcal{O}_{D})^{\times} and z_{i}^{\prime}:=\frac{b^{\prime}+\sqrt{D_{i}^{\prime}}}{2} with b^{\prime}\in\mathbb{Z} and D_{i}^{\prime}<0 a discriminant satisfying b^{\prime}\equiv b_{i}a_{i}^{-1}\bmod{48},~D_{i}^{\prime}\equiv a_{i}^{-2}D\bmod{48}. Note that D_{i}^{\prime} still satisfies ( 1.4 ) as \gcd(a_{i},6)=1 and d:=r_{i}^{\prime}\overline{r_{i}^{\prime}}\bmod{48} is independent of i=1,2 . Now by Prop. 12 and 13 in [ 4 ] and Remark 2.3 , we know that \zeta_{48}^{b^{\prime}-4}\mathfrak{f}_{2} is invariant under the action of W_{48,z_{i}^{\prime}}:=\iota_{z_{i}^{\prime}}((\mathcal{O}_{D}/48\mathcal{O}_{D})^{\times})\subset{\mathrm{GL}}_{2}(\mathbb{Z}/48\mathbb{Z}), given in (1) of [ 4 ] , i,e. there exists \gamma_{i}\in\Gamma^{24}/\Gamma(48) such that \iota_{z_{i}^{\prime}}(r^{\prime}_{i})\equiv\nu(d)\gamma_{i}T^{\frac{1-d}{2}(b^{\prime}-4)}\bmod{48}, which implies that \iota(r)=(\nu(d),\nu(d))(\gamma_{1},\gamma_{2})(T,T)^{(1-d)(b^{\prime}-4)/2}\in K_{24}^{\prime}. This finishes the proof. ∎ 3. Borcherds products and small CM value formula 3.1. A brief review of a result of [ 10 ] The first step to prove Theorem 4.3 is a result of [ 10 , Theorem 1.8] to write \mathfrak{f}_{2}(z_{1})-\mathfrak{f}_{2}(z_{2}) as product of Borcherds products, which we now review. Let \mathrm{d}|24 . Endow V=V_{\mathrm{d}}=M_{2}(\mathbb{Q}) with quadratic form Q=Q_{\mathrm{d}}=\mathrm{d}\det . The lattice L=L_{\mathrm{d}}=\{\left(\begin{smallmatrix}a&b\\ c&d\end{smallmatrix}\right)\in M_{2}(\mathbb{Z}):\,2|c\}\subset V is even integral with respect to Q_{\mathrm{d}} . Denote \omega_{\mathrm{d}} and \omega_{\mathrm{d},p} the Weil representation of \operatorname{SL}_{2}(\mathbb{Z}) on S(L_{\mathrm{d}}) and S(L_{\mathrm{d}}\otimes\mathbb{Z}_{p}) respectively. Define (3.1) \begin{split}\phi_{\mathrm{d}}&:=\sum_{\begin{subarray}{c}s\in(\mathbb{Z}/\mathrm{d}\mathbb{Z})^{\times}\\ \gamma\in L/\mathrm{d}L\\ \det(\gamma)\equiv 1\bmod{\mathrm{d}}\end{subarray}}\chi(\gamma)^{(24/\mathrm{d})s}\phi_{\frac{1}{\mathrm{d}}\gamma}=\sum_{j\in\mathbb{Z}/\mathrm{d}\mathbb{Z}}a_{\mathrm{d}}(j)\left(\sum_{\mu\in\frac{1}{\mathrm{d}}T^{j}\Gamma^{\mathrm{d}}/L}\phi_{\mu}\right)\in S(L_{\mathrm{d}}),\\ a_{\mathrm{d}}(j)&:=\left(\sum_{s\in(\mathbb{Z}/\mathrm{d}\mathbb{Z})^{\times}}\zeta_{\mathrm{d}}^{sj}\right)=\mu\left(\frac{\mathrm{d}}{(\mathrm{d},j)}\right)\frac{\varphi(\mathrm{d})}{\varphi(\mathrm{d}/(\mathrm{d},j))}\in\mathbb{Z}.\end{split} Note that the coefficient a_{\mathrm{d}_{p}}(j) is non-zero in exactly the following cases. (\mathrm{d}_{p},j) (\mathrm{d}_{p},0) (2,1) (4,2) (8,4) (3,1) (3,2) a_{\mathrm{d}_{p}}(j) \varphi(\mathrm{d}_{p}) -1 -2 -4 -1 -1 Table 1. Nonzero values of a_{\mathrm{d}_{p}}(j) . Using the vector \phi_{\mathrm{d}} and its translates, we were able to construct Borcherds products with suitable divisors in [ 10 ] . Theorem 3.1 . ( [ 10 , Theorem 4.4, 4.5] ) For every \mathrm{d}\mid 24 , there exists \tilde{F}_{\mathrm{d}}\in M^{!}(\omega_{d})^{H_{\mathrm{d}}^{\prime}} such that 1 1 1 The factor defining \tilde{F}_{\mathrm{d}} in Theorem 4.4 in [ 10 ] should be \sqrt{2}^{24/\mathrm{d}} instead of \sqrt{2}^{\mathrm{d}} . \tilde{F}_{\mathrm{d}}(\tau)=q^{-1/\mathrm{d}}\phi_{\mathrm{d}}+\delta_{\mathrm{d}=1}24\phi_{L+\left(\begin{smallmatrix}0&1/2\\ 0&0\end{smallmatrix}\right)}+O(q^{1/(2\mathrm{d})}), and the divisor of its Borcherds lifting \Psi_{\mathrm{d}}(z)=\Psi(z_{1},z_{2},\tilde{F}_{\mathrm{d}}) (see e.g. [ 10 , section 4.1] ) is given by \mathrm{Div}\Psi_{\mathrm{d}}(z)=\sum_{j\in\mathbb{Z}/\mathrm{d}\mathbb{Z}}a_{\mathrm{d}}(j)X_{\mathrm{d}}^{\Delta}(j), where X^{\Delta}_{\mathrm{d}}(j)\subset X^{\prime}_{\mathrm{d}} is defined in ( 2.33 ). Finally, we have (3.2) \left(\mathfrak{f}_{2}(z_{1})^{24/s}-\mathfrak{f}_{2}(z_{2})^{24/s}\right)^{s}=\prod_{\mathrm{d}\mid s}\Psi_{\mathrm{d}}(z_{1},z_{2}) for every s|24 . Remark 3.2 . We can invert equation ( 3.2 ) and express \Psi_{\mathrm{d}}(z_{1},z_{2})=\prod_{s\mid\mathrm{d}}\left(\mathfrak{f}_{2}(z_{1})^{24/s}-\mathfrak{f}_{2}(z_{2})^{24/s}\right)^{s\cdot\mu(\mathrm{d}/s)}. It is easy to check that the coefficients a_{\mathrm{d}}(j) are multiplicative, i.e. (3.3) a_{\mathrm{d}}(j)=\prod_{p\text{ prime}}a_{\mathrm{d}_{p}}(j\bmod\mathrm{d}_{p}). Therefore, we have \phi_{\mathrm{d}}=\otimes_{p<\infty}\phi_{\mathrm{d},p} with \phi_{\mathrm{d},p}\in S(L_{\mathrm{d}}\otimes\mathbb{Z}_{p}) given by (3.4) \phi_{\mathrm{d},p}:=\sum_{j\in\mathbb{Z}/\mathrm{d}_{p}\mathbb{Z}}a_{\mathrm{d}_{p}}(j)\left(\sum_{\mu\in(\frac{1}{\mathrm{d}}T^{j}\Gamma^{\mathrm{d}}/L)\otimes\mathbb{Z}_{p}}\phi_{\mu}\right),~\text{ when }p\mid 6, and the characteristic function of L_{\mathrm{d}}\otimes\mathbb{Z}_{p}=M_{2}(\mathbb{Z}_{p}) when p\nmid 6 . So as a function on \frac{1}{\mathrm{d}}L\otimes\mathbb{Z}_{p} , we can write (3.5) \begin{split}\phi_{\mathrm{d}}\left(\frac{\mu}{\mathrm{d}}\right)&=\phi_{\mathrm{d},2}\left(\frac{\mu}{\mathrm{d}}\right)\phi_{\mathrm{d},3}\left(\frac{\mu}{\mathrm{d}}\right)\prod_{p\nmid 6}\phi_{\mathrm{d},p}(\mu),\\ \phi_{\mathrm{d},2}\left(\frac{\mu}{\mathrm{d}}\right)&=\phi_{\mathrm{d}_{2},2}\left(\frac{\mu}{\mathrm{d}_{2}}\right),~\phi_{\mathrm{d},3}\left(\frac{\mu}{\mathrm{d}}\right)=\phi_{\mathrm{d}_{3},3}\left(\frac{\mu}{\mathrm{d}_{3}}\right).\end{split} Furthermore, one can use \mathrm{d}_{2}^{2}\equiv 1\bmod{3} and \mathrm{d}_{3}^{2}\equiv 1\bmod 8 to check that this identification intertwines \omega_{\mathrm{d},3} and \omega_{\mathrm{d}_{3},3} . 3.2. Incoherent Eisenstein Series Write k=\mathbb{Q}(\sqrt{D}) and let \epsilon=\epsilon_{k/\mathbb{Q}} the Dirichlet character associated to the quadratic field k . Recall that \mathcal{N}=(\mathcal{N}_{\mathrm{d}},Q_{\mathrm{d}})\cong(\mathfrak{a},-\frac{\mathrm{d}t}{a}{\mathrm{Nm}}) with \mathrm{d}\mid 24 . Write \hat{\mathfrak{a}}=\hat{\delta}\hat{\mathcal{O}}_{4D_{0}} with \hat{\delta}\overline{\hat{\delta}}=au for some u\in\hat{\mathcal{O}}_{4D}^{\times} . Then (\hat{\mathcal{N}},Q_{\mathrm{d}})\cong(\hat{\mathcal{O}}_{4D_{0}},\kappa{\mathrm{Nm}}) with \kappa=-\mathrm{d}tu\in\hat{\mathbb{Z}} . Let dx be the Haar measure on k_{D,\mathbb{A}_{f}} such that \hbox{Vol}(\hat{\mathcal{O}}_{D},dx)=|D|_{\mathbb{A}_{f}}^{\frac{1}{2}}=|D|^{-1/2} . This Haar measure depends only on the quiadratic field k (not the choice of D ). Notice that \mathcal{N}^{\prime}/\mathcal{N}\cong\mathfrak{a}^{\prime}/\mathfrak{a} and U=\mathcal{N}\otimes_{\mathbb{Z}}\mathbb{Q} . Associated to the lattice \mathcal{N} is a vector-valued incoherent Eisenstein series of weight 1 with Weil representation \omega_{\mathcal{N}} : (3.6) E(\tau,s)=E_{\mathcal{N}}(\tau,s)=\sum_{\mu\in\mathcal{N}^{\prime}/\mathcal{N}}E(\tau,s,\mu)\phi_{\mu}. Due to the negative sign of its functional equation, E(\tau,s,\mu) vanishes identically at s=0 . Its derivative E^{\prime}(\tau,s,\mu) at s=0 is a real-analytic modular form of weight 1, and has the following holomorphic part ( [ 2 , Proposition 4.6] , [ 14 , Remark 4.3] ) (3.7) \mathcal{E}_{\mathcal{N}}(\tau,\mu)=\sum_{m\geq 0}\kappa_{\mathcal{N}}(m,\mu)q^{m}, where for (m,\mu)\neq(0,0) (3.8) \begin{split}\kappa_{\mathcal{N}}(m,\mu)&:=-2\pi(t\mathrm{d})^{-1}\frac{d}{ds}\left(\prod_{p<\infty}W_{m,p}(s,\mu;{\mathcal{N}})\right)\mid_{s=0},\\ W_{m,p}(s,\mu;{\mathcal{N}})&:=\int_{\mathbb{Q}_{p}}\int_{\mu+\mathcal{O}_{4D_{0},p}}\psi(b\kappa x\bar{x})\psi(-mb)|a(wn(b))|_{p}^{s}dxdb.\end{split} The constant t\mathrm{d} comes from the normalization \hbox{Vol}(\mathcal{N}_{p},d_{\mathcal{N}}x)=|\kappa|_{p}\hbox{Vol}(\mathcal{N}_{p},dx). and \prod_{p<\infty}|\kappa|_{p}=\prod_{p<\infty}|t\mathrm{d}|_{p}=(t\mathrm{d})^{-1} . On the other hand, \kappa_{\mathcal{N}}(0,0) is a suitable constant such that E^{\prime}(\tau,0,\mu)-\mathcal{E}_{\mathcal{N}}(\tau,\mu)-\frac{\phi_{\mu}(0)}{2}\log v decays exponentially as v\to\infty . Assume that m>0 , let \hbox{Diff}(m,\mathcal{N}) be the set of finite primes p such that U_{p}=\mathcal{N}\otimes_{\mathbb{Z}}\mathbb{Q}_{p} does not represent m , i.e., \epsilon_{p}(\kappa m)=-1 . Then |\hbox{Diff}(m,\mathcal{N})|\geq 1 is odd, and for every p\in\hbox{Diff}(m,\mathcal{N}) , we have W_{m,p}(0,\mu,\mathcal{N})=0 . The coefficient \kappa_{\mathcal{N}}(m,\mu) is then non-zero only if |\mathrm{Diff}(m,{\mathcal{N}})|=1 . For convenience later, we also denote for M\in\mathbb{N} and (m,\mu)\neq(0,0) (3.9) \begin{split}E^{(M)}_{m}(s,\mu;{\mathcal{N}})&:=\prod_{p\nmid M\infty}W_{m,p}(s,\mu;{\mathcal{N}}),\\ \kappa^{(M)}_{\mathcal{N}}(m,\mu)&:=\frac{d}{ds}\left(E^{(M)}_{m}(s,\mu;{\mathcal{N}})\right)\mid_{s=0}=\frac{d}{ds}\left(\prod_{p<\infty,~p\nmid M}W_{m,p}(s,\mu;{\mathcal{N}})\right)\mid_{s=0},\end{split} which is independent of the local component of \mu at places dividing M . Let \rho(n) . \rho_{p}(n) , and \rho^{(M)}(n) be as in the introduction, and define for \ell\nmid 6D , (3.10) \rho^{\prime}_{p}(m):=2\sum_{j\geq 1}\rho_{p}(m/p^{2j-1})=\begin{cases}\sum_{j\geq 1}\rho_{p}(m/p^{j})=o_{p}(m)+1&\text{if }p\in\mathrm{Diff}(m,{\mathcal{N}}_{1}),\\ 0&\text{otherwise.}\end{cases} The following results are well known (see for example [ 8 ] , [ 9 , Theorem 2.4] ) and can also be obtaining by by specializing the formulas in Section 5.1 to \hat{\mathcal{N}} , \Delta=D_{0} and \kappa=-dtu , u\in\hat{\mathbb{Z}}^{\times} with ua\in{\mathrm{Nm}}_{k/\mathbb{Q}}\mathbb{A}_{k,f}^{\times} . Proposition 3.3 . Let the notation be as above and suppose that D_{1} and D_{2} satisfy ( 1.4 ). When 6D\mid M , for \mu\in\mathcal{N}^{\prime}/\mathcal{N} we have E_{m}^{(M)}(s,\mu;{\mathcal{N}})=\frac{1}{L^{(M)}(s+1,\epsilon)}\begin{cases}\prod_{p\nmid M}\sum_{0\leq n\leq o_{p}(m)}(\epsilon(p)p^{-s})^{n}&m\neq 0,\\ \frac{L^{(M)}(s,\epsilon)}{2}&m=0.\end{cases} In particular for m>0 , we have E_{m}^{(M)}(0,\mu;{\mathcal{N}})=\frac{\sqrt{|D_{k}|}}{\pi h_{k}}\prod_{p\mid M}L_{p}(1,\epsilon)\rho^{(M)}(m). It is zero if and only if there exists a prime \ell\nmid M such that \rho_{\ell}(m)=0 , i.e., \ell\in\mathrm{Diff}(m,\mathcal{N}) . In such a case, its derivative is given by E_{m}^{(M),\prime}(0,\mu;{\mathcal{N}})=\frac{\log\ell}{L^{(M)}(1,\epsilon)}\rho^{(M\ell)}(m)\frac{1+o_{\ell}(m)}{2}=\frac{\log\ell}{L^{(M)}(1,\epsilon)}\sum_{j\geq 1}\rho^{(M)}(m/\ell^{j}). Remark 3.4 . Since E^{(M)}_{m}(s,\mu;{\mathcal{N}}) only depends on k and M when 6D\mid M , we will simply write E^{(M)}_{m}(s)=E^{(M)}_{m}(s,\mu;{\mathcal{N}}) in that case. 3.3. Small CM value formula Let Z=(z_{1},z_{2}) be a small CM point on X_{\mathrm{d}}^{\prime} as in section 2.4 , and let U_{\mathbb{R}}=U\otimes\mathbb{R} be the associated negative plane as in ( 2.11 ). Let Z(U)=\{Z^{\pm}\}\times T(\mathbb{Q})\backslash T(\mathbb{A}_{f})/K_{\mathrm{d},T} be the associated CM cycle with T the torus in ( 2.18 ) and K_{\mathrm{d},T}\subset T(\mathbb{A}_{f}) the compact subgroup in Lemma 2.14 . Suppose D_{j} satisfy ( 1.4 ) and \mathfrak{a}_{j}=a_{j}\mathbb{Z}[z_{j}] are \mathcal{O}_{D_{j}} -ideals with z_{1},z_{2} chosen as in Lemma 2.6 . Then \left(\mathfrak{f}_{2}(z_{1})^{24/s}-\mathfrak{f}_{2}(z_{2})^{24/s}\right)^{s}=\left(f(\mathfrak{a}_{1})^{24/s}-f(\mathfrak{a}_{2})^{24/s}\right)^{s} only depends on the classes {\mathfrak{A}}_{j} of \mathfrak{a}_{j} in \operatorname{Cl}(D_{j}) for every s\mid 24 . In this case, we denote (3.11) \Psi_{\mathrm{d}}({\mathfrak{A}}_{1},{\mathfrak{A}}_{2}):=\Psi_{\mathrm{d}}(z_{1},z_{2})=\prod_{s\mid\mathrm{d}}\left(\mathfrak{f}_{2}(z_{1})^{24/s}-\mathfrak{f}_{2}(z_{2})^{24/s}\right)^{s\cdot\mu(\mathrm{d}/s)}. for \mathrm{d}\mid 24 . Using Lemma 2.14 , we can express the value of \Psi_{\mathrm{d}} at the small CM point Z(U) in the following way. Lemma 3.5 . Let the notation be as above. Suppose {\mathfrak{A}}_{1}\neq{\mathfrak{A}}_{2} , which is automatic if D_{1}\neq D_{2} , then we have \sum_{{\mathfrak{B}}\in\operatorname{Cl}(D)}\log|\Psi_{\mathrm{d}}({\mathfrak{B}}{\mathfrak{A}}_{1},{\mathfrak{B}}{\mathfrak{A}}_{2})|=\frac{1}{2}\log|\Psi_{\mathrm{d}}(Z(U))|, where {\mathfrak{B}}\in\operatorname{Cl}(D) is viewed as a class in \operatorname{Cl}(D_{j}) via the natural surjection \operatorname{Cl}(D)\to\operatorname{Cl}(D_{j}) . The following theorem belongs to Schofer [ 11 ] (see also [ 1 , Theorem 1.2] for generalization) Theorem 3.6 . Let the notation be as above, and let \theta_{\mathcal{P}}(\tau)=\sum_{\begin{subarray}{c}\mu\in\mathcal{P}^{\prime}/\mathcal{P}\\ m\geq 0\end{subarray}}a_{\mathcal{P}}(m,\mu)q^{m}\phi_{\mu} be the holomorphic weight 1 vector-valued modular form of (\operatorname{SL}_{2}(\mathbb{Z}),\omega_{\mathcal{P}}) associated to \mathcal{P} , where a_{\mathcal{P}}(m,\mu):=|{\mathcal{P}}_{m,\mu}|=|\{\alpha\in\mu+{\mathcal{P}}:\,Q_{\mathcal{P}}(\alpha)=m\}|. Suppose {\mathfrak{A}}_{1}\neq{\mathfrak{A}}_{2} , then we have (3.12) -\sum_{{\mathfrak{A}}\in\operatorname{Cl}(\mathcal{O}_{D})}\log|\Psi_{\mathrm{d}}({{\mathfrak{A}}{\mathfrak{A}}_{1}},{{\mathfrak{A}}{\mathfrak{A}}_{2}})|=\frac{1}{4}h_{D}\mathrm{CT}\langle\tilde{F}_{\mathrm{d}},\theta_{\mathcal{P}}\mathcal{E}_{\mathcal{N}}\rangle=\frac{1}{4}h_{D}\sum_{\begin{subarray}{c}m,\tilde{m}\in\mathbb{Q},\\ m+\tilde{m}={1}\\ m,\tilde{m}\geq 0\end{subarray}}C_{\mathrm{d}}(\tilde{m},m), where h_{D} is the ring class number of \mathcal{O}_{D} given by [ 3 , Theorem 7.24] (3.13) \frac{h_{D}}{\sqrt{|D|}}=\frac{h_{k}}{\sqrt{|D_{k}|}}\prod_{p\mid D}L_{p}(1,\epsilon)^{-1} and (3.14) \begin{split}C_{\mathrm{d}}(\tilde{m},m)&:=\sum_{\mu\in\mathcal{N}^{\prime}_{1}/\mathrm{d}\mathcal{N},~\tilde{\mu}\in\mathcal{P}^{\prime}_{1}/\mathrm{d}\mathcal{P}}\phi_{\mathrm{d}}\left(\frac{\tilde{\mu}}{\mathrm{d}},\frac{\mu}{\mathrm{d}}\right)a_{\mathcal{P}_{\mathrm{d}}}\left(\frac{\tilde{m}}{\mathrm{d}},\frac{\tilde{\mu}}{\mathrm{d}}\right)\kappa_{\mathcal{N}_{\mathrm{d}}}\left(\frac{m}{\mathrm{d}},\frac{\mu}{\mathrm{d}}\right).\end{split} Proof. By Theorem 3.1 , \Psi_{d}(z_{1},z_{2}) is a Borcherds lift of \tilde{F}_{d} on X_{d}^{\prime} . Then applying [ 11 , Corollary 1.2] or [ 1 , Theorem 1.3] to \Phi_{d}(z_{1},z_{2}) over the CM cycle Z(U) and using the isomorphisms \mathcal{N}_{1}^{\prime}/d\mathcal{N}\cong\mathcal{N}^{\prime}/\mathcal{N} and \mathcal{P}_{1}^{\prime}/d\mathcal{P}\cong\mathcal{P}^{\prime}/\mathcal{P} , one obtains the first equality in ( 3.12 ). The second follows from the description of the principal part of \tilde{F}_{\mathrm{d}} in Theorem 3.1 . Note that the constant term of \tilde{F}_{\mathrm{d}} is trivial unless \mathrm{d}=1 . In that case, one can use Proposition 2.10 to check that the constant term of \theta_{\mathcal{P}}\mathcal{E}_{\mathcal{N}} at the coset L+\left(\begin{smallmatrix}0&1/2\\ 0&0\end{smallmatrix}\right) is trivial. So the only the first Fourier coefficient of \theta_{\mathcal{P}}\mathcal{E}_{\mathcal{N}} contributes to \mathrm{CT}\langle\tilde{F}_{\mathrm{d}},\theta_{\mathcal{P}}\mathcal{E}_{\mathcal{N}}\rangle . ∎ Lemma 3.7 . For any \mathrm{d}\mid 24 and \tilde{m},m\in\mathbb{Q}_{\geq 0} such that \tilde{m}+m=1 , the quantity C_{\mathrm{d}}(\tilde{m},m) defined in ( 3.14 ) can be expressed as (3.15) C_{\mathrm{d}}(\tilde{m},m)=-2\pi\frac{d}{ds}\left(E^{(6D)}_{m}\left(s\right)\sum_{\begin{subarray}{c}\alpha\in\frac{1}{\sqrt{D}}\tilde{\mathfrak{a}}_{0}\\ \frac{t}{a}{\mathrm{Nm}}(\alpha)=\tilde{m}\end{subarray}}\prod_{p\mid 6D}\delta_{p}\left(s,m,{\alpha}{};\mathrm{d}_{p}\right)\right)\mid_{s=0}, where for p\mid 6D (3.16) \begin{split}\delta_{p}(s,m,{\alpha};\mathrm{d}_{p})&:=p^{-o_{p}(t\mathrm{d})}\sum_{\mu\in\frac{1}{\sqrt{D}}\mathfrak{a}_{0}/\mathrm{d}_{p}\mathfrak{a}\otimes\mathbb{Z}_{p}}\phi_{\mathrm{d}_{p},p}\left(\frac{{\alpha}}{\mathrm{d}_{p}},\frac{\mu}{\mathrm{d}_{p}}\right)W_{m/\mathrm{d}_{p},p}\left(s,\frac{\mu}{\mathrm{d}_{p}};{\mathcal{N}}_{\mathrm{d}_{p}}\right).\end{split} In particular for m>0 , C_{\mathrm{d}}(\tilde{m},m)=0 if \#\mathrm{Diff}(m,{\mathcal{N}}_{1})\neq 1 . Proof. First of all, we can apply Remark 3.2 and ( 3.8 ) to write \displaystyle C_{\mathrm{d}}(\tilde{m},m) \displaystyle=\sum_{\mu\in\frac{1}{2\sqrt{D}}\mathfrak{a}/\mathrm{d}\mathfrak{a}}\sum_{\begin{subarray}{c}\alpha\in\frac{1}{2\sqrt{D}}\tilde{\mathfrak{a}}\\ \frac{t}{a}{\mathrm{Nm}}(\alpha)=\tilde{m}\end{subarray}}\phi_{\mathrm{d}}\left(\frac{\alpha}{\mathrm{d}},\frac{\mu}{\mathrm{d}}\right)\kappa_{\mathcal{N}_{\mathrm{d}}}\left(\frac{m}{\mathrm{d}},\frac{\mu}{\mathrm{d}}\right) \displaystyle=-2\pi(t\mathrm{d})^{-1}\frac{d}{ds}\left(\sum_{\begin{subarray}{c}\alpha\in\frac{1}{2\sqrt{D}}\tilde{\mathfrak{a}}\\ \frac{t}{a}{\mathrm{Nm}}(\alpha)=\tilde{m}\end{subarray}}\prod_{p<\infty}\sum_{\mu\in\frac{1}{2\sqrt{D}}\mathfrak{a}/\mathrm{d}\mathfrak{a}\otimes\mathbb{Z}_{p}}\phi_{\mathrm{d},p}\left(\frac{\alpha}{\mathrm{d}},\frac{\mu}{\mathrm{d}}\right)W_{m,p}\left(s,\frac{\mu}{\mathrm{d}};{\mathcal{N}}_{\mathrm{d}}\right)\right)\mid_{s=0} If p\nmid 6D , then \frac{1}{2\sqrt{D}}\mathfrak{a}/\mathrm{d}\mathfrak{a}\otimes\mathbb{Z}_{p} is trivial, W_{m,p}(s,\mu;{\mathcal{N}}_{\mathrm{d}}) is independent of \mu and we obtain \prod_{p\nmid 6D}\sum_{\mu\in\frac{1}{2\sqrt{D}}\mathfrak{a}/\mathrm{d}\mathfrak{a}\otimes\mathbb{Z}_{p}}\phi_{\mathrm{d},p}\left(\frac{\alpha}{\mathrm{d}},\frac{\mu}{\mathrm{d}}\right)W_{m/\mathrm{d},p}(s,\mu;{\mathcal{N}}_{\mathrm{d}})=E^{(6D)}_{m}(s). If p\mid 6D , then \frac{1}{2\sqrt{D}}\mathfrak{a}/\mathrm{d}\mathfrak{a}\otimes\mathbb{Z}_{p}=\frac{1}{2\sqrt{D}}\mathfrak{a}/\mathrm{d}_{p}\mathfrak{a}\otimes\mathbb{Z}_{p} and \phi_{\mathrm{d},p}(\tfrac{\alpha}{\mathrm{d}},\frac{\mu}{\mathrm{d}})=\phi_{\mathrm{d}_{p},p}(\frac{\alpha}{\mathrm{d}_{p}},\frac{\mu}{\mathrm{d}_{p}}) by Remark 3.2 as \mathrm{d}\mid 24 . Furthermore, the definition of W_{m,p} in ( 3.8 ) directly implies that W_{m/\mathrm{d},p}(s,\mu/\mathrm{d};{\mathcal{N}}_{\mathrm{d}})=W_{m/\mathrm{d}_{p},p}(s,\mu/\mathrm{d}_{p};{\mathcal{N}}_{\mathrm{d}_{p}}) . Finally from ( 5.16 ), we can replace \frac{\mathfrak{a}}{2} and \frac{\tilde{\mathfrak{a}}}{2} by {\mathfrak{a}_{0}} and {\tilde{\mathfrak{a}}_{0}} respectively. Putting these together then finishes the proof. ∎ For convenience, we define (3.17) \begin{split}L_{p}(s+1,\epsilon)\frac{\delta_{p}(s,m,\alpha;\mathrm{d}_{p})}{L_{p}(s,\epsilon)^{\delta_{m=0}}}&=\delta_{p}(m,\alpha;\mathrm{d}_{p})+\delta_{p}^{\prime}(m,\alpha;\mathrm{d}_{p})(\log p\cdot s)+O(s^{2})\end{split} when p\mid 6 , and (3.18) \begin{split}p^{o_{p}(D)/2}\frac{\delta_{p}(s,m,{\alpha};1)}{L_{p}(s,\epsilon)^{\delta_{m=0}}}&=\delta_{p}(-D_{0}tm,\sqrt{D}{\alpha})+\delta_{p}^{\prime}(-D_{0}tm,\sqrt{D}{\alpha})(\log p\cdot s)+O(s^{2})\end{split} when p\mid D . We can now expand the expression for C_{\mathrm{d}}(\tilde{m},m) in ( 3.15 ) in terms of the quantities in ( 3.17 ) and ( 3.18 ) using product rule as follows. Proposition 3.8 . For m\geq 0 , define (3.19) \begin{split}C_{\mathrm{d},\ell}(\tilde{m},m):=-\frac{2}{{h_{D}}}&\rho^{(6D\ell)}(m)\sum_{\begin{subarray}{c}\tilde{\alpha}\in\tilde{\mathfrak{a}}_{0}\\ \frac{1}{a}{\mathrm{Nm}}(\tilde{\alpha})=-D_{0}t\tilde{m}\end{subarray}}\prod_{p\mid 6,~p\neq\ell}\delta_{p}\left(m,\frac{\tilde{\alpha}}{\sqrt{D}};\mathrm{d}_{p}\right)\\ &\cdot\prod_{p\mid D,~p\neq\ell}\delta_{p}(-D_{0}tm,\tilde{\alpha})\begin{cases}\rho^{\prime}_{\ell}(m),&\text{ if }\ell\nmid 6D,\\ \delta^{\prime}_{\ell}(-D_{0}tm,\tilde{\alpha}),&\text{ if }\ell\mid D,\\ \delta^{\prime}_{3}(m,\tilde{\alpha}/\sqrt{D};\mathrm{d}_{3}),&\text{ if }\ell=3.\end{cases}\end{split} where \delta_{p} and \delta_{\ell}^{\prime} are defined in ( 3.17 ) and ( 3.18 ). Then (3.20) C_{\mathrm{d}}(\tilde{m},m)=\sum_{\ell<\infty}C_{\mathrm{d},\ell}(\tilde{m},m)\log\ell. Proof. This follows directly from Propositon 3.3 and Lemma 3.7 . ∎ The values of \delta_{p} and \delta^{\prime}_{p} will be computed in Section 5 , from which it is clear that for fixed \mathrm{d},\tilde{m},m , there is at most one \ell such that C_{\mathrm{d},\ell}(\tilde{m},m)\neq 0 . 4. Statement and Proof of Main Result 4.1. The main formula Now we are ready to state and prove the main general formula of this paper. Theorem 4.1 . Let s\mid 24 and {\mathfrak{A}}_{i}\in\operatorname{Cl}(D_{i}) with D_{i} any discriminant satisfying ( 1.4 ) such that \sqrt{D_{1}D_{2}}\in\mathbb{Z} . Denote s^{\prime}:=\gcd(s,3^{1-(\tfrac{D}{3})}) , D_{0}:=\mathrm{gcd}(D_{1},D_{2})<0 , D:=\mathrm{lcm}(D_{1},D_{2})=D_{0}t^{2} for some t\in\mathbb{N} . Recall that \tilde{\mathfrak{a}}_{0} is the \mathcal{O}_{D_{0}} integral ideal defined in ( 2.21 ), and represents the class of \mathfrak{A}_{1}^{-1}\mathfrak{A}_{2}\in\operatorname{Cl}(D_{0}) . Then for a prime number \ell , (4.1) \begin{split}&2\operatorname{ord}_{\ell}\left(\prod_{{\mathfrak{B}}\in\operatorname{Cl}(D)}(f({\mathfrak{A}}_{1}{\mathfrak{B}})^{24/s}-f({\mathfrak{A}}_{2}{\mathfrak{B}})^{24/s})\right)\\ &=\sum_{\begin{subarray}{c}n,\tilde{n}\in\mathbb{Z}_{\geq 0}\\ n+\tilde{n}=-D_{0}t\end{subarray}}\sum_{\begin{subarray}{c}r\mid(s/s_{\ell}),~r>0\\ (s^{\prime}/s^{\prime}_{\ell})\mid r\\ \frac{n\tilde{n}}{4r^{2}}\equiv 19\bmod{\frac{s/s_{\ell}}{r}}\end{subarray}}\sum_{AB=2r}\rho^{(D\ell)}\left(\frac{n}{A^{2}}\right)\sum_{\begin{subarray}{c}\tilde{\alpha}\in\tilde{\mathfrak{a}}_{0}\\ \frac{{\mathrm{Nm}}(\tilde{\alpha})}{a}=\frac{\tilde{n}}{B^{2}}\end{subarray}}\prod_{p\mid D\text{ prime,}p\neq\ell}\delta_{p}(n,\tilde{\alpha})\cdot\begin{cases}\rho^{\prime}_{\ell}(n),&\ell\nmid 3D,\\ \delta^{\prime}_{\ell}(n,\tilde{\alpha}),&\ell\mid D,\\ \rho^{\prime}_{3s_{3}}(n),&\ell=3,\end{cases}\end{split} where \delta_{p},\delta_{p}^{\prime} are defined in ( 3.17 ) and ( 3.18 ), and \rho^{(M)}(x) is given by ( 1.7 ). In particular, this formula depends only on the class of \tilde{\mathfrak{a}}_{0} in \operatorname{Cl}(D) . Proof. Let z_{i}\in\mathbb{H} be CM points associated to {\mathfrak{A}}_{i} , satisfying Lemma 2.6 . By ( 3.2 ), Lemma 3.5 and Theorem 3.6 , we can write s\log\left|\prod_{{\mathfrak{B}}\in\operatorname{Cl}(D)}(f({\mathfrak{A}}_{1}{\mathfrak{B}})^{24/s}-f({\mathfrak{A}}_{2}{\mathfrak{B}})^{24/s})\right|=-\frac{1}{4}h_{D}\sum_{\begin{subarray}{c}m,\tilde{m}\in\mathbb{Q}_{\geq 0},\\ m+\tilde{m}={1}\end{subarray}}\sum_{\mathrm{d}\mid s}C_{\mathrm{d}}(\tilde{m},m), where C_{\mathrm{d}}(\tilde{m},m) is defined in ( 3.14 ) for \mathfrak{a}_{i}=a_{i}\mathbb{Z}[z_{i}] . By Prop. 3.8 , we can then write \displaystyle 2\operatorname{ord}_{\ell} \displaystyle\left(\prod_{{\mathfrak{B}}\in\operatorname{Cl}(D)}(f({\mathfrak{A}}_{1}{\mathfrak{B}})^{24/s}-f({\mathfrak{A}}_{2}{\mathfrak{B}})^{24/s})\right)=-\frac{h_{D}}{2}\sum_{\begin{subarray}{c}m,\tilde{m}\in\mathbb{Q}_{\geq 0},\\ m+\tilde{m}={1}\end{subarray}}\sum_{\mathrm{d}\mid s}C_{\mathrm{d},\ell}(\tilde{m},m) By the calculations in Section 5 (in particular Prop. 5.9 , 5.11 and 5.20 ), we see that C_{\mathrm{d},\ell}(\tilde{m},m) vanishes when n,\tilde{n}\not\in\mathbb{Z} or \tilde{\alpha}\not\in\tilde{\mathfrak{a}}_{0} , where we denote n:=-D_{0}tm,~\tilde{n}:=-D_{0}t\tilde{m}. In particular, Propositions 5.9 and 5.11 give us \displaystyle\frac{-s^{-1}h_{D}}{2}\sum_{\mathrm{d}\mid s}C_{\mathrm{d},\ell}\left(-\frac{\tilde{n}}{D_{0}t},-\frac{n}{D_{0}t}\right) \displaystyle=\rho^{(6D\ell)}(n)\sum_{\begin{subarray}{c}\tilde{\alpha}\in\tilde{\mathfrak{a}}_{0}\\ \frac{1}{a}{\mathrm{Nm}}(\tilde{\alpha})=\tilde{n}\end{subarray}}\prod_{p\mid 6,~p\neq\ell}\sum_{\begin{subarray}{c}s^{\prime}_{p}\mid r_{p}\mid s_{p}\\ \frac{n\tilde{n}}{r_{p}^{2}}\equiv 19\bmod{\frac{s_{p}}{r_{p}}}\end{subarray}}\sum_{AB=2r_{p}}\rho_{p}\left(\frac{n}{A^{2}}\right)\mathds{1}_{\tilde{\mathfrak{a}}_{0}}\left(\frac{\tilde{\alpha}}{B}\right) \displaystyle\quad\times\prod_{p\mid D,~p\neq\ell}\delta_{p}(n,\tilde{\alpha})\begin{cases}\rho^{\prime}_{\ell}(n),&\text{ if }\ell\nmid 6D,\\ \rho^{\prime}_{3s_{\ell}}(n),&\text{ if }\ell=3,\\ \delta^{\prime}_{\ell}(n,\tilde{\alpha}),&\text{ if }\ell\mid D.\end{cases} \displaystyle=\sum_{\begin{subarray}{c}r\mid(s/s_{\ell})\\ (s^{\prime}/s^{\prime}_{\ell})\mid r\\ \frac{n\tilde{n}}{r^{2}}\equiv 19\bmod{\frac{s}{r}}\end{subarray}}\sum_{AB=2r}\rho^{(D\ell)}\left(\frac{n}{A^{2}}\right)\sum_{\begin{subarray}{c}\tilde{\alpha}\in B\tilde{\mathfrak{a}}_{0}\\ \frac{1}{a}{\mathrm{Nm}}(\tilde{\alpha})=-D_{0}t\tilde{m}\end{subarray}}\prod_{p\mid D,~p\neq\ell}\delta_{p}(n,\tilde{\alpha})\begin{cases}\rho^{\prime}_{\ell}(n),&\text{ if }\ell\nmid 6D,\\ \rho^{\prime}_{3s_{\ell}}(n),&\text{ if }\ell=3,\\ \delta^{\prime}_{\ell}(n,\tilde{\alpha}),&\text{ if }\ell\mid D.\end{cases} By Proposition 5.20 , we have \delta_{p}^{(^{\prime})}(n,{\tilde{\alpha}})=\delta_{p}^{(^{\prime})}(n,{\tilde{\alpha}}/B) for all \tilde{\alpha}\in B\tilde{\mathfrak{a}}_{0} and p\mid D . Summing over all n\in\mathbb{Z}_{\geq 0} then gives ( 4.1 ). ∎ Corollary 4.2 . Any prime factor of {\rm disc}(D,s,[\mathfrak{a}]) is no larger than |D| . Proof. Notice by ( 4.1 ) that the argument n is no larger than |D| . Also by the definition of \rho_{\ell}^{\prime}(n) , one can tell that \rho_{\ell}^{\prime}(n)=0 for \ell>n . Therefore, one must have \ell\leq|D| . ∎ 4.2. The Yui-Zagier conjecture on discriminant Throughout this section, we let D<0 be a fundamental discriminant satisfying ( 1.4 ). For any \mathcal{O}_{D} -integral ideal \mathfrak{a} , let c(\mathfrak{a}) denote the content of \mathfrak{a} , i.e. largest positive integer such that \mathfrak{a}/c(\mathfrak{a}) is still an \mathcal{O}_{D} -integral ideal. For an integer n , we define (4.2) S(D,n)=\{p<\infty\text{ prime}:\,\epsilon_{p}(n)=-1\}. Here \epsilon_{p} is the quadratic character of \mathbb{Q}_{p}^{\times} associated to k_{D,p} . Notice that when n>0 , S(D,-n) has odd cardinality and equals to \mathrm{Diff}(-n/(D_{0}t),{\mathcal{N}}_{1}) from Section 3.2 with D=D_{0} and t=1 . We now define (4.3) w(\ell,n)=w_{D}(\ell,n):=\begin{cases}\sigma(\hbox{gcd}(n,|D|/\hbox{gcd}(\ell,|D|))),&\text{if }S(D,-n)=\{\ell\},\\ 0&\text{otherwise,}\end{cases} where \sigma is the divisor function \sigma(n)=\sum_{d|n}1 . As a function in n , w(\ell,n) is in fact defined on (\mathbb{Q}^{\times}\cap\prod_{p\mid D}\mathbb{Z}_{p}^{\times})/({\mathrm{Nm}}(k^{\times})\cap\prod_{p\mid D}\mathbb{Z}_{p}^{\times}) . Theorem 4.3 . Let D<0 be a fundamental discriminant satisfying ( 1.4 ), and for s\mid 24 and each non-trivial class {\tilde{\mathfrak{A}}}=[\tilde{\mathfrak{a}}]\in\operatorname{Cl}(D) with {\rm Nm}(\tilde{\mathfrak{a}})=a coprime to D , denote (4.4) \mathrm{disc}(D;s,{\tilde{\mathfrak{A}}}):=\prod_{{\mathfrak{A}}\in\operatorname{Cl}(D)}(f({\mathfrak{A}})^{24/s}-f({\mathfrak{A}}{\tilde{\mathfrak{A}}})^{24/s})\in k_{D}, so that the discriminant {\rm disc}(D;s) of f(\mathcal{O}_{D})^{24/s} is given by {\rm disc}(D;s)=\prod_{\begin{subarray}{c}\tilde{\mathfrak{A}}\in{\rm Cl}(D)\\ \tilde{\mathfrak{A}}\neq[\mathcal{O}_{D}]\end{subarray}}{\rm disc}(D;s,\tilde{\mathfrak{A}}). Then the following hold. (1) For each prime \ell split in k_{D} , we have {\rm ord}_{\ell}({\rm disc}(D;s,\tilde{\mathfrak{A}}))=0 . (2) For each prime \ell\neq 3 inert in k_{D} , \operatorname{ord}_{\ell}(\mathrm{disc}(D;s,{\tilde{\mathfrak{A}}}))=a_{\ell} is equal to the number of pairs of integral ideals (\mathfrak{b}_{1},\mathfrak{b}_{2}) weighted by w(\ell,(|D|-{\rm Nm}(\mathfrak{b}_{2}))a) such that [\mathfrak{b}_{2}]=\tilde{\mathfrak{A}} , \ell^{j}{\rm Nm}(\mathfrak{b}_{1})+{\rm Nm}(\mathfrak{b}_{2})=|D| for some j>0 , and that \mathfrak{a}=(2s^{\prime})^{-1}\mathfrak{b}_{1}\mathfrak{b}_{2} is a nonzero integral ideal \mathfrak{a} satisfying that c(\mathfrak{a})\left(\ell\frac{{\rm Nm}(\mathfrak{a})}{c(\mathfrak{a})^{2}}+5\right)\equiv 0\pmod{\frac{s}{s^{\prime}}}, where s^{\prime}=\gcd\left(s,3^{1-\left(\frac{D}{3}\right)}\right) . (3) For \ell=3 inert in k_{D} , we have that \displaystyle{\rm ord}_{3}({\rm disc}(D;s,\tilde{\mathfrak{A}})) \displaystyle=\frac{1}{2}\sum_{\begin{subarray}{c}n\in\mathbb{N}\\ n+\tilde{n}=|D|\\ \tilde{n}\geq 0\end{subarray}}w(3,na)\sum_{\begin{subarray}{c}r\mid(s/s_{3}),~r>0\\ \frac{n\tilde{n}}{4r^{2}}\equiv 19\bmod{\frac{s/s_{3}}{r}}\end{subarray}}\sum_{\begin{subarray}{c}AB=2r\\ j\geq 1\end{subarray}}\left(\rho\left(\frac{n}{3^{j}A^{2}}\right)+\rho\left(\frac{n}{3^{j}s_{3}A^{2}}\right)\right)r_{{\tilde{\mathfrak{A}}}}\left(\frac{\tilde{n}}{B^{2}}\right), where \rho^{(M)}(n) is defined as in ( 1.7 ), s_{3} is the exact power of 3 dividing s . (4) For \ell|D , we have \operatorname{ord}_{\ell}(\mathrm{disc}(D;s,{\tilde{\mathfrak{A}}}))=\frac{1}{2}w(\ell,|D|a)+a_{\ell}. Here a_{\ell} is defined as in part (2). Proof. Take fundamental discriminants D=D_{1}=D_{2} in Theorem 4.1 . First, notice that the term n=0,\tilde{n}=-D is empty, since \tilde{\mathfrak{a}}_{0} is not principal and there is no \tilde{\alpha}\in\tilde{\mathfrak{a}}_{0} with norm a\tilde{n} . Now, using Prop. 5.20 and Remark 5.21 with t=1,r=r_{0}=1 , one can find that for p|D and n a positive integer, (4.5) \displaystyle\delta_{p}(n,\tilde{\alpha}) \displaystyle=\begin{cases}2&\mbox{if $\epsilon_{p}(-na)=1$ and $o_{p}(n)\geq 1$},\\ 1&\mbox{if $\epsilon_{p}(-na)=1$ and $o_{p}(n)=0$},\\ 0&\mbox{if $\epsilon_{p}(-na)=-1$},\end{cases} (4.6) \displaystyle\delta_{p}^{\prime}(n,\tilde{\alpha}) \displaystyle=\begin{cases}o_{p}(n)&\mbox{if $\epsilon_{p}(-na)=-1$,}\\ 0&\mbox{otherwise.}\end{cases} In particular, \delta^{\prime}_{p}(n,\tilde{\alpha})=\rho^{\prime}_{\ell}(n/D_{0}) . Then let \ell be a prime. If \ell is split, it is clear that by ( 3.10 ), the formula ( 4.1 ) implies that {\rm ord}_{\ell}({\rm disc}(D;s,\tilde{\mathfrak{A}}))=0 . This takes care Item (1). If \ell is either inert or ramified, it is not hard to see that \prod_{p|D\,\,prime,\,p\neq\ell}\delta_{p}(n,\tilde{\alpha})=w(\ell,(|D|-\tilde{n})a), where w(\ell,na) is defined as before Theorem 4.3 . Item (2) and (4): We apply ( 4.1 ) together with ( 4.5 ) and ( 3.10 ) to deduce that (4.7) \displaystyle\operatorname{ord}_{\ell}\mathrm{disc}(D;s,{\tilde{\mathfrak{A}}}) \displaystyle=\frac{1}{2}\sum_{\begin{subarray}{c}n>0,\tilde{n}\geq 0\\ n+\tilde{n}=-D\end{subarray}}w(\ell,(|D|-\tilde{n})a)\sum_{j\geq 1}\sum_{\begin{subarray}{c}r\mid s,~s^{\prime}\mid r\\ \frac{n\tilde{n}}{4r^{2}}\equiv 19\bmod{\frac{s}{r}}\end{subarray}}\sum_{AB=2r}\rho\left(\frac{n}{A^{2}\ell^{j}}\right)\sum_{\begin{subarray}{c}\tilde{\alpha}\in\tilde{\mathfrak{a}}_{0}\\ {\rm Nm}(\tilde{\alpha})/a=\tilde{n}/B^{2}\end{subarray}}1 \displaystyle=\sum_{\begin{subarray}{c}n>0,\tilde{n}\geq 0\\ n+\tilde{n}=-D\end{subarray}}w(\ell,(|D|-\tilde{n})a)\sum_{j\geq 1}\sum_{\begin{subarray}{c}r\mid s,~s^{\prime}\mid r\\ \frac{n\tilde{n}}{4r^{2}}\equiv 19\bmod{\frac{s}{r}}\end{subarray}}\sum_{AB=2r}\rho\left(\frac{n}{A^{2}\ell^{j}}\right)\sum_{\begin{subarray}{c}\mathfrak{b}\subset\mathcal{O}_{D_{0}}\\ {\rm Nm}(\mathfrak{b})=\tilde{n}/B^{2}\\ [\mathfrak{b}]=\tilde{\mathfrak{A}}\end{subarray}}1 \displaystyle=\sum_{\begin{subarray}{c}n>0,\tilde{n}\geq 0\\ n+\tilde{n}=-D\end{subarray}}w(\ell,(|D|-\tilde{n})a)\sum_{j\geq 1}\sum_{\begin{subarray}{c}r\mid s,~s^{\prime}\mid r\\ \frac{n\tilde{n}}{4r^{2}}+5\equiv 0\bmod{\frac{s}{r}}\end{subarray}}\sum_{\begin{subarray}{c}{\rm Nm}(\mathfrak{b}_{1})=n/\ell^{j}\\ {\rm Nm}(\mathfrak{b}_{2})=\tilde{n}\\ [{\mathfrak{b}}_{2}]=\tilde{\mathfrak{A}}\\ \mathfrak{b}_{1}\mathfrak{b}_{2}=2r\mathfrak{a}\end{subarray}}1. Note for \tilde{n}=0,n=-D , we have \rho(n/A^{2}\ell^{j})=0 for \ell\nmid D and all j\geq 1 . Otherwise for \ell\mid D , this term gives \frac{1}{2}w(\ell,|D|a) . Also, we can delete a from w(\ell,(|D|-\tilde{n})a) by choosing representative \tilde{\mathfrak{a}} of the class \tilde{\mathfrak{A}} having norm co-prime to \ell . Following the reasoning given in the remarks above [ 15 , Eq. ( 14_{?} )] , the rest of the summation amounts to counting the pairs of integral ideals (\mathfrak{b}_{1},\mathfrak{b}_{2}) weighted by w(\ell,(|D|-{\rm Nm}(\mathfrak{b}_{2}))a) such that [\mathfrak{b}_{2}]=\tilde{\mathfrak{A}} , \ell^{j}{\rm Nm}(\mathfrak{b}_{1})+{\rm Nm}(\mathfrak{b}_{2})=|D| for some j>0 and \mathfrak{b}_{1}\mathfrak{b}_{2}=2s^{\prime}\mathfrak{a} for some nonzero integral ideal \mathfrak{a} satisfying c(\mathfrak{a})\left(\ell\frac{{\rm Nm}(\mathfrak{a})}{c(\mathfrak{a})^{2}}+5\right)\equiv 0\pmod{\frac{s}{s^{\prime}}}. Item (3) follows by the same argument using ( 4.1 ) and ( 5.19 ). ∎ Proof of Theorem 1.4 . Theorem 1.4 follows from Theorem 4.3 via noticing that when |D| is a prime, for \ell inert in k_{D} , it is clear that {\rm Nm}(\mathfrak{b}_{2}) in item (2) of Theorem 4.3 must be strictly smaller than p for the validity of \ell^{j}{\rm Nm}(\mathfrak{b}_{1})+{\rm Nm}(\mathfrak{b}_{2})=p , and w(\ell,(p-{\rm Nm}(\mathfrak{b}_{2}))a)=2^{\omega(\gcd(p-{\rm Nm}(\mathfrak{b}_{2}),p))}=1 . And for \ell=p , it is clear that there are no nonzero integral ideals \mathfrak{b}_{1} , \mathfrak{b}_{2} such that p^{j}{\rm Nm}(\mathfrak{b}_{1})+{\rm Nm}(\mathfrak{b}_{2})=p for j>0 , so the quantity a_{p} in item (4) of Theorem 4.3 must vanish, and w(p,pa)=2^{\omega(\gcd(p,1))}=1 , since \epsilon_{p}(-pa)=-1 as the class number of \mathbb{Q}(\sqrt{-p}) is odd. ∎ Our formulas in Theorem 4.3 and Theorem 1.4 match with examples in [ 15 ] , even when D is not a prime. The following exam verify our formula for f(\mathfrak{a})^{24} for =-31 . Example 4.4 . For D=-31 , one can numerically find that the defining polynomial of f\left(\frac{D+\sqrt{D}}{2}\right)^{24} over \mathbb{Q} is X^{3}-165X^{2}+9642X-1 , whose discriminant is -3^{12}11^{2}23^{2}31 . Since {\rm Cl}(-31)=\{[\mathcal{O}_{31}],[\mathfrak{a}],[\overline{\mathfrak{a}}]\} , where \mathfrak{a}=[2,\frac{-1+\sqrt{-31}}{2}] , and {\rm ord}_{\ell}({\rm disc}(-31,1,[\mathfrak{a}]))={\rm ord}_{\ell}({\rm disc}(-31,1,[\overline{\mathfrak{a}}])) , then it suffices to compute {\rm ord}_{\ell}({\rm disc}(-31,1,[\mathfrak{a}])) . In addition, by Corollary 4.2 , one only needs to compute for \ell=11,13,17,23,29 . It is routine to check that the only triples (\ell,\mathfrak{b}_{1},\mathfrak{b}_{2}) satisfying the assumptions imposed by item (2) of Theorem 1.4 are (11,\mathcal{O}_{k},2\mathfrak{p}_{5}) , where \mathfrak{p}_{5} is a prime ideal over 5 , and (23,\mathcal{O}_{k},2\mathfrak{a}) , and these yield that {\rm ord}_{11}({\rm disc}(-31,1,[\mathfrak{a}]))={\rm ord}_{23}({\rm disc}(-31,1,[\mathfrak{a}]))=1, and for \ell=13,17,29 , {\rm ord}_{\ell}({\rm disc}(-31,1,[\mathfrak{a}]))=0 . For \ell=31 , by item (4) of Theorem 1.4 one has that \displaystyle{\rm ord}_{\ell}({\rm disc}(-31,1,[\mathfrak{a}])) \displaystyle=\frac{1}{2}. Also, when \ell=3 , by item (3) of Theorem 1.4 one has that \displaystyle{\rm ord}_{3}({\rm disc}(-31,1,[\mathfrak{a}])) \displaystyle=\frac{1}{2}\rho^{(31\cdot 3)}(3)\sum_{\begin{subarray}{c}{\alpha}\in\mathfrak{a}\\ {\rm Nm}({\alpha})=19\end{subarray}}\delta_{31}(12)\rho_{3}^{\prime}(12)+\frac{1}{2}\rho^{(31\cdot 3)}(6)\sum_{\begin{subarray}{c}{\alpha}\in\mathfrak{a}\\ {\rm Nm}({\alpha})=7\end{subarray}}\delta_{31}(24)\rho_{3}^{\prime}(24) \displaystyle\quad+\frac{1}{2}\rho^{(31\cdot 3)}(27)\sum_{\begin{subarray}{c}{\alpha}\in\mathfrak{a}\\ {\rm Nm}({\alpha})=1\end{subarray}}\delta_{31}(27)\rho_{3}^{\prime}(27)+\frac{1}{2}\rho^{(31\cdot 3)}(15)\sum_{\begin{subarray}{c}{\alpha}\in\mathfrak{a}\\ {\rm Nm}({\alpha})=4\end{subarray}}\delta_{31}(15)\rho_{3}^{\prime}(15) \displaystyle\quad+\frac{1}{2}\rho^{(31\cdot 3)}(3)\sum_{\begin{subarray}{c}{\alpha}\in\mathfrak{a}\\ {\rm Nm}({\alpha})=7\end{subarray}}\delta_{31}(3)\rho_{3}^{\prime}(3) \displaystyle=6. Putting all these together one finds that |{\rm disc}(-31,1,[\mathfrak{a}]){\rm disc}(-31,1,[\overline{\mathfrak{a}}])|=3^{12}11^{2}23^{2}31, which is exactly the absolute value of the discriminant of the aforementioned polynomial. 4.3. Factorization of Resultants The factorization of the resultant is given in the following result, which specializes to Theorem 1.6 . Theorem 4.5 . Let D_{i}=D_{0}t_{i}^{2},t,\mathfrak{A}_{i},P_{i}(x) and R(P_{1},P_{2}) be the same as in Theorem 1.6 . Suppose all primes dividing t:=t_{1}t_{2}>1 are non-split in k , and denote D_{0,t}:=\gcd(D_{0},t),~D_{0}^{\prime}:=D_{0}/D_{0,t} For a non-split prime \ell , let \kappa_{\ell} be any negative integer number co-prime to D_{0} such that for all primes p\mid D_{0} , (\tfrac{\kappa_{\ell}}{p})=1 if and only if p\neq\ell . If \ell\nmid 3t , then \hbox{ord}_{\ell}R(P_{1},P_{2}) is given by (4.8) \sum_{\begin{subarray}{c}n,\tilde{n}\in\mathbb{N}\\ n+\tilde{n}=|D_{0}t|\\ \gcd(n,t^{2})\mid D_{0,t}\end{subarray}}{\sigma(\gcd(n,\tfrac{D_{0}^{\prime}}{\gcd(\ell,D_{0}^{\prime})}))}\sum_{\begin{subarray}{c}r\mid s,~r>0\\ s^{\prime}\mid r\\ \frac{n\tilde{n}}{4r^{2}}\equiv 19\bmod{\frac{s}{r}}\end{subarray}}\sum_{\begin{subarray}{c}AB=2r\\ j\geq o_{\ell}(D_{0})\end{subarray}}\rho\left(\frac{n}{A^{2}\ell^{j}}\right)\rho_{\mathrm{g}}(\tilde{n}/B^{2};-\kappa_{\ell}\cdot n). where s^{\prime}=\gcd(s,3^{1-(\tfrac{D}{3})}) . If \ell\mid t , then \hbox{ord}_{\ell}R(P_{1},P_{2}) is given by (4.9) \sum_{\begin{subarray}{c}n\in\mathbb{N},\tilde{n}\geq 0\\ n+\tilde{n}=|D_{0}t|\\ \gcd(n^{(\ell)},t^{2})\mid D_{0,t}\end{subarray}}{\sigma(\gcd(n,{D_{0}^{\prime}}))}\sum_{\begin{subarray}{c}r\mid s,~r>0\\ s^{\prime}\mid r\\ \frac{n\tilde{n}}{4r^{2}}\equiv 19\bmod{\frac{s}{r}}\end{subarray}}\sum_{AB=2r}\rho\left(\frac{n}{A^{2}\ell\gcd(\ell,D_{0,t})}\right)\rho_{\mathrm{g}}(\tilde{n}/B^{2};-\kappa_{\ell}\cdot n) plus an extra term \rho(0)(1-\epsilon(\ell))\rho(-D_{0}t) if \ell is the only prime dividing t . Here n^{(\ell)}:=n/\ell^{o_{\ell}(n)} . If \ell=3 , then \hbox{ord}_{\ell}R(P_{1},P_{2}) is given by (4.10) \sum_{\begin{subarray}{c}n,\tilde{n}\in\mathbb{N}\\ n+\tilde{n}=|D_{0}t|\\ \gcd(n,t^{2})\mid D_{0,t}\end{subarray}}\frac{\sigma(\gcd(n,D_{0}^{\prime}))}{2}\sum_{\begin{subarray}{c}r\mid s_{2},~r>0\\ \frac{n\tilde{n}}{4r^{2}}\equiv 19\bmod{\frac{s_{2}}{r}}\end{subarray}}\sum_{\begin{subarray}{c}AB=2r\\ j\geq 1\end{subarray}}\left(\rho\left(\frac{n}{A^{2}3^{j}}\right)+\rho\left(\frac{n/s_{3}}{A^{2}3^{j}}\right)\right)\rho_{\mathrm{g}}(\tilde{n}/B^{2};-n). Proof. First we have the short exact sequence: 1\longrightarrow\operatorname{Cl}(D)\stackrel{{\scriptstyle(\phi_{1},\phi_{2})}}{{\longrightarrow}}\operatorname{Cl}(D_{1})\times\operatorname{Cl}(D_{2})\stackrel{{\scriptstyle}}{{\longrightarrow}}\operatorname{Cl}(D_{0})\longrightarrow 1.~ Here \phi_{i}([\mathfrak{a}])=[\mathfrak{a}\mathcal{O}_{D_{i}}] , and the last map is given by ([\mathfrak{a}_{1}],[\mathfrak{a}_{2}])\mapsto[\mathfrak{a}_{1}^{-1}\mathfrak{a}_{2}\mathcal{O}_{D_{0}}]. So the resultant is given by \prod_{\mathfrak{A_{1}}\in\operatorname{Cl}(D_{1})}\prod_{{\mathfrak{A}}_{2}\in\operatorname{Cl}(D_{2})}(f({\mathfrak{A}}_{1})^{24/s}-f({\mathfrak{A}}_{2})^{24/s})=\prod_{{\mathfrak{A}}\in S_{0}}\prod_{{\mathfrak{B}}\in\operatorname{Cl}(D)}(f(\phi_{1}({\mathfrak{B}}))^{24/s}-f({\mathfrak{A}}\phi_{2}({\mathfrak{B}}))^{24/s}), where S_{0}\subset\operatorname{Cl}(D_{2}) is a subset such that S_{0}\cong\operatorname{Cl}(D_{0}) as sets via the restriction map \operatorname{Cl}(D_{2})\to\operatorname{Cl}(D_{0}) . As in ( 4.4 ), we denote \mathrm{disc}(D,s,{\mathfrak{A}}):=\prod_{{\mathfrak{B}}\in\operatorname{Cl}(D)}(f(\phi_{1}({\mathfrak{B}}))^{24/s}-f({\mathfrak{A}}\phi_{2}({\mathfrak{B}}))^{24/s}). To find \operatorname{ord}_{\ell}\mathrm{disc}(D,s,{\mathfrak{A}}) , we apply Theorem 4.1 and need to evaluate \delta_{p}(n,\tilde{\alpha}) and \delta^{\prime}_{\ell}(n,\tilde{\alpha}) . For this, we use Proposition 5.20 , in particular equations ( 5.24 ), ( 5.25 ), ( 5.28 ) and ( 5.29 ). When n=0 , the quantity \delta_{p}(0,\tilde{\alpha}) vanishes for p\mid t . So if \ell is not the only prime factor of t , then the contribution of the terms with n=0 to the right hand side of ( 4.1 ) is 0. Otherwise, the contribution is \rho(0)(1-\epsilon(\ell))r_{[\tilde{\mathfrak{a}}_{0}]}(-D_{0}t) . Summing over [\tilde{\mathfrak{a}}_{0}]\in\operatorname{Cl}(D_{0}) gives the extra contribution to ( 4.9 ). When n>0 , we suppose \mathrm{Diff}(-n/(D_{0}t),{\mathcal{N}}_{1})=\{\ell\} . Note that by assumption, p\mid D=D_{0}t^{2} is either ramified or inert. If p\mid D_{0}^{\prime}\mid D_{0} , i.e. p\nmid t , we have \delta_{p}(n,\tilde{\alpha})=\sigma(\gcd(n,p)) . If p\mid D_{0,t} , then p is ramified and \tilde{\alpha}\in p\mathcal{O}_{D_{0}} if and only if o_{p}(n)=o_{p}(aD_{0}t+{\mathrm{Nm}}(\tilde{\alpha}))\geq 2 . Similarly for p\mid t but p\nmid D_{0,t} , we have \tilde{\alpha}\in p\mathcal{O}_{D_{0}} if and only if o_{p}(n)=o_{p}(aD_{0}t+{\mathrm{Nm}}(\tilde{\alpha}))\geq 1 . Therefore for p\mid t , we have \delta_{p}(n,\tilde{\alpha})=1 if and only if o_{p}(n)\leq 1 for p\mid D_{0,t} and o_{p}(n)=0 for p\mid t but p\nmid D_{0} . Otherwise, \delta_{p}(n,\tilde{\alpha})=0 . Note the condition on o_{p}(n) can be succinctly written as \gcd(n,p^{N})\mid D_{0,t} for any N\geq 2 . Putting these together with ( 5.26 ) and ( 5.27 ) gives us \rho^{(D\ell)}(n/A^{2})\delta^{\prime}_{\ell}(n,\tilde{\alpha})\prod_{p\mid D\text{ prime},p\neq\ell}\delta_{p}(n,\tilde{\alpha})=\sigma(\gcd(n,\tfrac{D_{0}^{\prime}}{\gcd(\ell,D_{0}^{\prime})}))\begin{cases}\sum_{j\geq o_{\ell}(D_{0}^{\prime})}\rho(\frac{n/A^{2}}{\ell^{j}})&\text{if }\ell\nmid t,\\ \rho(\frac{n/A^{2}}{\ell\gcd(\ell,D_{0,t})})&\text{if }\ell\mid t,\end{cases} for \ell\neq 3 and \gcd(n^{(\ell)},t^{2})\mid D_{0,t} . Suppose \mathrm{Diff}(-n/(D_{0}t),{\mathcal{N}}_{1})=S(D_{0},-na) contains another prime \ell^{\prime}\neq\ell . If \ell^{\prime} is inert, then 2\nmid o_{\ell^{\prime}}(n) and \rho(n/(A^{2}\ell^{j}))=0 . So the equality above still holds in this case. To ensure that the right hand side also vanishes when \ell^{\prime} is ramified, it suffices to multiply it by the characteristic function that [{\mathfrak{A}}] is in the genus representing -\kappa_{\ell}\cdot n . Then summing over {\mathfrak{A}}\in S_{0} proves ( 4.8 ) and ( 4.9 ). The case for \ell=3 in ( 4.10 ) follows similarly using ( 5.19 ). ∎ Similarly, one has the following analogue of Corollary 4.2 . Corollary 4.6 . Let D_{i}=D_{0}t_{i}^{2} with D_{0}\equiv 1\bmod 8 fundamental, and all primes dividing t=t_{1}t_{2}>1 are non-split in k . Then the prime factors of the resultant of the minimal polynomials of f(\mathfrak{A}_{i})^{24/s} are no larger than D_{0}t . Example 4.7 . Take D_{1}=-7 and D_{2}=-5^{2}7 and s=1 . Then D_{0}=-7 , t=5 , the defining polynomial associated with \mathcal{O}_{D_{1}} is P_{1}(X)=X-1 , and the defining polynomial associated with \mathcal{O}_{D_{2}} is \displaystyle P_{2}(X) \displaystyle=X^{6}-45771X^{5}+1046370975X^{4} \displaystyle\quad+293236687600X^{3}+23843150292975X^{2}-273301922603526X+1, so the resultant {R}(P_{1},P_{2}) of P_{1}(X) and P_{2}(X) is -3^{14}\cdot 5\cdot 7^{2}\cdot 19^{3}\cdot 31 . In what follows, we use ( 1.8 ) to compute the prime factorization for the resultant. Under the choices of D_{1} , D_{2} and s , the formula ( 1.8 ) yields that for \ell\neq 5 inert or ramified in \mathbb{Q}[\sqrt{-7}] , \displaystyle{\rm ord}_{\ell}({R}(P_{1},P_{2})) \displaystyle=\sum_{\begin{subarray}{c}n,\tilde{n}\in\mathbb{N}\\ n+\tilde{n}=35\\ (n,5)=1\\ 4|n\tilde{n}\end{subarray}}\sigma(\gcd(n,7/\ell))\sum_{\begin{subarray}{c}AB=2\\ j\geq 1\end{subarray}}\rho\left(\frac{n}{A^{2}\ell^{j}}\right)\rho(\tilde{n}/B^{2}) \displaystyle=\sum_{\begin{subarray}{c}1\leq k\leq 8\\ k\neq 5\end{subarray}}\sigma(\gcd(4k,7/\ell))\sum_{j\geq 1}\rho(k/\ell^{j})\rho(35-4k) \displaystyle\quad+\sum_{\begin{subarray}{c}1\leq k\leq 8\\ k\neq 5\end{subarray}}\sigma(\gcd(35-4k,7/\ell))\sum_{j\geq 1}\rho((35-4k)/\ell^{j})\rho(k). Note by Corollary 4.6 that \ell cannot exceed 35. So the primes \ell\neq 5 that may have contributions to the resultant are 3 , 7 , 13 , 17 , 19 , 31 . Applying the formula above, one can compute and find that {\rm ord}_{3}({R}(P_{1},P_{2}))=14,\quad{\rm ord}_{7}({R}(P_{1},P_{2}))=2,\quad{\rm ord}_{13}({R}(P_{1},P_{2}))=0, {\rm ord}_{17}({R}(P_{1},P_{2}))=0,\quad{\rm ord}_{19}({R}(P_{1},P_{2}))=3,\quad{\rm ord}_{31}({R}(P_{1},P_{2}))=1. Finally, for \ell=5 , by ( 4.9 ) one can first find that \displaystyle{\rm ord}_{5}({R}(P_{1},P_{2})) \displaystyle=\sum_{\begin{subarray}{c}n+\tilde{n}=35\\ \tilde{n}\geq 0,n\geq 1\\ 4|n\tilde{n}\end{subarray}}\sigma(\gcd(n,7))\sum_{AB=2}\rho(n/(\ell A^{2}))\rho(\tilde{n}/B^{2}) \displaystyle=\rho(15/5)\rho(20/4)+\rho(20/5)\rho(15)+2\rho(35/5)\rho(0)=1. Putting all the data above gives the prime factorization for {R}(P_{1},P_{2}) that matches the numerical result. 5. Local calculation 5.1. Values of local Whittaker functions In this subsection, we use different notation for convenience of future application of the basic formulas. Let F be a finite field extension of \mathbb{Q}_{p} with a uniformizer \pi and q=|\pi|^{-1} , and assume p\neq 2 . Let 0\neq\Delta\in\mathcal{O}_{F} , and let E=F(\sqrt{\Delta}) be the quadratic extension of F ( E=F+F if \Delta is square) with order \mathcal{O}_{\Delta}=\mathcal{O}_{F}+\sqrt{\Delta}\mathcal{O}_{F} . Let 0\neq\kappa\in\mathcal{O}_{F} , and let \mathcal{M}=\mathcal{O}_{\Delta} with quadratic form Q_{\kappa}(x)=\kappa x\bar{x} . So its dual \mathcal{M}^{\prime}=\frac{1}{\kappa\sqrt{\Delta}}\mathcal{M} . Our goal is to give an explicit formula for the local density integral for \mu\in\mathcal{M}^{\prime}/\mathcal{M} . (5.1) W_{m}(s,\mu)=W_{m}(s,\mu;\mathcal{M}):=\int_{F}\int_{\mu+\mathcal{O}_{\Delta}}\psi(b\kappa x\bar{x})\psi(-mb)|a(wn(b))|^{s}dxdb. Here \psi is an unramified non-trivial additive character of F , and \hbox{Vol}(\mathcal{O}_{\Delta},dx)=|\Delta|^{\frac{1}{2}}=q^{-\frac{1}{2}o(\Delta)} . This integral was calculated carefully in [ 14 , Appendix] when \mathcal{O}_{\Delta}=\mathcal{O}_{E} i.e., o(\Delta)=0 or 1 . Similar calculation gives the following three propositions we need in this paper. We leave the detail to the reader. Let \chi_{-\pi} be the quadratic character of F^{\times} associated to the quadratic extension F(\sqrt{-\pi})/F . For a number b\in F^{\times} , write b=b_{0}\pi^{o(b)} with b_{0}\in\mathcal{O}_{F}^{\times} and o(b)\in\mathbb{Z} . For b=0 , we set b_{0}=1 and o(b)=\infty . Notice that (for b\neq 0 ) (5.2) \chi_{-\pi}(b)=(\frac{b_{0}}{\pi})=\pm 1 depending on whether b_{0} is a square modulo \pi (equivalently whether b_{0} is a square in F ). Proposition 5.1 . One has W_{m}(s,0)=0 unless m\in\mathcal{O}_{F} . Assume m\in\mathcal{O}_{F} . Write X=q^{-s} . (1) When o(m)-o(\kappa)<0 , we have |\Delta|^{-\frac{1}{2}}W_{m}(s,0)=(1-X)\sum_{0\leq n\leq o(m)}(qX)^{n}. (2) When 0\leq o(m)-o(\kappa)o_{3}(m)=0.\end{cases} Otherwise it is 0. Lemma 5.14 . Let s_{3}\mid 3 and \delta_{3}(m,\alpha;\mathrm{d}_{3}) be as in the previous proposition. Then for all \alpha\in\frac{1}{\sqrt{D}}\tilde{\mathfrak{a}} with \tilde{m}:=\frac{t}{a}{\mathrm{Nm}}(\alpha)=1-m , we have (5.21) \sum_{\mathrm{d}_{3}\mid s_{3}}\delta_{3}(m,\alpha;\mathrm{d}_{3})=s_{3}\sum_{\begin{subarray}{c}r_{3}\mid s_{3}\\ \frac{m\tilde{m}}{r_{3}^{2}}\equiv 1\bmod{\frac{s_{3}}{r_{3}}}\end{subarray}}\rho_{3}(\frac{m}{r_{3}^{2}})+\mathds{1}_{3}(\frac{r_{3}}{3})\mathds{1}_{3}(\frac{\alpha}{r_{3}}). Now for the second case, we need to calculate both \delta_{3}(m,\alpha;\mathrm{d}_{3}) and \delta_{3}^{\prime}(m,\alpha;\mathrm{d}_{3}) . The procedure is the same as before, and we can again use the calculations in [ 10 ] . Lemma 5.15 . In the notations above, we have \tilde{\phi}_{9}=2\sum_{\mu\in S_{1}}\phi_{\mu}\otimes\phi_{0}+2\sum_{\mu\in S_{-1}}\phi_{0}\otimes\phi_{\mu}-\sum_{\mu_{1}\in S_{-1},\mu_{2}\in S_{1}}\phi_{\mu_{1}}\otimes\phi_{\mu_{2}} where S_{j}:=\{\mu\in\tfrac{1}{3}{\mathcal{O}_{D}}/{\mathcal{O}_{D}}:{3}{}{\mathrm{Nm}}(\mu)\equiv\tfrac{j}{3}\bmod{\mathbb{Z}_{3}}\} for j=\pm 1 . The value of \delta_{3} and \delta^{\prime}_{3} can be calculated similarly. Lemma 5.16 . The quantities \delta_{3}(m,\alpha;3) defined in ( 3.17 ) is 0 except in the following cases \displaystyle\delta_{3}(m,\alpha;3) \displaystyle=\begin{cases}-1&\text{if }o_{3}(m(1-m))=0,\\ 2&\text{if }2\mid o_{3}(m(1-m))\geq 1.\end{cases} If 2\nmid o_{3}(m)\geq 1 and m\neq 0 , then \delta_{3}(m,\alpha;3)=0 and \delta_{3}^{\prime}(m,\alpha;3)=o_{3}(m)-\frac{1}{2} . Proposition 5.17 . Let s_{3}\mid 3 . Then we have (5.22) \begin{split}\sum_{\mathrm{d}_{3}\mid s_{3}}\delta_{3}(m,\alpha;\mathrm{d}_{3})&=s_{3}\rho_{3}(\frac{m(1-m)}{s_{3}^{2}}),\\ \sum_{\mathrm{d}_{3}\mid s_{3}}\delta_{3}^{\prime}(m,\alpha;\mathrm{d}_{3})&=s_{3}\frac{o_{3}(m/s_{3})+1}{2},~\text{ if }2\nmid o_{3}(m)\geq 1\text{ and }m\neq 0.\end{split} 5.2.3. p\mid D . In this case, we have \mathrm{d}_{p}=1 . Recall A is the finite quadratic module defined in ( 2.25 ). Using the identification there, we have the following result. Lemma 5.18 . In the notations above, for any prime p\mid D , we have \mathrm{d}_{p}=1 and (5.23) \tilde{\phi}_{p\mathrm{d}_{p}}=\tilde{\phi}_{p}=\begin{cases}\sum_{\mu\in\frac{1}{\sqrt{D}}\mathcal{O}_{D_{0},p}/\mathcal{O}_{D_{0},p}}\phi_{-\mu}\otimes\phi_{\mu},&\text{ if }p\nmid t_{1},\\ \sum_{\mu\in\frac{1}{\sqrt{D}}\mathcal{O}_{D_{0},p}/\mathcal{O}_{D_{0},p}}\phi_{\overline{\mu}}\otimes\phi_{\mu},&\text{ if }p\nmid t_{2}.\end{cases} Remark 5.19 . If p\nmid t=t_{1}t_{2} , then p\mid D_{0} and -\mu=\overline{\mu} . Proof. Write \mu=\frac{\alpha+\beta\sqrt{D_{0}}}{\sqrt{D}},\hbox{ and }\tilde{\mu}=\frac{\tilde{\alpha}+\tilde{\beta}\sqrt{D_{0}}}{\sqrt{D}}, with the numerators are in \mathcal{O}_{D_{0},p} . Then i^{-}(\mu)=-\frac{1}{tD_{0}}\left[(\alpha+\beta\sqrt{D_{0}})\omega_{1}(z_{1},z_{2})+\overline{(\alpha+\beta\sqrt{D_{0}})\omega_{1}(z_{1},z_{2})}\right] and similarly for i^{+}(\tilde{\mu}) . Directly calculation shows that \iota^{+}(\tilde{\mu})+\iota^{-}(\mu)\in L_{p} implies (looking at three of the four entries of the matrices \alpha+\tilde{\alpha}\in tD_{0}\mathbb{Z}_{p} and \beta+\tilde{\beta}\in t_{2}\mathbb{Z}_{p},\hbox{ and }\beta-\tilde{\beta}\in t_{1}\mathbb{Z}_{p}. When p\nmid t_{2} , the condition \beta+\tilde{\beta}\in t_{2}\mathbb{Z}_{p} is automatic, and we have \tilde{\mu}-\bar{\mu}\in\mathcal{O}_{D_{0},p} . When p\nmid t_{1} , the condition \beta-\tilde{\beta}\in t_{1}\mathbb{Z}_{p} is automatic, and we have \tilde{\mu}+\mu\in\mathcal{O}_{D_{0},p} . Since (t_{1},t_{2})=1 , this covers all cases. Finally, it is easy to check directly that the converse is also true. ∎ Now the quantity \delta_{p}(n,\tilde{\alpha}) defined in ( 3.18 ) is given explicitly as follows. Proposition 5.20 . Let n\in\mathbb{Q}_{\geq 0} and \tilde{\alpha}=\tilde{\alpha}_{1}+\sqrt{D_{0}}\tilde{\alpha}_{2}\in\tilde{\mathfrak{a}}_{0} be any element satisfying \frac{1}{a}{\mathrm{Nm}}(\tilde{\alpha})=-D_{0}t-n for an \mathcal{O}_{D_{0}} -fractional ideal \tilde{\mathfrak{a}}_{0} co-prime to D with norm a . Recall that \epsilon=\epsilon_{k/\mathbb{Q}} is the Dirichlet character associated to k=\mathbb{Q}(\sqrt{D_{0}})/\mathbb{Q} . Denote r:=o_{p}(D_{0}t),r_{0}:=o_{p}(D_{0}),\alpha:=-\frac{\tilde{\alpha}_{1}^{2}+an}{aD_{0}t}=1-\frac{\tilde{\alpha}_{2}^{2}}{at} and \mathcal{O}:=\mathcal{O}_{D_{0}}\otimes\mathbb{Z}_{p}=\mathbb{Z}_{p}[\sqrt{D_{0}}] . Case (i): Suppose n\neq 0 . When and p\not\in\mathrm{Diff}(-n/(D_{0}t),{\mathcal{N}}_{1}) , the quantity \delta_{p}(n,\tilde{\alpha}) defined in ( 3.18 ) is given by \displaystyle\begin{cases}p^{(o_{p}(n)-r_{0})/2}(1+\chi_{p}(\tfrac{an}{D_{0}}))&\text{if }\tilde{\alpha}\in\sqrt{D}\mathcal{O},2r-r_{0}\leq o_{p}(n)<2r,\text{ and }2\mid o_{p}(n)-r_{0},\\ \frac{p^{r-r_{0}/2}}{L(1,\epsilon)}(o_{p}(n)-2r+1)&\text{if }\tilde{\alpha}\in\sqrt{D}\mathcal{O},2r\leq o_{p}(n)\text{ and }\epsilon(p)=1,\\ \frac{p^{r-\lceil r_{0}/2\rceil}}{L(1,\epsilon)}(2+\epsilon(p))&\text{if }\tilde{\alpha}\in\sqrt{D}\mathcal{O},2r\leq o_{p}(n)\text{ and }\epsilon(p)\neq 1,\\ p^{o_{p}(\alpha)}(1+\chi_{p}(-at\alpha))&\text{if }0\leq o_{p}(\alpha)r_{0} , i.e. p\mid t , then we have (5.29) \delta_{p}(0,\tilde{\alpha})=0,~\delta^{\prime}_{p}(0,\tilde{\alpha})=\frac{1}{L_{p}(0,\epsilon)}=1-\epsilon(p). Remark 5.21 . If 2\nmid o_{p}(D_{0}) and 2\mid o_{p}(n)-r_{0} , then \chi_{p}(an/D_{0})=\begin{cases}1&p\not\in\mathrm{Diff}(-n/(D_{0}t),{\mathcal{N}}_{1}),\\ -1&p\in\mathrm{Diff}(-n/(D_{0}t),{\mathcal{N}}_{1}).\end{cases} Proof. Applying Lemma 5.18 , in addition to the definitions of \delta_{p}(n,\tilde{\alpha}) and \delta^{\prime}_{p}(n,\tilde{\alpha}) in ( 3.16 ) and ( 3.18 ), we have for n>0 \displaystyle\delta_{p}(n,\tilde{\alpha}) \displaystyle=p^{r-r_{0}/2}\delta_{p}(0,-n/(D_{0}t),\tilde{\alpha}/\sqrt{D};1)=p^{r_{0}/2}\begin{cases}W_{-n/(D_{0}t)}(0,-\tilde{\alpha}/\sqrt{D})&p\nmid t_{1},\\ W_{-n/(D_{0}t)}(0,-\overline{\tilde{\alpha}}/\sqrt{D})&p\nmid t_{2},\end{cases} \displaystyle\delta^{\prime}_{p}(n,\tilde{\alpha}) \displaystyle=\frac{p^{r-r_{0}/2}}{\log p}\delta^{\prime}_{p}(0,-n/(D_{0}t),\tilde{\alpha}/\sqrt{D};1)=\frac{p^{r_{0}/2}}{\log p}\begin{cases}W^{\prime}_{-n/(D_{0}t)}(0,-\tilde{\alpha}/\sqrt{D})&p\nmid t_{1},\\ W^{\prime}_{-n/(D_{0}t)}(0,-\overline{\tilde{\alpha}}/\sqrt{D})&p\nmid t_{2}.\end{cases} We now apply the results in section 5.1 with F=\mathbb{Q}_{p},\Delta=D_{0},\kappa=-t/a,m=-\frac{n}{D_{0}t},\mu\in\mathcal{O}-\frac{\tilde{\alpha}_{1}\pm\tilde{\alpha}_{2}\sqrt{D_{0}}}{\sqrt{D}},-\pi=p,X=p^{-s}. We write o for o_{p} and \mathrm{Diff}=\mathrm{Diff}(-n/(D_{0}t),{\mathcal{N}}_{1})=\mathrm{Diff}(-an,(\tilde{\mathfrak{a}}_{0},{\mathrm{Nm}})) for convenience. Proposition 5.1 has 5 cases, and is applicable when \alpha\in\sqrt{D}\mathcal{O} . In case (1), we have 0\leq o(n/(D_{0}t))r_{0} . For \tilde{\alpha}\in\sqrt{D}\mathcal{O} , we have equivalently o(\tilde{\alpha}_{1})\geq r,o(\tilde{\alpha}_{2})\geq r-r_{0} . So 2r\geq 2r-r_{0}>r and o(n)=o(\tilde{\alpha}_{1}^{2}-D_{0}\tilde{\alpha}_{2}^{2}+aD_{0}t)=o(D_{0}t)=r. So only the last case for \delta_{p} and cases I, IV, VI for \delta^{\prime}_{p} are applicable. Those give us equations ( 5.24 ) and ( 5.26 ). When r=r_{0}=1 , the condition o_{p}(n)\geq 1 directly implies that \tilde{\alpha}\in\sqrt{D}\mathcal{O} . Simplifying the expressions in \delta_{p} and \delta^{\prime}_{p} gives us equations ( 5.25 ), and ( 5.27 ). This proves Case (i). For Case (ii), when r=r_{0}=1 , we have \tilde{\alpha}\in\sqrt{D}\mathcal{O} and can apply Proposition 5.1 (5) to obtain ( 5.28 ). When r>r_{0} , then o({\mathrm{Nm}}(\tilde{\alpha}))=o(D_{0}t)=r<2r-r_{0} , which means \tilde{\alpha}\not\in\sqrt{D}\mathcal{O} and Proposition 5.1 is no longer applicable. So we use Propositions 5.3 and Propositions 5.4 . As o(\mu,0)=o((\tilde{\alpha}_{1}^{2}-D_{0}\tilde{\alpha}_{2}^{2})/D)=-o(t)<0 , case (1) in those two Propositions are applicable, and they give us ( 5.29 ). ∎