Structured proof · Unit 151
lemma Data.remainder_eq
Data P): \operatorname{rem}(D) = a_D\cdot(\#\operatorname{thick}(D)\cdot(R_{d,N_{0}}(x_D) - R_{d,N_{0}}(x_{1,D})) + \#\operatorname{tops}(D)\cdot R_{d,1}(x_{1,D})), where \#\operatorname{thick}(D) and \#\operatorname{tops}(D) count the thick places and the tops; R_{d,M}(x) = primeError d M x = \sum_{1\le\nu\le x} \lambda_{d,M}(\nu)(1/\nu - 1/x) - \log x/\varphi(M) - \operatorname{Re} G_{d,M}(1).primeError_eq_sum at x and x_{1}; the main terms are those of \#\mathrm{tops}\cdotAsk_main.A: for every natural \nu and real b: \#{\tau \in \operatorname{tops}(D) : (-\nu)\cdot\tau \in \operatorname{thick}(D)}\cdot(\lambda_{d,1}(\nu)\cdot b) = \#\operatorname{thick}(D)\cdot(\lambda_{d,N_{0}}(\nu)\cdot b). Here (-\nu)\cdot\tau is \tau times the place named by -\nu (
Data.): the class of -\nu mod N_{1} when \nu is prime to N_{1}, and the identity place when it is not (for instance \nu = 0). Put \sigma = (-\nu)\cdot\tau: the count is the number of thick places \sigma such that \sigma divided by the place named by -\nu is a top (class \equiv 1 mod N_{0}). Thick places have class \equiv -1 mod N_{0} (placeOfInt Data.), so for a thick \sigma this holds iff the place named by -\nu has class \equiv -1 mod N_{0}, which by the exact testplaceClass_of_thick Parameters.(valid for every integer, the identity convention included) holds iff \nu \equiv 1 mod N_{0} — for all thick \sigma or for none. So if \nu \equiv 1 mod N_{0} the count is \#\operatorname{thick}(D) and \lambda_{d,1}(\nu) = \lambda_{d,N_{0}}(\nu); otherwise the count is 0 and \lambda_{d,N_{0}}(\nu) = 0. In particular, for \nu not prime to N_{1} the translation is the identity, it keeps the tops (class 1 mod N_{0}) outside the thick set, and both sides are 0. (These terms vanish also for a reason this step does not use: such a \nu with \Lambda(\nu) \ne 0 is a power of a prime p \mid N_{1}, and \chi_d(p) = 1 for these p,placeClass_placeOfInt_eq_neg_one Different.54–58, so \lambda_{d,1}(\nu) = 0.)lean Lean states
#{τ ∈ D.tops | D.placeOfInt (-ν) * τ ∈ D.thick} * (lambdaClass P.d 1 ν * b) = #D.thick * (lambdaClass P.d P.N₀ ν * b)Uses
Data.unit 152,tops Data.unit 152,placeOfInt Data.unit 152,placeClass_of_thick Parameters.unit 152,placeClass_placeOfInt_eq_neg_one lambdaClassunit 151\sum_{\tau\in\mathrm{tops}(D)} \operatorname{Ask}(D, a_D, \tau) = a_D\cdot(\#\operatorname{thick}(D)\cdot(R_{d,N_{0}}(x_D) - R_{d,N_{0}}(x_{1,D})) + \#\operatorname{tops}(D)\cdot R_{d,1}(x_{1,D}) + (\#\operatorname{thick}(D)\cdot(\log x_D - \log x_{1,D})/\varphi(N_{0}) + \#\operatorname{tops}(D)\cdot(\log x_{1,D} - 1 - \ell(d)))). Write w_D((-\nu)\tau) = a/x_{1} + [(-\nu)\tau thick]\cdot(a/x - a/x_{1}), sum over \tau with A, and evaluate the two sums by
primeError_eq_sumat z = x_{1,D} and z = x_D (both \le a_D): \sum_{\nu} \lambda_{d,M}(\nu)(a/\nu - a/z)^{+} = a\cdot(R_{d,M}(z) + \log z/\varphi(M) + \operatorname{Re} G_{d,M}(1)); for M = 1 the constant is -1 - \ell(d) (re_logDerivMean_one); for M = N_{0} it cancels in the difference.Lean states
∑ τ ∈ D.tops, D.primeSum D.a τ = D.a * (#D.thick * (primeError P.d P.N₀ D.x - primeError P.d P.N₀ D.x₁) + #D.tops * primeError P.d 1 D.x₁ + (#D.thick * ((D.logX - D.logX₁) / P.N₀.totient) + #D.tops * (D.logX₁ - 1 - chowlaSelbergConst P.d)))Usesstep 1,
Data.unit 152,primeSum Data.unit 152,nominalWeight primeError_eq_sumunit 151,re_logDerivMean_oneunit 151,Data.unit 152le_of_hasLogBound \#\operatorname{tops}(D)\cdot
Ask_main(D) = a_D\cdot(\#\operatorname{thick}(D)\cdot(\log x_D - \log x_{1,D})/\varphi(N_{0}) + \#\operatorname{tops}(D)\cdot(\log x_{1,D} - 1 - \ell(d))), because \overline{w}_D = (1/f_D)(\#\mathrm{thick}\cdot\log(a/x) + (f_D - \#thick)\cdot\log(a/x_{1})) and f_D = \#\operatorname{tops}(D)\cdot\varphi(N_{0}).Lean states
#D.tops * D.mainAsk = D.a * (#D.thick * ((D.logX - D.logX₁) / P.N₀.totient) + #D.tops * (D.logX₁ - 1 - chowlaSelbergConst P.d))Uses
Data.unit 151,mainAsk Data.unit 152,nominalWeight Parameters.unit 152card_infinitePlace_E \#\operatorname{tops}(D) =
towerDeg(s_D) (Parameters.).card_placeClass_eq Lean states
#D.tops = _Uses
Parameters.unit 152,card_placeClass_eq Data.unit 152tops Field arithmetic (a_D \ne 0) finishes the identity.
\operatorname{rem}(D) = \sum_{\tau} \operatorname{Ask}(D, a_D, \tau) - \#\operatorname{tops}(D)\cdot
Ask_main(D) = a_D\cdot(\#\operatorname{thick}(D)\cdot(R_{d,N_{0}}(x_D) - R_{d,N_{0}}(x_{1,D})) + \#\operatorname{tops}(D)\cdot R_{d,1}(x_{1,D})), by steps 2 and 3.Usesstep 2, step 3,
Data.unit 151remainder