                                             THE DISTRIBUTION OF ℓ∞ -SELMER GROUPS IN DEGREE ℓ TWIST
                                                                     FAMILIES II

                                                                                ALEXANDER SMITH
arXiv:2207.05143v2 [math.NT] 8 Feb 2023




                                                 A BSTRACT. We continue the investigation of the distribution of ℓ∞ -Selmer groups in
                                                 degree ℓ twist families of Galois modules over number fields begun in [Smi1]. Building
                                                 off the work on higher Selmer groups in that part, we find conditions under which we
                                                 can compute the distribution of the ℓ∞ -Selmer groups for a given degree ℓ twist family.
                                                 Along the way, we show that the average rank in the quadratic twist family of any given
                                                 abelian variety over a number field is bounded.


                                                                                     C ONTENTS
                                            1. Introduction                                                                                  1
                                            2. Main results                                                                                  5
                                            3. Examples and non-examples                                                                    10
                                            4. Tamagawa ratios and cofavored submodules                                                     17
                                            5. Local conditions for ω-Selmer groups in grids                                                23
                                            6. Ignorable pairs                                                                              27
                                            7. Moments of sizes of ω-Selmer groups in grids                                                 34
                                            8. Gridding                                                                                     41
                                            9. Rough bounds for moments of sizes of ω-Selmer groups                                         52
                                            10. Finding the distribution of Selmer ranks                                                    56
                                            References                                                                                      62


                                                                                1. I NTRODUCTION
                                             In the first part of this two-part paper [Smi1], the author developed a method for con-
                                          trolling 2∞ -Selmer groups in the quadratic twist family of a given Galois module N over
                                          a number field. The main result of that paper gave the distribution of 2∞ -Selmer groups
                                          in certain collections of twists known as grid classes subject to stringent conditions on
                                          the 2-Selmer groups for the twists in the grid class.
                                             The goal of this second part is to translate the results of [Smi1] into results on the
                                          distribution of 2∞ -Selmer groups in more natural families of twists. To this end, our
                                          main task is to find the distribution of 2-Selmer groups in natural twist families. In the

                                          E-mail address: asmith13@stanford.edu.
                                          Date: February 9, 2023.
                                                                                            1
2                          SELMER GROUPS IN TWIST FAMILIES II

process of finding the distribution of 2-Selmer groups, we will carve the natural families
into grids of twists, a step that is also necessary to apply the results of [Smi1].
   Like [Smi1], the results of this paper also apply to non-quadratic twist families. The
methods that allow us to control the 2-Selmer groups in quadratic twist families allow us
to control the fixed point Selmer group in more general contexts. To elaborate, choose
some prime power ℓk0 , and take ξ to be the image of x in the quotient ring
                          .         k0 −1        k0 −1                    k0 −1
                                                                                 
(1.1)              Zℓ [x]     1 + xℓ       + x2·ℓ       + · · · + x(ℓ−1)·ℓ         .

If we are given a Galois module N over the number field F whose ring of continuous
GF -equivariant endomorphisms contains Zℓ [ξ], and if we are given χ in Homcont (GF , hξi),
we may construct the twist N χ of N by χ. Taking ω = ξ − 1, there is an equivariant
isomorphism
                                   N χ [ω] ∼
                                           = N[ω]
between the submodules of N and N χ fixed by ξ. This isomorphism gives us control
over the ω-Selmer groups in the twist family of N. Since N[ω] is the collection of fixed
points of ξ, we also refer to this Selmer group as the fixed point Selmer group. For a
quadratic twist family, ξ is −1, and the fixed point Selmer group is the 2-Selmer group.
A major goal of this paper is to find the distribution of fixed point Selmer groups in
natural twist families of Galois modules.
   Our interest in fixed point Selmer groups is driven by our interest in higher Selmer
groups, and this is largely reflected in the main results of this paper. But our results on
fixed point Selmer groups can be applied fruitfully without use of the higher theory. One
such application is to prove the following boundedness result.
Theorem 1.1. Take ℓ to be a rational prime, take F to be a number field, and take A to
be an abelian variety over F . For any H > 0, take X(H) to be the set of cyclic degree
ℓ extensions K of F for which the absolute discriminant of K is at most H.
   Then there are real numbers c, C > 0 depending on A/F and ℓ so, for any m > 0
and H > C satisfying m < c · log log log H, we have
                  X
                        exp (m · rank(A/K)) ≤ exp(Cm2 ) · #X(H).
                K∈X(H)

  In the quadratic case, similar boundedness results have been proved for most elliptic
curves over Q with full rational 2-torsion [10] and for abelian varieties for which A[3]
has a filtration over F with 1-dimensional factors [3]. Our unconditional result is a
consequence of Theorem 2.6, as we will see in Example 3.9.
  Now, in some twist families, the average ω-Selmer rank grows without bound as
more and more twists are considered. If we wish to prove distributional results for
the ω-Selmer ranks in such families, we need to have a strategy for dealing with this
complication. Our strategy is to reduce the scope of our results to favored twists, which
we will fully define in Section 2 but which we will define in a simple case now.
                          SELMER GROUPS IN TWIST FAMILIES II                             3

Example 1.2 ([12, 11]). Given an abelian variety A/Q√and a nonzero integer d, we take
Ad to be the quadratic twist of A corresponding to Q( d). We will also take r2k (A) to
be the 2k -Selmer rank of A as defined in [Smi1].
   Choose rational numbers a, b such that b and a2 − 4b are nonzero, and consider the
ratioinal elliptic curves
         A : y 2 = x(x2 + ax + b)    and   A0 : y 2 = x(x2 − 2ax + (a2 − 4b)).
Note that there is a rational isogeny of degree 2 from A to A0 .
   Take                          √                           √
                         K = Q( a2 − 4b) and K0 = Q( b).
Given a squarefree integer d, we call d favored with respect to A if, among the odd
prime divisors p of d where A has good reduction, the number of primes at which K0 /Q
splits is no larger than the number of primes at which K/Q splits.
  The natural density of favored d in the set of squarefree integers is 1/2. On the half
which is not favored, the 2-Selmer ranks do not have a nice distribution.
Proposition 1.3 ([12]). Take A, K, and K0 as in Example 1.2, and choose ǫ > 0. We
assume K and K0 are distinct nontrivial extensions of Q. Then
       
     # d ∈ Z6=0 : |d| ≤ H, d is not favored, and r2 (Ad ) > (log log H)1/2−ǫ
 lim                                                                         = 1.
H→∞                  # {d ∈ Z6=0 : |d| ≤ H, d is not favored }
   However, the distribution of 2-Selmer ranks among the favored twists is the same as
the distribution of 2-Selmer ranks in the family of twists of an elliptic curve with no
rational 2-torsion.
Theorem 1.4 (Cf. [Smi1, Theorem 1.5]). Take A/Q, K, and K0 as in Example 1.2. We
assume K and K0 are distinct nontrivial extensions of Q.
   Define P Alt as in [Smi1, Definition 1.4]. Then, given k ≥ 1 and any nonincreasing
sequence
                                   r2 ≥ r4 ≥ r8 ≥ . . .
of nonnegative integers, we have
         #{d ∈ Z6=0 : |d| ≤ H, d is favored and r2k (Ad ) = r2k for all k ≥ 1}
      lim
     H→∞                                         H
                            ∞
                            Y
         = P Alt (r2 | ∞) ·   P Alt (r2k | r2k−1 ).
                           k=2

   Even though Theorem 1.4 only applies to favored d, it still can be used to find the
distribution of 2∞ -Selmer coranks for the full twist family of A. Specifically, we find
that any d that is not favored with respect to A is favored with respect to the isogenous
curve A0 . We also find that a negligible set of d is favored for both A and A0 . Since
r2∞ (Ad0 ) = r2∞ (Ad ), we can find the distribution of 2∞ -Selmer coranks across the full
twist family of A by applying Theorem 1.4 to both A and A0 . This proves the second
case of [Smi1, Theorem 1.2].
4                            SELMER GROUPS IN TWIST FAMILIES II

   The notion of a favored twist generalizes substantially, and the natural extension of
the divide-and-conquer approach seen above allows us to prove Theorem 1.1.
   Once we restrict to favored twists, the distribution of fixed point Selmer ranks is still
affected by the structure of the Galois module N. Our main result, Theorem 2.14, puts a
number of technical conditions on N and its submodules. A module that does not satisfy
these conditions will have a distinct distribution of ω-Selmer groups in its favored twist
family compared to any module that satisfies these conditions. We hope that future work
will give us more information about the wide variety of distributions that can appear if
these technical conditions do not hold.

1.1. Our method. We introduced the          Q notion of a grid in [Smi1]. To briefly recap, a
grid is defined from a product space s∈S Xs together with some auxiliary data, where
the Xs are finite sets of primes of Q obeying some mild conditions. From the auxiliary
data, we may associate any point (ps )s∈S in this product space with a twist χ. As we
proved in [Smi1, Proposition 4.8], the group Selω N χ can be calculated from the classes
[ps ] for all s ∈ S, the spins [ps , ps ] for all s ∈ S, and the symbols [ps , pt ] for all distinct
s, t ∈ S. We reprove this result in an explicit form in Section 5.2.
   Using this, we may express a given moment of the size of Selω N χ for χ varying
in a grid of twists as a sum of terms defined from classes, spins, and symbols. When
a given term in this sum involves a symbol [ps , pt ], we can often prove that the term
has negligble contribution to the overall sum either by using the Chebotarev density
theorem or by using the bilinear equidistribution result for symbols proved as [Smi1,
Theorem 5.2]. Once we remove the terms proved to be negligible using this method, the
remaining terms can be controlled using linear algebra.
   Our need to invoke the Chebotarev density theorem and the bilinear equidistribution
result pressures us to consider grids where the collections of primes Xs are large relative
to their height. But our need to carve natural families of twists into such grids pressures
us in the opposite direction. Fortunately, there is a middle ground that works. We give
one possible specification for such grids in Section 8.

1.2. An overview of this paper. Section 2 gives the necessary notation to state Theo-
rem 2.14, the main result for the distribution of ℓ∞ -Selmer groups in twist families of
this two-part paper. This result is proved by combining the results on ω-Selmer groups
of this paper with the results for higher Selmer groups in [Smi1].
   Theorem 2.14 is largely interesting for its applications to class groups and Selmer
groups of abelian varieties. We go through some of these applications in Section 3. This
is where the theorems mentioned in the introduction to [Smi1] are all proved.
   Section 4 explores why the average ω-Selmer rank in families of unfavored twists
tends to infinity. This involves certain terms known as Tamagawa ratios, which also
appear in the definition of cofavored submodules. The moments of sizes of Selmer
groups in grids can be expressed as sums over the cofavored submodules of the powers
of N, so we need to have a classification of these submodules. Using the technical
conditions appearing in Theorem 2.14, we are able to find such a classification.
                           SELMER GROUPS IN TWIST FAMILIES II                              5

   Sections 5, 6, and 7 all concern the moments of the sizes of the ω-Selmer group in
grids of twists. Section 5 gives the initial reduction of such a moment to a sum of
terms involving spins and symbols. In Section 6, the terms that cannot be proved to be
negligible using analytic number theory are classified and roughly estimated. Section 7
then gives a more precise estimate for these moments under the conditions of Theorem
2.14.
   The highly analytic Section 8 carves natural families of twists into grids where the
estimates of the previous three sections apply. In Section 9, we use this work to give
rough upper bounds for the moments of sizes of ω-Selmer groups in natural twist fami-
lies. These estimates are refined in Section 10, where the work in [Smi1] is incorporated
to prove the main result of this project, Theorem 2.14.

Acknowledgements. This project benefited from the input and support of many math-
ematicians, including those I have enumerated in the acknowledgements section of
[Smi1]. I am grateful to all of them.
  This research was partially conducted during the period the author served as a Clay
Research Fellow. Previously, the author was supported in part by National Science
Foundation grant DMS-2002011.

                                    2. M AIN RESULTS
   The goal of this section is to give the precise form of our main theorems. We start by
recalling the definitions of twistable modules and their Selmer groups from [Smi1]. We
retain our notational conventions from that paper.
Notation 2.1. Fix a power ℓk0 of a rational prime, take Zℓ [ξ] to be the corresponding
quotient ring (1.1), and take ω = ξ − 1 and F = hξi. Also choose a number field F .
   A twistable module N is then a discrete nonzero GF -module isomorphic as a group
to some finite power of Qℓ /Zℓ together with an action of Zℓ [ξ] on N that commutes with
GF . Given such a module and a continuous homomorphism χ ∈ Homcont (GF , F), we
may define a twist N χ of N as in [Smi1, Definition 4.1] .
   Fix some twistable module N, and take V0 to be a finite set of places of F containing
the archimedean places and the places dividing ℓ. We assume that the action of GF on
N is ramified only at primes in V0 .
   For v ∈ V0 and χ ∈ Homcont (Gv , F), fix an ℓ-divisible subgroup Wv (χ) of H 1 (Gv , N χ ).
We call the collection of groups (Wv (χ))v∈V0 a set of local conditions for N at the places
in V0 .
   Setting the local conditions Wv at the remaining places as in [Smi1, Definition 4.3],
the Selmer group of N χ is defined by
                                                                                     !
                                                   Y                   .
    Sel (N χ , (Wv )v∈V0 ) = ker H 1 (GF , N χ ) →      H 1 (Gv , N χ ) Wv (resGv χ) .
                                                   v of F
                                   χ
We will write this group as Sel N if the local conditions at the places in V0 are clear.
6                          SELMER GROUPS IN TWIST FAMILIES II

                             k                                        
  For k ≥ 1, we take Selω N χ to be the portion of H 1 GF , N χ ω k mapping into
Sel N χ . We can refer to Selω N χ as either an ω-Selmer group or as a fixed point Selmer
group. For each k ≥ 1, we define
                                                  .
                                             ωk χ
                  rωk (N ) = dim ω Sel N im H 0 (GF , N χ [ω]),
                          χ           k−1


with the image being taken under the connecting map corresponding to the exact se-
quence 0 → N χ [ω] → N χ [ω 2 ] → N χ [ω] → 0.
  We recall from [Smi1, Definition 4.9] that we have a notion of the dual twistable
module N ∨ to N.
Definition 2.2. Given F , Zℓ [ξ], and V0 as above, we define the set of admissible twists
to be the set of continuous homomorphisms χ : GF → F so that, for every prime p of F
outside V0 , the homomorphism χ is ramified at p only if its image in Hom(GF , F /ℓ F)
is ramified at p. We denote this set by XF . If ξ has order ℓ, every continuous homomor-
phism χ : GF → F is an admissible twist.
   We represent the ramification of an element χ of XF using the squarefree ideal
                                                Y
                                 hF (χ) =               p.
                                                  p6∈V0
                                            χ is ramified at p

There are many possible ways to order these ideals. Writing NF/Q for the norm from F
to Q, we settle for the height function
                                 hF (χ) = NF/Q (hF (χ)).
For H > 0, we take XF (H) to be the set of admissible twists of height at most H.
Remark 2.3. We restrict our attention to admissible twists because, outside this case, we
do not have a result like [Smi1, Proposition 4.8] to determine the ω-Selmer group of a
twist from classes, spins, and symbols.
Definition 2.4. Take T to be a GF -submodule of N[ω]. Given χ ∈ XF , we define the
Tamagawa ratio TN,T (χ) by
                                    Y #H 0 (Gp , N/T [ω])
                       TN,T (χ) =                         .
                                         #H 0 (Gp , N[ω])
                                     p|hF (χ)

   Tamagawa ratios give lower bounds for the size of the ω-Selmer group of N χ . Specif-
ically, we have the following.
Proposition 2.5. Suppose N is a twistable module with local conditions defined with
respect to F , V0 , and Zℓ [ξ]. Then there is a c > 0 so that, given any GF -submodule T
of N[ω], and given χ ∈ XF , we have
                                #Selω N χ ≥ c · TN,T (χ).
    We will prove this result in Section 4.
    The next theorem shows that the bound of Proposition 2.5 tends to be fairly sharp.
                             SELMER GROUPS IN TWIST FAMILIES II                              7

Theorem 2.6. Suppose N is a twistable module with local conditions defined with re-
spect to F , V0 , and Zℓ [ξ]. Then there is C > 0 depending on F , N, and V0 so that, given
any H > 30, and given any positive integer g satisfying
                                 (#N[ω])200g ≤ log log H,
we have
                    X  #Selω (N χ ) g           
                                        ≤ exp Cg 2 · #XF (H).
                       maxT TN,T (χ)
                  χ∈XF (H)

  We will prove this theorem in Section 9.
Definition 2.7. With N fixed as above, we call a twist χ ∈ XF a favored twist of N if,
for any GF -submodule T of N[ω], we have TN,T (χ) ≤ 1. We denote the set of favored
twists for N by Xfav                                                  fav
                   F,N , and we write those of height at most H by XF,N (H). We call N
potentially favored if
                                        #Xfav
                                            F,N (H)
                                   lim              > 0.
                                  H→∞ #XF (H)
This condition may be checked using the algebra of N; see Definition 4.1.
   Take F1 = F (µℓk0 ), where ℓk0 is the order of ξ. We call a GF -submodule T of N[ω]
cofavored if, for every σ in GF1 , we have
                                                                   
                    dim H 0 hσi, (N/T )[ω] = dim H 0 hσi, N[ω] .
If the only cofavored submodules of N[ω] are 0 and N[ω], we call N uncofavored.
Remark 2.8. By the Hermite–Minkowski theorem, there are only finitely many isomor-
phism classes of GF -modules of order #N[ω] so that the action of GF is unramified
outside V0 . In particular, there is a finite collection T1 , . . . , Tk of GF -submodules of N
so that, for any other GF -submodule T of N, there is i ≤ k so (N/T )[ω] is isomorphic
to (N/Ti )[ω]. For any admissible twist χ, there is some i ≤ k so χ is a favored twist for
N/Ti .
Definition 2.9. Given an equivariant endomorphism φ of N[ω], we say that φ commutes
with the connecting maps if, for all σ ∈ GF1 , the connecting map
                                                              
(2.1)                  δσ : H 0 hσi, N[ω] → H 1 hσi, N[ω]
corresponding to the exact sequence
                                                    ω
(2.2)                        0 → N[ω] → N[ω 2 ] −→ N[ω] → 0
satisfies
                                    φ ◦ δσ = δσ ◦ φ.
Multiplication by any given element in F× ℓ defines an automorphism of N[ω] that com-
mutes with the connecting map. If N[ω] has extra automorphisms beyond these, it will
have a noticeable impact on the distribution of ω-Selmer groups in its twist family.
  Similarly, we can consider the connecting map
                                                              
                      δσ∨ : H 0 hσi, N ∨ [ω] → H 1 hσi, N ∨ [ω]
8                           SELMER GROUPS IN TWIST FAMILIES II

corresponding to the exact sequence
                                                   ω
                         0 → N ∨ [ω] → N ∨ [ω 2 ] −→ N ∨ [ω] → 0.
If there is an equivariant isomorphism φ : N[ω] → N ∨ [ω] satisfying
                                      φ ◦ δσ = δσ∨ ◦ φ.
for all σ ∈ GF1 , we say that N[ω] has self-dual structure. Otherwise, we say it lacks
self-dual structure.
Definition 2.10. With F and V0 fixed as above, a choice of local twists is a tuple (χv )v∈V0
of homomorphisms χv ∈ Homcont (Gv , F) indexed by v ∈ V0 that is globally represented
in the sense that some homomorphism χ ∈ Homcont (GF , F) restricts to χv on Gv for
each v in V0 . By the Grunwald–Wang theorem [36], the hypothesis that (χv )v∈V0 is
globally represented is automatically satisfied unless ℓ = 2 and ξ has order at least 8.
   Given a choice of local twists (χv )v∈V0 , we define XF ((χv )v∈V0 ) to be the set of
χ in XF whose restriction to Gv equals χv for each v in V0 . We similarly define
XF (H, (χv )v∈V0 ) and Xfav
                         F,N (H, (χv )v∈V0 ).
   Given an element φ ∈ H 1 (GF , N[ω]), we call φ a universal ω-Selmer element if, for
every χ in XF ((χv )v∈V0 ), the image of φ in H 1 (GF , N χ [ω]) is in the ω-Selmer group of
N χ . More algebraically, given (χv )v , the set of universal Selmer elements is the kernel
of the map
                            Y                                  Y                  
       H 1 GF , N[ω] →           H 1 Gv , N[ω] /Wv,1 (χv ) ×           H 1 hσi, N[ω] ,
                           v∈V0                                σ∈GF1

where Wv,1 (χv ) is defined as the portion of H 1 (Gv , N[ω]) that maps into Wv (χv ).
Remark 2.11. Given any twist χ in XF (H, (χv )v∈V0 ) ramified at some place outside V0 ,
we have
                                      X                                      
(2.3)     rω (N χ ) − rω ((N ∨ )χ ) =   dim Wv,1 (χv ) − dim H 0 (Gv , N[ω]) .
                                       v∈V0

This formula follows Poitou-Tate duality and the global Euler-Poincaré characteristic
formula of Tate. This particular statement is a special case of [22, Theorem 8.7.9], which
is itself a generalization of a formula of Wiles [38]. We note that, in the enumeration of
places, each pair of complex embeddings of F corresponds to one place in V0 .
   Our main results give the distribution of ℓ∞ -Selmer groups for twists of the twistable
module N in families XfavF,N (H, (χv )v∈V0 ) as H tends to infinity. The distribution of these
groups depends on the structure of N. We work out what these distributions are in two
contrasting cases. The first case will be relevant to the study of class groups, and the
latter case will be relevant to the study of Selmer groups of abelian varieties.
Case 2.12. Take N to be a twistable module with local conditions defined with respect
to F , V0 , and Zℓ [ξ]. Choose a set of local twists (χv )v∈V0 . We say that N is in the
non-self-dual case if
      • N is potentially favored, is uncofavored, and lacks self-dual structure;
                             SELMER GROUPS IN TWIST FAMILIES II                         9

     • The only automorphisms of N[ω] that commute with connecting maps are those
        in F×ℓ ; and
     • Neither N nor N ∨ has any nonzero universal ω-Selmer element with respect to
        the local twists (χv )v∈V0 .
   Given N in this case, take u to be the sum on the right hand side of (2.3). Given
n ≥ j ≥ max(u, 0), we define P (j | n) to be the probability that an (n − u) × n
matrix with coefficients selected uniformly at random from Fℓ has kernel of dimension
j. Explicitly, we have
                                   j−u              j              n
                                    Y 1 − ℓ−k−n+j Y               Y
                        −j(j−u)                             −k −1
        P (j | n) = ℓ             ·           −k
                                                 ·    (1 − ℓ ) ·     (1 − ℓ−k ).
                                    k=1
                                        1 − ℓ      k=1            k=1

  If we instead have n ≥ j ≥ 0 with j < u, we define P (j | n) to be zero.
  We then take
                             P (j | ∞) = lim P (j | n),
                                                  n→∞
which, for j ≥ max(u, 0), equals
                           j−u                    j                ∞
                           Y                 −1 Y                 Y
              ℓ−j(j−u) ·          1 − ℓ−k       ·   (1 − ℓ−k )−1 ·   (1 − ℓ−k ).
                           k=1                    k=1               k=1

Case 2.13. Take N to be a twistable module with local conditions defined with respect
to F , V0 , and Zℓ [ξ]. Choose a set of local twists (χv )v∈V0 . We say that N is in the
alternating case if
      • F has order 2, so ξ = −1;
      • N is potentially favored and is uncofavored;
      • N has alternating structure, in the sense of [Smi1, Definition 4.10];
      • The only automorphism of N[ω] that commutes with the connecting maps is the
        identity; and
      • N has no nonzero universal ω-Selmer element with respect to the local twists
        (χv )v∈V0 .
   Given N in this case, and given integers n ≥ j ≥ 0, we define P (j | n) to be the
probability that an alternating n × n matrix with coefficients selected uniformly at ran-
dom from F2 has kernel of dimension j. If j and n have different parities, this equals 0.
Otherwise,
                                                              n−j
                                              j
                                 −j(j−1)     Y   1 − 2−n−j+k Y 2
                                                                            
               P (j | n) = 2        2      ·            −k
                                                            ·     1 − 2−2k+1 .
                                             k=1
                                                   1−2        k=1

  The dependence on the parity of n lends some subtlety to our definition of P (j | ∞).
Define a map ε : GF → F2 by
(2.4)                       ε(σ) = dim H 0 (hσi, N[ω]) mod 2.
If this map is a homomorphism, we say that N is in the parity-invariant subcase.
Under this assumption, the parity of rω (N χ ) does not depend on the choice of χ in
10                                  SELMER GROUPS IN TWIST FAMILIES II

XF ((χv )v∈V0 ); see Section 10.1. In this subcase, take b ∈ {0, 1} to match the parity of
rω (N χ ) and define
                             P (j | ∞) = lim P (j | 2n + b).
                                                      n→∞
Otherwise, we say N is in the non-parity-invariant subcase, and we take
                                                                       j                       ∞
                                                         −j(j−1)       Y                      Y               
                                                                                   −k −1
P (j | ∞) = lim 12 P (j | 2n + j) = 12 · 2                  2      ·         1−2           ·         1 − 2−2k−1 .
            n→∞
                                                                       k=1                     k=0

     We can now state the main result of this project.
Theorem 2.14. Choose a twistable module N and local twists (χv )v satisfying the con-
ditions either of the non-self-dual case or alternating case, and take P (j | n) to be the
transition probabilities corresponding to the case of N. There are then real numbers
c, C > 0 determined by N, V0 , and F so that, for any H > C, we have the following:
   Given a nonincreasing sequence of nonnegative integers rω ≥ rω2 ≥ . . . , define an
empirical probability
                                                             χ
               2
                             # χ ∈ Xfav
                                    F,N (H, (χv )v ) : rω k (N ) = rω k for all k ≥ 1
    P≤H (rω , rω , . . . ) =
                                              #Xfav F,N (H, (χv )v )
and a theoretical probability
                                                                     Y
                            Pth (rω , rω2 , . . . ) = P (rω | ∞) ·         P (rωk+1 | rωk ).
                                                                     k≥1

Then
        X                                                                                           
                     P≤H (rω , rω2 , . . . ) − Pth (rω , rω2 , . . . ) ≤ exp −c · (log log log H)1/2 ,
     rω ≥rω 2 ≥...

where the sum is over all nonincreasing sequence of nonnegative integers.
                                  3. E XAMPLES AND NON - EXAMPLES
   The two principal applications of Theorem 2.14 are to finding the distribution of
Cl K[ℓ∞ ] as K varies in a family of degree ℓ extensions of a fixed number field F
and to finding the distribution of 2∞ -Selmer groups in the quadratic twist families of
most elliptic curves over F . Before we prove Theorem 2.14, we show how it may be ap-
plied to these two examples and some other problems. We will also give some relevant
examples where the theorem cannot be applied.
3.1. Quadratic twists of elliptic curves. Take F to be a number field, and take A to
be an elliptic curve over F with Weierstrass form y 2 = x3 + ax + b. We are interested
in the 2∞ -Selmer groups for the family of elliptic curves
                                {Ad : y 2 = x3 + d2 ax + d3 b : d ∈ F × }.
As in [Smi1, Example 4.4], these are the Selmer groups associated to twists of the
twistable module N = A[2∞ ] with the Bloch–Kato local conditions. This example has
alternating structure.
                            SELMER GROUPS IN TWIST FAMILIES II                               11

   To apply Theorem 2.14, we must check that the other conditions of Case 2.13 are
satisfied. The condition on universal ω-Selmer elements is always satisfied, leaving
three conditions; N must be potentially favored, it must be cofavored, and N[ω] may
not have extra automorphisms commuting with the connecting maps.
   So take K = F (A[2]) to be the minimal extension of F such that GF (A[2]) acts trivially
on A[2]. We may then find c1 , c2 , c3 in K for which
                        x3 + ax + b = (x − c1 )(x − c2 )(x − c3 ).
Take e1 to be the point (c1 , 0), and take e2 to be the point (c2 , 0). These generate the
2-torsion of E. The connecting map
                                      A[2] → H 1 (GK , A[2])
corresponding to the short exact sequence 0 → A[2] → A[4] → A[2] → 0 may be given
explicitly in the form
                          e1 7→ e1 · χc1 −c2 + e2 · χ(c3 −c1 )·(c2 −c1 )
                          e2 7→ e1 · χ(c3 −c2 )·(c1 −c2 ) + e2 · χc2 −c1 ,
                                                                            √
where χc : GK → F2 denotes the quadratic character associated to K( c)/K; this
calculation can be done directly, and is the content of [30, Proposition X.1.4].
  We now split into cases.
Example 3.1. Suppose K = F . In this case, N is automatically potentially favored.
We find that N is uncofavored if and only if none of the isogenous curves
                             A/he1 i,      A/he2 i,    A/he1 + e2 i
has full rational two torsion. This is equivalent to the condition that E has no ratio-
nal cyclic 4-isogeny. Given the above form of the connecting map, this condition is
equivalent to saying that none of
(3.1)     (c3 − c1 ) · (c2 − c1 ),     (c3 − c2 ) · (c1 − c2 ),    (c1 − c3 ) · (c2 − c3 )
are in (F × )2 . If E is not uncofavored, there is then c ∈ F \{0, ±1} and d in F × such
that E is isomorphic to a curve with equation
                                     y 2 = x(x − d)(x − dc2 ).
   We now check for a nonidentity automorphism commuting with the connecting maps.
From Remark 4.6, we can restrict our attention to the isomorphism T sending e1 to e2
to e1 + e2 back to e1 . We calculate that this commutes with the connecting maps if and
only if all three entries in (3.1) are all in −(F × )2 . In the case that c1 = 0 and c2 = 1,
this gives that −c3 and c3 − 1 are both squares in F . In other words, there are z0 , z1 in
F satisfying
(3.2)                                     z02 + z12 = −1
12                          SELMER GROUPS IN TWIST FAMILIES II

so c3 = −z02 . If this conic has no points over F , as is true if F is any totally real field,
then the condition of no extra automorphisms is automatically satisfied. Otherwise, any
exception will be isomorphic to a curve of the form
(3.3)                            y 2 = x(x − d)(x + dz02 )
where d is in F × and z0 ∈ F \{0, ±1} satisfies (3.2) for some z1 in F .
  Outside these two exceptional families, we find that the technical conditions on The-
orem 2.14 are satisfied. We therefore find that case (3) of [Smi1, Theorem 1.5] holds.
Example 3.2. Suppose K/F is a Z/3Z extension. The only proper GF -submodule
of A[2] is 0, so N is potentially favored and uncofavored, leaving just the condition on
automorphisms. The automorphism T defined above is GF -equivariant, so the condition
fails if and only if there are d, z0 , z1 in K so that (3.2) is satisfied and E is isomorphic
over K to the curve with Weierstrass form (3.3). This is again impossible if F is totally
real, as K is totally real in this case.
   However, there are curves that fail the condition. To give a particular example, take
F to be a number field containing Q(µ3 ), and take b to be any element of F × that is not
a cube. Then, if we consider the elliptic curve
                                      A : y 2 = x3 + b,
we find that the extension K/F is of degree 3, and the map T commutes with the con-
necting maps. We do not need to check for an isomorphism with a curve of the form
(3.3) to prove this, as this curve has CM by Z[µ3 ]. Taking ξ to be a primitive third root
of unity, we see that the automorphism corresponding to ξ either equals T or T 2 . To
check that this curve is an exception using our condition, we note that A is isomorphic
over K to the curve with equation
                                         √                 √   
                        2                  3            2      3
                      y = x x − (ξ − 1) b x − (ξ − 1) b ,

which corresponds to the solution z0 = ξ, z1 = ξ 2 of (3.2).
Example 3.3. If K/F is an S3 extension, then every condition is clearly satisfied, and
we may always apply Theorem 2.14.
  From these last two calculations, we see that Theorem 2.14 yields [Smi1, Theorem
1.5] in case (1).
Example 3.4. If K/F is quadratic, the automorphism T is non-equivariant, so we only
need to check the potentially favored and uncofavored conditions. We will replace our
notation with the notation of Example 1.2, so we are considering a pair of isogenous
elliptic curves
          A : y 2 = x(x2 + ax + b)     and A0 : y 2 = x(x2 − 2ax + (a2 − 4b))
with a, b in F for which b is nonzero and a2 − 4b is outside F 2 .
   We find that A is potentially favored if GF acts nontrivially on A0 [2], which happens
if b is outside (F × )2 . If A is not potentially favored, we may instead consider the curve
                            SELMER GROUPS IN TWIST FAMILIES II                              13

A0 , which fits into the K = F case. Next, we see that A is uncofavored if and only if
F (A[2]) 6= F (A0 [2]), which is equivalent to the condition that ba2 − 4b2 is not in (F × )2 .
   If neither b nor ba2 − 4b2 are squares, we find that the main theorem applies to A. So
Theorem 1.4 follows from Theorem 2.14.
Remark 3.5. Using the methods of this paper, one could find the distribution 2-Selmer
ranks in the family of favored twists for some of the exceptional cases listed above
without too much difficulty. For every exceptional curve, the first or second moment
of the size of the 2-Selmer group in the twist family is notably larger than for a non-
exceptional curve. To give a concrete example, the average size of the 2-Selmer group
for the curve with equation
                                  dy 2 = x(x − 1)(x − 4)
over Q is larger than the average size of the 2-Selmer group for the curve with equation
                                  dy 2 = x(x − 1)(x + 1)
as d varies through the squarefree integers.
   A more difficult question is whether the results on higher Selmer groups can be gen-
eralized to these exceptional cases. The author is hopeful that future research will shed
some light on these examples.
3.2. Quadratic twists of abelian varieties. Generalizing from elliptic curves, we may
ask about the 2∞ -Selmer groups in the quadratic twist family of an abelian variety A/F
of dimension g > 1. To define an alternating structure on A[2∞ ] using the Weil pairing,
we need to choose a self-dual isogeny λ : A → A∨ of odd degree over F , where
A∨ denotes the dual abelian variety to A. Any such self-dual isogeny arises from a
symmetric line bundle L on A defined over F , but might not arise from a line bundle
defined over F . However, the obstruction to the existence of this bundle is given by an
element cλ of the 2-Selmer group of A [26, 25], and this Selmer element is universal
across the quadratic twist family of A [17]. The technical conditions force us to assume
that cλ = 0 and hence that λ comes from a symmetric line bundle defined over F .
   From the existence of this symmetric line bundle, we can conclude that there is a
quadratic refinement q : A[2] → ±1 of the Weil pairing on A[2] induced by λ [20,
p. 314f.]. Taking K = F (A[2]), we must have that Gal(K/F ) is a subgroup of the
orthogonal group O(q) of automorphisms of A[2] preserving this quadratic form.
Example 3.6. In the case that Gal(K/F ) equals O(q), we find that the technical con-
ditions are all satisfied. We start by noting that, in this case, H 1 (Gal(K/F ), A[2]) is
nonzero if and only if g = 3 and q has Arf invariant 0 [24, Theorems 4.2 - 5.2]. In the
one exceptional case, we find there is σ in GF such that the restriction of the nontrivial
cocycle class to H 1 (hσi, A[2]) is nonzero; specifically, in the notation of the final para-
graph of [24, p. 417], we see that the restriction of the derivation δ to the subgroup of
S8 generated by the element (12)(34)(56)(78) is nontrivial. In all cases, there are no
nonzero universal 2-Selmer elements.
14                          SELMER GROUPS IN TWIST FAMILIES II

     Given v ∈ A[2] satisfying q(v) = 1, the map
                            w 7→ w + (q(v + w) − q(w) − 1)v
defines an element in O(q) known as a transvection. Using these transvections and the
fact that g > 1, we may show that any submodule of A[2] closed under O(q) con-
tains a nonzero singular element v, and can conclude from [24, Theorem 1.3] that
T = A[2]. The potentially favored and uncofavored conditions hold. Another appli-
cation of transvections shows that the only equivariant automorphism of A[2] is the
identity.
   Since the technical conditions are all satisfied, we find that the 2∞ -Selmer groups
of quadratic twists of abelian varieties in this case have the same distribution as the
2∞ -Selmer groups of elliptic curves in Gal(K/F ) = S3 case.
   This previous example may be considered the most generic case where our theorem
applies for quadratic twist families of abelian varieties. A more concrete example comes
from the Jacobians of odd degree hyperelliptic curves.
Example 3.7. Choose g > 1 and choose a degree 2g + 1 polynomial
                          f (x) = a2g+1 x2g+1 + a2g x2g + · · · + a0
with coefficients in F and no repeated roots. Consider the hyperelliptic curve C with
equation y 2 = f (x), and take A to be the Jacobian of C with the standard principal
polarization. Take P1 , . . . , P2g+1 to be the points on this curve where y = 0, take P0 to
be the point at ∞, and write Pi −P0 as ei . Then e1 , . . . , e2g+1 generate A[2] subject to the
unique relation e1 + · · · + e2g+1 = 0 [27]. From this, we find that K equals the splitting
field of the polynomial f , and that Gal(K/F ) is necessarily a subgroup of S2g+1 .
   In the maximal case where Gal(K/F ) = S2g+1 , we may apply [24, Theorem 5.1] to
show there are no universal nonzero 2-Selmer elements. The other technical conditions
are easily checked.
   Using the Chabauty–Coleman method, one can go from bounds on the rank of the
Jacobian of a curve of genus > 1 to bounds on the number of rational points on the
curve. One concrete application of these methods and Theorem 2.14 is the following.
Theorem 3.8. Choose g > 1, and choose a polynomial f (x) = a2g+1 x2g+1 + · · · + a0
with rational coefficients. Taking K to be the splitting field for f over Q, we assume
that Gal(K/Q) is isomorphic to S2g+1 . Given a positive integer d, take Cd to be the
hyperelliptic curve with equation dy 2 = f (x) over Q. Take N to be the maximal odd
integer dividing the conductor of C1 , and choose a positive integer b coprime to 2N.
Then we have the following:
     • Suppose the Jacobian of Cb has even 2-Selmer rank. Then 100% of the Cd with
        d equal to b mod 8N have 1 rational point, and we have
                                      X                     
                        lim H −1 ·           #Cd (Q) − 1 = 0.
                        H→∞
                                        0<d<H
                                      d≡b mod 8N
                           SELMER GROUPS IN TWIST FAMILIES II                             15

        • Suppose the Jacobian of Cb has odd 2-Selmer rank. Then 100% of the Cd with d
          equal to b mod 8N have at most 3 rational points, and we have
                                   X                            
                      lim H −1 ·          max 0, #Cd (Q) − 3 = 0.
                    H→∞
                                 0<d<H
                                d≡b mod 8N

Proof. Take A to be the Jacobian of C1 , and choose a positive integer d equal to b mod
8N.√The Jacobian of Cd is then identified with the quadratic twist Ad of A associated to
Q( d). From the above discussion, we see that Theorem 2.14 applies to the 2∞ -Selmer
groups of the quadratic twists of A. We can calculate that this example is in the parity-
invariant subcase, so the 2-Selmer parity of Ad equals the 2-Selmer parity of Ab ; see
[39] for more details. With this set, the bounds on rational points for 100% of d follow
from [34, Theorem 1.1].
   From Theorems 2.6 and 2.14, we also can prove an estimate
                                 X                d
                                          7 rank(A /Q) = o(H)
                                   d<H
                              rank(Ad /Q)>1

for H > 0. The result on the average of #Cd (Q) then follows from [29, Theorem 1].
                                                                                          
  A stronger result than this can be proved if the abc conjecture is assumed; see [5,
Corollary 1].
3.3. A general construction for twistable modules. Suppose | F | = ℓ. A versatile
method for constructing twistable modules is to start with a Galois module N0 over F
isomorphic to some finite power of Qℓ /Zℓ as an abelian group and consider the tensor
product N = N0 ⊗ Zℓ [ξ].
Example 3.9. Choose Zℓ [ξ] so ξ has order ℓ. In the case that N = A[ℓ∞ ] for an abelian
variety A/F , we can construct an abelian variety (A ⊗ Z[ξ])χ over F for any χ ∈ XF .
This abelian variety has dimension (ℓ − 1) dim A, and its ℓ∞ -torsion is isomorphic to
(N ⊗ Zℓ [ξ]])χ over F . In the case that ℓ = 2, this variety is just the quadratic twist of A
by χ. See e.g. [16] for background on this construction.
  Assuming χ is nontrivial, we also have an identity,
(3.4)              rank(A/K) = rank(A/F ) + rank ((A ⊗ Z[ξ])χ /F ) ,
where K/F is the cyclic extension associated to χ. This motivates the study of the
Selmer groups of the twists of A ⊗ Zℓ [ξ].
   From Remark 2.8, we know there we can find finitely submodules T1 , . . . , Tk of N ⊗
Zℓ [ξ] so that every χ ∈ XF favors some (N ⊗ Zlz)/Ti . Giving these modules the usual
local conditions associated to an abelian variety, we also have
                                                                    
                rank (A ⊗ Z[ξ])χ /F ≤ (ℓ − 1) · rω ((N ⊗ Z[ξ])/Ti )χ .
for all i ≤ k. From this relation, we see that Theorem 1.1 follows from Theorem 2.6.
16                         SELMER GROUPS IN TWIST FAMILIES II

   The non-self-dual case of Theorem 2.14 cannot apply to this example, as every po-
larization of A over F will either lead to self-dual structure for N[ω] or have a kernel
that can be manipulated to give a proper nonzero cofavored submodule of N[ω]. So sup-
pose N has alternating structure. In this case, the Cassels–Tate pairings indexed by even
numbers for the twists of N are symmetric rather than alternating for ℓ odd; see [Smi1,
Remark 4.14]. We cannot control the diagonal entries of the matrices corresponding to
these pairings, which is why Case 2.13 included the assumption # F = 2.
   However, if N otherwise obeys the conditions of the alternating case, our methods
apply without adjustment to find the distribution of the Cassels–Tate pairings indexed
by odd integers. Just from these pairings, we can show that
                            rank(A/K) − rank(A/F ) ≤ ℓ − 1
for 100% of the cyclic degree ℓ extensions K of F .
   In contrast to the quadratic extensions, we expect that rank(A/K) should equal rank(A/F )
for 100% of the cyclic degree ℓ extensions K of F for ℓ odd. See [4, Conjecture 1.2] for
precise conjectures for elliptic curves over Q. To prove such a zero density result us-
ing our methods would require some control on the diagonal terms for the Cassels–Tate
pairings indexed by even numbers.
Example 3.10. Choose a nonzero element m in F . If F contains µ3 , the 3∞ torsion of
the elliptic curve A : y 2 = x3 + m is a twistable module that satisfies the conditions
of the alternating case besides # F = 2. Using our methods, we could show that the
elliptic curves with Weierstrass form y 2 = x3 + md2 have 3∞ -Selmer corank at most 1
for 100% of integers d in F , where we are ordering d by the norm of the radical of the
ideal (d).
   Unfortunately, our method completely fails if F does not contain µ3 , as an order 3
automorphism of A is only defined over Q(µ3 ). We can adjust our methods to handle
non-equivariant automorphisms ξ, and we can still control ω-Selmer groups in this non-
equivariant case. However, twice the ω-Selmer rank is no longer an upper bound for the
rank of the eliptic curve. All we can say is that the rank of y 2 = x3 + md2 is at most
the sum of the ω-Selmer ranks of this curve and the isogenous curve y 2 = x3 − 27md2 .
Our trick to focus on favored twists no longer works, and it is unclear how to adjust our
methods to say anything interesting about this family.
Example 3.11. A simple example of the twisting construction is given by the twistable
module N = Qℓ [ξ]/Zℓ [ξ] with a trivial GF action, where ξ has order ℓ. In [Smi1,
Example 4.5], we saw that we could decorate this twistable module with local conditions
so, given a cyclic degree ℓ extension K/F and a nontrivial character χ : Gal(K/F ) →
µℓ , we had an injection
                                                
                         Cl ∗ L (Cl ∗ L)Gal(L/F ) [ℓ∞ ] ֒→ Sel N χ .
A condition for this map to be an isomorphism is given in [18, Proposition 7.4]. Using
Proposition 8.5, we find that the set of twists not satisfying this condition in the families
considered in [Smi1, Theorem 1.11] is negligible.
                           SELMER GROUPS IN TWIST FAMILIES II                            17

   We now check when the technical conditions apply in this example. The potentially
favored, uncofavored, and no extra automorphisms conditions are automatic since N[ω]
is 1-dimensional. There are also no universal ω-Selmer elements. So this example
satisfies the conditions for Case 2.12 if it lacks self-dual structure.
   If F does not contain µℓ , then N[ω] and N[ω]∨ are nonisomorphic, so there is no
self-dual structure. So suppose F contains µℓ . If ℓ is odd, we find that N[ω 2 ] is iso-
morphic to (Z/ℓZ)2 as a GF -module, so N[ω 2 ] is isomorphic to N[ω 2 ]∨ and there is
self-dual structure. However, if ℓ is even, we see that N[ω 2 ] is isomorphic to Z/4Z, so
the isomorphism between N[ω] and N[ω]∨ only commutes with the connecting map if
F contains µ4 .
   This accounts for the technical conditions on [Smi1, Theorem 1.11]. The translation
from the set XF,ℓ,r1′ (H) to sets of the form XF (H ′ , (χv )v ) is straightforward. For any
non-archimedean v ∈ V0 , we find that the preimage of Wv (χv ) in H 1 (Gv , N[ω]) has
cardinality ℓ. For archimedean places, we find this preimage has order ℓ if v is real and
χv ramifies at v, and otherwise has order 1. So, given χ in XF ((χv )v ), we find that

                            rω (N χ ) − rω ((N ∨ )χ ) = −r2 − r1′

by (2.3), where r2 equals the number of conjugate pairs of complex places, and r1′ equals
the number of real places v where χv is trivial. With this calculated, [Smi1, Theorem
1.11] follows.
   We note that the ℓ∞ -portion of the class groups of the Galois degree ℓ extensions of
F have a different distribution if F contains µ2ℓ . For example, we can use the methods
of this paper to show that the ω-portion of the class group has larger moments in this
case. In our estimation, it should be challenging but possible to adjust the methods of
this paper and [Smi1] to compute the distribution of class groups in the presence of extra
roots of unity.

Remark 3.12. Given a number field L and an integer m ≥ 1, the ℓ∞ -torsion of the
algebraic K-group K2m OL of the roots of unity of L can be identified with the Selmer
group of the Tate twist Qℓ /Zℓ (m + 1) over L endowed with a certain reasonable set
of local conditions; see [37, Theorem 7.2]. Because of this, one should be able to find
distributional results for these groups that are analogous to our results for class groups,
with Theorem 2.14 applying whenever µ2ℓ does not lie in F . For other work on the
heuristics of these K-groups, see [9].




               4. TAMAGAWA RATIOS AND COFAVORED SUBMODULES
  Proposition 2.5 claimed that large Tamagawa ratios lead to large ω-Selmer groups.
Our first goal is to prove this result.
18                             SELMER GROUPS IN TWIST FAMILIES II

Proof of Proposition 2.5. Take T and χ as in the proposition, and take V1 to be the set
of primes dividing hF (χ). The group
(4.1)                                                                                 !
                       Y                     Y                   Y
 ker H 1 (GF , T ) →       H 1 (Gv , N[ω]) ×   H 1 (Gv , N χ ) ×      H 1 (Iv , N[ω])
                        v∈V0                    v∈V1                v6∈V0 ∪V1
              ω   χ                                       0
maps into Sel N with kernel equal to the image H (GF , N[ω]/T ) under the connect-
ing map. For v in V1 , we have an exact sequence
                  0 →H 0 (Gv , T ) → H 0 (Gv , N χ ) → H 0 (Gv , N χ /T )
                      →H 1 (Gv , T ) → H 1 (Gv , N χ ),
so
                                                 #H 0 (Gv , N χ /T ) · #H 0 (Gv , T )
       # ker H 1 (Gv , T ) → H 1 (Gv , N χ ) =
                                                          #H 0 (Gv , N χ )
                                                  #H 0 (Gv , N/T [ω]) · #H 0 (Gv , T )
                                               =                                       .
                                                          #H 0 (Gv , N[ω])
We then can use the global Euler-Poincaré characteristic formula of Tate [22, Section
8.7.9] to say that (4.1) has cardinality at least
                                   Y #H 0 (Gv , N/T [ω])
                                c·                           ,
                                          #H 0 (Gv , N[ω])
                                     v∈V1

where c is some positive number that does not depend on the choice of χ. This gives the
proposition.                                                                         
   This proposition forced us to restrict our attention to favored twists in Theorem 2.14.
But this proposition is not the end of the importance of Tamagawa ratios in our work.
Given a potentially-favored twistable module N, the average size of Selω N χ as χ varies
through XfavF,N tends towards a certain sum indexed by the submodules T of N[ω] that
have Tamagawa ratio exactly 1. In particular, twistable modules with more cofavored
submodules tend to have ω-Selmer groups of larger average size.
   This led to our restriction to uncofavored modules. But this only gives control over
the first moment of the ω-Selmer groups in this family. For k > 1, if the twistable
module N ⊕k has extra cofavored submodules beyond the obvioius ones, we find that the
k-moments of the sizes of the ω-Selmer groups in this family are larger than would be
seen for a family without extra cofavored modules. The main goal for the rest of this
section is to show how one can control the collection of cofavored submodules in these
powers.
   Throughout this section, we fix F , Zℓ [ξ], and a Galois extension K of F containing
µℓk0 where ℓk0 is the order of ξ. All twistable modules referenced will be defined with
respect to F and Zℓ [ξ], and the ω 2 -torsion of all referenced modules will be acted on
trivially by GK . We will take G0 = Gal(K/F (µℓk0 )).
Definition 4.1. Given a twistable module N, we call N potentially favored if
                            SELMER GROUPS IN TWIST FAMILIES II                            19

      • For any GF -submodule T of N[ω], we have
               X                         X
(4.2)              dim H 0 (hσi, N[ω]) ≥     dim H 0 (hσi, (N/T )[ω]),
                 σ∈G0                          σ∈G0

       and
     • There is some function
                                           w : G0 → R
        so that, for any GF -submodule T of N[ω], we either have
        X                                  X
             w(σ) · dim H 0 (hσi, N[ω]) >      w(σ) · dim H 0 (hσi, (N/T )[ω])
       σ∈G0                                    σ∈G0
        or
             dim H 0 (hσi, N[ω]) = dim H 0 (hσi, (N/T )[ω]) for all σ ∈ G0 .
We call the set of functions w that obey the second property the superlatives for N.
   We will prove that this definition of potentially favored is equivalent to Definition 2.7
in Proposition 8.11.
Definition 4.2. Given an exact sequence
                              0 → Zm → Zn → Zn−m → 0,
we get an associated sequence of twistable modules
                           0 → N ⊕m → N ⊕n → N ⊕n−m → 0
by tensoring with N. We call any such exact sequence a basic exact sequence.
  I would like to thank David Yang for his help in finding the following proposition.
Proposition 4.3. Suppose N1 and N2 are twistable modules. Then, if N1 and N2 are
potentially favored, and if w : G0 → R+ is a superlative for both, then N1 ⊕ N2 is
potentially favored and has w as a superlative.
Proof. Take N1 , N2 , and w as in the statement of the proposition, and take T to be a
submodule of N1 ⊕ N2 . Taking the quotient of the exact sequence
                                       ι              π
                                    → N1 ⊕ N2 −
                             0 → N1 −         → N2 → 0
by T gives the exact sequence
                   0 → N1 /ι−1 (T ) → (N1 ⊕ N2 )/T → N2 /π(T ) → 0.
Here, ι and π are the obvious injection and projection.
  The long exact sequence associated to this short exact sequence gives
             dim H 0 (hσi, (N1 ⊕ N2 )/T [ω])
                  ≤ dim H 0 (hσi, N1 /ι−1 (T )[ω]) + dim H 0 (hσi, N2 /π(T )[ω])
20                               SELMER GROUPS IN TWIST FAMILIES II

for all σ in G0 . Then
 X
      w(σ) · dim H 0 (hσi, (N1 ⊕ N2 )/T [ω])
σ∈G0
         X                                                 X
     ≤          w(σ) · dim H 0 (hσi, N1 /ι−1 (T )[ω]) +           w(σ) · dim H 0 (hσi, N2 /π(T )[ω])
         σ∈G0                                              σ∈G0
         X                                       X
     ≤          w(σ) · dim H 0 (hσi, N1 [ω]) +          w(σ) · dim H 0 (hσi, N2 [ω])
         σ∈G0                                    σ∈G0
         X
                             0
     =          w(σ) · dim H (hσi, (N1 ⊕ N2 )[ω]).
         σ∈G0

If the first and last entries in this sequence are equal, the positivity of w forces
         dim H 0 (hσi, (N1 ⊕ N2 )/T [ω]) = dim H 0 (hσi, (N1 ⊕ N2 )[ω]) for σ ∈ G0 .
So w is is a superlative for N1 ⊕ N2 . Applying this argument for the superlative 1 + ǫw
with ǫ approaching zero shows that N1 ⊕ N2 is potentially favored, giving the proposi-
tion.                                                                                  
Remark 4.4. Given a twistable module N, a nonnegative integer a, and a GF -submodule
T of N ⊕a [ω], we see that the logic of the above proposition gives that there is some
sequence of GF -submodules T1 , . . . , Tj of N[ω] and some sequence of nonnegative in-
tegers a1 , . . . , aj with sum a so that
                                       X
     dim H 0 (hσi, N ⊕a /T [ω]) ≤         ai · dim H 0 (hσi, N/Ti [ω]) for all σ ∈ G0 .
                                         i≤j

This gives a useful upper bound for the function σ 7→ dim H 0 (hσi, N ⊕a /T [ω]) in the
case that T is not cofavored.
  Given σ ∈ G0 and twistable modules N1 and N2 , we can consider the connecting
maps δσ,N1 and δσ,N2 as defined in (2.1). Given a GF -equivariant homomorphism φ :
N1 [ω] → N2 [ω], we say that φ commutes with the connecting maps if
(4.3)                                   φ ◦ δσ,N1 = δσ,N2 ◦ φ
for all σ in G0 .
Proposition 4.5. Take N1 and N2 to be potentially favored modules sharing some su-
perlative w. Suppose the only cofavored submodules of Ni are 0 and Ni [ω] for i = 1, 2.
Then the cofavored submodules of N1 ⊕ N2 are 0, 0 ⊕ N2 [ω], (N1 ⊕ N2 )[ω], and those
modules of the form
                              {(x, β(x)) : x ∈ N1 [ω]} ,
where β : N1 [ω] → N2 [ω] is an equivariant homomorphism commuting with the con-
necting maps.
Proof. Choose a cofavored submodule T of N1 ⊕ N2 , and consider the standard exact
sequence
                                ι           π
                                → N1 ⊕ N2 −
                         0 → N2 −           → N1 → 0.
                           SELMER GROUPS IN TWIST FAMILIES II                           21

From the argument of the previous proposition, we see that ι−1 (T ) is cofavored in N2
and π(T ) is cofavored in N1 . If ι−1 (T ) is nonzero, it is N2 [ω], and we find that T is
either 0 ⊕ N2 [ω] or (N1 ⊕ N2 )[ω]. So we assume it is zero.
   If π(T ) is also zero, T is zero, so we can assume π(T ) is N1 [ω]. Then T is the graph
of an equivariant homomorphism β : N1 [ω] → N2 [ω].
   Following the logic of the previous proposition we find that, since T is cofavored, the
connecting map
                                                                
(4.4)                      H 0 hσi, N1 [ω] −−→ H 1 hσi, N2 [ω]
corresponding to the sequence
                    0 → N2 [ω] → ((N1 ⊕ N2 )/T )[ω] → N1 [ω] → 0
is zero for σ in G0 . More explicitly, for x ∈ H 0 (hσi, N1[ω]), this means the cocycle on
hσi defined by                                
                          σ 7→ β (σ − 1) ω1 x − (σ − 1) ω1 β(x)
is a coboundary. But this is equivalent to β commuting with the connecting maps.
   Conversely, we find that the graph of any GF -homomorphism β that commutes with
the connecting maps is cofavored in N1 ⊕ N2 , and we have the proposition.              
Remark 4.6. Given N1 and N2 satisfying the conditions of this proposition, we find that
the nonzero homomorphisms from N1 [ω] to N2 [ω] that commute with the connecting
maps are all isomorphisms, as the kernel and images of these maps are cofavored. In
particular, the set of GF endomorphisms of N1 [ω] that commute with connecting maps
form a finite division ring and hence a finite field of characteristic ℓ by Wedderburn’s
theorem. The set of GF homomorphisms from N1 [ω] to N2 [ω] that commute with con-
necting maps is then either 0 or a one-dimensional vector space over this field.
   Under some technical assumptions, we can now classify the cofavored submodules of
direct sums of potentially favored modules.
Proposition 4.7. Take N1 , . . . , Nr to be potentially favored modules sharing some su-
perlative. Suppose we have the following:
     • For i ≤ r, the only cofavored submodules of Ni are 0 and Ni [ω];
     • For i ≤ r, the only GF -automorphisms of Ni [ω] that commute with the connect-
        ing maps are those in F×    ℓ ; and
     • For i, j ≤ r with i 6= j, there is no GF -isomorphism of Ni [ω] and Nj [ω] that
        commutes with the connecting maps.
Then, for a1 , . . . , ar nonnegative integers, the cofavored submodules of
(4.5)                              N1⊕a1 ⊕ · · · ⊕ Nr⊕ar
are those of the form
(4.6)                       A1 ⊗ N1 [ω] ⊕ · · · ⊕ Ar ⊗ Nr [ω],
where Ai is a vector subspace of Faℓ i for i ≤ r.
22                                  SELMER GROUPS IN TWIST FAMILIES II
                                 P
Proof. We work by induction on i ai . From Proposition 4.5, the result holds for this
                        P a ≥ 3, and suppose every
sum at most two. Now take                          Pcofavored submodule of (4.5)
takes the form (4.6) for i ai < a. Then suppose i ai = a, and take T to be a
cofavored submodule of (4.5).
   Choose any direct sum of basic exact sequences
                       M          ι
                                    M           π
                                                  M
(4.7)            0→       Ni⊕bi −→       Ni⊕ai −→   Ni⊕ai −bi → 0.
                               i                    i                 i
        P        P                                           −1
with    i ai >   i bi > 0. We claim that we can assume that ι (T ) is zero and that
                                                        M
(4.8)                                        π(T ) =        Ni⊕ai −bi [ω].
                                                        i

First, suppose ι−1 (T ) is nonzero. It is cofavored, and hence can be written in the form
(4.6) by the induction step. There is then some other direct sum of basic exact sequences
                        M            ιc
                                        M          πc
                                                       M
(4.9)             0→         Ni⊕ci −−→      Ni⊕ai −−→      Ni⊕ai −ci → 0
                               i                    i                     i
        P
with    i ci > 0 so that
                                             M
                                                  Ni⊕ci [ω] = ι−1
                                                               c (T ).
                                              i

The module L πc (T ) is cofavored, and hence expressible in the form (4.6). T equals its
preimage in i Ni⊕ai [ω], and is hence also expressible in this form.
   Now suppose (4.8) fails to hold. The module π(T ) is cofavored, and hence expressible
in the form (4.6). The same holds for the preimage π −1 (π(T ))[ω]. We now choose (4.9)
so that                                !
                              M
                          ιc      Ni⊕ci = π −1 (π(T ))[ω] ⊇ T.
                                         i
                                              P       P
Because (4.8) does not hold, we have that i ai > i ci , so ι−1   c (T ) is expressible in
                                                   −1
the form (4.6) by the induction step. But T = ιc (ιc (T )), and hence is also expressible
in this form.
   We have now P         Pthe case where, given any direct sum of basic exact sequences
                reduced to
(4.7) satisfying i ai > i bi > 0, we have ι−1 (T ) = 0 and (4.8). But in this case, we
must have
                      X
             dim T =     (bi − ai ) · dim Ni [ω]
                           i
                                                                              X          X
                                   for all b1 , . . . , br ≥ 0 so that            ai >       bi > 0.
                                                                              i          i
        P
Since i ai is at least 3 and the dim Ni are all positive, it is easy to prove that this
statement cannot hold. We have thus proved the proposition.                          
                            SELMER GROUPS IN TWIST FAMILIES II                               23

              5. L OCAL CONDITIONS FOR ω-S ELMER GROUPS IN GRIDS
  In [Smi1, Section 4], we showed that the ω-Selmer group for a given twist N χ could
be calculated in terms of the classes, spins, and symbols of the primes dividing h(χ).
To prove our distributional results about ω-Selmer groups, we need to make this result
more explicit. This starts with a reconsideration of symbols.

5.1. Involution spins. Our terminology will come from Section 3 of [Smi1], and will
in particular involve the alternative symbols defined in Section 3.1.
   Most of the identities we need for the symbols [p, q] appear in [Smi1, Proposition
3.15]. These are easily adapted to alternative symbols. In particular, given τ ∈ GF and
primes p, q of Q not over V0 satisfying τ p ∩ K 6= q ∩ K, we can determine the quotient
                                                     ′ 
                                          ′    −1
(5.1)                             [τ p, q] τ τ q, p

just from τ , the class of p, and the class of q.
   There is a subtle supplement to this result that turns out to be important.

Proposition 5.1. Choose any unacked starting tuple (K/F, V0 , e0 ), and choose a rami-
fication section for the starting tuple. Take p and p0 to be primes in the same class, and
define E = E(p) to be the minimal extension of F so K/E is inert at E ∩ p as above.
Choose τ in GF outside GE so that

                               GE · τ · GE = GE · τ −1 · GE .

Then
                                                                2
                           [τ p, p]′ [τ p0 , p0 ]′ ∈ (µe0 )GE+τ E .

Proof. We first note that it suffices to consider the case where e0 = 2. We also claim
that we can reduce to the case where K/F is a quadratic extension. To prove this, take
σ = FrobF p, and find integers j, k so we have

                                σ k τ = τ −1 σ j in Gal(K/F ).

By replacing τ with σ k τ , we may as well assume that

                                         τ 2 = σ j+k .

Then σ j+k is in both GE and Gτ E , but τ is in neither. Taking K ′ = E + τ E, we see τ is
a nontrivial involution on K ′ , and we take F ′ to be the subfield fixed by this involution.
We can then calculate [τ p, p]′ with respect to the tuple (K/F, V0 , 2) by calculating it
with respect to the tuple (K ′ /F ′, V0′ , 2), where V0′ is the set of places of F ′ over V0 .
   Having made these reductions, the result follows from the theory of theta groups [18,
Proposition 8.1].                                                                              
24                         SELMER GROUPS IN TWIST FAMILIES II

5.2. Explicit local conditions. Take N to be a twistable module defined with respect to
F and F, choose Q(K/F, V0) unpacking N, and choose an associated ramification section
B. Take X = s∈S Xs to be a grid of ideals in the sense of [Smi1, Definition 4.7]. In
particular, we assume the primes in Xs share a class [Xs ]. Taking Gal(K(V0 )/F )/ ∼
to be the set of equivalence classes considered in [Smi1, Definition 3.6], we choose σs
in Gal(K(V0 )/F ) so FrobF p lies in the class of σs in Gal(K(V0 )/F )/ ∼ for every p in
Xs . We assume that σs acts trivially on µℓk0 , where ℓk0 is the order of ξ.
   Fix κ in F(−1)× and choose a unit γs ∈ (Z/# F Z)× for each s ∈ S. Also choose
some χ0 ∈ Homcont (GF , F) that is ramified only at places in V0 . With this auxiliary data
fixed, we associate a homomorphism χ(x) ∈ XF to a given x ∈ X using the formula
                                          X
                            χ(x) = χ0 +         Bπs (x), F (γs κ).
                                               s∈S

   Recall that SN [ω]/F (V0 ) denotes the cocycle classes in H 1 (GF , N[ω]) that are unram-
ified away from V0 . Following [Smi1, Definition 4.7], define
                                                         M
                       M = M (N) = SN [ω]/F (V0 ) ⊕           N[ω]σs .
                                                         s∈S

If we now choose m = (φ0 , (ns )s ) in M , we may consider the sum
                                        X
                   Ψx,N (m) = φ0 +          Bπs (x), N [ω] (γs ns · κ).
                                             s∈S

Here, we have identified N[ω] ⊗ F with N[ω] via the isomorphism sending n ⊗ ξ to n
for n ∈ N[ω]. We take M0 to be the subset of such tuples for which Ψx (m) obeys the
local conditions at each v ∈ V0 for any (or equivalently every) χ(x). Following the logic
of [Smi1, Proposition 4.8], we also see that Ψx (m) obeys the local condition at πs (x) if
and only if
                                                                
              as,x (m) := (Ψx (m) − χ(x) ∪ ns ) FrobF πs (x) − δσs (ns )
is 0 in N[ω]σs , where δσs (ns ) denotes (σs − 1)ω −1ns evaluated in N[ω 2 ]. This uses the
fact that δσs (ns ) only depends on the image of σs in Gal(K(V0 )/F )/ ∼, which follows
from [Smi1, Remark 3.7].
   Given σ, τ ∈ GF , take B(σ, τ ) to be a set of representatives of the collection of double
cosets hσGK i\GF /hτ GK i. We assume this set of representatives contains 1. Applying
[Smi1, Proposition 3.22] gives
(5.2)      as,x (m) = φ0 (σs ) − δσs (ns ) − ns · χ0 (σs )
                                X X                                                
                            +                  γt τ −1 nt − ns κ [τ πs (x), πt (x)]′ .
                                  t   τ ∈B(σt ,σs )

   As a general rule, the proportion of x ∈ X for which Ψx (m) is a Selmer element
is smaller for choices of (ns )s where the submodule of N[ω] generated by the (ns )s is
large. The following definition helps make this more precise.
                           SELMER GROUPS IN TWIST FAMILIES II                           25

Definition 5.2. Define the ramification subspace Q = Q((ns )s ) associated to (ns )s to
be the submodule of N[ω] spanned by all elements of the form τ1 ns − τ2 nt with s, t ∈ S
and τ1 , τ2 ∈ GF .
  If φ ∈ H 1 (GF , N χ(x) ) is parameterized by m = (φ0 , (ns )s ), we also write Q(φ) and
Q(m) for Q((ns )s ).
  With this definition set, we see that a necessary condition for the Ψx (m) to obey the
local condition at πs (x) is that
(5.3)        φ0 (σs ) − δσs (ns ) − ns · χ0 (σs ) ≡ 0 mod Q + (σs − 1)N[ω].
In particular, if [Xs ] = [Xt ], we must have
                       δσs (ns − nt ) ≡ 0 mod Q + (σs − 1)N[ω].
In other words, ns − nt must lie in the image of the map (N/Q)[ω]σs → Qσs coming
from the long exact sequence associated to
                         0 → N[ω]/Q → (N/Q)[ω] → Q → 0.
Given any submodule Q of N[ω], we take M1 (Q) to be the subspace of elements in M0
satisfying the condition (5.3) for every s ∈ S. We then take
                               [
                       M1 =        {m ∈ M1 (Q) : Q(m) = Q} .
                                Q


5.3. The main character sum. We take the notation
                                  M
                             R=       (N[ω]∨ )σs .
                                           s∈S

We then define a pairing
                                 ,   x
                                         : R × M → 1ℓ Z/Z
by
                                           X                           
                         (rs )s , m) x =         lg γs · rs as,x (m)        ,
                                            s

where lg is the homomorphism taking the image of ζ in µℓ to 1/ℓ and where the pairing
between F and µℓ takes ξ ⊗ α to α for α in µℓ . The ω-Selmer group of N χ(x) then
satisfies
                                  1 X X                          
                  #Selω N χ(x) =              exp 2πi r, m x .
                                 #R m∈M r∈R
                                                  1

   We are interested in the average size of the ω-Selmer group of N χ(x) as x varies
through X, which can be calculated as
             1 X                        1       X XX                        
(5.4)               #Selω N χ(x) =                         exp 2πi r, m x .
           #X x∈X                  #X · #R             x∈X
                                                      m∈M1 r∈R
26                               SELMER GROUPS IN TWIST FAMILIES II

For fixed (r, m), the inner sum
                                          1 X                  
(5.5)                                           exp 2πi r, m x
                                         #X x∈X
can behave one of three ways:
    (1) (Invariant pairs) The pairing hr, mix does not depend on the choice of x, and
         (5.5) has magnitude 1.
    (2) (Ignorable pairs) The pairing depends on x, and (5.5) can be proved to be negli-
         gible using analytic number theoretic techniques.
    (3) (Uncontrolled pairs) The pairing depends on x, and (5.5) cannot be controlled.
   Our approach to estimating (5.4) is to approximate this sum over all invariant pairs.
The sum over invariant pairs turns out to be substantially larger than |X| times the
total number of uncontrolled pairs, and the ignorable pairs also contribute negligibly by
definition, so we find that this simple approximation suffices for our applications.
   Our first goal is to be able to distinguish these types of pairs. The following proposi-
tion is essential.
Notation 5.3. For σ in GF (µ| F | ) , note that the map τ 7→ τ −1 defines an involution on
the collection of double cosets hσGK i\GF /hσGK i, and hence also an involution on the
set of representatives B(σ, σ). We take Bfixed (σ) to be the subset of B(σ, σ) fixed by
this involution, and we take B1/2 (σ) to be a set of representatives from the collection of
orbits in B(σ, σ)\Bfixed (σ) under the group generated by this involution. We will also
fix some total order on the set S.
Proposition 5.4. With all notation as  Q above, choose s ∈ S, choose x0t ∈ Xt for all
t 6= s, and take L to be the line Xs × t6=s {x0t }. Fix φ0 , (ns )s , and (rs )s as above. Then
there is some C0 in 1ℓ Z/Z so, for all x ∈ L, we have
 (rs )s , (φ0 , (ns )s ) x
                     X        X                                                                  ′ 
                                                                                     −1
        = C0 −                            lg γs γt (τ rt − rs ) · (τ nt − ns ) · κ τ πs (x), πt (x)
                   s,t∈S τ ∈B(σs ,σt )
                    s<t
                   X         X                                                                   ′ 
               −                         lg γs2 (τ rs − rs ) · (τ ns − ns ) · κ τ −1 πs (x), πs (x)
                   s∈S τ ∈B1/2 (σs )
                   X         X                                                                     ′ 
               −                         lg A γs2 (τ rs − rs ) · (τ ns − ns ) · κ τ −1 πs (x), πs (x)       ,
                   s∈S τ ∈Bfixed (σs )

where A = 1/2 if ℓ is odd and is otherwise 0.
Proof. Given s, t in S with s < t, and given τ ∈ B(σs , σt ), we combine the (t, τ −1 )
term of rs (as,x (φ0 , (ns )s )) with the (s, τ ) term of rt (at,x (φ0 , (ns )s )) using the fact that
(5.1) is determined by classes to get
                                                                                 ′ 
             C − lg γs γt (τ rt − rs ) · (τ nt − ns ) · κ τ −1 πs (x), πt (x)
                           SELMER GROUPS IN TWIST FAMILIES II                              27

for C some constant not depending on x. This similarly works for combining the
(s, (s, τ )) term with the (s, (s, τ −1 )) term for τ in B1/2 (σs ); by halving, it can also
handle τ from Bfixed (σs ) in the case ℓ > 2.
   This just leaves the case of ℓ = 2, where we may simply apply Proposition 5.1 to
handle the terms corresponding to τ in Bfixed (σs ).                                      
                                   6. I GNORABLE PAIRS
   We keep all notation as in Section 5.2. In addition, we partition S into three sets Ssm ,
Smed , and Slg indexing small, medium, and large sets of primes. In practice, Slg will be
far larger than Ssm ∪ Smed .
   Given s and t in S, we have two methods of controlling the distribution of the symbol
[ps , pt ] as ps and pt vary through Xs and Xt . First, if neither Xs nor Xt is small, we can
control this symbol using the bilinear estimate for symbols given in [Smi1, Section 5].
On the other hand, if one of these sets is small but the other is large, we can control this
symbol using the Chebotarev density theorem.
   Using Proposition 5.4, we can identify when one of these strategies suffices to control
the sum (5.5). This leads to the following definition.
                                                   
Definition 6.1. We say that (rs )s , (φ0 , (ns )s ) is bilinearly ignorable if there are dis-
tinct indices in Smed ∪ Slg and some τ0 ∈ GF so that
(6.1)                          (τ0 rs − rt ) · (τ0 ns − nt ) 6= 0.
We say that it is ignorable by Chebotarev if it is not bilinearly ignorable and there is
some s ∈ Slg , t ∈ Ssm , and τ0 ∈ GF so (6.1) holds and for which we also have
(6.2)                 (τ rs − rs ) · (τ ns − ns ) = 0    for all τ ∈ GF .
  We call the pair unignorable if it is neither bilinearly ignorable nor ignorable by Cheb-
otarev.
   We note that the condition (6.2) is needed because the Chebotarev density theorem is
likely insufficient to control spins; see [13]. The flexible coefficients allowed by [Smi1,
Proposition 5.9] make this condition unnecessary for bilinearly ignorable pairs.
Notation 6.2. Take cbilin to be the maximum value taken by the expression (5.5) among
pairs that are bilinearly ignorable. If there is no such pair, take cbilin = 0. Similarly,
take cCheb to be the maximum value of this expression among pairs that are ignorable by
Chebotarev. If there is no such pair, take cCheb = 0.
6.1. Characterizing unignorable pairs. The basic principle of our characterization
of unignorable pairs is that, outside of an irrelevant set of (ns )s , if (rs )s is chosen so
(ns )s , (rs )s defines an unignorable pair, there is an alternating homomorphism Γ : Q →
Q∨ so
                            Γ(τ1 ns − τ2 nt ) ≡ τ1 rs − τ2 rt mod Q⊥
for all s, t ∈ S and τ1 , τ2 ∈ GF , where Q = Q((qs )s ).
   However, we still need methods for controlling the irrelevant set of (ns )s . We start
with a definition that will be important to handle the condition (6.2).
28                                SELMER GROUPS IN TWIST FAMILIES II

Definition 6.3. Given (ns )s as above, we call s0 ∈ Slg a pariah index for (ns )s if there
are not disjoint subsets S1 , S2 of Slg − {s0 } and some choice of
                                   M                          M
                     (a1s )s∈S1 ∈       Fℓ and (a2s )s∈S2 ∈        Fℓ
                                          s∈S1                                s∈S2

satisfying
                X              X                         X                 X
                       a1s =          a2s = 1    and            a1s ns =          a2s ns = ns0 .
                s∈S1           s∈S2                      s∈S1              s∈S2

We denote the set of pariah indices by Spar ((ns )s ).
   We call s0 an m/l pariah index if s0 lies in Smed ∪ Slg and the condition given above is
satisfied with Slg replaced by Smed ∪ Slg . We denote the set of m/l pariahs by Sm, par .
     Our first observation about pariahs indices is that there cannot be that many of them.
Proposition 6.4. Taking g to be the corank of N, and given (ns )s as above, we have
                                          #Spar ((ns )s ) ≤ 2g + 2
Proof. This statement is vacuous if Slg has fewer than g + 2 elements. So we assume
#Slg ≥ g + 2.
  Choose s0 ∈ Slg , and choose a sequence s1 , . . . , sr ∈ Slg so that
                                        ns1 − ns0 , . . . , nsr − ns0
gives a basis for the Fℓ -vector space spanned by all elements of the form ns − nt with
s, t ∈ Slg .
    Take Slg′ = Slg − {s0 , . . . , sr }. Choose t0 in Slg′ , and choose a sequence t1 , . . . , tr′ ∈
Slg′ so that
                                     nt1 − nt0 , . . . , ntr′ − nt0
gives a basis for the space spanned by all elements of the form ns − nt with s, t ∈ Slg′ .
    We then have r ≤ g and r ′ ≤ g, and we also have
                           Spar ((ns )s ) ⊆ {s0 , . . . , sr } ∪ {t0 , . . . , tr′ },
giving the proposition.                                                                               
     The same proposition holds for Sm, par using the same logic.
Definition 6.5. Given (ns )s as above and S ′ ⊆ S, we take
                                          Q(S ′ ) = Q(S ′ , (ns )s )
to be the vector subspace of Q((ns )s ) generated by the elements
                               τ1 ns − τ2 nt     for s, t ∈ S ′ , τ1 , τ2 ∈ GF .
We also take
     Snpar ((ns )s ) = Slg − Spar ((ns )s ) and Sm,npar ((ns )s ) = Smed ∪ Slg − Sm, par ((ns )s ).
We call (ns )s borderline if Q(Snpar , (ns )s ) is a proper submodule of Q(S, (ns )s ).
                               SELMER GROUPS IN TWIST FAMILIES II                                               29

Proposition 6.6. In the above situation, suppose the pair (ns )s , (rs )s is not bilinearly
ignorable. Then the equation
               Γ(τ1 ns − τ2 nt ) ≡ τ1 rs − τ2 rt              for all s, t ∈ S ′ , τ1 , τ2 ∈ GF
defines GF -equivariant homomorphisms
            Γm,npar : Q(S ′ ) → N[ω]∨ /Q(Slg ∪ Smed )⊥                         with S ′ = Sm,npar
            Γm, l   : Q(S ′ ) → N[ω]∨ /Q(Sm,npar )⊥                            with S ′ = Slg ∪ Smed ,
and we have an identity Γm, npar (m) · m = 0 for all m in Q(Sm, npar ).
  If the pair is unignorable, the same equation defines GF -equivariant homomorphisms
                    Γnpar : Q(S ′ ) → N[ω]∨ /Q(S)⊥                             with S ′ = Snpar
                    Γ      : Q(S ′ ) → N[ω]∨ /Q(Snpar )⊥                       with S ′ = S,
and we have an identity Γnpar (m) · m = 0 for all m in Q(Snpar ).
Remark 6.7. If (ns )s is not borderline, these four maps are all equal.
Proof. Assume to start that (ns )s , (rs )s ) is not bilinearly ignorable.
  Given                                                       X
                a : Smed ∪ Slg → Fℓ satisfying                      as = 0
                                                                           s∈Smed ∪Slg
and any function τ : S → GF , we have
                                                                                   
                        X                                       X
(6.3)                        as τs rs  ·                                as τs ns  = 0,
                           s∈Smed ∪Slg                       s∈Smed ∪Slg

as this product can be rewritten in the form
                          X
                    −               as at (τs rs − τt rt ) · (τs ns − τt nt ).
                          {s,t}⊆Smed ∪Slg

  If s0 ∈ Slg ∪ Smed is not an m/l pariah index, we can choose S1 , S2 , a1 , and a2 as in
Definition 6.3 so that we have
                                   X             X
                             ns0 =      a1s ns =    a2s ns .
                                             s∈S1                   s∈S2

Choosing τ ∈ GF , we can show
                               !                                               !
                    X                                        X
             rs 0 −    a1s τ rs ·                    ns0 −          a1s τ ns       = 0,
                        s∈S1                                 s∈S1
                                                     !                                               !
                 X                  X                        X                     X
                       a1s τ rs −          a2s rs        ·          a2s ns −              a1s τ ns       = 0,
                s∈S1                s∈S2                     s∈S2                  s∈S1
                                             !                                      !
                            X                                        X
                −τ rs0 +            a2s rs       ·    −τ ns0 +             a2s ns         =0
                            s∈S2                                    s∈S2
30                          SELMER GROUPS IN TWIST FAMILIES II

by applying (6.3) three times. But these sum to give

(6.4)          (rs0 − τ rs0 ) · (ns0 − τ ns0 ) = 0   for s0 ∈ Sm,npar , τ ∈ GF .

  Take val : Fℓ [GF ] → Fℓ to be the homomorphism sending [σ] to 1 for all σ in GF .
For S ′ a subset of S, define
                            (                                    )
                                      M            X
                   I(S ′ ) = (αs )s ∈   Fℓ [GF ] :   val(αs ) = 0 .
                                             s∈S ′        s

   Repeating the argument used to prove (6.3) and applying (6.4) as necessary, we can
show that, for all (αs )s ∈ I(Sm,npar ), all s1 ∈ Smed ∪Slg , all s0 ∈ Sm,npar , and any τ ∈ GF ,
we have
                                                                            
                              X                                    X
(6.5)      τ rs1 − rs0 +           αs rs  · τ ns1 − ns0 +            αs ns  = 0.
                            s∈Sm,npar                            s∈Sm,npar


By taking the difference with the case given by s1 = s0 , τ = 1, we get
                                                           
                            X                     X
         (τ rs1 − rs0 ) ·        αs ns  = −          αs rs  · (τ ns1 − ns0 ).
                             s∈Sm,npar               s∈Sm,npar


Except in the case where Sm,npar is empty, we can sum some number of identities of this
form together to show
                                                                             
            X                   X                    X                X
(6.6)             αs′ rs  ·       αs ns  = −        αs r s  ·         αs′ ns 
          s∈Smed ∪Slg            s∈Sm,npar               s∈Sm,npar                 s∈Smed ∪Slg


for all (αs )s ∈ I(Sm,npar ) and (αs′ )s ∈ I(Smed ∪Slg ). If Sm,npar is empty, (6.6) is vacuously
true. The existence and equivariance of Γm,npar and Γm,l follow from this equation, and
the alternating property
                           for Γm,npar follows from (6.5).
   If (ns )s , (rs )s is also not ignorable by Chebotarev, we can conclude from (6.4) that

          (τ rs1 − rs0 ) · (τ ns1 − ns0 ) = 0 for all s1 ∈ S, s0 ∈ Snpar , τ ∈ GF .

Following the same argument as before, we find
                       !                                                                !
             X              X                  X                             X
(6.7)            αs′ rs ·      αs ns  = −     αs r s  ·                        αs′ ns
               s∈S             s∈Snpar                s∈Snpar                s∈S


for all (αs )s ∈ I(Snpar ) and (αs′ )s ∈ I(S). The existence and equivariance of Γnpar and
Γ follow from this equation, as does the alternating property of the former map.        
                            SELMER GROUPS IN TWIST FAMILIES II                              31

6.2. Bounds for borderline (ns )s . For our first result, we fix (ns )s and give upper
bounds for the number of unignorable pairs that contain it.
Proposition 6.8. With all notation as above, there is a C > 0 determined just from
(K/F, V0, F) so we have the following:
  Choose (ns )s as above, and take Q(S ′ ) = Q(S ′ , (ns )s ) as in Definition
                                                                              6.5 for any
        ′
subset S of S. Then the number of (rs )s in R for which (ns )s , (rs )s is not bilinearly
ignorable is bounded by
                 2
                      Y                                      Y
              eCg ·          #(N[ω]/Q(Smed ∪ Slg ))σs ·          #N[ω]σs ,
                      s∈Smed ∪Slg                              s∈Ssm

and the number of such (rs )s for which this pair is unignorable is bounded by
   2
      Y                       Y                               Y
eCg ·    #(N[ω]/Q(S))σs ·          #(N[ω]/Q(Smed ∪Slg ))σs ·       #(N[ω]/Q(Snpar ))σs ,
     s∈Slg                      s∈Smed                            s∈Ssm

where g is the corank of N.
Proof. We first note that we have an identity
                                         #Qσ0 = #(Q∨ )σ0
for any σ0 in GF (µ k ) and any GF submodule Q of N[ω].
                    ℓ 0
   To bound the number of (rs )s for which the pair is not bilinearly ignorable, we use
the map Γm,npar defined in Proposition 6.6. Having fixed this      map and the value of rs0
                                                                 ⊥ σs
for some s0 ∈ Smed ∪ Slg , there are at most Q(Smed ∪ Slg )           consistent choices of rs
for each s in Sm, npar . The choice of Γm,npar , the value of rs at the m/l pariahs, and the
                                                2
value of rs0 can then be absorbed by the eCg term. Accouting for the possible values of
rs for s ∈ Ssm gives the first estimate.
   For the estimate of unignorable pairs, we use the maps Γ, Γm,npar , and Γnpar of Propo-
sition 6.6 to constrain the rs for s in Ssm , Smed , and Slg respectively. With this setup, the
proof follows as before.                                                                     
  The following bound will be convenient in our bound for the number of borderline
(ns )s .
Definition 6.9. We define the set of jury indices Sjury to be the set of s ∈ Slg for which
σs is trivial in Gal(K(V0 )/F ).
Proposition 6.10. With all notation as above, there is a C > 0 determined just from
(K/F, V0, F) so we have the following:
  Choose GF -submodules Q1 ⊆ Q0 of N[ω]. Take
                        k = (#Sjury − #Ssm ∪ Smed ) · dim Q0 /Q1 .
  Then the size of the set
   
     (φ0 , (ns )s ) ∈ M1 (Q0 ) : Q(Snpar ((ns )s ), (ns )s ) ⊆ Q1 and Q((ns )s ) = Q0
32                                SELMER GROUPS IN TWIST FAMILIES II

has upper bound
                                                           Y                                
                     −k    Cg 2                   Cg                         #(N/Q)[ω]σs
(6.8)            ℓ        ·e      · (1 + #Slg )        ·         min Q                           ,
                                                           s∈S
                                                                             #(N[ω]/Q0 )σs

where each minimum is taken over GF -modules Q satisfying Q1 ⊆ Q ⊆ Q0 .
Proof. From Proposition 6.4, we see that we can bound the choices of pariah indices,
                                                           2
together with the value of ns at the pariah indices, by eCg (1 + #Slg )Cg . From (5.3), we
can then bound the number of tuples (ns )s∈Slg completeable to some (φ0 , (ns )s ) in the
set by
                2
                                  Y                                        
            eCg (1 + #Slg )Cg ·       # Qσ1 s ∩ im (N/Q0 )[ω]σs → Qσ0 s .
                                         s∈Slg

  Meanwhile, given (ns )s∈Slg , the number of completions to (φ0 , (ns )s ) in M1 (Q0 ) is
bounded by
                               Y                              
                    eCg ·            #im (N/Q0 )[ω]σs → Qσ0 s .
                                    s∈Ssm ∪Smed

Takinng ω1 Q1 to be the set of x in N[ω 2 ] for which ωx lies in Q1 , we have an identity
                                                                                     σs       
              Qσ1 s ∩ im (N/Q0 )[ω]σs → Qσ0 s = im                           1
                                                                             ω
                                                                               Q1 /Q0     → Qσs
                                                                                             1    ,
where the image on the right comes from the second map in the exact sequence
                               0 → N[ω]/Q0 → ω1 Q1 /Q0 → Q1 → 0.
So we have
                                                                                       σs
                                                                         # ω1 Q1 /Q0
                #     Qσ1 s ∩ im (N/Q0 )[ω]σs → Qσ0 s                    =                 .
                                                                           # (N[ω]/Q0 )σs
Given Q satisfying Q1 ⊆ Q ⊆ Q0 , we have the chain
                    σs             σs            
       # ω1 Q1 /Q0      ≤ # ω1 Q/Q0     = # ω1 Q/Q0 σs ≤ # (N/Q) [ω]σs ,
with the first and last inequalities following from the existence of a natural inclusion and
projection, respectively. For s ∈ Sjury , we can make use of the exact result
                                      
                        # ω1 Q1 /Q0 = ℓ− dim Q0 /Q1 · # (N/Q) [ω].
Finally, for s ∈ Ssm ∪ Smed , we have
                           # (N/Q) [ω]σs ≥ ℓ− dim Q0 /Q1 · # (N/Q0 )σs ,
as follows from an application of the long exact sequence. Combining these bounds
gives the proposition.                                                         

     We can now handle the borderline (ns )s by combining Propositions 6.8 and 6.10.
                             SELMER GROUPS IN TWIST FAMILIES II                           33

Proposition 6.11. With all notation as above, there is a C > 0 determined just from
(K/F, V0, F) so we have the following:
  Choose distinct GF -submodules Q0 and Q1 of N[ω] satisfying Q1 ⊂ Q0 . Take M ′ to
be the set of (φ0 , (ns )s ) in M satisfying
                                                                
                   Q((ns )s ) = Q0 and Q Snpar ((ns )s ), (ns )s = Q1 .
Take
                               b = #Sjury − 2 · #Ssm ∪ Smed .
We assume b > 0. Then, for any GF -module Q satisfying Q1 ⊆ Q ⊆ Q0 , we have
       1 X 
               # m ∈ M ′ : Ψx (m) ∈ Selω N χ(x)
      #X x∈X
                         2
             ≤ ℓ−b · eCg (1 + #Slg )Cg · TN,Q (χ(x0 )) · + (cbilin + cCheb ) · eCg|S| ,
where x0 is any point in X.
Proof. We can rewrite the average we are bounding by
                         1     X XX                       
                                            exp 2πi r, m x .
                      #X · #R m∈M ′ r∈R x∈X

We may restrict this sum to m that are also in M1 (Q0 ). Using Proposition 6.10, we can
then bound this average by
                                                                  !
                        A              XX                       
                               max             exp 2πi r, m x ,
                    #X · #R m∈M ′ r∈R x∈X

where A equals (6.8). The inner sum can be bounded using Proposition 6.8, giving
                                            !
             1 XX                         
    max                    exp 2πi r, m x
    m∈M ′  #X r∈R x∈X
                                       2
                                                                    Y
         ≤ (cbilin + cCheb ) · #R + eCg · ℓdim Q0 /Q1 ·#Ssm ∪Smed ·   #(N[ω]/Q0 )σs
                                                                     s∈S

for some C > 0 only depending on (K/F, V0, F). The result follows.                        

6.3. Rough bounds for average Selmer group sizes. Having dealt with borderline
(ns )s , we need upper bounds on the average number of non-borderline (ns )s that give
Selmer elements. Our main result is the following.
Proposition 6.12. With all notation as above, there is a C > 0 determined just from
(K/F, V0, F) so we have the following:
34                         SELMER GROUPS IN TWIST FAMILIES II

  Choose a GF -submodule Q of N[ω], and take M ′ to be the set of non-borderline
(φ0 , (ns )s ) ∈ M satisfying Q = Q((ns )s ). Then
                    1 X 
                            # m ∈ M ′ : Ψx (m) ∈ Selω N χ(x)
                  #X x∈X
                                      2
                         ≤ eCg · TN,Q (χ(x0 )) + (cbilin + cCheb ) · eCg|S| ,
where x0 is any point in X.
Proof. We may restrict the sum to m lying in M1 (Q). The number of such m can be
bounded by an expression of the form
                                    Y #(N/Q)[ω]σs
                              eCg ·                 .
                                    s∈S
                                        #(N[ω]/Q)σs
The result then follows from Proposition 6.8.                                           
   For some grids, we will have access to bilinear results but not to the Chebotarev
density theorem. For these, we will need the following rough bound on the average size
of Selmer groups in the grid.
Proposition 6.13. With all notation as above, there is a C > 0 determined just from
(K/F, V0, F) so we have
              1 X 
                     # m ∈ M : Ψx (m) ∈ Selω N χ(x)
             #X x∈X
                              2
                      ≤ eCg · ℓg·#Ssm · max TN,Q (χ(x0 )) + cbilin · eCg|S| ,
                                          Q⊆N [ω]

where x0 is any point in X.
Proof. If Smed ∪Slg is empty, the result is immediate. So choose s0 in Smed ∪Slg , and take
M ′ to be the subgroup of M of elements that are 0 at each s ∈ Ssm ∪ {s0 }. Combining
the first part of Proposition 6.8 with the calculation for the size of M ′ ∩ M1 (Q) for a
given Q ⊆ N[ω] gives
                   1 X 
                          # m ∈ M ′ ∩ M1 (Q) : Ψx (m) ∈ Selω N χ(x)
                 #X x∈X
                                  2
                        ≤ eC0 g · TN,Q (χ(x0 )) + cbilin · eC0 g|S| ,
for some C0 depending on (K/F, V0, F). These sum to give the proposition.               

              7. M OMENTS OF SIZES OF ω-S ELMER GROUPS IN GRIDS
  Propositions 6.11 and 6.12 give us rough upper bounds on the average size of ω-
Selmer groups in a grid of twists. In this section, we give conditions under which we
can estimate these averages. Throughout, we will take G1 = Gal(K(V0 )/F (µℓk0 )).
                           SELMER GROUPS IN TWIST FAMILIES II                            35

7.1. Invariant pairs. Our first goal will be to show that certain collections of invariant
pairs do not contribute meaningfully to the sum (5.4). The reason these pairs will not
contribute involves the appearance of the connecting map δσs in the expression (5.2).
Isolating the contribution of this map is relatively subtle, and our process of isolating it
starts with the following variant of the group M1 (Q) constructed in Definition 5.2.
Notation 7.1. For σ ∈ G1 , take Q(σ) to be the subset of n in Qσ satisfying
                             δσ n ≡ 0 mod Q + (σ − 1)N[ω]
Take
               M10 (Q) = {(0, (ns )s ) ∈ M : ns ∈ Q(σs ) for all s ∈ S}.
  With this set, choose some GF -equivariant homomorphism
                                        Γ : Q → Q∨ .
We assume that this map is alternating, so Γ(m) · m = 0 for every m in Q. We also
assume that, for all σ ∈ G1 and n ∈ Q(σ), there is an r ∈ (N[ω]∨ )σ projecting to Γ(n)
under the dual to the inclusion map Q ֒→ N[ω].
   From this information, we construct a quadratic form fΓ : M10 (Q) → 1ℓ Z/Z using
the expression
                                    fΓ (m) = hr, mix ,
where r is chosen so πs (r) projects to Γ(πs (m)) for all s ∈ S, and where x is chosen
from x ∈ X. We can check that the expression does not depend on the choice of r or x.
   We recall the notion of commuting with connecting maps given in (4.3). We need a
variant of this definition to handle certain kinds of invariant pairs. This definition also
uses the dual connecting map appearing in Definition 2.9.
Definition 7.2. Choose Γ : Q → Q∨ obeying the assumptions above. Suppose there is
a choice of σ ∈ G1 , elements n0 , n1 in Q(σ), and elements r0 , r1 in (N[ω]∨ )σ such that
r0 projects to Γ(n0 ), such that r1 projects to Γ(n1 ), and such that
(7.1)                          δσ (n0 ) · r1 6= −n1 · δσ∨ (r0 ),
where δσ∨ is the map appearing in Definition 2.9, where the left product is defined using
the identification
                              H 1 (hσi, N[ω]) ∼
                                              = (N[ω])σ
and the evaluation pairing N[ω]σ × (N[ω]∨ )σ → µℓ , and where the right product is
defined using the dual construction. Then we call the map Γ cancellable.
  In the case that Γ is cancellable, we will find that the sum
                                 X
                                         exp(2πifΓ ((ns )s ))
                             (ns )s ∈M10 (Q)

tends to have small magnitude. We can prove this by showing that the associated bilinear
form
                          BΓ : M10 (Q) × M10 (Q) → 1ℓ Z/Z
36                           SELMER GROUPS IN TWIST FAMILIES II

given by
                                
                      BΓ m1 , m2 = fΓ (m1 + m2 ) − fΓ (m1 ) − fΓ (m2 )
has large rank.
Proposition 7.3. Take Γ as above, and suppose that Γ is cancellable. Choose σ ∈ G1
so we can find n0 , n1 , r0 , and r1 satisfying the condition of Definition 7.2, and take S0
to be the subset of S of s so that σs maps to σ. Then BΓ has rank at least |S0 | − 1.
Proof. Throughout this proof, we will identify µℓ and 1ℓ Z/Z using lg, and we will often
write the group operation for µℓ2 additively.
   Given k ≥ 1, take ιk to be the standard isomorphism of N ∨ [ω k ] and N[ω k ]∨ . We have
a commutative diagram
                                                         ω
                  0         N ∨ [ω]         N ∨ [ω 2 ]        N ∨ [ω]          0
                                −ι1              ι2                ι1

                                      ω∨
                  0         N[ω]∨           N[ω 2 ]∨          N[ω]∨            0

We may explicitly calculate the connecting map (N[ω]∨ )σ → (N[ω]∨ )σ corresponding
to the lower sequence here. This connecting map takes φ in (N[ω]∨ )σ to the class of the
map
                                                 
                        m 7→ (σ − 1) φ′ (ω −1m) − φ(δσ m),
where φ′ is an element of (N[ω 2 ])∨ whose restriction to (N[ω])∨ equals φ.
  Taking
                             (            √    
                                 1       σ( −1)
                                     1 −  √         if # F = 2
                         A= 2               −1
                                 0                  otherwise,
we see that the image of φ under this connecting map may be given as A · φ − φ ◦ δσ . So
                           
              ι1 δσ∨ ι−1
                      1 (φ) = A · φ + φ ◦ δσ    in (N[ω]σ )∨ ∼
                                                             = (N[ω]∨ )σ .
Given distinct s, t ∈ S0 , we also have
(7.2)             κ([πs (x), πt (x)]′ ) · φ − κ([πt (x), πs (x)]′ ) · φ = A · φ,
as can be checked using Hilbert reciprocity and the general identity (a, −a) = 1 of
Hilbert symbols. With this calculated, we return to proving the lower bound for the rank
of BΓ .
   Choose n0 , n1 , r0 , r1 so the condition of Definition 7.2 is satisfied. For k = 0, 1 and
s ∈ S0 , take Ek (s) to be the element of M1 (Q) with sth -coordinate nk /γs and all other
coordinates 0, and take ΓEk (s) to be the element of R with sth -coordinate rk /γs and all
other coordinates 0.
   Fix some x in X. For any s, t ∈ S, we have
              BΓ (E0 (s), E1 (t)) = hΓE0 (s), E1 (t)ix + hΓE0 (t), E1 (s)ix .
                              SELMER GROUPS IN TWIST FAMILIES II                             37

Suppose s and t are distinct, and take p = πs (x) and q = πt (x). We start by noting that
                                       X                                  
              hΓE0 (s), E1 (t)ix =          Γ(n0 ) · τ −1 n1 · κ [τ p, q]′ .
                                           τ ∈B(σ,σ)

  Given τ0 , τ1 ∈ GF representing the same double coset not containing the identity, we
have that                              ′                           ′ 
               [τ0 p, q]′ − τ1 τ1−1 q, p      = [τ0 p, p]′ − τ1 τ1−1 p, p .
Applying this and (7.2), we can calculate that BΓ (E0 (s), E1 (t)) equals
                         X                                                      
       AΓ(n1 ) · n0 +           Γ(n0 ) · τ −1 n1 + Γ(n0 ) · τ −1 n1 · κ [τ p, p]′ .
                         τ ∈B(σ,σ)

This sum does not depend on the choice of s or t.
  We also can calculate
                 hΓE0 (s), E1 (s)ix = Cs,x Γ(n0 ) · n1 − γs−1 r0 · δσ (n1 )
                                       X                                    
                                    +         Γ(n0 ) · τ −1 (n1 )κ [τ p, p]′ ,
                                           τ ∈B(σ,σ)

where Cs,x depends on s and x but not k and j. From the fact that Γ is alternating, we
then have
              BΓ (E0 (s), E1 (s)) − BΓ (E0 (s), E1 (t))
                                                               
                        = −γs−1 · r0 · δσ (n1 ) + r1 · δσ (n1 ) + AΓ(n1 ) · n0 .
We see that this is nonzero. In particular, there is C in 1ℓ Z/Z so
                                                 (
                                                   C       if s 6= t
                        BΓ E0 (s), E1 (t) =
                                                   6= C if s = t
for all s, t ∈ S0 . This is enough to give the proposition.                                  
  In particular, suppose we have taken Γ and S0 as in this proposition. Given a vector
subspace V of M10 (Q) of codimension r ≤ 21 |S0 | − 12 , and given a homomorphism
ψ : V → µℓ , we have
                           X
(7.3)                             ψ(v) exp(2πifΓ (v)) ≤ ℓ−b/2 · |V |
                           v∈V

where b = |S0 | − 1 − 2r. To see this, take V0 to be a b-dimensional subspace of V where
BΓ is nondegenerate. A standard argument for Gauss sums [8, Section 3.4] gives
                              2
 X                                     X
        ψ(v) exp(2πifΓ (v))       =            ψ(v − w) exp(2πi(fΓ (v) − fΓ (w)))
v∈V0                                  v,w∈V0
                                       X
                                  =            ψ(v − w) exp(2πi(fΓ (v − w) + BΓ (v − w, w))) = |V0 |,
                                      v,w∈V0
38                          SELMER GROUPS IN TWIST FAMILIES II

which is enough to prove (7.3).
  As a converse to Proposition 7.3, we could prove an upper bound on the rank of
BΓ depending on N and (K/F, V0, F) for non-cancellable Γ. Instead of this general
converse, our main results require a stronger result under more stringent conditions.
Proposition 7.4. Suppose that N has alternating structure ν : N → N ∨ and that
# F = 2. Then, given m = (φ0 , (ns )s ) in M0 and x in X, we have
                                    hm, (ν(ns ))s∈S ix = 0.
Proof. Given a closed subgroup H of GF , take
                             qH : H 1 (H, N[2]) → H 2 (H, µ4 )
to be the map defined in [19, Section 5.3] as the connecting map associated to the theta
group above N[2] constructed from N[4]. We note that
                              X
                                   invv (qGv (Ψx (m))) = 0
                                 v of F

by Poitou–Tate duality. Since Ψx (m) obeys the local conditions for v ∈ V0 , we find that
invv (qGv (Ψx (m))) = 0 at these places, so
                         X                                
                              invπs (x)∩F qGπs (x) (Ψx (m)) = 0.
                           s∈S

Take χ = χ(x), and take δχ,πs(x) : H 0 (GF,πs(x) , N[2]) → H 1 (GF,πs(x) , N[2]) to be the
connecting map associated to N χ . For each s, we find that
                             qGπs (x) (Ψx (m) − δχ,πs(x) (ns )) = 0
because the cocycle class is unramified and valued in µ4 . We also have
                                   qGπs (x) (δχ,πs(x) (ns )) = 0,
as follows from [19, Example 5.20]. Combining these identities and [19, (5.3)] then
gives
              X                                                
                 invπs (x)∩F Ψx (m) − δχ,πs(x) (ns ) ∪ ν(Ψx (m)) = 0.
                  s∈S
This reduces to the claimed identity.                                                   
     A similar but simpler result that applies for more general N and F is the following.
Proposition 7.5. Given m in M0 and r0 in H 0 (GF , N[ω]∨ ), we have
                                          hm, (r0 )s∈S ix = 0
for all x in X.
Proof. Take χ = χ(x), take ι1 : N ∨ [ω] → N[ω]∨ to be the standard isomorphism, and
take ψ ∈ H 1 (GF , N ∨ [ω]) to be the image of ι1 (r0 ) under the connecting map associated
                           SELMER GROUPS IN TWIST FAMILIES II                            39

to N χ [ω 2 ]∨ . We see that βχ−1 ◦ ψ lies in the ω-Selmer group for (N ∨ )χ . Poitou–Tate
duality gives                     X
                                      invv (Ψx (m) ∪ ψ) = 0.
                               v of F
Since Ψx (m) obeys the local conditions for v ∈ V0 , this reduces to a sum over S. The
Selmer group and dual Selmer group have orthogonal local conditions, so we also have
                            invπs (x)∩F (δχ,πs(x) (ns ) ∪ ψ) = 0
for each s ∈ S. We thus have
                  X
                      invπs (x)∩F ((Ψx (m) − δχ,πs(x) (ns )) ∪ ψ) = 0,
                    s∈S

which reduces to hm, (r0 )s∈S ix = 0.
                                                                                        
7.2. Moment calculations. We can now prove our main estimate for the moments of
ω-Selmer groups in grids. We will need some assumptions.
Assumption 7.6. With all notation as above, we choose a twistable module N0 defined
with respect to (K/F, V0, F) in either the alternating case or non-self-dual case with
respect to all sets of local twists. We will assume that S is nonempty and that
                                                   |S|                             |S|
(7.4) min # {s ∈ Slg : σs = σ in G1 } ≥                   and #Ssm ∪ Smed ≤               .
       σ∈G1                                     2 · |G1 |                       8 · |G1 |
   Choose integers a ≥ b ≥ 0, and take
                                          N = N0⊕a .
Choose a subspace V of Faℓ of dimension b. We will consider the submodule
                                        Q = V ⊗ N0 [ω]
of N[ω]. We define the vector space M1 (Q) as above for N, and we take N − to be the
subset of M1 (Q) of elements whose ramification subspace equals Q.
   Choose a subset N of N − . In the case that there is some cancellable alternating
homomorphism Γ : N[ω] → N[ω]∨ , we will assume that there is a subspace W of
M1 (Q) of codimension at most |S|/8|G| and some m in M1 (Q) so
(7.5)                            N = N − ∩ (W + m).
Proposition 7.7. Take all notation and assumptions as in Assumption 7.6, and take g to
be the corank of N. Choose x0 ∈ X. If N0 is in the alternating case, take
                             #N         1                          a
                      A=         −
                                    · ℓ 2 b(b+1) · #H 0 (GF , N[ω]) .
                            #N
If N0 is in the non-self-dual case, choose some x0 in X and take
                                                                             !b
                  #N                             a
                                                     Y #Wv,1 (N0 , χ(x0 ))
            A=           · #H 0 (GF , N[ω]) ·                                   .
                  #N −                                    #H 0 (Gv , N0 [ω])
                                                   v∈V0
40                          SELMER GROUPS IN TWIST FAMILIES II

Then there is C > 0 depending only on (K/F, V0 , F) so

                            1 X
                    A−            m ∈ N : Ψx (m) ∈ Selω N χ(x)
                           #X x∈X
                                                2
                              ≤ e−|S|/8|G1 |+Cg + eCg|S| · (cbilin + cCheb ).

Proof. We may assume that S is nonempty without issue. Our aim is to calculate the
sum
                       1      X XX                       
                                         exp 2πi r, m x .
                   #X · #R           x∈X
                                    m∈N r∈R

The subsum over ignorable (r, m) has magnitude bounded by eCg|S| · (cbilin + cCheb ). The
subsum over borderline m also fits into the error term by Proposition 6.11. So we may
consider the sum over non-borderline m for which (r, m) is non-ignorable.
   Using Proposition 6.6, we may sort these pairs into subcollections based on their
associated equivariant alternating map Γ : Q → N[ω]∨ /Q⊥ . Suppose we look at the
collection of pairs (r, m) with m non-ignorable associated with a given cancellable Γ;
call this set of pairs Y . Taking W to be the vector space appearing in (7.5), we may use
(7.3) to show
                    X                                                        
              1                                Cg 2    −|S|/8|G1 |      #N
                          exp 2πi r, m x ≤ e         ·ℓ             + 1−
            #R                                                           #W
                 (r,m)∈Y

for every x ∈ X and for some C determined from the starting tuple. Noting that the
                                                              2
final difference of the right hand term is no larger than eCg · ℓ(|S|/8|G1 |)−|Sjury| , we find
that the sum over cancellable pairs fits into the error term.
   This just leaves the sum over non-cancellable Γ. Choose a basis e1 , . . . , eb of V and
endow V with an inner product so this basis is orthonormal. We may think of Γ as an
alternating map
                              Γ : V ⊗ N0 [ω] → V ⊗ N0 [ω]∨ .
Equivalently, we may think of Γ as a b × b matrix whose ij th entry is an equivariant
homomorphism βij : N0 [ω] → N0 [ω]∨ that commutes with the connecting maps, subject
                              ∨
to the condition βij = −βji     and that βii is alternating for all i, j ≤ b. In the alternating
case, we find that all these coefficients must be scalar multiples of ν by Remark 4.6 and
the assumptions of the alternating case. The scalars ν is multiplied by form a symmetric
                       1
matrix, so there are ℓ 2 b(b+1) choices of non-cancellable Γ. In the non-self-dual case, we
find that this map must be 0.
   Given such a Γ, and given non-borderline m with Q(m) = Q , we see there are
                                                   Y
                            #H 0 (GF , N[ω]∨ )b · (#N[ω]σs )a−b
                                                    s∈S
                            SELMER GROUPS IN TWIST FAMILIES II                           41

choices of r for which (r, m) is a unignorable and associated to the map Γ. Propositions
7.4 and 7.5 show that we have hr, mix = 0 for all x ∈ X and any such pair (r, m). So
                         Y                       1       X XX                          
ℓc ·#H 0 (GF , N[ω]∨ )b · (#N[ω]σs )−b −                               exp 2πi r, m x
                         s∈S
                                            |N ||R||X|             x∈X
                                                           m∈N r∈R

has magnitude within the error of the proposition, where c = 12 b(b + 1) in the alternating
case and c = 0 otherwise.
  To prove the proposition, we just need to estimate the size of N − . We can calculate
the size of M1 (Q) directly using [22, Section 8.7.9], the assumption (7.4), and the
assumption that N ∨ has no universal ω-Selmer element. This gives
                                                                 !b
                (#H 0 (GF , N0 [ω]))a     Y #Wv,1 (N0 , χ(x))          Y
  #M1 (Q) =                      ∨   b
                                       ·           0
                                                                     ·     (#N[ω]σs )b .
               (#H0 (GF , N0 [ω] ))            #H (Gv , N0 [ω])        s∈S
                                              v∈V0

In the alternating case, this simplifies to
                                                     a−b Y
                 #M1 (Q) = #H 0 (GF , N0 [ω])            ·  (#N[ω]σs )b .
                                                          s∈S

The proposition follows once we note that M1 (Q)\N − is negligible in M1 (Q).           

                                       8. G RIDDING
   In the previous few sections, we have studied how one can control ω-Selmer groups
in a grid of twists of a given Galois module. To prove our main results, we will show
that Xfav
       F,N (H, (χv )v∈V0 ) can be partitioned into such grids with negligible remainder.
   As a starting point, we give the following estimate for the size of XF (H).
Proposition 8.1. Given (K/F, V0 , F) as above, there is a positive real number C so that
we have an asymptotic equivalence
                                #XF (H) ∼ CH(log H)κ−1
                                                                 
as H tends to infinity, where we have set κ = # F(−1)× /[F µ| F | : F ].
Proof. This follows from an application of [1, Proposition 4.16].                       
  We will use the asymptotic expression CH(log H)κ−1 as a comparison point to prove
that certain collections of twists are negligible.
  Our grids of twists are built out of grids of ideals in F . We set these up now.
8.1. Grids of ideals.
Notation 8.2. Fix (K/F, V0, F) as above. We take P to be the set of primesof F
outside V0 that split completely in F (ζ)/F . Taking G1 = Gal K(V0 )/F µ| F | , we
define G1 / ∼ to be the set of equivalence classes of G1 under conjugation by GF . Given
a prime p in P, we see that {Frob p : p|p} maps to one of the classes of G1 / ∼, and
we write this class as Frob p.
42                           SELMER GROUPS IN TWIST FAMILIES II

     Take H to be a positive real number satisfying log(3) H > 1. We define
                                         −1                                     
                          (3) 1      (3)                            (3) 1      (3)
       α(H) = exp exp          4
                                 log     H       and   a0 (H) = exp      3
                                                                           log     H   .

For i a nonnegative integer, we then define
                  
        Pi (H) = p ∈ P : a0 (H) · α(H)i ≤ NF/Q (p) < a0 (H) · α(H)i+1 .
If C is a class of G1 /∼, we will also define
                        Pi (H, C) = {p ∈ Pi (H) : Frob p = C} .
We also take the notation
                                 l                           m
                       imed (H) = exp(2) 21 log(3) H    log α(H) .

Definition 8.3. With (K/F, V0, F) and H as above, take S to be a finite set partitioned as
Ssm ∪Smed ∪Slg . For s ∈ Ssm , take ps be a prime in P satisfying NF/Q (ps ) ≤ a0 (H). For
s ∈ Smed ∪ Slg , take is to be a nonnegative integer. We make the following assumptions:
      • For s1 6= s2 in Ssm , ps1 and ps2 are distinct.
      • For s1 6= s2 in Smed ∪ Slg , is1 and is2 are distinct.
      • For s ∈ Smed ∪ Slg , s is in Smed if and only if is < imed (H).
Taking the notation               (
                                    {ps }        if s ∈ Ssm
                            Ys =
                                    Pis (H) if s ∈ Smed ∪ Slg ,
we define a set of ideals Y of F by
                                  (                            )
                                   Y
(8.1)                       Y =         ps : ps ∈ Ys for s ∈ S .
                                   s∈S
If Y contains no ideal of norm greater than H, we will say that Y is an unfiltered grid of
ideals of height H.
   Suppose that the tuple
                                                                 
                             H, S, (ps )s∈Ssm , (is )s∈Smed ∪Slg
defines an unfiltered grid of ideals of height H. For s ∈ S, take Cs to be an class of
G1 /∼. For s ∈ Ssm , we assume that ps has Frobenius class Cs . Then, defining
                              (
                                {ps }          if s ∈ Ssm
                        Ys =
                                Pis (H, Cs ) if s ∈ Smed ∪ Slg ,
the set Y defined by (8.1) will be called a grid (or filtered grid) of ideals of height H.
Notation 8.4. Fix (K/F, V0, F) and H > 20. Take all notation as above. Write H for
the set of squarefree products of primes in P. Given h ∈ H that satisfies NF/Q (h) ≤
H, we will write ω(h) for the number of distinct prime divisors of h, and ωsm (h) for the
number of prime divisors of norm at most a0 (H). We will take XF (h) to be the set of χ
in XF with hF (χ) = h.
                         SELMER GROUPS IN TWIST FAMILIES II                             43

In addition, we will call h good if the following assumptions hold:
 (1) (Not too many primes) We have
                                ω(h) ≤ (log log H)2.
 (2) (Inside a grid) There is a filtered grid of ideals of height H corresponding to the
     tuple
                                                                   
                         S, (ps )s∈Ssm , (is )s∈Smed ∪Slg , (Cs )s
     that contains h.
 (3) (Not too many small primes) We have
                                 1   1                               1   1
            |Ssm | ≤ (log(2) H) 3 + 100   and |Smed | ≤ (log(2) H) 2 + 100 .
 (4) (Enough primes) We also have
                                               log(2) H
                              |S| = ω(h) ≥              .
                                               log(3) H
 (5) ((Cs )s is balanced) For any C in G1 /∼, we have
                                                #C
                 # {s ∈ Slg : Cs = C} −             · #S ≤ #S 3/4 .
                                                #G1
 (6) (No Siegel zeros) Given x ≥ 2, there is at most one positivepsquarefree integer
     dx,Sie ≤ x so the Dedekind zeta function associated to Q( dx,Sie ) has a real
     zero particularly close to s = 1; we give a more precise specification for this
     potentially-defined integer in Proposition 8.7. Taking
                                                    
                             x = exp(3) 52 log(3) H ,

     we assume that either ℓ 6= 2, that dx,Sie does not exist, or that NF/Q (aV0 · hsm ) is
     indivisible by dx,Sie , where hsm is the product of the primes of h indexed by Ssm
     and aV0 is the product of all rational primes divisible by some prime in V0 .
 (7) (Prepared
     √          for higher Selmer work) The norm of each ideal in the grid is at least
       H. Furthermore, among the primes indexed by
                               {s ∈ Slg : Cs = {1}},

     there are at least (log log H)2/3−1/100 primes of norm at most
                                                    
                                  exp(3) 32 log(3) H

     and at least (log log H)1−1/100 primes of norm at least
                                                 
                               exp(3) 43 log(3) H .
44                            SELMER GROUPS IN TWIST FAMILIES II

      (8) ((Cs )s is not overbalanced) Givena nonzerofunction f : G1 /∼ → Z whose
          magnitude does not exceed exp(2) 21 log(4) H , we have

                                           X
                                                 f (Cs ) ≥ #S 1/4 .
                                           s∈S

   Any ideal not satisfying one of these properties will be called bad. Given an integer
j satisfying 1 ≤ j ≤ 8, we will write Hbad,j (H) for the set of h as above that have the
first j − 1 properties enumerated above but which do not have the j th property.

  It can be difficult to control the Selmer groups of twists N χ for which h(χ) is a bad
ideal. Fortunately, such twists can be safely ignored when doing statistical work, as can
be shown by comparing the next result to Proposition 8.1.

Proposition 8.5. With all notation as above, take κ = # F(−1)× /[F (ζ) : F ]. Also fix
some sufficiently small ǫ > 0. Then there is a real number C > 0 determined just from
(K/F, V0, F) and ǫ so that, for all H > C and j in {1, . . . , 8}, we have
              X                                      
(8.2)                (# F(−1)× )ω(h) · exp aj (h, H) ≤ H(log H)κ−1 · Ej (H),
             h∈Hbad,j (H)

where we have taken
                                                                             2 
                                     (3)                                   (2)
 a1 (h, H) = ω(h) · (1 − ǫ) log            H             E1 (H) = exp − log H
                                                1−ǫ                                      −1+ǫ
 a2 (h, H) = ω(h) · exp(2)        1
                                  4
                                    log(3) H             E2 (H) = exp(3)       1
                                                                               4
                                                                                 log(3) H
                                                                                          −1
 a3 (h, H) = ωsm (h) ·       1
                            100
                                −ǫ      log(3) H         E3 (H) = exp(2)       1
                                                                               3
                                                                                 log(3) H
                                        23 − 100
                                                1
                                                   −ǫ
 a4 (h, H) = ωsm (h) · log(2) H                          E4 (H) = (log H)−κ+ǫ
                                61 − 100
                                        1
                                            −ǫ                                               −1
 a5 (h, H) = ωsm (h) · log(2) H                          E5 (H) = exp(2) 21 − ǫ · log(3) H
                                151 − 100
                                          1
                                             −ǫ                                         −1+ǫ
                          (2)                                         (2) 2       (3)
 a6 (h, H) = ωsm (h) · log H                             E6 (H) = exp       5
                                                                              log H
                                                                                             −1
                                                                      (2)     2            (3)
 a7 (h, H) = 0                                           E7 (H) = exp         3
                                                                                − ǫ · log H
                                                                             − 14 +ǫ
 a8 (h, H) = 0                                           E8 (H) = log(2) H             .

     We will prove this result in Sections 8.2 and 8.3.

8.2. The first seven cases of Proposition 8.5.
                          SELMER GROUPS IN TWIST FAMILIES II                                     45

8.2.1. Some preliminaries. The unconditional effective Chebotarev density theorem we
will use comes from [14]. For convenience, we record the form of this result.
Theorem 8.6 ([14]). There are absolute effective constants C, c so we have the follow-
ing:
  Take L/F to be a Galois extension of number fields, take nL to be the degree of L
over Q, and take ∆L to be the absolute value of the discriminant of L. Take φ to be a
real valued class function on G = Gal(L/F ) of magnitude at most one.
      • The Dedekind zeta function for L has at most one real zero in the interval
                                        (
                                          1/2             if L = Q
                   [1 − α, 1] with α =
                                          1/(4 log ∆L ) otherwise.
       If this zero exists, it is simple. Take β0 to be this zero if it exists, and take
       β0 = 1/2 otherwise.
     • Given H > 0 satisfying
                                  log H ≥ 10nL (log ∆L )2 ,
       we have
                                             !
      X                      1      X                                       −c
                                                                                 q
                                                                                     log H
                                                               β0
                φ(Frob p) −               φ(σ) Li (H) ≤ Li (H ) + CnL He              nL
                                                                                             .
   p prime in F
                            |G|     σ∈G
   NF /Q (p)≤H

   Stronger forms of this theorem are now known (see [35]), but this statement suffices
for our purposes. To use this theorem, we need some control on the Siegel zero β0 . Our
source on this is [33].
Proposition 8.7. There exists an absolute effective constant c > 0 so we have the fol-
lowing:
                                                       p integer dx,Sie of magnitude
   For any x ≥ 2, there is at most one rational squarefree
at most x such that the zeta function associated to Q( dx,Sie ) has a real zero in the
interval                                          
                                            c
                                      1−        , 1 .
                                          log x
Furthermore, the integer dx,Sie satisfies
                                     dx,Sie ≥ c · log x.

                                             p nK and discriminant of magnitude at
Finally, suppose K is a number field of degree
most x. We assume K does not contain Q( dx,Sie ) if dx,Sie exists and that K/Q is
normal. Then the Dedekind zeta function for K contains no zero in the interval
                                               
                                          c
                                   1−         ,1 .
                                        log x
46                        SELMER GROUPS IN TWIST FAMILIES II

Proof. For the first part, suppose        d2 < x are distinct squarefree rational integers
                                    √ d1 ,√
other than 1, and take L = Q( d1 , d2 ). L/Q is then a degree 4 extension of dis-
criminant dividing 28 (d1 d2 )2 . Its Dedekind zeta function is a product of the Riemann
                           √ L-functions corresponding to the quadratic characters for
zeta√function√with three Artin
Q( d1 ), Q( d2 ) and Q( d1 d2 ). These Artin L-functions are entire. Per the first part
of the above theorem, the Dedekind zeta function for L has at most one zero in the range

                                (1 − (16 log(4x))−1 , 1).

In particular, only one of the three mentioned L-functions can have a zero in this range.
The uniqueness of dx,Sie follows by adjusting c. Its effective lower bound follows from
[33, Theorem 1], though this result was known earlier; this theorem actually gives the
stronger, still-effective statement

                                     dx,Sie ≥ c(log x)2 .

Finally, the result for K/Q is a direct consequence of [33, Lemma 8].                   

  Our next preliminary result is an upper bound for the number of ideals of F with a
certain number of prime divisors of which a certain number are small. The proof of this
proposition largely follows an argument of Hardy and Ramanujan [6].

Proposition 8.8. Given (K/F, V0 , F) as above, there is C > 0 so we have the following:
  Choose integers r > k ≥ 0 and real numbers x, y > 2 satisfying

                                          y k+1 ≤ x,

and take πr,k (x, y) to be the number of ideals h in H of norm at most x that satisfy
ω(h) = r and for which h is divisible by exactly k prime ideals of norm at most y. Take
d = [F (ζ) : F ]. Then

               Cx (d−1 · log log y + C)k (d−1 · (log log x − log log y) + C)r−k−1
πr,k (x, y) ≤       ·                   ·                                         .
              log x          k!                         (r − k − 1)!
Proof. Applying partial summation to Theorem 8.6, we find that there is a real constant
cMert and positive numbers C, c so that we have
                                         X             1                   p
(8.3)      cMert + d−1 log log H −                            ≤ C exp(−c       log H)
                                        p∈P
                                                   NF/Q (p)
                                     NF /Q (p)<H


for H > 3 and
                             X          log NF/Q (p)
                                                     ≤ C · log H
                                          NF/Q (p)
                             p∈P
                          NF /Q (p)<H
                                SELMER GROUPS IN TWIST FAMILIES II                             47

for H > 1. These results generalize two of Mertens’ theorems. We can now follow the
argument of [6, Lemma A] to show that there is some C > 0 so that
             X                         log x
(8.4)                                                 ≤ d−1 · (log log y1 − log log y2 ) + C
             p∈P
                           NF/Q (p) · log(x/NF/Q (p))
        y2 ≤NF /Q (p)≤y1

                                           √
for real numbers x, y1 , y2 satisfying         x ≥ y1 ≥ y2 ≥ 2. The argument from [6] also
gives the inequality
                                               X                                  
                                 1                                        x
                  πr,0 (x, y) ≤                           πr−1,0                  ,y ,
                                r−1                                    NF/Q (p)
                                             p∈P √
                                         y≤NF /Q (p)≤ x

and we can then use this inequality and (8.4) to inducitvely prove
                               Cx (d−1 · (log log x − log log y) + C)r−1
                πr,0 (x, y) ≤       ·                                    ,
                              log x               (r − 1)!
for some C > 0 determined from (K/F, V0 , F), with the Chebotarev density theorem
sufficing for the case r = 1.
   We also have the relation
                                                             
                                  1 X                x
                    πr,k (x, y) ≤       πr−1,k−1            ,y ,
                                  k p∈P            NF/Q (p)
                                        NF /Q (p)≤y

which holds for k > 0. Using the above estimate on πr,0 as a base case, the full propo-
sition can be proved inductively from this relation and (8.4).                       

8.2.2. The case j = 1 of Proposition 8.5. Take r > (log(2) H)2 . The contribution of the
portion of Hbad,1 with r prime divisors to (8.2) can be bounded by Proposition 8.8. For
sufficiently large H, this contribution is at most
              H    (d−1 · log log H + C)r−1                              
                  · F                       · exp (1 − ǫ/2) · r · log(3) H .
            log H           (r − 1)!
Using Stirling’s approximation, we can find some C0 > 0 so that this is at most
                      H                                            
                                                       (3)
                          exp r · C0 + (2 − ǫ/2)r log H − r log r
                    log H
                      H                                    H −r
                 ≤        exp (r · C0 − (ǫ/2)r log r) ≤        e
                    log H                                log H

for any and H > C0 . The sum of these terms over r > (log(2) H)2 is then within the
bound of the proposition.
48                         SELMER GROUPS IN TWIST FAMILIES II

8.2.3. The case j = 2 of Proposition 8.5. For j = 2, we note that there are two reasons
an ideal h in H of norm at most H can fail to appear in a grid of ideals of height H:
     (1) It can have more than one prime factor from some interval Pi (H), or
     (2) It can share a grid Y as in (8.1) with an ideal of norm greater than H.
Our starting point is to note that there are constants C0 , C1 , c > 0 depending just on F
so that, for H > C1 , the number of integral ideals of F of norm at most H is within
C1 H 1−c of C0 H; see [21] for a streamlined approach to this old result. From (8.3), we
can find a C > 0 depending just on F (ζ) so that
                       X         1                                   
                                       ≤ C · min log α, (i + 1)−1 ,
                             NF/Q (p)
                     p∈Pi (H)

where Pi (H) and α = α(H) are defined as in Notation 8.2. As such, the number
of ideals of norm at most H with at least two prime divisors from Pi (H) is at most
                          2
CH min (log α, (i + 1)−1 ) for some C depending just on F (ζ). Summing over all i,
we see the number of ideals in Hbad,2 (H) that are bad for the first reason listed above is
bounded by
                                         CH
                                                    
                                 exp(3) 41 log(3) H
for some C depending just on F (ζ).
   If the ideal h is in Hbad,2 for the second reason, we have
                                H ≥ NF/Q (h) ≥ H · α−ω(h) .

Using the bound ω(h) ≤ (log(2) H)2 that holds for these ideals, we can bound the
number of ideals of this type by
                                                   CH
                                                             1−ǫ ,
                                     exp(3)       1
                                                  4
                                                    log(3) H

where C depends on F and the positive constant ǫ > 0. These bounds suffice to give the
j = 2 case.

8.2.4. The case j = 3 of Proposition 8.5. Given an integer k ≥ 0 and real numbers
x, y ≥ 2 satisfying y k+1
                        P≤ x, we may    apply the Taylor expansion of ex and Proposition
8.8 to show that sum h (# F(−1)× )ω(h) taken over ideals of height at most x with at
least k factors less than y has upper bound
                                                  (d−1 · log log y + C)k
                         Cx · (log x)κ−1 ·                               ,
                                                             k!
where C > 0 is determined just from F (ζ). The part follows from Stirling’s approxi-
mation.
                             SELMER GROUPS IN TWIST FAMILIES II                           49
                                                                                          1−ǫ
                                                                                    (2)
8.2.5. The case j = 4 of Proposition 8.5. We note that a4 (h, H) is bounded by log H
for h in Hbad,4 (H). With this observed, the result follows from Proposition 8.8 and Stir-
ling’s approximation.

8.2.6. The case j = 5 of Proposition 8.5. Given an unfiltered grid of ideals that are not
bad for one of the previously mentioned reasons, the Chebotarev density theorem and
Hoeffding’s inequality [23, Theorem 1] imply that a randomly selected ideal from the
grid has probability at most
                                                               −1
                             1/2           (3)    1          (3)
                exp(−c|Slg | ) + |S| · exp          − ǫ log H
                                                  3
of lying in Hbad,5 (H) for H ≥ C, where c, C > 0 are determined from the starting tuple
and ǫ > 0. The case then follows from the lower bound on |S| and the upper bounds on
|Ssm | and |Smed |.
                                                                                         
8.2.7. The case j = 6 of Proposition 8.5. Suppose dx,Sie exists for x = exp(3) 52 log(3) H .
From Proposition
                     we find there is some absolute c > 0 so that dx,Sie is at least
                    8.7,
c exp(2)   2
           5
             log(3) H   . Take d0 to be the product of the prime factors of dx,Sie not divis-
ible by a prime in V0 . If this number has more that (log(2) H)1/3+1/100 prime factors,
then no ideals will lie in Hbad,6 (H). So we may assume it has at most this many prime
factors, and we can bound the number of squarefree ideals in F whose norm divides
some power of d0 by
                                                         
                              exp C · (log(2) H)1/3+1/100
for some C > 0 depending on F . The result then follows from an application of Propo-
sition 8.8.
                                                                                       √
8.2.8. The case j = 7 of Proposition 8.5. The restriction to ideals of norm at least H
follows immediately from Proposition 8.1.
   Using Proposition 8.8, we find that we canrestrict ourattention to ideals with at least
(log(2) H)2/3−ǫ/2 prime factors below exp(3) 32 log(3) H and (log(2) H)1−ǫ/2 prime fac-
                             
tors above exp(3) 34 log(3) H . The result then follows from the Chebotarev density
theorem and Hoeffding’s inequality.

8.3. The joint distribution of Frobenius elements. The final case of Proposition 8.5
relates to the distribution of Frobenius classes for the primes dividing h. It is not too
difficult to prove this case directly using the De Moivre–Laplace local limit theorem
[31] together with the Chebotarev density theorem. However, in order to estimate the
proportion of twists in XF (H, (χv )v∈V0 ) that are favored for a given N, we will need a
more robsut model for this distribution of Frobenius classes. Our next goal is to produce
this model.
50                        SELMER GROUPS IN TWIST FAMILIES II

Definition 8.9. Choose a nonempty finite set G. We take X1 , X2 , . . . to be a sequence
of independent random variables on G with the uniform distribution. Given n ≥ 1, we
take gn to be a random variable valued in ZG defined by
                    gn (σ) = #{i ≤ n : Xi = σ}        for all σ ∈ G.
We take V ∈ RG to be a random function with a multivariate normal distribution whose
mean is 0 and whose covariance matrix Σ : G × G → R is given by
                              (
                                |G|−1 − |G|−2 if σ = τ
                       Σσ,τ =
                                −|G|−2          otherwise.
Finally, we fix some element σ0 in G.
Proposition 8.10. Take G and σ0 as in Definition 8.9, and define the random variables
X1 , X2 , . . . and random functions V, g1 , g2, . . . as in that definition. Choose a real
number δ ∈ (0, 1/2) and a positive integer R. Then there is some C > 0 depending on
G, R, and δ so we have the following:
   Choose k ≥ 0, real numbers b1 , . . . , bk in [−1, 1], and nonzero integral functions
f1 , . . . fk : G → Z. Also choose an integer n > C and a function a : G\{σ0 } → Z/RZ.
Take P to be the probability
                                                                                         !
       X
Pr           fj (Xi ) ≥ bj nδ for all j ≤ k and gn (σ) ≡ a(σ) mod R for all σ ∈ G\{σ0 } .
     i≤n

Take B to be the maximum magnitude attained by any function fj . We then we have the
following:
                          P
     • If, for some j ≤ k, σ∈G fj (σ) is negative, then PP  ≤ C exp (−C −1 B −2 n).
     • Otherwise, take Z to be the set of j ≤ k for which σ∈G fj (σ) is zero, and take
                                                               !
                              X
                     P0 = Pr      Vσ · fj (σ) ≥ 0 for all j ∈ Z .
                               σ∈G

       Then
                            P − R1−|G| P0 ≤ CkBn−1/2+δ .
Proof. The first part follows immediately from Hoeffding’s inequality [23, Theorem
1]. Hoeffding’s inequality also allows us to ignore functions with a positive sum when
estimating P , so we reduce to the case where Z = {1, . . . , k}.
   The random function gn has a uniform multinomial distribution. As n tends to ∞,
the normalized random function n−1/2 (gn − n|G|−1 ) has distribution converging to the
random function V [28, Section 2.7].
   We note that the covariance matrix of each normalized random function equals that
of V . This covariance matrix has rank |G| − 1; projecting these normalized random
functions to RG\{σ0 } gives a random function with an invertible covariance matrix. We
may then apply a multivariate generalization of the Berry–Essen theorem [2, Theorem
                           SELMER GROUPS IN TWIST FAMILIES II                            51

1.1] to say that there is some C0 > 0 depending just on G so that, for any convex subset
K of RG\{σ0 } , we have
                                                                        
   Pr n−1/2 · gn (σ) − |G|−1 σ∈G\{σ0 } ∈ K − Pr (Vσ )σ∈G\{σ0 } ∈ K ≤ C0 n−1/2 .
                                       P
This implies that the probability that i≤n fj (Xi ) has magnitude bounded by Bnδ for
some j ≤ k can be bounded by C1 kBn−1/2+δ , where C1 > 0 depends only on H and δ.
In particular, if we take m = ⌊nδ ⌋, we see that the condition
                  Xn                                   Xn
                                    δ
                     fj (Xi ) ≥ bj n  if and only if        fj (Xi ) ≥ bj nδ
                i=1                                         i=m

holds for all j ≤ k with probability at least 1 − C1 kBn−1/2+δ .
  Take ϕ : ZG → (Z/RZ)G\{σ0 } to be the standard projection. The sequence
                                ϕ ◦ g0 , ϕ ◦ g1 , ϕ ◦ g2 , . . .
is an irreducible, aperiodic Markov chain on the state space (Z/RZ)G\{σ0 } . In particular,
given any a : G\{σ0 } → Z/RZ, the convergence theorem for aperiodic irreducible
Markov chains [15, Theorem 4.9] allows us to conclude that
                                                   
                 Pr gm ≡ a(σ) for all σ ∈ G\{σ0 } − R1−|G| ≤ Ce−cm
for some C, c > 0 depending just on G and R. The proposition follows.                    
  We now finish the proof of Proposition 8.5.
The final case of Proposition 8.5. Choose an unfiltered grid of ideals Y of height H not
meeting Hbad,j (H) with j = 1, 3, 4. Given a class function f as in Notation 8.4 , we
                       P density theorem and1/4
may apply the Chebotarev                       Proposition 8.10 to bound the number of
(ps )s in Y satisfying  s∈S f (Frob ps ) ≤ |S|   by C|S|−1/4+ǫ for some C determined
from (K/F, V0, F) and ǫ > 0. The result follows from a count of class functions.      
  A similar but more involved argument gives the following.
Proposition 8.11. Given a twistable module N defined with respect to (K/F, V0 , F),
and given ǫ > 0, there are real numbers P0 , C ≥ 0 so, for H > C and any set of local
twists (χv )v , we have
                      #Xfav
                        F,N (H, (χv )v )                    1    1
                                         − P0 ≤ (log(2) H)− 6 + 100 +ǫ .
                         #XF (H)
If N is potentially favored in the sense of Definition 4.1, P0 is positive. Otherwise, P0 is
zero.
Proof. Take Y to be an unfiltered grid of ideals of height H. We suppose that Y does
not meet Hbad,j for j ≤S4. From Proposition 8.5, we see that it suffices to estimate the
proportion of twists in h∈Y XF (h) that lie in Xfav
                                                 F,N . One method to produce a twist in
this union uniformly at random is to independently choose
      • An element χ0 uniformly at random from SF /F (V0 ),
52                         SELMER GROUPS IN TWIST FAMILIES II

     • An element κs uniformly at random from F(−1)× for each s ∈ S, and
     • A pair of primes (ps , Ps ) for each s ∈ S, with ps chosen uniformly at random
       from the primes in Ys and Ps chosen uniformly at random among primes of
       K(V0 ) dividing ps .
Choosing an arbitrary prime ps of Q dividing Ps for each s ∈ S, we can then define our
random twist by
                                       XX
                            χ = χ0 +          Bps , F (κs ).
                                         s∈S s∈S

For each s ∈ Smed ∪Slg , we may think of FrobF ps as a random variable valued in G1 . By
the Chebotarev density theorem, these random variables approximately take the uniform
distribution. By throwing out a negligible portion of each Ys , we may assume that these
random variables are exactly equidistributed.
   We can now apply Proposition 8.10 to estimate the probability that a twist chosen this
way is favored. Take T0 = N[ω], T1 , . . . , Tk to be a maximal set of GF -submodules of
N[ω] so that, for 0 ≤ i < j ≤ k, there is some σ so
                           dim(N/Ti )[ω]σ 6= dim(N/Tj )[ω]σ .
We define fi : Gal(K(V0 )/F ) → Z by
                         fi (σ) = dim N[ω]σ − dim(N/Ti )[ω]σ .
First, if N is not potentially favored because (4.2) does not hold for some Ti , we can
apply the first part of Proposition 8.10 to fi to bound the probability that χ is favored by
C exp(−c|Smed ∪ Slg |) for some C, c > 0 depending just on N and (K/F, V0 , F). This
is comfortably within the bounds of the proposition.
   Otherwise, if N is not potentially favored, the hyperplane separation theorem implies
P some convex sum of the fi is 0. In this case, for χ to be favored, we must have
that
   s∈S fj (FrobF ps ) = 0 for at least one j ≤ k. The probability of this event is at most
(log log H)−1/2+ǫ for H sufficiently large, as can be seen from Proposition 8.10
   This leaves the case that N is potentially favored. In this case, there P is a nonempty
open set of superlatives among the set of functions w : G1 → R satisfying σ∈G1 w(σ) =
0. Taking V to be the random function of Definition 8.9 for G = G1 , we find that
                              X
                                   Vσ fj (σ) > 0 for all j ≤ k
                            σ∈G1

happens with positive probability. After taking R = | F | to control the local conditions,
we find that the result follows from Proposition 8.10.                                  

        9. ROUGH BOUNDS FOR MOMENTS OF SIZES OF ω-S ELMER GROUPS
   With Proposition 8.5 proved, we have all the tools we need to prove the coarse mo-
ment bound Theorem 2.6. To start, we will transition from grids of ideals over F to
grids of twists.
                                 SELMER GROUPS IN TWIST FAMILIES II                        53
                                Q
Definition 9.1. Suppose Y = s∈S Ys is a filtered grid of ideals in F . For s ∈ Smed ∪Slg ,
we will fix a set of primes Y s of Q so that every prime in Y s divides some prime in Ys ,
and so that every prime of K(V0 ) dividing some prime in Ys is divisible by exactly one
prime in Y s . For s ∈ Ssm , we take Y s = {ps }, where ps is any prime of Q dividing the
unique prime in Ys .                            
   Choosing some σs ∈ Gal K(V0 )/F µ| F | for every s ∈ S, we may consider the
                                                   Q
grid of ideals in Q of the form X = X((σs )s ) = s Xs , where we have taken
                       
                Xs = p ∈ Y s : FrobF p ≡ σs in Gal(K(V0 )/F )/ ∼ ,
where Gal(K(V0 )/F )/ ∼ is the set of classes associated to (K/F, V0, | F |) as in [Smi1,
Definition 3.6].
  We call X a Q-refinement of Y . Given χ0 and (γs )s as in Section 5.2, we may follow
the construction of that section to define a twist χ(x) = χ(χ0 , (γs )s , x) for every x ∈ X.
   With this definition, we have associated a collection of elements in XF to Y decorated
with the extra data ((σs )s , (γs )s , χ0 ). We note that a single homomorphism χ in XF (h)
may appear multiple times in the collection of twists associated to ((σs )s , (γs )s , χ0 ),
and that the collection of twists associated to some other tuple may still S contain χ. The
following proposition shows that this redundancy is fine, as every χ in h∈X XF (h) is
overcounted the same amount.
                                                                Q
Proposition 9.2. Given a filtered grid S       of ideals Y = s∈S Ys as above, there is a
positive integer A so that, for every χ ∈ h∈Y XF (h), we have
              X XX
                             # {x ∈ X((σs )s ) : χ = χ(χ0 , (γs )s , x)} = A.
              (σs )s (γs )s χ0

Proof. This reduces to the claim that, for any s ∈ Smed ∪ Slg , the number of elements in
Y s dividing ps does not depend on the choice of ps in Ys . This in turn follows from the
fact that the conjugacy class of Frob ps does not depend the choice of this element. 
  The need for the following proposition was a major influence on our definition of
good grids of ideals.
Proposition 9.3. Given (K/F, V0, F), there are real constants c, C > 0 so we have the
following:                                                    Q
   Choose H > C, and choose a filtered grid of ideals Y = s∈S Ys in F of height
      Q Ssm , Smed , and Slg as in Definition 8.3. Choose any nonempty Q-refinement
H, with
X = s∈S Xs of X, and choose χ0 , (γs )s as in Definition 9.1. Take
                                                    −c
                              δ = exp(3) 13 log(3) H     .
Choose any twistable module N defined with respect to (K/F, V0, F), and define cCheb
and cbilin as in Notation 6.2 for the collection of twists corresponding to (χ0 , (γs )s , X).
  We then have cbilin ≤ δ. Furthermore, if Y contains no ideals lying in Hbad,j (H) for
j ≤ 6, we have cCheb ≤ δ.
54                              SELMER GROUPS IN TWIST FAMILIES II
                                      
Proof. Suppose (rs )s , (φ0 , (ns )s ) is bilinearly ignorable. Choose distinct indices s, t
Smed ∪ Slg and τ0 ∈ GF so (τ0 rs − rt ) · (τ0 ns − nt ) is nonzero. Choose p0u ∈ Xu for
every u ∈ S\{s, t}, and take
                                                   Y
                               Z = Xs × Xt ×           {p0u }.
                                                      u6=s,t

From Proposition 5.4, we find there are functions at : Xt → 1ℓ Z/Z and as : Xs → 1ℓ Z/Z
so
      (rs )s , (φ0 , (ns )s ) x + at (πt (x)) + as (πs (x))
                      X                                                                         
               =              lg γs γt (τ rs − rt ) · (τ ns − nt ) · κ [πt (x), πs (x)]′ (τ −1 ) .
                τ ∈B(σt ,σs )

for all x ∈ Z.
   Take Hs = maxp∈Xs NF/Q (p ∩ F ), and define Ht similarly. Using the Chebotarev
density theorem, we find that
                                                              −2
                  min(#Xs /Hs , #Xt /Ht ) ≥ exp(3) 14 log(3) H
so long as H is sufficiently large. The upper bound for cbilin then follows from [Smi1,
Theorem 5.2].
   Supposing that Y does not meet Hbad,j (H) for j ≤ 6, we now wish to bound cCheb .
Take Ke to be the minimal normal extension of Q that contains K, and take L to be
the minimal abelian extension of K  e of exponent dividing # F that is ramified only at
                                                                              S
archimedean places and over rational primes divisible by some prime in V0 ∪ s∈Ssm Ys .
   Using the bound on #Ssm provided by the definition of Hbad,3 (H), we find that there
is C0 > 0 so the degree nL and discriminant ∆L of L/Q satisfy
                             (3)                                     (3) 
               (2)   1     1                              (3)    1    1
      nL ≤ exp       3
                       + 50 log H         and ∆L ≤ exp           3
                                                                   + 50 log H
so long as H > C0 . Since Hbad,6 (H) does not meet Y , we find that the Dedekind zeta
function for L has no real zero in the interval
                                                    −1 
                                        (2) 2     (3)
                            1 − c · exp      5
                                               log H     ,1

by Proposition 8.7, where c > 0 is the absolute constant of that proposition. Choose
s ∈ Slg , take Cs ∈ G1 / ∼ to be the class corresponding to Ys , and take D to be the
subset of Gal(L/F ) projecting to the conjugacy class of Cs . Then Theorem 8.6 implies
that, for any class function φ : Gal(L/F ) → R of magnitude at most 1, we have
                                       !
     X                    1    X                                             −1
          φ(Frob p) −              φ(σ) |Xs | ≤ |Xs | · exp(3) 12 − ǫ log(3) H
     p∈Y
                        #D σ∈D
        s

for s ∈ Slg and ǫ > 0, so long as H is sufficiently large given (K/F, V0 , F) and ǫ.
In other words, if we choose an element p of Xs uniformly at random, if we choose a
prime P of L over p uniformly at random, and finally choose some prime p over P, the
                                SELMER GROUPS IN TWIST FAMILIES II                      55

value of FrobF p will be distributed approximately uniformly at random through D. By
[Smi1, Proposition 3.23], we find the tuple of symbols
                                 ([p, pu ] : u ∈ Ssm , Xu = {pu })
will be approximately uniformly distributed at random through the set of possible tuples
of symbols                         Y
                                        [[Xs ] , [Xu ]]
                                        s∈Ssm
if p is chosen uniformly at random from Xs . The bound on cCheb then follows from
Proposition 5.4.                                                                
  We can now combine Proposition 8.5 and our work in Section 6 in a meaningful way.
Proposition 9.4. Given (K/F, V0, F) as above, given g0 > 0, and given any ǫ > 0,
there is a real number C > 0 so we have the following:
   Choose H > C, and choose a twistable module N defined with respect to (K/F, V0 , F).
Taking g to be the corank of N, we assume that
                                        1
                                g≤            log(3) H.
                                    200 log ℓ
Then
     X 7     X       X       #Selω N χ                                     −1
                                         ≤ H(log H)κ−1 · exp(2) 31 log(3) H     ,
     j=1
                          max T TN,T (χ)
        h∈Hbad,j (H) χ∈XF (h)

where κ is taken to be # F(−1)× /[F (ζ) : F ] as above. Furthermore, if we instead
suppose                                 q
                                       g ≤ C −1   log(3) H,
we may conclude
          X            X          #Selω N χ                            −1/4+ǫ
                                               ≤ H(log H)κ−1 · log(2) H         .
                                 maxT TN,T (χ)
         h∈Hbad,8 (H) χ∈XF (h)

Proof. There is a real number C0 > 0 determined from (K/F, V0 , F) and N so that the
dimension of Selω N χ is bounded by (C0 + ω(hF (χ)))g for every χ in XF (H). This and
Proposition 8.5 allow us to bound the impact of twists corresponding to bad ideals in the
cases j = 1, 2.
   To handle the cases j = 3, 4, 5, 6, we apply Proposition 6.13 to an Q-refinement X of
a bad grid of ideals of these types, using Proposition 9.3 to bound the constant cbilin in
these estimates. We then find that the average size of
                                           #Selω N χ(x)
(9.1)
                                          maxT TN,T (χ)
                                                           2
over X is bounded by an expression of the form eCg · ℓg·#Ssm . The case then follows
from Propositions 8.5 and 8.1.
56                           SELMER GROUPS IN TWIST FAMILIES II

   To handle the cases j = 7, 8 , we apply Propositions 6.11 and 6.12 to an Q-refinement
X of a bad grid of ideals of these types. We may use Proposition 9.3 to bound the
constants cbilin and cCheb in these estimates, and we may use the definition of bad ideals
of type j = 3, 4, 5 to bound the number b appearing in Proposition 6.11. We then can
                                                                                2
bound the average of (9.1) over such a grid by an expression of the form eCg , and the
cases follow from Propositions 8.5 and 8.1.                                             
     Extending this proof a little further gives Theorem 2.6.
Proof of Theorem 2.6. We work with the twistable module N ⊕g . As in the proof of
Proposition 9.4, apply Propositions 6.11 and 6.12 to an Q-refinement X of a grid of
either good ideals or ideals lying in Hbad,8 (H). The average size of (9.1) on such a
                                                            2
refinement is then bounded by an expression of the form eCg . The result then follows
from Propositions 9.4 and 8.1.                                                     

                  10. F INDING THE DISTRIBUTION OF S ELMER RANKS
   At this point, there are only a few more steps in proving our main result on the dis-
tribution of Selmer ranks, Theorem 2.14. After considering the parity of Selmer ranks
in the alternating case, we will calculate some moments of the sizes of ω-Selmer groups
in the twist family XF (H, (χv )v ) using the methods developed so far in this paper, and
will then derive the distributional results for ω-Selmer ranks from a complex-analytic
argument. To finish the proof of Theorem 2.14, we will find the distribution of higher
Selmer ranks in these twist families by applying [Smi1, Theorem 4.16], the main theo-
rem of that paper.

10.1. Parity of Selmer ranks in the alternating case. Choose a twistable module N
in the alternating case. As part of this case, we have assumed that F has order 2. Taking
ε to be the map (2.4), we may use [17, Theorem 6.6] to show that there is k0 ∈ F2 so
that
                                                X
(10.1)               dimFℓ Selω (N χ ) ≡ k0 +        ε(Frob p) mod 2
                                               p|hF (χ)

for all χ in XF ((χv )v∈V0 ). From Hilbert reciprocity, we see that this expression is con-
stant across this set of twists if ε is a homomorphism.
   Conversely, we have the following:
Proposition 10.1. Choose an unpacked starting tuple (K/F, V0, F) with F = ±1,
choose a set of local twists (χv )v∈V0 , and choose a twistable module N with local condi-
tions defined with respect to (K/F, V0, F) that is in the non-parity-invariant alternating
case with respect to (χv )v∈V0 . Then, for any ǫ > 0, there is C > 0 so that, for H > C,
we have
                                          2 χ
      #{χ ∈ Xfav
             F,N (H, (χv )v∈V0 ) : dim Sel N  is even} 1                1    1

                       fav
                                                      −   ≤ (log(2) H)− 6 + 100 +ǫ .
                   #XF,N (H, (χv )v∈V0 )                2
                           SELMER GROUPS IN TWIST FAMILIES II                          57

Proof. Following the method of Proposition 8.11, we see that the result follows from an
application of Proposition 8.10 with R = 2.                                          

10.2. Moments of sizes of ω-Selmer groups. With Proposition 9.4 proved, we can
estimate the moments of the sizes of ω-Selmer groups in the family XF (H, (χv )v∈V0 ) by
estimating these moments for twists coming from grids of good ideals. We need some
notation.
Notation 10.2. Given integers n ≥ j ≥ 0 and a prime ℓ, take grℓ (j, n) to equal the
number of j-dimensional subspaces of Fnℓ . We can calculate
                                 (ℓn − 1)(ℓn−1 − 1) . . . (ℓn−j+1 − 1)
(10.2)              grℓ (j, n) =                                       .
                                    (ℓj − 1)(ℓj−1 − 1) . . . (ℓ − 1)
Proposition 10.3. Take N to be a twistable module with local conditions defined over
(K/F, V0, F). Choosing a set of local twists (χv )v∈V0 , we assume that N is in either
the alternating case or non-self-dual case with respect to (χv )v∈V0 . Also choose ǫ > 0.
Then there is C > 0 so that, for H > C, we have the following:
  Take Y to be a filtered grid of good ideals of height H, and take X to be the set of
twists χ in XF ((χv )v ) for which hF (χ) lies in Y . We assume that X is nonempty and
that any/every twist in X is favored for N. Take m to be a nonnegative integer that
satisfies
                                   m ≤ (log(2) H)1/8−ǫ .
In the non-self-dual case, take u to equal the right hand side of (2.3).
   Then, defining
                            (
                              j(j+1)
                                 2
                                       if N is in the alternating case
                    b(j) =
                              j·u      otherwise,
we find that
                                                  m
           1 X         ω χ m     0            m
                                                 X
                  (#Sel N ) − (#H (GF , N[ω])) ·     grℓ (j, m) · ℓb(j)
          |X| χ∈X                                j=0

has magnitude bounded by exp(−(log log H)1/4−ǫ ).
Proof. Take (Wv )v to be the local conditions for N, and endow N ⊕m with the local
conditions (Wv⊕m )v . We have
                                       X
      (#Selω N χ )m = #Selω (N ⊕m )χ =      #{φ ∈ Selω (N ⊕m )χ : Q(φ) = T },
                                            T

where the sum is over all GF -submodules T of N. From Proposition 4.7, the cofavored
submodules of N ⊕m are those of the form
                                       A ⊗Fℓ N[ω],
58                             SELMER GROUPS IN TWIST FAMILIES II

where A is a subspace of Fm   ℓ . If T is not of this form, Remark 4.4 and part 8 of the
definition of a good ideal gives
                            TN ⊕m ,T (χ) ≤ exp(−(log log H)1/4−ǫ )
for χ in X if H is sufficiently large. From this, Propositions 6.11 and 6.12, and the
bounds on cbilin and cCheb of Proposition 9.3, we conclude that
     1 X X
                       #{φ ∈ Selω (N ⊕m )χ : Q(φ) = T } ≤ exp(−(log log H)1/4−ǫ )
    |X| χ∈X T uncofav.

for H sufficiently large given N, (K/F, V0 , F), and ǫ.
   This just leaves the sum over cofavored submodules. Here, an application of Propo-
sition 7.7 finishes the proof.                                                     

10.3. From moments to ranks. The moments calculated in Proposition 10.3 are con-
sistent with the probabilities defined in Cases 2.12 and 2.13.
Proposition 10.4. Take N and b as in Proposition 10.3, and define P (j | ∞) as in Case
2.12 in the non-self-dual case and as in Case 2.13 in the alternating case. Given any
integer m ≥ 0, we have
                           ∞
                           X                              m
                                                          X
                                     mj
(10.3)                           ℓ        · P (j | ∞) =          grℓ (j, m) · ℓb(j) .
                           j=0                             j=0

Proof. We focus on the alternating case, where we have assumed that ℓ = 2. Given a
positive integer n, take T to be a random alternating n×n matrix over F2 . The definition
of a mean gives
n
X
      2mj ·P (j | n) = E (# {(v1 , . . . , vm ) ∈ (Fn2 )m : vi is in the kernel of T for all i ≤ m}) .
j=0

Given (v1 , . . . , vm ) spanning a d-dimensional subset of Fn2 , the probability that T vi = 0
for all i ≤ m is given by
                                                                              d(d+1)
                           2−n+1 · 2−n+2 · . . . 2−n+d = 2−nd+                   2     .
Meanwhile, the number of (v1 , . . . , vm ) spanning a d-dimensional space equals the num-
ber of choices of an m−d-dimensional space of linear dependencies among these vectors
times the number of choices of d linearly independent vectors in Fn2 . So there are
                                 gr(d, m) · (ℓn − 1) . . . (ℓn − ℓd−1 )
such tuples. Combining, we find
                               n
                               X                               m
                                                               X
                                          mj
                         lim          2        · P (j | n) =         grℓ (d, m) · 2b(j) .
                        n→∞
                               j=0                             j=0
                            SELMER GROUPS IN TWIST FAMILIES II                           59

The explicit form of P (j | n) given in Case 2.13 allows us to conclude
                            Xn                    ∞
                                                  X
                      lim       2mj · P (j | n) =    2mj · P (j | ∞),
                      n→∞
                            j=0                         j=0

and the proposition follows in the alternating case. A similar calculation gives the propo-
sition in the non-self-dual case.                                                        
  To move from moments to rank distributions, we will follow the trend of the literature
and use a brief argument in the theory of holomorphic functions. The specific argument
we will use is similar to that of [7, Lemma 18].
Proposition 10.5. There is C > 0 so we have the following:
  Take a0 , a1 , . . . to be a sequence of real numbers, and take
                                                X
                                        f (z) =    ai z i .
                                                  i≥0

Choose an integer m ≥ 1 and a rational prime ℓ. We take
                                      X
                                 B=       |ai |ℓmi .
                                             i≥0

We assume that B is finite. Choose ǫ > 0.
     • Suppose |f (z)| ≤ ǫ for z in {1, ℓ, . . . , ℓm−1 }. Then
                                               1 2
                                                         
                     |ai | ≤ ℓ(−i+C)m Bℓ− 2 m + ǫ            for i ≥ 0.
     • Suppose |f (z)| ≤ ǫ for z in {±1, ±ℓ, . . . , ±ℓm−1 }. Then
                                             2
                                                      
                      |ai | ≤ ℓ(−i+C)m Bℓ−m + ǫ          for i ≥ 0.

Proof. There is a unique polynomial g(z) of degree at most m − 1 so that f − g is zero
on {1, ℓ, . . . , ℓm−1 }. If we take
                   Y
                   m−1
                              z                     z −1
       p(z) =            1− i        and pj (z) = 1 − j     p(z) for j ≤ m − 1,
                              ℓ                      ℓ
                i=0
we may explicitly write this polynomial in the form
                                            m−1
                                            X   f (ℓj )
                                   g(z) =                p (z).
                                                       j) j
                                            j=0
                                                p j (ℓ

Since (1 − ℓj−i ) is an integer for j > i, we get the bound
                                 Ym                 ∞
                                                    Y
                     pj (ℓj ) ≥       (1 − ℓj−i ) ≥    (1 − 2−i ) > 1/4.
                                  i=j+1                  i=1
                                  m
Meanwhile, if we have |z| = ℓ and i < m, we find
                              ℓm−i−1 ≤ |1 − ℓ−i z| ≤ ℓm−i+1 .
60                           SELMER GROUPS IN TWIST FAMILIES II

                           (m+1)(m+2)                    m(m−1)
These imply |pj (z)| ≤ ℓ       2        and |p(z)| ≥ ℓ     2      , so
                                                    (m+1)(m+2)
                                    |g(z)| ≤ 4mǫℓ       2


for z of magnitude ℓm .                        P
   Take q(z) = (f (z) − g(z))/p(z), and write i≥0 bi z i for the power series expansion
for q around 0. This function is continuous in the region {z : |z| ≤ ℓm }. The max-
imum magnitude of q on the boundary of this disk, and hence on the disk, is at most
                  m(m−1)
4mǫℓ2m+1 + Bℓ− 2 . Applying Cauchy’s integral formula to the circles with center
0 and radii (ℓm − δ) and letting δ approach 0 then gives
                                                      m(m−1)
                                                              
                                −im       2m+1       −
                         bi ≤ ℓ      4mǫℓ       + Bℓ     2      .
The bounds on the coefficients ai then follow after we note that p has coefficients
bounded in magnitude by an absolute real constant. This gives the first part. The second
part follows similarly.                                                               

10.4. Applying the main result of [Smi1]. We are finally in a position to apply [Smi1,
Theorem 4.16] to finish the proof of Theorem 2.14.
Proof of Theorem 2.14. From Theorem 2.6, we see that
                                     χ                   1/4
# χ ∈ XfavF,N (H, (χv )v∈V0 ) : rω (N ) > (log log log H)                                                
                                                                         ≤ exp −c · (log log log H)1/2
                    #XfavF,N (H, (χv )v∈V0 )

for H > C, where c, C > 0 are determined from (K/F, V0, F) and N. We then see that
it suffices to prove that
                         X
                            P≤H (rω , rω2 , . . . ) − Pth (rω , rω2 , . . . )
                    rω ≥rω 2 ≥...
                                               
is at most exp −2c · (log log log H)1/2 for each rω ≤ (log log log H)1/4 . So we fix
some rω in this range.
   Take X to be a F -refinement of a filtered grid of good ideals of height H. Fixing any
χ0 and (κs )s as in the proof of Proposition 8.11, we may associate each x ∈ X with a
twist χ(x). We assume these twists lie in Xfav     F,N ((χv )v∈V0 ).
   In the alternating case, the parity of dim Selω N χ(x) does not depend on the choice of
x in X, and we assume that rω has this same parity.
   Take
                        1       
                 P =        · # x ∈ X : rωk (N χ(x) ) = rωk for k ≥ 1 .
                       #X
From Propositions 8.1, 8.5, 8.11, and 10.1, we see that it suffices to prove
                                                                                
                 P − αPth (rω , rω2 , . . . ) ≤ 12 exp −2c · (log log log H)1/2
for H sufficiently large given N, (K/F, V0 , F), where α equals 2 in the non-parity-
invariant alternating case and otherwise equals 1.
                            SELMER GROUPS IN TWIST FAMILIES II                                 61

  Take
                          1 X rω (N χ(x) )   X
               f (z) =       z             −     z j · lim P (j | 2n + rω ).
                         |X|                 j≥0
                                                      n→∞

Here, the appearance of P (j | 2n + rω ) avoids issues with P (j | ∞) in the alternating
non-parity-invariant case. From Proposition 10.3, we find that
           |f (ℓk )| ≤ exp(−(log log H)1/4−ǫ ) for 0 ≤ k ≤ (log log H)1/8−ǫ
for sufficiently large H relative to ǫ > 0. In the alternating case, we also have |f (−ℓk )| =
|f (ℓk )|.
   From (10.2), there is an absolute constant C0 > 0 so that
                              Xm
                                                            m(m+1)
                                   grℓ (j, m) · ℓb(j) < C0 ℓ 2
                             j=0

in the alternating case. Noting that (10.2) attains a maximum for a fixed n at j = ⌊n/2⌋,
we find that this constant may be chosen so
                           Xm
                                                               m2
                               grℓ (j, m) · ℓb(j) ≤ ℓmC0 +m|u|+ 4
                            j=0

in the non-self-dual case. We may now apply Proposition 10.5 to conclude that
         
       # x ∈ X : rω (N χ(x) ) = rω
                                     − αP (rω | ∞) ≤ exp(−(log log H)1/4−ǫ ).
                     |X|
for H sufficiently large given ǫ > 0.                            
   To finish the proof, we choose x0 uniformly at random from x ∈ X : rω (N χ(x) ) = rω
and consider the probability that we may not apply [Smi1, Theorem 4.16] to its grid
class [x0 ]. We do this by considering the reasons that [x0 ] might not be suitable for
higher work.
   First, the grid X itself may not be suitable because Xs is too small for some s ∈
Smed ∪ Slg or because |S| is too large. The latter does not happen by the definition of a
good ideal, and the former does not happen by the Chebotarev density theorem for large
enough H. This step√     uses the fact that the intersection of any ideal in X with F has
rational norm at least H.                                                      −1
  Next, the ratio # [x0 ] /#X might be smaller than exp(3)      1
                                                                4
                                                                  log(3) H 1/2        . Since the
                                                                                           2
total number of possible grid classes is bounded by an expression of the form eC|S| , we
find that this happens for a negligible set of x0 .
   Taking M as in Section 5.2, choose m1 , . . . , mrω in M parameterizing a basis for
                                         Selω N χ(x)
                                   im(H 0 (GF , N χ(x) [ω]))
for x in [x0 ]. We may then view m = (m1 , . . . , mrω ) as parameterizing an element in
the ω-Selmer group of (N ⊕rω )χ(x) for x in [x0 ]. By using Remark 4.4 and Propositions
62                          SELMER GROUPS IN TWIST FAMILIES II

6.11, 6.12, and 9.3 as in the proof of Proposition 10.3, we find that Q(m) is cofavored
in N[ω]⊕rω for x0 outside a negligible set. Since N lacks universal ω-Selmer elements,
we may apply Proposition 4.7 to show that
                                      Q(m) = N[ω]⊕rω .
Now, for any v ∈ N[ω]⊕rω and a subset S0 of Slg , we call m ∈ M ⊕rω v-deficient on S0
if πs (m) = v for fewer that log(3) H of the s in S0 . From Hoeffding’s inequality we see
that, if |S0 | ≥ 2 · #N[ω]rω · log(3) H, we have
              #{m ∈ M ⊕m : m is v-deficient on S0 }
                                                    ≤ exp (−cr1ω · |S0 |) .
                                M ⊕m
where c1 > 0 is determined by N. By applying Proposition 6.11 to restrict to non-
borderline m and then applying Proposition 6.8 together with the bounds on cbilin and
cCheb for a grid of good ideals, we find
     #{(x, m) ∈ X × M ⊕rω : Ψx (m) ∈ Selω N χ(x) and m is v-deficient on S0 }
                                    #X
              r2
is at most C2 ω · exp (−cr2ω · |S0 |), where C2 , c2 > 0 are determined from N. Using
this estimate and the seventh part of definition of good ideal in F , we find that the
probability that Spot-pre and Spot-a/b cannot be selected for the given class [x0 ] is at most
exp −(log log H)1/2 for sufficiently large H. In the alternating case, we may now
apply [Smi1, Theorem 4.16] to finish the proof of the theorem.
   In the non-self-dual case, given x0 , we also need to choose m′1 , . . . , m′rω′ in the pa-
rameter space for N[ω]∨ parameterizing a basis for
                                  Selω (N ∨ )χ(x)
                                                          .
                            im(H 0 (GF , (N ∨ )χ(x) [ω]))
We then follow the same argument as before adjusted for the tuple
                               (m1 , . . . , mrω , m′1 , . . . , m′rω′ )
parameterizing an ω-Selmer element of
                                            ′
                                               χ(x)
                                 ⊕rω     ∨ ⊕rω
                               N     ⊕ (N )
for x in [x0 ]. This gives the theorem.                                                     
                                          R EFERENCES
     [1] Brandon Alberts. “Statistics of the first Galois cohomology group: A refine-
         ment of Malle’s conjecture”. Algebra & Number Theory 15.10 (2022), pp. 2513–
         2569.
     [2] Vidmantas Bentkus. “A Lyapunov-type bound in Rd”. Theory of Probability &
         Its Applications 49.2 (2005), pp. 311–323.
                                  REFERENCES                                     63

 [3] Manjul Bhargava, Zev Klagsbrun, Robert J. Lemke Oliver, and Ari Shnid-
     man. “3-isogeny Selmer groups and ranks of abelian varieties in quadratic
     twist families over a number field”. Duke Mathematical Journal 168.15 (2019),
     pp. 2951–2989.
 [4] Chantal David, Jack Fearnley, and Hershy Kisilevsky. “Vanishing of L-functions
     of elliptic curves over number fields”. Ranks of elliptic curves and random ma-
     trix theory. Vol. 341. London Math. Soc. Lecture Note Ser. Cambridge Univ.
     Press, Cambridge, 2007, pp. 247–259.
 [5] Andrew Granville. “Rational and integral points on quadratic twists of a given
     hyperelliptic curve”. International Mathematics Research Notices 27 (2007),
     pp. 1–25.
 [6] Godfrey H. Hardy and Srinivasa Ramanujan. “The normal number of prime
     factors of a number n”. The Quarterly Journal of Mathematics 48 (1917),
     pp. 76–92.
 [7] David R. Heath-Brown. “The size of Selmer groups for the congruent number
     problem, II”. Inventiones mathematicae 118.1 (1994), pp. 331–370.
 [8] Henryk Iwaniec and Emmanuel Kowalski. Analytic number theory. Vol. 53.
     American Mathematical Society Colloquium Publications. American Mathe-
     matical Society, Providence, RI, 2004.
 [9] Bruce Jordan, Zev Klagsbrun, Bjorn Poonen, Christopher Skinner, and Yevgeny
     Zaytman. “Statistics of K-groups modulo p for the ring of integers of a varying
     quadratic number field”. Tunisian Journal of Mathematics 2.2 (2019), pp. 287–
     307.
[10] Daniel Kane. “On the ranks of the 2-Selmer groups of twists of a given elliptic
     curve”. Algebra & Number Theory 7.5 (2013), pp. 1253–1279.
[11] Daniel Kane and Zev Klagsbrun. “On the Joint Distribution Of Selφ (E/Q) and
     Selφ′ (E ′ /Q) in Quadratic Twist Families”. arXiv preprint arXiv:1702.02687
     (2017).
[12] Zev Klagsbrun and Robert J. Lemke Oliver. “The distribution of 2-Selmer
     ranks of quadratic twists of elliptic curves with partial two-torsion”. Mathe-
     matika 62.1 (2016), pp. 67–78.
[13] Peter Koymans and Djordjo Milovic. “Joint distribution of spins”. Duke Math-
     ematical Journal 170.8 (2021), pp. 1723–1755.
[14] Jeffrey Lagarias and Andrew Odlyzko. “Effective versions of the Chebotarev
     density theorem”. Algebraic Number Fields: L-functions and Galois proper-
     ties. Ed. by Albrecht Fröhlich. London: Academic Press, 1977.
[15] David A. Levin and Yuval Peres. Markov chains and mixing times. Second.
     Vol. 107. American Mathematical Soc., 2017.
[16] Barry Mazur, Karl Rubin, and Alice Silverberg. “Twisting commutative alge-
     braic groups”. Journal of Algebra 314.1 (2007), pp. 419–438.
[17] Adam Morgan. “Quadratic twists of abelian varieties and disparity in Selmer
     ranks”. arXiv preprint arXiv:1706.06063 (2017).
64                                   REFERENCES

  [18] Adam Morgan and Alexander Smith. “Field change for the Cassels-Tate pair-
       ing and applications to class groups”. arXiv preprint arXiv:2206.13403 (2022).
  [19] Adam Morgan and Alexander Smith. “The Cassels–Tate pairing for finite Ga-
       lois modules”. arXiv preprint arXiv:2103.08530 (2022).
  [20] David Mumford. “On the equations defining abelian varieties. I”. Inventiones
       mathematicae 1.4 (1966), pp. 287–354.
  [21] Maruti Ram Murty and Jeanine Van Order. “Counting integral ideals in a num-
       ber field”. Expositiones Mathematicae 25.1 (2007), pp. 53–66.
  [22] Jürgen Neukirch, Alexander Schmidt, and Kay Wingberg. Cohomology of Num-
       ber Fields. Second. Vol. 323. Grundlehren der Mathematischen Wissenschaften.
       Springer-Verlag, Berlin, 2008.
  [23] Masashi Okamoto. “Some inequalities relating to the partial sum of binomial
       probabilities”. Annals of the Institute of Statistical Mathematics 10.1 (1959),
       pp. 29–35.
  [24] Harriet Pollatsek. “First cohomology groups of some linear groups over fields
       of characteristic two”. Illinois Journal of Mathematics 15.3 (1971), pp. 393–
       417.
  [25] Bjorn Poonen and Eric Rains. “Self cup products and the theta characteristic
       torsor”. Mathematical Research Letters 18.6 (2011), pp. 1305–1318.
  [26] Bjorn Poonen and Michael Stoll. “The Cassels-Tate pairing on polarized abelian
       varieties”. Annals of Mathematics 150.3 (1999), pp. 1109–1149.
  [27] Edward F. Schaefer. “2-descent on the Jacobians of hyperelliptic curves”. Jour-
       nal of number theory 51.2 (1995), pp. 219–232.
  [28] Robert J. Serfling. Approximation theorems of mathematical statistics. Vol. 162.
       John Wiley & Sons, 1980.
  [29] Joseph H. Silverman. “A uniform bound for rational points on twists of a given
       curve”. Journal of the London Mathematical Society 2.3 (1993), pp. 385–394.
  [30] Joseph H. Silverman. The arithmetic of elliptic curves. Vol. 106. Springer Sci-
       ence & Business Media, 2009.
  [31] Yakov G. Sinai. Probability theory: An introductory course. Springer Text-
       book. Translated from the Russian original. Springer-Verlag, Berlin, 1992.
[Smi1] Alexander Smith. “The distribution of ℓ∞ -Selmer groups in degree ℓ twist fam-
       ilies I”. arXiv preprint arXiv:2207.05674 (2022).
  [33] Harold M. Stark. “Some effective cases of the Brauer-Siegel theorem”. Inven-
       tiones mathematicae 23.2 (1974), pp. 135–152.
  [34] Michael Stoll. “Independence of rational points on twists of a given curve”.
       Compositio Mathematica 142.5 (2006), 1201–1214.
  [35] Jesse Thorner and Asif Zaman. “A unified and improved Chebotarev density
       theorem”. Algebra & Number Theory 13.5 (2019), pp. 1039–1068.
  [36] Shianghaw Wang. “On Grunwald’s theorem”. Annals of Mathematics (1950),
       pp. 471–484.
  [37] Charles Weibel. “Algebraic K-theory of rings of integers in local and global
       fields”. Handbook of K-theory (2005), pp. 139–190.
                                  REFERENCES                                     65

[38] Andrew Wiles. “Modular elliptic curves and Fermat’s last theorem”. Annals of
     mathematics 141.3 (1995), pp. 443–551.
[39] Myungjun Yu. “Selmer ranks of twists of hyperelliptic curves and superelliptic
     curves”. Journal of Number Theory 160 (2016), pp. 148–185.
