Chapter III · Unit 152
The data of the proof: the parameters N₀ and d, the CM field E = K(ζ) and its places, the scales x, x₁, b, the ranks m, k, r, t, the order a, the comparison of sizes on the logarithmic scale, and the existence of admissible data at every large x
HasLogBound by which instance search compares monomials in the scales (le_of_hasLogBound). The last result, exists_data, says that for 0 < \varepsilon < 1/100 admissible data with scale x, \log x_1 = x^{\varepsilon/6} and \log\log b = \varepsilon \log x exist for every large x.Notes
What it holds · 239 declarations
def
Parameters.lines 15–17assemblyc Definition. For parameters P, c(P) is the real number C + (2\cdot d(P) + 6) + (N_0(P) + |chowlaSelbergConst(d(P))| + \sum _\xi |\log \lVert \Phi '_{N_0(P)}(\xi )\rVert |), where C is the natural number chosen (byClassical.) fromchoose Parameters., the sum runs over the primitive N_0(P)-th roots of unity \xi in \mathbb{C}, \Phi _{N_0(P)} is the N_0(P)-th cyclotomic polynomial over \mathbb{C} and \Phi '_{N_0(P)} its derivative, andexists_isJetConjugate_generator P chowlaSelbergConst(d(P)) = \gamma - \operatorname{Re} L'/L(1, \chi _K) (\gamma Euler's constant). Every summand is nonnegative, so c(P) is at least each of them; the development uses c(P) to bound 64, N_0(P), d(P) and \varphi (N_0(P)) (Data.,c_ge Magnitudes.21–22), |lean chowlaSelbergConst(d(P))| (ShortAndEnough.76) and the chosen constant C (New/Curve/lean ConjugatesOfJets.169–198), and admissible data make it negligible against their scales (their fieldlean scaleasks 10^{12}\cdot c(P) \le \log \log b(D)). (The source's gloss, New/Main.91, that c(P) 'bounds what depends on N_0, d only' is not a statement: c(P) + 1 also depends on N_0(P) and d(P) only.)lean Definition 2.2, p. 2 of Admissible data: scales, ranks and sizes, and their existence Definition 2.3, p. 4 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Data/AdmissibleData.lean · line 15 def Parameters.c P := (exists_isJetConjugate_generator P).choose + (2 * P.d + 6) +structure
Datalines 22–45assemblyStructure. Admissible data D over parameters P consist of: real numbers \mathit{logX}(D), \mathit{logB}(D), \mathit{logX}_1(D) (the logarithms of the scales x, b, x_1); natural numbers s(D), m(D), r(D); a finite set \operatorname{thick}(D) of infinite places of E(P, s(D)); a function g(D) : \{0, 1\} \to \mathbb{N}; an integer piG(D) of K = \mathbb{Q}(\sqrt{-d(P)}); and proofs of: (s_{\mathrm{le}}) s \le 32\cdot \mathit{logX} (writing s, \mathit{logX}, \ldots for the fields s(D), \mathit{logX}(D), \ldots being listed); (scale) 10^{12}\cdot c(P) \le \log \mathit{logB}, 100\cdot \log \mathit{logB} \le \mathit{logX}, 10^{6}\cdot \mathit{logX} \le \mathit{logX}_1, 10^{6}\cdot \mathit{logX}_1 \le \mathit{logB} and 6\cdot \log \mathit{logX}_1 \le \log \mathit{logB}, that is, with x = e^{\mathit{logX}}, x_1 = e^{\mathit{logX}_1}, b = e^{\mathit{logB}}: (\log b)^{100} \le x, x^{10^{6}} \le x_1, x_1^{10^{6}} \le b, (\log x_1)^{6} \le \log b and 10^{12}\cdot c(P) \le \log \log b; (m_{\mathrm{mem}}) e^{\mathit{logX}/2} \le m \le 2\cdot e^{\mathit{logX}/2}; (r_{\mathrm{mem}}) e^{5 \mathit{logX}} \le r \le 3\cdot e^{5 \mathit{logX}}; (m_{\mathrm{pow}}) there is a natural number e with m = 2^{e+1} and s = 22(e + 1) (so 2^s = m^{22}); (r_{\mathrm{pow}}) there is a natural number e with r = 3^{e+1}; (thick_eq_neg_one_mod) for every natural number m' and every proof h of m' \mid N_1(P, s): if m' divides N_0(P)\cdot 3^{\lfloor \log _3 s\rfloor +5}, thenplaceClass(P, h)(\sigma ) = -1 in (\mathbb{Z}/m')^\times for every \sigma \in \operatorname{thick} (the Lean binder is named m and hides the field m); (three_term) with \varphi =placeClass(P, h_2) the reduction \Phi (P, s) \to (\mathbb{Z}/2^{s+1})^\times (h_2 the proofParameters.of 2^{s+1} \mid N_1(P, s)): for all natural numbers i, j with 0 < i < j \le 324\cdot s and all \sigma , \tau , \rho \in \operatorname{thick}, \varphi (\tau /\sigma )^j = \varphi (\rho /\sigma )^i implies \varphi (\tau /\sigma ) = 1; (g_{\mathrm{prime}}) g(i) is prime for i = 0, 1; (two_pow_dvd_N₁ g_modEq_one) g(i) \equiv 1 \bmod N_1(P, s)\cdot d(P); (dvd_g_sub_one) M\omega (P, s)^{2} divides g(i) - 1 (natural subtraction); (g_{\mathrm{injective}}) g is injective, i.e. g(0) \ne g(1); (g_{\mathrm{mem}}) (e^{\mathit{logB}})^{10} \le g(i) \le (e^{\mathit{logB}})^{11}; (norm_piG) piG\cdot \operatorname{conj}(piG) = g(0)\cdot g(1) in the ring of integers of K; (exists_prime_window) for every real U with 100\cdot \mathit{logB} \le U \le 2^s there is a prime p with p \equiv 1 \bmod M\omega (P, s)^{2} and U \le \log p \le U + \sqrt{\mathit{logB}}.Definition 2.3, p. 3 of Admissible data: scales, ranks and sizes, and their existence Definition 2.3, p. 4 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Data/AdmissibleData.lean · line 22 structure Data (P : Parameters) whereabbrev
Data.line 52computationx Definition. For admissible data D over parameters P, the scale x(D) = \exp (\mathit{logX}(D)), a real number.Definition 2.4, p. 3 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/AdmissibleData.lean · line 52 abbrev x := D.logX.expabbrev
Data.line 55computationx₁ Definition. For admissible data D over parameters P, the scale x_1(D) = \exp (\mathit{logX}_1(D)), a real number.Definition 2.4, p. 3 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/AdmissibleData.lean · line 55 abbrev x₁ := D.logX₁.expabbrev
Data.line 58computationb Definition. For admissible data D over parameters P, the scale b(D) = \exp (\mathit{logB}(D)), a real number.Definition 2.4, p. 3 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/AdmissibleData.lean · line 58 abbrev b := D.logB.expdef
Data.line 62aliasE Definition (reducible). For admissible data D over parameters P, the number field E(D) = E(P, s(D)) = K(P)(\zeta (P, s(D))), \zeta (P, s(D)) a primitive root of unity of order N_1(P, s(D)); Lean derives for it the instancesNumberField,CharZeroandIsCMField(E(D) is a CM field).Definition 2.5, p. 3 of Admissible data: scales, ranks and sizes, and their existence Definition 2.3, p. 4 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Data/AdmissibleData.lean · line 62 @[reducible] def E := P.E D.s deriving NumberField, CharZero, IsCMFieldabbrev
Data.line 66aliasΦ Definition (abbreviation). For admissible data D over parameters P, \Phi (D) is the type of infinite places of E(D); it carries the group structure of \Phi (P, s(D)), identified with \operatorname{Gal}(E/K) and with (\mathbb{Z}/N_1(D))^\times.Definition 2.5, p. 3 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/AdmissibleData.lean · line 66 protected abbrev Φ := InfinitePlace D.Eabbrev
Data.line 69aliasN₁ Definition (abbreviation). For admissible data D over parameters P, N_1(D) = N_1(P, s(D)) = N_0(P)\cdottowerDeg(s(D)), a natural number.Definition 2.5, p. 3 of Admissible data: scales, ranks and sizes, and their existence Definition 2.3, p. 4 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Data/AdmissibleData.lean · line 69 abbrev N₁ := P.N₁ D.sabbrev
Data.line 72aliasf Definition (abbreviation). For admissible data D over parameters P, f(D) =numInfPlaces(E(D)), the number of infinite places of E(D).Definition 2.5, p. 3 of Admissible data: scales, ranks and sizes, and their existence Definition 2.4, p. 5 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Data/AdmissibleData.lean · line 72 abbrev f := numInfPlaces D.Eabbrev
Data.line 75computationcycloConductor Definition (abbreviation). For admissible data D over parameters P,cycloConductor(D) = N_1(D)\cdot d(P), a natural number; E(D) embeds in the cyclotomic field of that order.Definition 2.5, p. 3 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/AdmissibleData.lean · line 75 protected abbrev cycloConductor := D.N₁ * P.dabbrev
Data.line 78aliasrootDisc Definition (abbreviation). For admissible data D over parameters P,rootDisc(D) = rd_{E(D)}, the root discriminant |disc E(D)|^{1/[E(D):\mathbb{Q}]} of E(D) (Mathlib'srootDiscr).Definition 2.5, p. 3 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/AdmissibleData.lean · line 78 abbrev rootDisc := rootDiscr D.Edef
Data.line 82computationk Definition. For admissible data D over parameters P, the rank k(D) = (r(D) + 1) - m(D), a natural number (truncated subtraction).Definition 2.6, p. 4 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/AdmissibleData.lean · line 82 def k := D.r + 1 - D.mdef
Data.line 85computationt Definition. For admissible data D over parameters P, t(D) = 5\cdot r(D), a natural number.Definition 2.6, p. 4 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/AdmissibleData.lean · line 85 def t := 5 * D.rdef
Data.line 88computationroundUp Definition. For admissible data D over parameters P and a real number y, roundUp(D, y) = N_1(D)\cdot \lceil y/N_1(D)\rceil _+, a natural number, where \lceil \cdot \rceil _+ is the least natural number at least its argument (0 for an argument \le 0): the least natural multiple of N_1(D) that is at least y, and 0 if y \le 0.Definition 2.7, p. 4 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/AdmissibleData.lean · line 88 def roundUp := D.N₁ * ⌈y / D.N₁⌉₊def
Data.line 92computationh₂ Definition. For admissible data D over parameters P, the half-gap h_2(D) = r(D)^{8}, a natural number.Definition 2.6, p. 4 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/AdmissibleData.lean · line 92 def h₂ := D.r ^ 8def
Data.line 95computationh Definition. For admissible data D over parameters P, the gap h(D) = 2\cdot h_2(D) = 2\cdot r(D)^{8}, a natural number.Definition 2.6, p. 4 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/AdmissibleData.lean · line 95 def h := 2 * D.h₂def
Data.line 98computationreducedHalfGap Definition. For admissible data D over parameters P,reducedHalfGap(D) = h_2(D) - \lfloor (t(D) + 1)/2\rfloor, a natural number (truncated subtraction, floor division).Definition 2.6, p. 4 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/AdmissibleData.lean · line 98 def reducedHalfGap := D.h₂ - (D.t + 1) / 2def
Data.line 101computationa Definition. For admissible data D over parameters P, the order a(D) = roundUp(D, x(D)\cdot b(D)), the least multiple of N_1(D) that is at least x(D)\cdot b(D) (a natural number).Definition 2.7, p. 4 of Admissible data: scales, ranks and sizes, and their existence Definition 2.4, p. 5 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Data/AdmissibleData.lean · line 101 def a := D.roundUp (D.x * D.b)def
Data.line 105computationb₁ Definition. For admissible data D over parameters P, b_1(D) = roundUp(D, a(D)/x(D)), the least multiple of N_1(D) that is at least a(D)/x(D); it is the weight w(D, 0, \sigma ) - h_2(D) at a \operatorname{thick} place \sigma.Definition 2.7, p. 4 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/AdmissibleData.lean · line 105 def b₁ := D.roundUp (D.a / D.x)def
Data.line 109computationb₂ Definition. For admissible data D over parameters P, b_2(D) = roundUp(D, a(D)/x_1(D)), the least multiple of N_1(D) that is at least a(D)/x_1(D); it is the weight w(D, 0, \sigma ) - h_2(D) at a place \sigma that is not \operatorname{thick}.Definition 2.7, p. 4 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/AdmissibleData.lean · line 109 def b₂ := D.roundUp (D.a / D.x₁)abbrev
Data.line 113aliasplaceOfInt Definition (abbreviation). For admissible data D over parameters P and an integer j,placeOfInt(D, j) =placeOfInt(P, s(D), j) \in \Phi (D): the infinite place of E(D) named by the class of j in (\mathbb{Z}/N_1(D))^\times if j is prime to N_1(D), and the identity place 1 otherwise.Definition 2.5, p. 3 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/AdmissibleData.lean · line 113 abbrev placeOfInt : D.Φ := P.placeOfInt _ jdef
Data.line 116computationn Definition. For admissible data D over parameters P and a natural number j, the rank n(D, j) = k(D) + j\cdot (t(D) + 1), a natural number.Definition 2.6, p. 4 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/AdmissibleData.lean · line 116 def n := D.k + j * (D.t + 1)abbrev
Data.line 119computationposRank Definition (abbreviation). For admissible data D over parameters P and a natural number j,posRank(D, j) = k(D) + j - 1 (truncated subtraction): the number of positive basis vectors of the space W_j.Definition 2.6, p. 4 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/AdmissibleData.lean · line 119 abbrev posRank := D.k + j - 1instance
(anonymous)line 121one-stepInstance. For admissible data D over parameters P and an index j \in \{0, 1\} (an element of \operatorname{Fin} 2): Fact (g(D)(j) is prime), from the field g_{\mathrm{prime}} of D.The Lean statement
New/Data/AdmissibleData.lean · line 121 instance : Fact (D.g j).Prime := ⟨g_prime ..⟩def
Data.line 124computationgProd Definition. For admissible data D over parameters P,gProd(D) = g(D)(0)\cdot g(D)(1), the product g = g_0g_1 of the two primes of D (a natural number; Lean derivesNeZerofor it).Definition 2.5, p. 3 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/AdmissibleData.lean · line 124 def gProd := D.g 0 * D.g 1 deriving NeZerodef
Data.line 127computationtops Definition. For admissible data D over parameters P, tops(D) is the finite set of infinite places \tau \in \Phi (D) withplaceClass(P, h)(\tau ) = 1 in (\mathbb{Z}/N_0(P))^\times, where h is the proof that N_0(P) divides N_1(D) = N_0(P)\cdottowerDeg(s(D)): the tops are the places whose class in (\mathbb{Z}/N_1(D))^\times is \equiv 1 \bmod N_0(P).Definition 2.5, p. 3 of Admissible data: scales, ranks and sizes, and their existence Definition 2.4, p. 5 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Data/AdmissibleData.lean · line 127 def tops : Finset D.Φ := {τ | P.placeClass (P.N₀.dvd_mul_right _) τ = 1}def
Data.line 131computationw Definition. For admissible data D over parameters P, a natural number j and an infinite place \sigma \in \Phi (D), the weight w(D, j, \sigma ) = (b_1(D) if \sigma \in \operatorname{thick}(D), b_2(D) otherwise) + j\cdot h(D) + h_2(D), a natural number.Definition 2.7, p. 4 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/AdmissibleData.lean · line 131 def w (σ : D.Φ) := ite (σ ∈ D.thick) D.b₁ D.b₂ + j * D.h + D.h₂def
Data.line 134computationnominalWeight Definition. For admissible data D over parameters P and an infinite place \sigma \in \Phi (D), the nominal weightnominalWeight(D, \sigma ) = a(D)/x(D) if \sigma \in \operatorname{thick}(D) and a(D)/x_1(D) otherwise, a real number.Definition 2.7, p. 4 of Admissible data: scales, ranks and sizes, and their existence Definition 2.6, p. 6 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Data/AdmissibleData.lean · line 134 def nominalWeight (σ : D.Φ) := D.a / ite (σ ∈ D.thick) D.x D.x₁def
Data.lines 138–139computationprimeSum Definition. For admissible data D over parameters P, a real number y and an infinite place \sigma \in \Phi (D),primeSum(D, y, \sigma ) = \sum _{1 \le \nu \le a(D)}lambdaClass(d(P), 1, \nu )\cdot \max(y/\nu -nominalWeight(D,placeOfInt(D, -\nu )\cdot \sigma), 0), a real number; herelambdaClass(d(P), 1, \nu ) = \Lambda (\nu )(1 - \chi _K(\nu )) (\Lambda von Mangoldt's function, \chi _K(\nu ) = (\nu /d(P)) the Legendre symbol) and the productplaceOfInt(D, -\nu )\cdot \sigma is taken in the group \Phi (D).Definition 2.8, p. 4 of Admissible data: scales, ranks and sizes, and their existence Definition 2.6, p. 6 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Data/AdmissibleData.lean · line 138 def primeSum σ := ∑ ν ∈ .Icc 1 D.a,abbrev
Data.line 143computationbudget Definition (abbreviation). For admissible data D over parameters P, the error budget budget(D) = f(D)\cdot a(D)\cdot \mathit{logB}(D)^{3} = f\cdot a\cdot (\log b)^{3}, a real number.Definition 2.8, p. 4 of Admissible data: scales, ranks and sizes, and their existence Definition 2.4, p. 5 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Data/AdmissibleData.lean · line 143 abbrev budget := D.f * D.a * D.logB ^ 3def
Data.line 147computationjetSize Definition. For admissible data D over parameters P and a natural number j,jetSize(D, j) = \log (j!) - j\cdot \log(bigOmega(P, s(D))/gProd(D)), a real number (\Omega =bigOmega(P, s(D)), g =gProd(D)).Definition 2.8, p. 4 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/AdmissibleData.lean · line 147 def jetSize := log (Nat.factorial j) - j * (P.bigOmega D.s / D.gProd).logdef
Data.line 151computationdirCost Definition. For admissible data D over parameters P, the cost of one directiondirCost(D) = \sum _{\sigma \in \Phi (D)} (jetSize(D, w(D, 0, \sigma )) -primeSum(D,nominalWeight(D, \sigma ), \sigma)), a real number.Definition 2.8, p. 4 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/AdmissibleData.lean · line 151 def dirCost := ∑ σ, (D.jetSize (D.w 0 σ) - D.primeSum (D.nominalWeight σ) σ)def
Data.lines 18–19assemblychosenEquiv For parameters P and admissible data D over P (both implicit) and an index i \in \{0, 1\}:chosenEquiv(i) is a bijection from \Phi (D), the infinite places of E(D), ontoChosenPlace(D, i), the finite places w of E(D) that contain bothpiGBar(D) and g(D)(i); it is chosen (byNonempty.) fromsome Parameters.applied to the prime p = g(D)(i) \equiv 1 \bmod N_1(D)\cdot d(P) (fieldnonempty_infinitePlace_equiv_finPlace g_modEq_one) and the integer a =piGBar(D), whose normpiGBar(D)\cdot \operatorname{conj}(piGBar(D)) is g(D)(i) times a natural number prime to g(D)(i) (Data.).exists_cofactor Lemma 5.1, p. 9 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/ChosenPlaceLevels.lean · line 18 def chosenEquiv : D.Φ ≃ D.ChosenPlace i :=lemma
Data.lines 23–24one-stepcard_chosenPlace For parameters P and admissible data D over P (both implicit) and an index i \in \{0, 1\}: the number of chosen places above g(D)(i), \#ChosenPlace(D, i), equals f(D), the number of infinite places of E(D).Lemma 5.1, p. 9 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/ChosenPlaceLevels.lean · line 23 lemma card_chosenPlace : Fintype.card (D.ChosenPlace i) = D.f :=lemma
Data.lines 26–28assemblyv_N_eq_exp_neg_one For parameters P and admissible data D over P (both implicit), a finite place w of E(D) and h : the level N(D) lies in w (N(D) \in w as an ideal of the ring of integers): the valuation of N(D) in the completionLocField(w) = E(D)_w is \exp (-1) (multiplicative notation: Mathlib's.in the value group \mathbb{Z}^{m0} of the discrete valuation, additive order 1, not the real number e^{-1}), i.e. N(D) is a uniformiser at w.exp (-1) Structured proof, 1 step Lemma 5.2, p. 9 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/ChosenPlaceLevels.lean · line 26 lemma v_N_eq_exp_neg_one (h : ↑D.N ∈ w.1) : Valued.v (D.N : LocField w) = .exp (-1) := bylemma
Data.lines 30–32assemblyintValuation_pi For parameters P and admissible data D over P (both implicit), a finite place w of E(D) and h : \pi (D) \in w, where \pi (D) is the chosen integer of E(D) with \pi (D)\cdot \operatorname{conj}(\pi (D)) = N(D): the w-adic valuation of \pi (D) is \exp (-1) (\pi (D) has valuation exactly 1 at w:.in the value group \mathbb{Z}^{m0}, the value of a uniformiser, not the real number e^{-1}).exp (-1) Structured proof, 4 steps Lemma 5.2, p. 9 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/ChosenPlaceLevels.lean · line 30 lemma intValuation_pi (h : D.π ∈ w.1) : w.intValuation D.π = .exp (-1) :=def
Data.line 36computationchosenGroupOrder For parameters P and admissible data D over P (both implicit):chosenGroupOrder(of D) is the order of the finite group \prod _x \operatorname{GL}_{r(D)\cdot t(D)}(\mathbb{F}_{\text\{ chosen \}(D)(x)}), the product over all chosen places x = (i, w) (i \in \{0, 1\}, w \inChosenPlace(D, i)) of the general linear groups of rank r(D)\cdot t(D) over the residue fields \mathbb{F}_w =ResField(w); a natural number (Lean derivesNeZero).Definition 5.3, p. 9 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/ChosenPlaceLevels.lean · line 36 def chosenGroupOrder := Nat.card (∀ x, GL (Fin (D.r * D.t)) (ResField (D.chosen x))) deriving NeZerolemma
Data.lines 38–39automationprod_q_chosenPlace For parameters P and admissible data D over P (both implicit): \prod _x q(chosen(D)(x)) =gProd(D)^{f(D)}, the product over all chosen places of their absolute norms; each chosen place above g(D)(i) has norm g(D)(i) (Data.) and there are f(D) of them (q_eq_g card_chosenPlace).Lemma 5.1, p. 9 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/ChosenPlaceLevels.lean · line 38 lemma prod_q_chosenPlace : ∏ x, (D.chosen x).q = D.gProd ^ D.f := by simp [chosen,abbrev
Data.line 44aliaschosenLevel For parameters P and admissible data D over P (both implicit), a finite type n and an instanceFintypen:chosenLevel=levelOf(chosen(D), \perp) \subseteq Gf(E(D), n), the subgroup of elements of K_0 = Kf(E(D), n) (the stabiliser of the standard lattice) whose reductions modulo every chosen place are 1: the principal congruence subgroup of level 1 at the chosen places.Definition 5.3, p. 9 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/ChosenPlaceLevels.lean · line 44 abbrev chosenLevel := levelOf (n := n) D.chosen ⊥lemma
Data.lines 46–47one-stepisChosen_star_iff For parameters P and admissible data D over P (both implicit), a finite place w of E(D), an index i \in \{0, 1\} and the premise g(D)(i) \in w (w lies above g(D)(i)): the conjugate place \operatorname{conj}(w) = star(w) is chosen if and only if w is not chosen (byParameters.with p = g(D)(i) and a =star_mem_iff piGBar(D)).Lemma 5.1, p. 9 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/ChosenPlaceLevels.lean · line 46 lemma isChosen_star_iff {i} : ↑(D.g i) ∈ w.1 → (D.IsChosen (star w) ↔ ¬D.IsChosen w) :=lemma
Data.lines 51–54assemblycard_GL_dvd_chosenGroupOrder For parameters P and admissible data D over P (both implicit), a finite type n with an instanceFintypen, and h : \#n \le r(D)\cdot t(D): the order of \prod _x \operatorname{GL}_n(\mathbb{F}_{\text\{ chosen \}(D)(x)}), over all chosen places x, divideschosenGroupOrder(of D).Structured proof, 3 steps Lemma 5.4, p. 9 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/ChosenPlaceLevels.lean · lines 51–52 lemma card_GL_dvd_chosenGroupOrder (h : Fintype.card n ≤ D.r * D.t) : .card (∀ x, GL n (ResField (D.chosen x))) ∣ D.chosenGroupOrder :=instance
Data.lines 56–57automationisConjApart_chosen For parameters P and admissible data D over P (both implicit): the family chosen(D) : (\sum _{i \in \{0,1\}}ChosenPlace(D, i)) \toFinPlace(E(D)) is conjugation-apart (classIsConjApart): it is injective (places above g(D)(0) \ne g(D)(1) have different norms,Data.), and the conjugate of chosen(D)(x) is never chosen(D)(y) (a chosen place's conjugate is not chosen,q_eq_g isChosen_star_iff).Lemma 5.1, p. 9 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/ChosenPlaceLevels.lean · line 56 instance isConjApart_chosen : IsConjApart D.chosen := ⟨by grind [g_injective, q_eq_g, chosen,lemma
Data.lines 59–60automationrange_chosen For parameters P and admissible data D over P (both implicit): the image of chosen(D) is the set {w |IsChosen(D, w)} of chosen finite places of E(D).Lemma 5.1, p. 9 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/ChosenPlaceLevels.lean · lines 59–60 lemma range_chosen : .range D.chosen = {w | D.IsChosen w} := by ext; rw [Set.mem_ofPred, isChosen_iff]; aesoplemma
Data.lines 62–63one-stepprincipalLevel_le_chosenLevel For parameters P and admissible data D over P (both implicit), a finite type n with an instanceFintypen, an integer a of E(D) and h :piGBar(D) divides a:principalLevel(n, a) \lechosenLevel, since every chosen place containspiGBar(D) and hence a.Lemma 5.4, p. 9 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/ChosenPlaceLevels.lean · line 62 lemma principalLevel_le_chosenLevel {a} (h : D.piGBar ∣ a) : principalLevel n a ≤ D.chosenLevel :=lemma
Data.lines 67–70assemblyclassAut_eq_bot_of_le_chosenLevel For parameters P and admissible data D over P (both implicit), a finite type n with an instanceFintypen, a subgroup K of Gf(E(D), n) withhK: K \lechosenLevel, and h : \#n \le 2\cdot n(D, m(D)): for every g \in Gf(E(D), n),classAut(stdRatPoints, K, g) = \{1\}; that is, the stabiliser \Gamma \cap gKg^{-1} of the coset gK in the rational points \Gamma = U_n(E(D)) \subset Gf is trivial (K is a free level).Structured proof, 3 steps Proposition 5.5, p. 9 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/ChosenPlaceLevels.lean · lines 67–68 lemma classAut_eq_bot_of_le_chosenLevel (hK : K ≤ chosenLevel) (h : Fintype.card n ≤ 2 * D.n D.m) : ∀ g, classAut stdRatPoints K g = ⊥ := classAut_eq_bot D.isConjApart_chosen.1lemma
Data.lines 75–79assemblycard_classAut_dvd_chosenGroupOrder For parameters P and admissible data D over P (both implicit), a finite type n with an instanceFintypen, a subgroup K of Gf(E(D), n),hn: \#n \le 2\cdot n(D, m(D)),hK: K \le Kf(E(D), n) (K stabilises the standard lattice) and g \in Gf(E(D), n): the order ofclassAut(stdRatPoints, K, g), the stabiliser in U_n(E(D)) of the coset gK, divideschosenGroupOrder(of D) (Minkowski's lemma).Structured proof, 4 steps Proposition 5.5, p. 9 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/ChosenPlaceLevels.lean · lines 75–76 lemma card_classAut_dvd_chosenGroupOrder (hn : Fintype.card n ≤ 2 * D.n D.m) (hK : K ≤ Kf _ n) g : .card (classAut stdRatPoints K g) ∣ D.chosenGroupOrder := .trans (Subgroup.card_dvd_of_injectivelemma
Data.lines 81–82automationIsChosen. not_star For parameters P and admissible data D over P (both implicit), a finite place w of E(D) and the premiseIsChosen(D, w): the conjugate place star(w) is not chosen.Lemma 5.1, p. 9 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/ChosenPlaceLevels.lean · lines 81–82 lemma IsChosen.not_star : D.IsChosen w → ¬D.IsChosen (star w) := by grind [isChosen_iff, isChosen_star_iff]lemma
Data.lines 86–90argumentomega_zpow_ne_one For parameters P and admissible data D over P (both implicit), an integer n with h : n \ne 0 and |n| \le 8\cdot m(D) (by default found byomega), and a finite place w of E(D): (\omega (D)^n)(w) \ne 1 if and only ifIsChosen(D, w). Here \omega (D) is the family of residue characters (at a chosen place w of order exactly M\omega (P, s(D)) = (N_0(P)\cdot d(P))^{s(D)+6}, trivial elsewhere) and the power is pointwise.Structured proof, 2 steps Lemma 5.6, p. 10 of Admissible data: scales, ranks and sizes, and their existence Input 8, p. 12 of Good forms and rows: equal Hecke traces on unitary groups that differ at the real places
The Lean statement
New/Data/ChosenPlaceLevels.lean · lines 86–87 lemma omega_zpow_ne_one (n : ℤ) (h : n ≠ 0 ∧ n.natAbs ≤ 8 * D.m := by omega) w : (D.ω ^ n) w ≠ 1 ↔ D.IsChosen w := byinstance
(anonymous)lines 92–93one-stepFor parameters P and admissible data D over P (both implicit):HasLogUpper(D)(M\omega (P, s(D)), \mathit{logB}(D)/9), i.e. M\omega (P, s(D)) = (N_0(P)\cdot d(P))^{s(D)+6} \le \exp (\mathit{logB}(D)/9); the exponent comparison is itself proved byle_of_hasLogBound.The Lean statement
New/Data/ChosenPlaceLevels.lean · line 92 instance : D.HasLogUpper (P.Mω D.s) (D.logB / 9) :=instance
(anonymous)lines 95–98automationFor parameters P and admissible data D over P (both implicit):HasLogUpper(D)(\logchosenGroupOrder, 32\cdot \mathit{logX}(D)), i.e. \logchosenGroupOrder\le x(D)^{32}; sincechosenGroupOrder\le \prod _x q(chosen(D)(x))^{(r(D)\cdot t(D))^{2}} =gProd(D)^{f(D)\cdot (r(D)\cdot t(D))^{2}} (card_GL_le,card_ResField,prod_q_chosenPlace) and f(D)\cdot (r(D)\cdot t(D))^{2}\cdot \loggProd(D) \le x(D)^{32} byle_of_hasLogBound.The Lean statement
New/Data/ChosenPlaceLevels.lean · line 95 instance : D.HasLogUpper (.log D.chosenGroupOrder) (32 * D.logX) := ⟨bylemma
exists_three_term_freelines 20–36argumentBehrend's construction. For commutative groups G and H, a group homomorphism \varphi : G \to H, elements c, g \in G, natural numbers n, M, L withhL: 0 < L and h : (L\cdot M)^n \leorderOf(\varphi (g)): there is a finite set T \subseteq G such that (1) every \sigma \in T equals c\cdot g^e for some natural number e; (2) M^n/(n\cdot M^{2}) \le \#T (a real quotient with Lean's division, x/0 = 0: for n\cdot M = 0 the bound is 0 \le \#T); and (3) for all natural numbers i, j with 0 < i < j \le L and all \sigma , \tau , \rho \in T, \varphi (\tau /\sigma )^j = \varphi (\rho /\sigma )^i implies \varphi (\tau /\sigma ) = 1.Structured proof, 11 steps Proposition 6.1, p. 10 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/DataExist.lean · lines 20–23 lemma exists_three_term_free {G H} [CommGroup G] [CommGroup H] (φ : G →* H) c g (n M L : ℕ) (hL : 0 < L) (h : (L * M) ^ n ≤ orderOf (φ g)) : ∃ T, (∀ σ ∈ T, ∃ e, σ = c * g ^ e) ∧ (M ^ n / (n * M ^ 2) : ℝ) ≤ #T ∧ ∀ i j, 0 < i → i < j → j ≤ L → ∀ σ ∈ T, ∀ τ ∈ T, ∀ ρ ∈ T, φ (τ / σ) ^ j = φ (ρ / σ) ^ i → φ (τ / σ) = 1 := (exists_large_sphere n M).elim fun k _ ↦ bylemma
exists_mul_principallines 41–45argumentPigeonhole in the class group. For a number field K with class number h_K and families I, J of h_K + 1 finite places of K (indexed by \operatorname{Fin}(h_K + 1)) such that H : every product I_i\cdot J_i of prime ideals is principal: there are indices i \ne j with I_i\cdot J_j principal.Structured proof, 3 steps Lemma 6.2, p. 11 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/DataExist.lean · lines 41–42 lemma exists_mul_principal {K} [Field K] [NumberField K] {I J : Fin (classNumber K + 1) → FinPlace K} (H : ∀ i, ((I i).1 * (J i).1).IsPrincipal) : ∃ i j, i ≠ j ∧ ((I i).1 * (J j).1).IsPrincipal :=lemma
exists_datalines 49–108argumentExistence of admissible data. For parameters P and a real number \varepsilon with e0 : 0 < \varepsilon /6 and e1 : \varepsilon < 1/100: for all sufficiently large real x (eventually alongatTop) there are admissible data D over P with x(D) = x, \log x_1(D) = x^{\varepsilon /6}, (10^{6}\cdot \log x)^{2} \le \log x_1(D), \log \log b(D) = \varepsilon \cdot \log x, andtowerDeg(s(D))/\log b(D) \le \#\operatorname{thick}(D).Structured proof, 44 steps Theorem A, p. 1 of Admissible data: scales, ranks and sizes, and their existence Input 7, p. 11 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Data/DataExist.lean · lines 49–51 lemma exists_data P {ε : ℝ} (e0 : 0 < ε / 6) (e1 : ε < 1 / 100) : ∀ᶠ x in atTop, ∃ D : Data P, D.x = x ∧ log D.x₁ = x ^ (ε / 6) ∧ (1e6 * log x) ^ 2 ≤ log D.x₁ ∧ log (log D.b) = ε * log x ∧ towerDeg D.s / log D.b ≤ #D.thick := bystructure
Parameterslines 23–28assemblyStructure. 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).Definition 2.1, p. 3 of The parameters and the CM field: places, Frobenius elements, the different Definition 2.2, p. 3 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Data/Different.lean · line 23 @[local grind] structure Parameters whereinstance
(anonymous)line 34automationInstance. For parameters P:NeZeroN_0(P), i.e. N_0(P) \ne 0 (if N_0(P) = 0, then N_0(P) \mid 2(d(P) + 1) would force 2(d(P) + 1) = 0).The Lean statement
New/Data/Different.lean · line 34 instance : NeZero P.N₀ := ⟨by grind [zero_dvd_iff]⟩instance
Parameters.lines 36–37automationinstHeegD 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).Lemma 3.1, p. 4 of The parameters and the CM field: places, Frobenius elements, the different Lemma 4.2, p. 12 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Data/Different.lean · line 36 @[local grind! .] instance instHeegD : PrimeSevenModEight P.d :=def
towerDegline 41computationDefinition. For a natural number s,towerDeg(s) = 3^{\lfloor \log _3 s\rfloor +5}\cdot 2^s, a natural number (Lean derivesNeZero); 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.Definition 2.1, p. 2 of Admissible data: scales, ranks and sizes, and their existence Definition 2.2, p. 3 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 41 def _root_.towerDeg := 3 ^ (.log 3 s + 5) * 2 ^ s deriving NeZeroabbrev
Parameters.line 44computationN₁ 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.Definition 2.1, p. 2 of Admissible data: scales, ranks and sizes, and their existence Definition 2.2, p. 3 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 44 abbrev N₁ := P.N₀ * towerDeg slemma
Parameters.lines 47–50argumentdvd_norm_c₀ 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.Structured proof, 4 steps Lemma 3.1, p. 4 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 47 lemma dvd_norm_c₀ {s} (hp : p.Prime) (h : p ∣ P.N₁ s) : p ∣ (P.d + 1) / 4 := (hp.dvd_or_dvdlemma
Parameters.line 52automationlt_d For parameters P: 64 < d(P) (indeed 18480 \le N_0(P) \le 2(d(P) + 1)).Lemma 3.1, p. 4 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 52 lemma lt_d : 64 < P.d := by grind [→ dvd_trans]lemma
Parameters.lines 55–58argumentchiK_eq_one_of_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)}).Structured proof, 2 steps Lemma 3.1, p. 4 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 55 lemma chiK_eq_one_of_dvd {s} (hp : p.Prime) (h : p ∣ P.N₁ s) : chiK P.d p = 1 := bylemma
Parameters.lines 60–61automationthirteen_le_of_chiK_ne_one For parameters P, a natural number p withhp: 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 bychiK_eq_one_of_dvd.)Lemma 3.1, p. 4 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 60 lemma thirteen_le_of_chiK_ne_one (hp : p.Prime) : chiK P.d p ≠ 1 → 13 ≤ p := Not.imp_symm fun _ ↦abbrev
Parameters.line 64aliasK 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}.Definition 2.1, p. 2 of Admissible data: scales, ranks and sizes, and their existence Definition 2.2, p. 3 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 64 abbrev K := QuadField P.ddef
Parameters.line 68computationMω Definition. For parameters P and an exponent s, M\omega (P, s) = (N_0(P)\cdot d(P))^{s+6}, a natural number (Lean derivesNeZero). 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.67–79); the definition is just the number.lean Definition 2.1, p. 2 of Admissible data: scales, ranks and sizes, and their existence Definition 2.2, p. 3 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 68 def Mω := (P.N₀ * P.d) ^ (s + 6) deriving NeZerolemma
Parameters.lines 71–72automationN₁_mul_d_dvd_M_omega 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}).Lemma 3.1, p. 4 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 71 lemma N₁_mul_d_dvd_M_omega {P s} : N₁ P s * P.d ∣ P.Mω s := by grw [mul_right_comm, towerDeg,lemma
Parameters.lines 74–75one-stepcoprime_N₁_d 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) bychiK_eq_one_of_dvd).Lemma 3.1, p. 4 of The parameters and the CM field: places, Frobenius elements, the different Lemma 4.2, p. 12 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Data/Different.lean · line 74 lemma coprime_N₁_d : (P.N₁ s).Coprime P.d :=def
Parameters.line 79assemblyE 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'sCyclotomicField: by definition the splitting field over K of the N_1(P, s)-th cyclotomic polynomial \Phi _{N_1(P, s)}; by a separateMathlibtheorem 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 andNumberFieldfor it.Definition 2.1, p. 2 of Admissible data: scales, ranks and sizes, and their existence Definition 2.3, p. 4 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 79 def E := CyclotomicField (P.N₁ s) P.K deriving Field, Algebra P.K, NumberFieldabbrev
Parameters.line 83aliasΦ 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).Definition 2.1, p. 2 of Admissible data: scales, ranks and sizes, and their existence Definition 2.3, p. 4 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 83 protected abbrev Φ := InfinitePlace (P.E s)def
Parameters.line 87computationbigOmega 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.Definition 2.1, p. 2 of Admissible data: scales, ranks and sizes, and their existence Definition 2.3, p. 4 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 87 def bigOmega := (chowlaSelbergConst P.d).exp * (2 * .pi / rootDiscr (P.E s))instance
(anonymous)line 89one-stepInstance. For parameters P and an exponent s: E(P, s) is the N_1(P, s)-th cyclotomic extension of K(P) (IsCyclotomicExtension\{N_1(P, s)\} K E): E(P, s) contains a primitive root of unity of order N_1(P, s) and is generated over K(P) by the roots of unity of order dividing N_1(P, s). N_1(P, s) is the order of the roots; the degree [E(P, s) : K(P)] is \varphi (N_1(P, s)).The Lean statement
New/Data/Different.lean · line 89 instance : IsCyclotomicExtension {P.N₁ s} P.K (P.E s) := CyclotomicField.isCyclotomicExtension ..lemma
Parameters.lines 92–100argumentirreducible_cyclotomic For parameters P and an exponent s: the N_1(P, s)-th cyclotomic polynomial is irreducible over K(P).Structured proof, 6 steps Lemma 4.1, p. 5 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 92 lemma irreducible_cyclotomic : Irreducible (cyclotomic (P.N₁ s) P.K) := let M := cycloField P.ddef
Parameters.lines 104–108assemblytoCycloField Definition. For parameters P and an exponent s (both implicit),toCycloFieldis a chosen \mathbb{Q}-algebra homomorphism E(P, s) \tocycloField(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.). Applied to an element y of E(P, s) it giveslift toCycloField(y).Lemma 4.2, p. 5 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 104 def toCycloField {P s} : E P s →ₐ[ℚ] cycloField (P.N₁ s * P.d) :=instance
(anonymous)line 110one-stepInstance. For parameters P and an exponent s: E(P, s) is an abelian Galois extension of \mathbb{Q} (it embeds bytoCycloFieldinto the abelian extension \mathbb{Q}(\zeta _{N_1(P, s)\cdot d(P)})).The Lean statement
New/Data/Different.lean · line 110 instance : IsAbelianGalois ℚ (P.E s) := (isAbelianGalois {P.N₁ s * P.d} ..).of_algHom toCycloFieldinstance
(anonymous)line 112one-stepInstance. For parameters P and an exponent s: E(P, s) is an abelian Galois extension of K(P) (top of the tower \mathbb{Q} \subset K \subset E).The Lean statement
New/Data/Different.lean · line 112 instance : IsAbelianGalois P.K (P.E s) := .tower_top ℚ ..instance
(anonymous)line 114one-stepInstance. For parameters P and an exponent s: E(P, s) is totally complex (an extension of the imaginary quadratic field K(P)).The Lean statement
New/Data/Different.lean · line 114 instance : IsTotallyComplex (P.E s) := isTotallyComplex_of_algebra P.K _lemma
Parameters.lines 116–117automationalgHom_eq_of_mk_eq 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).Lemma 4.3, p. 5 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 116 lemma algHom_eq_of_mk_eq {φ ψ : P.E s →ₐ[P.K] ℂ} (h : InfinitePlace.mk φ.1 = .mk ψ.1) : φ = ψ :=instance
(anonymous)lines 120–123assemblyInstance. For parameters P and an exponent s: \Phi (P, s) is a commutative group. The map \operatorname{Gal}(E/K) \to \Phi (P, s), g \mapsto the infinite place of lift \circ g (lift : E \to \mathbb{C} a fixed K-embedding,IsAlgClosed.), is a bijection — injective bylift algHom_eq_of_mk_eq, surjective because \operatorname{Gal}(E/K) acts transitively on the K-embeddings (exists_smul_eq_of_comap_eq) — and the structure of the abelian group \operatorname{Gal}(E/K) is transported along its inverse.The Lean statement
New/Data/Different.lean · line 120 instance : CommGroup (P.Φ s) := (Equiv.ofBijective (fun g : Gal(P.E s/P.K) ↦def
Parameters.line 127aliasgalOfPlace 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 \mapstogalOfPlace(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.Definition 4.4, p. 5 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 127 def galOfPlace : P.Φ s ≃* Gal(P.E s/P.K) := Equiv.mulEquiv _def
Parameters.line 131assemblyplaceMulEquiv Definition. For parameters P and an exponent s,placeMulEquiv(P, s) : \Phi (P, s) \simeq * (\mathbb{Z}/N_1(P, s))^\times isgalOfPlace(P, s) followed by the cyclotomic character \operatorname{Gal}(E/K) \cong (\mathbb{Z}/N_1(P, s))^\times (autEquivPow, which needsirreducible_cyclotomic).Definition 4.4, p. 5 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 131 def placeMulEquiv := (P.galOfPlace s).trans (autEquivPow _ (P.irreducible_cyclotomic s))def
Parameters.line 135computationplaceOfInt Definition. For parameters P, an exponent s and an integer \nu,placeOfInt(P, s, \nu ) \in \Phi (P, s) isplaceMulEquiv(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.Definition 2.1, p. 2 of Admissible data: scales, ranks and sizes, and their existence Definition 4.4, p. 5 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 135 def placeOfInt ν := if h : IsUnit (Int.cast ν) then (P.placeMulEquiv s).symm h.unit else 1def
Parameters.line 139computationplaceClass 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 isplaceMulEquiv(P, s) followed by reduction (\mathbb{Z}/N_1(P, s))^\times \to (\mathbb{Z}/m)^\times. Other texts writeplaceClass(P, h) for the proof h at hand.Definition 2.1, p. 2 of Admissible data: scales, ranks and sizes, and their existence Definition 4.4, p. 5 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 139 def placeClass {s m} (d : m ∣ P.N₁ s) := (ZMod.unitsMap d).comp (P.placeMulEquiv s).toMonoidHomdef
Parameters.line 142aliasζ 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'sIsCyclotomicExtension.).zeta Definition 2.3, p. 4 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 142 def ζ := zeta (P.N₁ s) P.K (P.E s)instance
(anonymous)lines 145–146assemblyInstance. For parameters P and an exponent s: a CM type on E(P, s), i.e. for each infinite place v the embedding \Phi _v = lift \circgalOfPlace(P, s)(v) : E \to \mathbb{C} (K-linear), with mk(\Phi _v) = v.The Lean statement
New/Data/Different.lean · line 145 instance : CMType (P.E s) :=lemma
Parameters.line 148automationphi_algebraMap 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}).Lemma 4.5, p. 6 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 148 @[simp] lemma phi_algebraMap v x : Φ v (algebraMap P.K (P.E s) x) = x := by simp [Φ]lemma
Parameters.lines 156–158automationexpand_pow_cyclotomic 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).Theorem A, p. 2 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · lines 156–157 lemma 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 := bylemma
Parameters.lines 162–164automationexpand_towerDeg_cyclotomic 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)).Theorem A, p. 2 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · lines 162–163 lemma Parameters.expand_towerDeg_cyclotomic : expand ℂ (towerDeg s) (cyclotomic P.N₀ ℂ) = cyclotomic (P.N₁ s) ℂ := by erw [expand_mul, expand_pow_cyclotomic,lemma
Parameters.lines 168–170automationcard_infinitePlace_E 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)}).Theorem A, p. 2 of The parameters and the CM field: places, Frobenius elements, the different Input 5, p. 8 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Data/Different.lean · lines 168–169 lemma Parameters.card_infinitePlace_E s : numInfPlaces (P.E s) = towerDeg s * P.N₀.totient := by simp [mul_comm, card_congr (placeMulEquiv ..).1,lemma
Parameters.lines 174–176automationcard_placeClass_eq 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) withplaceClass(P, d)(v) = 1 in (\mathbb{Z}/N_0(P))^\times istowerDeg(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).Theorem A, p. 2 of The parameters and the CM field: places, Frobenius elements, the different Input 5, p. 8 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Data/Different.lean · lines 174–175 lemma 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,lemma
Parameters.lines 180–181one-stepisPrimitiveRoot_zeta For parameters P and an exponent s (both implicit): \zeta (P, s) is a primitive N_1(P, s)-th root of unity.Definition 2.3, p. 4 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 180 lemma Parameters.isPrimitiveRoot_zeta : IsPrimitiveRoot (P.ζ s) (P.N₁ s) :=lemma
Parameters.line 183automationphi_mul 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)).Lemma 4.5, p. 6 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 183 lemma Parameters.phi_mul v v' x : Φ (v * v') x = Φ v (P.galOfPlace s v' x) := by simp [Φ]lemma
Parameters.lines 185–187argumentstar_ζ For parameters P and an exponent s (both implicit): \operatorname{conj}(\zeta (P, s)) = \zeta (P, s)^{-1}, where \operatorname{conj} =staris complex conjugation of the CM field E(P, s).Structured proof, 2 steps Lemma 4.5, p. 6 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 185 @[simp] lemma Parameters.star_ζ : star (P.ζ s) = (P.ζ s)⁻¹ := (Φ 1).injective (bylemma
Parameters.lines 189–190automationgalOfPlace_zeta 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 classplaceClass(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).Theorem A, p. 2 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · lines 189–190 lemma Parameters.galOfPlace_zeta v : P.galOfPlace s v (P.ζ s) = P.ζ s ^ (P.placeClass dvd_rfl v).1.val := by simp [placeClass, placeMulEquiv, ζ]lemma
Parameters.lines 193–194automationtwo_pow_dvd_N₁ 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 \midtowerDeg(s)).Lemma 3.1, p. 4 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 193 lemma Parameters.two_pow_dvd_N₁ : 2 ^ (s + 1) ∣ P.N₁ s := by grind [Parameters, towerDeg,lemma
Parameters.lines 196–197automationplaceOfInt_pow 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).Lemma 4.5, p. 6 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · lines 196–197 lemma Parameters.placeOfInt_pow i : P.placeOfInt s ν ^ i = P.placeOfInt s (ν ^ i) := by cases i <;> simp [placeOfInt, ← map_pow]; rfllemma
Parameters.lines 199–202automationplaceClass_placeOfInt 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 ofplaceClass(P, d)(placeOfInt(P, s, \nu )) in \mathbb{Z}/m is the class of \nu.Structured proof, 1 step Lemma 4.5, p. 6 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · lines 199–200 lemma Parameters.placeClass_placeOfInt (h : IsCoprime ν P.N₀) {m d} : (@placeClass P s m d (P.placeOfInt s ν)).1 = ν := bylemma
Parameters.lines 206–209automationgalOfPlace_placeOfInt_zeta 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).Structured proof, 1 step Theorem A, p. 2 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · lines 206–207 lemma Parameters.galOfPlace_placeOfInt_zeta (h : IsCoprime ν P.N₀) : P.galOfPlace s (P.placeOfInt s ν) (P.ζ s) = P.ζ s ^ ν := by simp [galOfPlace_zeta,lemma
Parameters.lines 212–215argumentpow_d_ne_neg_one For parameters P (implicit) and a natural number n: (d(P) \bmod N_0(P))^n \ne -1 in \mathbb{Z}/N_0(P).Structured proof, 3 steps Lemma 3.2, p. 5 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 212 lemma Parameters.pow_d_ne_neg_one n : (P.d : ZMod P.N₀) ^ n ≠ -1 := bylemma
Parameters.lines 217–220argumentplaceClass_placeOfInt_eq_neg_one 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).Structured proof, 3 steps Lemma 4.5, p. 6 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · 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.transdef
Parameters.line 224computationplacePerm 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.Definition 4.6, p. 7 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 224 def Parameters.placePerm {P} s (σ : Gal(ℂ/K P)) := Equiv.mulLeft (.mk (.comp σ (Φ 1)) : P.Φ s)lemma
Parameters.lines 229–231argumentplacePerm_spec 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).Structured proof, 1 step Lemma 4.7, p. 7 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 229 lemma Parameters.placePerm_spec {P s σ} v x : σ (Φ v x) = Φ (@placePerm P s σ v) x := bylemma
Parameters.lines 239–247argumentexists_zeta_pow_eq 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.Structured proof, 4 steps Lemma 4.8, p. 7 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 239 lemma Parameters.exists_zeta_pow_eq (h : IsOfFinOrder y) : ∃ k < P.N₁ s, ζ P s ^ k = y :=lemma
Parameters.lines 249–250automationprod_phi_eq_norm 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}).Lemma 4.8, p. 7 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 249 lemma Parameters.prod_phi_eq_norm : ∏ v, Φ v y = Algebra.norm P.K y := byabbrev
Parameters.line 260aliaszetaInt 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).Definition 5.1, p. 8 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 260 abbrev zetaInt P s := (@isPrimitiveRoot_zeta P s).toIntegerlemma
Parameters.lines 264–265one-stepisPrimitiveRoot_zetaInt 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.Definition 5.1, p. 8 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 264 lemma isPrimitiveRoot_zetaInt : IsPrimitiveRoot (P.zetaInt s) (P.N₁ s) :=abbrev
Parameters.line 268aliasc₀InE 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.Definition 5.1, p. 8 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 268 abbrev c₀InE P s : 𝓞 (E P s) := c₀ P.ddef
Parameters.line 271aliassqrtNegDInE Definition. For parameters P and an exponent s (explicit),sqrtNegDInE(P, s) \in \mathcal{O}_E is the image ofsqrtNegDInt(d(P)) = 2c_0 - 1 = \sqrt{-d(P)} \in \mathcal{O}_K.Definition 5.1, p. 8 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 271 def sqrtNegDInE P s := algebraMap _ (𝓞 (E P s)) (sqrtNegDInt P.d)lemma
Parameters.lines 276–277automationcoe_sqrtNegDInE For parameters P and an exponent s (implicit):sqrtNegDInE(P, s), viewed in E(P, s), equals the image ofsqrtNegD(d(P)) = \sqrt{-d(P)} \in K.Definition 5.1, p. 8 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 276 @[simp] lemma coe_sqrtNegDInE : (P.sqrtNegDInE s).val = algebraMap _ _ (sqrtNegD P.d) :=lemma
Parameters.lines 279–280automationstar_sqrtNegDInE For parameters P and an exponent s (implicit): \operatorname{conj}(sqrtNegDInE(P, s)) = -sqrtNegDInE(P, s).Lemma 5.2, p. 8 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 279 lemma star_sqrtNegDInE : star (P.sqrtNegDInE s) = -P.sqrtNegDInE s :=lemma
Parameters.lines 282–283automationstar_zetaInt_pow_mul For parameters P, an exponent s (implicit) and a natural number c: \operatorname{conj}(zetaInt(P, s))^c\cdotzetaInt(P, s)^c = 1.Lemma 5.2, p. 8 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 282 lemma star_zetaInt_pow_mul c : star (P.zetaInt s) ^ c * P.zetaInt s ^ c = 1 :=lemma
Parameters.lines 285–286automationsqrtNegDInE_dvd 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)).Lemma 5.2, p. 8 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · lines 285–286 lemma sqrtNegDInE_dvd : P.sqrtNegDInE s ∣ P.d := by simpa using congr(P.sqrtNegDInE s ∣ $(sqrtNegDInt_sq P.d))lemma
Parameters.lines 288–289automationc₀InE_mul_one_sub 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.Lemma 5.2, p. 8 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 288 lemma c₀InE_mul_one_sub P s : c₀InE P s * (1 - P.c₀InE s) = ↑((P.d + 1) / 4) := bylemma
Parameters.lines 291–292automationstar_c₀InE For parameters P and an exponent s (explicit): \operatorname{conj}(c_0InE(P, s)) = 1 - c_0InE(P, s).Lemma 5.2, p. 8 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · lines 291–292 lemma star_c₀InE P s : star (c₀InE P s) = 1 - P.c₀InE s := by grind [by simpa using @star_sqrtNegDInE P s]instance
(anonymous)lines 294–295one-stepInstance. For parameters P and an exponent s (implicit): E(P, s) is stably unramified (StablyUnram): it contains a primitive 5040-th root of unity, namely \zeta (P, s)^{N_1(P, s)/5040} (5040 = 7! divides N_1(P, s)).The Lean statement
New/Data/Different.lean · line 294 instance : StablyUnram (P.E s) := ⟨_,lemma
Parameters.lines 299–313argumentrelDifferent_spec For parameters P, an exponent s and an integer z of E(P, s) (all implicit) withhz: 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 locallet 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: seestatement_corrected).Structured proof, 8 steps Theorem C, p. 2 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · lines 299–301 lemma 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] = ⊤abbrev
Parameters.line 317aliasrelDifferentGen 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.Definition 5.1, p. 8 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 317 abbrev relDifferentGen P s := (cyclotomic (N₁ P s) _).derivative.eval (P.zetaInt s)lemma
Parameters.line 319one-steprelDifferentGen_dvd_N₁ For parameters P and an exponent s (implicit):relDifferentGen(P, s) divides N_1(P, s) in \mathcal{O}_E.Lemma 5.3, p. 9 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 319 lemma relDifferentGen_dvd_N₁ : P.relDifferentGen s ∣ P.N₁ s := by simp [↓relDifferent_spec]lemma
Parameters.lines 321–322one-steprelDifferentGen_ne_zero 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).Lemma 5.3, p. 9 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
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₁lemma
Parameters.lines 324–327assemblydifferent_eq_span_relDifferentGen_mul 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)}).Structured proof, 2 steps Theorem C, p. 2 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · lines 324–325 lemma different_eq_span_relDifferentGen_mul : differentIdeal ℤ _ = span {P.relDifferentGen s * P.sqrtNegDInE s} := bylemma
Parameters.lines 330–332one-stepcycloConductor_mem_different 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}.Structured proof, 1 step Lemma 5.3, p. 9 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 330 lemma cycloConductor_mem_different : ↑(P.N₁ s * P.d) ∈ differentIdeal ℤ (𝓞 (P.E s)) := bylemma
Parameters.lines 334–342argumentexists_unit_mul_relDifferentGen_real 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.Structured proof, 6 steps Lemma 5.4, p. 9 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · lines 334–335 lemma exists_unit_mul_relDifferentGen_real : ∃ c, star c * c = 1 ∧ star (c * P.relDifferentGen s) = c * P.relDifferentGen s := bydef
Parameters.lines 346–347assemblyϖ 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 inexists_unit_mul_relDifferentGen_real: \varpi _E = c\cdotrelDifferentGen(P, s)\cdot \sqrt{-d(P)}.Definition 5.5, p. 9 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 346 def ϖ P s :=lemma
Parameters.line 350automationstar_ϖ 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).Lemma 5.6, p. 9 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 350 lemma star_ϖ : star (P.ϖ s) = -P.ϖ s := by grind [ϖ, star_mul, star_sqrtNegDInE]lemma
Parameters.lines 353–354automationdifferent_eq_span_varpi 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).Theorem C, p. 2 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 353 lemma different_eq_span_varpi : differentIdeal ℤ _ = span {P.ϖ s} := bylemma
Parameters.lines 358–362argumentprod_varpi_eq_rootDiscr_pow 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)).Structured proof, 2 steps Theorem C, p. 2 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · lines 358–359 lemma prod_varpi_eq_rootDiscr_pow : ∏ v : P.Φ s, v (P.ϖ s).val = rootDiscr (P.E s) ^ numInfPlaces (P.E s) := bylemma
Parameters.lines 364–366argumentinfinitePlace_apply_varpi 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)}.Structured proof, 1 step Lemma 5.6, p. 9 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 364 lemma infinitePlace_apply_varpi (v : P.Φ s) : v (P.ϖ s).val = v (P.relDifferentGen s) * √P.d :=class
Data.lines 18–19assemblyHasLogBound Class. For parameters P, admissible data D over P, a Boolean u, a real number F and a real number l (an output parameter: instance search computes it from the shape of F),HasLogBound(D, u, F, l) is the proposition (its only fieldout) that |F| \le \exp (l) if u is true and \exp (l) \le F if u is false. The data D only index the class, so that instances can name the quantities of D. The exponent is not determined by F: a bound holds for many l (already for F = 1), and instance search returns the one exponent that the selected instance supplies, which may also depend on bounds present in the local context.Definition 3.1, p. 5 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · lines 18–19 class HasLogBound (D : Data P) (u : Bool) F (l : outParam ℝ) where out : ite u (|F| ≤ exp l) (exp l ≤ F)lemma
Data.lines 21–22automationc_ge For parameters P: 64 \le c(P), N_0(P) \le c(P), d(P) \le c(P) and \varphi (N_0(P)) \le c(P), \varphi Euler's totient function.Lemma 3.5, p. 7 of Admissible data: scales, ranks and sizes, and their existence Input 5, p. 8 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Data/Magnitudes.lean · line 21 lemma c_ge : 64 ≤ P.c ∧ P.N₀ ≤ P.c ∧ P.d ≤ P.c ∧ φ P.N₀ ≤ P.c := bylemma
Data.line 27automationr_odd For parameters P and admissible data D over P: r(D) is odd (r(D) = 3^{e+1} by the field r_{\mathrm{pow}}).Lemma 3.7, p. 7 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 27 lemma r_odd : Odd D.r := by grind [D.r_pow]lemma
Data.line 30automationm_even For parameters P and admissible data D over P: m(D) is even (m(D) = 2^{e+1} by the field m_{\mathrm{pow}}).Lemma 3.7, p. 7 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 30 lemma m_even : Even D.m := by grind [D.m_pow]lemma
Data.lines 34–35one-stepplaceClass_of_thick For parameters P and admissible data D over P: for every infinite place \sigma \in \Phi (D) with \sigma \in \operatorname{thick}(D),placeClass(P, h)(\sigma ) = -1 in (\mathbb{Z}/N_0(P))^\times, where h is the proof of N_0(P) \mid N_1(D) = N_0(P)\cdottowerDeg(s(D)) with witnesstowerDeg(s(D)); this is the fieldthick_eq_neg_one_modof D for the divisor m' = N_0(P) of N_0(P)\cdot 3^{\lfloor \log _3 s\rfloor +5}.Lemma 3.8, p. 7 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 34 lemma placeClass_of_thick : ∀ σ ∈ D.thick, P.placeClass ⟨_, rfl⟩ σ = -1 :=abbrev
Data.line 38aliasHasLogUpper Definition (abbreviation). For admissible data D over parameters P,HasLogUpper(D) =HasLogBound(D, true): for reals F and l,HasLogUpper(D)(F, l) says |F| \le \exp (l).Definition 3.1, p. 5 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 38 abbrev HasLogUpper := D.HasLogBound trueabbrev
Data.line 41aliasHasLogLower Definition (abbreviation). For admissible data D over parameters P,HasLogLower(D) =HasLogBound(D, false): for reals F and l,HasLogLower(D)(F, l) says \exp (l) \le F.Definition 3.1, p. 5 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 41 abbrev HasLogLower := D.HasLogBound falselemma
Data.line 43automationHasLogBound. pos For parameters P and admissible data D over P (D explicit), reals F and l, and an instanceHasLogLower(D)(F, l) (\exp (l) \le F): 0 < F.Lemma 3.2, p. 5 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 43 lemma HasLogBound.pos [D.HasLogLower F l] : 0 < F := by grindlemma
Data.lines 49–51automationHasLogBound. of_mem_Icc For parameters P, admissible data D over P, reals F, l', c, a Boolean u, a real l, reals G and H (both by default F), instancesHasLogLower(D)(G, l) (\exp (l) \le G) andHasLogUpper(D)(H, l') (|H| \le \exp (l')), a proof e of G \le F \le H (by default found bysimp) and a proof a of l' \le c if u is true and of c \le l if u is false (by default: case analysis on u andgrindwith the scale conditions of D):HasLogBound(D, u, F, c). Indeed \exp (l) \le G \le F \le H, so F > 0. If u is true, a gives l' \le c and |F| = F \le H \le |H| \le \exp (l') \le \exp (c). If u is false, a gives c \le l and \exp (c) \le \exp (l) \le G \le F. (Each case uses only its own comparison of exponents.)Lemma 3.3, p. 5 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · lines 49–51 lemma HasLogBound.of_mem_Icc {l} (G H := F) [D.HasLogLower G l] [D.HasLogUpper H l'] (e : F ∈ Icc G H := by simp) (a : ite u (l' ≤ c) (c ≤ l) := by cases u <;> grind [D.scale]) : HasLogBound D u F c := by grind [=_ exp_le_exp]instance
Data.lines 53–54automationhasLogBound_natCast Instance (low priority). For parameters P, admissible data D over P, a natural number A with an instanceNeZeroA (A \ne 0) and a Boolean u:HasLogBound(D, u, A, (A if u else 0)) for A read as a real number; that is, A \le \exp (A) and \exp (0) = 1 \le A.Proposition 3.4, p. 6 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · lines 53–54 instance (priority := low) hasLogBound_natCast [NeZero A] : HasLogBound D u A (ite u A 0) := by grindinstance
(anonymous)lines 56–57one-stepInstance (low priority). For parameters P, admissible data D over P, a natural number A with an instanceA.(A \ge 2) and a Boolean u:AtLeastTwo HasLogBound(D, u, A, (A if u else 0)) for the numeric literal A read as a real number (ofNat(A)); it is the instancehasLogBound_natCast.The Lean statement
New/Data/Magnitudes.lean · line 56 instance (priority := low) [A.AtLeastTwo] : HasLogBound D u ofNat(A) (ite u ofNat(A) 0) :=instance
(anonymous)line 59automationInstance. For parameters P, admissible data D over P and a Boolean u:HasLogBound(D, u, 1, 0); that is, |1| \le \exp (0) when u is true and \exp (0) \le 1 when u is false.The Lean statement
New/Data/Magnitudes.lean · line 59 instance : HasLogBound D u 1 0 := by grindinstance
(anonymous)line 61automationInstance. For parameters P, admissible data D over P, a real number c and a Boolean u:HasLogBound(D, u, \exp (c), c); that is, |\exp (c)| \le \exp (c) when u is true and \exp (c) \le \exp (c) when u is false.The Lean statement
New/Data/Magnitudes.lean · line 61 instance : HasLogBound D u c.exp c := by grindinstance
Data.line 63automationhasLogBound_mul Instance (products add exponents). For parameters P, admissible data D over P, reals F, G, l, l', a Boolean u, and instancesHasLogBound(D, u, F, l) andHasLogBound(D, u, G, l'):HasLogBound(D, u, F\cdot G, l + l'); that is, |F\cdot G| \le \exp (l + l') when u is true and \exp (l + l') \le F\cdot G when u is false (for u false both factors are positive).Proposition 3.4, p. 6 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 63 instance hasLogBound_mul : HasLogBound D u (F * G) (l + l') := by grind [exp_add, mul_le_mul]instance
Data.lines 65–66automationhasLogBound_add Instance (sums take the maximum, plus 1 for an upper bound). For parameters P, admissible data D over P, reals F, G, l, l', a Boolean u, and instancesHasLogBound(D, u, F, l) andHasLogBound(D, u, G, l'):HasLogBound(D, u, F + G, \max (l, l') + (1 if u else 0)); for u true, |F + G| \le 2\cdot \exp (\max (l, l')) \le \exp (\max (l, l') + 1) since e > 2; for u false, F + G \ge \max (F, G) \ge \exp (\max (l, l')) as F, G > 0.Proposition 3.4, p. 6 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 65 instance hasLogBound_add : HasLogBound D u (F + G) (max l l' + ite u 1 0) := ⟨byinstance
(anonymous)line 68automationInstance. For parameters P, admissible data D over P, reals F and l, and an instanceHasLogLower(D)(F, l) (\exp (l) \le F):HasLogUpper(D)(F^{-1}, -l), i.e. |F^{-1}| \le \exp (-l).The Lean statement
New/Data/Magnitudes.lean · line 68 instance [D.HasLogLower F l] : D.HasLogUpper F⁻¹ (-l) := by grind [exp_neg]instance
(anonymous)line 70automationInstance. For parameters P, admissible data D over P, reals F, l, l', and instancesHasLogUpper(D)(F, l) (|F| \le \exp (l)) andHasLogLower(D)(F, l') (\exp (l') \le F):HasLogLower(D)(F^{-1}, -l), i.e. \exp (-l) \le F^{-1}.The Lean statement
New/Data/Magnitudes.lean · line 70 instance [D.HasLogUpper F l] [D.HasLogLower F l'] : D.HasLogLower F⁻¹ (-l) := by grind [exp_neg]instance
(anonymous)line 72one-stepInstance (quotients). For parameters P, admissible data D over P, reals F, G, l, l', a Boolean u, and instancesHasLogBound(D, u, F, l) andHasLogBound(D, u, G^{-1}, l'):HasLogBound(D, u, F/G, l + l'); that is, |F/G| \le \exp (l + l') when u is true and \exp (l + l') \le F/G when u is false; it ishasLogBound_mulfor F\cdot G^{-1}.The Lean statement
New/Data/Magnitudes.lean · line 72 instance [HasLogBound D u G⁻¹ l'] : HasLogBound D u (F / G) (l + l') := hasLogBound_mulinstance
(anonymous)line 74automationInstance (powers). For parameters P, admissible data D over P, reals F and l, a natural number A, a Boolean u, and an instanceHasLogBound(D, u, F, l):HasLogBound(D, u, F^A, A\cdot l); that is, |F^A| \le \exp (A\cdot l) when u is true and \exp (A\cdot l) \le F^A when u is false (A is a natural exponent in F^A; its real cast is the coefficient in A\cdot l).The Lean statement
New/Data/Magnitudes.lean · line 74 instance : HasLogBound D u (F ^ A) (A * l) := by grind [exp_nat_mul, pow_le_pow_left₀]instance
(anonymous)line 76automationInstance (square roots). For parameters P, admissible data D over P, reals F and l, a Boolean u, and an instanceHasLogBound(D, u, F, l):HasLogBound(D, u, \sqrt{F}, l/2); that is, |\sqrt{F}| \le \exp (l/2) when u is true and \exp (l/2) \le \sqrt{F} when u is false (\surd is Mathlib's real square root, 0 on negative numbers).The Lean statement
New/Data/Magnitudes.lean · line 76 instance : HasLogBound D u √F (l / 2) := by grind [exp_half, abs_le_sqrt, Real.le_sqrt]instance
(anonymous)line 78automationInstance (cast of a product). For parameters P, admissible data D over P, a real l, natural numbers A, B, a Boolean u, and an instanceHasLogBound(D, u, (A:\mathbb{R})\cdot (B:\mathbb{R}), l):HasLogBound(D, u, ((A\cdot B : \mathbb{N}) : \mathbb{R}), l), because the cast of A\cdot B is the product of the casts.The Lean statement
New/Data/Magnitudes.lean · line 78 instance [HasLogBound D u (A * B) l] : HasLogBound D u ↑(A * B) l := by simpainstance
(anonymous)line 80automationInstance (cast of a sum). For parameters P, admissible data D over P, a real l, natural numbers A, B, a Boolean u, and an instanceHasLogBound(D, u, (A:\mathbb{R}) + (B:\mathbb{R}), l):HasLogBound(D, u, ((A + B : \mathbb{N}) : \mathbb{R}), l).The Lean statement
New/Data/Magnitudes.lean · line 80 instance [HasLogBound D u (A + B) l] : HasLogBound D u ↑(A + B) l := by simpainstance
(anonymous)line 82automationInstance (cast of a power). For parameters P, admissible data D over P, a real l, natural numbers A, B, a Boolean u, and an instanceHasLogBound(D, u, (A:\mathbb{R})^B, l):HasLogBound(D, u, ((A^B : \mathbb{N}) : \mathbb{R}), l). The exponent B is a natural number on both sides: (A:\mathbb{R})^B is a natural power of the real cast of A, and A^B is computed in \mathbb{N} and then cast.The Lean statement
New/Data/Magnitudes.lean · line 82 instance [HasLogBound D u (A ^ B) l] : HasLogBound D u ↑(A ^ B) l := by simpainstance
(anonymous)line 84automationInstance (natural ceiling). For parameters P, admissible data D over P, reals F, l, c, a Boolean u, an instanceHasLogBound(D, u, F, l) and an instanceHasLogUpper(D)(|F| + 1, c):HasLogBound(D, u, \lceil F\rceil _+, (c if u else l)); for u true, \lceil F\rceil _+ \le |F| + 1 \le \exp (c), for u false, \exp (l) \le F \le \lceil F\rceil _+.The Lean statement
New/Data/Magnitudes.lean · line 84 instance [D.HasLogUpper (|F| + 1) c] : HasLogBound D u ⌈F⌉₊ (ite u c l) := by grindinstance
(anonymous)line 86automationInstance. For parameters P, admissible data D over P and a Boolean u:HasLogBound(D, u, \mathit{logB}(D), \log \mathit{logB}(D)); that is, |\mathit{logB}(D)| \le \exp (\log \mathit{logB}(D)) when u is true and \exp (\log \mathit{logB}(D)) \le \mathit{logB}(D) when u is false; both hold with equality since \mathit{logB}(D) > 0 by the scale conditions.The Lean statement
New/Data/Magnitudes.lean · line 86 instance : HasLogBound D u D.logB D.logB.log := by grind [D.scale]instance
(anonymous)line 88automationInstance. For parameters P, admissible data D over P and a Boolean u:HasLogBound(D, u, \mathit{logX}_1(D), \log \mathit{logX}_1(D)); that is, |\mathit{logX}_1(D)| \le \exp (\log \mathit{logX}_1(D)) when u is true and \exp (\log \mathit{logX}_1(D)) \le \mathit{logX}_1(D) when u is false; \mathit{logX}_1(D) > 0 by the scale conditions.The Lean statement
New/Data/Magnitudes.lean · line 88 instance : HasLogBound D u D.logX₁ D.logX₁.log := by grind [D.scale]instance
(anonymous)line 90automationInstance. For parameters P and admissible data D over P:HasLogUpper(D)(s(D), \log \mathit{logX}_1(D)), i.e. s(D) \le \mathit{logX}_1(D), from s(D) \le 32\cdot \mathit{logX}(D) (field s_{\mathrm{le}}) and 10^{6}\cdot \mathit{logX}(D) \le \mathit{logX}_1(D).The Lean statement
New/Data/Magnitudes.lean · line 90 instance : D.HasLogUpper D.s D.logX₁.log := by grind [D.scale]lemma
Data.line 94automationhasLogUpper_of_abs_le For parameters P, admissible data D over P, reals F, G, l, an instanceHasLogUpper(D)(F, l) (|F| \le \exp (l)) and the premise |G| \le F:HasLogUpper(D)(G, l).Lemma 3.2, p. 5 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 94 lemma hasLogUpper_of_abs_le : |G| ≤ F → D.HasLogUpper G l := by grindlemma
Data.lines 96–97automationhasLogUpper_of_le_of_nonneg For parameters P, admissible data D over P, reals F, G, l, an instanceHasLogUpper(D)(F, l), a proof e of G \le F and a proof h of 0 \le G (by default found bypositivity):HasLogUpper(D)(G, l).Lemma 3.2, p. 5 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · lines 96–97 lemma hasLogUpper_of_le_of_nonneg (e : G ≤ F) (h : 0 ≤ G := by positivity) : D.HasLogUpper G l := by grindinstance
(anonymous)line 99automationInstance. For parameters P, admissible data D over P, reals F and l, and an instanceHasLogUpper(D)(F, l):HasLogUpper(D)(|F|, l).The Lean statement
New/Data/Magnitudes.lean · line 99 instance : D.HasLogUpper |F| l := by grindinstance
(anonymous)lines 101–102one-stepInstance (differences). For parameters P, admissible data D over P, reals F, G, l, l', and instancesHasLogUpper(D)(F, l) andHasLogUpper(D)(G, l'):HasLogUpper(D)(F - G, \max (l, l') + 1); from |F - G| \le |F| + |G| and the instances for |F|, |G| and sums.The Lean statement
New/Data/Magnitudes.lean · line 101 instance [D.HasLogUpper G l'] : D.HasLogUpper (F - G) (max l l' + 1) :=instance
(anonymous)lines 104–106automationInstance (low priority; logarithms). For parameters P, admissible data D over P, reals F, l, l', and instancesHasLogUpper(D)(F, l) (|F| \le \exp (l)) andHasLogLower(D)(F, l') (\exp (l') \le F):HasLogUpper(D)(\log F, \max (99 + \log \mathit{logB}(D), \max (l, -l') - 99\cdot \mathit{logB}(D)) + 1). Indeed |\log F| \le \max (l, -l') \le 99\cdot \mathit{logB}(D) + \exp (\max (l, -l') - 99\cdot \mathit{logB}(D)) (as y \le \exp (y)), and the instances bound 99\cdot \mathit{logB}(D) by \exp (99 + \log \mathit{logB}(D)) and the sum by the exponential of the maximum plus 1.The Lean statement
New/Data/Magnitudes.lean · lines 104–106 instance (priority := low) [D.HasLogLower F l'] : D.HasLogUpper F.log (max (99 + D.logB.log) (max l (-l') - 99 * D.logB) + 1) := hasLogUpper_of_abs_le (F := 99 * D.logB + exp _) (by grind [exp_le_exp])lemma
Data.line 111automationhasLogUpper_of_le For parameters P, admissible data D over P (explicit), a real l, natural numbers A and B, an instanceHasLogUpper(D)(A, l) and the premise B \le A (a comparison of natural numbers):HasLogUpper(D)(B, l) (A, B read as real numbers in the bounds).Lemma 3.2, p. 5 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 111 lemma hasLogUpper_of_le : B ≤ A → D.HasLogUpper B l := by grind [cast_le]lemma
Data.line 113automationhasLogLower_of_le For parameters P, admissible data D over P (explicit), reals F, G, l', an instanceHasLogLower(D)(G, l') (\exp (l') \le G) and the premise G \le F:HasLogLower(D)(F, l').Lemma 3.2, p. 5 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 113 lemma hasLogLower_of_le : G ≤ F → D.HasLogLower F l' := by grindlemma
Data.line 117automationlt_of_hasLogBound For parameters P, admissible data D over P (explicit), reals F, G, l, l', instancesHasLogUpper(D)(F, l) (|F| \le \exp (l)) andHasLogLower(D)(G, l') (\exp (l') \le G), and a proof e of l < l' (by default found bygrindfrom the scale conditions of D alone): F < G, since F \le |F| \le \exp (l) < \exp (l') \le G.Theorem B, p. 2 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 117 protected lemma lt_of_hasLogBound : F < G := by grind [=_ exp_lt_exp]lemma
Data.line 121one-steple_of_hasLogBound For parameters P, admissible data D over P (explicit), reals F, G, l, l', instancesHasLogUpper(D)(F, l) andHasLogLower(D)(G, l'), and a proof e of l < l' (by default found bygrindfrom the scale conditions of D): F \le G. The exponents l, l' are found by instance search from the shapes of F and G; this is how the development compares two monomials in the scales.Theorem B, p. 2 of Admissible data: scales, ranks and sizes, and their existence Lemma 3.1, p. 9 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Data/Magnitudes.lean · line 121 protected lemma le_of_hasLogBound : F ≤ G := (D.lt_of_hasLogBound e).lelemma
Data.line 123one-stepnat_lt_of_hasLogBound For parameters P, admissible data D over P (explicit), reals l, l', natural numbers A, B, instancesHasLogUpper(D)(A, l) andHasLogLower(D)(B, l') (A, B read as real numbers in the bounds), and a proof e of l < l' (by default from the scale conditions of D): A < B, a comparison of natural numbers.Theorem B, p. 2 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 123 lemma nat_lt_of_hasLogBound : A < B := cast_lt.1 (D.lt_of_hasLogBound e)lemma
Data.line 125one-stepnat_le_of_hasLogBound For parameters P, admissible data D over P (explicit), reals l, l', natural numbers A, B, instancesHasLogUpper(D)(A, l) andHasLogLower(D)(B, l') (A, B read as real numbers in the bounds), and a proof e of l < l' (by default from the scale conditions of D; required although the conclusion is weak): A \le B, a comparison of natural numbers.Theorem B, p. 2 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 125 lemma nat_le_of_hasLogBound : A ≤ B := (D.nat_lt_of_hasLogBound e).leinstance
(anonymous)line 129automationInstance. For parameters P, admissible data D over P and a Boolean u:HasLogBound(D, u, \pi, (4 if u else 0)); that is, |\pi | \le \exp((4 if u else 0)) when u is true and \exp((4 if u else 0)) \le \pi when u is false (2 \le \pi \le 4).The Lean statement
New/Data/Magnitudes.lean · line 129 instance : HasLogBound D u π (ite u 4 0) := by grind [two_le_pi, pi_le_four]instance
(anonymous)line 131one-stepInstance. For parameters P, admissible data D over P and a Boolean u:HasLogBound(D, u, m(D), \mathit{logX}(D)/2 + (2 if u else 0)); that is, |m(D)| \le \exp(\mathit{logX}(D)/2 + (2 if u else 0)) when u is true and \exp(\mathit{logX}(D)/2 + (2 if u else 0)) \le m(D) when u is false; from e^{\mathit{logX}(D)/2} \le m(D) \le 2\cdot e^{\mathit{logX}(D)/2} (field m_{\mathrm{mem}}).The Lean statement
New/Data/Magnitudes.lean · line 131 instance : HasLogBound D u D.m (D.logX / 2 + ite u 2 0) := .of_mem_Icc _ _ D.m_meminstance
(anonymous)line 133one-stepInstance. For parameters P, admissible data D over P and a Boolean u:HasLogBound(D, u, r(D), 5\cdot \mathit{logX}(D) + (3 if u else 0)); that is, |r(D)| \le \exp(5\cdot \mathit{logX}(D) + (3 if u else 0)) when u is true and \exp(5\cdot \mathit{logX}(D) + (3 if u else 0)) \le r(D) when u is false; from e^{5\cdot \mathit{logX}(D)} \le r(D) \le 3\cdot e^{5\cdot \mathit{logX}(D)} (field r_{\mathrm{mem}}).The Lean statement
New/Data/Magnitudes.lean · line 133 instance : HasLogBound D u D.r (5 * D.logX + ite u 3 0) := .of_mem_Icc _ _ D.r_meminstance
(anonymous)line 135automationInstance. For parameters P and admissible data D over P:HasLogUpper(D)(c(P), \log \mathit{logB}(D)), i.e. c(P) \le \mathit{logB}(D); from 10^{12}\cdot c(P) \le \log \mathit{logB}(D) and c(P) \ge 0.The Lean statement
New/Data/Magnitudes.lean · line 135 instance : D.HasLogUpper P.c D.logB.log := by grind [scale]lemma
Data.line 137one-steple_m For parameters P and admissible data D over P: 10000 \le m(D); bynat_le_of_hasLogBound(10000 \le e^{10000} < e^{\mathit{logX}(D)/2} \le m(D), as \mathit{logX}(D) \ge 100\cdot \log \mathit{logB}(D) \ge 100\cdot 10^{12}\cdot c(P)).Lemma 3.7, p. 7 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 137 lemma le_m : 10000 ≤ D.m := D.nat_le_of_hasLogBoundlemma
Data.line 139one-stepr_add For parameters P and admissible data D over P: r(D) + 1 = k(D) + m(D); since m(D) \le r(D) + 1 (bynat_le_of_hasLogBound), the truncated subtraction in k(D) = (r(D) + 1) - m(D) is exact.Lemma 3.7, p. 7 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 139 @[grind! .] lemma r_add : D.r + 1 = D.k + D.m := (Nat.sub_add_cancel D.nat_le_of_hasLogBound).symmlemma
Data.line 141automationk_le_r For parameters P and admissible data D over P: k(D) \le r(D) (as m(D) \ge 1).Lemma 3.7, p. 7 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 141 lemma k_le_r : D.k ≤ D.r := by grind [le_m]instance
(anonymous)lines 143–144one-stepInstance. For parameters P, admissible data D over P and a Boolean u:HasLogBound(D, u, k(D), 5\cdot \mathit{logX}(D) + (3 if u else -2)); that is, |k(D)| \le \exp(5\cdot \mathit{logX}(D) + (3 if u else -2)) when u is true and \exp(5\cdot \mathit{logX}(D) + (3 if u else -2)) \le k(D) when u is false; from r(D)/2 \le k(D) \le r(D), where m(D) \le r(D)/2 byle_of_hasLogBoundand k(D) = r(D) + 1 - m(D).The Lean statement
New/Data/Magnitudes.lean · line 143 instance : HasLogBound D u D.k (5 * D.logX + ite u 3 (-2)) := .of_mem_Icc (D.r / 2) D.rinstance
(anonymous)line 146one-stepInstance. For parameters P, admissible data D over P and a Boolean u:HasLogBound(D, u, t(D), 5\cdot \mathit{logX}(D) + (8 if u else 0)); that is, |t(D)| \le \exp(5\cdot \mathit{logX}(D) + (8 if u else 0)) when u is true and \exp(5\cdot \mathit{logX}(D) + (8 if u else 0)) \le t(D) when u is false; from t(D) = 5\cdot r(D) and the instances for 5 and r(D).The Lean statement
New/Data/Magnitudes.lean · line 146 instance : HasLogBound D u D.t (5 * D.logX + ite u 8 0) := t.eq_1 D ▸ .of_mem_Iccinstance
(anonymous)lines 148–149automationInstance. For parameters P, admissible data D over P, a real l, a Boolean u and an instanceHasLogBound(D, u, m(D)^{22}, l):HasLogBound(D, u, 2^{s(D)}, l) (2 read as a real numeric literal), because 2^{s(D)} = (2^{e+1})^{22} = m(D)^{22} by the field m_{\mathrm{pow}}.The Lean statement
New/Data/Magnitudes.lean · lines 148–149 instance [HasLogBound D u (D.m ^ 22) l] : HasLogBound D u (ofNat(2) ^ D.s) l := by cases D.m_pow; simp_all [pow_mul]instance
(anonymous)lines 151–152one-stepInstance. For parameters P, admissible data D over P and a Boolean u:HasLogBound(D, u,towerDeg(s(D)), 11\cdot \mathit{logX}(D) + (\log \mathit{logB}(D)/5 if u else 0)); that is, |towerDeg(s(D))| \le \exp(11\cdot \mathit{logX}(D) + (\log \mathit{logB}(D)/5 if u else 0)) when u is true and \exp(11\cdot \mathit{logX}(D) + (\log \mathit{logB}(D)/5 if u else 0)) \letowerDeg(s(D)) when u is false; with s = s(D):towerDeg(s) = 3^{\lfloor \log _3 s\rfloor }\cdot 3^{5}\cdot 2^s, 3^{\lfloor \log _3 s\rfloor } \le s + 1, and 2^s = m(D)^{22}: x(D)^{11} \letowerDeg(s(D)) \le x(D)^{11}\cdot (\mathit{logB}(D))^{1/5}.The Lean statement
New/Data/Magnitudes.lean · line 151 instance : HasLogBound D u (towerDeg D.s) (11 * D.logX + ite u (D.logB.log / 5) 0) := byinstance
Data.lines 155–156one-stephasLogBound_f Instance. For parameters P, admissible data D over P and a Boolean u:HasLogBound(D, u, f(D), 11\cdot \mathit{logX}(D) + (\log \mathit{logB}(D)/5 + c(P) if u else 0)); that is, |f(D)| \le \exp(11\cdot \mathit{logX}(D) + (\log \mathit{logB}(D)/5 + c(P) if u else 0)) when u is true and \exp(11\cdot \mathit{logX}(D) + (\log \mathit{logB}(D)/5 + c(P) if u else 0)) \le f(D) when u is false; via f(D) =towerDeg(s(D))\cdot \varphi (N_0(P)) (Parameters.) and \varphi (N_0(P)) \le c(P): x(D)^{11} \le f(D) \le e^{c(P)}\cdot x(D)^{11}\cdot (\mathit{logB}(D))^{1/5}.card_infinitePlace_E Proposition 3.4, p. 6 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 155 instance hasLogBound_f : HasLogBound D u D.f (11 * D.logX + ite u (D.logB.log / 5 + P.c) 0) :=instance
(anonymous)lines 158–159one-stepInstance. For parameters P, admissible data D over P, a real l, a finite set S of infinite places of E(D) and an instanceHasLogUpper(D)(f(D), l):HasLogUpper(D)(\#S, l), since \#S \le f(D).The Lean statement
New/Data/Magnitudes.lean · line 158 instance {S : Finset D.Φ} [D.HasLogUpper D.f l] : D.HasLogUpper #S l :=instance
(anonymous)line 161one-stepInstance. For parameters P, admissible data D over P and a Boolean u:HasLogBound(D, u, n(D, m(D)), 5.5\cdot \mathit{logX}(D) + (12 if u else 0)); that is, |n(D, m(D))| \le \exp(5.5\cdot \mathit{logX}(D) + (12 if u else 0)) when u is true and \exp(5.5\cdot \mathit{logX}(D) + (12 if u else 0)) \le n(D, m(D)) when u is false; from n(D, m(D)) = k(D) + m(D)\cdot (t(D) + 1).The Lean statement
New/Data/Magnitudes.lean · line 161 instance : HasLogBound D u (D.n D.m) (5.5 * D.logX + ite u 12 0) := n.eq_1 .. ▸ .of_mem_Iccinstance
(anonymous)line 163one-stepInstance. For parameters P, admissible data D over P, a Boolean u and an index i \in \{0, 1\}:HasLogBound(D, u, g(D)(i), (11 if u else 10)\cdot \mathit{logB}(D)); that is, |g(D)(i)| \le \exp((11 if u else 10)\cdot \mathit{logB}(D)) when u is true and \exp((11 if u else 10)\cdot \mathit{logB}(D)) \le g(D)(i) when u is false; from b(D)^{10} \le g(D)(i) \le b(D)^{11} (field g_{\mathrm{mem}}).The Lean statement
New/Data/Magnitudes.lean · line 163 instance (i) : HasLogBound D u (D.g i) (ite u 11 10 * D.logB) := .of_mem_Icc _ _ (g_mem ..)instance
(anonymous)line 165one-stepInstance. For parameters P, admissible data D over P and a Boolean u:HasLogBound(D, u,gProd(D), (22 if u else 20)\cdot \mathit{logB}(D)); that is, |gProd(D)| \le \exp((22 if u else 20)\cdot \mathit{logB}(D)) when u is true and \exp((22 if u else 20)\cdot \mathit{logB}(D)) \legProd(D) when u is false; b(D)^{20} \le g(D)(0)\cdot g(D)(1) \le b(D)^{22}.The Lean statement
New/Data/Magnitudes.lean · line 165 instance : HasLogBound D u D.gProd (ite u 22 20 * D.logB) := gProd.eq_1 D ▸ .of_mem_Icclemma
Data.lines 169–171argumentroundUp_mem_Icc For parameters P, admissible data D over P (explicit), reals F and l, and an instanceHasLogLower(D)(F, l) (\exp (l) \le F, so F > 0): F \le roundUp(D, F) \le F + N_1(D).Structured proof, 2 steps Lemma 3.6, p. 7 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 169 lemma roundUp_mem_Icc [D.HasLogLower F l] : ↑(D.roundUp F) ∈ Icc F (F + D.N₁) := byinstance
(anonymous)line 173one-stepInstance. For parameters P, admissible data D over P and a Boolean u:HasLogBound(D, u, h_2(D), 40\cdot \mathit{logX}(D) + (25 if u else 0)); that is, |h_2(D)| \le \exp(40\cdot \mathit{logX}(D) + (25 if u else 0)) when u is true and \exp(40\cdot \mathit{logX}(D) + (25 if u else 0)) \le h_2(D) when u is false; h_2(D) = r(D)^{8}.The Lean statement
New/Data/Magnitudes.lean · line 173 instance : HasLogBound D u D.h₂ (40 * D.logX + ite u 25 0) := h₂.eq_1 D ▸ .of_mem_Iccinstance
(anonymous)line 175one-stepInstance. For parameters P, admissible data D over P and a Boolean u:HasLogBound(D, u, h(D), 40\cdot \mathit{logX}(D) + (27 if u else 0)); that is, |h(D)| \le \exp(40\cdot \mathit{logX}(D) + (27 if u else 0)) when u is true and \exp(40\cdot \mathit{logX}(D) + (27 if u else 0)) \le h(D) when u is false; h(D) = 2\cdot h_2(D).The Lean statement
New/Data/Magnitudes.lean · line 175 instance : HasLogBound D u D.h (40 * D.logX + ite u 27 0) := h.eq_1 D ▸ .of_mem_Iccinstance
(anonymous)line 177one-stepInstance. For parameters P, admissible data D over P and a Boolean u:HasLogBound(D, u, a(D), \mathit{logB}(D) + \mathit{logX}(D) + (1 if u else 0)); that is, |a(D)| \le \exp(\mathit{logB}(D) + \mathit{logX}(D) + (1 if u else 0)) when u is true and \exp(\mathit{logB}(D) + \mathit{logX}(D) + (1 if u else 0)) \le a(D) when u is false; from x(D)\cdot b(D) \le a(D) \le x(D)\cdot b(D) + N_1(D) (roundUp_mem_Icc).The Lean statement
New/Data/Magnitudes.lean · line 177 instance : HasLogBound D u D.a (D.logB + D.logX + ite u 1 0) := .of_mem_Icc _ _ D.roundUp_mem_Iccinstance
(anonymous)line 179one-stepInstance. For parameters P, admissible data D over P and a Boolean u:HasLogBound(D, u, b_1(D), \mathit{logB}(D) + (2 if u else -2)); that is, |b_1(D)| \le \exp(\mathit{logB}(D) + (2 if u else -2)) when u is true and \exp(\mathit{logB}(D) + (2 if u else -2)) \le b_1(D) when u is false; from a(D)/x(D) \le b_1(D) \le a(D)/x(D) + N_1(D).The Lean statement
New/Data/Magnitudes.lean · line 179 instance : HasLogBound D u D.b₁ (D.logB + ite u 2 (-2)) := .of_mem_Icc _ _ D.roundUp_mem_Iccinstance
(anonymous)lines 181–182one-stepInstance. For parameters P, admissible data D over P and a Boolean u:HasLogBound(D, u, b_2(D), \mathit{logB}(D) - \mathit{logX}_1(D) + \mathit{logX}(D) + (2 if u else 0)); that is, |b_2(D)| \le \exp(\mathit{logB}(D) - \mathit{logX}_1(D) + \mathit{logX}(D) + (2 if u else 0)) when u is true and \exp(\mathit{logB}(D) - \mathit{logX}_1(D) + \mathit{logX}(D) + (2 if u else 0)) \le b_2(D) when u is false; from a(D)/x_1(D) \le b_2(D) \le a(D)/x_1(D) + N_1(D).The Lean statement
New/Data/Magnitudes.lean · line 181 instance : HasLogBound D u D.b₂ (D.logB - D.logX₁ + D.logX + ite u 2 0) :=instance
(anonymous)lines 184–186one-stepInstance (finite sums). For parameters P, admissible data D over P, reals l, l', a type \kappa, a finite set S \subseteq \kappa, a function v : \kappa \to \mathbb{R}, an instanceHasLogUpper(D)(\#S, l) and an instance g givingHasLogUpper(D)(v(y), l') for every y \in \kappa:HasLogUpper(D)(\sum _{y \in S} v(y), l + l'), since |\sum _{y\in S} v(y)| \le \#S\cdot \exp (l') \le \exp (l + l').The Lean statement
New/Data/Magnitudes.lean · lines 184–185 instance {κ S} {v : κ → ℝ} [D.HasLogUpper #S l] [g : ∀ y, D.HasLogUpper (v y) l'] : D.HasLogUpper (∑ y ∈ S, v y) (l + l') :=instance
(anonymous)line 188automationInstance. For parameters P, admissible data D over P, reals F, G, l and an instanceHasLogUpper(D)(|\log F| + |\log G|, l):HasLogUpper(D)(\log (F\cdot G), l), since |\log (FG)| \le |\log F| + |\log G| (Mathlib's \log, with \log 0 = 0).The Lean statement
New/Data/Magnitudes.lean · line 188 instance [D.HasLogUpper (|log F| + |log G|) l] : D.HasLogUpper (F * G).log l := by grindinstance
(anonymous)line 190automationInstance. For parameters P, admissible data D over P, reals F, l, a natural number A and an instanceHasLogUpper(D)(A\cdot \log F, l):HasLogUpper(D)(\log (F^A), l), since \log (F^A) = A\cdot \log F (A is a natural exponent in F^A, possibly 0, and its real cast is the coefficient in A\cdot \log F).The Lean statement
New/Data/Magnitudes.lean · line 190 instance [D.HasLogUpper (A * log F) l] : D.HasLogUpper (F ^ A).log l := by simpainstance
(anonymous)lines 192–193one-stepInstance. For parameters P, admissible data D over P, a real l, a natural number A and an instanceHasLogUpper(D)(A\cdot \log A, l):HasLogUpper(D)(\log (A!), l), since 0 \le \log (A!) \le \log (A^A) = A\cdot \log A (the factorial A! of the natural number A is cast to \mathbb{R} for the logarithm; for A = 0, \log (0!) = \log 1 = 0).The Lean statement
New/Data/Magnitudes.lean · line 192 instance [D.HasLogUpper (A * .log A) l] : D.HasLogUpper (log A !) l :=lemma
Data.line 195one-stephundred_mul_m_le_k For parameters P and admissible data D over P: 100\cdot m(D) \le k(D) (bynat_le_of_hasLogBound).Lemma 3.7, p. 7 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 195 lemma hundred_mul_m_le_k : 100 * D.m ≤ D.k := D.nat_le_of_hasLogBoundlemma
Data.line 197one-stepk_pos For parameters P and admissible data D over P: 0 < k(D) (bynat_le_of_hasLogBound).Lemma 3.7, p. 7 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 197 @[simp] lemma k_pos : 0 < D.k := D.nat_le_of_hasLogBoundlemma
Data.line 199one-stepn_mono For parameters P and admissible data D over P: the function j \mapsto n(D, j) = k(D) + j\cdot (t(D) + 1) on \mathbb{N} is monotone.Lemma 3.7, p. 7 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 199 lemma n_mono : Monotone D.n := mul_left_mono.const_add _lemma
Data.line 201automationk_even For parameters P and admissible data D over P: k(D) is even (r(D) is odd, m(D) is even and r(D) + 1 = k(D) + m(D)).Lemma 3.7, p. 7 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 201 lemma k_even : Even D.k := by grindlemma
Data.line 205automationt_odd For parameters P and admissible data D over P: t(D) = 5\cdot r(D) is odd.Lemma 3.7, p. 7 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 205 lemma t_odd : Odd D.t := by grindlemma
Data.line 207automationr_add_six_le_t For parameters P and admissible data D over P: r(D) + 6 \le t(D) (t(D) = 5\cdot r(D) and r(D) = 3^{e+1} \ge 3).Lemma 3.7, p. 7 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 207 lemma r_add_six_le_t : D.r + 6 ≤ D.t := by grind [D.r_pow]lemma
Data.line 210one-stepk_add_t_add_one_le_h₂ For parameters P and admissible data D over P: k(D) + t(D) + 1 \le h_2(D) = r(D)^{8} (bynat_le_of_hasLogBound).Lemma 3.7, p. 7 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Magnitudes.lean · line 210 lemma k_add_t_add_one_le_h₂ : D.k + D.t + 1 ≤ D.h₂ := D.nat_le_of_hasLogBoundlemma
Data.lines 14–16automationnominalWeight_mem_Icc For parameters P, admissible data D over P and an infinite place \sigma \in \Phi (D): a(D)/x_1(D) \lenominalWeight(D, \sigma ) \le a(D)/x(D) (as x(D) \le x_1(D) byle_of_hasLogBound).Lemma 4.1, p. 8 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Weights.lean · lines 14–15 lemma nominalWeight_mem_Icc : D.nominalWeight σ ∈ Icc (D.a / D.x₁) (D.a / D.x) := byinstance
(anonymous)lines 18–19one-stepInstance. For parameters P, admissible data D over P, an infinite place \sigma \in \Phi (D) and a Boolean u:HasLogBound(D, u,nominalWeight(D, \sigma ), \mathit{logB}(D) + (1 if u else -\mathit{logX}_1(D))); that is,nominalWeight(D, \sigma ) \le \exp (\mathit{logB}(D) + 1) and \exp (\mathit{logB}(D) - \mathit{logX}_1(D)) \lenominalWeight(D, \sigma ), from a(D)/x_1(D) \lenominalWeight(D, \sigma ) \le a(D)/x(D).The Lean statement
New/Data/Weights.lean · line 18 instance {u} : D.HasLogBound u (D.nominalWeight σ) (D.logB + ite u 1 (-D.logX₁)) :=lemma
Data.line 21one-stepnominalWeight_nonneg For parameters P, admissible data D over P and an infinite place \sigma \in \Phi (D): 0 \lenominalWeight(D, \sigma ).Lemma 4.1, p. 8 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Weights.lean · line 21 @[simp, bound] lemma nominalWeight_nonneg : 0 ≤ D.nominalWeight σ := (HasLogBound.pos D).lelemma
Data.lines 25–27argumentnominalWeight_add_le For parameters P, admissible data D over P and an infinite place \sigma \in \Phi (D):nominalWeight(D, \sigma ) + x(D)^{42} \le 2\cdot b(D).Structured proof, 2 steps Lemma 4.1, p. 8 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Weights.lean · line 25 lemma nominalWeight_add_le : D.nominalWeight σ + D.x ^ 42 ≤ 2 * D.b := bylemma
Data.lines 29–30automationnominalWeight_le_w_sub For parameters P, admissible data D over P, a natural number j and an infinite place \sigma \in \Phi (D):nominalWeight(D, \sigma ) \le w(D, j, \sigma ) - h_2(D) (a real difference); indeed w(D, j, \sigma ) - h_2(D) is b_1(D) or b_2(D) plus j\cdot h(D), and b_1(D) = roundUp(D, a(D)/x(D)) \ge a(D)/x(D), b_2(D) = roundUp(D, a(D)/x_1(D)) \ge a(D)/x_1(D).Lemma 4.1, p. 8 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Weights.lean · lines 29–30 lemma nominalWeight_le_w_sub j σ : D.nominalWeight σ ≤ D.w j σ - D.h₂ := by simp; split <;> grw [← D.roundUp_mem_Icc.1] <;> boundlemma
Data.lines 36–37automationw_le_nominalWeight_add For parameters P, admissible data D over P, a natural number j withhj: j \le 2\cdot m(D) and an infinite place \sigma \in \Phi (D): w(D, j, \sigma ) \lenominalWeight(D, \sigma ) + x(D)^{42}; since w(D, j, \sigma ) = (b_1(D) or b_2(D)) + j\cdot h(D) + h_2(D) \lenominalWeight(D, \sigma ) + N_1(D) + 2m(D)\cdot h(D) + h_2(D) and N_1(D) + 2m(D)\cdot h(D) + h_2(D) \le x(D)^{42} byle_of_hasLogBound.Lemma 4.1, p. 8 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Weights.lean · line 36 lemma w_le_nominalWeight_add : D.w j σ ≤ D.nominalWeight σ + D.x ^ 42 := bylemma
Data.lines 40–41one-stepw_le_two_mul_b For parameters P, admissible data D over P, a natural number j withhj: j \le 2\cdot m(D) and an infinite place \sigma \in \Phi (D): w(D, j, \sigma ) \le 2\cdot b(D) (fromw_le_nominalWeight_addandnominalWeight_add_le).Lemma 4.1, p. 8 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Weights.lean · lines 40–41 lemma w_le_two_mul_b : D.w j σ ≤ 2 * D.b := by grw [w_le_nominalWeight_add _ hj, nominalWeight_add_le]instance
(anonymous)lines 43–44one-stepInstance (the upper bound at stage zero). For parameters P, admissible data D over P and an infinite place \sigma \in \Phi (D):HasLogUpper(D)(w(D, 0, \sigma ), 2 + \mathit{logB}(D)), i.e. w(D, 0, \sigma ) \le \exp (2 + \mathit{logB}(D)), from w(D, 0, \sigma ) \le 2\cdot b(D) (w_le_two_mul_bat j = 0, where 0 \le 2\cdot m(D) holds trivially). It takes no j and nohj(seebinders_lean).The Lean statement
New/Data/Weights.lean · line 43 instance : D.HasLogUpper (D.w 0 σ) (2 + D.logB) :=instance
(anonymous)lines 46–47automationInstance (the lower bound from a nominal-weight instance, at every stage). For parameters P, admissible data D over P, a natural number j, an infinite place \sigma \in \Phi (D), a real l and an instanceHasLogLower(D)(nominalWeight(D, \sigma ), l):HasLogLower(D)(w(D, j, \sigma ), l), sincenominalWeight(D, \sigma ) \le w(D, j, \sigma ) - h_2(D) \le w(D, j, \sigma ) (for every j; no hypothesis j \le 2\cdot m(D), seebinders_lean).The Lean statement
New/Data/Weights.lean · lines 46–47 instance {l} [D.HasLogLower (D.nominalWeight σ) l] : D.HasLogLower (D.w j σ) l := by grind [HasLogBound, D.nominalWeight_le_w_sub j σ]lemma
Data.lines 51–54argumentlog_w_le For parameters P, admissible data D over P, a natural number j withhj: j \le 2\cdot m(D) and an infinite place \sigma \in \Phi (D): \log w(D, j, \sigma ) \le \lognominalWeight(D, \sigma ) + x(D)^{-1}.Structured proof, 2 steps Lemma 4.1, p. 8 of Admissible data: scales, ranks and sizes, and their existence
The Lean statement
New/Data/Weights.lean · line 51 lemma log_w_le : log (D.w j σ) ≤ log (D.nominalWeight σ) + D.x⁻¹ := bydef
Parameters.line 24aliasgalOfPlaceInt 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 \mapstogalOfPlace(P, s)(v)(x) of the ring of integers,galOfPlace(P, s)(v) =galOfPlace(P, s)(v) \in \operatorname{Gal}(E/K).Definition 6.1, p. 10 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · line 24 noncomputable def galOfPlaceInt v := MulSemiringAction.toRingHom _ (𝓞 (P.E s)) (P.galOfPlace s v)instance
(anonymous)line 28aliasInstance. For parameters P and an exponent s (implicit): the group \Phi (P, s) acts on the finite places of E(P, s) by v \bullet w =galOfPlace(P, s)(v)^{-1}(w) = {x :galOfPlace(P, s)(v)(x) \in w} (FinPlace.alongcomap galOfPlace(P, s)(v)).The Lean statement
New/Data/WeilDataOfE.lean · line 28 noncomputable instance : SMul (P.Φ s) (FinPlace (P.E s)) := ⟨(.comap <| P.galOfPlace s ·)⟩lemma
Parameters.line 32restatementmem_smul 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 ifgalOfPlaceInt(v)(x) \in w.Definition 6.1, p. 10 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · line 32 @[simp] lemma mem_smul {x} : x ∈ (v • w).1 ↔ galOfPlaceInt v x ∈ w.1 := .rfldef
Parameters.line 36computationfrobElem 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\}.Definition 6.1, p. 10 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · line 36 @[simp] noncomputable def frobElem (p : ℕ) := (P.placeOfInt n (chiK P.d p * p), chiK P.d p)lemma
Parameters.lines 39–40automationisCoprime_N₀_of_not_dvd For parameters P, an exponent s, a natural number p withhp: 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)).Lemma 6.3, p. 10 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · lines 39–40 lemma isCoprime_N₀_of_not_dvd : IsCoprime (p : ℤ) P.N₀ := mod_cast by grind [hp.1.coprime_iff_not_dvd]lemma
Parameters.lines 46–56argumentfrob_ext For parameters P, an exponent s, a prime p (instancehp), 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 withhe: (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)]; heregalOfPlace(P, s)(x)(\cdot ) =galOfPlaceInt(x)(\cdot ).Structured proof, 6 steps Lemma 6.3, p. 10 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · lines 46–48 lemma 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 ..))lemma
Parameters.lines 59–69argumentfrob_iff_eq_frobElem_pow For parameters P, an exponent s, a prime p (instancehp), a commutative ring R of characteristic p which is a domain (instanceIsDomainR), 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 withhe: (c = \operatorname{id} and e = 1) or (c = \operatorname{conj} and e = -1), andhc: 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}.Structured proof, 5 steps Lemma 6.4, p. 11 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · lines 59–60 lemma frob_iff_eq_frobElem_pow [IsDomain R] : (∀ x, φ (galOfPlaceInt v x) = φ (c x) ^ p ^ n) ↔ (v, e) = P.frobElem s p ^ n := bylemma
Parameters.lines 77–84argumentsmul_eq_iff_exists_frobElem_pow Decomposition group. For parameters P, an exponent s, a prime p (instancehp), 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 withhe: (c = \operatorname{id} and e = 1) or (c = \operatorname{conj} and e = -1),hw: p \in w andhc: 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.Structured proof, 5 steps Theorem B, p. 2 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · lines 77–78 lemma 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 hwlemma
Parameters.lines 88–91argumentq_eq_pow For parameters P, an exponent s, a prime p (instancehp), a finite place w of E(P, s),hw: p \in w andhc: p \nmid N_1(P, s)\cdot d(P): q(w) = p^o with o the order offrobElem(P, s, p) in \Phi (P, s) \times \mathbb{Z}.Structured proof, 2 steps Theorem B, p. 2 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · line 88 lemma q_eq_pow (hw : ↑p ∈ w.1) (hc : ¬p ∣ P.N₁ s * P.d) : w.q = p ^ orderOf (P.frobElem s p) := bylemma
Parameters.lines 94–95one-stepnatCast_notMem_sq For parameters P, an exponent s, a prime p (instancehp), a finite place w of E(P, s),hw: p \in w andhc: 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).Lemma 6.5, p. 11 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · line 94 lemma natCast_notMem_sq : ↑p ∉ w.1 ^ 2 := hc ∘ (w.natCast_mem_iff_dvd hw).1 ∘lemma
Parameters.lines 100–101automationintValuation_p For parameters P, an exponent s, a prime p (instancehp), a finite place w of E(P, s),hw: p \in w andhc: 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.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}.exp (-1) Lemma 6.5, p. 11 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · line 100 lemma intValuation_p : w.intValuation p = .exp (-1) := by simp [*, natCast_notMem_sq,lemma
Parameters.lines 105–110argumentexists_smul_eq_or_star For parameters P, an exponent s, a prime p (instancehp), 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'.Structured proof, 2 steps Lemma 6.6, p. 11 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · lines 105–106 lemma 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 wlemma
Parameters.lines 112–113automationnot_dvd_N₁_mul_d_of_inert For parameters P, an exponent s, a prime p (instancehp) andhL: \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).Lemma 6.7, p. 11 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · line 112 @[local simp] lemma not_dvd_N₁_mul_d_of_inert (hL : chiK P.d p = -1) : ¬p ∣ P.N₁ s * P.d := bylemma
Parameters.lines 119–120one-stepsmul_eq_iff_inert For parameters P, an exponent s, a prime p (instancehp), an infinite place v and a finite place w of E(P, s),hw: p \in w andhL: \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.Lemma 6.7, p. 11 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · line 119 lemma smul_eq_iff_inert : v • w = w ↔ ∃ n, v = P.placeOfInt s (-p) ^ n ∧ Even n := bylemma
Parameters.lines 124–125one-stepsmul_eq_star_iff_inert For parameters P, an exponent s, a prime p (instancehp), an infinite place v and a finite place w of E(P, s),hw: p \in w andhL: \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.Lemma 6.7, p. 11 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · line 124 lemma smul_eq_star_iff_inert : v • w = star w ↔ ∃ n, v = P.placeOfInt s (-p) ^ n ∧ Odd n := bylemma
Parameters.lines 129–130automationq_eq_inert For parameters P, an exponent s, a prime p (instancehp), a finite place w of E(P, s),hw: p \in w andhL: \chi _K(p) = -1: q(w) = p^{\operatorname{lcm}(o, 2)}, o the order ofplaceOfInt(P, s, -p) in \Phi (P, s).Lemma 6.7, p. 11 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · lines 129–130 lemma q_eq_inert : w.q = p ^ (orderOf (P.placeOfInt s (-p))).lcm 2 := by simp [q_eq_pow hw, *, Prod.orderOf]lemma
Parameters.line 137automationchiK_eq_one_of_modEq_one 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)).Lemma 6.8, p. 12 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · line 137 lemma chiK_eq_one_of_modEq_one : chiK P.d p = 1 := by simp [natCast_eq_natCast' _ _ g.of_mul_left]lemma
Parameters.lines 139–140automationnot_dvd_N₁_mul_d_of_modEq_one For parameters P, an exponent s, a prime p (instancehp) 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).Lemma 6.8, p. 12 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · line 139 @[local simp] lemma not_dvd_N₁_mul_d_of_modEq_one : ¬p ∣ P.N₁ s * P.d :=lemma
Parameters.lines 144–145automationfrobElem_eq_one 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 andplaceOfInt(P, s, p) =placeOfInt(P, s, 1) = 1).Lemma 6.8, p. 12 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · line 144 lemma frobElem_eq_one : P.frobElem s p = 1 := by simp [placeOfInt, chiK_eq_one_of_modEq_one g,lemma
Parameters.lines 151–152one-stepsmul_ne_star For parameters P, an exponent s, a prime p (instancehp), 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) andhw: p \in w: v \bullet w \ne \operatorname{conj}(w).Lemma 6.8, p. 12 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · lines 151–152 lemma smul_ne_star : v • w ≠ star w := by simpa [↓frobElem_eq_one, *] using! smul_eq_iff_exists_frobElem_pow (.inr ⟨rfl, rfl⟩) hwlemma
Parameters.lines 154–155one-stepsmul_eq_self_iff_eq_one For parameters P, an exponent s, a prime p (instancehp), 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) andhw: p \in w: v \bullet w = w if and only if v = 1.Lemma 6.8, p. 12 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · line 154 lemma smul_eq_self_iff_eq_one : v • w = w ↔ v = 1 := bylemma
Parameters.line 158one-stepq_eq_of_modEq_one For parameters P, an exponent s, a prime p (instancehp), a finite place w of E(P, s), g : p \equiv 1 \bmod N_1(P, s)\cdot d(P) andhw: p \in w: q(w) = p.Lemma 6.8, p. 12 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · line 158 lemma q_eq_of_modEq_one : w.q = p := by simp [q_eq_pow hw, ↓frobElem_eq_one, *]lemma
Parameters.lines 164–166argumentstar_mem_iff For parameters P, an exponent s, a prime p (instancehp), 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}).Structured proof, 2 steps Lemma 6.9, p. 12 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · line 164 lemma star_mem_iff : star a ∈ w.1 ↔ a ∉ w.1 :=lemma
Parameters.lines 170–172argumentintValuation_eq_of_mul_star For parameters P, an exponent s, a prime p (instancehp), 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;.in the value group \mathbb{Z}^{m0}, additive order 1, not the real number e^{-1}).exp (-1) Structured proof, 1 step Lemma 6.9, p. 12 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · line 170 lemma intValuation_eq_of_mul_star (k : a ∈ w.1) : w.intValuation a = .exp (-1) := bylemma
Parameters.lines 178–183argumentnonempty_infinitePlace_equiv_finPlace For parameters P, an exponent s, a prime p (instancehp), 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.Structured proof, 7 steps Proposition 6.10, p. 12 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · lines 178–179 lemma 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 _ ↦lemma
Parameters.lines 192–196automationvaluation_map_relDifferentGen 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 ofrelDifferentGen(P, s) are equal.Structured proof, 1 step Lemma 7.1, p. 13 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · lines 192–194 lemma 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,def
Parameters.lines 200–202assemblyα 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 ofrelDifferentGen(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.Definition 7.2, p. 13 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · line 200 noncomputable def Parameters.α P s := let e := idem {w | c₀InE P s ∈ w.1}lemma
Parameters.line 207automationinv_α_mem For parameters P and an exponent s (implicit): \alpha (P, s)^{-1} lies in \hat{O} (its components arerelDifferentGen(P, s) or 1, integral).Lemma 7.3, p. 13 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · line 207 lemma Parameters.inv_α_mem : (P.α s)⁻¹.1 ∈ Ô _ := by aesoplemma
Parameters.lines 211–217argumentv_alpha_mul_relDifferentGen 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.Structured proof, 2 steps Lemma 7.3, p. 13 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · lines 211–212 lemma Parameters.v_alpha_mul_relDifferentGen w : Valued.v ((P.α s * star (P.α s).1 * P.relDifferentGen s) w) = 1 := bylemma
Parameters.lines 219–220automationN₁_mul_α_mem 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 sincerelDifferentGen(P, s) \mid N_1(P, s)).Lemma 7.3, p. 13 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · line 219 lemma Parameters.N₁_mul_α_mem : P.N₁ s * (P.α s).1 ∈ Ô _ := by simp_all [field, apply_ite,instance
Parameters.lines 225–243argumentinstWeilDataE Instance. For parameters P and an exponent s (implicit): Weil data for E(P, s) (classWeilData): the stably-unramified structure, a splitting character \upsilon (fromnonempty_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} (.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 (exp υ.) 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).atUnif w Structured proof, 11 steps Proposition 7.4, p. 14 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · line 225 noncomputable instance Parameters.instWeilDataE : WeilData (P.E s) := bylemma
Parameters.line 262restatementcoe_zetaInt For parameters P and an exponent s (implicit):zetaInt(P, s), viewed in E(P, s), equals \zeta (P, s).Definition 5.1, p. 8 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/Different.lean · line 262 @[simp] lemma coe_zetaInt : P.zetaInt s = P.ζ s := rfllemma
Parameters.line 26restatementcoe_galOfPlaceInt For parameters P, an exponent s, an infinite place v (all implicit) and x \in \mathcal{O}_E:galOfPlaceInt(v)(x), viewed in E, equalsgalOfPlace(P, s)(v)(x).Definition 6.1, p. 10 of The parameters and the CM field: places, Frobenius elements, the different
The Lean statement
New/Data/WeilDataOfE.lean · line 26 @[simp] lemma coe_galOfPlaceInt x : galOfPlaceInt v x = P.galOfPlace s v x := rfl
What it takes for granted
Unit 10 · Lattice fundamental domains and holomorphic parameter integrals, Unit 29 · Group-algebra projectors and averaging in unitary representations, Unit 37 · The adelic Heisenberg action, Weil representation and theta functional, Unit 50 · Integral Kuga–Sato models and neat levels, Unit 57 · Fitting ideal bounds and multivariate Hensel lifting, Unit 92 · Local Frobenius, tame inertia and decomposition groups, Unit 96 · Real-analytic continuation of Hecke Euler products at one, Unit 97 · Global Artin reciprocity and the Brauer local–global principle, Unit 104 · Unitary Hecke characters and splitting characters of CM fields, Unit 106 · Class numbers and adelic fundamental domains of number fields, Unit 112 · Matrix determinant estimates and simultaneous eigenvectors, Unit 122 · Adelic Hermitian spaces and principal congruence subgroups, Unit 123 · Adelic self-duality and a one-sided Poisson summation bound, Unit 126 · Primes in arithmetic progressions with prescribed logarithmic intervals, Unit 141 · The seesaw identity for the chain of theta lifts, and the index types of the data, Unit 150 · Theta functions of the CM curve: periods and scales, tight frames, the integral vacuum, Galois conjugates of jets, and divisibility of jets at non-split primes, Unit 151 · The endgame: the weighted prime sum and its remainder, the one-sided criterion (Landau), the choice of the second scale, and the statements and assembly of Theorems A, B and C
Unit 150 · Theta functions of the CM curve: periods and scales, tight frames, the integral vacuum, Galois conjugates of jets, and divisibility of jets at non-split primes · 1 declaration
Parameters.unit 150exists_isJetConjugate_generator For parameters P there is a natural number C such that for every exponent s there is a map B from Gal(ℂ/K) to the finite adeles of E(P, s) with, for every standard space V of the Weil representation over E(P, s) (index type n): some c ≠ 0 makes c·vacElem(V, x) integral at every p-adic place and of size at most exp(C·N₁(P, s)²)^{#n} at every conjugate σ ∈ Gal(ℂ/K); and the finite part of V contains a vector F with θ(F) = 1 that generates it under the vacuum translates, whose Galois conjugates are, after the translation B(σ) and a scalar t with |t|² = bigOmega(P, s)⁻¹, again theta jets (IsJetConjugate). Unit 152 uses only the natural number C, as a summand of c(P).
Unit 106 · Class numbers and adelic fundamental domains of number fields · 23 declarations
For a prime d, chowlaSelbergConst(d) = γ − Re (L′/L)(1, χ) with γ Euler's constant and χ the Legendre symbol mod d (the quadratic character χ_K of K = ℚ(√−d)), L the entire version of the Dirichlet L-function.
FinPlace.unit 106exists_natCast_mem For a number field F and a prime p: some finite place w of F contains p (lies above p).
QuadField.unit 106prime_inert_or_eq_mul For d prime ≡ 7 mod 8, a prime p and a finite place w of K = ℚ(√−d) above p: there is a place J such that the places above p are exactly w and J, and either w = J with q(w) = p² (p inert), or q(w) = q(J) = p and (p) = w·J.
QuadField.unit 106q_eq_iff_legendreSym_ne_neg_one For d prime ≡ 7 mod 8 and a place w of K = ℚ(√−d) above a prime p: q(w) = p if and only if χ_K(p) ≠ −1.
two_pow_le_of_pow_eq_oneunit 106For an integer q with |q| > 1, natural numbers o > 0 and s with q^o ≡ 1 mod 2^{s+1}: 2^s ≤ (|q| + 1)·o.
QuadField.unit 106absNorm_span_eq_mul_star For an integer y of K = ℚ(√−d): the absolute norm of the principal ideal (y) equals y·conj(y).
Class: a natural number d is a prime with d ≡ 7 mod 8 (it extends Fact (d prime)).
For a prime d, chiK(d) is the Legendre symbol (·/d) as an integer-valued Dirichlet character mod d; for d ≡ 3 mod 4 it is the character χ_K of K = ℚ(√−d).
For a prime d and a natural number n: chiK(d)(n) = (n/d), the Legendre symbol.
For a natural number d, QuadField(d) = ℚ(i·√d) ⊂ ℂ, the field ℚ(√−d).
For d ≡ 3 mod 4 prime, c₀(d) = (1 + √−d)/2, an integer of ℚ(√−d) (root of X² − X + (d + 1)/4).
QuadField.unit 106sqrtNegDInt sqrtNegDInt(d) = 2·c₀(d) − 1 = √−d, as an integer of ℚ(√−d).
sqrtNegD(d) = i·√d, the generator √−d of QuadField(d).
QuadField.unit 106sqrtNegDInt_sq sqrtNegDInt(d)² = −d.
QuadField.unit 106c₀_mul_one_sub c₀(d)·(1 − c₀(d)) = (d + 1)/4.
QuadField.unit 106different_eq_span_and_adjoin_c₀ For d prime ≡ 7 mod 8: the different of ℚ(√−d) over ℤ is (√−d), and ℤ[c₀] is the whole ring of integers.
QuadField.unit 106nonempty_algHom_of_isPrimitiveRoot For a prime d and a field M of characteristic 0 containing a primitive d-th root of unity x: a ℚ-algebra homomorphism ℚ(√−d) → M (√−d is a Gauss sum, d ≡ 3 mod 4).
totient_mul_totient_le_finrankunit 106For a number field M containing a primitive n-th root and a primitive d-th root of unity with n, d coprime: φ(d)·φ(n) ≤ [M:ℚ].
FinPlace.unit 106natCast_mem_iff_dvd For a finite place w containing the prime p and a natural number n: n ∈ w if and only if p ∣ n.
QuadField.unit 106eq_map_c₀_pow_iff For d prime ≡ 7 mod 8, a prime p ≠ 2, a ring homomorphism ψ from 𝓞_K into a ring of characteristic p, n and x: x = ψ(c₀)^{p^n} if and only if 2x − 1 = χ_K(p)^n·ψ(√−d).
QuadField.unit 106map_sqrtNegDInt_sq For a ring homomorphism ψ from 𝓞_K: ψ(√−d)² = −d.
For primes p and d: either p = d and χ_K(p) = 0, or p ≠ d and χ_K(p) = ±1.
Class of Weil data for a CM field E: it extends StablyUnram E and SplittingChar E, and has j ∈ E with conj(j) = −j and Im Φ_w(j) > 0 for every infinite place w, an idele α with v_w(j·α·ᾱ) = exp(m_w) at every finite place w, m_w the multiplicity of w in the different of E over ℚ (
.in the value group ℤᵐ⁰: additive order −m_w), (1 − j⁻¹)/2 integral, and υ(π_w) = −1 at the chosen uniformiser idele π_w (exp υ.) of every finite place w = w̄.atUnif w
Unit 151 · The endgame: the weighted prime sum and its remainder, the one-sided criterion (Landau), the choice of the second scale, and the statements and assembly of Theorems A, B and C · 1 declaration
For a prime d and a modulus M, lambdaClass(d, M, ν) = Λ(ν)·(1 − (ν/d)) if ν ≡ 1 mod M and 0 otherwise (Λ von Mangoldt's function, (ν/d) the Legendre symbol, i.e. χ_K(ν)); for M = 1 it is Λ(ν)(1 − χ_K(ν)) for every ν.
Unit 10 · Lattice fundamental domains and holomorphic parameter integrals · 7 declarations
For a number field K, numInfPlaces(K) is the number of infinite places of K.
finrank_eq_two_mul_card_infinitePlaceunit 10For a CM (totally complex) number field K: [K:ℚ] = 2·numInfPlaces(K).
differentIdeal_eq_span_of_dvdunit 10For number fields K ⊂ L, x ∈ 𝓞_L with K[x] = L, a polynomial f over the base ring A with f(x) = 0 and f′(x) = y, if (y) divides the different of 𝓞_L over A, then that different is (y) and A[x] = 𝓞_L.
The root discriminant of a number field is positive.
abs_discr_eq_rootDiscr_powunit 10For a CM field K: |disc K| = (rd_K^{numInfPlaces(K)})².
dvd_differentIdeal_of_mem_squnit 10For a number field L, an ideal P of 𝓞_L — any ideal, not necessarily prime — and a prime number p (instance Fact (Nat.Prime p)) with p ∈ P²: P divides the different of 𝓞_L over ℤ. (For a prime ideal P this says that P is ramified over p.)
ne_zero_of_differentIdeal_eq_spanunit 10If the different is the principal ideal (x), then x ≠ 0.
Unit 141 · The seesaw identity for the chain of theta lifts, and the index types of the data · 14 declarations
For data D and i ∈ {0, 1}, ChosenPlace(D, i) is the type of finite places w of E(D) with piGBar(D) ∈ w and g(D)(i) ∈ w: the chosen places above g_i.
For data D, chosen(D) maps a pair x = (i, w), w ∈ ChosenPlace(D, i), to the finite place w of E(D).
For data D and a finite place w of E(D), IsChosen(D, w) means piGBar(D) ∈ w: w divides the conjugate of the integer piG(D) of K of norm g₀g₁.
For data D, piGBar(D) is the complex conjugate of piG(D) ∈ 𝓞_K, viewed as an integer of E(D).
For data D and i ∈ {0, 1} there is a natural number c with piGBar·conj(piGBar) = g(D)(i)·c and g(D)(i) coprime to c.
For data D and a finite place w of E(D): w is chosen if and only if there is i ∈ {0, 1} with w chosen and g(D)(i) ∈ w.
For data D, i ∈ {0, 1} and a finite place w of E(D) with g(D)(i) ∈ w: the absolute norm q(w) equals g(D)(i).
For data D, the level N(D): a prime chosen with N(D) ≡ 1 mod Mω(P, s(D))² and log N(D) in [λ, λ + √logB(D)], λ = logLevelTarget(D).
New.unit 141Seesaw. IndexTypes:167:1 Instance: for data D, Fact (N(D) is prime), from
Data..N_prime For data D: N(D) ≡ 1 mod cycloConductor(D) = N₁(D)·d(P).
For data D, π(D) is an integer of E(D) chosen with π·conj(π) = N(D).
For data D: π(D)·conj(π(D)) = N(D) in the ring of integers of E(D).
For data D and a finite place w of E(D): ω(D)(w) is, at a chosen place, the Mω(P, s)-th power of a chosen character of the residue field of order Mω², and 1 elsewhere.
For data D and a chosen finite place w of E(D): ω(D)(w) has order exactly Mω(P, s(D)).
Unit 122 · Adelic Hermitian spaces and principal congruence subgroups · 9 declarations
For a family w of finite places of a CM field E, a finite type n and a subgroup H of ∏_i GL_n(ResField(w_i)): levelOf(w, H) is the subgroup of the elements of K₀ = Kf(E, n) whose reductions modulo the places w_i form an element of H.
For a finite type n and an integer a of E: principalLevel(n, a) is the principal level K(a) ⊆ Gf(E, n), the elements g ∈ K₀ with every entry of g − 1 in aÔ.
principalLevel_le_levelOfunit 122If a lies in every place w_i of the family, then principalLevel(n, a) ≤ levelOf(w, H).
For a CM field E and a finite type n: Kf(E, n) = K₀ = Gf(E, n) ∩ GL_n(Ô), the stabiliser of the standard lattice Ô^n.
For a field E and a finite type n: Gf(E, n), the unitary group of the identity form over the finite adeles of E (matrices g with gᴴg = 1).
For a family w of finite places: the homomorphism K₀ → ∏_i GL_n(ResField(w_i)), reduction modulo each place w_i.
For a CM field E and a finite type n: the image of U_n(E) (matrices γ over E with γᴴγ = 1) in Gf(E, n).
For a family w of finite places of a CM field: the class asserting that w is injective and that conj(w_i) ≠ w_j for all i, j.
For a finite commutative ring R and a finite type n: |GL_n(R)| ≤ |R|^{(#n)²}.
Unit 112 · Matrix determinant estimates and simultaneous eigenvectors · 3 declarations
For subgroups Γ, K′ of a group G and g ∈ G: classAut(Γ, K′, g) = Γ ∩ gK′g⁻¹, the stabiliser in Γ of the coset gK′.
For an embedding u : r ↪ n of index types and a commutative ring R: the homomorphism GL_r(R) → GL_n(R), g ↦ 1 + ι(g − 1)ιᵀ (ι the inclusion matrix of u), i.e. g on the block u(r) and the identity elsewhere.
The block of extendGL(u)(g) on u(r) × u(r) is g, and its rows outside the range of u are those of the identity matrix.
Unit 50 · Integral Kuga–Sato models and neat levels · 1 declaration
For a CM field E with a nontrivial set of infinite places, an injective family w of finite places with (2·#n)^{[E:ℚ]} < ∏_i q(w_i), and a subgroup K ≤ levelOf(w, ⊥): for every g, classAut(stdRatPoints, K, g) = {1} (the level K is free).
Unit 123 · Adelic self-duality and a one-sided Poisson summation bound · 16 declarations
For a finite place w of a number field E: LocField(w), the completion E_w.
For a finite place w of a number field E: ResField(w), the residue field of the completion at w.
For a number field E: FinPlace(E), its finite places, i.e. the height-one primes (nonzero prime ideals) of its ring of integers.
For a finite place w: q(w), the absolute norm of the prime ideal w (the order of its residue field).
v_algebraMap_eq_intValuationunit 123For an integer x of E and a finite place w: the valuation of x in the completion E_w equals its w-adic valuation intValuation_w(x).
For a finite place w: |ResField(w)| = q(w).
Class: a number field E with a CM structure and, for each infinite place v, an embedding Φ_v : E → ℂ with mk(Φ_v) = v (PlaceEmbedding).
Class: for each infinite place w of a field E an embedding Φ_w : E → ℂ inducing w (mk(Φ_w) = w).
Class: the CM field E contains a primitive 5040-th root of unity; then (
StablyUnram.) 𝓞_E contains i with i² = −1, conj(i) = −i, and ω with ω + ω̄ = 1, ωω̄ = 2.exists_i_c₀ For a ring homomorphism f : 𝓞_K → 𝓞_L and a finite place w of L: the finite place of K under w along f (the preimage f⁻¹(w)).
x lies in the conjugate place conj(w) if and only if conj(x) lies in w.
For a finite place w and x ∈ E: the valuation of conj(x) at conj(w) equals that of x at w.
The idempotent adele e = idem(S) satisfies e·e = e.
For a set S of finite places: the idempotent finite adele with component 1 at the places of S and 0 elsewhere.
v_algebraMap_eq_valuationunit 123For x ∈ E and a finite place w: the valuation of x in E_w equals the w-adic valuation of x.
A field homomorphism between CM fields commutes with complex conjugation.
Unit 126 · Primes in arithmetic progressions with prescribed logarithmic intervals · 1 declaration
exists_prime_modEq_one_log_memunit 126Weak Siegel–Walfisz: for natural numbers M ≠ 0 with 4 ∣ M and A, for all large real W: for every k > 1 with M^k ≤ W^A and every U ∈ [W, W^A] there is a prime p ≡ 1 mod M^k with U ≤ log p ≤ U + W.
Unit 92 · Local Frobenius, tame inertia and decomposition groups · 1 declaration
For a natural number N, cycloField(N) = ℚ(ζ_N), the cyclotomic field of order N inside ℚ̄ (fixed field of the kernel of the cyclotomic character mod N).
Unit 29 · Group-algebra projectors and averaging in unitary representations · 1 declaration
For a bijection e : α → β: quantifiers, sums and products over β may be rewritten over α through e.
Unit 104 · Unitary Hecke characters and splitting characters of CM fields · 1 declaration
nonempty_splittingCharunit 104For a CM field E with a CM type and StablyUnram: if every root of unity y of E has a unit δ with ∏_w Φ_w(δ) = 1 and y·conj(δ) = δ, then a splitting character of E exists.
Unit 97 · Global Artin reciprocity and the Brauer local–global principle · 1 declaration
exists_eq_principalIdele_mul_normunit 97Norms in a CM field L; its third part: for every splitting character υ of L and every finite place w with conj(w) = w, υ takes the value −1 at a uniformiser of w.
From Lean's own library · 121 facts
Subgroup.card_dvd_of_injective For an injective group homomorphism f : G →* H of finite groups, |G| divides |H|.
Function.Embedding. nonempty_of_card_le If #α ≤ #β for finite types, there is an embedding α ↪ β.
pow_mula^{m·n} = (a^m)^n.
injective_iff_map_eq_oneA group homomorphism is injective if and only if only 1 maps to 1.
orderOf_dvd_iff_zpow_eq_oneFor a group element x and an integer n: orderOf(x) ∣ n if and only if x^n = 1.
Int.natCast_dvd For a natural number m and an integer n: (m : ℤ) ∣ n if and only if m ∣ |n|.
Nat.not_dvd_of_pos_of_lt If 0 < n < m then m does not divide n.
Behrend.exists_large_sphere For natural numbers n and d there is k such that the sphere {x ∈ {0, …, d−1}^n : Σ x_i² = k} has at least d^n/(n·d²) points.
Behrend.map_injOn The map x ↦ Σ_i x_i·d^i is injective on vectors with all coordinates < d.
pow_injOn_Iio_orderOfFor a group element x, a ↦ x^a is injective on the natural numbers a < orderOf(x).
finFunctionFinEquivThe bijection between functions Fin n → Fin m and Fin (m^n) by base-m digits; in particular Σ_i x_i m^i < m^n.
Finset.card_image_iff The image of a finite set under f has the same cardinality if and only if f is injective on it.
lt_iff_exists_addFor natural numbers, a < b if and only if b = a + c for some c > 0.
ClassGroup.mk0 The class in Cl(K) of a nonzero ideal of the ring of integers; a monoid homomorphism.
ClassGroup.mk0_eq_one_iff The class of a nonzero ideal is 1 if and only if the ideal is principal.
Fintype.exists_ne_map_eq_of_card_lt Pigeonhole: a map from a finite type with more elements than its target identifies two distinct elements.
exists_nat_gtFor every real y there is a natural number n > y.
Real.tendsto_exp_mul_div_rpow_atTop For real s and b > 0: exp(b·x)/x^s → ∞ as x → ∞.
Filter.mem_atTop For every c, the set [c, ∞) belongs to the filter atTop.
Filter.Ioi_mem_atTop For every c, the set (c, ∞) belongs to atTop.
Real.map_exp_atTop The image of the filter atTop under exp is atTop.
Filter.eventually_map A property holds eventually along map f l if and only if its composition with f holds eventually along l.
exists_nat_pow_nearFor reals x ≥ 1 and y > 1 there is a natural number n with y^n ≤ x < y^{n+1}.
Real.log_two_gt_d9 0.6931471803 < log 2.
Real.exp_pos exp(x) > 0 for every real x.
le_self_pow₀For a ≥ 1 and n ≠ 0: a ≤ a^n.
Real.pow_le_of_le_log For y > 0: if log x ≤ n·log y then x ≤ y^n.
Real.log_le_self For x ≥ 0: log x ≤ x.
Nat.ModEq. of_dvd If d ∣ m and a ≡ b mod m, then a ≡ b mod d.
Dvd.dvd. pow If a ∣ b and k ≠ 0, then a ∣ b^k.
le_of_mul_le_mul_leftIf a·b ≤ a·c and a > 0, then b ≤ c.
Nat.pow_log_le_add_one For b > 1 and every natural x: b^{⌊log_b x⌋} ≤ x + 1.
orderOf_posIn a finite group every element has positive order.
pow_orderOf_eq_onex^{orderOf(x)} = 1.
ZMod.natCast_eq_zero_iff The class of a natural number a in ℤ/m is 0 if and only if m ∣ a.
Fin.strictMono_iff_lt_succ A function on Fin(n + 1) is strictly increasing if and only if f(i) < f(i + 1) for every i < n.
Real.log_lt_log_iff For x, y > 0: log x < log y if and only if x < y.
Real.le_sqrt_of_sq_le If x² ≤ y then x ≤ √y.
lt_of_pow_lt_pow_left₀For b ≥ 0 and a natural n: a^n < b^n implies a < b.
Nat.Prime. dvd_or_dvd A prime dividing a product divides one of the factors.
legendreSym.to_jacobiSym The Legendre symbol (a/p) equals the Jacobi symbol J(a | p).
jacobiSym.mod_right' For b odd, J(a | b) = J(a | b mod 4|a|).
jacobiSym.one_left J(1 | b) = 1.
jacobiSym.mod_left' If a₁ ≡ a₂ mod b then J(a₁ | b) = J(a₂ | b).
Nat.mul_dvd_of_dvd_div If c ∣ b and a ∣ b/c then c·a ∣ b.
IsCyclotomicExtension.zeta_spec zeta(n, A, B) is a primitive n-th root of unity in a cyclotomic extension B of A.
Polynomial.Monic. irreducible_of_irreducible_map A monic polynomial whose image under a ring homomorphism into a domain is irreducible is irreducible.
Polynomial.associated_of_dvd_of_natDegree_le If p ∣ q, q ≠ 0 and deg q ≤ deg p, then p and q are associated.
minpoly.dvd The minimal polynomial of x divides every polynomial vanishing at x.
Module.finrank_mul_finrank Tower law: [L:K]·[M:L] = [M:K].
Polynomial.natDegree_cyclotomic deg Φ_n = φ(n).
minpoly.irreducible The minimal polynomial of an integral element over a field is irreducible.
Complex.inv_eq_conj For |z| = 1: z⁻¹ = conj(z).
IsPrimitiveRoot.norm'_eq_one A primitive root of unity in ℂ has absolute value 1.
ZMod.unitsMap_val The reduction (ℤ/n)^× → (ℤ/m)^× (m ∣ n) acts on values by the cast ℤ/n → ℤ/m.
ZMod.coe_int_isUnit_iff_isCoprime The class of an integer a in ℤ/n is a unit if and only if a and n are coprime.
IsCoprime.pow_left If a and b are coprime then a^k and b are coprime.
Int.emod_def a mod b = a − b·(a div b).
zpow_sub₀For a ≠ 0: a^{m−n} = a^m/a^n.
IsPrimitiveRoot.zpow_eq_one_iff_dvd For a primitive n-th root ζ: ζ^l = 1 if and only if n ∣ l.
Nat.Prime. odd_iff A prime p is odd if and only if p ≠ 2.
Nat.twoStepInduction Induction principle with base cases 0 and 1 and the step n, n + 1 ⟹ n + 2.
Units.ext_iff Two units are equal if and only if their values are.
IsPrimitiveRoot.eq_pow_of_pow_eq_one If ζ is a primitive n-th root of unity and y^n = 1, then y = ζ^k for some k < n.
Nat.totient_prime φ(p) = p − 1 for a prime p.
IsCyclotomicExtension.Rat. torsionOrder_eq The roots of unity of ℚ(ζ_n) form a group of order n if n is even and 2n otherwise.
NumberField.Units. dvd_torsionOrder_of_isPrimitiveRoot If a number field contains a primitive k-th root of unity, then k divides the order of its group of roots of unity.
orderOf_eq_primeIf x^p = 1 and x ≠ 1 for a prime p, then orderOf(x) = p.
orderOf_dvd_iff_pow_eq_oneorderOf(x) ∣ n if and only if x^n = 1.
IsPrimitiveRoot.isRoot_cyclotomic A primitive n-th root of unity is a root of Φ_n.
Polynomial.cyclotomic_eq_minpoly Over ℚ, Φ_n is the minimal polynomial of a primitive n-th root of unity.
conductor_mul_differentIdealFor L = K(x) with x integral of minimal polynomial f: the conductor of A[x] times the different of the integral closure is (f′(x)).
Polynomial.cyclotomic. dvd_X_pow_sub_one Φ_n divides X^n − 1.
IsDedekindDomain.map_differentIdeal_dvd_differentIdeal In a tower, under a coprimality condition on the differents, the extension of the different of an intermediate ring divides the different of the top ring over the middle one.
IsPrimitiveRoot.adjoin_primitive_root_eq_top A primitive n-th root of unity generates a cyclotomic extension of order n.
conductor_eq_top_of_adjoin_eq_topIf A[x] is the whole integral closure, the conductor is the unit ideal.
differentIdeal_eq_differentIdeal_mul_differentIdealTransitivity of the different in a tower A ⊂ B ⊂ C.
Ideal.span_mul_span (a)·(b) = (ab) for principal ideals (more generally products of spans).
Ideal.mem_span_singleton x ∈ (y) if and only if y ∣ x.
Polynomial.cyclotomic_eq_prod_X_sub_primitiveRoots Φ_n = ∏_{η primitive n-th root}(X − η) when a primitive n-th root exists.
Finset.mul_prod_erase For a ∈ s: f(a)·∏_{s∖{a}} f = ∏_s f.
Finset.induction_on' Induction over subsets of a finite set by inserting one element at a time.
NumberField.InfinitePlace. prod_eq_abs_norm ∏_w w(x)^{mult(w)} = |N_{K/ℚ}(x)| over the infinite places w.
NumberField.absNorm_differentIdeal The absolute norm of the different of a number field is |disc|.
Nat.ceil_lt_add_one For a real a ≥ 0, ⌈a⌉₊ < a + 1.
Nat.le_ceil For a real a, a ≤ ⌈a⌉₊.
mul_div_cancel₀In a field, b ≠ 0 implies b·(a/b) = a.
two_mul2·a = a + a.
add_div(a + b)/c = a/c + b/c.
Real.log_le_iff_le_exp For a real x > 0: log x ≤ y if and only if x ≤ exp(y).
Real.exp_add exp(a + b) = exp(a)·exp(b).
Real.exp_log For a real x > 0: exp(log x) = x.
Real.add_one_le_exp For every real x: x + 1 ≤ exp(x).
Iff.trans From A ↔ B and B ↔ C, A ↔ C.
Algebra.adjoin_induction To prove a property of all elements of the subalgebra generated by a set, check it on the generators and show it is closed under the ring operations.
iterateFrobenius_defThe n-th iterate of Frobenius in characteristic p is x ↦ x^{p^n}.
map_powA ring homomorphism commutes with powers.
Polynomial.isRoot_cyclotomic_iff In a domain where n ≠ 0, a root of Φ_n is a primitive n-th root of unity.
IsPrimitiveRoot.injOn_pow For a primitive n-th root ζ, k ↦ ζ^k is injective on [0, n).
ringChar.eq The characteristic of a ring with CharP R p is p.
Ideal.Quotient. mk The quotient map 𝓞_E → 𝓞_E/w.
FiniteField.bijective_frobeniusAlgHom_pow Every field automorphism of a finite field of characteristic p is a power of the Frobenius x ↦ x^p.
Ideal.quotientMap A ring homomorphism mapping an ideal into another induces a map of quotients.
Ideal.Quotient. eq_zero_iff_mem The class of x in R/I is 0 if and only if x ∈ I.
Nat.dvd_right_iff_eq Two natural numbers with the same multiples are equal.
Nat.pow_right_inj For a ≥ 2: a^m = a^n if and only if m = n.
Algebra.IsInvariant. exists_smul_of_under_eq If a finite group G acts on B with invariants A, then G acts transitively on the primes of B over a given prime of A: for prime ideals P, Q of B with the same contraction to A there is g ∈ G with Q = g • P (the image of P under g).
smul_mem_pointwise_smul_iffg·x ∈ g·S if and only if x ∈ S.
Ideal.mul_mem_right If a ∈ I then a·b ∈ I.
Ideal.mul_mem_mul If a ∈ I and b ∈ J then a·b ∈ I·J.
IsDedekindDomain.HeightOneSpectrum. intValuation_eq_one_iff intValuation_w(x) = 1 if and only if x ∉ w.
smul_smula • (b • x) = (a·b) • x for a group action.
Polynomial.derivative_map The derivative commutes with mapping the coefficients.
Polynomial.eval_map_apply Evaluating a mapped polynomial at f(x) equals f of the evaluation at x.
IsDedekindDomain.HeightOneSpectrum. valuation_of_algebraMap The w-adic valuation of an integer equals its intValuation.
NumberField.RingOfIntegers. isUnit_norm An integer is a unit if and only if its norm is a unit.
IsPrimitiveRoot.sub_one_norm_eq_eval_cyclotomic For n > 2, a cyclotomic extension L/K of order n with Φ_n irreducible over K, and a primitive n-th root of unity ζ in L: N_{L/K}(ζ − 1) = Φ_n(1), exactly (with positive sign).
IsPrimitiveRoot.norm_eq_one For n ≠ 2, a cyclotomic extension L/K of order n with Φ_n irreducible over K, and a primitive n-th root of unity ζ in L: N_{L/K}(ζ) = 1.
Polynomial.eval_one_cyclotomic_not_prime_pow If n is not a prime power, Φ_n(1) = 1.
IsPrimitiveRoot.eq_neg_one_of_two_right A primitive square root of unity is −1.
IsDedekindDomain.HeightOneSpectrum. intValuation_eq_exp_neg_multiplicity intValuation_w(x) = exp(−multiplicity of w in (x)) for x ≠ 0.
Where it is used
Unit 138 · The choice of the twists: Galois representations of lifts, Selmer groups made short by one anticyclotomic twist, and congruence bounds by Ribet's method, Unit 139 · At most one primitive label per Hecke eigensystem at a chosen place (via Galois representations of lifts), Unit 140 · Good idempotents, labels and the transfer of traces between unitary groups, Unit 141 · The seesaw identity for the chain of theta lifts, and the index types of the data, Unit 143 · The rows: target forms on an indefinite U(r), the volume of the chain of lifts as a product of lift volumes, and the height of each lift volume, Unit 145 · Columns and the chain of theta lifts: levels and branching on the spaces X_j, short ramified columns, divisibility of the chain at each prime (marked primes and scaled Hecke operators), and size bounds, Unit 147 · The exchange identity: theta integrals of complementary rank agree up to a constant, and cruder forms complete a family to a basis in the lower bound, Unit 148 · Translates of Poincaré series fill the rows: a Petersson-type second moment along a Bessel subgroup, Unit 150 · Theta functions of the CM curve: periods and scales, tight frames, the integral vacuum, Galois conjugates of jets, and divisibility of jets at non-split primes, Unit 151 · The endgame: the weighted prime sum and its remainder, the one-sided criterion (Landau), the choice of the second scale, and the statements and assembly of Theorems A, B and C, Unit 154 · The inequality (⋆), the one-sided bound for the remainder of the weighted prime sum, the generalised Riemann hypothesis, and the passage to the critical line
Its files
The program check
239 of 239 statements stand at the lines the dossier gives; 39 structured proofs with 172 steps, 145 of them leaves, the longest of 5 lines; 172 steps quote exactly their lines. Checked 2026-11-26T19:36Z.
The check shows that the dossier describes the lines it cites. Whether the English is right is read when a note is written.