Structured proof · Unit 154
lemma eventually_primeError_le_rpow
P.N₀ and the prime d = P.d , and for every real \varepsilon with 0 < \varepsilon /6 and \varepsilon < 1/100 (hypothesis h): for all sufficiently large real x (Lean's ∀ᶠ x in atTop: there is X_0 such that the bound holds for every x \ge X_0), R_{d,N_0}(x) \le x^{(8\varepsilon + 1/2 - 1)}, that is x^{(8\varepsilon - 1/2)}; here R_{d,N_0}(x) = primeError d N_0 x is the remainder of the smoothed sum \sum _{\nu \le x, \nu \equiv 1 \bmod N_0} \Lambda (\nu )(1 - (\nu /d))(1/\nu - 1/x) over the integers \nu \equiv 1 \bmod N_0, prime powers included (at a prime p with (p/d) = -1 the factor 1 - (\nu /d) is 2 at odd powers of p and 0 at even ones; wording corrected after the second reading, a second-reader message) (unit 151), and x^y is the real power.towerDeg/\#\operatorname{thick})\cdot R_1 is at most e^{(-t)}; for the modified data, remainder_eq writes R_{N_0}(x) as m\cdot \operatorname{rem}/(m\cdot a\cdot \#\operatorname{thick}) plus that window quantity, and (\star ) bounds m\cdot \operatorname{rem}.It suffices to prove the bound for every x in a set that belongs to the filter
atTop. Take x so large that (a) there are admissible data D for 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) (exists_data, using h); and (b) the window statement holds at t = 10^{6}\cdot \log x (which tends to \infty with x): for every X \in [0, e^t] there is u \in [t, t^{2}] with R_{d,N_0}(e^u) - X\cdot R_{d,1}(e^u) \le e^{(-t)}. Statement (b) isIsPolar.for the two polar functions v \mapsto R_{d,N_0}(e^v) and v \mapsto R_{d,1}(e^v) (exists_window_sub_mul_le isPolar_primeError: d \equiv 7 \bmod 8, and N_0 and 1 are coprime to d, N_0 because N_1(P, 0) = N_0\cdottowerDeg(0) is). Fix such x and D, with the hypotheses l: (10^{6}\cdot \log x)^{2} \le \log x_{1,D}, e: \log \log b_D = \varepsilon \cdot \log x, H':towerDeg(s_D)/\log b_D \le \#\operatorname{thick}(D), and W: the window statement.Uses
exists_dataunit 152,isPolar_primeErrorunit 151,IsPolar.unit 151,exists_window_sub_mul_le Parameters.unit 152,coprime_N₁_d PrimeSevenModEightunit 106,Real.,tendsto_log_atTop Filter.,Tendsto. const_mul_atTop Filter.filter_upwards Replace x by x_D = \exp (\log x_D) everywhere and simplify logarithms of exponentials: the hypotheses now speak of \log x_D, \log x_{1,D} =
D.and \log b_D =logX₁ D..logB Uses
Real.,log_exp Real.exp_mul Apply W to X :=
towerDeg(s_D)/\#\operatorname{thick}(D): X \ge 0, and X \le \exp (10^{6}\cdot \log x_D) by the size comparison of the data. This gives u with 10^{6}\cdot \log x_D \le u \le (10^{6}\cdot \log x_D)^{2} and R_{d,N_0}(e^u) - X\cdot R_{d,1}(e^u) \le \exp (-10^{6}\cdot \log x_D) (hypothesis w).Usesstep 1, step 3,
Data.unit 152,le_of_hasLogBound towerDegunit 152Let D' be the data D with \log x_1 replaced by u (so x_{1,D'} = e^u and everything else is unchanged). D' is admissible: of its scale conditions only 10^{6}\cdot \log x \le \log x_1, 10^{6}\cdot \log x_1 \le \log b and 6\cdot \log \log x_1 \le \log \log b involve \log x_1; the first is the lower bound on u, the others follow from u \le (10^{6}\cdot \log x_D)^{2} \le \log x_{1,D} (hypothesis l) and the scale conditions of D.
The same lower size bound for \#\operatorname{thick}(D') = \#\operatorname{thick}(D).
R_{d,N_0}(x_D) \le x_D^{(8\varepsilon + 1/2 - 1)}, by the following chain.
R_{d,N_0}(x_D) = m_{D'}\cdot \operatorname{rem}(D')/m_{D'}/a_{D'}/\#\operatorname{thick}(D) + (R_{d,N_0}(x_{1,D'}) - (
towerDeg(s_D)/\#\operatorname{thick}(D))\cdot R_{d,1}(x_{1,D'})): byData.for D', \operatorname{rem}(D') = a_{D'}\cdot(\#\operatorname{thick}(D')\cdot (R_{d,N_0}(x_{D'}) - R_{d,N_0}(x_{1,D'})) + \#tops(D')\cdot R_{d,1}(x_{1,D'})), where x_{D'} = x_D and \#tops(D') =remainder_eq towerDeg(s_D) (Parameters.); m_{D'}, a_{D'} and \#\operatorname{thick}(D) are positive.card_placeClass_eq Usesstep 5, step 6,
Data.unit 151,remainder_eq Data.unit 152,tops Parameters.unit 152,card_placeClass_eq Data.unit 152HasLogBound. pos \ldots \le (\log b_{D'})^{2}\cdot \mathcal{B}(D')/m_{D'}/a_{D'}/\#\operatorname{thick}(D) + \exp (-10^{6}\cdot \log x_D): the inequality (\star ) for D' (
star_inequality: m_{D'}\cdot \operatorname{rem}(D') \le (\log b_{D'})^{2}\cdot \mathcal{B}(D')) bounds the first term, and w the second.\ldots \le x_D^{(8\varepsilon + 1/2 - 1)}, by the size comparison for D' (
Data.), with the comparison of exponents proved from the hypotheses: the first term is f_{D'}\cdot (\log b_D)^{5}/(m_{D'}\cdot \#\operatorname{thick}(D)) \le \varphi (N_0)\cdot (\log b_D)^{6}/\sqrt{x_D} (as f = \varphi (N_0)\cdotle_of_hasLogBound towerDeg(s), \#\operatorname{thick} \getowerDeg(s)/\log b, m \ge \sqrt{x}), and \log b_D = x_D^\varepsilon; the second is x_D^{(-10^{6})}.