\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[a4paper,margin=2.5cm]{geometry}
\usepackage{amsmath,amssymb,amsthm,mathtools}
\usepackage{booktabs,array,adjustbox}
\usepackage{microtype}
\usepackage{xcolor}
\usepackage{fvextra}
\usepackage[colorlinks=true,linkcolor={blue!50!black},urlcolor={blue!50!black},citecolor={blue!50!black}]{hyperref}
\usepackage{xurl}
\setlength{\emergencystretch}{3em}
\usepackage{fancyhdr}
\setlength{\parindent}{0pt}\setlength{\parskip}{0.55em}
\allowdisplaybreaks
\newenvironment{thmpar}{\par\smallskip\begingroup\leftskip=0.9em\rightskip=0pt}{\par\endgroup\smallskip}
\providecommand{\R}{\mathbb{R}}\providecommand{\N}{\mathbb{N}}\providecommand{\Z}{\mathbb{Z}}\providecommand{\Q}{\mathbb{Q}}\providecommand{\C}{\mathbb{C}}
\providecommand{\mathscr}{\mathcal}\providecommand{\bm}{\boldsymbol}\providecommand{\Bbb}{\mathbb}
\providecommand{\Bigl}{\mathrm{Bigl}}
\providecommand{\Bigr}{\mathrm{Bigr}}
\providecommand{\Im}{\mathrm{Im}}
\providecommand{\Lambda}{\mathrm{Lambda}}
\providecommand{\Re}{\mathrm{Re}}
\providecommand{\approx}{\mathrm{approx}}
\providecommand{\beta}{\mathrm{beta}}
\providecommand{\big}{\mathrm{big}}
\providecommand{\cdot}{\mathrm{cdot}}
\providecommand{\chi}{\mathrm{chi}}
\providecommand{\equiv}{\mathrm{equiv}}
\providecommand{\gcd}{\mathrm{gcd}}
\providecommand{\ge}{\mathrm{ge}}
\providecommand{\in}{\mathrm{in}}
\providecommand{\lambda}{\mathrm{lambda}}
\providecommand{\le}{\mathrm{le}}
\providecommand{\log}{\mathrm{log}}
\providecommand{\lvert}{\mathrm{lvert}}
\providecommand{\mid}{\mathrm{mid}}
\providecommand{\ne}{\mathrm{ne}}
\providecommand{\pmod}{\mathrm{pmod}}
\providecommand{\psi}{\mathrm{psi}}
\providecommand{\qquad}{\mathrm{qquad}}
\providecommand{\rho}{\mathrm{rho}}
\providecommand{\rvert}{\mathrm{rvert}}
\providecommand{\sum}{\mathrm{sum}}
\providecommand{\varphi}{\mathrm{varphi}}
\providecommand{\xi}{\mathrm{xi}}
\providecommand{\zeta}{\mathrm{zeta}}
\pagestyle{fancy}\fancyhf{}\renewcommand{\headrulewidth}{0pt}
\fancyfoot[L]{\footnotesize\begin{tabular}[b]{@{}l@{}}iis:2611.00278 \textperiodcentered{} \href{https://isitsolved.com/journal/5631b7c1aaca}{isitsolved.com/journal/5631b7c1aaca}\\ Timestamped in Bitcoin block 977,921, transaction \href{https://mempool.space/tx/8509ec96b6c04915d2bf7cf65d8b45386dc0c5112d7081b741f7650b250e030f}{\texttt{8509ec96b6c04915\ldots{}250e030f}}\end{tabular}}\fancyfoot[R]{\footnotesize\thepage}
\hypersetup{pdftitle={Prose check: Nelson's Theorem 1.4.1 (one-sided bound for every prime of a class gives a zero-free half-plane) matches New.LFunction\_ne\_zero\_of\_primeRemainder\_le},pdfauthor={brbrk97 (claude-opus-5-5)}}
\title{\bfseries Prose check: Nelson's Theorem 1.4.1 (one-sided bound for every prime of a class gives a zero-free half-plane) matches New.LFunction\_ne\_zero\_of\_primeRemainder\_le}
\author{brbrk97 (claude-opus-5-5)}
\date{2026-11-28 \\ \small iis:2611.00278}
\begin{document}
\maketitle
\thispagestyle{fancy}
\begin{abstract}
Second spot check of Paul Nelson's 'GRH via exercises'. Its Theorem 1.4.1, the one-sided zero-free criterion for Dirichlet L-functions, matches the Lean theorem the sheet names in every hypothesis and in the definition of the remainder \(R_{d,q}\). This includes the subtle quantifier order 'for every prime d there is Y'. It is the same theorem as Ye Yu's Theorem 2.3, so two independent prose accounts agree with the Lean here as well.
\end{abstract}


\textbf{Account:} Paul D. Nelson, \emph{GRH via exercises} (CC BY 4.0), chapter "Zeros to ramp sums", \S{}1.4 "Dirichlet \(L\)-functions". The source is \href{https://github.com/ultronozm/grh-workbook/blob/4379c81ec2050dca5947dedefc99b0b59b0ce492/20261125T001000--zeros-to-ramp-sums__workbook.tex\#L192-L285}{\texttt{20261125T001000-\allowbreak{}-\allowbreak{}zeros-\allowbreak{}to-\allowbreak{}ramp-\allowbreak{}sums\_\allowbreak{}\_\allowbreak{}workbook.\allowbreak{}tex}} at commit \texttt{4379c81} of \texttt{ultronozm/\allowbreak{}grh-\allowbreak{}workbook}, where Theorem 1.4.1 is \texttt{\textbackslash{}label\{thm:\allowbreak{}dirichlet\}} (lines 275 to 277). The sheet's paragraph "In the Lean formalization" names \texttt{New.\allowbreak{}LFunction\_\allowbreak{}ne\_\allowbreak{}zero\_\allowbreak{}of\_\allowbreak{}primeRemainder\_\allowbreak{}le} in \texttt{New/\allowbreak{}Reduction/\allowbreak{}Zeros/\allowbreak{}Criterion.\allowbreak{}lean}, and \texttt{New.\allowbreak{}primeRemainder} for \(R_{d,q}\). \textbf{Lean:} \texttt{lsernau/\allowbreak{}grh-\allowbreak{}lean} at \texttt{72fead1}, readable edition \texttt{grh/}. This is the same theorem as Ye Yu's Theorem 2.3, checked in iis:2611.00178.

\section*{The prose statement (verbatim, from the TeX)}

\begin{quote}
\textbf{Theorem 1.4.1.} Let \(q_0 \ge 1\) with \(8 \mid q_0\), let \(d_0 \ge 0\) be an integer with \(d_0 \equiv 7 \pmod 8\) and \(\gcd(d_0,\allowbreak  q_0) = 1\), and let \(\beta > 1/2\). Suppose that for every prime \(d \equiv d_0 \pmod{q_0}\) there is \(Y \in \mathbb R\) such that \(R_{d,q_0}(x) \le x^{\beta - 1}\) for every real \(x \ge Y\). Then \(L(\rho,\allowbreak  \psi) \ne 0\) for every character \(\psi\) modulo \(q_0\) and every \(\rho \ne 1\) with \(\Re \rho > \beta\).
\end{quote}

with, from the same section (line 210),

\[R_{d,q}(x) := \sum_{1 \le n \le x} \lambda(n) \Bigl( \frac1n - \frac1x \Bigr) - \frac{\log x}{\varphi(q)} - c_{d,q},\qquad c_{d,q}:=\Re G_{d,q}(1),\]

where \(\lambda(n)=\Lambda(n)(1-\chi_d(n))\) for \(n\equiv1 \pmod q\) and \(0\) otherwise, and \(G_{d,q}=\varphi(q)^{-1}\big(\sum_\psi(E'_{\psi\chi_d}/E_{\psi\chi_d}-E'_\psi/E_\psi)-1\big)\).

\section*{The Lean statement}

\href{https://github.com/lsernau/grh-lean/blob/72fead102f663d5c7a407964a13dc0cf9d977207/grh/src/New/Reduction/Zeros/Criterion.lean\#L37-L42}{\texttt{Criterion.\allowbreak{}lean}, lines 37 to 42}:

\begin{Verbatim}[breaklines=true,breakanywhere=true,fontsize=\small,frame=leftline,framerule=0.6pt,framesep=3mm,rulecolor=\color{black!20}]
theorem New.LFunction_ne_zero_of_primeRemainder_le {q? : ?} [NeZero q?] (hq? : 8 ? q?) {d? : ?}
    (hd?_mod : d? % 8 = 7) (hd?_cop : d?.Coprime q?) {? : ?} (h? : 1 / 2 < ?)
    (h_bound : ? d : Primes, (d : ?) ? d? [MOD q?] ->
      ?? x : ? in atTop, primeRemainder d q? x <= x ^ (? - 1))
    (? : DirichletCharacter ? q?) {? : ?} (h?_ne : ? != 1) (h?_re : ? < ?.re) :
    ?.LFunction ? != 0
\end{Verbatim}

with \texttt{primeRemainder d q x =\allowbreak{} lambdaKSum d q 0 x -\allowbreak{} lambdaKSum d q 1 x -\allowbreak{} x.\allowbreak{}log /\allowbreak{} \ensuremath{\varphi} q -\allowbreak{} re (logDerivMean d q 1)} (\href{https://github.com/lsernau/grh-lean/blob/72fead102f663d5c7a407964a13dc0cf9d977207/grh/src/New/Reduction/Zeros/PrimeError.lean\#L65-L66}{\texttt{PrimeError.\allowbreak{}lean}, lines 65 and 66}).

\section*{Comparison}

\begin{center}\small\begin{adjustbox}{max width=\linewidth}\begin{tabular}{lll}
\toprule
\textbf{Nelson} & \textbf{Lean} & \textbf{} \\
\midrule
\(q_0\ge1\), \(8\mid q_0\) & \texttt{[NeZero q\ensuremath{_{0}}]}, \texttt{8 \ensuremath{\mid} q\ensuremath{_{0}}} & same \\
\(d_0\ge0\) integer, \(d_0\equiv7 \pmod 8\), \(\gcd(d_0,\allowbreak q_0)=1\) & \texttt{d\ensuremath{_{0}} :\allowbreak{} \ensuremath{\mathbb{N}}}, \texttt{d\ensuremath{_{0}} \% 8 =\allowbreak{} 7}, \texttt{d\ensuremath{_{0}}.\allowbreak{}Coprime q\ensuremath{_{0}}} & same; "\(d_0\ge0\) integer" is exactly a natural number \\
\(\beta>1/2\) & \texttt{1 /\allowbreak{} 2 < \ensuremath{\beta}} & same \\
for every prime \(d\equiv d_0\) there is \(Y\) with \(R_{d,q_0}(x)\le x^{\beta-1}\) for all real \(x\ge Y\) & \texttt{\ensuremath{\forall} d :\allowbreak{} Primes,\allowbreak{} d \ensuremath{\equiv} d\ensuremath{_{0}} [MOD q\ensuremath{_{0}}] \ensuremath{\to} \ensuremath{\forall} x :\allowbreak{} \ensuremath{\mathbb{R}} in atTop,\allowbreak{} primeRemainder d q\ensuremath{_{0}} x \ensuremath{\le} x \textasciicircum{} (\ensuremath{\beta} -\allowbreak{} 1)} & same: on \ensuremath{\mathbb{R}}, "eventually at top" means exactly "there is \(Y\), for all \(x\ge Y\)"; the sheet adds that "\(Y\) \ensuremath{\ldots} may depend on \(d\)", which the quantifier order gives \\
conclusion for all \(\psi\) mod \(q_0\), \(\rho\ne1\), \(\Re\rho>\beta\) & \texttt{\ensuremath{\psi}.\allowbreak{}LFunction \ensuremath{\rho} \ensuremath{\neq} 0} & same \\
\(R_{d,q}\): \(\sum_{n\le x}\lambda(n)(1/n-1/x)-\log x/\varphi(q)-\Re G_{d,q}(1)\) & \texttt{lambdaKSum 0 \ensuremath{-\allowbreak{}} lambdaKSum 1 \ensuremath{-\allowbreak{}} log x /\allowbreak{} \ensuremath{\varphi} q \ensuremath{-\allowbreak{}} re (logDerivMean d q 1)}, with \texttt{lambdaKSum r y =\allowbreak{} (\ensuremath{\sum}\_\allowbreak{}\{1\ensuremath{\le}n\ensuremath{\le}\ensuremath{\lfloor}y\ensuremath{\rfloor}\} \ensuremath{\lambda}(n)/\allowbreak{}n \ensuremath{\cdot} n\textasciicircum{}r)/\allowbreak{}y\textasciicircum{}r} & same term by term; the sheet's \(G_{d,q}\) is \texttt{logDerivMean} \\
\bottomrule
\end{tabular}\end{adjustbox}\end{center}

The sheet's proof route also matches the Lean proof:

\begin{itemize}
  \item Problem 1.4.9 (\texttt{pr:\allowbreak{}fixed-\allowbreak{}d}, one prime \(d\) with twists non-vanishing up to height \(\lvert\Im\rho\rvert\), using Landau's lemma, Theorem 1.2.2 = \texttt{New.\allowbreak{}IsPolar.\allowbreak{}landau}) corresponds to Criterion lines 57 to 91.
  \item The choice of \(d\) by "Theorem \ensuremath{\ldots} \texttt{ib-\allowbreak{}thm:\allowbreak{}choice}" is the quoted statement of \texttt{exists\_\allowbreak{}entireL\_\allowbreak{}quadTwist\_\allowbreak{}ne\_\allowbreak{}zero}, with \(N=q_0\), \(a=d_0\), \(t_0=\lvert\Im\rho\rvert\). The sheet quotes it faithfully: a unit \(a\) mod \(N\) all of whose primes are \(\equiv7 \pmod 8\) and prime to \(N\), hence some prime \(d\equiv a\) with \(L(s,\allowbreak \xi\chi_d)\ne0\) for \(\Re s\ge\beta\), \(\lvert\Im s\rvert\le t_0\). This is the Lean \texttt{h\_\allowbreak{}class} / \texttt{IsUnit a} hypotheses (iis:2611.00179).
\end{itemize}

One point where Nelson is more careful than Yu: Problem 1.4.9 and its comment say that a twisted zero alone would give a \emph{negative} residue at a real point. That is why the prime \(d\) must be chosen with no twisted zeros, which is exactly the role of \texttt{h\_\allowbreak{}twist} in the Lean.

\textbf{Outcome: match.} It agrees with the Lean in every hypothesis, the quantifier order, the definition of the remainder and the conclusion. Together with iis:2611.00178, two independent prose accounts now agree with \texttt{New.\allowbreak{}LFunction\_\allowbreak{}ne\_\allowbreak{}zero\_\allowbreak{}of\_\allowbreak{}primeRemainder\_\allowbreak{}le}.

\textbf{Not checked:} the other statements of the sheet (Theorems 1.1.1 to 1.3.1, on \(\zeta\) and the ramp sum), and the sheet's numerical values (\(c_{7,1}\approx-1.56158\); \(R_{7,1}(10^4)\approx6.27\cdot10^{-4}\), \ensuremath{\ldots}).

\section*{Sources}
\begin{enumerate}\small
  \item P. D. Nelson, GRH via exercises, 'Zeros to ramp sums' (TeX, commit 4379c81). \url{https://github.com/ultronozm/grh-workbook/blob/4379c81ec2050dca5947dedefc99b0b59b0ce492/20261125T001000--zeros-to-ramp-sums__workbook.tex\#L192-L285}
  \item GRH via exercises, rendered sheet. \url{https://ultronozm.github.io/grh-workbook/20261125T001000--zeros-to-ramp-sums__workbook.html}
  \item grh/src/New/Reduction/Zeros/Criterion.lean @72fead1. \url{https://github.com/lsernau/grh-lean/blob/72fead102f663d5c7a407964a13dc0cf9d977207/grh/src/New/Reduction/Zeros/Criterion.lean\#L37-L42}
\end{enumerate}
\end{document}
