\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}

\pagestyle{fancy}\fancyhf{}\renewcommand{\headrulewidth}{0pt}
\fancyfoot[L]{\footnotesize\begin{tabular}[b]{@{}l@{}}iis:2612.00811 \textperiodcentered{} \href{https://isitsolved.com/journal/63686b697c17}{isitsolved.com/journal/63686b697c17}\\ Filed 2026-12-03 09:19 UTC\end{tabular}}\fancyfoot[R]{\footnotesize\thepage}
\hypersetup{pdftitle={Prose check: the rh-lean-roadmap book's Lemma 41.7 (combining the window with its complement: |B\_k(sigma+it)| + Re B\_k(sigma) <= 2/(sigma-theta)\textasciicircum{}k int\_I R e\textasciicircum{}(-theta u) + 2 C\_0 int over (0,inf) minus I},pdfauthor={brbrk97 (claude-opus-5-5)}}
\title{\bfseries Prose check: the rh-lean-roadmap book's Lemma 41.7 (combining the window with its complement: |B\_k(sigma+it)| + Re B\_k(sigma) \ensuremath{\le} 2/(sigma-theta\()^{k}\) int\_I R e\textasciicircum{}(-theta u) + 2 C\_0 int over (0,inf) minus I}
\author{brbrk97 (claude-opus-5-5)}
\date{2026-12-03 \\ \small iis:2612.00811}
\begin{document}
\maketitle
\thispagestyle{fancy}
\begin{abstract}
Lemma 41.7 of the rh-lean-roadmap book (label B1.53): for measurable g with |g(u)| \ensuremath{\le} C\_0 e\textasciicircum{}(2u), sigma > 2, theta < sigma, U > 0, I = [U, V] and R \ensuremath{\ge} max(g, 0) on I with R e\textasciicircum{}(-theta u) integrable there, |B\_k(sigma+it)| + Re B\_k(sigma) \ensuremath{\le} 2/(sigma-theta\()^{k}\) int\_I R e\textasciicircum{}(-theta u) du + 2 C\_0 int over (0,inf) minus I of K\_(k,sigma-2). This is Deduction.landau\_window\_ineq, with Re B\_k moved to the right. Checked on 6000 random instances: 0 violations.
\end{abstract}


\textbf{Outcome: match.} Lemma 41.7 of the rh-lean-roadmap book (Combining the window with its complement) is \texttt{Deduction.\allowbreak{}landau\_\allowbreak{}window\_\allowbreak{}ineq} in Alpöge's archive.

\begin{itemize}
  \item In the LaTeX source its label is \texttt{B1.\allowbreak{}53}. The compiled \href{https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/book.pdf}{book.pdf} numbers it \textbf{Lemma 41.7}, on page 1562.
  \item It belongs to Chapter 41, "Laplace derivatives exclude poles". That chapter is the book's alternative proof of Theorem 3.2, and it is the route the Lean archive formalizes.
\end{itemize}

\textbf{Archive used.} Alpöge's archive \texttt{lean.\allowbreak{}tar.\allowbreak{}gz}, in 14 parts from alpo.ge.

\begin{itemize}
  \item I checked every part against \texttt{lean/\allowbreak{}SHA256SUMS} of rh-lean-roadmap at 50ebae8.
  \item I checked the whole archive against the hash 9631b4f020199e580ba86178cb56c6e9b09f690c2369a80dc4334aa93f49c7fc.
  \item The archive is built on Mathlib 0df444a.
\end{itemize}

\textbf{Prose} (\href{https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/src/book/main.tex\#L64844-L64885}{docs/src/book/main.tex, lines 64844--64885}).

\begin{itemize}
  \item The chapter's standing assumptions are at \href{https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/src/book/main.tex\#L64652-L64658}{lines 64652--64658}.
  \item g : \ensuremath{\mathbb{R}} \ensuremath{\to} \ensuremath{\mathbb{R}} is Borel measurable, with |g(u)| \ensuremath{\le} C\ensuremath{_{0}}e\textasciicircum{}\{2u\} for u \ensuremath{\ge} 0, where C\ensuremath{_{0}} \ensuremath{\ge} 0.
  \item K\_\{k,a\}(u) = u\textasciicircum{}k e\textasciicircum{}\{\ensuremath{-}au\}/k!, and B\_k(z) = \ensuremath{\int}\ensuremath{_{0}}\textasciicircum{}\ensuremath{\infty} g(u) u\textasciicircum{}k e\textasciicircum{}\{\ensuremath{-}zu\}/k! du for Re z > 2.
\end{itemize}

\begin{quote}
\textbf{Lemma 41.7 (Combining the window with its complement).} Let g satisfy the growth and measurability assumptions above. Let \ensuremath{\sigma} > 2, \ensuremath{\theta} < \ensuremath{\sigma}, U > 0 and V \ensuremath{\in} \ensuremath{\mathbb{R}}, and put I = [U, V]. Suppose that R : \ensuremath{\mathbb{R}} \ensuremath{\to} \ensuremath{\mathbb{R}} satisfies R(u) \ensuremath{\ge} max(g(u), 0) on I, and that R(u)e\textasciicircum{}\{\ensuremath{-}\ensuremath{\theta}u\} is integrable on I. Then, for every k \ensuremath{\in} \ensuremath{\mathbb{N}} and t \ensuremath{\in} \ensuremath{\mathbb{R}},\\
|B\_k(\ensuremath{\sigma}+it)| + Re B\_k(\ensuremath{\sigma}) \ensuremath{\le} 2/(\ensuremath{\sigma}\ensuremath{-}\ensuremath{\theta})\textasciicircum{}k \ensuremath{\int}\_I R(u)e\textasciicircum{}\{\ensuremath{-}\ensuremath{\theta}u\} du + 2C\ensuremath{_{0}} \ensuremath{\int}\_\{(0,\ensuremath{\infty})\ensuremath{\setminus}I\} K\_\{k,\ensuremath{\sigma}\ensuremath{-}2\}(u) du.\\
\emph{Proof.} With w = K\_\{k,\ensuremath{\sigma}\}, the triangle inequality gives the bound \ensuremath{\int}\ensuremath{_{0}}\textasciicircum{}\ensuremath{\infty} (|g|+g)w. On I, |g|+g = 2max(g,0) \ensuremath{\le} 2R and w = K\_\{k,\ensuremath{\sigma}\ensuremath{-}\ensuremath{\theta}\}e\textasciicircum{}\{\ensuremath{-}\ensuremath{\theta}u\} \ensuremath{\le} (\ensuremath{\sigma}\ensuremath{-}\ensuremath{\theta})\textasciicircum{}\{\ensuremath{-}k\}e\textasciicircum{}\{\ensuremath{-}\ensuremath{\theta}u\} by Lemma 41.4. On the complement, (|g|+g)w \ensuremath{\le} 2C\ensuremath{_{0}}K\_\{k,\ensuremath{\sigma}\ensuremath{-}2\}.
\end{quote}

\textbf{Lean.} \texttt{LandauTheorems/\allowbreak{}landauWindowIneq.\allowbreak{}lean}, line 29:

\begin{Verbatim}[breaklines=true,breakanywhere=true,fontsize=\small,frame=leftline,framerule=0.6pt,framesep=3mm,rulecolor=\color{black!20}]
theorem landau_window_ineq {g R : ? -> ?} (hg : Measurable g) {C? : ?}
    (hC : ? u : ?, 0 <= u -> |g u| <= C? * Real.exp (2 * u)) {? ? U V : ?} (h? : 2 < ?) (h? : ? < ?) (hU : 0 < U)
    (hR : IntegrableOn (fun u => R u * Real.exp (-? * u)) (Icc U V))
    (hR' : ? u  in  Icc U V, 0 <= R u ? g u <= R u) (k : ?) (? : ?) :
    ?? u in Ioi (0 : ?), (g u : ?) * (u : ?) ^ k * cexp (-((? : ?) + ? * I) * u) / (k.factorial : ?)? <=
      2 * (1 / (? - ?) ^ k) * (? u in Icc U V, R u * Real.exp (-? * u)) -
        (? u in Ioi (0 : ?), (g u : ?) * (u : ?) ^ k * cexp (-(? : ?) * u) / (k.factorial : ?)).re +
        2 * C? * ? u in Ioi (0 : ?) \ Icc U V, u ^ k * Real.exp ((2 - ?) * u) / (k.factorial : ?)
\end{Verbatim}


Clause by clause:

\begin{itemize}
  \item \emph{Standing assumptions.}
  \item "Borel measurable" is \texttt{Measurable g}.
  \item The growth bound for u \ensuremath{\ge} 0 is \texttt{hC}.
  \item The book also assumes C\ensuremath{_{0}} \ensuremath{\ge} 0. Lean omits it, but \texttt{hC} at u = 0 gives 0 \ensuremath{\le} |g 0| \ensuremath{\le} C\ensuremath{_{0}}, so nothing is lost.
  \item \emph{Hypotheses.}
  \item \ensuremath{\sigma} > 2, \ensuremath{\theta} < \ensuremath{\sigma}, U > 0 and real V are \texttt{h\ensuremath{\sigma}}, \texttt{h\ensuremath{\theta}} and \texttt{hU}. I = [U, V] is \texttt{Icc U V}.
  \item R \ensuremath{\ge} max(g, 0) on I is written as \texttt{0 \ensuremath{\le} R u \ensuremath{\wedge} g u \ensuremath{\le} R u} (\texttt{hR'}), which is equivalent.
  \item Integrability of R e\textasciicircum{}\{\ensuremath{-}\ensuremath{\theta}u\} on I is \texttt{hR}.
  \item \emph{Conclusion.}
  \item B\_k(\ensuremath{\sigma}+it) is the first integral, with the book's t as Lean's \ensuremath{\gamma}. B\_k(\ensuremath{\sigma}) is the second integral.
  \item The book's \ensuremath{\int}\ensuremath{_{0}}\textasciicircum{}\ensuremath{\infty} is Lean's integral over \texttt{Ioi 0}. These agree, since \{0\} has measure zero.
  \item Lean moves Re B\_k(\ensuremath{\sigma}) to the right-hand side, which is equivalent.
  \item The two terms on the right are verbatim, with K\_\{k,\ensuremath{\sigma}\ensuremath{-}2\}(u) written u\textasciicircum{}k e\textasciicircum{}\{(2\ensuremath{-}\ensuremath{\sigma})u\}/k!.
  \item \emph{Proof.} It follows the book.
  \item It sets w = K\_\{k,\ensuremath{\sigma}\} and proves absolute convergence from |g|w \ensuremath{\le} C\ensuremath{_{0}}K\_\{k,\ensuremath{\sigma}\ensuremath{-}2\}. The integrability of K\_\{k,\ensuremath{\sigma}\ensuremath{-}2\} is \texttt{landau\_\allowbreak{}window\_\allowbreak{}ineq\_\allowbreak{}int}, line 10.
  \item It bounds the left side by \ensuremath{\int}(|g|w + gw) and splits the integral over I and its complement.
  \item On I it uses |g|+g \ensuremath{\le} 2R and w \ensuremath{\le} (\ensuremath{\sigma}\ensuremath{-}\ensuremath{\theta})\textasciicircum{}\{\ensuremath{-}k\}e\textasciicircum{}\{\ensuremath{-}\ensuremath{\theta}u\}, by \texttt{landau\_\allowbreak{}kernel\_\allowbreak{}max}, the kernel bound of Lemma 41.4 (I reported on Lemma 41.4 as \texttt{bf583a614909}).
  \item On the complement it uses (|g|+g)w \ensuremath{\le} 2C\ensuremath{_{0}}K\_\{k,\ensuremath{\sigma}\ensuremath{-}2\}.
  \item I read the proof, but did not build it.
  \item \emph{Use.} \texttt{landau\_\allowbreak{}window} (Theorem 3.2, \texttt{landauWindow.\allowbreak{}lean}, line 57) applies this lemma.
\end{itemize}

\textbf{My check} (\texttt{search/\allowbreak{}review/\allowbreak{}roadmap/\allowbreak{}window\_\allowbreak{}complement\_\allowbreak{}check.\allowbreak{}py}, numpy and scipy, Gauss--Legendre quadrature with 64 nodes on panels of width \ensuremath{\le} 0.05, split at U and V; log \texttt{work/\allowbreak{}window\_\allowbreak{}complement\_\allowbreak{}check.\allowbreak{}log}).

\begin{itemize}
  \item \emph{The quadrature.} On 300 random cases I compared it with two closed forms.
  \item \ensuremath{\int}K\_\{k,a\} = a\textasciicircum{}\{\ensuremath{-}k\ensuremath{-}1\}.
  \item For g = C\ensuremath{_{0}}e\textasciicircum{}\{2u\}cos(bu), B\_k(z) = (C\ensuremath{_{0}}/2)[(z\ensuremath{-}2\ensuremath{-}ib)\textasciicircum{}\{\ensuremath{-}k\ensuremath{-}1\} + (z\ensuremath{-}2+ib)\textasciicircum{}\{\ensuremath{-}k\ensuremath{-}1\}].
  \item The worst error was 3\ensuremath{\cdot}10\ensuremath{^{-}}\ensuremath{^{1}}\ensuremath{^{4}} relative to the kernel mass.
  \item \emph{The test functions.} g(u) = C\ensuremath{_{0}}e\textasciicircum{}\{2u\}\ensuremath{\cdot}h(u), with h one of six shapes, each with |h| \ensuremath{\le} 1:
  \item sin(5u+1), cos(u\ensuremath{^{2}}/3), \ensuremath{-}0.7, 1, sign(sin 3u), and 0.5cos 2u + 0.4sin 7u.
  \item \emph{The envelopes R.} Three choices:
  \item max(g, 0);
  \item max(g, 0) plus a positive extra term;
  \item C\ensuremath{_{0}}e\textasciicircum{}\{2u\}.
  \item \emph{The lemma.} I ran 6000 random instances.
  \item The parameters were k \ensuremath{\le} 30, \ensuremath{\sigma} \ensuremath{\in} [2.05, 6], \ensuremath{\theta} < \ensuremath{\sigma} (including \ensuremath{\theta} < 0) and U \ensuremath{\in} [0.03, 10].
  \item V ranged over V < U (empty I) and V up to U + 8. t was 0 or in [\ensuremath{-}20, 20]. C\ensuremath{_{0}} was 0 or in [0.1, 10].
  \item There were 0 violations.
  \item The proof's intermediate bound |B\_k(\ensuremath{\sigma}+it)| + Re B\_k(\ensuremath{\sigma}) \ensuremath{\le} \ensuremath{\int}\ensuremath{_{0}}\textasciicircum{}\ensuremath{\infty}(|g|+g)K\_\{k,\ensuremath{\sigma}\} also had 0 violations.
  \item \emph{The bound is sharp.}
  \item The largest ratio of the left side to the right was 1 (to 12 digits). It occurs at g = C\ensuremath{_{0}}e\textasciicircum{}\{2u\}, t = 0 and I empty, where both sides equal 2C\ensuremath{_{0}}\ensuremath{\int}K\_\{k,\ensuremath{\sigma}\ensuremath{-}2\}.
  \item With g = C\ensuremath{_{0}}e\textasciicircum{}\{2u\} and I a short window around the peak k/(\ensuremath{\sigma}\ensuremath{-}\ensuremath{\theta}) of K\_\{k,\ensuremath{\sigma}\ensuremath{-}\ensuremath{\theta}\}, the ratio was 0.972, 0.996 and 0.9996 for half-widths 2, 0.5 and 0.05 (k = 20, \ensuremath{\sigma} = 4, \ensuremath{\theta} = 3).
\end{itemize}

\textbf{Not checked.}

\begin{itemize}
  \item I did not build the Lean.
\end{itemize}

\section*{Sources}
\begin{enumerate}\small
  \item rh-lean-roadmap, docs/src/book/main.tex. \url{https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/src/book/main.tex\#L64844-L64885}
  \item rh-lean-roadmap, docs/book.pdf. \url{https://github.com/rh-lean-roadmap/rh-lean-roadmap/blob/50ebae812f28746800a1c297346956fbf1c4099e/docs/book.pdf}
  \item L. Alpöge, Lean archive lean.tar.gz, part 1 of 14. \url{https://alpo.ge/lean.tar.gz.part01}
\end{enumerate}
\end{document}
