grh-compacta Lean artifact read back into mathematics

Structured proof · Unit 138

lemma exists_isPrimeTriangle

What it saysFor a prime \ell (ThePrime \ell), a CM number field E that is stably unramified and embedded in \Omega (Field E, UnramCMField E), natural numbers t, N, y, h with N \ne 0 (NeZero N), an element \gamma \in \operatorname{Gal}(\Omega /E) and a set W of Frobenius data of E, suppose: (hE) the image of E in \Omega lies in the cyclotomic field cycloField N = \mathbb{Q}(\zeta _N); (hN) N + t < y; (hh) for every natural number a with 0 < a < t, (cycChar \Omega \ell \gamma)^a - 1 divides \ell ^h in \mathbb{Z}_\ell (cycChar \Omega \ell is the \ell-adic cyclotomic character of \operatorname{Gal}(\Omega /E), with values in \mathbb{Z}_\ell ^\times); (hy) \ell \le y^{2} or h = 0; (hf) numInfPlaces E \ge 4 (E has at least four infinite places); (hW) for every \nu \in \mathbb{N} and every g \in \operatorname{Gal}(\Omega /E) there is \delta \in \operatorname{Gal}(\Omega /E) with cycChar \Omega \ell \delta = 1 such that W \in mostFrobeniiAt E (\delta ^{\ell ^\nu }\cdot g), i.e. W belongs to the filter mostFrobenii E ⊓ comap (x \mapsto x.frob) (\mathcal{N}(\delta ^{\ell ^\nu }\cdot g)) on Frobenius data (a set belongs to mostFrobenii E when every nonempty open subset of \operatorname{Gal}(\Omega /E) contains a nonempty open set U such that, for all but finitely many places w of E of prime norm, every Frobenius datum (w, A, s) with s \in U lies in it). Then there are a type J, a Fintype structure and a linear order on J, and a monotone map \operatorname{ty} : J \to \{e \in \operatorname{Fin} t : 0 < e\}, such that for every \nu > 0 there are Taylor–Wiles places Q : TaylorWilesPlaces E J (\ell ^\nu ) — Frobenius data x_j = Q.frobData j (j \in J), each consisting of a finite place w_j = Q.w j of E of prime norm q_j, a place A_j of \Omega over w_j and a geometric Frobenius x_j.frob at A_j, such that j \mapsto w_j is injective and \overline{w}_i \ne w_j for all i, j (IsConjApart (j \mapsto w_j)), and \ell ^\nu divides q_j - 1 for every j — with (1) IsPrimeTriangle \nu Q.w \tau \varphi \gamma ^{-1} t \operatorname{ty} (y\cdot h) (y^{22}\cdot h), where \tau _j is the chosen tame generator at A_j (x_j.isPlaceOver.tameGenerator) and \varphi _j = x_j.frob, and (2) x_j \in W for every j \in J. Unfolded, (1) says: (isNewPlaces) IsNewPlaces \nu Q.w \tau \varphi: for every j, w_j is not above \ell , \varphi _j acts trivially on the \ell ^\nu-th roots of unity (cycCharMod \Omega (\ell ^\nu ) \varphi _j = 1), and \tau _j is the chosen tame generator at some place of \Omega over w_j; (detect) there is a finite set s \subseteq \operatorname{Gal}(\Omega /E) with (|J| + |s|)\cdot (y\cdot h) \le y^{22}\cdot h such that for every coefficient ring O (CoeffRing \ell) and every e \in \mathbb{N}, every cocycle z \in selmerModule (tateTwist \ell E O e) (placesDividing E \ell) \varnothing (QuotSpan (\ell ^\nu )) (a locally constant cocycle \operatorname{Gal}(\Omega /E) \to O/\ell ^\nu for the character g \mapsto cycInv \ell E O g^e, unramified outside the places above \ell) that vanishes on s is zero; (prod_dvd) for every e \in \operatorname{Fin} t, \prod _{k \in \operatorname{Fin} t, k \ne e}((cycChar \Omega \ell (\gamma ^{-1})^{-1})^e - (cycChar \Omega \ell (\gamma ^{-1})^{-1})^k), that is \prod _{k \ne e}((cycChar \Omega \ell \gamma)^e - (cycChar \Omega \ell \gamma)^k), divides \ell ^{y\cdot h} in \mathbb{Z}_\ell; (step) for every O, every j \in J and every z \in evenClasses O (range Q.w) \nu (\operatorname{ty} j) such that for all i < j, z(\tau _i) = 0 and (\operatorname{ty} i = \operatorname{ty} j \Rightarrow z(\varphi _i) = 0): \ell ^{y\cdot h}\cdot z(\tau _j) = 0; (coboundary) for every O and every e \in \{e \in \operatorname{Fin} t : 0 < e\}, writing d(g) = cycInv \ell E O g^e - 1: 2^{2}\cdot d(\gamma ^{-1})^{2} divides \ell ^{y\cdot h} in O, and every z \in evenClasses O \varnothing \nu e with z(\varphi _j) = 0 for all j with \operatorname{ty} j = e satisfies d(\gamma ^{-1})\cdot (z + z)(g) = d(g)\cdot (z + z)(\gamma ^{-1}) for all g \in \operatorname{Gal}(\Omega /E). Here evenClasses O S \nu e is the set of the cocycles c \in selmerModule (tateTwist \ell E O e) (placesDividing E \ell \cup S \cup \overline{S}) \varnothing (QuotSpan (\ell ^\nu )) that are even (c(g^c) = c(g) for all g, g^c the conjugate by complex conjugation) and vanish on shaLocalSet \ell E 1 (the elements of the decomposition groups above \ell with trivial cyclotomic character).
The argument in briefLet p be a finite set of points detecting the cocycles unramified outside \ell (|p| \le y^{20}), J the pairs (e, i) of a twist 0 < e < t and a point i \in p in lexicographic order, \operatorname{ty} the first projection. For \nu > 0 a Frobenius datum x_j, a reciprocity law z_j (IsLaw) and its exceptional set T_j are chosen by well-founded recursion on J. At j = (e, i_0): a new law z_j of twist e (exists_isLaw) vanishes at points realising a basis of the values of the earlier laws of the same twist and is a unit at a point w_0; a point u with trivial cyclotomic character \bmod \ell ^\nu kills every earlier law, the laws of other twists by a factor m^d - m^a = 0, and makes z_j(u) a unit times \prod _{a\ne e}(m^e - m^a), m \equiv cycChar \Omega \ell \gamma \bmod \ell ^\nu; a Frobenius in W near \delta ^{\ell ^\nu }\cdot g(i_0)\cdot g(i_0)^c\cdot u\cdot (u^c)^{-1} (g(i) = i^{-1}\gamma i\gamma ^{-1}), off the earlier primes and exceptional sets, then has z_j(\operatorname{frob}) = 2\cdot z_j(u), kills the earlier laws and ties every even class c of twist e: (c + c)(g(i_0)) = c(\operatorname{frob}). The reciprocity laws give the step clause of IsPrimeTriangle, |p| \le y^{20} its cost, the divisibility h2 its constants, and Sah's lemma at the points of p, with the detection by p, the coboundary identity.

63 steps, 55 of them leaves · New/Selmer/TrianglePrimes.lean, lines 24–123 · in the notes: Theorem D, p. 4 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. 1setupline 31

    By exists_detecting_points_cocycles (E \subseteq \mathbb{Q}(\zeta _N) by hE): there is a finite set p \subseteq \operatorname{Gal}(\Omega /E) with (hq) |p| \le y^{\prime 20} for every natural number y' with N \le y' and \ell \le y^{\prime 2}, and (R) for every commutative ring O with PadicIntegerRing O \ell and all n, e \in \mathbb{N}, every cocycle z \in selmerModule (tateTwist \ell E O e) (placesDividing E \ell) \varnothing (QuotSpan (\ell ^n)) (locally constant, for cycInv \ell E O^e, unramified outside the places above \ell) that vanishes on p is zero.

    Usesexists_detecting_points_cocycles unit 129

  2. 2setupline 32

    For i \in \operatorname{Gal}(\Omega /E) let g(i) := (\gamma ^{-1}\cdot i)^{-1}\cdot (i\cdot \gamma ^{-1}) = i^{-1}\cdot \gamma \cdot i\cdot \gamma ^{-1}, a commutator (so every homomorphism to an abelian group is trivial on it).

  3. 3fact4 steps insidelines 33–38

    hD: for every a \in \operatorname{Fin} t, (\ell ^h)^{3}\cdot \prod _{k \in \operatorname{Fin} t, k \ne a}((cycChar \Omega \ell \gamma)^a - (cycChar \Omega \ell \gamma)^k) divides \ell ^{y\cdot h} in \mathbb{Z}_\ell.

    Lean states(ℓ ^ h) ^ 3 * ∏ k ∈ {a}ᶜ, ((cycChar Ω ℓ γ ^ a.1).1 - (cycChar Ω ℓ γ ^ k.1).1) ∣ ℓ ^ (y * h)

    1. 3.1reductionline 35

      It suffices that each factor (cycChar \Omega \ell \gamma)^a - (cycChar \Omega \ell \gamma)^k with k \ne a divides \ell ^h (then the product divides \prod _{k \ne a} \ell ^h) and that (\ell ^h)^{3}\cdot \prod _{k \ne a} \ell ^h divides (\ell ^h)^y, which is \ell ^{y\cdot h}.

      Usesprod_dvd_prod_of_dvd, pow_mul'

    2. 3.2computationline 36

      (\ell ^h)^{3}\cdot (\ell ^h)^{t-1} = (\ell ^h)^{t+2} divides (\ell ^h)^y, since \{a\}^{c} has t - 1 elements and t + 2 \le y (N + t < y with N \ge 1).

      UsesFinset.card_compl, pow_dvd_pow

    3. 3.3reductionline 37

      For the factor at k \ne a one may assume k < a: if a < k the factor is the negative of the factor with a and k exchanged, and the negative of a divisor of \ell ^h divides \ell ^h.

    4. 3.4deductionline 38

      For k < a: (cycChar \Omega \ell \gamma)^a - (cycChar \Omega \ell \gamma)^k = ((cycChar \Omega \ell \gamma)^{a-k} - 1)\cdot(cycChar \Omega \ell \gamma)^k, the second factor is a unit of \mathbb{Z}_\ell, and (cycChar \Omega \ell \gamma)^{a-k} - 1 divides \ell ^h by hh, as 0 < a - k < t.

      Usespow_sub_mul_pow, Units.mul_right_dvd

  4. h2: for every a \in \operatorname{Fin} t with 0 < a, 2^{2}\cdot((cycChar \Omega \ell \gamma)^a - 1)^{2}\cdot \prod _{k \ne a}((cycChar \Omega \ell \gamma)^a - (cycChar \Omega \ell \gamma)^k) divides \ell ^{y\cdot h} in \mathbb{Z}_\ell: by hh at a, ((cycChar \Omega \ell \gamma)^a - 1)^{3} divides (\ell ^h)^{3}; as 2^{2} divides cycChar \Omega \ell (\gamma ^a) - 1 = (cycChar \Omega \ell \gamma)^a - 1 (four_dvd_cycChar_sub_one), 2^{2}\cdot((cycChar \Omega \ell \gamma)^a - 1)^{2} divides ((cycChar \Omega \ell \gamma)^a - 1)^{3}; so the product divides the left side of hD at a, hence \ell ^{y\cdot h}.

    Usesstep 3, four_dvd_cycChar_sub_one unit 138, dvd_trans, map_pow

  5. 5setupline 41

    Choose a linear order on the finite set p whose strict order is well-founded, and note that Frobenius data of E exist (the filter mostFrobeniiAt E 1 is proper, by an instance of the artifact at \operatorname{Lib}/ClassField/Chebotarev/FrobeniusFilter.lean:82).

    UsesmostFrobeniiAt unit 3, exists_wellFoundedLT, Filter.nonempty_of_neBot

  6. 6setupline 42

    Let J := \{e \in \operatorname{Fin} t : 0 < e\} \times _l p: the pairs j = (e, i) of a twist 0 < e < t and a point i \in p, ordered lexicographically (a finite, linearly ordered, well-founded set).

  7. 7setupline 43

    Take this J with its Fintype structure and linear order, and \operatorname{ty} : J \to \{e \in \operatorname{Fin} t : 0 < e\} the first projection, which is monotone for the lexicographic order; it remains to construct, for every \nu > 0 (hypothesis hν), the Taylor–Wiles places Q.

    UsesProd.Lex.monotone_fst

  8. Let \kappa := cycCharMod \Omega (\ell ^\nu ) on \operatorname{Gal}(\Omega /E) (the action on the \ell ^\nu-th roots of unity, with values in (\mathbb{Z}/\ell ^\nu )^\times) and let m \in \mathbb{Z} be the representative of least absolute value of \kappa (\gamma ) \in \mathbb{Z}/\ell ^\nu, so that m \equiv cycChar \Omega \ell \gamma \bmod \ell ^\nu.

    UsescycCharMod unit 92, ZMod.valMinAbs

  9. Let H be the set of the integer-valued functions v on the pairs (d, z) (d \in \mathbb{N}, z : \operatorname{Gal}(\Omega /E) \to \mathbb{Z}/\ell ^\nu ) for which some y \in \operatorname{Gal}(\Omega /E) with \kappa (y) = 1 satisfies z(y) = v(d, z) \bmod \ell ^\nu for every law z of twist d, i.e. whenever IsLaw \nu d \Phi T z for some \Phi and T (the values of all laws at the points fixing \mu _{\ell ^\nu }). It is an additive subgroup, taken as a \mathbb{Z}-submodule: it contains (d, z) \mapsto z(1) lifted to \mathbb{Z} (realised at y = 1), and if v, v' are realised at a, b then v - v' is realised at a\cdot b^{-1}, because a law satisfies z(a) = z(a\cdot b^{-1}) + z(b) (IsLaw.map_conj_mul with g = 1).

    UsesIsLaw unit 138, AddSubgroup.ofSub

  10. 10setupline 50

    For j \in J let I(j) be the set of the i < j with the same twist as j (the first components agree).

  11. Define f(j) = (x_j, T_j, z_j) for j \in J — a Frobenius datum, a finite set of places of the maximal real subfield E^{+}, and a function z_j : \operatorname{Gal}(\Omega /E) \to \mathbb{Z}/\ell ^\nu — by well-founded recursion on J, as Hilbert's choice (\varepsilon ) of a triple (x, T, z) with: (1) IsSplitPlace \nu x; (2) IsLaw \nu e \Phi T z, e the twist of j and \Phi = {x_i.frob : i \in I(j)}; (3) 2\cdot z(x.frob) divides \ell ^{y\cdot h} in \mathbb{Z}/\ell ^\nu; (4) for every coefficient ring O and every c \in evenClasses O \varnothing \nu e, (c + c)(g(i_0)) = c(x.frob), where j = (e, i_0); (5) for every i < j: primeBelowPlus x_i.w \ne primeBelowPlus x.w, primeBelowPlus x.w \notin T_i and z_i(x.frob) = 0; (6) primeBelowPlus x.w \notin T; (7) x \in W. F j is the unfolding equation of this recursion at j.

    UsesIsSplitPlace unit 138, IsLaw unit 138, evenClasses unit 138, primeBelowPlus unit 138, WellFoundedLT.fix_eq, Classical.epsilon

  12. 12setupline 57

    Call f this function on J; F j says that f(j) is Hilbert's choice for properties (1)–(7) at j, formed with the values f(i), i < j.

  13. 13induction14 steps insidelines 58–100

    By well-founded induction on j \in J, f(j) satisfies (1)–(7): Hilbert's choice satisfies a property as soon as some triple does (epsilon_spec), and the induction hypothesis p says that every f(i), i < j, satisfies its properties. The existence of such a triple at j = (e, i_0) is the following construction.

    UsesWellFoundedLT.fix, Classical.epsilon_spec

    1. 13.1setupline 59

      From the induction hypothesis, for every i < j: (h_1) IsSplitPlace \nu x_i; (hz) IsLaw \nu e_i \Phi _i T_i z_i, e_i the twist of i and \Phi _i = {x_{i'}.\operatorname{frob} : i' \in I(i)}; (h_3) for every i' < i: primeBelowPlus x_{i'}.w \ne primeBelowPlus x_i.w, primeBelowPlus x_i.w \notin T_{i'} and z_{i'}(x_i.frob) = 0.

    2. 13.2setupline 61

      Let B be a \mathbb{Z}-basis of the image of H under restriction to the pairs (e, z_i), i \in I(j): a submodule of \mathbb{Z}^{I(j)}, free of finite rank k.

      UsesModule.finBasis

    3. 13.3setupline 62

      For each basis index b choose v_b \in H whose restriction is B_b (hv, hb), and a point y_b with \kappa (y_b) = 1 realising v_b: z(y_b) = v_b(d, z) \bmod \ell ^\nu for every law z of every twist d (hy, k).

    4. By exists_isLaw (twist e, 0 < \nu, at least four infinite places, the split places x_i, i \in I(j) (h_1), whose primes below E^{+} are distinct (h_3), and the k \le |I(j)| points y_b): there are z_j : \operatorname{Gal}(\Omega /E) \to \mathbb{Z}/\ell ^\nu and a finite set T_0 with IsLaw \nu e \Phi _j T_0 z_j (r), \Phi _j = {x_i.frob : i \in I(j)}, z_j(y_b) = 0 for every b (hk), and a point w_0 (named w in the source) with \kappa (w_0) = 1 (hw) at which z_j(w_0) is a unit (U).

      Usesexists_isLaw unit 138, IsSplitPlace unit 138, primeBelowPlus unit 138, step 13.1, step 13.3, Submodule.finrank_le

    5. 13.5factline 65

      n: the function (d, z) \mapsto z(w_0), lifted to \mathbb{Z}, lies in H, realised at w_0.

      Lean states(·.2 w |>.cast) ∈ H

      Usesstep 13.4

    6. 13.6factline 66

      The restriction of n to the pairs (e, z_i), i \in I(j), lies in the image of H, so it is an integer combination \sum _b c_b\cdot B_b of the basis (A).

      Usesstep 13.2, step 13.5, Basis.mem_submodule_iff'

    7. There is a point u with \kappa (u) = 1 (hu) such that every law z of every twist d satisfies z(u) = P_d\cdot (\sum _b c_b\cdot v_b(d, z) - z(w_0)) \bmod \ell ^\nu, where P_d = \prod _{a \in \operatorname{Fin} t, a \ne e}(m^d - m^a)\cdot m (L). Indeed \sum _b c_b\cdot v_b - n lies in H, and the property 'multiplication by \varphi maps H into H' holds for 1, is closed under products (Finset.prod_induction) and holds for \varphi _a = (d, z) \mapsto (m^d - m^a)\cdot m: if v \in H is realised at b and -m^{a+1}\cdot v \in H (zsmul_mem) at a', then \varphi _a\cdot v is realised at \gamma \cdot b\cdot \gamma ^{-1}\cdot a', since a law of twist d satisfies z(\gamma \cdot b\cdot \gamma ^{-1}\cdot a') = \kappa (\gamma )^{d+1}\cdot z(b) + z(a') (IsLaw.map_conj_mul) and \kappa (\gamma ) \equiv m.

      UsesIsLaw unit 138, step 13.3, step 13.5, step 13.6, Finset.prod_induction, zsmul_mem

    8. h_4: every earlier law vanishes at u: z_i(u) = 0 for i < j. If i has the twist e of j, \sum _b c_b\cdot v_b(e, z_i) = \sum _b c_b\cdot B_b(i) = z_i(w_0) (hb and A), so the bracket in L is 0; otherwise the twist of i is some a \ne e, and the factor (m^a - m^a)\cdot m of P_a is 0.

      Lean states(f i).2.2 u = 0

      Usesstep 13.7, step 13.6, step 13.3, step 13.1, Finset.prod_eq_zero

    9. 13.9setupline 74

      By hW there is \delta with cycChar \Omega \ell \delta = 1 (hδ) and W \in mostFrobeniiAt E (\delta ^{\ell ^\nu }\cdot \sigma ) (V), at the element \sigma = g(i_0)\cdot g(i_0)^c\cdot u\cdot (u^c)^{-1} that the use below fixes (^c the conjugation by complex conjugation, conjGal). Put \sigma _0 := \delta ^{\ell ^\nu }\cdot \sigma.

    10. 13.10fact3 steps insidelines 76–81

      Y: for every f : \operatorname{Gal}(\Omega /E) \to \mathbb{Z}/\ell ^\nu that is additive on \ker \kappa (f(a\cdot b) = f(a) + f(b) when \kappa (a) = \kappa (b) = 1) and every n \in \mathbb{N}: f(\delta ^n\cdot (g(i_0)\cdot g(i_0)^c\cdot (u/u^c))) = n\cdot f(\delta ) + (f(g(i_0)) + f(g(i_0)^c) + (f(u) - f(u^c))).

      Lean statesf (δ ^ n * (g j.2 * conjGal (g j.2) * (u / conjGal u))) = n • f δ + (f (g j.2) + f (conjGal (g j.2)) + (f u - f (conjGal u)))

      1. 13.10.1setupline 79

        Only the additivity of f, cycChar \Omega \ell \delta = 1 and \kappa (u) = 1 are needed.

      2. 13.10.2factline 80

        Additivity at u/u^c and u^c gives f(u) = f(u/u^c) + f(u^c) (both lie in \ker \kappa, as \kappa (u^c) = \kappa (u) = 1).

      3. 13.10.3inductionline 81

        Induction on n: \delta, the commutator g(i_0), g(i_0)^c and u/u^c lie in \ker \kappa (\kappa (\delta ) = 1 because \kappa is cycChar \Omega \ell reduced \bmod \ell ^\nu, cycCharMod_prime_pow_eq), so f of the product is the sum of the values, and f(\delta ^{n+1}) = f(\delta ^n) + f(\delta ).

        UsescycCharMod_prime_pow_eq unit 92

    11. 13.11factlines 82–84

      R: for every law z (IsLaw \nu e' \Phi T z, any twist e'), z(s) = 2\cdot z(u) for all s near \sigma _0. By Y (a law is additive on \ker \kappa: IsLaw.map_conj_mul with g = 1) with n = \ell ^\nu , z(\sigma _0) = \ell ^\nu \cdot z(\delta ) + z(g(i_0)) + z(g(i_0)^c) + z(u) - z(u^c) = 2\cdot z(u), since \ell ^\nu = 0 in \mathbb{Z}/\ell ^\nu and z(b^c) = -z(b) when \kappa (b) = 1 (IsLaw.odd); and z is locally constant (IsLaw.isLocallyConstant).

      Usesstep 13.10, IsLaw unit 138, IsLocallyConstant.eventually_eq

    12. 13.12witness6 steps insidelines 85–97

      A Frobenius datum x is taken in W \cap X, X a set of the filter mostFrobeniiAt E \sigma _0 given by conditions on the place x.w and on x.frob near \sigma _0; the filter is proper, so W \cap X is nonempty. The triple (x, T_0, z_j) then has properties (1)–(7).

      UsesmostFrobeniiAt unit 3, Filter.nonempty_of_mem, Filter.inter_mem, Filter.inter_mem_inf

      1. 13.12.1factlines 86–88

        Condition on the place, for all but finitely many places w of E: w is not above \ell (eventually_notMem_star_notMem), and the place of E^{+} below w lies outside the finite set T_0 \cup \bigcup _{i\in J}({primeBelowPlus x_i.w} \cup T_i) (a place of E^{+} has only finitely many places of E above it: tendsto_place_comap_cofinite); the Frobenius data at such places form a set of mostFrobenii E (eventually_mostFrobenii).

        Useseventually_mostFrobenii unit 3, eventually_notMem_star_notMem unit 80, tendsto_place_comap_cofinite unit 123, primeBelowPlus unit 138

      2. 13.12.2fact3 steps insidelines 88–93

        Conditions on x.frob: they hold on a neighbourhood of \sigma _0, so the Frobenius data with \operatorname{frob} in it form a set of comap (x \mapsto x.frob) (\mathcal{N} \sigma _0).

        1. 13.12.2.1factline 88

          Near \sigma _0: z_j(s) = 2\cdot z_j(u) (R for the new law), and z_i(s) = 2\cdot z_i(u) for each of the finitely many i < j (R for the earlier laws).

          Usesstep 13.11, step 13.4, step 13.1, Filter.eventually_all

        2. 13.12.2.2factlines 89–91

          Near \sigma _0, every continuous cocycle of the finite discrete module \mathbb{Z}/\ell ^\nu on which g acts by \kappa (g)^{-e} (charRep (\mathbb{Z}/\ell ^\nu ) (\kappa ^e)^{-1}, e the twist of j; the action is continuous as \ker \kappa is open) that vanishes on the inertia above the places not above \ell is constant: there are finitely many such cocycles (selmerZ1.finite_unramified_cocycles), and each is locally constant, being continuous into a discrete module.

          UsesselmerZ1.finite_unramified_cocycles unit 94, charRep unit 95, Continuous.of_isOpen_ker unit 29, continuous_discrete_rng, IsOpen.mem_nhds

        3. 13.12.2.3factlines 92–93

          Near \sigma _0, \kappa (s) = 1: \ker \kappa is open (isOpen_ker_cycCharMod) and contains \sigma _0, since \kappa (\delta ) = 1, \kappa is trivial on the commutator g(i_0) and on its conjugate, and \kappa (u/u^c) = 1. The neighbourhood is the intersection of these conditions.

          UsesisOpen_ker_cycCharMod unit 92, cycCharMod_prime_pow_eq unit 92

      3. 13.12.3witnesslines 93–94

        Take such an x: x \in W; x.w not above \ell; the place of E^{+} below x.w outside the finite set; z_j(x.frob) = 2\cdot z_j(u); z_i(x.frob) = 2\cdot z_i(u) for i < j; every cocycle of 13.12.2.2 takes the same value at x.frob as at \sigma _0 (d); \kappa(x.frob) = 1. The triple is (x, T_0, z_j): (1) IsSplitPlace \nu x (\ell \notin x.w and \kappa(x.frob) = 1), and (2) IsLaw \nu e \Phi _j T_0 z_j (r).

        UsesIsSplitPlace unit 138, step 13.4

      4. 13.12.4deductionlines 94–96

        (3) 2\cdot z_j(x.frob) divides \ell ^{y\cdot h} in \mathbb{Z}/\ell ^\nu: 2\cdot z_j(x.frob) = 4\cdot z_j(u), and z_j(u) = P_e\cdot (\sum _b c_b\cdot z_j(y_b) - z_j(w_0)) = -P_e\cdot z_j(w_0) (L, with v_b(e, z_j) = z_j(y_b) = 0); z_j(w_0) and m are units, so it suffices that 4\cdot \prod _{a\ne e}(m^e - m^a) divides \ell ^{y\cdot h} in \mathbb{Z}/\ell ^\nu. This is the image under the reduction \mathbb{Z}_\ell \to \mathbb{Z}/\ell ^\nu (PadicInt.toZModPow \nu, which sends cycChar \Omega \ell \gamma to \kappa (\gamma ) \equiv m) of 4\cdot \prod _{a\ne e}((cycChar \Omega \ell \gamma)^e - (cycChar \Omega \ell \gamma)^a), a divisor of the left side of h2 at e, hence of \ell ^{y\cdot h}.

        Usesstep 13.7, step 13.3, step 13.4, step 4, cycCharMod_prime_pow_eq unit 92, map_dvd, PadicInt.toZModPow

      5. 13.12.5reductionlines 96–97

        (4) For every O and c \in evenClasses O \varnothing \nu e: (c + c)(g(i_0)) - c(x.frob) = 0. By eq_zero_of_mem_evenClasses it suffices that every additive map u' : O/\ell ^\nu \to \mathbb{Z}/\ell ^\nu for which u'\circ c is a continuous cocycle for \kappa ^{-e} kills this element; such a u'\circ c is one of the finitely many cocycles of 13.12.2.2 (it vanishes on the inertia outside \ell, as c does), so u'(c(x.frob)) = u'(c(\sigma _0)). The two remaining identities are steps 13.13 and 13.14.

        Useseq_zero_of_mem_evenClasses unit 138, step 13.12.3

      6. 13.12.6deductionline 97

        (5)–(7): for every i < j, primeBelowPlus x_i.w \ne primeBelowPlus x.w and primeBelowPlus x.w \notin T_i (the condition on the place), and z_i(x.frob) = 2\cdot z_i(u) = 0 (h_4); primeBelowPlus x.w \notin T_0; and x \in W.

        Usesstep 13.8, step 13.12.3

    13. 13.13deductionline 98

      In the remaining goal of (4): u'((c + c)(g(i_0)) - c(x.frob)) = u'((c + c)(g(i_0))) - u'(c(\sigma _0)), and by Y for the function u'\circ c (additive on \ker \kappa, where \kappa ^{-e} acts trivially): u'(c(\sigma _0)) = \ell ^\nu \cdot u'(c(\delta )) + u'(c(g(i_0))) + u'(c(g(i_0)^c)) + u'(c(u)) - u'(c(u^c)).

      Usesstep 13.10

    14. 13.14computationlines 99–100

      This difference vanishes and the side conditions hold: c is even (c(g^c) = c(g)), so the right side is \ell ^\nu \cdot u'(c(\delta )) + 2\cdot u'(c(g(i_0))) = u'((c + c)(g(i_0))) as \ell ^\nu = 0 in \mathbb{Z}/\ell ^\nu; u'\circ c is additive on \ker \kappa by the cocycle relation of c; and u'\circ c vanishes on the inertia above the places not above \ell, as c does (c \in selmerModule, mem_selmerModule_iff).

      Usesmem_selmerModule_iff unit 94, charRep unit 95, CharP.cast_eq_zero

  14. 14setupline 101

    Hence for every j \in J, with f(j) = (x_j, T_j, z_j) and j = (e_j, i_j): (a) IsSplitPlace \nu x_j; (d) IsLaw \nu e_j \Phi _j T_j z_j; (k) 2\cdot z_j(x_j.frob) divides \ell ^{y\cdot h} in \mathbb{Z}/\ell ^\nu; (l) (c + c)(g(i_j)) = c(x_j.frob) for every O and c \in evenClasses O \varnothing \nu e_j; (c) for i < j: primeBelowPlus x_i.w \ne primeBelowPlus x_j.w, primeBelowPlus x_j.w \notin T_i and z_i(x_j.frob) = 0; (e) primeBelowPlus x_j.w \notin T_j; (s) x_j \in W.

    Usesstep 13

  15. 15factline 102

    inj: j \mapsto primeBelowPlus x_j.w is injective (the values differ for i < j by (c)).

    Lean statesInjective (primeBelowPlus ∘ _)

    Usesstep 14, primeBelowPlus unit 138

  16. 16factline 103

    hw: IsNewPlaces \nu (j \mapsto x_j.w) (j \mapsto \tau _j) (j \mapsto x_j.frob), \tau _j the chosen tame generator at the place A_j of x_j: each x_j.w is not above \ell and \kappa(x_j.frob) = 1 (a), and \tau _j is by definition the tame generator at a place over x_j.w.

    Lean statesIsNewPlaces ν _ (f · |>.1.isPlaceOver.tameGenerator) _

    Usesstep 14, IsNewPlaces unit 138

  17. 17assembly8 steps insidelines 104–116

    The Taylor–Wiles places Q have frobData j = x_j; their two conditions, the five clauses of IsPrimeTriangle \nu Q.w \tau \varphi \gamma ^{-1} t \operatorname{ty} (y\cdot h) (y^{22}\cdot h) and x_j \in W follow.

    UsesTaylorWilesPlaces unit 102, IsPrimeTriangle unit 138

    1. IsConjApart (j \mapsto x_j.w): j \mapsto x_j.w is injective (from inj), and x_i.w̄ \ne x_j.w for all i, j: a place of prime norm is split (isSplit_of_q_prime: x_j.w̄ \ne x_j.w), and conjugate places have the same prime below E^{+} (primeBelowPlus_star), so x_i.w̄ = x_j.w would force i = j by inj.

      Usesstep 15, isSplit_of_q_prime unit 57, primeBelowPlus_star unit 138, IsConjApart unit 122, Function.Injective.of_comp

    2. \ell ^\nu divides q_j - 1, q_j the norm of x_j.w: x_j.frob⁻¹ is a Frobenius for q_j at the place A_j, at which \ell ^\nu is a unit (x_j.w is not above \ell), and it fixes the \ell ^\nu-th roots of unity (\kappa(x_j.frob) = 1), so q_j \equiv 1 \bmod \ell ^\nu (IsFrob.mem_ker_cycCharMod_iff).

      Usesstep 14, IsFrob.mem_ker_cycCharMod_iff unit 92, inv_mem

    3. 17.3factline 107

      isNewPlaces: hw.

      Usesstep 16

    4. detect, with s = p: (|J| + |p|)\cdot (y\cdot h) \le y^{22}\cdot h — if h = 0 both sides vanish; if \ell \le y^{2}, then |p| \le y^{20} (hq at y, as N \le y) and |J| \le t\cdot |p|, so (|J| + |p|)\cdot y\cdot h \le (t + 1)\cdot y^{20}\cdot y\cdot h \le y^{22}\cdot h because t + 1 \le y; and every Selmer cocycle of O(-e) modulo \ell ^\nu unramified outside \ell that vanishes on p is zero (R, a coefficient ring being a PadicIntegerRing).

      Usesstep 1, Fintype.card_subtype_le

    5. 17.5factline 109

      prod_dvd: for e \in \operatorname{Fin} t, \prod _{k\ne e}((cycChar \Omega \ell (\gamma ^{-1})^{-1})^e - (cycChar \Omega \ell (\gamma ^{-1})^{-1})^k) = \prod _{k\ne e}((cycChar \Omega \ell \gamma)^e - (cycChar \Omega \ell \gamma)^k) divides \ell ^{y\cdot h}, as it divides the left side of hD at e.

      Usesstep 3, dvd_of_mul_left_dvd

    6. 17.6deduction3 steps insidelines 109–114

      step: for every O, j \in J and z \in evenClasses O (range (i \mapsto x_i.w)) \nu (\operatorname{ty} j) with z(\tau _i) = 0 and (\operatorname{ty} i = \operatorname{ty} j \Rightarrow z(x_i.frob) = 0) for every i < j (H): \ell ^{y\cdot h}\cdot z(\tau _j) = 0, by the reciprocity law of z_j.

      1. 17.6.1deductionlines 109–111

        Apply IsLaw.reciprocity of z_j (d at j) to the family (x_i)_{i \ge j}, indexed by the finite set of the i \ge j, at its least element j: the primes of E^{+} below the x_i.w are distinct (inj); each x_i is a split place with primeBelowPlus x_i.w \notin T_j ((a), with (e) for i = j and (c) for i > j); z_j(x_i.frob) = 0 for i > j ((c) at i).

        UsesIsLaw unit 138, step 14, step 15, Set.InjOn.injective

      2. 17.6.2factlines 111–114

        z \in evenClasses O {x_i.w : i \ge j} \nu (\operatorname{ty} j): z is unramified at the places x_i.w, i < j, and at their conjugates (IsNewPlaces.mem_selmerModule_of_tame_eq_zero for the new places (x_i.w, \tau _i, x_i.frob), i < j), because it vanishes at \tau _i (H) and at (\tau _i^c)^{-1}: z((\tau _i^c)^{-1}) = -(the action of (\tau _i^c)^{-1})\cdot z(\tau _i^c) (cocycle_apply_inv) and z(\tau _i^c) = z(\tau _i) = 0 as z is even; the remaining conditions of evenClasses are those of z.

        UsesIsNewPlaces.mem_selmerModule_of_tame_eq_zero unit 138, cocycle_apply_inv unit 95, mem_selmerModule_iff unit 94, evenClasses unit 138, step 16

      3. 17.6.3deductionline 114

        z vanishes on \Phi _j = {x_i.frob : i \in I(j)} (H at the i < j with \operatorname{ty} i = \operatorname{ty} j), and 2\cdot z_j(x_j.frob) divides \ell ^{y\cdot h} (k); so the reciprocity law gives \ell ^{y\cdot h}\cdot z(\tau _j) = 0, \tau _j the tame generator at A_j.

        Usesstep 14

    7. coboundary at O and e: with d(g) = cycInv \ell E O g^e - 1, d(\gamma ^{-1}) is (cycChar \Omega \ell \gamma)^e - 1 mapped to O, and 2^{2}\cdot d(\gamma ^{-1})^{2} divides \ell ^{y\cdot h} in O, being the image under \mathbb{Z}_\ell \to O of a divisor of the left side of h2 at e; the identity for the even classes is proved in steps 18 and 19.

      Usesstep 4, cycInv unit 92, map_dvd

    8. 17.8factline 116

      x_j \in W for every j (s).

      Usesstep 14

  18. Let z \in evenClasses O \varnothing \nu e with z(x_j.frob) = 0 whenever \operatorname{ty} j = e (K). Then z + z lies in selmerModule (tateTwist \ell E O e) (placesDividing E \ell) \varnothing (QuotSpan (\ell ^\nu )), so: (m) (z + z)(g\cdot h') = (z + z)(g) + cycInv \ell E O g^e\cdot (z + z)(h') for all g, h'; (u) z + z vanishes on the inertia above the places not above \ell; (c) z + z is locally constant.

    Usesmem_selmerModule_iff unit 94, tateTwist unit 92

  19. 19deduction3 steps insidelines 119–123

    The function X(g) := d(\gamma ^{-1})\cdot (z + z)(g) - d(g)\cdot (z + z)(\gamma ^{-1}) vanishes, which is the identity to prove: by the detection property R of p it suffices that X lies in selmerModule (tateTwist \ell E O e) (placesDividing E \ell) \varnothing (QuotSpan (\ell ^\nu )) and vanishes on p.

    1. 19.1reductionlines 119–121

      X is locally constant: it is the function g \mapsto (z + z)(\gamma ^{-1}\cdot g) - (z + z)(g\cdot \gamma ^{-1}), the locally constant z + z composed with continuous translations; its other Selmer conditions are left to step 19.3.

      Usesstep 1, step 18, mem_selmerModule_iff unit 94, IsLocallyConstant.comp_continuous, congrFun

    2. 19.2deductionlines 121–122

      X vanishes on p: for i \in p and j = (e, i) \in J, (z + z)(g(i)) = z(x_j.frob) by (l), and this is 0 by K (\operatorname{ty} j = e); Sah's lemma for the cocycle z + z, whose scalars are cycInv \ell E O g^e, turns the vanishing at g(i) = (\gamma ^{-1}\cdot i)^{-1}\cdot (i\cdot \gamma ^{-1}) into d(\gamma ^{-1})\cdot (z + z)(i) = d(i)\cdot (z + z)(\gamma ^{-1}).

      Usessah unit 92, step 14, step 18

    3. 19.3computationlines 122–123

      The remaining conditions: X satisfies the cocycle relation for cycInv \ell E O^e (a multiple of the cocycle z + z minus the coboundary of (z + z)(\gamma ^{-1})); X vanishes on the inertia above the places not above \ell, where z + z vanishes and d = 0 because cycChar \Omega \ell is 1 there (cycChar_eq_one_of_mem_inertiaAbove); X obeys the empty set of relations; and X(g) = (z + z)(\gamma ^{-1}\cdot g) - (z + z)(g\cdot \gamma ^{-1}) by the cocycle relation (m).

      UsescycChar_eq_one_of_mem_inertiaAbove unit 92, tateTwist unit 92, cycInv unit 92, obeying unit 57, step 18