Computing Picard Lattices of K3 Surfaces

Lecture 1: Reduction methods

Edgar Costa (MIT)

ICERM: Arithmetic, Geometry and Computations on K3 surfaces
September 14, 2026

Supported by the Simons Foundation

Slides available at edgarcosta.org

The geometric Picard group

  • $X/k$ a K3 surface; $k\subset\Bbb{C}$ a number field.
  • $k^{\mathrm{al}}$ an algebraic closure of $k$, $X^{\mathrm{al}}:=X\times_k k^{\mathrm{al}}$.

$$\operatorname{Pic}(X^{\mathrm{al}}) \simeq \Z^{\rho}, \qquad \rho:=\rho(X^{\mathrm{al}})$$

$$\operatorname{Pic}(X^{\mathrm{al}}) \simeq \Z\langle \text{algebraic curves in } X^{\mathrm{al}} \rangle / \langle \text{linear equivalences} \rangle \subset H_2(X_{\Bbb{C}}, \Z)$$

  • Curves on $X^{\mathrm{al}}$ modulo linear equivalence.
  • For K3 surfaces $\Rightarrow$ linear/algebraic/numerical equivalence agree.
  • $\rho$, and more precisely the Picard lattice, is a coarse invariant.

The intersection pairing

  • $\operatorname{Pic}(X^{\mathrm{al}})$ with the intersection pairing $(D,D') \mapsto D \cdot D'$.
  • Even symmetric bilinear form: $D \cdot D = 2g(D) - 2$ for every curve $D$.
  • $\operatorname{disc}\operatorname{Pic}(X^{\mathrm{al}}):=\det(D_i\cdot D_j)$ in a $\Z$-basis.
  • Signature $(1,\rho(X^{\mathrm{al}})-1)$: Hodge index theorem.
  • $\operatorname{Gal}(k^{\mathrm{al}}/k)$ permutes curves, respects linear equivalence and preserves the pairing.

Pic inside $H^2$

  • Over $\Bbb{Q}^{\mathrm{al}}$, viewing $X$ also as a complex manifold,

$$\begin{aligned} \operatorname{Pic}(X^{\mathrm{al}}) &\simeq H^{1,1}(X_{\Bbb{C}}) \cap H^2(X_{\Bbb{C}}, \Z) \\ &\subset H^2(X_{\Bbb{C}}, \Z) \simeq (-E_8)^2 \oplus U^3 \simeq \Z^{22} \end{aligned}$$

  • $\dim H^{1,1}(X_{\Bbb{C}})=20$; $1\leq\rho(X^{\mathrm{al}})\leq20$.
  • The degree of "difficulty" is negatively correlated with $\rho(X^{\mathrm{al}})$; $\rho(X^{\mathrm{al}})=1$ is generic.
  • $T(X) := \operatorname{Pic}(X^{\mathrm{al}})^{\perp} \subset H^2(X_{\Bbb{C}},\Z)$: the transcendental lattice.
  • $T(X)_{\Bbb{Q}}$: minimal rational sub-Hodge structure containing $H^{2,0}(X_{\Bbb{C}})$ after complexification.

    $$H^2(X_{\Bbb{C}},\Bbb{Q}) \simeq \operatorname{Pic}(X^{\mathrm{al}})_{\Bbb{Q}} \oplus T(X)_{\Bbb{Q}}$$

  • The "new and interesting" Galois representations arise from $T(X)$.
  • In characteristic $p$ the bound $20$ fails: $\rho(X_p^{\mathrm{al}})$ can be as large as $22$.

Computing Pic as a Galois module

Goal

From the equations of $X$, compute $\operatorname{Pic}(X^{\mathrm{al}}) \subset H_2(X_{\Bbb{C}},\Z)$ as a $\operatorname{Gal}(k^{\mathrm{al}}/k)$-module.

"The evaluation of $\rho$ for a given surface presents in general grave difficulties." (Zariski)

Corollary

The Picard Galois module gives the algebraic Brauer group for studying rational points.

$$\begin{aligned} H^1(\operatorname{Gal}(k^{\mathrm{al}}/k), \operatorname{Pic}X^{\mathrm{al}}) &\simeq \operatorname{Br}_1(X)/\operatorname{Br}_0(X) \\ X(k) &\subset X(\mathbf{A}_k)^{\operatorname{Br}} \subset X(\mathbf{A}_k) \end{aligned}$$

Picard lattice, over finite fields

  • $P_2(t) = \det(t - \operatorname{Frob}_q \mid H^2_{\mathrm{et}}(X_p^{\mathrm{al}},\Bbb{Q}_\ell))$; $q=p^n$, $\ell\neq p$.
  • $q^{-22}P_2(qt)$ monic; roots $\zeta_i$, $|\zeta_i| = 1$.

$$\begin{gathered} q^{-22}P_2(qt) = h(t)\prod_i\Phi_{k_i}(t)^{\gamma_i} \\ \Phi_k\text{ the }k\text{-th cyclotomic polynomial};\quad h\text{ has no cyclotomic factor} \end{gathered}$$

  • Example: $X := Z(y^4 - x^3z + yz^3 + zw^3 + w^4) \subset \mathbf{P}^3$, $p = 89$.

$$p^{-22}P_2(pt) = (t-1)^{1+4}(t+1)(t^4+1)h(t), \qquad \deg h = 12$$

$$H^2:=H^2_{\mathrm{et}}(X_{89}^{\mathrm{al}},\Bbb{Q}_\ell(1))=P_{\Phi_1}\oplus P_{\Phi_2}\oplus P_{\Phi_8}\oplus P_h$$

$$\dim (H^2)^{\operatorname{Frob}_{89}^8=1}=(1+4)+1+4=10$$

  • Away from small $p$, naive point counting is impractical, more on Kedlaya's talk

What the characteristic polynomial gives you

Tate conjecture (proved)
  • $X_p/\Bbb{F}_q$ an abelian surface or a K3 surface; $q=p^n$, $\ell\neq p$.
  • For abelian surfaces: $\rho:=\operatorname{rk}(\operatorname{Pic}/\operatorname{Pic}^0)$.
  • $\rho(X_p) = \operatorname{ord}_{t = q} P_2(t)$
  • $\rho(X_p^{\mathrm{al}}) = \sum_{\zeta} \operatorname{ord}_{t = q\zeta} P_2(t)$, where $\zeta$ runs over all roots of unity.
  • For K3 surfaces $\Rightarrow$ $\rho(X_p^{\mathrm{al}})$ is even.
Artin-Tate for K3 surfaces over $\Bbb{F}_q$

$$\boxed{ \lim_{t\to q}\frac{P_2(t)}{(t-q)^\rho} =(-1)^{\rho-1}q^{21-\rho}\#\operatorname{Br}(X_p)\,\operatorname{disc}(\operatorname{Pic}(X_p)) }$$

  • $\#\operatorname{Br}(X_p)\in\Bbb{Q}^{\times 2}$ and $P_2(t)$ give $\operatorname{disc}(\operatorname{Pic}(X_p)) \bmod \Bbb{Q}^{\times 2}$

Why the reduction rank is even

  • $X_p/\Bbb{F}_q$ K3; $P_2(t)=\det(t-\operatorname{Frob}\mid H^2_{\mathrm{et}}(X_p^{\mathrm{al}},\Bbb{Q}_\ell))$

$$q^{-22}P_2(qt)=h(t)\prod_i\Phi_{k_i}(t)^{\gamma_i}$$

  • $h\in\Bbb{Q}[t]$: no cyclotomic factor
  • $|z|=1$ $\Rightarrow$ $\operatorname{conj}(z)=z^{-1}$
  • Real roots: $+1,-1$, already in $\Phi_1,\Phi_2$
  • Roots of $h$: nonreal pairs; $\deg h$ even
Weil + Tate

$$\rho(X_p^{\mathrm{al}})=\sum_i\gamma_i\deg\Phi_{k_i}=22-\deg h\in2\Z$$

Reduction to finite characteristic

Take $f \in \Bbb{Z}[x,y,z,w]$ and $X := Z(f) \subset \mathbf{P}^3_{\Bbb{Q}}$.

We may consider the surface $X_p := Z(f \bmod{p}) \subset \mathbf{P}^3_{\Bbb{F}_p}$.

Theorem

If $X$ and $X_p$ are smooth then the specialization map is injective

$$\operatorname{Pic}(X^{\mathrm{al}}) \hookrightarrow \operatorname{Pic}(X_p^{\mathrm{al}}) \quad \text{and} \quad \rho(X^{\mathrm{al}}) \leq \rho(X_p^{\mathrm{al}}).$$

Goal

For a given $f$ and $p$, improve the inequality $\rho(X^{\mathrm{al}}) \leq \rho(X_p^{\mathrm{al}})$.

Parity reasons might already force the inequality to not be sharp.

Endomorphisms of the transcendental lattice can complicate things even further.

Pic plays the role of $\operatorname{End}(A)$

  • $\operatorname{Pic}$ for a K3 surface plays a similar role as $\operatorname{End}(A)$ for an abelian variety $A$.

$$\operatorname{Pic}(A)/\operatorname{Pic}^0(A) = \operatorname{NS}(A)$$

  • $\rho(A):=\operatorname{rk}(\operatorname{Pic}(A)/\operatorname{Pic}^0(A))$; also after base change.

$$\bigl(\operatorname{Pic}(A)/\operatorname{Pic}^0(A)\bigr)_{\Bbb{Q}} \simeq \{\phi \in \operatorname{End}(A)_{\Bbb{Q}} : \phi^{\dagger} = \phi\}, \qquad \dagger\text{ the Rosati involution}$$

  • "Compute the Picard lattice of a K3 surface" ↭ "compute $\operatorname{End}(A)$".
  • We also stratify moduli of abelian varieties via $\operatorname{End}(A)$.
  • $A$ an abelian surface, $\operatorname{char}k\neq2$ $\Rightarrow$ $\rho(\operatorname{Kum}(A)^{\mathrm{al}}) = \rho(A^{\mathrm{al}})+16$.
  • $\operatorname{Kum}(A)$ is the K3 surface obtained by resolving $A/\{\pm1\}$.

Proving that an elliptic curve does not have CM

$$\operatorname{End}_{\Bbb{Q}} E^{\mathrm{al}} = \Bbb{Q} \quad\text{or}\quad \Bbb{Q}(\sqrt{-d})\;(\mathrm{CM})$$

  • $\operatorname{End}_{\Bbb{Q}} E^{\mathrm{al}} \hookrightarrow \operatorname{End}_{\Bbb{Q}} E_p^{\mathrm{al}} \hookleftarrow \Bbb{Q}(\operatorname{Frob}_p)$.
  • $a_p := \operatorname{Tr}(\operatorname{Frob})$
  • $p\nmid a_p \Longleftrightarrow \operatorname{End}_{\Bbb{Q}} E_p^{\mathrm{al}}$ is a quadratic field
  • If $E$ has CM by $\Bbb{Q}(\sqrt{-d})$, then

    $$\begin{aligned} a_p \equiv 0 \bmod p &\Longleftrightarrow p\text{ inert or ramified in }\Bbb{Q}(\sqrt{-d}) \\ &\Longleftrightarrow \operatorname{End}_{\Bbb{Q}} E^{\mathrm{al}} \not\simeq \operatorname{End}_{\Bbb{Q}} E_p^{\mathrm{al}} \end{aligned}$$

  • If $E$ is non-CM, then $\operatorname{End}_{\Bbb{Q}} E_p^{\mathrm{al}} \cap \operatorname{End}_{\Bbb{Q}} E_q^{\mathrm{al}} \simeq \Bbb{Q}$ with prob. 1;
    and we expect $\operatorname{Prob}(a_p \equiv 0 \bmod p) \sim 1/\sqrt{p}$

Two universal examples: 11.a2 and 27.a3

$E: y^2 + y = x^3 - x^2 - 10x - 20$ (LMFDB label: 11.a2)

  • $\operatorname{End}_{\Bbb{Q}} E_3^{\mathrm{al}} \simeq \Bbb{Q}(\sqrt{-11})$
  • $\operatorname{End}_{\Bbb{Q}} E_{13}^{\mathrm{al}} \simeq \Bbb{Q}(\sqrt{-1})$
  • $\Rightarrow \operatorname{End}_{\Bbb{Q}} E^{\mathrm{al}} = \Bbb{Q}$

$E: y^2 + y = x^3 - 7$ (LMFDB label: 27.a3)

  • $p = 2 \bmod 3 \Rightarrow a_p = 0 \Rightarrow \operatorname{End}_{\Bbb{Q}} E_p^{\mathrm{al}}$ is a quaternion algebra
  • $p = 1 \bmod 3 \Rightarrow \operatorname{End}_{\Bbb{Q}} E_p^{\mathrm{al}} \simeq \Bbb{Q}(\sqrt{-3})$
  • $\Rightarrow \operatorname{End}_{\Bbb{Q}} E^{\mathrm{al}} = \Bbb{Q}(\sqrt{-3})$

Improving upper bounds: two specializations

$$\operatorname{Pic}(X^{\mathrm{al}}) \hookrightarrow \operatorname{Pic}(X_p^{\mathrm{al}}) \quad \text{and} \quad \rho(X^{\mathrm{al}}) \leq \rho(X_p^{\mathrm{al}})$$

Kloosterman—van Luijk

If $p$ and $q$ are two primes of good reduction, and

$$\begin{gathered} \rho(X_p^{\mathrm{al}}) = \rho(X_q^{\mathrm{al}}) = 2r, \\ \operatorname{disc} \operatorname{Pic}(X_p^{\mathrm{al}}) \neq \operatorname{disc} \operatorname{Pic}(X_q^{\mathrm{al}}) \quad \text{in } \Bbb{Q}^{\times}/(\Bbb{Q}^{\times})^2. \end{gathered}$$

then

$$\rho(X^{\mathrm{al}}) < 2r.$$

van Luijk (2005): first explicit K3 surfaces $X/\Bbb{Q}$ with $\rho(X^{\mathrm{al}})=1$.

Does this always work?

Let's apply it to a K3 surface with a $\Bbb{Z}/5$ automorphism

$$X : x^3 z + 3x^2 y^2 + 5xw^3 + y^3 w + 3yz^3 - 5z^2 w^2 = 0 \ \subset \ \mathbf{P}^3$$

$p$$\rho(X_p^{\mathrm{al}})$$\operatorname{disc}\operatorname{Pic}(X_p^{\mathrm{al}})\bmod\Bbb{Q}^{\times2}$
1118$-55$
1318$-85$
Theorem (Artin-Tate)

$$P_2(t) \leadsto \operatorname{disc}\operatorname{Pic}(X_p) \bmod (\Bbb{Q}^{\times})^2.$$

  • $55/85 = 11/17 \notin (\Bbb{Q}^{\times})^2$, hence $\rho(X^{\mathrm{al}}) \leq 17$.
  • Symplectic order-5 action $\Rightarrow$ $\rho(X^{\mathrm{al}}) \geq 17$ [Garbagnati-Sarti].

Torsion-free cokernel

$X/\Bbb{Q}$ K3; $p>2$ a prime of good reduction.

Theorem (Elsenhans—Jahnel)

The specialization map

$$\operatorname{Pic}(X^{\mathrm{al}}) \hookrightarrow \operatorname{Pic}(X_p^{\mathrm{al}})$$

has torsion-free cokernel for $p \neq 2$.

Thus, if $\rho(X_p^{\mathrm{al}}) = \rho(X^{\mathrm{al}})$ every invertible sheaf lifts.

For example, if $\rho(X_p^{\mathrm{al}}) = 2$, Elsenhans—Jahnel approach is

  1. compute $\operatorname{Pic}(X_p^{\mathrm{al}})$
  2. estimate the degree of a hypothetical effective divisor of the lift
  3. use Gröbner bases to verify that such a divisor does or does not exist

This approach is only practical if one can compute $\operatorname{Pic}(X_p^{\mathrm{al}})$ and if the obtained estimates are low.

  • Elsenhans-Jahnel: this becomes the proof of a generic example using a single prime.

Endomorphisms of the transcendental Hodge structure

$$E:=\operatorname{End}_{\mathrm{Hdg}}(T)=\{a\in\operatorname{End}_{\Bbb{Q}}(T):a_{\Bbb{C}}(T^{i,j})\subset T^{i,j}\}$$

$T$ minimal rational sub-Hodge structure of $H^2$ with $H^{2,0}\subset T_{\Bbb{C}}$

$$0\neq\alpha\in E\Rightarrow\alpha(H^{2,0})=H^{2,0}\Rightarrow\operatorname{im}\alpha=T\Rightarrow\alpha^{-1}\in E$$

Theorem (Zarhin)
  • $E$: a totally real field or a totally imaginary quadratic extension of one, i.e., a CM field
  • $d:=[E:\Bbb{Q}]$, $m:=\dim_E T$; $dm=22-\rho(X^{\mathrm{al}})$
  • $E$ totally real; $V:=T(1)\otimes\Bbb{Q}_\ell$; $g=\operatorname{Frob}_p^a$ in connected monodromy

$$V\otimes\Bbb{Q}_\ell^{\mathrm{al}}=\bigoplus_{\sigma:E\hookrightarrow\Bbb{Q}_\ell^{\mathrm{al}}}V_\sigma,\quad\dim V_\sigma=m,\quad g|V_\sigma\in SO(V_\sigma)$$

$$m\text{ odd}\Rightarrow\dim\ker(g-1)\geq d\Rightarrow\rho(X_p^{\mathrm{al}})\geq\rho(X^{\mathrm{al}})+d$$

Computing $\rho(X^{\mathrm{al}})$

  • $T=T(X)_{\Bbb{Q}}$; $E=\operatorname{End}_{\mathrm{Hdg}}(T)$; $d=[E:\Bbb{Q}]$; $m=\dim_E T$
Theorem (Charles)

$$\rho(X_p^{\mathrm{al}})\geq\begin{cases}\rho(X^{\mathrm{al}})&\text{if }E\text{ is CM or }m\text{ is even,}\\\rho(X^{\mathrm{al}})+d&\text{if }E\text{ is totally real and }m\text{ is odd,}\end{cases}$$

Equality occurs infinitely often (density $1$ after some finite extension).

If $E$ is totally real and $m$ is odd, infinitely many good ordinary prime pairs $(p,q)$ satisfy $\rho(X_p^{\mathrm{al}})=\rho(X_q^{\mathrm{al}})=\rho(X^{\mathrm{al}})+d$ and

$$\operatorname{disc}\operatorname{Pic}(X_p^{\mathrm{al}})\not\equiv\operatorname{disc}\operatorname{Pic}(X_q^{\mathrm{al}})\bmod(\Bbb{Q}^{\times})^2$$

Corollary (Charles)

The Kloosterman—van Luijk method works, if it is aware of $E$.

A real multiplication example

  • Elsenhans-Jahnel
  • $X$: minimal resolution of

$$w^2=(-y^2/8+yz-z^2)(7x^2/8+5xz+7z^2)(2x^2+3xy+y^2)$$

  • $6$ lines; $15=\binom{6}{2}$ nodes; $15$ exceptional $(-2)$-curves
  • $H,E_{ij}$: $16$ independent classes
  • $\rho(X^{\mathrm{al}})=16$
  • RM: $E=\Bbb{Q}(\sqrt{2})$; $\dim_E T=(22-16)/2=3$
  • $\eta=2$; $\rho(X_p^{\mathrm{al}})\geq18$ at every good prime
  • Rank-$18$ pair at $p=17$, $q=23$, unequal square classes, certified RM $\Rightarrow$ $\rho(X^{\mathrm{al}})\leq16$
    Without certified real multiplication, one could only prove $\rho(X^{\mathrm{al}})\leq17$.

Infinitely many rational curves

So far we have been trying to improve the inequality $\rho(X^{\mathrm{al}})\leq\rho(X_p^{\mathrm{al}})$.
Can we use the inequality to our advantage?

Theorem (Li-Liedtke)

If there are infinitely many $p$ primes such that

$$\rho(X^{\mathrm{al}})<\rho(X_p^{\mathrm{al}})\text{ and }\rho(X_p^{\mathrm{al}})\neq22,$$

then $X^{\mathrm{al}}$ contains infinitely many rational curves.

Theorem (Joshi-Rajan; Bogomolov-Zarhin)

The set $\{p:\rho(X_p^{\mathrm{al}})\neq22\}$ has positive density (density 1 after finite extension).

Corollary (Li-Liedtke)

$\rho(X^{\mathrm{al}})$ odd $\Rightarrow$ infinitely many integral rational curves on $X^{\mathrm{al}}$.

Jumping Picard ranks

$$\eta(X^{\mathrm{al}}):=\min_{p\text{ good}}\bigl(\rho(X_p^{\mathrm{al}})-\rho(X^{\mathrm{al}})\bigr)$$

Consider

$$\Pi_{\mathrm{jump}}(X):=\{p\text{ good}:\rho(X_p^{\mathrm{al}})>\rho(X^{\mathrm{al}})+\eta(X^{\mathrm{al}})\}$$

Is this set infinite? What is its density?

What about

$$X/\Bbb{Q}:\quad\gamma(X,B):=\frac{\#\{p\leq B:p\in\Pi_{\mathrm{jump}}(X)\}}{\#\{p\leq B:p\text{ prime}\}}\quad\text{as }B\rightarrow\infty\quad ?$$

Product of elliptic curves

  • $A=E_1\times E_2$; $E_i/\Bbb{Q}$
  • $X=\operatorname{Kum}(E_1\times E_2)$

$$\operatorname{rk}\operatorname{NS}(E_1\times E_2)=\operatorname{rk}\operatorname{End}(E_1\times E_2)^\dagger=2+\operatorname{rk}\operatorname{Hom}(E_1,E_2)$$

$$\rho(X^{\mathrm{al}})=18+\operatorname{rk}\operatorname{Hom}(E_1^{\mathrm{al}},E_2^{\mathrm{al}})$$

$A$ $\rho(X^{\mathrm{al}})$ $\gamma(X,B)$, predicted What is known
square of CM 20 $1/2$ $1/2+o(1)$, CM theory
square of non-CM 19 $\sim c_X/\sqrt{B}$ infinitely many [Elkies]
CM times CM 18 $1/4$ $1/4+o(1)$, CM theory
CM times non-CM 18 $\sim c_X/\sqrt{B}$ infinitely many [Charles]
non-CM times non-CM 18 $\sim c_X/\sqrt{B}$ infinitely many [Charles]

What happens for K3 surfaces in general?

Numerical experiments for $\rho(X^{\mathrm{al}})=2$

$\rho(X)=\rho(X^{\mathrm{al}})=2$ and $E=\Bbb{Q}$ or CM

gamma(X,B) for three rank two examples

No obvious trend …

We can explain the $1/2$ observed in even rank

  • $d_X:=\Delta_{H^2}(X)\Delta_{\operatorname{Pic}}(X)$ modulo squares; $d_X\in\Z\setminus\{0\}$
Theorem (C-Elsenhans-Jahnel)

$$\begin{gathered}p\text{ good},\ p\nmid2d_X\Rightarrow\\\det(\operatorname{Frob}_p\mid T(1)\otimes\Bbb{Q}_\ell)=\left(\frac{d_X}{p}\right)=-1\Rightarrow\rho(X_p^{\mathrm{al}})\geq\rho(X^{\mathrm{al}})+2\end{gathered}$$

Corollary

If $\eta(X^{\mathrm{al}})=0$, then

  • $d_X$ nonsquare $\Rightarrow$ $L=\Bbb{Q}(\sqrt{d_X})$, $[L:\Bbb{Q}]=2$
  • $p$ good, inert in $L$ $\Rightarrow p\in\Pi_{\mathrm{jump}}(X)$, up to finitely many primes
  • $\displaystyle\liminf_{B\rightarrow\infty}\gamma(X,B)\geq1/2$
  • $E=\Bbb{Q}$ $\Rightarrow$ infinitely many integral rational curves on $X^{\mathrm{al}}$

Discriminant of a K3 surface

$$\tau:\operatorname{Gal}(k^{\mathrm{al}}/k)\longrightarrow O(V:=T(1)\otimes\Bbb{Q}_\ell)$$

  • $\det\tau=1\Longleftrightarrow\operatorname{im}\tau\subset SO(V)$
  • $\det\tau\neq1$ $\Rightarrow$ nontrivial quadratic character
  • $\rho(X^{\mathrm{al}})$ even; $\varphi:=\operatorname{Frob}_p|V$

$$\det\varphi=-1\Rightarrow\rho(X_p^{\mathrm{al}})\geq\rho(X^{\mathrm{al}})+2$$

$D_X:=\Delta_{H^2}(X)\in\Bbb{Q}^{\times}/(\Bbb{Q}^{\times})^2$: determinant-character square class

$D_X\in\Z\setminus\{0\}$ a representative; $p$ good, $p\nmid2D_X$

Theorem (Deligne; Suh)

The functional equation of Frobenius on $H^2(X)$ has the plus sign iff $D_X$ is square mod $p$.

$$\varepsilon_p=\det(-\operatorname{Frob}_p\mid H^2_{\mathrm{et}}(X^{\mathrm{al}},\Bbb{Q}_\ell(1)))=\left(\frac{D_X}{p}\right)$$