grh-compacta Lean artifact read back into mathematics

Structured proof · Unit 138

lemma exists_isLaw

What it saysFor a prime \ell and a stably unramified CM field E embedded in \Omega with at least 4 infinite places (hf); natural numbers r and e with r > 0 (hr); a finite index type I and a natural number k with k \le |I| (hI); a family x : I \to FrobeniusDatum E of Frobenius data x_i = (w_i, A_i, s_i) (w_i a finite place of E of prime norm, A_i a place of \Omega over w_i, s_i \in \operatorname{Gal}(\Omega /E) with s_i^{-1} an arithmetic Frobenius at A_i) such that IsSplitPlace r x_i holds for every i (hx: w_i does not lie above \ell and cycCharMod \Omega (\ell ^r) s_i = 1) and the places primeBelowPlus w_i of E^{+} are pairwise distinct (i); and elements y_0, \ldots , y_{k-1} \in \operatorname{Gal}(\Omega /E) (y): there are a function z : \operatorname{Gal}(\Omega /E) \to \mathbb{Z}/\ell ^r and a finite set T of finite places of E^{+} such that IsLaw r e \{s_i : i \in I\} T z holds (\Phi the set of the Frobenius elements s_i), z(y_j) = 0 for every j < k, and there is g \in \operatorname{Gal}(\Omega /E) with z(g) a unit of \mathbb{Z}/\ell ^r and cycCharMod \Omega (\ell ^r) g = 1.
The argument in briefPass to E^{+}: \operatorname{Gal}(\Omega /E) is an open subgroup of index 2 of \operatorname{Gal}(\Omega /E^{+}) containing no complex conjugation, a map p : \operatorname{Gal}(\Omega /E^{+}) \to \operatorname{Gal}(\Omega /E) lifting \sigma on the index-two subgroup \operatorname{res}(\operatorname{Gal}(\Omega /E)) and \sigma \cdot c_0 on its complement (so p \circ \operatorname{res} = \operatorname{id} and p(c_0) = 1; p is not a section of \operatorname{res}) gives the character \kappa = cycChar \Omega \ell \circ p of \operatorname{Gal}(\Omega /E^{+}), trivial on complex conjugations, and M = \mathbb{Z}/\ell ^r with the action \kappa ^{-e} \bmod \ell ^r. The Greenberg–Wiles relations at split primes (exists_split_primes_relations) for M, unramified outside S = (places above \ell) \cup (places below the w_i), with local conditions trivial off \ell and on \ker \kappa above \ell, give split places v_i with tame generators \gamma _i and an equivariant extension of every relation. A count of the \ell-torsion of the Selmer group (the Greenberg–Wiles bound for M[\ell ] with two extra Chebotarev primes, a procyclic generator of \kappa , k \le \#(S off \ell) and 4 \le \#\infty) gives \#Y[\ell ]\cdot \ell ^{k+1} \le \ell ^{|\iota |}, so a primitive relation n with a unit entry and zeros at the y_j exists (exists_primitive_relation). Then z(g) = n_{\pi (\operatorname{res} g^{-1})} is a law: local constancy, the conjugation rule and oddness come from the equivariance of the extended relation; the reciprocity comes from the relation at the new split places applied to the cocycle 2\cdot f\circ c\circ p made from an even class c. Notation of the proof: E^{+} the maximal real subfield, \operatorname{res} : \operatorname{Gal}(\Omega /E) \to \operatorname{Gal}(\Omega /E^{+}) the restriction, c_0 the chosen complex conjugation, p the lift of step 5 (\operatorname{res}(p(\sigma )) = \sigma on the image of \operatorname{res}, \sigma \cdot c_0 off it), \kappa = cycChar \Omega \ell \circ p, \rho = \kappa \bmod \ell ^r, V = \operatorname{res}(\operatorname{Gal}(\Omega /E)) \cap \ker cycCharMod \Omega (\ell ^r), M = \mathbb{Z}/\ell ^r with g acting by \rho (g)^{-e}; in the count B: W = M[\ell ], K_\psi = \ker \psi (O in the source), \gamma _0 a procyclic generator (\gamma in the source).

85 steps, 74 of them leaves · New/Selmer/ReciprocityLaw.lean, lines 48–195 · in the notes: Lemma 7.2, p. 16 of A fit family of twists exists: Ribet's method with tied primes, triangular Taylor–Wiles primes and the denominator of the projection to theta lifts

↑ ↓ or j k: step · ← →: fold · Enter: show its lines
  1. Let E^{+} (K in the source) be the maximal real subfield of E and \operatorname{res} : \operatorname{Gal}(\Omega /E) \to \operatorname{Gal}(\Omega /E^{+}) the restriction of scalars, an injective homomorphism (an automorphism of \Omega over E is one over E^{+}).

  2. Let c_0 \in \operatorname{Gal}(\Omega /E^{+}) be the chosen complex conjugation cmConj of \Omega, which fixes E^{+} pointwise: an element x of E^{+} has \overline{x} = x, and cmConj acts on E as complex conjugation.

    UsescmConj unit 92, mem_maximalRealSubfield_iff_star_eq unit 123, cmConj_algebraMap unit 92

  3. \operatorname{res} is a closed embedding (inducing, ce, and injective, ij) whose image \operatorname{res}(\operatorname{Gal}(\Omega /E)) is the subgroup fixing E, of index [E : E^{+}] = 2 in \operatorname{Gal}(\Omega /E^{+}) (ix), E being a quadratic extension of E^{+} (E is CM); c_0 is a complex conjugation (cs); and the image of \operatorname{res} is open (op), E/E^{+} being finite.

    UsesisClosedEmbedding_galois_restrict unit 92, isComplexConj_cmConj unit 92, isOpenEmbedding_galois_restrict unit 92, NumberField.IsCMField.is_quadratic

  4. No complex conjugation c of \operatorname{Gal}(\Omega /E^{+}) lies in the image of \operatorname{res} (N): c = \operatorname{res}(s) would make s a complex conjugation in \operatorname{Gal}(\Omega /E), impossible since E is totally complex.

    Lean statesc ∉ res.range | ⟨s, e⟩ => (e ▸ h).false_of_isTotallyComplex (c := s)

    UsesIsComplexConj.false_of_isTotallyComplex unit 88, IsComplexConj unit 92

  5. 5setup1 step insidelines 61–62

    For every \sigma \in \operatorname{Gal}(\Omega /E^{+}) choose p(\sigma ) \in \operatorname{Gal}(\Omega /E) with \operatorname{res}(p(\sigma )) = \sigma if \sigma lies in the image of \operatorname{res} and \operatorname{res}(p(\sigma )) = \sigma \cdot c_0 otherwise (o).

    1. \sigma or \sigma \cdot c_0 lies in the image of \operatorname{res}: the image has index 2 and c_0 is not in it (step 4), so if \sigma is not in it then \sigma \cdot c_0 is.

      Lean statesite (σ ∈ res.range) σ (σ * c₀) ∈ res.range

      Usesstep 3, step 4, Subgroup.mul_mem_iff_of_index_two

  6. p is continuous (cp): \operatorname{res} is inducing, and \operatorname{res}\circ p is \sigma \mapsto \sigma on the image of \operatorname{res} and \sigma \mapsto \sigma c_0 off it, continuous because the image is open and closed (its frontier is empty); the image of \operatorname{res} is a normal subgroup, having index 2; and p(\operatorname{res}(g)) = g for every g \in \operatorname{Gal}(\Omega /E) (p1), \operatorname{res} being injective.

    Usesstep 3, step 5, Subgroup.normal_of_index_eq_two, Topology.IsInducing.continuous_iff, Continuous.if

  7. 7fact2 steps insidelines 66–68

    For g, h \in \operatorname{Gal}(\Omega /E^{+}): p(gh) = p(g)p(h) or p(gh) = p(g)\cdot p(h)^c (\mu ). Since \operatorname{res} is injective it suffices to compare images under \operatorname{res}, using that \operatorname{res} is a homomorphism and that a product lies in the index-2 subgroup \operatorname{res}(\operatorname{Gal}(\Omega /E)) exactly when both or neither factor does.

    Lean statesp (g * h) = p g * p h ∨ p (g * h) = p g * conjGal (p h)

    Usesstep 3, step 5, Subgroup.mul_mem_iff_of_index_two

    1. 7.1identityline 68

      \operatorname{res}(p(h)^c) = c_0\cdot \operatorname{res}(p(h))\cdot c_0: g \mapsto g^c is conjugation by the chosen complex conjugation.

      Lean statesres (conjGal (p h)) = c₀ * res _ * c₀

      UsesconjGal unit 92

    2. 7.2deductionline 68

      In each of the four cases of membership of g and h in the image, \operatorname{res}(p(\cdot )) \in \{\cdot , \cdot c_0\} and c_0^{2} = 1 (c_0 is a complex conjugation) give one of the two alternatives.

  8. 8fact2 steps insidelines 69–75

    Let \mathcal{W} be a set of finite places of E^{+} (W in the source). If g \in \operatorname{Gal}(\Omega /E^{+}) lies in the inertia group of a place A of \Omega over a place in \mathcal{W}, then p(g) lies in the inertia group of A in \operatorname{Gal}(\Omega /E), A lying over a place of E whose place below in E^{+} is in \mathcal{W} (u).

    Lean statesg ∈ inertiaAbove W → p g ∈ inertiaAbove (primeBelowPlus ⁻¹' W)

    1. A lies over a place w of E with primeBelowPlus w the given place of E^{+}. If g lies in the image of \operatorname{res}, then \operatorname{res}(p(g)) = g, so p(g) lies in the inertia group of A in \operatorname{Gal}(\Omega /E) and w is as required.

      UsesIsPlaceOver.exists_above unit 92, step 5

    2. The other case cannot occur: if g is not in the image of \operatorname{res} then g acts on E as complex conjugation (\operatorname{res}(p(g)) = g\cdot c_0). As E is stably unramified there is y \in O_E with y - \overline{y} a unit; g lies in the inertia group of A, so g(y) - y = \overline{y} - y lies in the maximal ideal of A, hence in w, contradicting that y - \overline{y} is a unit.

      UsesStablyUnram.exists_isUnit_sub_star unit 123, algebraMap_ringOfIntegers_mem unit 92, step 2, step 5

  9. 9setupline 76

    \kappa = cycChar \Omega \ell \circ p : \operatorname{Gal}(\Omega /E^{+}) \to \mathbb{Z}_\ell ^\times is a homomorphism: by step 7, \kappa (gh) is cycChar \Omega \ell (p g)\cdotcycChar \Omega \ell (p h) or cycChar \Omega \ell (p g)\cdotcycChar \Omega \ell (p(h)^c), and cycChar \Omega \ell (s^c) = cycChar \Omega \ell (s).

    Usesstep 7, cycChar unit 92

  10. \kappa (g) = 1 for every g in the inertia above a place of E^{+} not dividing \ell: by step 8, p(g) lies in the inertia above a place of E not dividing \ell, where cycChar \Omega \ell is trivial.

    Lean statesκ g = 1

    Usesstep 8, step 9, cycChar_eq_one_of_mem_inertiaAbove unit 92

  11. 11setupline 79

    \rho : \operatorname{Gal}(\Omega /E^{+}) \to (\mathbb{Z}/\ell ^r)^\times is \kappa reduced modulo \ell ^r.

    Usesstep 9, PadicInt.toZModPow

  12. V = \operatorname{res}(\operatorname{Gal}(\Omega /E)) \cap \ker(cycCharMod \Omega (\ell ^r)) is an open normal subgroup of \operatorname{Gal}(\Omega /E^{+}): the image of \operatorname{res} is open (op) and normal, and the kernel of cycCharMod \Omega (\ell ^r) is open.

    Usesstep 3, step 6, isOpen_ker_cycCharMod unit 92

  13. 13factline 82

    For s \in \operatorname{Gal}(\Omega /E) with cycCharMod \Omega (\ell ^r) s = 1: \operatorname{res}(s^{-1}) \in V.

    Lean statesres s⁻¹ ∈ V

    Usesstep 12

  14. 14factline 83

    V \subseteq \ker \rho: for s \in \operatorname{Gal}(\Omega /E) with \operatorname{res}(s) in the kernel of cycCharMod \Omega (\ell ^r), \rho (\operatorname{res} s) = cycChar \Omega \ell (p(\operatorname{res} s)) \bmod \ell ^r = cycChar \Omega \ell (s) \bmod \ell ^r = cycCharMod \Omega (\ell ^r) s = 1 (p1).

    Lean statesV ≤ ρ.ker | _, ⟨⟨s, rfl⟩, h⟩ =>

    Usesstep 6, step 11, step 12, cycCharMod_prime_pow_eq unit 92

  15. For every Frobenius datum x' = (w', A', s') of E: \operatorname{res}(s^{\prime -1}) is an arithmetic Frobenius at A' for the place primeBelowPlus w' of E^{+} (D): the norm of w' is a prime q and equals the norm of primeBelowPlus w' raised to the residue degree, so the residue degree is 1 and both residue fields have q elements.

    Lean statesIsFrob x.valRing (primeBelowPlus x.w).q (res x.frob⁻¹)

    UsesFrobeniusDatum unit 3, IsFrob unit 92, primeBelowPlus unit 138, Ideal.absNorm_pow_inertiaDeg, Nat.Prime.pow_eq_iff

  16. Let S be the finite set of the finite places of E^{+} that lie above \ell or below one of the w_i (hS describes its members); \ell \mid \ell ^r as r > 0 (hm); 1 \le \ell (l); and \ker \rho is open, as it contains the open subgroup V (named w in the source).

    Usesstep 12, step 14, placesDividing unit 92, primeBelowPlus unit 138, Set.Finite.exists_finset, dvd_pow_self, Subgroup.isOpen_mono

  17. 17setup1 step insidelines 88–91

    For every finite place u of E^{+} choose a place P(u) of \Omega over u (hP) such that, when u \in S does not lie above \ell, there is an index i (\eta ) for which \operatorname{res}(s_i^{-1}) is an arithmetic Frobenius at P(u) for u (\Phi ).

    1. Such a place exists: if u = primeBelowPlus w_i for some i, take A_i, which lies over u, with the Frobenius \operatorname{res}(s_i^{-1}) of step 15; otherwise take any place over u, the condition being empty because a place of S below no w_i lies above \ell.

      Lean states∃ A, IsPlaceOver A u ∧ (u ∈ S → u ∉ placesDividing _ ℓ → ∃ i, IsFrob A u.q (res (x i).frob⁻¹))

      Usesstep 15, step 16, IsPlaceOver.isPlaceOver_below unit 92

  18. Let M be the discrete \operatorname{Gal}(\Omega /E^{+})-module \mathbb{Z}/\ell ^r on which g acts by the scalar \rho (g)^{-e} (charRep (\mathbb{Z}/\ell ^r) (\rho ^e)^{-1}); the action is continuous because \ker \rho is open (step 16).

    UsescharRep unit 95, DiscreteModule unit 95, Continuous.of_isOpen_ker unit 29, step 11, step 16

  19. 19setupline 94

    Write A for M (m : M = A); the count of \ell-torsion cocycles below keeps the module abstract.

    Usesstep 18

  20. 20factline 95

    Every g with \rho (g) = 1 acts trivially on A.

    Lean statesA.ρ g = 1

    Usesstep 18, step 19

  21. 21factline 96

    Every g with \kappa (g) = 1 acts trivially on A (then \rho (g) = 1).

    Usesstep 11, step 20

  22. Let B be a discrete module on which every element acting trivially on A acts trivially (r), and u \in S. Every coboundary of B restricted to the decomposition group D_u of P(u) vanishes at every g \in D_u with (u above \ell \Rightarrow \kappa (g) = 1): if u lies above \ell then \kappa (g) = 1, so g acts trivially on A and on B; otherwise u is below some w_i, the inertia group of P(u) lies in \ker \rho (\kappa is trivial on inertia off \ell, step 10) and so does its Frobenius \operatorname{res}(s_i^{-1}) (it lies in V, as cycCharMod \Omega (\ell ^r) s_i = 1 by hx), hence D_u \subseteq \ker \rho, and D_u acts trivially on A and on B.

    Lean states(d0 (B.restrictTo (decompGroup _ (P u))).ρ).range ≤ .pi {g | ↑ℓ ∈ u.1 → κ g = 1} ⊥

    Usesd0 unit 95, DiscreteModule.restrictTo unit 95, IsPlaceOver.decompGroup_le unit 92, step 10, step 13, step 14, step 16, step 17, step 20, step 21

  23. 23factline 101

    A is unramified outside S: an element of the inertia above a place of E^{+} outside S (such a place does not lie above \ell) has \kappa = 1 (step 10), so it acts trivially.

    Usesstep 10, step 16, step 21

  24. Complex conjugations c \in \operatorname{Gal}(\Omega /E^{+}) act trivially on A: c is not in the image of \operatorname{res} (step 4), so \operatorname{res}(p(c)) = c\cdot c_0 and \kappa (c) = cycChar \Omega \ell (c\cdot c_0) = (-1)\cdot (-1) = 1.

    Usesstep 4, step 5, step 21, IsComplexConj.cycChar_eq_neg_one unit 88

  25. Apply the Greenberg–Wiles relations at split primes to A over E^{+}: A is unramified outside S (step 23), P(u) lies over u, the local conditions L_u at u \in S are the cochains on D_u vanishing on {g \in D_u : u above \ell \Rightarrow \kappa (g) = 1}, which contain the coboundaries (step 22), complex conjugations act trivially (step 24), the target group of the relations is A, and the open normal subgroup V fixes A (steps 14, 20), fixes the \ell ^r-th roots of unity and contains no complex conjugation (step 4).

    UsesselmerZ1.exists_split_primes_relations unit 94, step 4, step 12, step 14, step 16, step 17, step 20, step 22, step 23, step 24

  26. 26setupline 106

    Let Y(P') = selmerZ1 A S P L P' be the continuous cocycles \operatorname{Gal}(\Omega /E^{+}) \to A unramified outside S \cup P', restricting into L_u on D_u for u \in S, and vanishing on complex conjugations.

    UsesselmerZ1 unit 94, step 25

  27. 27setupline 107

    Choose what step 25 provides: a level q \ge 1 divisible by every u \in S (hT); a finite index set \iota; split places s = (v_i)_{i\in \iota } for (\ell ^r, q, V) — distinct places not dividing q, with places over them and Frobenii \varphi _i \in V, inertia off q inside V; tame generators \gamma _i; a locally constant (hπ) \pi : \operatorname{Gal}(\Omega /E^{+}) \to \iota; a finite set T \supseteq S of places (hST); a lower bound for the number of relations (not used below); the Frobenii detect roots (d: an element of \Omega ^\times whose \ell ^r-th power is a q-unit fixed by V and which every \varphi _i fixes is fixed by V); and (H) for every family of additive maps n_i : A \to A (i \in \iota ) with \sum _i n_i(x(\gamma _i)) = 0 for all x \in Y(\{v_i\}): n_{\pi (\varphi _i)} = n_i for all i; n_{\pi (a\cdot g b g^{-1})}(m) = n_{\pi (a)}(m) + n_{\pi (b)}(cycCharMod \Omega (\ell ^r) g\cdot g^{-1}\cdot m) for all g \in \operatorname{Gal}(\Omega /E^{+}), a, b \in V, m \in A; and \sum _j n_{\pi (\varphi '_j)}(x(\delta _j)) = 0 for every finite family of distinct places v'_j \notin T with places C_j over them, tame generators \delta _j for \ell ^r at C_j and Frobenii \varphi '_j \in V at C_j, and every x \in Y(\{v'_j\}).

    Usesstep 25, step 26, SplitPlaces unit 94, SplitPlaces.FrobeniiDetectRoots unit 94, IsTameGeneratorFor unit 94

  28. 28setupline 108

    Let Z be the \ell-torsion of Y(\{v_i\}) (the kernel of multiplication by \ell).

    Usesstep 26, step 27

  29. 29fact19 steps insidelines 110–161

    \#Z \cdot \ell ^{k+1} \le \ell ^{|\iota |} (B).

    Lean states.card Z * ℓ ^ (k + 1) ≤ ℓ ^ Fintype.card ι

    1. 29.1setupline 111

      Let W = A[\ell ], the kernel of multiplication by \ell on A, a Galois-stable submodule, as a discrete module.

      UsesDiscreteModule.submodule unit 95

    2. W is finite with exactly \ell elements: A = M = \mathbb{Z}/\ell ^r is cyclic of order \ell ^r and \ell \mid \ell ^r, so its \ell-torsion has \gcd (\ell , \ell ^r) = \ell elements.

      Lean statesFinite W ∧ .card W = ℓ

      Usesstep 16, step 19, step 29.1, IsAddCyclic.card_nsmulAddMonoidHom_ker, Nat.gcd_eq_right

    3. 29.3factline 114

      Every g acting trivially on A acts trivially on W.

      Lean statesW.ρ g = 1

      Usesstep 29.1

    4. 29.4setupline 115

      Let \psi : \operatorname{Gal}(\Omega /E^{+}) \to \operatorname{Aut}(W) \times (\mathbb{Z}/\ell )^\times be the action on W together with cycCharMod \Omega \ell.

      UsescycCharMod unit 92, DistribMulAction.toAddAut, MonoidHom.prod

    5. V \subseteq \ker \psi: V acts trivially on A (steps 14, 20), hence on W, and fixes the \ell-th roots of unity since \ell \mid \ell ^r.

      Lean statesV ≤ ψ.ker | _, h => Prod.ext (by ext; exact congr($(r (t (v h))) _)) (cycCharMod_eq_one_of_dvd hm h.2)

      Usesstep 14, step 20, step 29.3, step 29.4, cycCharMod_eq_one_of_dvd unit 92

    6. 29.6setupline 118

      K_\psi = \ker \psi (O in the source) is an open normal subgroup of \operatorname{Gal}(\Omega /E^{+}) (it contains the open subgroup V).

      Usesstep 29.5, Subgroup.isOpen_mono

    7. For every closed subgroup D of \operatorname{Gal}(\Omega /E^{+}), \kappa restricted to D has procyclic image: \kappa is continuous (p is continuous, step 6, and so is cycChar \Omega \ell) and 4 divides \kappa (g) - 1 for every g (\kappa (g) = cycChar \Omega \ell (p g)); so there is \gamma \in D such that every open subgroup of D containing \gamma and the kernel of \kappa on D is all of D.

      Usesexists_procyclic_generator unit 106, continuous_cycChar unit 92, four_dvd_cycChar_sub_one unit 138, step 6, step 9

    8. 29.8setupline 122

      Take such a \gamma _0 (\gamma in the source) for D = K_\psi.

      Usesstep 29.6, step 29.7

    9. By Chebotarev, for every g \in K_\psi and every finite place v_0 of E^{+} there is a place v(g, v_0) of E^{+} of prime norm, different from v_0, not dividing q and not one of the v_i, with a place of \Omega over it and an arithmetic Frobenius \varphi (g, v_0) there such that g\cdot \varphi (g, v_0) \in V (the set \{x : g\cdot x \in V\} is open and contains g^{-1}), all Frobenii at that place lying in this set.

      Useschebotarev unit 3, finite_natCast_mem unit 123, step 12, step 27

    10. 29.10setupline 125

      Two new places: t(true) = (\gamma _0, an arbitrary place) and t(false) = (c_0 if c_0 \in K_\psi, else 1; the place v(t(true))), so that the two Chebotarev places of step 29.9 differ.

      Usesstep 29.8, step 29.9, step 2

    11. 29.11factline 126

      The avoidance conditions read: v(t(b)) differs from the second component of t(b), does not divide q and is not one of the v_i.

    12. 29.12setuplines 127–132

      s' = the places v_i together with the two new places v(t(true)), v(t(false)), with their Frobenii, is a family of split places for (\ell , q, K_\psi ): K_\psi fixes the \ell-th roots of unity (second component of \psi), \ell \mid \ell ^r \mid q, the places are distinct and prime to q (step 29.11), the old Frobenii lie in V \subseteq K_\psi and the new ones in K_\psi (the first component of t(b) and its product with the Frobenius lie in K_\psi), inertia groups off q lie in V \subseteq K_\psi, and the condition on class groups of fields fixed by K_\psi follows from that for V.

      UsesSplitPlaces unit 94, step 27, step 29.5, step 29.9, step 29.10, step 29.11

    13. W is finite, killed by \ell (it has \ell elements), fixed by K_\psi (the first component of \psi), and the action of 1 minus 0, the identity of W, is injective: W.FiniteKilledFixedInj \ell K_\psi 1 0.

      Lean statesW.FiniteKilledFixedInj ℓ O 1 0

      UsesDiscreteModule.FiniteKilledFixedInj unit 4, step 29.2, step 29.6

    14. 29.14fact3 steps insidelines 135–152

      The Greenberg–Wiles bound for W over E^{+} (selmerZ1.card_mul_pow_le): W is unramified outside S (steps 23, 29.3), P(u) lies over u, the local conditions L_u (restricted to W) contain the coboundaries (step 22 with B = W), complex conjugations act trivially (step 24), with the split places s':

      UsesselmerZ1.card_mul_pow_le unit 94, step 22, step 23, step 24, step 29.3, step 29.12

      1. 29.14.1factlines 136–139

        W has few trivialised cocycles — at most \#W^{|\iota |+2+1} (SplitPlaces.card_trivialised_of_isHigmanProjective, first part) — by step 29.13 and Higman's criterion for K_\psi: \ell is prime to the index of K_\psi = \ker \psi, which divides \#(\operatorname{Aut}(W) \times (\mathbb{Z}/\ell )^\times ) = (\ell - 1)^{2}, W being cyclic of prime order \ell (an automorphism group of order \varphi (\ell ) = \ell - 1); —

        UsesSplitPlaces.card_trivialised_of_isHigmanProjective unit 94, DiscreteModule.FiniteKilledFixedInj.isHigmanProjective_of_coprime unit 4, step 29.13, step 29.2, step 29.4, Nat.totient_prime, IsCyclic.card_mulAut, isCyclic_of_prime_card, Nat.Coprime.of_dvd_right

      2. 29.14.2fact4 steps insidelines 139–148

        — given the root condition: every y \in \Omega ^\times (written additively) such that \ell \cdot y is a q-unit fixed by K_\psi and every Frobenius of s' fixes y is itself fixed by K_\psi.

        1. 29.14.2.1setupline 140

          Let F be the stabiliser of y in \operatorname{Gal}(\Omega /E^{+}).

        2. 29.14.2.2factlines 141–142

          V \subseteq F: \ell ^r\cdot y = \ell ^{r-1}\cdot (\ell \cdot y) is a q-unit fixed by V \subseteq K_\psi, and the old Frobenii \varphi _i fix y, so V fixes y (the Frobenii of s detect roots, d).

          Lean statesV ≤ F

          Usesstep 27, step 29.5, step 29.14.2.1

        3. 29.14.2.3factline 143

          For b \in {true, false}, the first component of t(b) lies in F: its product with the new Frobenius \varphi (t(b)) lies in V \subseteq F, and \varphi (t(b)) fixes y.

          Usesstep 29.14.2.2, step 29.9

        4. 29.14.2.4deductionlines 144–148

          F \cap K_\psi = K_\psi by the choice of \gamma _0 (step 29.8): F \cap K_\psi is open (it contains V), contains \gamma _0 (step 29.14.2.3 with b = true), and contains every g \in K_\psi with \kappa (g) = 1 — if g is in the image of \operatorname{res} then g \in V \subseteq F (cycCharMod \Omega (\ell ^r) is 1 at p(g)); otherwise g\cdot c_0 \in V, so c_0 \in K_\psi is the first component of t(false), lies in F, and g \in F. Hence K_\psi fixes y.

          Usesstep 29.8, step 29.14.2.2, step 29.14.2.3, step 13, step 5

      3. 29.14.3deductionlines 148–152

        Hence \#Y_W(places of s') \cdot \#W^{\#S + \#\infty (E^{+})} \le \#W^{|\iota |+3} \cdot \prod _{u\in S} \#(L_u \cap Z^{1}(D_u, W)), every u \in S dividing q (hT). Moreover \#Z \le \#Y_W(places of s'): an \ell-torsion cocycle with values in A takes values in W and stays a cocycle unramified outside S \cup \{v_i\}, in the local conditions and zero on complex conjugations, and this map is injective. So \#Z \cdot \#W^{\#S + \#\infty (E^{+})} is at most the same right side.

        Usesstep 27, step 28, selmerZ1.finite_unramified_cocycles unit 94, Nat.card_le_card_of_injective

    15. 29.15deductionlines 153–155

      Bound the right side: each factor \#(L_u \cap Z^{1}(D_u, W)) is at most 1 if u does not lie above \ell and at most \#W otherwise (steps 29.18, 29.19); \#W = \ell; \#\infty (E^{+}) = \#\infty (E) \ge 4 (hf); \#S is the number of places of S off \ell plus the number above \ell; and k \le |I| \le \#(places of S off \ell), as i \mapsto primeBelowPlus w_i is injective (i) into the places of S off \ell (step 29.17).

      Usesstep 16, step 29.2, step 29.14, Finset.prod_le_prod', NumberField.IsCMField.card_infinitePlace_eq_card_infinitePlace, Finset.card_filter_add_card_filter_not, Finset.card_le_card_of_injOn

    16. 29.16deductionline 156

      So \#Z \cdot \ell ^{k + 4 + \#(S \text\{ above \} \ell )} \le \ell ^{|\iota | + 3 + \#(S \text\{ above \} \ell )}, i.e. \#Z \cdot \ell ^{k+1} \le \ell ^{|\iota |}.

      Usesstep 29.15

    17. 29.17factline 157

      Each primeBelowPlus w_i lies in S and not above \ell, as w_i does not lie above \ell (hx).

      Usesstep 16

    18. 29.18factline 158

      For u \in S not above \ell , L_u asks for vanishing on all of D_u, so L_u \cap Z^{1}(D_u, W) = 0 and the factor is 1.

    19. For u \in S above \ell , \#(L_u \cap Z^{1}(D_u, W)) \le \#W: take \gamma _u \in D_u as in step 29.7 for the closed subgroup D_u. The map x \mapsto x(\gamma _u) is injective on L_u \cap Z^{1}: if x(\gamma _u) = 0, the subgroup \{g : x(g) = 0\} of D_u (x is a cocycle), open since x is continuous with discrete values, contains \gamma _u and the kernel of \kappa on D_u (x \in L_u vanishes where \kappa = 1), so it is D_u and x = 0.

      Usesstep 29.7, cocycleKer unit 92

  30. 30setupline 162

    Return to A = M.

    Usesstep 19

  31. Y(\{v_i\}) is finite (it consists of cocycles of the finite module M unramified outside a finite set) and \#Y(\{v_i\})[\ell ]\cdot \ell ^{k+1} \le \ell ^{|\iota |} (step 29). By exists_primitive_relation, applied to x \mapsto (x(\gamma _i))_{i\in \iota } : Y(\{v_i\}) \to (\mathbb{Z}/\ell ^r)^\iota and to the k indices \pi (\operatorname{res}(y_j^{-1})), there is n : \iota \to \mathbb{Z}/\ell ^r with \sum _i x(\gamma _i)\cdot n_i = 0 for every x \in Y(\{v_i\}) (a), n_{\pi (\operatorname{res}(y_j^{-1}))} = 0 for every j < k (n2), and n_{j_0} a unit for some j_0 \in \iota (\beta ).

    Usesexists_primitive_relation unit 95, selmerZ1.finite_unramified_cocycles unit 94, step 27, step 29, step 30

  32. 32factline 165

    The maps n'_i = (m \mapsto m\cdot n_i) : M \to M satisfy the hypothesis of H by (a); hence n'_{\pi (\varphi _i)} = n'_i (\alpha ), the conjugation rule holds (ad), and the relation holds at new split places (law).

    Usesstep 27, step 31, AddMonoidHom.mulRight

  33. 33witness6 steps insidelines 166–195

    Take z(g) = n_{\pi (\operatorname{res}(g^{-1}))} for g \in \operatorname{Gal}(\Omega /E) and the set T of step 27; it remains to check IsLaw r e \{s_i\} T z, the zeros at the y_j and a unit value:

    1. 33.1factline 166

      z is locally constant: \pi is locally constant and g \mapsto \operatorname{res}(g^{-1}) is continuous.

      Usesstep 27

    2. map_conj_mul: for g, a, b \in \operatorname{Gal}(\Omega /E) with cycCharMod \Omega (\ell ^r) a = cycCharMod \Omega (\ell ^r) b = 1, the elements \operatorname{res}(b^{-1}), \operatorname{res}(a^{-1}) lie in V (step 13), and the conjugation rule (ad) at \operatorname{res}(g) and m = 1 gives z(g a g^{-1} b) = n_{\pi (\operatorname{res}(b^{-1})\cdot \operatorname{res}(g)\cdot \operatorname{res}(a^{-1})\cdot \operatorname{res}(g)^{-1})} = z(b) + cycCharMod \Omega (\ell ^r) g\cdot \rho (\operatorname{res} g)^e\cdot z(a) = (cycCharMod \Omega (\ell ^r) g)^{e+1}\cdot z(a) + z(b), because \rho (\operatorname{res} g) = cycChar \Omega \ell (g) \bmod \ell ^r = cycCharMod \Omega (\ell ^r) g (p(\operatorname{res} g) = g).

      Usesstep 32, step 13, step 6, step 11, step 18, cycCharMod_prime_pow_eq unit 92

    3. odd: n_{\pi (1)} = 0 (the conjugation rule at g = a = b = 1); the rule at c_0 with a' = 1 and b' = \operatorname{res}(b^{-1}) \in V gives z(b^c) = n_{\pi (c_0\cdot \operatorname{res}(b^{-1})\cdot c_0^{-1})} = n_{\pi (1)} + cycCharMod \Omega (\ell ^r) c_0\cdot z(b) = -z(b): two characters enter: cycCharMod \Omega (\ell ^r) c_0 = -1, the cyclotomic character of the complex conjugation c_0 (IsComplexConj.cycCharMod_eq_neg_one), gives the sign; and c_0 acts trivially on M (step 24), because M is acted on through \kappa = cycChar \Omega \ell \circ p and p(c_0) = 1 — c_0 lies outside the index-two subgroup \operatorname{res}(\operatorname{Gal}(\Omega /E)) and c_0^{2} = 1, so \operatorname{res}(p(c_0)) = c_0\cdot c_0 = 1 (step 5) —; so the sign is -1 whatever e is. Moreover c_0^{-1} = c_0 and c_0\cdot \operatorname{res}(b^{-1})\cdot c_0^{-1} = \operatorname{res}((b^c)^{-1}).

      Usesstep 32, step 13, step 3, step 2

    4. 33.4fact8 steps insidelines 171–194

      reciprocity: let J be finite and x' : J \to FrobeniusDatum E (named w in the source), x'_i = (w'_i, A'_i, s'_i), with the places primeBelowPlus w'_i pairwise distinct (named i in the source), each x'_i split for r with primeBelowPlus w'_i \notin T (h); let j \in J with z(s'_i) = 0 for i \ne j, O a coefficient ring, c \in evenClasses O \{w'_i\} r e vanishing on the Frobenii s_i of the data x (\varphi ), and n_0 \in \mathbb{N} with n_0 = 2\cdot z(s'_j)\cdot y' in \mathbb{Z}/\ell ^r (y', b). By eq_zero_of_mem_evenClasses it suffices that f(n_0\cdot c(\tau '_j)) = 0 for every additive f : (O/\ell ^r O)^1 \to \mathbb{Z}/\ell ^r such that f\circ c is a continuous cocycle (l) for (cycCharMod \Omega (\ell ^r))^{-e} (fs); \tau '_j is the chosen tame generator at A'_j over w'_j.

      Useseq_zero_of_mem_evenClasses unit 138

      1. 33.4.1factlines 172–173

        From c \in evenClasses O \{w'_i\} r e: c is a cocycle for cycChar \Omega \ell ^{-e} (h1), vanishes on the inertia above the places of E other than those above \ell and the w'_i and their conjugates (h2), c(g^c) = c(g) (h3), and c = 0 on shaLocalSet \ell E 1 (h4); each A'_i lies over primeBelowPlus w'_i (F).

        Usesmem_selmerModule_iff unit 94, IsPlaceOver.isPlaceOver_below unit 92, evenClasses unit 138, shaLocalSet unit 92

      2. 33.4.2setupline 174

        Choose \delta _i \in \operatorname{Gal}(\Omega /E^{+}), a tame generator for \ell ^r at A'_i over primeBelowPlus w'_i.

        Usesexists_isTameGeneratorFor unit 94, step 33.4.1

      3. 33.4.3setuplines 175–176

        X(\sigma ) = f(c(p(\sigma ))) for \sigma \in \operatorname{Gal}(\Omega /E^{+}) is a continuous 1-cocycle with values in M: it is continuous (l, p continuous), and by step 7, fs and h3, X(gh) = X(g) + \rho (g)^{-e}\cdot X(h) whether p(gh) is p(g)p(h) or p(g)\cdot p(h)^c.

        Usesstep 6, step 7, step 11, step 18, Z1 unit 95

      4. 33.4.4factlines 177–179

        (X + X)(g) = 0 for every g in the inertia above a place of E^{+} that neither lies above \ell nor is one of the primeBelowPlus w'_i: p(g) is then in the inertia above a place of E that lies neither above \ell nor among the w'_i and their conjugates (step 8; a conjugate place lies over the same place of E^{+}), where c vanishes (h2).

        Lean states(X + X).1 g = 0

        Usesstep 8, step 33.4.1, step 33.4.3, primeBelowPlus_star unit 138, placesDividing unit 92

      5. 33.4.5factlines 180–182

        X(\operatorname{res} \tau '_j) = m\cdot X(\delta _j) for some m \in \mathbb{N}: \operatorname{res} \tau '_j lies in the inertia group of A'_j over E^{+}, w'_j does not divide \ell (x'_j is split), X is locally constant and additive on that inertia group (inertia off \ell acts trivially on M, steps 10 and 21), and \delta _j is a tame generator there.

        UsesIsTameGeneratorFor.exists_apply_eq_nsmul unit 94, step 33.4.2, step 33.4.3, step 10, step 21

      6. 33.4.6fact4 steps insidelines 183–192

        The relation at new split places (law), applied to the places primeBelowPlus w'_i of E^{+} (distinct, outside T), the places A'_i over them (F), the tame generators \delta _i, the Frobenii \operatorname{res}(s_i^{\prime -1}) (step 15), which lie in V (step 13, cycCharMod \Omega (\ell ^r) s'_i = 1), and the cocycle 2X, which lies in Y({primeBelowPlus w'_i}):

        Usesstep 32, step 15, step 13, step 33.4.1, step 33.4.2

        1. 33.4.6.1factlines 183–184

          2X is a continuous cocycle, unramified outside S and the places primeBelowPlus w'_i (step 33.4.4; a place outside S does not lie above \ell);

          Usesstep 33.4.3, step 33.4.4, step 16

        2. 33.4.6.2fact2 steps insidelines 184–190

          2X lies in the local condition at every u \in S: (X + X)(g) = 0 for g \in D_u with (u above \ell \Rightarrow \kappa (g) = 1).

          1. 33.4.6.2.1caselines 184–188

            u above \ell: \kappa (g) = 1, so g acts trivially on M and (X + X)(g) = X(g^{2}) = f(c(p(g^{2}))); g^{2} lies in the index-2 image of \operatorname{res}, so p(g^{2}) lies in the decomposition group of P(u), a place above \ell, and cycChar \Omega \ell (p(g^{2})) = \kappa (g)^{2} = 1; thus p(g^{2}) \in shaLocalSet \ell E 1 and c(p(g^{2})) = 0 (h4).

            Usesstep 21, step 33.4.1, step 3, step 5, step 17, IsPlaceOver.valuation_natCast_lt_one_iff unit 92, Subgroup.mul_self_mem_of_index_two

          2. 33.4.6.2.2caselines 188–190

            u not above \ell: u is not among the primeBelowPlus w'_i (u \in S \subseteq T, those are outside T), so 2X vanishes on the inertia group of P(u) (step 33.4.4); P(u) carries the Frobenius \operatorname{res}(s_i^{-1}) of some datum x_i (step 17), where X vanishes: X(\operatorname{res}(s_i^{-1})) = f(c(s_i^{-1})) and c(s_i^{-1}) = -s_i^{-1}\cdot c(s_i) = 0, c vanishing on the Frobenii s_i (\varphi ); so 2X vanishes on D_u.

            UsesDiscreteModule.Z1.eq_zero_on_decompGroup unit 94, cocycle_apply_inv unit 95, step 17, step 27, step 33.4.4, step 33.4.1, step 6

        3. 33.4.6.3factlines 190–191

          2X vanishes on complex conjugations c: c acts trivially on M (step 24) and c^{2} = 1, so 0 = X(1) = X(c\cdot c) = 2X(c).

          Usesstep 24, step 33.4.3

        4. 33.4.6.4deductionlines 191–192

          The resulting sum \sum _i (X + X)(\delta _i)\cdot n_{\pi (\operatorname{res}(s_i^{\prime -1}))} = 0 reduces to its j-th term, the others vanishing because z(s'_i) = n_{\pi (\operatorname{res}(s_i^{\prime -1}))} = 0 for i \ne j: so (X + X)(\delta _j)\cdot z(s'_j) = 0.

          UsesFintype.sum_eq_single

      7. 33.4.7deductionline 193

        Unfolding: X(\operatorname{res} \tau '_j) = f(c(\tau '_j)) (p(\operatorname{res} g) = g), so f(c(\tau '_j)) = m\cdot X(\delta _j); and f(n_0\cdot c(\tau '_j)) = n_0\cdot f(c(\tau '_j)) with n_0 = 2\cdot z(s'_j)\cdot y'.

        Usesstep 6, step 33.4.5, step 33.4.6

      8. 33.4.8deductionline 194

        Hence f(n_0\cdot c(\tau '_j)) = 2\cdot z(s'_j)\cdot y'\cdot m\cdot X(\delta _j) = -m\cdot y'\cdot (-(X + X)(\delta _j)\cdot z(s'_j)) = 0.

        Usesstep 33.4.6, step 33.4.7

    5. 33.5factline 194

      z(y_j) = n_{\pi (\operatorname{res}(y_j^{-1}))} = 0 for every j < k (n2).

      Usesstep 31

    6. 33.6witnesslines 194–195

      A unit value: the Frobenius \varphi _{j_0} of s lies in V, so \varphi _{j_0} = \operatorname{res}(g) for some g \in \operatorname{Gal}(\Omega /E) with cycCharMod \Omega (\ell ^r) g = 1; then cycCharMod \Omega (\ell ^r) g^{-1} = 1 and z(g^{-1}) = n_{\pi (\operatorname{res} g)} = n_{\pi (\varphi _{j_0})} = n_{j_0} (\alpha ), a unit (\beta ).

      Usesstep 27, step 31, step 32