\documentclass[11pt]{amsart} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \usepackage{booktabs} \usepackage{array} \usepackage{hyperref} % --------------------------------------------------------------------------- % Theorem environments % --------------------------------------------------------------------------- \newtheorem{mainthm}{Theorem} \renewcommand{\themainthm}{\Alph{mainthm}} \newtheorem{theorem}{Theorem}[section] \newtheorem{proposition}[theorem]{Proposition} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \theoremstyle{remark} \newtheorem{remark}[theorem]{Remark} \numberwithin{equation}{section} \setlength{\emergencystretch}{2em} % --------------------------------------------------------------------------- % Macros % --------------------------------------------------------------------------- \newcommand{\NN}{\mathbb{N}} \newcommand{\ZZ}{\mathbb{Z}} \newcommand{\QQ}{\mathbb{Q}} \newcommand{\RR}{\mathbb{R}} \newcommand{\CC}{\mathbb{C}} \newcommand{\FF}{\mathbb{F}} \newcommand{\cA}{\mathcal{A}} \newcommand{\cR}{\mathcal{R}} \newcommand{\eps}{\varepsilon} \newcommand{\ind}[1]{[\,#1\,]} \newcommand{\lev}{\operatorname{lev}} \newcommand{\cb}{\operatorname{cb}} \newcommand{\Li}{\operatorname{Li}} \newcommand{\Ti}{\operatorname{Ti}} \newcommand{\Ed}{\deg_E} \newcommand{\odd}{\operatorname{odd}} \newcommand{\cl}{\operatorname{cl}} \newcommand{\ev}{\operatorname{ev}} \newcommand{\lean}[1]{{\def\_{\textunderscore\allowbreak}\texttt{#1}}} % Sentences that depend on Hata, J. Math. Pures Appl. 69 (1990), are marked with a comment "% HATA-n" and listed in % HATA_TODO.md, so that they can be revised quickly if that paper is read. \begin{document} \hypersetup{pdftitle={Irrationality of chi2(1/q), Ti2(1/q) and chi2(2/q)},pdfauthor={Shawn Krisman}} \title[Irrationality of $\chi_2(1/q)$, $\Ti_2(1/q)$ and $\chi_2(2/q)$]{Irrationality of $\chi_2(1/q)$, $\Ti_2(1/q)$ and $\chi_2(2/q)$} \author{Shawn Krisman} \subjclass[2020]{Primary 11J72; Secondary 33B30, 41A21, 31A15, 68V20} \keywords{Legendre chi function, inverse tangent integral, dilogarithm, irrationality, Hankel determinants, Pad\'e approximation, logarithmic potential theory, formal verification, Lean} \date{\today} \begin{abstract} Let $\chi_2(z)=\sum_{n\ge0}z^{2n+1}/(2n+1)^2$ be Legendre's chi function and $\Ti_2(z)=\sum_{n\ge0}(-1)^nz^{2n+1}/(2n+1)^2$ the inverse tangent integral. We prove three theorems: $\chi_2(1/q)$ is irrational for every integer $q\ge3$ with $q\ne4$; $\Ti_2(1/q)$ is irrational for every integer $q\ge5$; and $\chi_2(2/q)$ is irrational for every odd integer $q\ge175$. All three come from one construction: the Hankel determinants of a moment functional with half-integer poles and geometric weight $w$, read at $w=q^{-2}$, $w=-q^{-2}$ and $w=4q^{-2}$. Their denominators are bounded prime by prime, their size by a discrete log-gas argument against explicit dual certificates, and their nonvanishing by a reduction modulo an auxiliary prime. The three cases differ at the prime $2$, where each needs its own lemma, in the certificates, and in how the nonvanishing lemma is transferred. % HATA-3 (begin): the novelty sentence of the abstract For large $q$ the three statements follow from the linear independence criteria of David, Hirata-Kohno and Kawashima; for the first two, a 1990 criterion of Hata, which we could not consult, also applies from a threshold unknown to us. Below these ranges the results are new as far as we know. % HATA-3 (end) All three theorems are formalised in Lean~4 with Mathlib and checked by the Lean kernel, using only Lean's three standard axioms. \end{abstract} \maketitle \tableofcontents % =========================================================================== \section{Introduction}\label{sec:intro} % =========================================================================== \subsection{Results} For $|z|\le1$ let \begin{align*} \chi_2(z)&=\sum_{n=0}^{\infty}\frac{z^{2n+1}}{(2n+1)^2}=\tfrac12\bigl(\Li_2(z)-\Li_2(-z)\bigr),\\ \Ti_2(z)&=\sum_{n=0}^{\infty}\frac{(-1)^nz^{2n+1}}{(2n+1)^2}=\operatorname{Im}\Li_2(iz) \end{align*} be Legendre's chi function and the inverse tangent integral \cite[\S1.8, Ch.~2]{Lewin1981}. \begin{mainthm}\label{thm:A} For every integer $q\ge3$ with $q\ne4$, the number $\chi_2(1/q)$ is irrational. \end{mainthm} \begin{mainthm}\label{thm:B} For every integer $q\ge5$, the number $\Ti_2(1/q)$ is irrational. \end{mainthm} \begin{mainthm}\label{thm:C} For every odd integer $q\ge175$, the number $\chi_2(2/q)$ is irrational. \end{mainthm} The cases $q=3$ and $q=5$ of Theorem~\ref{thm:A} were proved in \cite{Chi2Paper}, whose construction we extend here. For even $q$, $\chi_2(2/q)=\chi_2(1/(q/2))$ is covered by Theorem~\ref{thm:A} unless $q/2\in\{1,2,4\}$, so Theorem~\ref{thm:C} is stated for odd $q$. With finer ball-arithmetic certificates, which are not part of this paper's proof, the argument would reach $q=173$ (Remark~\ref{rem:173}). \subsection{Context}\label{sec:context} In Hata's notation put $L(\alpha,k;x)=\sum_{n\ge1}x^n/(n-\alpha)^k$. Then \begin{equation}\label{eq:lerch} \chi_2(\tfrac1q)=\tfrac q4L(\tfrac12,2;\tfrac1{q^2}),\quad \Ti_2(\tfrac1q)=-\tfrac q4L(\tfrac12,2;-\tfrac1{q^2}),\quad \chi_2(\tfrac2q)=\tfrac q8L(\tfrac12,2;\tfrac4{q^2}), \end{equation} so each of our numbers is a single shifted dilogarithm (a value of Lerch's transcendent with shift $\frac12$) at a rational point of size about $q^{-2}$. \begin{itemize} \item \emph{The criterion of David, Hirata-Kohno and Kawashima.} Their Theorem~2.1 in \cite{DHK2022} (shifts $\frac12$, depths $\le2$, one rational point $\alpha/\beta$) gives the linear independence of $1$, $L(\frac12,1;\alpha/\beta)$, $L(\frac12,2;\alpha/\beta)$ over $\QQ$ when an explicit quantity $V$ is positive. By our evaluation, at $\alpha/\beta=\pm q^{-2}$ the condition is $\log q^2>2\log2+6\log3+8$, i.e.\ $q\ge2949$; this covers $\chi_2(1/q)$ and $\Ti_2(1/q)$ for $q\ge2949$. At $\alpha/\beta=4/q^2$ the criterion as printed gives $q\ge11{,}795$ for $\chi_2(2/q)$. As far as we can see, the last step of their proof gives only the weaker form of the criterion, with $(\rho m+1)\log\|\alpha\|$ in place of $\rho m\log\|\alpha\|$, which gives $q\ge23{,}587$; we compare with the printed threshold $11{,}795$. (For odd $q$ both thresholds are the first odd integers above $11{,}793.2$ and $23{,}586.4$.) These specialisations are ours; \cite{DHK2022} does not mention $\chi_2$ or $\Ti_2$. The other criteria of these authors \cite{DHK2020,DHK2022b} give larger thresholds here. % HATA-1 (begin) \item \emph{Hata's criterion.} Hata \cite{Hata1990} proved linear independence measures for $1$ and values $L(\alpha_j,k_j;1/Q)$ with rational shifts $\alpha_j$, for integers $|Q|>Q_0$ with an explicit $Q_0$. We have not been able to consult this paper; what follows is secondhand, from its zbMATH review and from later citations \cite{DHK2020,DHK2022}. Negative $Q$ are allowed, and the stated application is $\Li_2(1/Q)\notin\QQ$ for $Q\ge12$ or $Q\le-8$; Hata himself attributes this application to \cite{Hata1990} in \cite[\S1]{Hata1993}. Applied with $Q=q^2$ and $Q=-q^2$, the theorem therefore gives $\chi_2(1/q)\notin\QQ$ and $\Ti_2(1/q)\notin\QQ$ for all sufficiently large $q$, by \eqref{eq:lerch}. We do not know its threshold for the shift $\frac12$, at either sign of $Q$. A heuristic reconstruction of what we take to be Hata's construction at shift $\frac12$ and $Q=q^2$ (calibrated so that it reproduces his unshifted constant $11.837\ldots$) suggests a threshold near $q\approx55$--$85$ for $\chi_2(1/q)$; this is an estimate, not a statement about his paper, and it says nothing about $Q=-q^2$, where his unshifted thresholds are better. The point $4/q^2$ of $\chi_2(2/q)$ is not of the form $1/Q$, so Theorem~\ref{thm:C} lies outside the theorem as it is reviewed. % HATA-1 (end) \item \emph{Single dilogarithm values do not suffice.} Hata \cite[Thm.~1.1]{Hata1993} proved $\Li_2(1/k)\notin\QQ$, and the linear independence of $1$, $\log(1-1/k)$, $\Li_2(1/k)$, for every integer $k\ge7$ or $k\le-5$, with Pad\'e-type approximations to the unshifted dilogarithm built from Legendre-type polynomials; it does not treat shifted values. Recent work proves $\Li_2(1/n)\notin\QQ$ for every integer $n\ne0$ \cite{Zhang2026}, after special cases \cite{TangLi2,Prellberg2026,LiuLi2}, and $\Li_2(p/q)\notin\QQ$ for $q>(4e^4/27)p^3$ \cite{TanZhang2026} (all recent, unrefereed). Two irrational numbers can have a rational difference, so none of these says anything about $\chi_2(z)=\frac12(\Li_2(z)-\Li_2(-z))$ or $\Ti_2(z)=\operatorname{Im}\Li_2(iz)$. The independence results of Rhin--Viola \cite{RhinViola2005} and Viola--Zudilin \cite{ViolaZudilin2018} concern other pairs of points. \item \emph{Integer arguments.} Bah\c{c}{\i}van \cite{Bahcivan2026} (unrefereed) proves, from the criterion of \cite{DHK2022} and the reciprocity formulas, that $\Ti_s(n)$, $\operatorname{Re}\chi_2(n)$ and related values are irrational for a set of positive integers $n$ of natural density one. These are different numbers: $\Ti_2(n)=\Ti_2(1/n)+\frac\pi2\log n$ and $\operatorname{Re}\chi_2(n)=\frac{\pi^2}4-\chi_2(1/n)$ for $n>1$. His Corollary~6.2 ($1$, $\Ti_2(n)$, $\pi\log n$ linearly independent for a density-one set of $n$) does imply $\Ti_2(1/n)\notin\QQ$ on a set of density one. That set is not explicit: independence is obtained only through the criterion of \cite{DHK2022} at points $1/(qs)$ with $q$ sufficiently large, and no individual $n$ is decided. \item \emph{Identities do not suffice.} Landen's identity \cite[App.~A.2.1, (24)]{Lewin1981} relates $\chi_2(x)$ to $\chi_2\bigl(\frac{1-x}{1+x}\bigr)$ up to a product of logarithms, and $\Ti_2(x)-\Ti_2(1/x)=\frac\pi2\log x$. Neither moves our numbers to values known to be irrational. \end{itemize} % HATA-2 (begin) \emph{Novelty.} To our knowledge, and relative to the criteria we have read, the following ranges are new: Theorem~\ref{thm:A} for $6\le q\le2948$ (the cases $q=3,5$ are in \cite{Chi2Paper}); Theorem~\ref{thm:B} for $5\le q\le2948$; and Theorem~\ref{thm:C} for $175\le q<11{,}795$. For Theorems~\ref{thm:A} and~\ref{thm:B} this is subject to the threshold of \cite{Hata1990} for the shift $\frac12$, which we could not check: if that threshold is below $q$, the corresponding values are covered by Hata's theorem. By the heuristic estimate above, the range that is genuinely new for Theorem~\ref{thm:A} may be much shorter than $6\le q\le2948$, perhaps $q\lesssim85$ or less; for Theorem~\ref{thm:B} we have no estimate. Theorem~\ref{thm:C} does not depend on \cite{Hata1990} in this way. % HATA-2 (end) Our search for prior work covered the web, arXiv, Zenodo and GitHub (repository and code search), but not MathSciNet or zbMATH beyond individual reviews. \subsection{The method}\label{sec:method} Fix a real number $w$ with $0<|w|<1$. For $h\ge1$ let $x_k:=-(k+\frac12)$ for $0\le k0$ with $d_h\Delta_h\in\ZZ[X]$ and $\log d_h\le(\alpha+o(1))h^2$, where $\alpha=\frac{133}{60}+c_{\mathrm{odd}}+c_2$. The term $\frac{133}{60}$ comes from the odd primes not dividing $q(q^2-1)$, $q(q^2+1)$ or $q(q^2-4)$ respectively; $c_{\mathrm{odd}}$ collects the odd primes dividing $q$ (a gain) and those dividing $q^2-1$, $q^2+1$ or $q^2-4$ (a cost); $c_2$ is the prime $2$. \item \emph{Size} (Sections~\ref{sec:analytic}--\ref{sec:cert}). For every dual certificate, $\limsup h^{-2}\log|\Delta_h(\theta)|\le\Phi$, an explicit exponent that depends on $w$ only through $|w|$. A shift lemma moves a certificate from $|w|$ to any smaller $|w'|$ and gains $\frac14\log(|w|/|w'|)$. \item \emph{Nonvanishing} (Section~\ref{sec:nonvan}). For every rational $a/b$, $\Delta_h(a/b)\ne0$ for infinitely many $h$, by a reduction modulo a prime $\ell=h/3$. \end{enumerate} If $\alpha+\Phi<0$, the standard argument (Proposition~\ref{prop:criterion}) concludes. Table~\ref{tab:constants} lists the arithmetic constants. \begin{table}[ht] \centering\small \begin{tabular}{@{}lllll@{}} \toprule & $w$ & odd primes $c_{\mathrm{odd}}$ & prime $2$: $c_2$ & lemma\\ \midrule \ref{thm:A}, odd $q$ & $q^{-2}$ & $\frac14\log\odd(q^2-1)-\frac13\log q$ & $\frac{\nu-2}4\log2$ & \ref{lem:twoA}\\ \ref{thm:A}, even $q$ & $q^{-2}$ & $\frac14\log(q^2-1)-\frac13\log\odd(q)$ & $(\frac12-\frac e3)\log2$ & \ref{lem:ten0}\\ & & & or $(c(e)-\frac e3)\log2$ & \ref{lem:tene}\\ \ref{thm:B}, odd $q$ & $-q^{-2}$ & $\frac14\log\frac{q^2+1}2-\frac13\log q$ & $\frac14\log2$ & \ref{lem:ten1}\\ & & & or $\frac18\log2$ & \ref{lem:M}\\ \ref{thm:B}, even $q$ & $-q^{-2}$ & $\frac14\log(q^2+1)-\frac13\log\odd(q)$ & $(c(e)-\frac e3)\log2$ & \ref{cor:teneTi}\\ \ref{thm:C}, odd $q$ & $4q^{-2}$ & $\frac14\log(q^2-4)-\frac13\log q$ & $\frac43\log2$ & \ref{lem:tenZ}\\ \bottomrule \end{tabular} \caption{The arithmetic constants per $h^2$ for Theorems~\ref{thm:A}--\ref{thm:C}, in addition to $\frac{133}{60}$. Here $\odd(n)$ is the odd part of $n$, $\nu=v_2(q^2-1)$, $e=v_2(q)$ and $c(e)=(6-4e)/(3(3e+8))$.}\label{tab:constants} \end{table} The odd primes behave in the same way in all three cases, because the three determinants are specialisations of one symbolic determinant over $\QQ[q,E]$, where $E$ stands for $1/(q^2-1)$: at $(q,E)=(q,1/(q^2-1))$ for Theorem~\ref{thm:A}, at $(q/2,4/(q^2-4))$ for Theorem~\ref{thm:C}, and, through a coefficient twist that realises $q\mapsto iq$, $X\mapsto-iX$, for Theorem~\ref{thm:B} (Proposition~\ref{prop:twist}). The prime $2$ is different in each case, and needs a separate lemma in each: \begin{itemize} \item for odd $q$ in Theorem~\ref{thm:A}, the bound of \cite{Chi2Paper} at general $\nu=v_2(q^2-1)\ge3$; \item for even $q$, a weighted Gauss valuation on the reflected expansion of the functional, which gives the constant $c(e)$; it is what brings $q=6,8,10,12$ within reach; \item for $\Ti_2$ at odd $q$, $\nu=v_2(q^2+1)=1$, so the $2$-part of $q^2+1$ saves only $\frac14\log2$ and $\Ti_2(1/q)$ pays $\frac12\log2$ more in total than $\chi_2(1/q)$ (entry bounds in the anchored basis cost $\frac14\log2$); a change to the binomial basis halves the cost of the prime $2$ to $\frac18\log2$ (Lemma~\ref{lem:M}), which brings $q=5$ within reach ($q=3$ stays out); \item for $\chi_2(2/q)$ the numerator costs at least $\log2$ per $h^2$ (we prove $n_2\ge h^2-h$) and at most $\frac43\log2$, which the analytic side pays only from $q\approx175$ on. \end{itemize} \subsection{The formalisation} All three theorems and their complete proofs are formalised in Lean~4 \cite{LeanFour} with Mathlib \cite{Mathlib} and checked by the Lean kernel, in the repository \url{https://github.com/telaviv/chi2-irrationality} \cite{Chi2Repo}, which also contains the formalisation of \cite{Chi2Paper}. The proofs depend only on Lean's three standard axioms (\lean{propext}, \lean{Classical.choice}, \lean{Quot.sound}); they contain no \lean{sorry} and no \lean{native\_decide}, and every numerical certificate is evaluated by the kernel. Section~\ref{sec:lean} maps each step to its Lean declaration. In a few places the formal proof differs from the written one (cruder lower-order terms, and the organisation into separate files); these are listed in Section~\ref{sec:lean-departures}. The written proof below is self-contained, with two exceptions that are only described: the dual certificates (Section~\ref{sec:cert}), which are decidable statements about rational data proved by evaluation in the Lean kernel, and the closed forms of the block determinants in Section~\ref{sec:nonvan}, which are identities between explicit rational functions. \subsection{Organisation and notation} Section~\ref{sec:construction} sets up the machine at a general weight and proves the pole expansion. Section~\ref{sec:criterion} states the criterion. Sections~\ref{sec:arith1} and~\ref{sec:arith2} bound the odd part of the denominators for all three cases at once. Sections~\ref{sec:analytic} and~\ref{sec:cert} bound the size and prove the shift lemma, and Section~\ref{sec:nonvan} proves the nonvanishing lemma. Sections~\ref{sec:A}, \ref{sec:B} and~\ref{sec:C} specialise to the three theorems: the prime $2$, the certificates, the nonvanishing data and the margins. Section~\ref{sec:limits} discusses the limits of the method, and Section~\ref{sec:lean} the formalisation. Throughout, $p$ and $\ell$ denote primes; $v_p$ is the $p$-adic valuation on $\QQ$ and $|x|_p=p^{-v_p(x)}$. For an integer $n\ne0$, $\odd(n)=n/2^{v_2(n)}$. $\lfloor\cdot\rfloor$ and $\lceil\cdot\rceil$ are the floor and ceiling, $(x)_+=\max(x,0)$, and $\ind{P}$ is $1$ if $P$ holds and $0$ otherwise. For a sequence $f$ on $\ZZ_{\ge0}$, $\Delta f(t)=f(t+1)-f(t)$. $s_2(n)$ is the binary digit sum, so $v_2(n!)=n-s_2(n)$. We write $\theta(x)=\sum_{p\le x}\log p$ only in Section~\ref{sec:arith1}; elsewhere $\theta$ is the target number. % =========================================================================== \section{The machine}\label{sec:construction} % =========================================================================== \subsection{Data}\label{sec:data} We work with three kinds of \emph{point}. Each is given by a rational weight $w$ with $0<|w|<1$, a real target $\theta$, and rationals $c_k$, $s_k$ ($k\ge0$): \begin{center} \begin{tabular}{@{}lllll@{}} \toprule case & $w$ & $\theta$ & $c_k$ & $s_k$\\ \midrule (A) $q\ge2$ & $q^{-2}$ & $\chi_2(1/q)$ & $q^{2k+1}$ & $S_k(q)$\\ (B) $q\ge2$ & $-q^{-2}$ & $\Ti_2(1/q)$ & $(-1)^kq^{2k+1}$ & $S_k^{\Ti}(q)$\\ (C) $q\ge3$ odd & $4q^{-2}$ & $\chi_2(2/q)$ & $\zeta^{2k+1}$, $\zeta=q/2$ & $S_k(\zeta)$\\ \bottomrule \end{tabular} \end{center} Here, for a rational $y$, \[ S_k(y):=\sum_{j=0}^{k}\frac{y^{2(k-j)}}{(2j+1)^2},\qquad S_k^{\Ti}(y):=\sum_{j=0}^{k}\frac{(-1)^{k-j}y^{2(k-j)}}{(2j+1)^2}=S_k(iy). \] For $h\ge1$ we use the $h$ poles $x_k=-(k+\frac12)$, $0\le k0$ be rationals with $d_hP_h\in\ZZ[X]$. Suppose that there is $c>0$ with $d_h|P_h(\xi)|\le e^{-ch^2}$ for all large $h$, and that for every $a\in\ZZ$ and $b\ge1$ we have $P_h(a/b)\ne0$ for infinitely many $h$. Then $\xi$ is irrational. \end{proposition} \begin{proof} Suppose $\xi=a/b$. For every $h$, $N_h:=b^hd_hP_h(a/b)$ is an integer. Choose $h$ with $P_h(a/b)\ne0$, $d_h|P_h(\xi)|\le e^{-ch^2}$ and $b^he^{-ch^2}<1$. Then $1\le|N_h|<1$, a contradiction. \end{proof} \begin{theorem}\label{thm:conditional} Fix a point as in Section~\ref{sec:data}. Suppose there are rationals $d_h>0$ and real numbers $\alpha,\beta$ with $\alpha+\beta<0$ such that \begin{enumerate} \item $d_h\Delta_h\in\ZZ[X]$ for every $h$, and for every $\eps>0$, $\log d_h\le(\alpha+\eps)h^2$ for all large $h$; \item for every $\eps>0$, $|\Delta_h(\theta)|\le e^{(\beta+\eps)h^2}$ for all large $h$; \item for every $a\in\ZZ$ and $b\ge1$, $\Delta_h(a/b)\ne0$ for infinitely many $h$. \end{enumerate} Then $\theta$ is irrational. \end{theorem} \begin{proof} Apply Proposition~\ref{prop:criterion} with $P_h=\Delta_h$ and $c=-(\alpha+\beta)/2$, using (i) and (ii) with $\eps=c/2$. \end{proof} % =========================================================================== \section{Denominators I: the symbolic machine and the generic primes}\label{sec:arith1} % =========================================================================== \subsection{The free ring}\label{sec:free} We treat $q$ and $1/(q^2-1)$ as independent indeterminates. Let $\cR:=\QQ[q,E]$. In $\cR$ put $\Omega_0:=E$ and $\Omega_b:=q^2E^{b+1}$ for $b\ge1$, and for $R\in\QQ[u]$ define $\mu^{\cR}(R):=\sum_b\Delta^b[R'](0)\,\Omega_b\in\cR$ as in \eqref{eq:newton}. Replacing $\mu$ by $\mu^{\cR}$, $s_k$ by $S_k(q)\in\QQ[q]$ and $c_k$ by $q^{2k+1}$, Lemma~\ref{lem:pole} defines functionals $A^{\cR},B^{\cR}$ and \[ \Delta^{\cR}_h(X):=\det\bigl(A^{\cR}(u^{i+j})+X\,B^{\cR}(u^{i+j})\bigr)_{i,jr}(u-\alpha_s). \] Order the roots by decreasing $v_p(m-i)$, with $0$ last. Then for every level $e$ simultaneously, the $\alpha_s=x_m$ with $p^e\mid m-i$ form an initial segment of length $N_e(i)$ (note $x_i-x_m=m-i$). Fix $t$, a level $d=p^e$ and a term $r$ of $Q_i'(t)$ (a product with one more factor omitted). If $r>N_e(i)$, the first product already has $N_e(i)$ factors divisible by $d$. If $r\le N_e(i)$, it has $r-1$; if moreover $m_0\equiv i$, the remaining $N_e(i)-r$ class members sit at positions $s>r$ and at most one of them is omitted, giving at least $N_e(i)-2$ in total; if $m_0\not\equiv i$, the whole class $m_0$ (at least $N_e(i)$ members, all with $v_p(m-i)N_e(i)\ge r$, giving at least $N_e(i)-1$. So \eqref{eq:rowclaim} holds for $Q_i'(t)$ as well. Finally $\#\{e:N_e(i)\ge1\}\le\lev(p)$. \end{proof} \subsection{One-level primes: a basis adapted to residue classes}\label{sec:classbound} For a modulus $d$ and $m2h$. Then $\|\Delta^{\cR}_h\|_p\le p^{\cb(h,p)}$. \end{proposition} \begin{proof} Since $p^2>2h$, every difference $m-l$ of distinct indices and every odd $s\le2h-1$ has $v_p\le1$; so $v_p(m-l)=\ind{p\mid m-l}$ and $v_p(2l+1)=\ind{p\mid2l+1}$. For $m\kappa$, so only the first atom $c$ of a class can be small. We evaluate $\cb$ class by class; a class $\{c,c+d,\dots\}$ of size $n$ contributes $\sum_r(2r+1+M-n)_+$ over its atoms. \begin{itemize} \item[(IV)] $K\kappa$ ($\frac{d-1}2$ of them). Total $3K-\frac52d-\frac32$. \end{itemize} In the four regions $K\varphi_1(d/K)$ equals $2K-d$, $3K-2d$, $2K-\frac d2$ and $3K-\frac52d$. \end{proof} \subsection{The generic primes} For odd $p$ put \[ e(h,p):=\begin{cases}\cb(h,p),& p^2>2h\text{ and }5p\ge2h,\\ 2h\lev(p),&\text{otherwise.}\end{cases} \] \begin{theorem}[generic primes]\label{thm:generic} For every odd prime $p$ and every $h$, $\|\Delta^{\cR}_h\|_p\le p^{e(h,p)}$. For every $\eps>0$ and all large $h$, \[ \sum_{p\text{ odd}}e(h,p)\log p\le\Bigl(\frac{133}{60}+\eps\Bigr)h^2 . \] \end{theorem} \begin{proof} The first statement is Proposition~\ref{prop:classbound} or Lemma~\ref{lem:nine}. For the sum let $h\ge13$. If $5p\ge2h$ then $p^2\ge4h^2/25>2h$, so $e(h,p)=\cb(h,p)$, which vanishes for $p\ge2h$ and is at most $h\varphi_1(p/h)$ for $2h/5\le p<2h$ (Lemma~\ref{lem:classcount}). So the sum is at most \[ \sum_{p<2h/5}2h\lev(p)\log p+\sum_{2h/5\le p<2h}h\,\varphi_1(p/h)\log p . \] For the first sum, $\lev(p)\le1$ when $p^2>2h-1$ and $\lev(p)\log p\le\log(2h)$ always, so it is at most $2h\bigl(\theta(2h/5)+(\sqrt{2h}+1)\log(2h)\bigr)=(\frac45+o(1))h^2$ by the prime number theorem $\theta(x)\sim x$. For the second, cut $[2/5,2]$ into $M$ equal cells. On each cell $\varphi_1$ is at most its value at the left end, and $\sum_{p\in hI}\log p=h|I|+o(h)$ for each fixed cell $I$. Hence the second sum is at most $h^2\bigl(\int_{2/5}^2\varphi_1+\frac{16}{5M}\bigr)+o(h^2)$, and $M$ is arbitrary. \end{proof} \subsection{The twist}\label{sec:twist} For case (B) let $\ev^{\Ti}_{q}\colon\cR\to\QQ$ be the homomorphism with $q\mapsto q$ and $E\mapsto1/(q^2+1)$, for an integer $q\ge2$. \begin{proposition}[the twist]\label{prop:twist} \begin{enumerate} \item Every monomial $q^{m_0}E^{m_1}X^j$ occurring in $\Delta^{\cR}_h$ has $m_0+j$ even. \item Let $\Delta^{\cR,\Ti}_h\in\cR[X]$ be obtained from $\Delta^{\cR}_h$ by multiplying the coefficient of each monomial $q^{m_0}E^{m_1}X^j$ by $\tau(m,j):=(-1)^{m_1+j+(m_0+j)/2}$. Then $\ev^{\Ti}_q(\Delta^{\cR,\Ti}_h)=\Delta^{\Ti}_h(X;q)$. \end{enumerate} \end{proposition} \begin{proof} (i) The automorphism $q\mapsto-q$, $X\mapsto-X$ of $\cR[X]$ fixes every entry $A^{\cR}(u^n)+XB^{\cR}(u^n)$: $\Omega_b$ and $S_k(q)$ are even in $q$, and $q^{2k+1}$ is odd. So it fixes $\Delta^{\cR}_h$. (ii) Over $\CC$, the homomorphism $q\mapsto iq$, $E\mapsto-1/(q^2+1)=1/((iq)^2-1)$ maps $\Omega_b$ to the values \eqref{eq:Omega} with $y=iq$, i.e.\ to those of case (B); it maps $S_k(q)$ to $S_k(iq)=S^{\Ti}_k(q)$, and $q^{2k+1}$ to $i(-1)^kq^{2k+1}$. So it maps $A^{\cR}$ to the functional $A$ of case (B) and $B^{\cR}$ to $i$ times its $B$, hence $\Delta^{\cR}_h(X)$ to $\Delta^{\Ti}_h(iX;q)$. Replacing $X$ by $-iX$, the monomial $c\,q^{m_0}E^{m_1}X^j$ goes to $c\,i^{m_0}(-1)^{m_1}(-i)^jq^{m_0}(q^2+1)^{-m_1}X^j$, and by (i), $i^{m_0}(-i)^j(-1)^{m_1}=\tau(m,j)$. \end{proof} So the coefficients of $\Delta^{\cR,\Ti}_h$ are, up to sign, those of $\Delta^{\cR}_h$: the two have the same Gauss norms, the same $E$-degrees and the same $q$-degrees, coefficient by coefficient. % =========================================================================== \section{\texorpdfstring{Denominators II: the odd primes dividing $q$ and the pole factor}{Denominators II: the odd primes dividing q and the pole factor}}\label{sec:arith2} % =========================================================================== \subsection{The pole order} For $f\in\cR$ let $\Ed f$ be its degree in $E$. Put \begin{gather*} \rho_i:=(i+1-\lceil h/2\rceil)_+,\qquad \kappa_j:=(j-\lfloor h/2\rfloor)_+,\\ \beta_h:=\sum_{ia_h$, $q^{a_h}$ divides every coefficient of $\psi_q(\Delta^{\cR}_h)$. \emph{Clearing.} Let $f=[X^k]\Delta^{\cR}_h$. By Lemma~\ref{lem:poleorder} and \eqref{eq:clear} (with $v=(q,1/(q^2-1))$ in $\QQ[[q]]$), $\cl_{\beta_h}f=(q^2-1)^{\beta_h}\psi_q(f)$ in $\QQ[[q]]$, which is divisible by $q^{a_h}$. As $\cl_{\beta_h}f$ is a polynomial in $q$, its monomials of degree $0$ and all large $h$, \[ \log d^{\odd}_h\le(\alpha_{\odd}+\eps)h^2 . \] Consequently, if $n_2(h)\in\ZZ$ satisfy $|c|_2\le2^{n_2(h)}$ for every coefficient $c$ of $\Delta_h$, then $d_h:=2^{n_2(h)}d^{\odd}_h$ satisfies $d_h\Delta_h\in\ZZ[X]$ and $\log d_h=n_2(h)\log2+\log d^{\odd}_h$. \end{theorem} \begin{proof} Let $c=[X^k]\Delta_h$. In cases (A) and (C), $c=\ev_y(f)$ with $f=[X^k]\Delta^{\cR}_h$ by \eqref{eq:spec}; in case (B), $c=\ev^{\Ti}_q(f^{\Ti})$ with $f^{\Ti}=[X^k]\Delta^{\cR,\Ti}_h$ by Proposition~\ref{prop:twist}. Let $p$ be odd. Then $y$ is $p$-integral, with $v_p(y)=v_p(q)$, and $v_p$ of the value of $E$ is $-v_p(Y)$. We use the clearing $\cl^\sigma$ with $\sigma=+1$ in cases (A), (C) and $\sigma=-1$ in case (B), so that $\ev(\cl^\sigma f)=(y^2-\sigma)^{\beta_h}c$ and $v_p(y^2-\sigma)=v_p(Y)$. By Proposition~\ref{prop:twist} and the remark after \eqref{eq:clear}, the Gauss norms and the $q$-degrees of the monomials of the cleared coefficient are the same as for $\cl_{\beta_h}(f)$ in case (A). \begin{itemize} \item $p\mid q$: then $p\nmid Y$, and by Lemma~\ref{lem:qadic} every monomial of the cleared coefficient has degree $\ge a_h$, so $|c|_p\le\|f\|_p\,|q|_p^{a_h}\le p^{2h\lev(p)}|q|_p^{a_h}$ by Lemma~\ref{lem:nine}. \item $p\mid Y$: by Lemma~\ref{lem:poleorder} and \eqref{eq:clear}, $|c|_p\le\|f\|_p\,|Y|_p^{-\beta_h}\le p^{2h\lev(p)+v_p(Y)\beta_h}$, by Lemma~\ref{lem:nine}. \item $p\nmid qY$: $y$ and the value of $E$ are $p$-integral, so $|c|_p\le\|f\|_p\le p^{e(h,p)}$ by Theorem~\ref{thm:generic}. \end{itemize} Let $N_h:=\prod_pp^{e_p}$ over the odd primes, where $e_p=2h\lev(p)+e(h,p)+v_p(Y)\beta_h$ for $p\mid qY$ and $e_p=e(h,p)$ otherwise. Only primes $p<2h+q^2$ occur. Put $d^{\odd}_h:=N_h/\odd(q)^{a_h}$; since $|\odd(q)|_p=|q|_p$ for odd $p$, $|d^{\odd}_hc|_p\le1$. Finally the terms $2h\lev(p)\log p\le2h\log(2h)$ of the finitely many $p\mid qY$ are $O(h\log h)$, $\beta_h\log\odd(Y)\le\frac{h^2+2h}4\log\odd(Y)$, $a_h\ge(h^2-7h-2)/3$, and Theorem~\ref{thm:generic} bounds $\sum_pe(h,p)\log p$. \end{proof} \begin{remark} In \cite{Chi2Paper} the gain at $p=q$ used that $q$ is prime. Here it is applied at each odd prime $p\mid q$ separately, with multiplicity $v_p(q)$; the $2$-adic share of the gain, for even $q$, is counted inside the $2$-adic lemmas of Section~\ref{sec:A}, and only there. \end{remark} % =========================================================================== \section{\texorpdfstring{The size of $\Delta_h(\theta)$}{The size of Delta_h(theta)}}\label{sec:analytic} % =========================================================================== \subsection{Dual certificates} Let $\psi(u):=u\log|u|-u$ (with $\psi(0)=0$), an antiderivative of $\log|u|$, so that $\int_\alpha^\beta\log|x-y|\,dy=\psi(x-\alpha)-\psi(x-\beta)$. Put for $0M$. Then $f$ is convex on $\ZZ_{\ge0}$ (this uses $\log(k-1)+\log(k+1)\le2\log k$ for $2\le kNh$. \begin{lemma}\label{lem:discrete} With these $m_s$, for all $h\ge2$ and $s\ge1$: \begin{enumerate} \item $\log b(s)\le\log h+\log s-h\log h+h\,V(s/h)$; \item $P_m(s)\le h\,U^\mu(s/h)+h\log h+4+2\log(Nh+1)$; \item $E_m\ge h^2E(\mu)+h^2\log h-4h\bigl(1+\log(Nh+1)\bigr)$. \end{enumerate} \end{lemma} \begin{proof} (i) By concavity of $\log$, $\log(c+\frac12)\ge\int_c^{c+1}\log y\,dy=\psi(c+1)-\psi(c)$ for $c\ge0$, so $\log D(s)=\sum_{kS_0}g(s_i)$. Summing over $f$ in \eqref{eq:pattern} with Lemma~\ref{lem:dual} therefore gives \[ |\det H^{(T)}|\le\frac{K_h^2}{h!}\,e^{-E_m+\lambda'h+8h\log2+2\sum_{s\le S_0}g(s)_+}\Bigl(3S_0+3\sum_{s>S_0}e^{g(s)}\Bigr)^h . \] \emph{Near nodes.} Each $x=s/h\le X$ lies in a cell $[k/L,(k+1)/L]$ with $k0$. For $x\ge N$, $U^\mu(x)\le\log x$, and $V(x)\le x\log W-\log x$ (because $1-x\log(1+1/x)\le1/(x+1)\le\log(1+1/x)$). Hence, using $\log x\le\log X+(x-X)/X$, for $x\ge X$ \begin{align*} F(x)-\lambda&\le\log x+x\log W-\lambda\\ &\le(\log X+X\log W-\lambda)+(x-X)(1/X+\log W)\le-\delta x . \end{align*} So $e^{g(s)}\le h\,s\,e^{2\epsilon_h}e^{-\delta s}\le\frac2\delta h\,e^{2\epsilon_h}e^{-\delta s/2}$ for $s>S_0$, and the far sum is $e^{O(\log h)}$. \emph{Assembly.} $\log(K_h^2/h!)=O(h\log h)$, and $\log\bigl(3S_0+3\sum_{s>S_0}e^{g(s)}\bigr)=O(\log h)$. Collecting, \[ \log|\det H^{(T)}|\le h^2\Bigl(-E(\mu)+\lambda+\frac2L\sum_k(S_k-\lambda)_+\Bigr)+O(h\log h) \] uniformly in $T$, and the theorem follows from $|\Delta_h(\theta)|\le\sup_T|\det H^{(T)}|$. \qed \begin{remark} Let $C(W):=\sup\{E(\rho)+\int V\rho\}$ over densities $\rho$ on $[0,\infty)$ with compact support, $0\le\rho\le2$ and $\int\rho=1$ (the constrained equilibrium constant). For such $\rho$, $E(\rho-\mu)\le0$ \cite[Lemma~I.1.8]{SaffTotik}, so $E(\rho)+\int V\rho\le-E(\mu)+\int F\rho\le-E(\mu)+\lambda+2\int_0^X(F-\lambda)_+\le\Phi$, using $\rho\le2$, $F<\lambda$ beyond $X$ and $F\le S_k$ on the cells. Hence $\Phi\ge C(W)$. In \cite{Chi2Paper} the finite-$h$ values $h^{-2}\log|\Delta_h(\chi_2(1/q))|$ for $q=3,5$, computed in ball arithmetic up to $h=320$, were observed to approach $C(1/9)\approx-2.1003$ and $C(1/25)\approx-2.4565$, so for $w>0$ Theorem~\ref{thm:size} seems essentially sharp for this construction. For $w<0$ it is not: it sees only $|w|$, and numerically $|\Delta^{\Ti}_h(\Ti_2(1/q))|$ is smaller than $|\Delta^\chi_h(\chi_2(1/q))|$ by a factor of roughly $e^{-h^2/q^2}$ for small $q$. Only the form with an explicit certificate is used. \end{remark} % =========================================================================== \section{Certificates and the shift lemma}\label{sec:cert} % =========================================================================== \subsection{The shift lemma} A dual certificate depends on the point only through $W$, and only through the term $x\log W$ of $V_W$. Lowering $W$ therefore tilts the external field, and the cap $\mu\le2$ turns the tilt into a gain. \begin{lemma}[shift lemma]\label{lem:shift} Let $00$ there is a dual certificate for $W'$ with exponent at most $\Phi-\tau/4+\delta$. \end{lemma} \begin{proof} Keep $\mu$, $X$, $N$, and put $\lambda':=\lambda-\tau/2$. Since $V_{W'}(x)=V_W(x)-\tau x$, the new $F'$ is $F-\tau x$. Refine the grid by a factor $2r$: $L'=2rL=2m$ with $m=rL$, and for $k'0$; $P_L(Q)\ge Q(16200Q^2-10575Q-6352)+905>0$ since $16200Q\ge10575+6352$; and $P_D(Q)\ge Q^2(16200Q-51075)+28523Q+420>0$. For $Q=-x$ with $x\ge1$: $9Q+1<0$; $P_L=-16200x^3-10575x^2+6352x+905<0$ because $10575x^2\ge10575x>6352x+905$; and $P_D=-16200x^3-51075x^2-28523x+420<0$. \end{proof} \begin{corollary}[nonvanishing, case (A)]\label{cor:nonvanA} For every integer $q\ge2$ and all $a\in\ZZ$, $b\ge1$, $\Delta^\chi_h(a/b;q)\ne0$ for infinitely many $h$. \end{corollary} \begin{proof} By Proposition~\ref{prop:blocks} the three determinants are nonzero rationals. Every prime $\ell\ge7$ that divides none of their numerators and denominators, nor $q(q^2-1)b$, satisfies the hypotheses of Theorem~\ref{thm:lemmaP}. There are infinitely many such primes, and each gives $h=3\ell$. \end{proof} The rest of this section proves Theorem~\ref{thm:lemmaP}. Fix $q,\ell$ as there and $h=3\ell$; then $\ell^2\ge7\ell>2h$. Let $\ZZ_{(\ell)}$ be the ring of $\ell$-integral rationals and $\bar{\cdot}\colon\ZZ_{(\ell)}\to\FF_\ell$ the reduction. Put $\kappa:=(\ell-1)/2$. The indices $i\kappa$. Note that $\ell\mid2i+1$ iff $i\in C_\kappa$; put $\delta_i:=\ind{i\in C_\kappa}$. \subsection{Steps 1--2: the Lagrange Gram matrix} For $r_0\in\QQ$ let $\Lambda_{r_0}:=A+r_0B$ and $G(r_0)_{ij}:=\Lambda_{r_0}(f_if_j)$, with the Lagrange basis $f_i=D/(u-x_i)$. By \eqref{eq:gram}, $\det G(r_0)=(\det C_f)^2\Delta_h(r_0)$. Put \[ \mathcal E(r_0)_{ij}:=\nu_i\,G(r_0)_{ij}\,\ell^{-\delta_j},\qquad \nu_i:=\ell^2/D'(x_i). \] Then $\det\mathcal E(r_0)\ne0$ implies $\Delta_h(r_0)\ne0$; no value of $\det C_f$ is needed. As in the proof of Lemma~\ref{lem:nine}, for $i\ne j$ we have $G(r_0)_{ij}=\mu(F_{ij})$ with $F_{ij}=u\prod_{m\ne i,j}(u-x_m)$, and $G(r_0)_{ii}=\mu(Q_i)+4x_iD'(x_i)\bigl(S_i(q)-r_0q^{2i+1}\bigr)$. Hence \[ \mathcal E(r_0)=\mathcal E(0)+r_0\operatorname{diag}(d_i),\qquad d_i=-4\ell^{2-\delta_i}x_iq^{2i+1},\qquad v_\ell(d_i)=2 . \] If $\mathcal E(0)$ is $\ell$-integral and $\ell\nmid b$, then $\mathcal E(a/b)$ is $\ell$-integral with the same reduction as $\mathcal E(0)$. So it suffices to show that $\mathcal E(0)$ is $\ell$-integral and $\det\overline{\mathcal E(0)}\ne0$. \subsection{Step 3: splitting by progressions} For $|v|<1$ and a polynomial $g$, $\sigma(v,g):=\sum_{j\ge0}v^jg(j)=\sum_b\Delta^bg(0)\,v^b/(1-v)^{b+1}$. Since $w$, $w^\ell$ and $1-w^\ell\equiv1-w=(q^2-1)/q^2$ are $\ell$-units, we get the following. If $g$ has $\ell$-integral values on $\ZZ_{\ge0}$, then $\sigma(w^\ell,g)$ is $\ell$-integral. If moreover $\bar g(j)=g_0(j)$ for all $j$, for a polynomial $g_0$ over $\FF_\ell$, then $\overline{\sigma(w^\ell,g)}=\sum_b\Delta^bg_0(0)\,\bar w^b/(1-\bar w)^{b+1}$ (use $\bar w^\ell=\bar w$). Splitting $t\ge1$ into the residue classes modulo $\ell$, \[ \mu(F)=\sum_{\gamma<\ell}w^{t_\gamma}\,\sigma\bigl(w^\ell,\ j\mapsto F'(t_\gamma+j\ell)\bigr), \] where the \emph{progression of $\gamma$} is $\{t\ge1:\ell\mid2t+2\gamma+1\}$ and $t_\gamma$ is its least element: $t_\gamma=\kappa-\gamma$ (type S), $\kappa-\gamma+\ell$ (type L), and $\ell$ (type D). On the progression of $\gamma$, $\ell\mid t-x_m$ iff $m\in C_\gamma$, and $\ell\mid t$ iff $\gamma=\kappa$. Since $\ell^2>2h$, all these divisibilities are simple. \subsection{Step 4: integrality and block triangularity} We have $D'(x_i)=\prod_{m\ne i}(m-i)=\ell^2\,c_r^{-1}\,U_i$ with $U_i:=\prod_{m\notin C_\gamma}(x_i-x_m)$ an $\ell$-unit, so $\nu_i=c_rU_i^{-1}$ is a unit. Let $\gamma_i,\gamma_j$ be the classes of $i,j$ and consider the contribution of the progression of $\gamma$. \emph{Off-diagonal entries.} At $t$ on the progression of $\gamma$, the factors of $F_{ij}$ divisible by $\ell$ number $N_\gamma=3-\ind{\gamma=\gamma_i}-\ind{\gamma=\gamma_j}+\ind{\gamma=\kappa}$, and every term of $F'_{ij}(t)$ keeps at least $N_\gamma-1$ of them. So the contribution has valuation $\ge N_\gamma-1-\delta_j\ge0$, with equality only if $\gamma=\gamma_i=\gamma_j$ (inside a diagonal block) or $\gamma=\gamma_i\ne\gamma_j=\kappa$ (a non-D row against a D column). \emph{Diagonal entries.} Off its own progression, $|t-x_i|_\ell=1$ and $Q_i'(t)=\bigl(g_i'(t)(t-x_i)-g_i(t)+g_i(x_i)\bigr)/(t-x_i)^2$ with $g_i$ having at least three roots $\ell$-adically close to $t$, so $v_\ell(Q_i'(t))\ge2$ and the contribution has valuation $\ge2-\delta_i\ge1$. The pole term $4\ell^{2-\delta_i}x_iS_i(q)$ is integral, since $v_\ell(x_i)=\delta_i$ and the denominators $s^2$ of $S_i$ have $v_\ell(s)\le1$. The own-progression contributions are integral by Step~5. Hence $\mathcal E(0)$ is $\ell$-integral. Ordering the classes with $\kappa$ last, $\overline{\mathcal E(0)}$ is block upper triangular, with $3\times3$ diagonal blocks $\overline{\mathcal E(0)}_{C_\gamma}$, and each diagonal block receives only its own progression and the pole terms. \subsection{Step 5: the diagonal blocks} Fix a class $\gamma$ and $i=\gamma+r\ell$, $j=\gamma+s\ell$. On the progression of $\gamma$ we have $t\equiv x_i\equiv x_\gamma\pmod\ell$. For $r\ne s$ let $c:=3-r-s$ be the rank of the third class member, and for $r=s$ let $c_1,c_2$ be the ranks of the other two members; we write $x_{(c)}:=x_{\gamma+c\ell}$. For a polynomial $P$ let $Q[P]:=(P(u)-P(x_i))/(u-x_i)$, so that $Q[PR]=Q[P]\,R+P(x_i)\,Q[R]$ and $Q_i=Q[g_i]$. \emph{Types S and L.} If $r\ne s$, then $F_{ij}=(u-x_{(c)})\cdot u\prod_{m\notin C_\gamma}(u-x_m)$, and modulo $\ell$, $F'_{ij}(t)\equiv t\prod_{m\notin C_\gamma}(t-x_m)\equiv x_iU_i$. If $r=s$, write $g_i=P\cdot R$ with $P=(u-x_{(c_1)})(u-x_{(c_2)})$ and $R=u\prod_{m\notin C_\gamma}(u-x_m)$. Then $Q_i'=Q[P]'R+Q[P]R'+P(x_i)Q[R]'$ with $Q[P]=u+x_i-x_{(c_1)}-x_{(c_2)}$. At $t$ we have $Q[P](t)\equiv0\pmod\ell$, and $\ell^2\mid P(x_i)$, so $Q_i'(t)\equiv R(t)\equiv x_iU_i\pmod\ell$. In both cases $\nu_i(\cdot)\equiv c_r\bar x_\gamma$, a constant along the progression. Summing with Step~3, and using $\bar w^\kappa=\bar q^{-(\ell-1)}=1$ and $\bar w^\ell=\bar w$, the progression contributes $\bar w^{t_\gamma}c_r\bar x_\gamma/(1-\bar w)$, where $\bar w^{t_\gamma}=\bar w^{-\gamma}$ (S) or $\bar w^{1-\gamma}$ (L). For the pole term only the odd $s=\ell s'$ survive in $\ell^2S_i$, and $q^\ell\equiv q$, so $\overline{\ell^2S_i}=\bar q^{2i+1}\,T(M)$ with $M$ the largest odd number $\le(2i+1)/\ell$: $M=2r-1$ (S) or $2r+1$ (L). Since $\bar q^{2i+1}=\bar q\,\bar w^{-\gamma}\bar w^{-r}$, the diagonal block is \[ \overline{\mathcal E(0)}_{C_\gamma}=\bar x_\gamma\,\bar w^{-\gamma}\,\overline{M_{\mathrm{type}(\gamma)}(q)} . \] \emph{Type D} ($\gamma=\kappa$). Here $x_i=-\ell(r+\frac12)$, the progression is $t=\ell(1+j')$, $j'\ge0$, and we put $y=t/\ell+\frac12=j'+\frac32$; then $t=\ell(y-\frac12)$ and $t-x_{(c)}=\ell(y+c)$. Let $R:=\prod_{m\notin C_\kappa}(u-x_m)$, so $R(t)\equiv R(x_i)=U_i\pmod\ell$. If $r\ne s$, two roots of $F_{ij}=u(u-x_{(c)})R$ are close to $t$, and $F'_{ij}(t)=(2t-x_{(c)})R(t)+t(t-x_{(c)})R'(t)\equiv\ell(2y+c-\frac12)\,U_i\pmod{\ell^2}$. If $r=s$, write $g_i=PR$ with $P=u(u-x_{(c_1)})(u-x_{(c_2)})$. Then $\ell^3\mid P(x_i)$; $Q[P](t)$ is a quadratic form in $t,x_i,x_{(c_1)},x_{(c_2)}$, all divisible by $\ell$, so $Q[P](t)\equiv0\pmod{\ell^2}$; and $Q[P]'(t)=2t+x_i-x_{(c_1)}-x_{(c_2)}=\ell(2y+\frac52-2r)$ (using $c_1+c_2=3-r$). Hence $Q_i'(t)\equiv\ell(2y+\frac52-2r)\,U_i\pmod{\ell^2}$. With $\nu_i=c_rU_i^{-1}$ and the column factor $\ell^{-1}$, the residues are $c_r(2y+c-\frac12)=c_r(2j'+e_{rs})$ for $r\ne s$ and $c_r(2y+\frac52-2r)=c_r(2j'+e_{rr})$ for $r=s$. Summing $c_r(2j'+e_{rs})$ against $\bar w^{1+j'}$ over $j'\ge0$ gives $\bar w\,c_r\bigl(e_{rs}/(1-\bar w)+2\bar w/(1-\bar w)^2\bigr)$. The pole term $4\ell x_iS_i=-4(r+\frac12)\ell^2S_i$ reduces to $-4(r+\frac12)\bar q^{2r+1}T(2r+1)$. So $\overline{\mathcal E(0)}_{C_\kappa}=\overline{M_D(q)}$. \subsection{Step 6: conclusion} By Steps 4 and 5, \[ \det\overline{\mathcal E(0)}=\prod_{\gamma\ne\kappa}\bigl(\bar x_\gamma\bar w^{-\gamma}\bigr)^3\,\overline{\det M_{\mathrm{type}(\gamma)}(q)}\cdot\overline{\det M_D(q)} . \] For $\gamma\ne\kappa$, $\bar x_\gamma=-(2\gamma+1)/2\ne0$, and the three determinants are units by hypothesis. So $\det\overline{\mathcal E(a/b)}=\det\overline{\mathcal E(0)}\ne0$ in $\FF_\ell$, hence $\det\mathcal E(a/b)\ne0$ and $\Delta_{3\ell}(a/b)\ne0$. Moreover $\mathcal E(a/b)$ is $\ell$-integral with a unit determinant, and $\det\mathcal E(a/b)=\prod_i\nu_i\cdot\ell^{-3}\cdot(\det C_f)^2\,\Delta_{3\ell}(a/b)$, since exactly three columns ($j\in C_\kappa$) carry the factor $\ell^{-1}$. The factor $K_\ell:=\ell^{-3}(\det C_f)^2\prod_i\nu_i$ depends only on $\ell$. This proves Theorem~\ref{thm:lemmaP}. \qed \begin{remark} The same analysis works for every $h$ with $h\bmod\ell\le\kappa$ and three or more atoms per class. One then needs a fourth block type with four atoms, and an explicit prime-gap theorem to find suitable $\ell$ near $h/3$ for all large $h$ (we have not written this out). For irrationality, infinitely many $h$ suffice, and $h=3\ell$ avoids both complications. With at most two atoms per class the analogous block constants of type S vanish identically in our computations, so primes $\ell>h/2$ did not give a usable nonvanishing statement. \end{remark} % =========================================================================== \section{\texorpdfstring{Theorem~\ref{thm:A}: $\chi_2(1/q)$}{Theorem A: chi2(1/q)}}\label{sec:A} % =========================================================================== In this section we are in case (A): $w=q^{-2}$, $\theta=\chi_2(1/q)$, $\Delta_h=\Delta^\chi_h(X;q)$ with an integer $q\ge3$. It remains to bound the prime $2$. We write $L:=\lfloor\log_2h\rfloor$ and use $|\cdot|_2$ coefficientwise on $\QQ[X]$. \subsection{The prime 2 at odd \texorpdfstring{$q$}{q}} \begin{lemma}[Lemma~10]\label{lem:twoA} Let $q\ge3$ be odd and $\nu:=v_2(q^2-1)\ge3$. For every $h\ge1$ and $k\ge0$, \[ \bigl|[X^k]\Delta_h\bigr|_2\le2^{(\nu-2)\beta_h+h(L+6)} . \] \end{lemma} For $q=3,5$ ($\nu=3$) this is \cite[Lemma~5.3]{Chi2Paper}; the proof there uses $\nu=3$ only in the bound for the entries of type (L) below. We work with the anchored basis, for which $\det(\Lambda_X(a_ib_j))=\Delta_h(X)$. \begin{lemma}\label{lem:fdseq} Let $T\colon\ZZ_{\ge0}\to\QQ$ satisfy $T(l+1)=Q\,T(l)+e\,(s+2l)^{-2}$ with $v_2(e)\ge0$, $v_2(T(0))\ge0$ and $s$ odd, and put $\eta:=Q-1$, $g(l):=(s+2l)^{-2}$. Then $\Delta^mT(0)=\eta^mT(0)+e\sum_{kh^2$ then $h\log_2M\le2M-h$). \end{itemize} Adding Steps 3--5 with $L'=\lceil\log_2h\rceil$, the term has \[ v_e\ge hI-hP+e\Bigl(\frac{I^2}2+P^2\Bigr)+I^2+P^2-2IP-O(h\log h)=h^2f_e(I/h)-O(h\log h), \] where $f_e(x)=e(\frac{x^2}2+(1-x)^2)+(2x-1)+(2x-1)^2=(\frac{3e}2+4)x^2-(2e+2)x+e$. Its minimum on $[0,1]$ is at $x^*=\frac{2e+2}{3e+8}$ and equals $m_e$. This bound is uniform in $M$, which proves the lemma; and $-m_e=\frac{2(e+1)^2}{3e+8}-e=c(e)-\frac e3$. \end{proof} \begin{remark} The minimising slot sets are intervals: nodes $0,1,\dots$ and poles $0,\dots,P-1$, with about a third of the slots at nodes when $e=1$. A similar count with $e=0$ (the plain Gauss valuation, applied to the polynomial $\cl_{\beta_h}f$, whose $q$-degree is $O(h^2)$, so that only nodes $M=O(h^2)$ and losses $\log M=O(\log h)$ occur) gives the cost $\frac14\log2$ in place of the $\frac12\log2$ of Lemma~\ref{lem:ten0}; we do not use this. Exact computations up to $h=256$ suggest that $c(e)$ is the true asymptotic constant, approached slowly from above; we do not need this. \end{remark} \subsection{Proof of Theorem~\ref{thm:A}} Let $q\ge3$, $q\ne4$. Hypothesis (iii) of Theorem~\ref{thm:conditional} is Corollary~\ref{cor:nonvanA}. For (i) we use Theorem~\ref{thm:oddprimes} with the $2$-adic bound of Lemma~\ref{lem:twoA}, \ref{lem:ten0} or~\ref{lem:tene}; for (ii), Theorem~\ref{thm:size} with a certificate of Theorem~\ref{thm:cert}, shifted by Lemma~\ref{lem:shift} where needed, with $\delta=10^{-3}$. Write $\log(q^2-1)<2\log q$ throughout. \begin{itemize} \item \emph{Odd $q\ge3$}, base $W=1/9$: by \eqref{eq:alphaodd}, \begin{align*} \alpha+\beta&<\frac{133}{60}-\frac12\log2+\frac12\log q-\frac13\log q-2.078-\frac12\log\frac q3+\delta\\ &\le\frac{133}{60}-2.078-\frac12\log2+\frac16\log3+\delta<-0.023 . \end{align*} \item \emph{Even $q\ge14$}, Lemma~\ref{lem:ten0}, base $W=1/196$: here $\alpha=\frac{133}{60}+\frac12\log2+\frac14\log(q^2-1)-\frac13\log q$, so \[ \alpha+\beta<\frac{133}{60}+\frac12\log2-3.03+\frac16\log14+\delta<\frac{133}{60}-3.03+\frac76\log2+\delta<-0.003. \] \item \emph{$q=6,8,10,12$}, Lemma~\ref{lem:tene}, direct certificates: $\alpha_e(q)+\Phi$ with $\alpha_e(q)=\frac{133}{60}+\frac14\log(q^2-1)-\frac13\log q+c(e)\log2$ is at most $-0.0097$, $-0.2422$, $-0.2101$, $-0.3539$ (with $e=1,3,1,2$ and $\Phi\le-2.56,-2.72,-2.85,-2.95$). \end{itemize} The numerical values follow from $0.6931471803<\log2<0.6931471808$ and elementary bounds such as $\log3<\frac{27}{17}\log2$ ($3^{17}<2^{27}$); the formalisation proves each inequality this way. Theorem~\ref{thm:conditional} gives Theorem~\ref{thm:A}. \qed \begin{remark} For even $q\ge14$ Lemma~\ref{lem:tene} would give larger margins; we use Lemma~\ref{lem:ten0} there because that is how the formal proof is organised. The case $q=6$ is the thinnest: with $c(1)=\frac2{33}$ it needs $\Phi<-2.5502$, and the plain bound $c=\frac14$ would not suffice. For $q=4$ see Section~\ref{sec:limits}. \end{remark} % =========================================================================== \section{\texorpdfstring{Theorem~\ref{thm:B}: $\Ti_2(1/q)$}{Theorem B: Ti2(1/q)}}\label{sec:B} % =========================================================================== In this section we are in case (B): $w=-q^{-2}$, $\theta=\Ti_2(1/q)$, $\Delta_h=\Delta^{\Ti}_h(X;q)$ with an integer $q\ge3$. By Proposition~\ref{prop:twist}, $\Delta^{\Ti}_h$ is the image of the twisted symbolic determinant, so Theorem~\ref{thm:oddprimes} already bounds the odd primes, with $Y=q^2+1$. In terms of the formal identity $\Delta^{\Ti}_h(X;q)=\Delta^\chi_h(-iX;iq)$, $\Ti_2(1/q)$ is $\chi_2$ at the non-real point $i/q$; Theorem~\ref{thm:A} says nothing about it. \subsection{The prime 2 at odd \texorpdfstring{$q$}{q}} \begin{lemma}[Lemma~$10_1$]\label{lem:ten1} Let $q\ge3$ be odd. For every $h\ge1$ and $k\ge0$, $\bigl|[X^k]\Delta^{\Ti}_h\bigr|_2\le2^{\beta_h}$, $\beta_h=\lfloor h^2/4\rfloor$. \end{lemma} \begin{proof} We follow the proof of Lemma~\ref{lem:twoA}. Here $q^2+1\equiv2\pmod4$, so by \eqref{eq:Omega} with $y=iq$, $v_2(\Omega_b)=-(b+1)$: the analogue of $\nu$ is $1$. For entries of type (L), \eqref{eq:Lnewton} gives $v_2(A(a_ib_j))\ge\min_{b<\pi}(1-\pi+b+v_2(b!)-b-1)\ge-\pi$, and $B(a_ib_j)=0$. For entries of type (U), \eqref{eq:Uentry} holds with $T(l)=S^{\Ti}_{i+l}(q)$ or $(-1)^{i+l}q^{2(i+l)+1}$, which satisfy the recursion of Lemma~\ref{lem:fdseq} with $Q=-q^2$, $\eta=-(q^2+1)$, $v_2(\eta)=1$, and $2$-integral initial values. By Lemma~\ref{lem:fdseq}(ii), for $N\ge2$, $v_2(\Delta^N[\xi_lT(l)](0))\ge\min(-1+N-1,\ N-2)=N-2$, so the entry has $v_2\ge2-v_2(N!)+N-2=s_2(N)\ge1$; for $N\le1$ the entry is $\pm4\xi_0T(0)$ or $\pm4(\xi_0\Delta T(0)-T(1))$, of valuation $\ge1$. So $|\Lambda_X(a_ib_j)|_2\le2^{(i+j+1-h)_+}\le2^{\rho_i}2^{\kappa_j}$, and Lemma~\ref{lem:leibniz} gives $2^{\beta_h}$. \end{proof} So for odd $q$ the prime $2$ costs $\frac14\log2$, and the arithmetic constant is \begin{equation}\label{eq:alphaTi} \alpha^{\Ti}(q)=\frac{133}{60}+\frac14\log\frac{q^2+1}2-\frac13\log q+\frac14\log2=\frac{133}{60}+\frac14\log(q^2+1)-\frac13\log q . \end{equation} Compared with \eqref{eq:alphaodd}, $\Ti_2(1/q)$ pays $\frac12\log2+\frac14\log\frac{q^2+1}{q^2-1}$ more than $\chi_2(1/q)$ at odd $q$. \subsection{The prime 2 at odd \texorpdfstring{$q$}{q}: the binomial basis} With Lemma~\ref{lem:ten1} the margin at $q=5$ is positive ($+0.055$ with the certificate $\Phi\le-2.44$ of Theorem~\ref{thm:cert}, $+0.043$ with the ball-arithmetic certificate of the remark after the proof of Theorem~\ref{thm:B}), and no bound on the entries of the anchored basis can do better: their tropical maximum is $\approx h^2/4$, and the true $2$-adic size of $\Delta^{\Ti}_h$ comes from cancellation. Exact computations give $-\min_kv_2([X^k]\Delta^{\Ti}_h)\approx h^2/8$. The next lemma proves this leading constant by changing to the binomial basis, where the cancellation becomes a factorisation. \begin{lemma}[Lemma~M]\label{lem:M} Let $q\ge3$ be odd. Then $n_2(h):=-\min_kv_2\bigl([X^k]\Delta^{\Ti}_h\bigr)$ satisfies $n_2(h)\le\frac{h^2}8+O(h\log h)$. So the prime $2$ costs at most $\frac18\log2$ per $h^2$. \end{lemma} \emph{Notation.} $C_s(u)=u(u-1)\cdots(u-s+1)/s!$ is the binomial polynomial: it has degree $s$ and leading coefficient $1/s!$, it is integer-valued on $\ZZ_{\ge0}$, and $C_{s+1}(u+1)=C_{s+1}(u)+C_s(u)$ (Pascal). For $F\colon\ZZ_{\ge0}\to\QQ$, $\Delta^bF(0)$ is the iterated forward difference. Put $B_0:=16h+16$, \[ \mathbb M(F):=\sum_{bi$.} Since $x_{k+1}=x_k-1$, Pascal gives $C_i(x_{k+1})-C_i(x_k)=-C_{i-1}(x_{k+1})$, so $\mathcal A_{ni}=(-1)^nC_{i-n}(x_n)$ for $n\le i$ and $\mathcal A_{ni}=0$ for $n>i$. And $C_s(x_k)=\prod_{l{\raggedright\arraybackslash}p{0.27\textwidth}>{\raggedright\arraybackslash}p{0.69\textwidth}@{}} \toprule paper & Lean declaration (file) \\ \midrule Lemma~\ref{lem:pole}, case (A) & \lean{pole\_series} (\lean{PoleSeries}); \lean{Lam\_eq}, \lean{aeval\_chi2\_Delta} (\lean{PoleExpansion})\\ Prop.~\ref{prop:criterion}, Thm.~\ref{thm:conditional} & \lean{irrational\_of\_poly\_approx} (\lean{Criterion}); \lean{irrational\_of\_bounds} (\lean{MainCond})\\ Section~\ref{sec:free} & \lean{map\_DeltaF} (\lean{Arith\slash{}Free}); \lean{det\_GramF} (\lean{Arith\slash{}Gauss})\\ Lemma~\ref{lem:nine} & \lean{lemma9\_DeltaF} (\lean{Arith\slash{}Lemma9})\\ Prop.~\ref{prop:classbound}, Lemma~\ref{lem:classcount} & \lean{classBound\_DeltaF} (\lean{Arith\slash{}ClassBound}); \lean{classBd\_le\_phi1} (\lean{Arith\slash{}ClassCount})\\ Thm.~\ref{thm:generic} & \lean{eventually\_primeSum\_phi1\_le}, \lean{eventually\_primeSum\_lev\_le} (\lean{Arith\slash{}PrimeSums}); \lean{PNT.theta\_div\_tendsto} (\lean{PNT\slash{}Theta})\\ Prop.~\ref{prop:twist} & \lean{TiQ.parity\_DeltaF}, \lean{TiQ.map\_DeltaFT}, \lean{TiQ.coeff\_clearET\_twF} (\lean{TiQ\slash{}Free})\\ Lemma~\ref{lem:poleorder}, \eqref{eq:clear} & \lean{EDeg\_DeltaF}, \lean{aeval\_clearE} (\lean{Arith\slash{}PoleOrder})\\ Lemma~\ref{lem:qadic} & \lean{ord\_DeltaP}, \lean{qdeg\_clearE\_DeltaF} (\lean{Arith\slash{}QAdic}); \lean{factorial\_smul\_det\_sum\_rankOne} (\lean{Analytic\slash{}Andreief})\\ Thm.~\ref{thm:oddprimes} & \lean{Q.arith\_q} (\lean{Q\slash{}Arith}); \lean{TiQ.arith\_t} (\lean{TiQ\slash{}Arith}); \lean{QZ.arith\_z} (\lean{QZ\slash{}Arith})\\ Def.~\ref{def:cert}, Thm.~\ref{thm:size} & \lean{DualCert}, \lean{DualCert.analytic} (\lean{Analytic\slash{}TheoremB}); \lean{TiQ.analytic\_t\_proof} (\lean{TiQ\slash{}Analytic}); \lean{QZ.DualCertW}, \lean{QZ.DualCertW.analyticZ} (\lean{QZ\slash{}TheoremB})\\ Lemma~\ref{lem:shift} & \lean{Q.DualCert.shift} (\lean{Q\slash{}Shift}); \lean{QZ.DualCertW.shift} (\lean{QZ\slash{}Shift})\\ Thm.~\ref{thm:cert} & \lean{Cert.CData.Valid}, \lean{Cert.CData.Phi\_le} (\lean{Cert\slash{}Instance}); \lean{QZ.CDataZ.Valid} (\lean{QZ\slash{}CertInstance})\\ Thm.~\ref{thm:lemmaP} & \lean{Delta\_eval\_ne\_zero\_of\_det} (\lean{NonVan\slash{}Gram}); \lean{lemmaP} (\lean{NonVan\slash{}LemmaP}); \lean{nonvan\_of} (\lean{NonVan\slash{}NonVanQ})\\ \bottomrule \end{tabular} \caption{Formal counterparts of the shared steps.}\label{tab:leanshared} \end{table} \begin{table}[ht] \centering\small \begin{tabular}{@{}>{\raggedright\arraybackslash}p{0.27\textwidth}>{\raggedright\arraybackslash}p{0.69\textwidth}@{}} \toprule paper & Lean declaration (file) \\ \midrule Lemma~\ref{lem:twoA} & \lean{Q.twoAdic\_Delta}, \lean{Q.twoAdic\_odd\_proof} (\lean{Q\slash{}TwoAdic}); \lean{Q.V2\_entry} (\lean{Q\slash{}TwoAdicEntries})\\ Lemma~\ref{lem:ten0} & \lean{Q.GLeX\_DeltaF\_two}, \lean{Q.twoAdic\_even\_proof} (\lean{Q\slash{}TwoAdicEven})\\ Lemma~\ref{lem:tene} & \lean{Q.CoreDet.padicNorm\_detR\_le} (\lean{Q\slash{}Even\slash{}CoreDet}); \lean{Q.sum\_cntL\_ge}, \lean{Q.large\_node} (\lean{Q\slash{}Even\slash{}Count}); \lean{Q.twoAdic\_even\_sharp\_proof} (\lean{Q\slash{}Even\slash{}TwoAdicSharp})\\ Prop.~\ref{prop:blocks}, Cor.~\ref{cor:nonvanA} & \lean{Q.nonvan\_q\_proof} (\lean{Q\slash{}NonVan})\\ certificates & \lean{Cert.Q3.analytic} (\lean{Cert\slash{}Q3}); \lean{Cert.Q14.phi\_le} (\lean{Cert\slash{}Q14}); \lean{Q.cert\_newQ\_proof} (\lean{Q\slash{}Even\slash{}Certs}; data \lean{Cert\slash{}Q6}, \dots, \lean{Cert\slash{}Q12})\\ margins & \lean{Q.margin\_odd}, \lean{Q.margin\_even} (\lean{Q\slash{}Interface}, proofs in \lean{Q\slash{}Margin}); \lean{Q.margin\_newQ} (\lean{Q\slash{}Even\slash{}Interface}, \lean{Q\slash{}Even\slash{}Margin})\\ Theorem~\ref{thm:A} & \lean{Q.theoremQ} (\lean{Q\slash{}Interface}; odd $q$, even $q\ge14$); \lean{Q.theoremQ4} (\lean{Q\slash{}Even\slash{}Interface})\\ \bottomrule \end{tabular} \caption{Formal counterparts for Theorem~\ref{thm:A}.}\label{tab:leanA} \end{table} \begin{table}[ht] \centering\small \begin{tabular}{@{}>{\raggedright\arraybackslash}p{0.27\textwidth}>{\raggedright\arraybackslash}p{0.69\textwidth}@{}} \toprule paper & Lean declaration (file) \\ \midrule case (B) of Lemma~\ref{lem:pole} & \lean{TiQ.pole\_seriesT} (\lean{TiQ\slash{}PoleSeries}); \lean{TiQ.Lam\_eqT}, \lean{TiQ.aeval\_ti2\_DeltaT} (\lean{TiQ\slash{}PoleExpansion})\\ Lemma~\ref{lem:ten1} & \lean{TiQ.V2\_fd\_seq1}, \lean{TiQ.V2\_entryT} (\lean{TiQ\slash{}TwoAdicEntries}); \lean{TiQ.twoAdic\_DeltaT}, \lean{TiQ.twoAdic\_odd\_t\_proof} (\lean{TiQ\slash{}TwoAdicNu1})\\ Cor.~\ref{cor:teneTi} & \lean{TiQ.twoAdic\_even\_t\_proof} (\lean{TiQ\slash{}TwoAdicEven})\\ Prop.~\ref{prop:nonvanB} & \lean{TiQ.block\_SL}, \lean{TiQ.block\_D} (\lean{TiQ\slash{}NonVan\slash{}BlockMat}); \lean{TiQ.lemmaP} (\lean{TiQ\slash{}NonVan\slash{}LemmaP}); \lean{TiQ.nonvan\_t\_proof} (\lean{TiQ\slash{}NonVan\slash{}NonVanT})\\ Thm.~\ref{thm:size} at $w<0$ & \lean{TiQ.abs\_WT}, \lean{TiQ.analytic\_t\_proof} (\lean{TiQ\slash{}Analytic})\\ certificate $W=1/36$ & \lean{TiQ.cert\_t6\_proof} (\lean{TiQ\slash{}Certs}; data and checks \lean{TiQ\slash{}Cert\slash{}})\\ Lemma~\ref{lem:M}, Steps 1--2 & \lean{TiQ.M.DeltaT\_eq\_Cb}, \lean{TiQ.M.BfunT\_Cb}, \lean{TiQ.M.HM\_eq}, \lean{TiQ.M.det\_block} (\lean{TiQ\slash{}M\slash{}Gram}); \lean{TiQ.M.Am\_zero}, \lean{TiQ.M.Am\_bound} (\lean{TiQ\slash{}M\slash{}Binom})\\ Lemma~\ref{lem:M}, Steps 3--5 & \lean{TiQ.M.Om\_bound} (\lean{TiQ\slash{}M\slash{}BoundB}); \lean{TiQ.M.fd\_deriv\_intval} (\lean{TiQ\slash{}M\slash{}Binom}); \lean{TiQ.M.MB\_poly}, \lean{TiQ.M.err\_bound}, \lean{TiQ.M.theta\_bound} (\lean{TiQ\slash{}M\slash{}Trunc}); \lean{TiQ.M.boundA} (\lean{TiQ\slash{}M\slash{}BoundA})\\ Lemma~\ref{lem:M}, Step 6 & \lean{TiQ.M.det\_PNz}, \lean{TiQ.M.Nblk\_entry}, \lean{TiQ.M.twoAdic\_DeltaT\_M}, \lean{TiQ.M.eventually\_n2M\_le} (\lean{TiQ\slash{}M\slash{}Final}); \lean{TiQ.twoAdic\_odd\_M} (\lean{TiQ\slash{}Interface5})\\ certificate $W=1/25$ & \lean{TiQ.cert\_t5} (\lean{TiQ\slash{}Interface5}; data and checks \lean{Cert\slash{}DataQ5L200}, \lean{Cert\slash{}Q5L200})\\ margins & \lean{TiQ.margin\_t5} (\lean{TiQ\slash{}Interface5}); \lean{TiQ.margin\_t6\_proof}, \lean{TiQ.margin\_t\_odd\_proof}, \lean{TiQ.margin\_t\_even\_proof} (\lean{TiQ\slash{}Margin})\\ Theorem~\ref{thm:B} & \lean{TiQ.irrational\_of\_boundsT} (\lean{TiQ\slash{}MainCond}); \lean{TiQ.theoremT} (\lean{TiQ\slash{}Interface}, $q\ge6$); \lean{TiQ.theoremT5} (\lean{TiQ\slash{}Interface5})\\ \bottomrule \end{tabular} \caption{Formal counterparts for Theorem~\ref{thm:B}.}\label{tab:leanB} \end{table} \begin{table}[ht] \centering\small \begin{tabular}{@{}>{\raggedright\arraybackslash}p{0.27\textwidth}>{\raggedright\arraybackslash}p{0.69\textwidth}@{}} \toprule paper & Lean declaration (file) \\ \midrule case (C), \eqref{eq:spec} & \lean{QZ.DeltaZ}, \lean{QZ.map\_DeltaF\_Z} (\lean{QZ\slash{}Machine}); \lean{QZ.pole\_seriesZ}, \lean{QZ.aeval\_chi2\_DeltaZ} (\lean{QZ\slash{}PoleExpansion}); \lean{QZ.chi2\_two\_div} (\lean{QZ\slash{}Interface})\\ Lemma~\ref{lem:tenZ} & \lean{QZ.V2\_entryZ} (\lean{QZ\slash{}TwoAdicEntries}); \lean{QZ.twoAdic\_DeltaZ}, \lean{QZ.twoAdic\_num\_proof} (\lean{QZ\slash{}TwoAdic})\\ Prop.~\ref{prop:nonvanC} & \lean{QZ.lemmaP\_norm}, \lean{QZ.nonvan\_z\_proof} (\lean{QZ\slash{}NonVan})\\ certificate $W=4/175^2$ & \lean{QZ.Cert.Q175.valid} (\lean{QZ\slash{}CertQ175}; data \lean{QZ\slash{}CertDataQ175})\\ margin & \lean{QZ.margin\_z\_proof} (\lean{QZ\slash{}Margin})\\ Theorem~\ref{thm:C} & \lean{QZ.irrational\_of\_boundsZ} (\lean{QZ\slash{}MainCond}); \lean{QZ.theoremQ4num} (\lean{QZ\slash{}Interface})\\ \bottomrule \end{tabular} \caption{Formal counterparts for Theorem~\ref{thm:C}.}\label{tab:leanC} \end{table} \subsection{Differences from the written proof}\label{sec:lean-departures} The formal proofs follow the written ones. The differences are these; none weakens a stated theorem. \begin{itemize} \item \emph{Organisation.} For odd $q$ and even $q\ge14$, \lean{Q.theoremQ4} calls the intermediate theorem \lean{Q.theoremQ}; for $q=6,8,10,12$ it uses Lemma~\ref{lem:tene}. The machines of cases (B) and (C) are separate copies of the machine of case (A) (\lean{TiQ\slash{}Machine}, \lean{QZ\slash{}Machine}), tied to the symbolic determinant by \lean{TiQ.map\_DeltaFT} and \lean{QZ.map\_DeltaF\_Z}; no file of the earlier formalisation was edited. Lemma~\ref{lem:pole}, the size bound and Theorem~\ref{thm:lemmaP} are copied with the needed sign or weight changes. \item \emph{Lower-order terms.} Lemma~\ref{lem:ten0} is formalised with $h^2/2+h$ in place of $\lfloor h^2/2\rfloor$; Lemma~\ref{lem:ten1} with weaker entry bounds ($v_2\ge-\pi-2-\lfloor\log_2\pi\rfloor$ on (L), $v_2\ge0$ on (U)), giving $n_2\le\beta_h+h(\lfloor\log_2h\rfloor+2)$; Lemma~\ref{lem:tene} with the explicit bound $n_2\le h-\lceil m_eh^2-h(\frac{3e}2+4\lfloor\log_2h\rfloor+4)\rceil$. The leading constants are those of the paper. The value $\beta_h=\lfloor h^2/4\rfloor$ is not formalised; the proofs use $4\beta_h\le h^2+2h$. \item \emph{Shift and margins.} The shift lemma is formalised in the discretised form of Lemma~\ref{lem:shift}. The margins are proved with elementary bounds for logarithms, so the formal margins are slightly weaker: for instance $-0.00904$ at $q=6$ for Theorem~\ref{thm:A}, about $-0.0025$ at $q=6$ and $-0.019$ at $q=5$ for Theorem~\ref{thm:B}, and $-0.00126$ for Theorem~\ref{thm:C}. \item \emph{Lemma~\ref{lem:M}.} The formal proof is Steps 1--6 above (rational $\tilde\theta$, binomial basis, the block matrix $\mathcal N$ and one Leibniz bound with potentials). These differ from our working notes, not from the Lean: the notes use the $2$-adic $\theta_2$ and a Cauchy--Binet expansion over $2h$ rows, with the sharper bound $|E_{ij}|_2\le2^{i+j+1-h}$; with that bound the tropical value of the Leibniz bound for $\mathcal N$ equals the notes' bound. Step~5 proves $2^{i+j+2-h}$ (one weaker), so the proved exponent exceeds the notes' by $O(h)$; the limit constant $\frac18\log2$ is the same. Lemma~\ref{lem:M} is used formally only at $q=5$. \item \emph{Not formalised.} Proposition~\ref{prop:floor}, the remarks (including Remark~\ref{rem:173} on $q=173$) and Section~\ref{sec:limits}; none of them is used in the proofs of the theorems. \end{itemize} \subsection{How the certificates are checked} A dual certificate is a record of rational data (for example \lean{Cert\slash{}DataQ14.lean}, \lean{TiQ\slash{}Cert\slash{}DataQ6L800.lean}, \lean{Cert\slash{}DataQ5L200.lean}, \lean{QZ\slash{}CertDataQ175.lean}): the log table as a list of integers in units of $2^{-40}$, the heights $c_j$, the bounds $S_k$, $\lambda$ and $E_{\mathrm{lo}}$. A Boolean predicate (\lean{Cert.CData.Valid}, \lean{QZ.CDataZ.Valid}) collects every check of Section~\ref{sec:cert}, and the certificate files prove it by \lean{decide +kernel}, i.e.\ by evaluation in the Lean kernel; soundness lemmas turn it into a \lean{DualCert}. The data were produced by the scripts \lean{scripts\slash{}gen\_cert.py} and \lean{scripts\slash{}q2num\slash{}gen\_cert\_z.py}, which are not trusted: a wrong value makes the build fail but cannot make a false statement provable. The block determinants of Proposition~\ref{prop:blocks} are evaluated as rational functions of $q$ (\lean{Q\slash{}NonVan}, \lean{TiQ\slash{}NonVan\slash{}NonVanT}) and at $q/2$ (\lean{QZ\slash{}NonVan}) by exact computation. \subsection{Building and replaying} With elan installed: \begin{quote}\ttfamily\small git clone https://github.com/telaviv/chi2-irrationality\\ cd chi2-irrationality \&\& git checkout cef469e\\ lake exe cache get\\ LEAN\_NUM\_THREADS=4 lake build\\ lake env lean Axioms.lean \end{quote} The build has $9196$ jobs. Most of its time is spent in the kernel checks of the certificates: a few minutes each for $W=1/14^2$, $W=1/6^2,\dots,1/12^2$ and $W=1/5^2$ ($461$\,s), about three hours for $W=4/175^2$ ($10{,}697$\,s wall time on a shared machine), and several hours for the finer certificate at $W=1/36$, whose cells are split over four files. To avoid trusting the elaborator's handling of the stored environment, each module can be replayed through the kernel with \lean{leanchecker}: \begin{quote}\ttfamily\small for m in \$(find Chi2Irrational -name "*.lean" | sed 's/\textbackslash.lean\$//; s\#/\#.\#g'); do\\ \hspace*{2em}lake env leanchecker "\$m"; done \end{quote} Each module is replayed against the compiled environment of its imports, so Mathlib itself is not re-checked. For the formalisation of \cite{Chi2Paper} and the intermediate theorem (91 modules), all modules passed on 2026-11-09. For the modules of Theorems~\ref{thm:B} and~\ref{thm:C} (\lean{TiQ\slash{}}, \lean{QZ\slash{}}), $40$ modules passed on 2026-11-12 ($3189$\,s, log \lean{scripts\slash{}leanchecker\_qz\_tiq.log}); the seven modules that contain the \lean{decide +kernel} proofs of the two certificates of Theorems~\ref{thm:B} ($q\ge6$) and~\ref{thm:C} (\lean{QZ\slash{}CertQ175.lean}, \lean{TiQ\slash{}Certs.lean} and the five files of \lean{TiQ\slash{}Cert\slash{}} other than the data) were not replayed, because each would repeat hours of kernel evaluation; they are checked by the kernel during \lean{lake build}. The modules added for Lemma~\ref{lem:M} and $q=5$ (\lean{TiQ\slash{}M\slash{}}, \lean{TiQ\slash{}Interface5.lean}, \lean{Cert\slash{}DataQ5L200.lean}, \lean{Cert\slash{}Q5L200.lean}) have not been replayed. \subsection{What has to be trusted} Beyond the Lean kernel and the three axioms, the reader has to trust that the definitions displayed above express Theorems~\ref{thm:A}--\ref{thm:C}, and the Mathlib definitions they use (real numbers, \lean{tsum}, \lean{Irrational}, \lean{Odd}). Nothing else, in particular no numerical data and no generating script, needs to be trusted. Apart from the check by the Lean kernel, all verification of the formalisation so far was carried out by AI systems; no human expert has yet reviewed the Lean code. \section*{Acknowledgements and disclosure} The research, the construction, the proofs, the certificate programs, the Lean formalisation, the literature searches and the text of this paper were produced largely by AI models (Claude, Anthropic), working under the direction of the author. Apart from the check by the Lean kernel, all verification so far, including the internal reviews of the argument by AI referees, was carried out by AI systems. The written proofs of the new ingredients (the extension of the construction to general $q$, Lemma~\ref{lem:tene}, the case of $\Ti_2$ including Lemma~\ref{lem:M}, and the case of $\chi_2(2/q)$) were each checked by one AI referee, at a single gate, with independent implementations of the machine. Several written proofs here follow the formal proofs rather than those working notes (Lemma~\ref{lem:tene}, Lemma~\ref{lem:tenZ}, Proposition~\ref{prop:nonvanC}, and Theorem~\ref{thm:size} at $w<0$); as written proofs these were checked by the Lean kernel and by the whole-paper referee only. Lemma~\ref{lem:M} (added after the whole-paper review) also follows the formal proof; as written it was checked by the Lean kernel and by one AI referee of the changed sections, and its source proof by one AI gate referee. The fidelity of each Lean statement was checked by an independent AI referee, and the text of this paper was reviewed as a whole by one further AI referee. No MathSciNet search or expert query has been made. No human expert has yet reviewed the mathematics or the Lean code; we would be grateful for corrections. The prime number theorem in the formalisation is ported from the PrimeNumberTheoremAnd project of A.~Kontorovich, T.~Tao and collaborators \cite{PNTplus}, through the \lean{zeta5} repository of C\'esar Del Solar \cite{zeta5}. \bibliographystyle{amsplain} \bibliography{references} \end{document}