grh-compacta Lean artifact read back into mathematics

Chapter II · 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

note and structured proofs · 29 declarations · 18 structured proofs · 1 note

PrimeError defines the weight \lambda_{d,M}(\nu) = \Lambda(\nu)(1 - (\nu/d)) on \nu \equiv 1 \bmod M and the remainder R_{d,M}(x) of its weighted sum, proves the finite-sum identity used by the data, and shows that v \mapsto R_{d,M}(e^v) is polar with residues given by orders of zeros of L-functions. OneSidedCriterion turns a one-sided bound R_{d,M}(x) \le x^{\beta-1}, for all primes d of a class, into a zero-free half-plane \operatorname{Re} s > \beta (Landau's lemma, applied with a prime d of the class whose quadratic twists of all characters modulo M have no zero in a box to the right of \beta; the artifact proves that such a d exists from its own zero-density estimate for quadratic twists), and finds in every window [t, t^2] a second scale u where R - X \cdot R' \le e^{-t}. ShortAndEnough defines the main amount, the remainder \operatorname{rem}(D) and the index, bounds the height per row by the choice of the level prime, writes \operatorname{rem}(D) through R_{d,N_0} and R_{d,1}, and proves Theorem A (short forms) and Theorem B (enough forms) from the seesaw identity, the size and divisibility of the chains of lifts, and the filling theorem. LongForms proves Theorem C (integral forms are long) by heights and the product formula, and combines A and B into one family.

Notes

What it holds · 29 declarations

What it takes for granted

Unit 10 · Lattice fundamental domains and holomorphic parameter integrals, Unit 19 · Integral branching maps for general linear groups, Unit 20 · Bases of minors and the Weyl character formula for Schur modules, Unit 29 · Group-algebra projectors and averaging in unitary representations, Unit 37 · The adelic Heisenberg action, Weil representation and theta functional, Unit 54 · Period lattices and complex uniformization of polarized abelian varieties, Unit 57 · Fitting ideal bounds and multivariate Hensel lifting, Unit 63 · Almost acyclicity and descent for perfect test algebras, Unit 99 · Short bases of Hermitian lattices and the unitary mass, Unit 102 · Adelic cusp forms, algebraic modular forms and the Petersson pairing, Unit 106 · Class numbers and adelic fundamental domains of number fields, Unit 107 · Landau’s one-sided criterion for poles, Unit 112 · Matrix determinant estimates and simultaneous eigenvectors, Unit 116 · Casimir eigenvalues and decay of Flensted–Jensen coefficients, Unit 121 · Minkowski bounds and adelic reduction of Hermitian forms, Unit 122 · Adelic Hermitian spaces and principal congruence subgroups, Unit 123 · Adelic self-duality and a one-sided Poisson summation bound, Unit 127 · Quadratic twists with zero-free half-strips, Unit 135 · Heights of families indexed by ℓ-adic embeddings, the product formula, and the height of one Gram determinant, 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 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 149 · A crude bound for the class number of the standard definite hermitian genus, and divisibility of indices of submodules, 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 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

Unit 106 · Class numbers and adelic fundamental domains of number fields · 5 declarations
  • chiK unit 106

    χ_d = chiK d: for a prime d, the Legendre symbol (·/d) as an integer-valued Dirichlet character modulo d (the quadratic character of ℤ/d). Only for d ≡ 3 mod 4 is it the character χ_K of K = ℚ(√−d) (the source's own doc comment says so); the definition takes every prime d.

  • chowlaSelbergConst unit 106

    ℓ(d) = γ − Re L̃′/L̃(1, 1·χ_d), γ Euler's constant (the twist of the character modulo 1 by the Legendre symbol modulo d).

  • entireL unit 106

    L̃(s, χ) = entireL χ s, for a Dirichlet character χ modulo N ≠ 0: L(s, χ) if χ is not principal, and, if χ is principal, Mathlib's LFunctionTrivChar₁ N, the entire continuation of (s − 1)·L(s, χ): the function equal to (s − 1)·L(s, χ) for s ≠ 1 and to ∏_{p∣N}(1 − 1/p) = φ(N)/N at s = 1 (Mathlib at the pin, DirichletContinuation.lean 337–339; for N = 1 the empty product 1).

  • quadTwist unit 106

    ξ·χ_d = quadTwist ξ d: for a Dirichlet character ξ modulo N and a prime d, the character modulo N·d that is the product of ξ and the Legendre symbol (·/d).

  • chiK_eq_legendreSym unit 106

    χ_d(n) = (n/d) (Legendre symbol) for every natural n.

Unit 107 · Landau’s one-sided criterion for poles · 10 declarations
  • entireL_ne_zero unit 107

    For every N ≠ 0, every Dirichlet character χ modulo N and every complex s with Re s ≥ 1: L̃(s, χ) ≠ 0 (for χ principal and s = 1 this is the value ∏_{p∣N}(1 − 1/p) ≠ 0). No primitivity is assumed.

  • IsPolar unit 107

    IsPolar(E, r) for E : ℝ → ℝ and r : ℂ → ℂ: E is measurable and there are a real C and a meromorphic Φ : ℂ → ℂ with |E(v)| ≤ C·e^v for v ≥ 0, Φ(s) = ∫_0^∞ E(v)e^((1−s)v) dv for Re s > 2, (s − 1)Φ(s) analytic near every point of Re s ≥ 1, and (z − ρ)Φ(z) → r(ρ) as z → ρ, z ≠ ρ, for every ρ with Re ρ > 0. Since Φ is a function defined at s = 1, the product (s − 1)Φ(s) vanishes at s = 1, so the analyticity says that Φ has no pole at 1 (off s = 1 it agrees with a function holomorphic near 1), as the source's doc comment says; read in ordinary notation without that value, '(s − 1)Φ(s) analytic' would still allow a simple pole.

  • tendsto_sub_mul_logDeriv_entireL unit 107

    For every s: ord_s L̃(·, χ) = 0 iff L̃(s, χ) ≠ 0, and (z − s)·L̃′/L̃(z, χ) → ord_s L̃(·, χ) as z → s, z ≠ s.

  • laplace_pow unit 107

    For Re s > 0 and every natural k: ∫_0^∞ t^k e^(−st) dt = k!/s^(k+1).

  • LSeriesHasSum_mul_vonMangoldt unit 107

    For Re s > 1, ∑_{n≥1} χ(n)Λ(n)n^(−s) = [χ = 1]/(s − 1) − L̃′/L̃(s, χ).

  • quadTwist_apply unit 107

    (ξ·χ_d)(n) = ξ(n)·(n/d) for every integer n.

  • integrableOn_laplace_of_abs_le unit 107

    If E is measurable, |E(v)| ≤ C·e^v for v ≥ 0 and Re s > 2, then v ↦ E(v)e^((1−s)v) is integrable on (0, ∞).

  • quadTwist_ne_one unit 107

    For d ≠ 2 prime and N coprime to d, the twist ξ·χ_d is not principal.

  • IsPolar.landau unit 107

    Landau's lemma, in this form: for E : ℝ → ℝ and r : ℂ → ℂ with IsPolar(E, r), a real β > 0 with Re r(x) ≥ 0 for every real x > β, and E(v) ≤ e^((β−1)v) for all sufficiently large v: r(ρ) = 0 for every complex ρ with Re ρ > β. (E is only assumed measurable, with the bound of IsPolar; see literature.)

  • summable_taylor_of_removable unit 107

    If (z − a)Ψ(z) is analytic on the open disc of radius ε about z₀, z₀ ≠ a, and a, σ lie in that disc, then the Taylor series ∑_k (σ − z₀)^k Ψ^(k)(z₀)/k! converges (is summable). Ψ is a function defined at a, so (z − a)Ψ(z) vanishes at z = a; hence Ψ agrees off a with a function analytic on the whole disc (its slope at a, Mathlib's dslope), with the same derivatives at z₀ — the singularity at a is removable — and the Taylor series at z₀ converges on the disc.

Unit 127 · Quadratic twists with zero-free half-strips · 1 declaration
  • exists_entireL_quadTwist_ne_zero unit 127

    For N ≠ 0, a real β > 1/2, a real y (of any sign; for y < 0 the condition on s below is empty, and the lemma still gives a prime) and a unit a modulo N such that every prime d ≡ a mod N is ≡ 7 mod 8 and prime to N: there is a prime d ≡ a mod N such that, for every Dirichlet character ξ modulo N and every s with Re s ≥ β and |Im s| ≤ y, L̃(s, ξ·χ_d) ≠ 0 — one prime d for all characters ξ at once (ξ is bound in the conclusion, after d; see census_note). Proved in the artifact (unit 127) from its own zero-density estimate for each twist (zero_density_quadTwist) and the divergence of ∑ 1/p over the primes p ≡ a mod N; see literature.

Unit 57 · Fitting ideal bounds and multivariate Hensel lifting · 2 declarations
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 · 21 declarations
Unit 141 · The seesaw identity for the chain of theta lifts, and the index types of the data · 7 declarations
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 · 7 declarations
  • Data.heightPerRow unit 145

    h₀(D) = m_D·(∑_{τ∈tops(D)} (jetSize_D(a_D) − Ask(D, a_D, τ)) + k_D·𝖴(D)) − #tops(D)·a_D·log N_D.

  • Data.nonsplitPrimes unit 145

    The primes p < x₁ with (p/d) ≠ 1 (not split in K).

  • Data.allowedLoss unit 145

    err(p): 3·loss(p) for a non-split prime p < x₁, 4m·f·b for p = N, 0 otherwise.

  • Data.span_short_ramifiedColumns unit 145

    The ramified columns are spanned over ℂ by the exp(𝓑(D))-short ones: integral at every p-adic place, every conjugate of every value of squared norm at most exp(𝓑(D)).

  • Data.weylNormSq_Bmu_le unit 145

    Size bound: for a good datum Ψ for the trivial twist and σ ∈ Aut ℂ, if ‖σφ‖² ≤ e^B everywhere then ‖σB^Ψ_μφ‖² ≤ exp(B + h₀(D) + 2∑_p gain(p)·log p + 𝓑(D)) everywhere, p over the non-split primes below x₁.

  • Data.sum_allowedLoss_mul_log_le unit 145

    ∑_{p∈U} err(p)·log p ≤ 𝓑(D) for every finite set U.

  • Data.exists_indexDvd_Bmu_divisible unit 145

    For an integer β < [p non-split]·gain(p) − err(p) + 1: some O_ι-module S of columns has IndexDvd(integral columns, S, p^l) with l ≤ err(p)·dim Column, and p^(−β)·B^Ψ_μ(φ) is integral for every ramified φ ∈ S, every twist with level prime to p and every good Ψ.

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
  • Data.gain unit 150

    gain(p) = m·(∑_{τ∈tops} ask_p(a, τ) + k·F(p)), the divisibility asked of the chain at p.

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 · 7 declarations
Unit 149 · A crude bound for the class number of the standard definite hermitian genus, and divisibility of indices of submodules · 2 declarations
  • IndexDvd.sup unit 149

    If IndexDvd(M, f_i⁻¹(N′), z) for each linear map f_i, then IndexDvd(span(⋃_{i∈s} f_i(M) ∪ N′), N′, z^#s) for every finite s.

  • IndexDvd unit 149

    IndexDvd(M, N, z): every finite family in M admits a square matrix m over O with det m ∣ z and all combinations ∑_k m_{ik}Φ_k in N.

Unit 102 · Adelic cusp forms, algebraic modular forms and the Petersson pairing · 8 declarations
Unit 148 · Translates of Poincaré series fill the rows: a Petersson-type second moment along a Bessel subgroup · 2 declarations
Unit 135 · Heights of families indexed by ℓ-adic embeddings, the product formula, and the height of one Gram determinant · 9 declarations
  • exists_few_translates unit 135

    Few translates: if η > 0, V ≠ 0 and B is spread with constant η, some finite set t of indices has #t·dim V ≤ 5·dim W·log(1 + 1/η) and dim ∑_{s∈t} range B_s ≥ (1 − 4η)·dim W.

  • HeightLe.prod unit 135

    Heights add over finite products.

  • HeightLe.mono unit 135

    Heights are monotone in the bound and in |ι(y_ι)|.

  • HeightLe.pow unit 135

    HeightLe(c, y) ⇒ HeightLe(n·c, yⁿ).

  • HeightLe.mul unit 135

    Heights add in products: HeightLe(c, y), HeightLe(c′, y′) ⇒ HeightLe(c + c′, y·y′).

  • exists_extend_basis_of_span_eq_top unit 135

    A linearly independent family y of n vectors extends to a basis y ⊕ z by k vectors z_a from a spanning set (dim = n + k).

  • one_determinant unit 135

    One determinant: if x is a basis, u_o injective, every conjugate of the Gram determinant of u_o∘x of modulus ≤ e^α, |γ_ι|^(−2) of height ≤ g, finite sums of e ≤ δ, the pairings of integral vectors integral, and integral recombinations m with |j(det m)| ≥ e^(−e(l))|j(γ_ι)|^k exist, then the squared-volume ratios of u_{θ_ι} to u_o have height ≤ α + 2δ + k·g.

  • HeightLe.nonneg unit 135

    Product formula: HeightLe(c, 1) ⇒ c ≥ 0.

  • HeightLe unit 135

    HeightLe(c, y) for y indexed by PrimePadicIso: there are H ≠ 0, α and e(l) with |σH| ≤ e^α for all σ ∈ Aut ℂ, |ι(H·y_ι)| ≤ e^(e(l)) for ι : ℂ ≅ ℚ̄_l, and α + ∑_{primes l<M} e(l) ≤ c for all large M.

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 · 3 declarations
  • Data.CostsSquares unit 147

    c costs n squares: for every fit family θ, ι ↦ |c(θ_ι)/c(1)|^(−2) has height at most n·2t·x⁹⁹⁹.

  • Data.crude_rows unit 147

    Crude rows: some nowhere-zero γ costing 2m·m squares has the forms on Y₀ spanned by those y with (γ(ϑ)/γ(1))·ι_ϑ(y) integral above every l prime to the level of ϑ and every conjugate of every value of ι_1(y) of squared norm ≤ exp(x₁²b²).

  • Data.card_Y_le unit 147

    #Y_j ≤ n_m for j ≤ m.

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 · 1 declaration
Unit 140 · Good idempotents, labels and the transfer of traces between unitary groups · 1 declaration
From Lean's own library · 55 facts
  • ArithmeticFunction.vonMangoldt_nonneg

    Λ(n) ≥ 0.

  • ArithmeticFunction.vonMangoldt_le_log

    Λ(n) ≤ log n.

  • Real.log_le_self

    log x ≤ x for x ≥ 0.

  • Finset.abs_sum_le_sum_abs

    |∑ a_i| ≤ ∑ |a_i|.

  • Finset.sum_le_card_nsmul

    A sum of terms each ≤ c is at most (number of terms)·c.

  • Nat.floor_le

    ⌊y⌋₊ ≤ y for y ≥ 0.

  • riemannZeta₁

    Mathlib at the pin: ζ₁(s) = 1 + (s − 1)·ζ₀(s), where ζ₀(s) = ζ(s) − 1/(s − 1) for s ≠ 1 and ζ₀(1) = γ (Euler's constant); so ζ₁(s) = (s − 1)ζ(s) for s ≠ 1, ζ₁(1) = 1, and ζ₁ is entire (the completion of (s − 1)ζ(s) at s = 1).

  • riemannZeta_eq_inv_sub_mul

    Mathlib at the pin: ζ(s) = (s − 1)^(−1)·ζ₁(s) for s ≠ 1.

  • riemannZeta₁_one

    Mathlib at the pin (a simp lemma): ζ₁(1) = 1.

  • DirichletCharacter.LFunctionTrivChar₁

    Mathlib at the pin: for n ≠ 0, the function equal to (s − 1)·L(s, 1_n) for s ≠ 1 (1_n the trivial character modulo n) and to ∏_{p∣n}(1 − 1/p) at s = 1; it is entire.

  • deriv_riemannZeta₁_one

    Mathlib at the pin (a simp lemma): ζ₁′(1) = γ, Euler's constant.

  • Finset.sum_congr_of_eq_on_inter

    Two sums over finite sets agree if the terms agree on the intersection and vanish on the differences.

  • Nat.le_floor_iff

    n ≤ ⌊y⌋₊ iff n ≤ y (y ≥ 0).

  • AnalyticOnNhd.eqOn_zero_of_preconnected_of_eventuallyEq_zero

    Identity theorem: an analytic function on a preconnected set that vanishes near one of its points vanishes on the whole set.

  • Complex.ext

    Two complex numbers with the same real and imaginary parts are equal.

  • Filter.tendsto_finsetSum

    Limits of finite sums are sums of limits.

  • ContinuousWithinAt.sub_const

    z ↦ z − c is continuous.

  • Real.add_one_le_exp

    x + 1 ≤ e^x.

  • abs_sub

    |a − b| ≤ |a| + |b|.

  • MeasureTheory.integral_comp_exp_Ioi

    Change of variables t = e^v on (0, ∞) ↔ (1, ∞).

  • LSeries_eq_mul_integral'

    Mathlib: if 0 ≤ r < Re s and ∑_{k≤n} |f(k)| = O(n^r), then ∑ f(n)n^(−s) = s·∫_1^∞ (∑_{k≤t} f(k))·t^(−(s+1)) dt.

  • ArithmeticFunction.vonMangoldt.residueClass_apply

    Mathlib: for a unit a mod q, Λ restricted to n ≡ a equals (1/φ(q))·∑_χ χ(a)^(−1)χ(n)Λ(n).

  • LSeriesHasSum.sum

    Finite sums of convergent L-series converge to the sum.

  • Real.tendsto_exp_atTop

    e^v → ∞ as v → ∞.

  • IsCompact.exists_thickening_subset_open

    A compact subset of an open set has a thickening inside it.

  • isOpen_analyticAt

    The set of points where a function is analytic is open.

  • Ioo_mem_nhdsGT

    (a, b) is a right-neighbourhood of a when a < b.

  • thickening_closedBall

    The ε-thickening of the closed ball of radius δ is the open ball of radius ε + δ.

  • exists_pos_mul_lt

    For a > 0 and b there is c > 0 with b·c < a.

  • isOpen_re_gt

    {z : Re z > c} is open.

  • hasDerivAt_integral_of_dominated_loc_of_deriv_le

    Differentiation under the integral sign with a local integrable domination of the derivative.

  • iteratedDeriv_succ

    The (k + 1)-st derivative is the derivative of the k-th.

  • HasDerivAt.congr_of_eventuallyEq

    Functions equal near a point have the same derivative there.

  • Filter.mem_atTop

    {x | x ≥ a} belongs to atTop.

  • Summable.norm

    An absolutely summable series: the norms are summable.

  • Summable.le_tsum

    A term of a summable non-negative series is at most the sum.

  • Filter.Eventually.exists

    An eventually-true property holds somewhere (for a non-trivial filter).

  • MeasureTheory.Integrable.of_integral_ne_zero

    A function with non-zero integral is integrable (Lean's convention: the integral of a non-integrable function is 0).

  • MeasureTheory.setIntegral_nonneg

    The integral of a function ≥ 0 on a measurable set is ≥ 0.

  • Real.log_three_lt_d9

    log 3 < 1.0986122887.

  • Nat.abs_sub_ceil_le

    |⌈x⌉₊ − x| ≤ 1 for x ≥ 0 (name as used in the source: abs_sub_ceil_le).

  • add_thirds

    a/3 + a/3 + a/3 = a.

  • max_le_add_of_nonneg

    max(a, b) ≤ a + b for a, b ≥ 0.

  • Real.log_prod

    The logarithm of a product of non-zero factors is the sum of the logarithms.

  • Finset.prod_pos

    A finite product of positive numbers is positive.

  • Finset.prod_eq_single

    A product all of whose factors but one are 1 equals that factor.

  • Nat.coprime_primes

    Two primes are coprime iff they are distinct.

  • Stirling.log_stirlingSeq'_antitone

    n ↦ log(stirlingSeq(n + 1)) is antitone.

  • Stirling.log_stirlingSeq_formula

    log stirlingSeq(n) = log n! − (1/2)log(2n) − n log(n/e).

  • Int.ceil_lt_add_one

    ⌈r⌉ < r + 1.

  • Valuation.Integers.le_of_dvd

    In the ring of integers of a valuation, a ∣ b implies v(b) ≤ v(a).

  • Submodule.finrank_mono

    A smaller subspace has at most the dimension of a larger one.

  • exists_fun_fin_finrank_span_eq

    Mathlib: a set Y has a linearly independent family of dim span Y members whose span is span Y.

  • Submodule.span_iUnion₂

    The span of a union is the supremum of the spans.

  • LinearMap.range_smul

    range(c·f) = range f for c ≠ 0.

Where it is used

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 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, 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

4 modules

The program check

29 of 29 statements stand at the lines the dossier gives; 18 structured proofs with 121 steps, 104 of them leaves, the longest of 8 lines; 121 steps quote exactly their lines. Checked 2026-11-26T08:09Z.

The check shows that the dossier describes the lines it cites. Whether the English is right is read when a note is written.