Choose a statement on the pages, or with the arrows above, to see its structured proof and its Lean text here.
Definition. For a natural number s, towerDeg(s) = 3^{\lfloor \log _3 s\rfloor +5}\cdot 2^s, a natural number (Lean derives NeZero); with c = \lfloor \log _3 s\rfloor + 5 one has 81s < 3^c \le 243s for s \ge 1, and c = 5 for s = 0.
New/Data/Different.lean · line 41def _root_.towerDeg := 3 ^ (.log 3 s + 5) * 2 ^ s deriving NeZero
Definition (abbreviation). For parameters P and an exponent s, N_1(P, s) = N_0(P)\cdottowerDeg(s) = N_0(P)\cdot 3^c\cdot 2^s.
New/Data/Different.lean · line 44abbrev N₁ := P.N₀ * towerDeg s
Definition (abbreviation). For parameters P, K(P) = QuadField(d(P)) = \mathbb{Q}(i\cdot \sqrt{d(P)}), the imaginary quadratic field \mathbb{Q}(\sqrt{-d(P)}) as a subfield of \mathbb{C}.
New/Data/Different.lean · line 64abbrev K := QuadField P.d
Definition. For parameters P and an exponent s, M\omega (P, s) = (N_0(P)\cdot d(P))^{s+6}, a natural number (Lean derives NeZero). Only later, for admissible data and a chosen place w, is it the exact order of the residue character \omega _w, the M\omega-th power of a character of order M\omega ^{2} (New/Seesaw/IndexTypes.lean 67–79); the definition is just the number.
New/Data/Different.lean · line 68def Mω := (P.N₀ * P.d) ^ (s + 6) deriving NeZero
Definition. For parameters P and an exponent s, E(P, s) = CyclotomicField(N_1(P, s), K(P)): the field K(\zeta (P, s)) obtained from K by adjoining a primitive root of unity of order N_1(P, s) (Mathlib's CyclotomicField: by definition the splitting field over K of the N_1(P, s)-th cyclotomic polynomial \Phi _{N_1(P, s)}; by a separate Mathlib theorem it is also a splitting field of X^{N_1(P, s)} - 1); the roots adjoined have order N_1(P, s), while the degrees are [E(P, s) : K(P)] = \varphi (N_1(P, s)) = towerDeg(s)\cdot \varphi (N_0(P)) (\Phi _{N_1(P, s)} is irreducible over K(P), irreducible_cyclotomic) and [E(P, s) : \mathbb{Q}] = 2\varphi (N_1(P, s)); Lean derives Field, Algebra K and NumberField for it.
New/Data/Different.lean · line 79def E := CyclotomicField (P.N₁ s) P.K deriving Field, Algebra P.K, NumberField
Definition (abbreviation). For parameters P and an exponent s, \Phi (P, s) is the type of infinite places of E(P, s); it carries the group structure of \operatorname{Gal}(E/K) (galOfPlace).
New/Data/Different.lean · line 83protected abbrev Φ := InfinitePlace (P.E s)
Definition. For parameters P, an exponent s and an integer \nu, placeOfInt(P, s, \nu ) \in \Phi (P, s) is placeMulEquiv(P, s)^{-1}(\nu \bmod N_1(P, s)) if \nu is a unit modulo N_1(P, s), and the identity place 1 otherwise.
New/Data/Different.lean · line 135def placeOfInt ν := if h : IsUnit (Int.cast ν) then (P.placeMulEquiv s).symm h.unit else 1
Definition. For parameters P, an exponent s, a natural number m and a proof d of m \mid N_1(P, s) (the binder is named d in Lean; it is not the prime d(P)), placeClass(P, d) : \Phi (P, s) \to * (\mathbb{Z}/m)^\times is placeMulEquiv(P, s) followed by reduction (\mathbb{Z}/N_1(P, s))^\times \to (\mathbb{Z}/m)^\times. Other texts write placeClass(P, h) for the proof h at hand.
New/Data/Different.lean · line 139def placeClass {s m} (d : m ∣ P.N₁ s) := (ZMod.unitsMap d).comp (P.placeMulEquiv s).toMonoidHom
Definition. For parameters P and an exponent s, bigOmega(P, s) = \exp(chowlaSelbergConst(d(P)))\cdot (2\pi /rd_E), rd_E = rootDiscr(E(P, s)) the root discriminant; i.e. \Omega = \exp (\gamma - \operatorname{Re} L'/L(1, \chi _K))\cdot 2\pi /rd_E.
New/Data/Different.lean · line 87def bigOmega := (chowlaSelbergConst P.d).exp * (2 * .pi / rootDiscr (P.E s))
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 (by Classical.choose) from Parameters.exists_isJetConjugate_generator P, 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, and 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.lean 21–22), |chowlaSelbergConst(d(P))| (ShortAndEnough.lean 76) and the chosen constant C (New/Curve/ConjugatesOfJets.lean 169–198), and admissible data make it negligible against their scales (their field scale asks 10^{12}\cdot c(P) \le \log \log b(D)). (The source's gloss, New/Main.lean 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.)
New/Data/AdmissibleData.lean · the statement, line 15def Parameters.c P := (exists_isJetConjugate_generator P).choose + (2 * P.d + 6) +
Structure. 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}, then placeClass(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 proof Parameters.two_pow_dvd_N₁ 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; (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}}.
New/Data/AdmissibleData.lean · the statement, line 22structure Data (P : Parameters) where
Definition. For admissible data D over parameters P, the scale x(D) = \exp (\mathit{logX}(D)), a real number.
New/Data/AdmissibleData.lean · line 52abbrev x := D.logX.exp
Definition. For admissible data D over parameters P, the scale x_1(D) = \exp (\mathit{logX}_1(D)), a real number.
New/Data/AdmissibleData.lean · line 55abbrev x₁ := D.logX₁.exp
Definition. For admissible data D over parameters P, the scale b(D) = \exp (\mathit{logB}(D)), a real number.
New/Data/AdmissibleData.lean · line 58abbrev b := D.logB.exp
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 instances NumberField, CharZero and IsCMField (E(D) is a CM field).
New/Data/AdmissibleData.lean · line 62@[reducible] def E := P.E D.s deriving NumberField, CharZero, IsCMField
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.
New/Data/AdmissibleData.lean · line 66protected abbrev Φ := InfinitePlace D.E
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.
New/Data/AdmissibleData.lean · line 69abbrev N₁ := P.N₁ D.s
Definition (abbreviation). For admissible data D over parameters P, f(D) = numInfPlaces(E(D)), the number of infinite places of E(D).
New/Data/AdmissibleData.lean · line 72abbrev f := numInfPlaces D.E
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.
New/Data/AdmissibleData.lean · line 75protected abbrev cycloConductor := D.N₁ * P.d
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's rootDiscr).
New/Data/AdmissibleData.lean · line 78abbrev rootDisc := rootDiscr D.E
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.
New/Data/AdmissibleData.lean · line 113abbrev placeOfInt : D.Φ := P.placeOfInt _ j
Definition. For admissible data D over parameters P, tops(D) is the finite set of infinite places \tau \in \Phi (D) with placeClass(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).
New/Data/AdmissibleData.lean · line 127def tops : Finset D.Φ := {τ | P.placeClass (P.N₀.dvd_mul_right _) τ = 1}
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 derives NeZero for it).
New/Data/AdmissibleData.lean · line 124def gProd := D.g 0 * D.g 1 deriving NeZero
Definition. For admissible data D over parameters P, the rank k(D) = (r(D) + 1) - m(D), a natural number (truncated subtraction).
New/Data/AdmissibleData.lean · line 82def k := D.r + 1 - D.m
Definition. For admissible data D over parameters P, t(D) = 5\cdot r(D), a natural number.
New/Data/AdmissibleData.lean · line 85def t := 5 * D.r
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.
New/Data/AdmissibleData.lean · line 116def n := D.k + j * (D.t + 1)
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.
New/Data/AdmissibleData.lean · line 119abbrev posRank := D.k + j - 1
Definition. For admissible data D over parameters P, the half-gap h_2(D) = r(D)^{8}, a natural number.
New/Data/AdmissibleData.lean · line 92def h₂ := D.r ^ 8
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.
New/Data/AdmissibleData.lean · line 95def h := 2 * D.h₂
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).
New/Data/AdmissibleData.lean · line 98def reducedHalfGap := D.h₂ - (D.t + 1) / 2
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.
New/Data/AdmissibleData.lean · line 88def roundUp := D.N₁ * ⌈y / D.N₁⌉₊
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).
New/Data/AdmissibleData.lean · line 101def a := D.roundUp (D.x * D.b)
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.
New/Data/AdmissibleData.lean · line 105def b₁ := D.roundUp (D.a / D.x)
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}.
New/Data/AdmissibleData.lean · line 109def b₂ := D.roundUp (D.a / D.x₁)
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.
New/Data/AdmissibleData.lean · line 131def w (σ : D.Φ) := ite (σ ∈ D.thick) D.b₁ D.b₂ + j * D.h + D.h₂
Definition. For admissible data D over parameters P and an infinite place \sigma \in \Phi (D), the nominal weight nominalWeight(D, \sigma ) = a(D)/x(D) if \sigma \in \operatorname{thick}(D) and a(D)/x_1(D) otherwise, a real number.
New/Data/AdmissibleData.lean · line 134def nominalWeight (σ : D.Φ) := D.a / ite (σ ∈ D.thick) D.x D.x₁
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; here lambdaClass(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 product placeOfInt(D, -\nu )\cdot \sigma is taken in the group \Phi (D).
New/Data/AdmissibleData.lean · the statement, line 138def primeSum σ := ∑ ν ∈ .Icc 1 D.a,
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.
New/Data/AdmissibleData.lean · line 143abbrev budget := D.f * D.a * D.logB ^ 3
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)).
New/Data/AdmissibleData.lean · line 147def jetSize := log (Nat.factorial j) - j * (P.bigOmega D.s / D.gProd).log
Definition. For admissible data D over parameters P, the cost of one direction dirCost(D) = \sum _{\sigma \in \Phi (D)} (jetSize(D, w(D, 0, \sigma )) - primeSum(D, nominalWeight(D, \sigma ), \sigma)), a real number.
New/Data/AdmissibleData.lean · line 151def dirCost := ∑ σ, (D.jetSize (D.w 0 σ) - D.primeSum (D.nominalWeight σ) σ)
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 field out) 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.
New/Data/Magnitudes.lean · lines 18–19class HasLogBound (D : Data P) (u : Bool) F (l : outParam ℝ) where out : ite u (|F| ≤ exp l) (exp l ≤ F)
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).
New/Data/Magnitudes.lean · line 38abbrev HasLogUpper := D.HasLogBound true
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.
New/Data/Magnitudes.lean · line 41abbrev HasLogLower := D.HasLogBound false
For parameters P and admissible data D over P (D explicit), reals F and l, and an instance HasLogLower(D)(F, l) (\exp (l) \le F): 0 < F.
New/Data/Magnitudes.lean · line 43lemma HasLogBound.pos [D.HasLogLower F l] : 0 < F := by grind
For parameters P, admissible data D over P, reals F, G, l, an instance HasLogUpper(D)(F, l) (|F| \le \exp (l)) and the premise |G| \le F: HasLogUpper(D)(G, l).
New/Data/Magnitudes.lean · line 94lemma hasLogUpper_of_abs_le : |G| ≤ F → D.HasLogUpper G l := by grind
For parameters P, admissible data D over P, reals F, G, l, an instance HasLogUpper(D)(F, l), a proof e of G \le F and a proof h of 0 \le G (by default found by positivity): HasLogUpper(D)(G, l).
New/Data/Magnitudes.lean · lines 96–97lemma hasLogUpper_of_le_of_nonneg (e : G ≤ F) (h : 0 ≤ G := by positivity) : D.HasLogUpper G l := by grind
For parameters P, admissible data D over P (explicit), a real l, natural numbers A and B, an instance HasLogUpper(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).
New/Data/Magnitudes.lean · line 111lemma hasLogUpper_of_le : B ≤ A → D.HasLogUpper B l := by grind [cast_le]
For parameters P, admissible data D over P (explicit), reals F, G, l', an instance HasLogLower(D)(G, l') (\exp (l') \le G) and the premise G \le F: HasLogLower(D)(F, l').
New/Data/Magnitudes.lean · line 113lemma hasLogLower_of_le : G ≤ F → D.HasLogLower F l' := by grind
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), instances HasLogLower(D)(G, l) (\exp (l) \le G) and HasLogUpper(D)(H, l') (|H| \le \exp (l')), a proof e of G \le F \le H (by default found by simp) 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 and grind with 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.)
New/Data/Magnitudes.lean · lines 49–51lemma 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]
For parameters P, admissible data D over P (explicit), reals F, G, l, l', instances HasLogUpper(D)(F, l) (|F| \le \exp (l)) and HasLogLower(D)(G, l') (\exp (l') \le G), and a proof e of l < l' (by default found by grind from the scale conditions of D alone): F < G, since F \le |F| \le \exp (l) < \exp (l') \le G.
New/Data/Magnitudes.lean · line 117protected lemma lt_of_hasLogBound : F < G := by grind [=_ exp_lt_exp]
For parameters P, admissible data D over P (explicit), reals F, G, l, l', instances HasLogUpper(D)(F, l) and HasLogLower(D)(G, l'), and a proof e of l < l' (by default found by grind from 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.
New/Data/Magnitudes.lean · line 121protected lemma le_of_hasLogBound : F ≤ G := (D.lt_of_hasLogBound e).le
For parameters P, admissible data D over P (explicit), reals l, l', natural numbers A, B, instances HasLogUpper(D)(A, l) and HasLogLower(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.
New/Data/Magnitudes.lean · line 123lemma nat_lt_of_hasLogBound : A < B := cast_lt.1 (D.lt_of_hasLogBound e)
For parameters P, admissible data D over P (explicit), reals l, l', natural numbers A, B, instances HasLogUpper(D)(A, l) and HasLogLower(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.
New/Data/Magnitudes.lean · line 125lemma nat_le_of_hasLogBound : A ≤ B := (D.nat_lt_of_hasLogBound e).le
Instance (low priority). For parameters P, admissible data D over P, a natural number A with an instance NeZero A (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.
New/Data/Magnitudes.lean · lines 53–54instance (priority := low) hasLogBound_natCast [NeZero A] : HasLogBound D u A (ite u A 0) := by grind
Instance (products add exponents). For parameters P, admissible data D over P, reals F, G, l, l', a Boolean u, and instances HasLogBound(D, u, F, l) and HasLogBound(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).
New/Data/Magnitudes.lean · line 63instance hasLogBound_mul : HasLogBound D u (F * G) (l + l') := by grind [exp_add, mul_le_mul]
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 instances HasLogBound(D, u, F, l) and HasLogBound(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.
New/Data/Magnitudes.lean · the statement, line 65instance hasLogBound_add : HasLogBound D u (F + G) (max l l' + ite u 1 0) := ⟨by
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.card_infinitePlace_E) 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}.
New/Data/Magnitudes.lean · the statement, line 155instance hasLogBound_f : HasLogBound D u D.f (11 * D.logX + ite u (D.logB.log / 5 + P.c) 0) :=
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.
New/Data/Magnitudes.lean · the statement, line 21lemma c_ge : 64 ≤ P.c ∧ P.N₀ ≤ P.c ∧ P.d ≤ P.c ∧ φ P.N₀ ≤ P.c := by
For parameters P, admissible data D over P (explicit), reals F and l, and an instance HasLogLower(D)(F, l) (\exp (l) \le F, so F > 0): F \le roundUp(D, F) \le F + N_1(D).
New/Data/Magnitudes.lean · the statement, line 169lemma roundUp_mem_Icc [D.HasLogLower F l] : ↑(D.roundUp F) ∈ Icc F (F + D.N₁) := by
For parameters P and admissible data D over P: r(D) is odd (r(D) = 3^{e+1} by the field r_{\mathrm{pow}}).
New/Data/Magnitudes.lean · line 27lemma r_odd : Odd D.r := by grind [D.r_pow]
For parameters P and admissible data D over P: m(D) is even (m(D) = 2^{e+1} by the field m_{\mathrm{pow}}).
New/Data/Magnitudes.lean · line 30lemma m_even : Even D.m := by grind [D.m_pow]
For parameters P and admissible data D over P: 10000 \le m(D); by nat_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)).
New/Data/Magnitudes.lean · line 137lemma le_m : 10000 ≤ D.m := D.nat_le_of_hasLogBound
For parameters P and admissible data D over P: r(D) + 1 = k(D) + m(D); since m(D) \le r(D) + 1 (by nat_le_of_hasLogBound), the truncated subtraction in k(D) = (r(D) + 1) - m(D) is exact.
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).symm
For parameters P and admissible data D over P: k(D) \le r(D) (as m(D) \ge 1).
New/Data/Magnitudes.lean · line 141lemma k_le_r : D.k ≤ D.r := by grind [le_m]
For parameters P and admissible data D over P: 100\cdot m(D) \le k(D) (by nat_le_of_hasLogBound).
New/Data/Magnitudes.lean · line 195lemma hundred_mul_m_le_k : 100 * D.m ≤ D.k := D.nat_le_of_hasLogBound
For parameters P and admissible data D over P: 0 < k(D) (by nat_le_of_hasLogBound).
New/Data/Magnitudes.lean · line 197@[simp] lemma k_pos : 0 < D.k := D.nat_le_of_hasLogBound
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.
New/Data/Magnitudes.lean · line 199lemma n_mono : Monotone D.n := mul_left_mono.const_add _
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)).
New/Data/Magnitudes.lean · line 201lemma k_even : Even D.k := by grind
For parameters P and admissible data D over P: t(D) = 5\cdot r(D) is odd.
New/Data/Magnitudes.lean · line 205lemma t_odd : Odd D.t := by grind
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).
New/Data/Magnitudes.lean · line 207lemma r_add_six_le_t : D.r + 6 ≤ D.t := by grind [D.r_pow]
For parameters P and admissible data D over P: k(D) + t(D) + 1 \le h_2(D) = r(D)^{8} (by nat_le_of_hasLogBound).
New/Data/Magnitudes.lean · line 210lemma k_add_t_add_one_le_h₂ : D.k + D.t + 1 ≤ D.h₂ := D.nat_le_of_hasLogBound
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 witness towerDeg(s(D)); this is the field thick_eq_neg_one_mod of D for the divisor m' = N_0(P) of N_0(P)\cdot 3^{\lfloor \log _3 s\rfloor +5}.
New/Data/Magnitudes.lean · the statement, line 34lemma placeClass_of_thick : ∀ σ ∈ D.thick, P.placeClass ⟨_, rfl⟩ σ = -1 :=
For parameters P, admissible data D over P and an infinite place \sigma \in \Phi (D): a(D)/x_1(D) \le nominalWeight(D, \sigma ) \le a(D)/x(D) (as x(D) \le x_1(D) by le_of_hasLogBound).
New/Data/Weights.lean · the statement, lines 14–15lemma nominalWeight_mem_Icc : D.nominalWeight σ ∈ Icc (D.a / D.x₁) (D.a / D.x) := by
For parameters P, admissible data D over P and an infinite place \sigma \in \Phi (D): 0 \le nominalWeight(D, \sigma ).
New/Data/Weights.lean · line 21@[simp, bound] lemma nominalWeight_nonneg : 0 ≤ D.nominalWeight σ := (HasLogBound.pos D).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).
New/Data/Weights.lean · the statement, line 25lemma nominalWeight_add_le : D.nominalWeight σ + D.x ^ 42 ≤ 2 * D.b := by
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).
New/Data/Weights.lean · lines 29–30lemma nominalWeight_le_w_sub j σ : D.nominalWeight σ ≤ D.w j σ - D.h₂ := by simp; split <;> grw [← D.roundUp_mem_Icc.1] <;> bound
For parameters P, admissible data D over P, a natural number j with hj : j \le 2\cdot m(D) and an infinite place \sigma \in \Phi (D): w(D, j, \sigma ) \le nominalWeight(D, \sigma ) + x(D)^{42}; since w(D, j, \sigma ) = (b_1(D) or b_2(D)) + j\cdot h(D) + h_2(D) \le nominalWeight(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} by le_of_hasLogBound.
New/Data/Weights.lean · the statement, line 36lemma w_le_nominalWeight_add : D.w j σ ≤ D.nominalWeight σ + D.x ^ 42 := by
For parameters P, admissible data D over P, a natural number j with hj : j \le 2\cdot m(D) and an infinite place \sigma \in \Phi (D): w(D, j, \sigma ) \le 2\cdot b(D) (from w_le_nominalWeight_add and nominalWeight_add_le).
New/Data/Weights.lean · lines 40–41lemma w_le_two_mul_b : D.w j σ ≤ 2 * D.b := by grw [w_le_nominalWeight_add _ hj, nominalWeight_add_le]
For parameters P, admissible data D over P, a natural number j with hj : j \le 2\cdot m(D) and an infinite place \sigma \in \Phi (D): \log w(D, j, \sigma ) \le \log nominalWeight(D, \sigma ) + x(D)^{-1}.
New/Data/Weights.lean · the statement, line 51lemma log_w_le : log (D.w j σ) ≤ log (D.nominalWeight σ) + D.x⁻¹ := by
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), onto ChosenPlace(D, i), the finite places w of E(D) that contain both piGBar(D) and g(D)(i); it is chosen (by Nonempty.some) from Parameters.nonempty_infinitePlace_equiv_finPlace applied to the prime p = g(D)(i) \equiv 1 \bmod N_1(D)\cdot d(P) (field g_modEq_one) and the integer a = piGBar(D), whose norm piGBar(D)\cdot \operatorname{conj}(piGBar(D)) is g(D)(i) times a natural number prime to g(D)(i) (Data.exists_cofactor).
New/Data/ChosenPlaceLevels.lean · the statement, line 18def chosenEquiv : D.Φ ≃ D.ChosenPlace i :=
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).
New/Data/ChosenPlaceLevels.lean · the statement, line 23lemma card_chosenPlace : Fintype.card (D.ChosenPlace i) = D.f :=
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.q_eq_g) and there are f(D) of them (card_chosenPlace).
New/Data/ChosenPlaceLevels.lean · the statement, line 38lemma prod_q_chosenPlace : ∏ x, (D.chosen x).q = D.gProd ^ D.f := by simp [chosen,
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 (by Parameters.star_mem_iff with p = g(D)(i) and a = piGBar(D)).
New/Data/ChosenPlaceLevels.lean · the statement, line 46lemma isChosen_star_iff {i} : ↑(D.g i) ∈ w.1 → (D.IsChosen (star w) ↔ ¬D.IsChosen w) :=
For parameters P and admissible data D over P (both implicit), a finite place w of E(D) and the premise IsChosen(D, w): the conjugate place star(w) is not chosen.
New/Data/ChosenPlaceLevels.lean · lines 81–82lemma IsChosen.not_star : D.IsChosen w → ¬D.IsChosen (star w) := by grind [isChosen_iff, isChosen_star_iff]
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).
New/Data/ChosenPlaceLevels.lean · lines 59–60lemma range_chosen : .range D.chosen = {w | D.IsChosen w} := by ext; rw [Set.mem_ofPred, isChosen_iff]; aesop
For parameters P and admissible data D over P (both implicit): the family chosen(D) : (\sum _{i \in \{0,1\}} ChosenPlace(D, i)) \to FinPlace(E(D)) is conjugation-apart (class IsConjApart): it is injective (places above g(D)(0) \ne g(D)(1) have different norms, Data.q_eq_g), and the conjugate of chosen(D)(x) is never chosen(D)(y) (a chosen place's conjugate is not chosen, isChosen_star_iff).
New/Data/ChosenPlaceLevels.lean · the statement, line 56instance isConjApart_chosen : IsConjApart D.chosen := ⟨by grind [g_injective, q_eq_g, chosen,
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 completion LocField(w) = E(D)_w is \exp (-1) (multiplicative notation: Mathlib's .exp (-1) 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.
New/Data/ChosenPlaceLevels.lean · the statement, line 26lemma v_N_eq_exp_neg_one (h : ↑D.N ∈ w.1) : Valued.v (D.N : LocField w) = .exp (-1) := by
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: .exp (-1) in the value group \mathbb{Z}^{m0}, the value of a uniformiser, not the real number e^{-1}).
New/Data/ChosenPlaceLevels.lean · the statement, line 30lemma intValuation_pi (h : D.π ∈ w.1) : w.intValuation D.π = .exp (-1) :=
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 \in ChosenPlace(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 derives NeZero).
New/Data/ChosenPlaceLevels.lean · line 36def chosenGroupOrder := Nat.card (∀ x, GL (Fin (D.r * D.t)) (ResField (D.chosen x))) deriving NeZero
For parameters P and admissible data D over P (both implicit), a finite type n and an instance Fintype n: 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.
New/Data/ChosenPlaceLevels.lean · line 44abbrev chosenLevel := levelOf (n := n) D.chosen ⊥
For parameters P and admissible data D over P (both implicit), a finite type n with an instance Fintype n, 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, divides chosenGroupOrder (of D).
New/Data/ChosenPlaceLevels.lean · the statement, lines 51–52lemma card_GL_dvd_chosenGroupOrder (h : Fintype.card n ≤ D.r * D.t) : .card (∀ x, GL n (ResField (D.chosen x))) ∣ D.chosenGroupOrder :=
For parameters P and admissible data D over P (both implicit), a finite type n with an instance Fintype n, an integer a of E(D) and h : piGBar(D) divides a: principalLevel(n, a) \le chosenLevel, since every chosen place contains piGBar(D) and hence a.
New/Data/ChosenPlaceLevels.lean · the statement, line 62lemma principalLevel_le_chosenLevel {a} (h : D.piGBar ∣ a) : principalLevel n a ≤ D.chosenLevel :=
For parameters P and admissible data D over P (both implicit), a finite type n with an instance Fintype n, a subgroup K of Gf(E(D), n) with hK : K \le chosenLevel, 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).
New/Data/ChosenPlaceLevels.lean · the statement, lines 67–68lemma 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.1
For parameters P and admissible data D over P (both implicit), a finite type n with an instance Fintype n, 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 of classAut(stdRatPoints, K, g), the stabiliser in U_n(E(D)) of the coset gK, divides chosenGroupOrder (of D) (Minkowski's lemma).
New/Data/ChosenPlaceLevels.lean · the statement, lines 75–76lemma 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_injective
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 by omega), and a finite place w of E(D): (\omega (D)^n)(w) \ne 1 if and only if IsChosen(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.
New/Data/ChosenPlaceLevels.lean · the statement, lines 86–87lemma omega_zpow_ne_one (n : ℤ) (h : n ≠ 0 ∧ n.natAbs ≤ 8 * D.m := by omega) w : (D.ω ^ n) w ≠ 1 ↔ D.IsChosen w := by
Behrend'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 with hL : 0 < L and h : (L\cdot M)^n \le orderOf(\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.
New/Data/DataExist.lean · the statement, lines 20–23lemma 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 _ ↦ by
Pigeonhole 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.
New/Data/DataExist.lean · the statement, lines 41–42lemma 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 :=
Existence 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 along atTop) 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, and towerDeg(s(D))/\log b(D) \le \#\operatorname{thick}(D).
New/Data/DataExist.lean · the statement, lines 49–51lemma 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 := by