Choose a statement on the pages, or with the arrows above, to see its structured proof and its Lean text here.
Structure. Parameters P consist of natural numbers N_0(P) and d(P) with: (dvd_{N,0}) 18480 \mid N_0(P); (d_{\mathrm{prime}}) d(P) is prime; (d_{\mathrm{congr}}) N_0(P) \mid 2(d(P) + 1) and N_0(P) \nmid d(P) + 1, i.e. d(P) \equiv N_0(P)/2 - 1 \bmod N_0(P).
New/Data/Different.lean · the statement, line 23@[local grind] structure Parameters where
Definition. For a natural number s, towerDeg(s) = 3^{\lfloor \log _3 s\rfloor +5}\cdot 2^s, a natural number (Lean derives NeZero); with c = \lfloor \log _3 s\rfloor + 5 one has 81s < 3^c \le 243s for s \ge 1, and c = 5 for s = 0.
New/Data/Different.lean · line 41def _root_.towerDeg := 3 ^ (.log 3 s + 5) * 2 ^ s deriving NeZero
Definition (abbreviation). For parameters P and an exponent s, N_1(P, s) = N_0(P)\cdottowerDeg(s) = N_0(P)\cdot 3^c\cdot 2^s.
New/Data/Different.lean · line 44abbrev N₁ := P.N₀ * towerDeg s
Definition (abbreviation). For parameters P, K(P) = QuadField(d(P)) = \mathbb{Q}(i\cdot \sqrt{d(P)}), the imaginary quadratic field \mathbb{Q}(\sqrt{-d(P)}) as a subfield of \mathbb{C}.
New/Data/Different.lean · line 64abbrev K := QuadField P.d
Definition. For parameters P and an exponent s, M\omega (P, s) = (N_0(P)\cdot d(P))^{s+6}, a natural number (Lean derives NeZero). Only later, for admissible data and a chosen place w, is it the exact order of the residue character \omega _w, the M\omega-th power of a character of order M\omega ^{2} (New/Seesaw/IndexTypes.lean 67–79); the definition is just the number.
New/Data/Different.lean · line 68def Mω := (P.N₀ * P.d) ^ (s + 6) deriving NeZero
Instance. For parameters P: PrimeSevenModEight(d(P)), i.e. d(P) is a prime with d(P) \equiv 7 \bmod 8 (16 \mid 18480 \mid N_0(P) \mid 2(d(P) + 1), so 8 \mid d(P) + 1).
New/Data/Different.lean · the statement, line 36@[local grind! .] instance instHeegD : PrimeSevenModEight P.d :=
For parameters P: 64 < d(P) (indeed 18480 \le N_0(P) \le 2(d(P) + 1)).
New/Data/Different.lean · line 52lemma lt_d : 64 < P.d := by grind [→ dvd_trans]
For parameters P, a natural number p, an exponent s, hp : p is prime and h : p \mid N_1(P, s): p divides (d(P) + 1)/4 (floor division), the norm of c_0 = (1 + \sqrt{-d(P)})/2.
New/Data/Different.lean · the statement, line 47lemma dvd_norm_c₀ {s} (hp : p.Prime) (h : p ∣ P.N₁ s) : p ∣ (P.d + 1) / 4 := (hp.dvd_or_dvd
For parameters P, a natural number p, an exponent s, hp : p is prime and h : p \mid N_1(P, s): \chi _K(p) = (p/d(P)) = 1, where \chi _K = chiK(d(P)) is the Legendre symbol \bmod d(P); so p splits in K = \mathbb{Q}(\sqrt{-d(P)}).
New/Data/Different.lean · the statement, line 55lemma chiK_eq_one_of_dvd {s} (hp : p.Prime) (h : p ∣ P.N₁ s) : chiK P.d p = 1 := by
For parameters P, a natural number p with hp : p prime, and the premise \chi _K(p) \ne 1 (\chi _K = chiK(d(P))): 13 \le p. (A prime p < 13 divides 18480, hence N_1(P, 0), so \chi _K(p) = 1 by chiK_eq_one_of_dvd.)
New/Data/Different.lean · the statement, line 60lemma thirteen_le_of_chiK_ne_one (hp : p.Prime) : chiK P.d p ≠ 1 → 13 ≤ p := Not.imp_symm fun _ ↦
For parameters P and an exponent s (both implicit): N_1(P, s)\cdot d(P) divides M\omega (P, s) = (N_0(P)\cdot d(P))^{s+6} (3\cdot 2 \mid N_0(P) and 3^c\cdot 2^s with c = \lfloor \log _3 s\rfloor + 5 \le s + 5 divides 6^{s+5}).
New/Data/Different.lean · the statement, line 71lemma N₁_mul_d_dvd_M_omega {P s} : N₁ P s * P.d ∣ P.Mω s := by grw [mul_right_comm, towerDeg,
For parameters P and an exponent s: N_1(P, s) and d(P) are coprime (d(P) is prime and \chi _K(d(P)) = 0 \ne 1, so d(P) \nmid N_1(P, s) by chiK_eq_one_of_dvd).
New/Data/Different.lean · the statement, line 74lemma coprime_N₁_d : (P.N₁ s).Coprime P.d :=
For parameters P and an exponent s (both implicit): 2^{s+1} \mid N_1(P, s) (2 \mid N_0(P) and 2^s \mid towerDeg(s)).
New/Data/Different.lean · the statement, line 193lemma Parameters.two_pow_dvd_N₁ : 2 ^ (s + 1) ∣ P.N₁ s := by grind [Parameters, towerDeg,
For parameters P (implicit) and a natural number n: (d(P) \bmod N_0(P))^n \ne -1 in \mathbb{Z}/N_0(P).
New/Data/Different.lean · the statement, line 212lemma Parameters.pow_d_ne_neg_one n : (P.d : ZMod P.N₀) ^ n ≠ -1 := by
Definition. For parameters P and an exponent s, E(P, s) = CyclotomicField(N_1(P, s), K(P)): the field K(\zeta (P, s)) obtained from K by adjoining a primitive root of unity of order N_1(P, s) (Mathlib's CyclotomicField: by definition the splitting field over K of the N_1(P, s)-th cyclotomic polynomial \Phi _{N_1(P, s)}; by a separate Mathlib theorem it is also a splitting field of X^{N_1(P, s)} - 1); the roots adjoined have order N_1(P, s), while the degrees are [E(P, s) : K(P)] = \varphi (N_1(P, s)) = towerDeg(s)\cdot \varphi (N_0(P)) (\Phi _{N_1(P, s)} is irreducible over K(P), irreducible_cyclotomic) and [E(P, s) : \mathbb{Q}] = 2\varphi (N_1(P, s)); Lean derives Field, Algebra K and NumberField for it.
New/Data/Different.lean · line 79def E := CyclotomicField (P.N₁ s) P.K deriving Field, Algebra P.K, NumberField
Definition (abbreviation). For parameters P and an exponent s, \Phi (P, s) is the type of infinite places of E(P, s); it carries the group structure of \operatorname{Gal}(E/K) (galOfPlace).
New/Data/Different.lean · line 83protected abbrev Φ := InfinitePlace (P.E s)
Definition. For parameters P and an exponent s, \zeta (P, s) \in E(P, s) is a chosen primitive N_1(P, s)-th root of unity (Mathlib's IsCyclotomicExtension.zeta).
New/Data/Different.lean · line 142def ζ := zeta (P.N₁ s) P.K (P.E s)
Definition. For parameters P and an exponent s, bigOmega(P, s) = \exp(chowlaSelbergConst(d(P)))\cdot (2\pi /rd_E), rd_E = rootDiscr(E(P, s)) the root discriminant; i.e. \Omega = \exp (\gamma - \operatorname{Re} L'/L(1, \chi _K))\cdot 2\pi /rd_E.
New/Data/Different.lean · line 87def bigOmega := (chowlaSelbergConst P.d).exp * (2 * .pi / rootDiscr (P.E s))
For parameters P and an exponent s (both implicit): \zeta (P, s) is a primitive N_1(P, s)-th root of unity.
New/Data/Different.lean · the statement, line 180lemma Parameters.isPrimitiveRoot_zeta : IsPrimitiveRoot (P.ζ s) (P.N₁ s) :=
For parameters P and an exponent s: the N_1(P, s)-th cyclotomic polynomial is irreducible over K(P).
New/Data/Different.lean · the statement, line 92lemma irreducible_cyclotomic : Irreducible (cyclotomic (P.N₁ s) P.K) := let M := cycloField P.d
Definition. For parameters P and an exponent s (both implicit), toCycloField is a chosen \mathbb{Q}-algebra homomorphism E(P, s) \to cycloField(N_1(P, s)\cdot d(P)) = \mathbb{Q}(\zeta _{N_1(P, s)\cdot d(P)}): K embeds into \mathbb{Q}(\zeta _{N_1(P, s)\cdot d(P)}) because \zeta _{N_1(P, s)\cdot d(P)}^{N_1(P, s)} is a primitive d(P)-th root of unity and \mathbb{Q}(\zeta _d) contains \sqrt{-d(P)} (nonempty_algHom_of_isPrimitiveRoot), and the N_1(P, s)-th cyclotomic polynomial splits in \mathbb{Q}(\zeta _{N_1(P, s)\cdot d(P)}), so the splitting field E lifts (SplittingField.lift). Applied to an element y of E(P, s) it gives toCycloField(y).
New/Data/Different.lean · the statement, line 104def toCycloField {P s} : E P s →ₐ[ℚ] cycloField (P.N₁ s * P.d) :=
For parameters P, an exponent s, K(P)-algebra homomorphisms \varphi , \psi : E(P, s) \to \mathbb{C}, and h : \varphi and \psi define the same infinite place: \varphi = \psi (the other possibility, \psi = \operatorname{conj} \circ \varphi, is not K-linear since K \subset \mathbb{C} is not real).
New/Data/Different.lean · the statement, line 116lemma algHom_eq_of_mk_eq {φ ψ : P.E s →ₐ[P.K] ℂ} (h : InfinitePlace.mk φ.1 = .mk ψ.1) : φ = ψ :=
Definition. For parameters P and an exponent s, galOfPlace(P, s) : \Phi (P, s) \simeq * \operatorname{Gal}(E(P, s)/K(P)) is the group isomorphism v \mapsto galOfPlace(P, s)(v) inverse to g \mapsto place of lift \circ g (by construction of the group structure of \Phi); the place named by a goes to the automorphism \zeta (P, s) \mapsto \zeta (P, s)^a.
New/Data/Different.lean · line 127def galOfPlace : P.Φ s ≃* Gal(P.E s/P.K) := Equiv.mulEquiv _
Definition. For parameters P and an exponent s, placeMulEquiv(P, s) : \Phi (P, s) \simeq * (\mathbb{Z}/N_1(P, s))^\times is galOfPlace(P, s) followed by the cyclotomic character \operatorname{Gal}(E/K) \cong (\mathbb{Z}/N_1(P, s))^\times (autEquivPow, which needs irreducible_cyclotomic).
New/Data/Different.lean · line 131def placeMulEquiv := (P.galOfPlace s).trans (autEquivPow _ (P.irreducible_cyclotomic s))
Definition. For parameters P, an exponent s and an integer \nu, placeOfInt(P, s, \nu ) \in \Phi (P, s) is placeMulEquiv(P, s)^{-1}(\nu \bmod N_1(P, s)) if \nu is a unit modulo N_1(P, s), and the identity place 1 otherwise.
New/Data/Different.lean · line 135def placeOfInt ν := if h : IsUnit (Int.cast ν) then (P.placeMulEquiv s).symm h.unit else 1
Definition. For parameters P, an exponent s, a natural number m and a proof d of m \mid N_1(P, s) (the binder is named d in Lean; it is not the prime d(P)), placeClass(P, d) : \Phi (P, s) \to * (\mathbb{Z}/m)^\times is placeMulEquiv(P, s) followed by reduction (\mathbb{Z}/N_1(P, s))^\times \to (\mathbb{Z}/m)^\times. Other texts write placeClass(P, h) for the proof h at hand.
New/Data/Different.lean · line 139def placeClass {s m} (d : m ∣ P.N₁ s) := (ZMod.unitsMap d).comp (P.placeMulEquiv s).toMonoidHom
For parameters P, an exponent s, an infinite place v of E(P, s) and x \in K(P): \Phi _v(x) = x, the chosen embeddings being K-linear (K \subset \mathbb{C}).
New/Data/Different.lean · line 148@[simp] lemma phi_algebraMap v x : Φ v (algebraMap P.K (P.E s) x) = x := by simp [Φ]
For parameters P, an exponent s (both implicit), infinite places v, v' of E(P, s) and x \in E(P, s): \Phi _{v\cdot v'}(x) = \Phi _v(galOfPlace(P, s)(v')(x)).
New/Data/Different.lean · line 183lemma Parameters.phi_mul v v' x : Φ (v * v') x = Φ v (P.galOfPlace s v' x) := by simp [Φ]
For parameters P and an exponent s (both implicit): \operatorname{conj}(\zeta (P, s)) = \zeta (P, s)^{-1}, where \operatorname{conj} = star is complex conjugation of the CM field E(P, s).
New/Data/Different.lean · the statement, line 185@[simp] lemma Parameters.star_ζ : star (P.ζ s) = (P.ζ s)⁻¹ := (Φ 1).injective (by
For parameters P, an exponent s (both implicit) and an infinite place v of E(P, s): galOfPlace(P, s)(v)(\zeta (P, s)) = \zeta (P, s)^a, where a is the representative in [0, N_1(P, s)) of the class placeClass(P, h)(v) \in (\mathbb{Z}/N_1(P, s))^\times (h the proof of N_1(P, s) \mid N_1(P, s)) and \zeta (P, s) = \zeta (P, s).
New/Data/Different.lean · lines 189–190lemma Parameters.galOfPlace_zeta v : P.galOfPlace s v (P.ζ s) = P.ζ s ^ (P.placeClass dvd_rfl v).1.val := by simp [placeClass, placeMulEquiv, ζ]
For parameters P, an exponent s, an integer \nu (all implicit) and a natural number i: placeOfInt(P, s, \nu )^i = placeOfInt(P, s, \nu ^i).
New/Data/Different.lean · lines 196–197lemma Parameters.placeOfInt_pow i : P.placeOfInt s ν ^ i = P.placeOfInt s (ν ^ i) := by cases i <;> simp [placeOfInt, ← map_pow]; rfl
For parameters P, an exponent s, an integer \nu (all implicit) with h : \nu and N_0(P) coprime, a natural number m and a proof d of m \mid N_1(P, s): the value of placeClass(P, d)(placeOfInt(P, s, \nu )) in \mathbb{Z}/m is the class of \nu.
New/Data/Different.lean · the statement, lines 199–200lemma Parameters.placeClass_placeOfInt (h : IsCoprime ν P.N₀) {m d} : (@placeClass P s m d (P.placeOfInt s ν)).1 = ν := by
For parameters P, an exponent s, an integer \nu (all implicit) with h : \nu and N_0(P) coprime: galOfPlace(P, s)(placeOfInt(P, s, \nu ))(\zeta (P, s)) = \zeta (P, s)^\nu , \zeta (P, s) = \zeta (P, s).
New/Data/Different.lean · the statement, lines 206–207lemma Parameters.galOfPlace_placeOfInt_zeta (h : IsCoprime ν P.N₀) : P.galOfPlace s (P.placeOfInt s ν) (P.ζ s) = P.ζ s ^ ν := by simp [galOfPlace_zeta,
For parameters P, an exponent s, an integer \nu (all implicit) and a proof d of N_0(P) \mid N_1(P, s): placeClass(P, d)(placeOfInt(P, s, \nu )) = -1 in (\mathbb{Z}/N_0(P))^\times if and only if \nu \equiv -1 \bmod N_0(P).
New/Data/Different.lean · the statement, lines 217–218@[simp] lemma Parameters.placeClass_placeOfInt_eq_neg_one d : @placeClass P s P.N₀ d (P.placeOfInt s ν) = -1 ↔ (ν : ZMod P.N₀) = -1 := Units.ext_iff.trans
For natural numbers p, N with h : p prime and e : p \mid N, a natural number k and a commutative ring R: expand(p^k)(\Phi _N) = \Phi _{N\cdot p^k} over R, i.e. \Phi _N(X^{p^k}) = \Phi _{N p^k}(X) (by induction on k).
New/Data/Different.lean · the statement, lines 156–157lemma Parameters.expand_pow_cyclotomic {p N} (h : p.Prime) (e : p ∣ N) k R [CommRing R] : expand R (p ^ k) (cyclotomic N R) = cyclotomic (N * p ^ k) R := by
For parameters P and an exponent s (both implicit): expand(towerDeg(s))(\Phi _{N_0(P)}) = \Phi _{N_1(P, s)} over \mathbb{C}, i.e. \Phi _{N_0(P)}(X^{3^c 2^s}) = \Phi _{N_1(P, s)}(X) (2, 3 divide N_0(P)).
New/Data/Different.lean · the statement, lines 162–163lemma Parameters.expand_towerDeg_cyclotomic : expand ℂ (towerDeg s) (cyclotomic P.N₀ ℂ) = cyclotomic (P.N₁ s) ℂ := by erw [expand_mul, expand_pow_cyclotomic,
For parameters P (implicit) and an exponent s: numInfPlaces(E(P, s)) = towerDeg(s)\cdot \varphi (N_0(P)), \varphi Euler's totient (\#\Phi = \varphi (N_1(P, s)) = \deg \Phi _{N_1(P, s)}).
New/Data/Different.lean · the statement, lines 168–169lemma Parameters.card_infinitePlace_E s : numInfPlaces (P.E s) = towerDeg s * P.N₀.totient := by simp [mul_comm, card_congr (placeMulEquiv ..).1,
For parameters P, an exponent s (both implicit) and a proof d of N_0(P) \mid N_1(P, s): the number of infinite places v \in \Phi (P, s) with placeClass(P, d)(v) = 1 in (\mathbb{Z}/N_0(P))^\times is towerDeg(s) = N_1(P, s)/N_0(P) (the kernel of the surjective reduction (\mathbb{Z}/N_1(P, s))^\times \to (\mathbb{Z}/N_0(P))^\times).
New/Data/Different.lean · the statement, lines 174–175lemma Parameters.card_placeClass_eq d : #{v | @placeClass P s P.N₀ d v = 1} = towerDeg s := by simpa [card_infinitePlace_E, ne, placeClass, Subgroup.index_ker, Fintype.card_subtype,
Definition. For parameters P (implicit), an exponent s and a ring automorphism \sigma of \mathbb{C} fixing K(P) pointwise (\sigma \in \operatorname{Gal}(\mathbb{C}/K)), placePerm(s, \sigma ) is the permutation v \mapsto w_\sigma \cdot v of \Phi (P, s), left multiplication by the infinite place w_\sigma of the embedding \sigma \circ \Phi _1.
New/Data/Different.lean · line 224def Parameters.placePerm {P} s (σ : Gal(ℂ/K P)) := Equiv.mulLeft (.mk (.comp σ (Φ 1)) : P.Φ s)
For parameters P, an exponent s, an automorphism \sigma \in \operatorname{Gal}(\mathbb{C}/K(P)) (all implicit), an infinite place v of E(P, s) and x \in E(P, s): \sigma (\Phi _v(x)) = \Phi _{v'}(x) with v' = placePerm(s, \sigma )(v).
New/Data/Different.lean · the statement, line 229lemma Parameters.placePerm_spec {P s σ} v x : σ (Φ v x) = Φ (@placePerm P s σ v) x := by
For parameters P, an exponent s and an element y of E(P, s) (all implicit) with h : y has finite order (a root of unity): there is a natural number k < N_1(P, s) with \zeta (P, s)^k = y.
New/Data/Different.lean · the statement, line 239lemma Parameters.exists_zeta_pow_eq (h : IsOfFinOrder y) : ∃ k < P.N₁ s, ζ P s ^ k = y :=
For parameters P, an exponent s and y \in E(P, s) (all implicit): \prod _{v \in \Phi (P, s)} \Phi _v(y) = N_{E/K}(y) (in \mathbb{C}, K \subset \mathbb{C}).
New/Data/Different.lean · the statement, line 249lemma Parameters.prod_phi_eq_norm : ∏ v, Φ v y = Algebra.norm P.K y := by
Definition (abbreviation). For parameters P and an exponent s (explicit), zetaInt(P, s) \in \mathcal{O}_E is \zeta (P, s) as an element of the ring of integers of E(P, s).
New/Data/Different.lean · line 260abbrev zetaInt P s := (@isPrimitiveRoot_zeta P s).toInteger
Definition (abbreviation). For parameters P and an exponent s (explicit), c_0InE(P, s) \in \mathcal{O}_E is the image of c_0(d(P)) = (1 + \sqrt{-d(P)})/2 \in \mathcal{O}_K under \mathcal{O}_K \subset \mathcal{O}_E.
New/Data/Different.lean · line 268abbrev c₀InE P s : 𝓞 (E P s) := c₀ P.d
Definition. For parameters P and an exponent s (explicit), sqrtNegDInE(P, s) \in \mathcal{O}_E is the image of sqrtNegDInt(d(P)) = 2c_0 - 1 = \sqrt{-d(P)} \in \mathcal{O}_K.
New/Data/Different.lean · line 271def sqrtNegDInE P s := algebraMap _ (𝓞 (E P s)) (sqrtNegDInt P.d)
Definition (abbreviation). For parameters P and an exponent s (explicit), relDifferentGen(P, s) = \Phi '_{N_1(P, s)}(zetaInt(P, s)) \in \mathcal{O}_E, which generates the different of E/K.
New/Data/Different.lean · line 317abbrev relDifferentGen P s := (cyclotomic (N₁ P s) _).derivative.eval (P.zetaInt s)
For parameters P and an exponent s (implicit): zetaInt(P, s), viewed in E(P, s), equals \zeta (P, s).
New/Data/Different.lean · line 262@[simp] lemma coe_zetaInt : P.zetaInt s = P.ζ s := rfl
For parameters P and an exponent s (implicit): zetaInt(P, s) is a primitive N_1(P, s)-th root of unity in \mathcal{O}_E.
New/Data/Different.lean · the statement, line 264lemma isPrimitiveRoot_zetaInt : IsPrimitiveRoot (P.zetaInt s) (P.N₁ s) :=
For parameters P and an exponent s (implicit): sqrtNegDInE(P, s), viewed in E(P, s), equals the image of sqrtNegD(d(P)) = \sqrt{-d(P)} \in K.
New/Data/Different.lean · the statement, line 276@[simp] lemma coe_sqrtNegDInE : (P.sqrtNegDInE s).val = algebraMap _ _ (sqrtNegD P.d) :=
For parameters P and an exponent s (implicit): \operatorname{conj}(sqrtNegDInE(P, s)) = -sqrtNegDInE(P, s).
New/Data/Different.lean · the statement, line 279lemma star_sqrtNegDInE : star (P.sqrtNegDInE s) = -P.sqrtNegDInE s :=
For parameters P, an exponent s (implicit) and a natural number c: \operatorname{conj}(zetaInt(P, s))^c\cdotzetaInt(P, s)^c = 1.
New/Data/Different.lean · the statement, line 282lemma star_zetaInt_pow_mul c : star (P.zetaInt s) ^ c * P.zetaInt s ^ c = 1 :=
For parameters P and an exponent s (implicit): sqrtNegDInE(P, s) divides d(P) in \mathcal{O}_E (as (\sqrt{-d(P)})^{2} = -d(P)).
New/Data/Different.lean · lines 285–286lemma sqrtNegDInE_dvd : P.sqrtNegDInE s ∣ P.d := by simpa using congr(P.sqrtNegDInE s ∣ $(sqrtNegDInt_sq P.d))
For parameters P and an exponent s (explicit): c_0InE(P, s)\cdot (1 - c_0InE(P, s)) = (d(P) + 1)/4 in \mathcal{O}_E.
New/Data/Different.lean · the statement, line 288lemma c₀InE_mul_one_sub P s : c₀InE P s * (1 - P.c₀InE s) = ↑((P.d + 1) / 4) := by
For parameters P and an exponent s (explicit): \operatorname{conj}(c_0InE(P, s)) = 1 - c_0InE(P, s).
New/Data/Different.lean · lines 291–292lemma star_c₀InE P s : star (c₀InE P s) = 1 - P.c₀InE s := by grind [by simpa using @star_sqrtNegDInE P s]
For parameters P, an exponent s and an integer z of E(P, s) (all implicit) with hz : z is a primitive N_1(P, s)-th root of unity, and with y = \Phi '_{N_1(P, s)}(z) (the derivative of the N_1(P, s)-th cyclotomic polynomial over \mathcal{O}_E at z; Lean's local let y := … of the statement), three conclusions: y \mid N_1(P, s); the principal ideal (y) is the different of \mathcal{O}_E over \mathcal{O}_K; and \mathcal{O}_K[z] = \mathcal{O}_E (the statement runs to line 301: see statement_corrected).
New/Data/Different.lean · the statement, lines 299–301lemma relDifferent_spec (hz : IsPrimitiveRoot z (P.N₁ s)) : let y := (cyclotomic (P.N₁ s) _).derivative.eval z y ∣ P.N₁ s ∧ span {y} = differentIdeal (𝓞 P.K) _ ∧ (𝓞 P.K)[z] = ⊤
For parameters P and an exponent s (implicit): relDifferentGen(P, s) divides N_1(P, s) in \mathcal{O}_E.
New/Data/Different.lean · line 319lemma relDifferentGen_dvd_N₁ : P.relDifferentGen s ∣ P.N₁ s := by simp [↓relDifferent_spec]
For parameters P and an exponent s (explicit): relDifferentGen(P, s), viewed in E(P, s), is nonzero (it divides N_1(P, s) \ne 0).
New/Data/Different.lean · lines 321–322@[simp↓] lemma relDifferentGen_ne_zero P s : (relDifferentGen P s).val ≠ 0 := mod_cast ne_zero_of_dvd_ne_zero out relDifferentGen_dvd_N₁
For parameters P and an exponent s (implicit): the different of \mathcal{O}_E over \mathbb{Z} is the principal ideal (relDifferentGen(P, s)\cdotsqrtNegDInE(P, s)) = (\Phi '_{N_1(P, s)}(\zeta (P, s))\cdot \sqrt{-d(P)}).
New/Data/Different.lean · the statement, lines 324–325lemma different_eq_span_relDifferentGen_mul : differentIdeal ℤ _ = span {P.relDifferentGen s * P.sqrtNegDInE s} := by
For parameters P and an exponent s (implicit): N_1(P, s)\cdot d(P) lies in the different of \mathcal{O}_E over \mathbb{Z}.
New/Data/Different.lean · the statement, line 330lemma cycloConductor_mem_different : ↑(P.N₁ s * P.d) ∈ differentIdeal ℤ (𝓞 (P.E s)) := by
For parameters P and an exponent s (implicit): there is c \in \mathcal{O}_E with \operatorname{conj}(c)\cdot c = 1 and \operatorname{conj}(c\cdotrelDifferentGen(P, s)) = c\cdotrelDifferentGen(P, s), i.e. a unit c of absolute value 1 that makes \Phi '_{N_1(P, s)}(\zeta (P, s)) real.
New/Data/Different.lean · the statement, lines 334–335lemma exists_unit_mul_relDifferentGen_real : ∃ c, star c * c = 1 ∧ star (c * P.relDifferentGen s) = c * P.relDifferentGen s := by
Definition. For parameters P and an exponent s (explicit), \varpi (P, s) = c\cdot(relDifferentGen(P, s)\cdotsqrtNegDInE(P, s)) \in \mathcal{O}_E, with c chosen in exists_unit_mul_relDifferentGen_real: \varpi _E = c\cdotrelDifferentGen(P, s)\cdot \sqrt{-d(P)}.
New/Data/Different.lean · the statement, line 346def ϖ P s :=
For parameters P and an exponent s (implicit): \operatorname{conj}(\varpi (P, s)) = -\varpi (P, s): \varpi _E is purely imaginary (c\cdotrelDifferentGen(P, s) is real, \sqrt{-d(P)} purely imaginary).
New/Data/Different.lean · line 350lemma star_ϖ : star (P.ϖ s) = -P.ϖ s := by grind [ϖ, star_mul, star_sqrtNegDInE]
For parameters P and an exponent s (implicit): the different of \mathcal{O}_E over \mathbb{Z} is the principal ideal (\varpi (P, s)) (c is a unit).
New/Data/Different.lean · the statement, line 353lemma different_eq_span_varpi : differentIdeal ℤ _ = span {P.ϖ s} := by
For parameters P and an exponent s (implicit): \prod _{v \in \Phi (P, s)} v(\varpi (P, s)) = rd_E^{\operatorname{numInfPlaces}(E)}, where v(x) = |\Phi _v(x)| is the absolute value at v and rd_E = rootDiscr(E(P, s)).
New/Data/Different.lean · the statement, lines 358–359lemma prod_varpi_eq_rootDiscr_pow : ∏ v : P.Φ s, v (P.ϖ s).val = rootDiscr (P.E s) ^ numInfPlaces (P.E s) := by
For parameters P, an exponent s (implicit) and an infinite place v of E(P, s): v(\varpi (P, s)) = v(relDifferentGen(P, s))\cdot \sqrt{d(P)}.
New/Data/Different.lean · the statement, line 364lemma infinitePlace_apply_varpi (v : P.Φ s) : v (P.ϖ s).val = v (P.relDifferentGen s) * √P.d :=
Definition. For parameters P, an exponent s (both implicit) and an infinite place v of E(P, s), galOfPlaceInt(v) : \mathcal{O}_E \to \mathcal{O}_E is the ring endomorphism x \mapsto galOfPlace(P, s)(v)(x) of the ring of integers, galOfPlace(P, s)(v) = galOfPlace(P, s)(v) \in \operatorname{Gal}(E/K).
New/Data/WeilDataOfE.lean · line 24noncomputable def galOfPlaceInt v := MulSemiringAction.toRingHom _ (𝓞 (P.E s)) (P.galOfPlace s v)
For parameters P, an exponent s, an infinite place v (all implicit) and x \in \mathcal{O}_E: galOfPlaceInt(v)(x), viewed in E, equals galOfPlace(P, s)(v)(x).
New/Data/WeilDataOfE.lean · line 26@[simp] lemma coe_galOfPlaceInt x : galOfPlaceInt v x = P.galOfPlace s v x := rfl
For parameters P, an exponent s, an infinite place v, a finite place w of E(P, s) and x \in \mathcal{O}_E (all implicit): x \in v \bullet w if and only if galOfPlaceInt(v)(x) \in w.
New/Data/WeilDataOfE.lean · line 32@[simp] lemma mem_smul {x} : x ∈ (v • w).1 ↔ galOfPlaceInt v x ∈ w.1 := .rfl
Definition. For parameters P (implicit), a natural number n (in the uses the exponent s of E) and a natural number p: frobElem(P, n, p) = (placeOfInt(P, n, \chi _K(p)\cdot p), \chi _K(p)) \in \Phi (P, n) \times \mathbb{Z}; for a prime p \nmid N_1(P, n)\cdot d(P) it is the Frobenius element at p in \operatorname{Gal}(E/\mathbb{Q}) \cong \Phi \times \{\pm 1\}.
New/Data/WeilDataOfE.lean · line 36@[simp] noncomputable def frobElem (p : ℕ) := (P.placeOfInt n (chiK P.d p * p), chiK P.d p)
For parameters P, an exponent s, a natural number p with hp : p prime, and h : p \nmid N_1(P, s): p and N_0(P) are coprime integers (N_0(P) \mid N_1(P, s)).
New/Data/WeilDataOfE.lean · lines 39–40lemma isCoprime_N₀_of_not_dvd : IsCoprime (p : ℤ) P.N₀ := mod_cast by grind [hp.1.coprime_iff_not_dvd]
For parameters P, an exponent s, a prime p (instance hp), a commutative ring R of characteristic p, an infinite place v of E(P, s), h : p \nmid N_1(P, s), a ring homomorphism \varphi : \mathcal{O}_E \to R, a natural number n, a ring automorphism c of \mathcal{O}_E and an integer e with he : (c = \operatorname{id} and e = 1) or (c = \operatorname{conj} and e = -1): [\varphi(galOfPlace(P, s)(v) x) = \varphi (c x)^{p^n} for every x \in \mathcal{O}_E] if and only if [\varphi(galOfPlace(P, s)(v) \zeta (P, s)) = \varphi(galOfPlace(P, s)(u) \zeta (P, s)), where u = placeOfInt(P, s, e\cdot p^n) and \zeta (P, s) = zetaInt(P, s), and \chi _K(p)^n\cdot e\cdot \varphi (\sqrt{-d(P)}) = \varphi (\sqrt{-d(P)}), \sqrt{-d(P)} = sqrtNegDInE(P, s)]; here galOfPlace(P, s)(x)(\cdot ) = galOfPlaceInt(x)(\cdot ).
New/Data/WeilDataOfE.lean · the statement, lines 46–48lemma frob_ext : (∀ x, φ (galOfPlaceInt v x) = φ (c x) ^ p ^ n) ↔ φ (galOfPlaceInt v (P.zetaInt s)) = φ (galOfPlaceInt (P.placeOfInt s (e * p ^ n)) (P.zetaInt s)) ∧ chiK P.d p ^ n * e * φ (P.sqrtNegDInE s) = φ (P.sqrtNegDInE s) := .trans ⟨fun e ↦ And.intro (e (zetaInt ..))
For parameters P, an exponent s, a prime p (instance hp), a commutative ring R of characteristic p which is a domain (instance IsDomain R), an infinite place v, a ring homomorphism \varphi : \mathcal{O}_E \to R, a natural number n, a ring automorphism c of \mathcal{O}_E and an integer e with he : (c = \operatorname{id} and e = 1) or (c = \operatorname{conj} and e = -1), and hc : p \nmid N_1(P, s)\cdot d(P): [\varphi(galOfPlaceInt(v)(x)) = \varphi (c x)^{p^n} for every x \in \mathcal{O}_E] if and only if (v, e) = frobElem(P, s, p)^n in \Phi (P, s) \times \mathbb{Z}.
New/Data/WeilDataOfE.lean · the statement, lines 59–60lemma frob_iff_eq_frobElem_pow [IsDomain R] : (∀ x, φ (galOfPlaceInt v x) = φ (c x) ^ p ^ n) ↔ (v, e) = P.frobElem s p ^ n := by
Decomposition group. For parameters P, an exponent s, a prime p (instance hp), an infinite place v and a finite place w of E(P, s), a ring automorphism c of \mathcal{O}_E and an integer e with he : (c = \operatorname{id} and e = 1) or (c = \operatorname{conj} and e = -1), hw : p \in w and hc : p \nmid N_1(P, s)\cdot d(P): v \bullet w = c^{-1}(w) (that is w for c = \operatorname{id}, the conjugate place \overline{w} for c = \operatorname{conj}) if and only if there is a natural number n with (v, e) = frobElem(P, s, p)^n.
New/Data/WeilDataOfE.lean · the statement, lines 77–78lemma smul_eq_iff_exists_frobElem_pow : v • w = comap c c.surjective w ↔ ∃ n, (v, e) = P.frobElem s p ^ n := have := w.charP_quotient hw
For parameters P, an exponent s, a prime p (instance hp), a finite place w of E(P, s), hw : p \in w and hc : p \nmid N_1(P, s)\cdot d(P): q(w) = p^o with o the order of frobElem(P, s, p) in \Phi (P, s) \times \mathbb{Z}.
New/Data/WeilDataOfE.lean · the statement, line 88lemma q_eq_pow (hw : ↑p ∈ w.1) (hc : ¬p ∣ P.N₁ s * P.d) : w.q = p ^ orderOf (P.frobElem s p) := by
For parameters P, an exponent s, a prime p (instance hp), a finite place w of E(P, s), hw : p \in w and hc : p \nmid N_1(P, s)\cdot d(P): p \notin w^{2} (p is unramified at w): otherwise w divides the different, which contains N_1(P, s)\cdot d(P) (cycloConductor_mem_different), so p \mid N_1(P, s)\cdot d(P).
New/Data/WeilDataOfE.lean · the statement, line 94lemma natCast_notMem_sq : ↑p ∉ w.1 ^ 2 := hc ∘ (w.natCast_mem_iff_dvd hw).1 ∘
For parameters P, an exponent s, a prime p (instance hp), a finite place w of E(P, s), hw : p \in w and hc : p \nmid N_1(P, s)\cdot d(P): the w-adic valuation of p is \exp (-1) (multiplicity exactly 1: p \in w, p \notin w^{2}). Here \exp (-1) is Mathlib's .exp (-1) in the value group \mathbb{Z}^{m0} = \{0\} \cup \exp (\mathbb{Z}) of the discrete valuation, the value of a uniformiser (additive order 1), not the real number e^{-1}.
New/Data/WeilDataOfE.lean · the statement, line 100lemma intValuation_p : w.intValuation p = .exp (-1) := by simp [*, natCast_notMem_sq,
For parameters P, an exponent s, a prime p (instance hp), finite places w, w' of E(P, s), hw : p \in w and h : p \in w': there is an infinite place v \in \Phi (P, s) with v \bullet w = w' or \operatorname{conj}(v \bullet w) = w'.
New/Data/WeilDataOfE.lean · the statement, lines 105–106lemma exists_smul_eq_or_star (hw : ↑p ∈ w.1) (h : ↑p ∈ w'.1) : ∃ v : P.Φ s, v • w = w' ∨ star (v • w) = w' := (IsInvariant.exists_smul_of_under_eq ℤ _ Gal(P.E s/ℚ) w'.1 w
For parameters P, an exponent s, a prime p (instance hp) and hL : \chi _K(p) = -1: p \nmid N_1(P, s)\cdot d(P) (a prime dividing N_1(P, s) has \chi _K = 1, and \chi _K(d(P)) = 0).
New/Data/WeilDataOfE.lean · the statement, line 112@[local simp] lemma not_dvd_N₁_mul_d_of_inert (hL : chiK P.d p = -1) : ¬p ∣ P.N₁ s * P.d := by
For parameters P, an exponent s, a prime p (instance hp), an infinite place v and a finite place w of E(P, s), hw : p \in w and hL : \chi _K(p) = -1: v \bullet w = w if and only if there is a natural number n with v = placeOfInt(P, s, -p)^n and n even.
New/Data/WeilDataOfE.lean · the statement, line 119lemma smul_eq_iff_inert : v • w = w ↔ ∃ n, v = P.placeOfInt s (-p) ^ n ∧ Even n := by
For parameters P, an exponent s, a prime p (instance hp), an infinite place v and a finite place w of E(P, s), hw : p \in w and hL : \chi _K(p) = -1: v \bullet w = \operatorname{conj}(w) if and only if there is a natural number n with v = placeOfInt(P, s, -p)^n and n odd.
New/Data/WeilDataOfE.lean · the statement, line 124lemma smul_eq_star_iff_inert : v • w = star w ↔ ∃ n, v = P.placeOfInt s (-p) ^ n ∧ Odd n := by
For parameters P, an exponent s, a prime p (instance hp), a finite place w of E(P, s), hw : p \in w and hL : \chi _K(p) = -1: q(w) = p^{\operatorname{lcm}(o, 2)}, o the order of placeOfInt(P, s, -p) in \Phi (P, s).
New/Data/WeilDataOfE.lean · lines 129–130lemma q_eq_inert : w.q = p ^ (orderOf (P.placeOfInt s (-p))).lcm 2 := by simp [q_eq_pow hw, *, Prod.orderOf]
For parameters P, an exponent s, a natural number p and g : p \equiv 1 \bmod N_1(P, s)\cdot d(P): \chi _K(p) = 1 (p \equiv 1 \bmod d(P)).
New/Data/WeilDataOfE.lean · line 137lemma chiK_eq_one_of_modEq_one : chiK P.d p = 1 := by simp [natCast_eq_natCast' _ _ g.of_mul_left]
For parameters P, an exponent s, a prime p (instance hp) and g : p \equiv 1 \bmod N_1(P, s)\cdot d(P): p \nmid N_1(P, s)\cdot d(P) (else p would divide p - 1).
New/Data/WeilDataOfE.lean · the statement, line 139@[local simp] lemma not_dvd_N₁_mul_d_of_modEq_one : ¬p ∣ P.N₁ s * P.d :=
For parameters P, an exponent s, a natural number p and g : p \equiv 1 \bmod N_1(P, s)\cdot d(P): frobElem(P, s, p) = 1 (\chi _K(p) = 1 and placeOfInt(P, s, p) = placeOfInt(P, s, 1) = 1).
New/Data/WeilDataOfE.lean · the statement, line 144lemma frobElem_eq_one : P.frobElem s p = 1 := by simp [placeOfInt, chiK_eq_one_of_modEq_one g,
For parameters P, an exponent s, a prime p (instance hp), an infinite place v and a finite place w of E(P, s), g : p \equiv 1 \bmod N_1(P, s)\cdot d(P) and hw : p \in w: v \bullet w \ne \operatorname{conj}(w).
New/Data/WeilDataOfE.lean · lines 151–152lemma smul_ne_star : v • w ≠ star w := by simpa [↓frobElem_eq_one, *] using! smul_eq_iff_exists_frobElem_pow (.inr ⟨rfl, rfl⟩) hw
For parameters P, an exponent s, a prime p (instance hp), an infinite place v and a finite place w of E(P, s), g : p \equiv 1 \bmod N_1(P, s)\cdot d(P) and hw : p \in w: v \bullet w = w if and only if v = 1.
New/Data/WeilDataOfE.lean · the statement, line 154lemma smul_eq_self_iff_eq_one : v • w = w ↔ v = 1 := by
For parameters P, an exponent s, a prime p (instance hp), a finite place w of E(P, s), g : p \equiv 1 \bmod N_1(P, s)\cdot d(P) and hw : p \in w: q(w) = p.
New/Data/WeilDataOfE.lean · line 158lemma q_eq_of_modEq_one : w.q = p := by simp [q_eq_pow hw, ↓frobElem_eq_one, *]
For parameters P, an exponent s, a prime p (instance hp), a finite place w of E(P, s), g : p \equiv 1 \bmod N_1(P, s)\cdot d(P), hw : p \in w, an integer a of E(P, s) and ha : a\cdot \operatorname{conj}(a) = p\cdot c for a natural number c coprime to p: \operatorname{conj}(a) \in w if and only if a \notin w (w divides exactly one of a and \overline{a}).
New/Data/WeilDataOfE.lean · the statement, line 164lemma star_mem_iff : star a ∈ w.1 ↔ a ∉ w.1 :=
For parameters P, an exponent s, a prime p (instance hp), a finite place w of E(P, s), g : p \equiv 1 \bmod N_1(P, s)\cdot d(P), hw : p \in w, an integer a of E(P, s) with ha : a\cdot \operatorname{conj}(a) = p\cdot c for a natural number c coprime to p, and k : a \in w: the w-adic valuation of a is \exp (-1) (a has valuation exactly 1 at w; .exp (-1) in the value group \mathbb{Z}^{m0}, additive order 1, not the real number e^{-1}).
New/Data/WeilDataOfE.lean · the statement, line 170lemma intValuation_eq_of_mul_star (k : a ∈ w.1) : w.intValuation a = .exp (-1) := by
For parameters P, an exponent s, a prime p (instance hp), g : p \equiv 1 \bmod N_1(P, s)\cdot d(P), an integer a of E(P, s) and ha : a\cdot \operatorname{conj}(a) = p\cdot c for a natural number c coprime to p: there is a bijection between the infinite places \Phi (P, s) and the finite places w of E(P, s) with a \in w and p \in w.
New/Data/WeilDataOfE.lean · the statement, lines 178–179lemma nonempty_infinitePlace_equiv_finPlace : Nonempty (P.Φ s ≃ {w : FinPlace _ // a ∈ w.1 ∧ ↑p ∈ w.1}) := by refine (FinPlace.exists_natCast_mem _ p).rec fun w _ ↦
For parameters P, an exponent s (implicit), a ring endomorphism f of \mathcal{O}_E with h : f injective, and a finite place w of E(P, s): the w-adic valuations of f(relDifferentGen(P, s)) and of relDifferentGen(P, s) are equal.
New/Data/WeilDataOfE.lean · the statement, lines 192–194lemma Parameters.valuation_map_relDifferentGen (f : _ →+* 𝓞 (P.E s)) (h : (⇑f).Injective) (w : FinPlace (P.E s)) : w.valuation _ (f (P.relDifferentGen s)).val = w.valuation _ (P.relDifferentGen s).val := by simp [↓valuation_of_algebraMap, intValuation_def,
Definition. For parameters P and an exponent s (explicit), \alpha (P, s) \in \mathbb{A}_f(E)^\times is the finite idele whose component at a finite place w is 1/relDifferentGen(P, s) if c_0 = c_0InE(P, s) \in w, and 1 otherwise: the image of relDifferentGen(P, s)^{-1} \in E^\times under x \mapsto e\cdot x + (1 - e), e = \operatorname{idem}\{w : c_0 \in w\} the idempotent adele.
New/Data/WeilDataOfE.lean · the statement, line 200noncomputable def Parameters.α P s := let e := idem {w | c₀InE P s ∈ w.1}
For parameters P and an exponent s (implicit): \alpha (P, s)^{-1} lies in \hat{O} (its components are relDifferentGen(P, s) or 1, integral).
New/Data/WeilDataOfE.lean · line 207lemma Parameters.inv_α_mem : (P.α s)⁻¹.1 ∈ Ô _ := by aesop
For parameters P, an exponent s (implicit) and a finite place w of E(P, s): the w-component of \alpha (P, s)\cdot \operatorname{conj}(\alpha (P, s))\cdotrelDifferentGen(P, s) has valuation 1, the neutral element of the value group \mathbb{Z}^{m0}: additive order 0, i.e. it is a unit at w.
New/Data/WeilDataOfE.lean · the statement, lines 211–212lemma Parameters.v_alpha_mul_relDifferentGen w : Valued.v ((P.α s * star (P.α s).1 * P.relDifferentGen s) w) = 1 := by
For parameters P and an exponent s (implicit): N_1(P, s)\cdot \alpha (P, s) lies in \hat{O} (N_1(P, s)/relDifferentGen(P, s) is integral since relDifferentGen(P, s) \mid N_1(P, s)).
New/Data/WeilDataOfE.lean · the statement, line 219lemma Parameters.N₁_mul_α_mem : P.N₁ s * (P.α s).1 ∈ Ô _ := by simp_all [field, apply_ite,
Instance. For parameters P and an exponent s (implicit): Weil data for E(P, s) (class WeilData): the stably-unramified structure, a splitting character \upsilon (from nonempty_splittingChar), j = -1/\sqrt{-d(P)} with \operatorname{conj}(j) = -j and \operatorname{Im} \Phi _w(j) > 0 at every infinite place, the idele \alpha (P, s) with v_w(j\cdot \alpha \cdot \overline{\alpha }) = \exp (m_w) at every finite place w, m_w the multiplicity of w in the different of E over \mathbb{Q} (.exp in the value group \mathbb{Z}^{m0}: additive order -m_w), (1 - j^{-1})/2 integral, and \upsilon (\pi _w) = -1 at the chosen uniformiser idele \pi _w (υ.atUnif w) of every finite place w with \overline{w} = w (\pi _w is local; it is not the global generator \varpi (P, s) of the different).
New/Data/WeilDataOfE.lean · the statement, line 225noncomputable instance Parameters.instWeilDataE : WeilData (P.E s) := by