\documentclass[11pt]{amsart} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \usepackage{booktabs} \usepackage{array} \usepackage{hyperref} % --------------------------------------------------------------------------- % Theorem environments % --------------------------------------------------------------------------- \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{\red}{\operatorname{red}} \newcommand{\Li}{\operatorname{Li}} \newcommand{\Ed}{\deg_E} \newcommand{\lean}[1]{{\def\_{\textunderscore\allowbreak}\texttt{#1}}} \begin{document} \title{\texorpdfstring{$\chi_2(1/3)$ and $\chi_2(1/5)$ are irrational}{chi2(1/3) and chi2(1/5) are irrational}} \author{Shawn Krisman} \subjclass[2020]{Primary 11J72; Secondary 33B30, 41A21, 31A15, 68V20} \keywords{Legendre chi function, 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. We prove that $\chi_2(1/3)$ and $\chi_2(1/5)$ are irrational. Equivalently, $\Li_2(1/q)-\Li_2(-1/q)\notin\QQ$ for $q=3,5$. The proof uses the Hankel determinants $\Delta_h(\chi_2(1/q))$ of the moment functional $g\mapsto\sum_{t\ge1}q^{-2t}\bigl(g(u)\,u/D_h(u)\bigr)'|_{u=t}$, where $D_h(u)=\prod_{kQ_0$ with explicit $Q_0$. The application to $\chi_2(1/q)$ has $Q=q^2$, so $Q=9$ and $Q=25$ here. Hata's headline application, $\Li_2(1/Q)\notin\QQ$ for $Q\ge12$ or $Q\le-8$, is for the shift $0$, which is easier than the shift $\frac12$, so $q=3$ ($Q=9$) is presumably outside his range. We have not determined his $Q_0$ for the shift $\frac12$, which decides whether his method covers $q=5$ ($Q=25$). Heuristically the half shift costs a factor of about $e^2$ in $Q$, because the denominators become $\operatorname{lcm}$ of the odd numbers up to $2n$, which suggests that it is not covered [heuristic]. The explicit criterion of David, Hirata-Kohno and Kawashima \cite[Thm.~2.1]{DHK2022} for the shift $\frac12$, depths $\le2$, at the single point $1/q^2$ requires $\log q^2>2\log2+6\log3+8$, i.e.\ $q\ge2949$. Their multi-point criterion \cite[Thm.~2.1]{DHK2020} does not apply to $\chi_2(z)=\Li_2(z)-\frac14\Li_2(z^2)$ at the two points $1/q$, $1/q^2$ for any $q$, because it requires all points to be of comparable size. \item \emph{Single dilogarithm values do not suffice.} Hata \cite{Hata1993} proved $\Li_2(-1/5)\notin\QQ$. The irrationality of $\Li_2(1/5)$ has been claimed recently by Prellberg \cite{Prellberg2026} and in S.~Liu's Lean repository \cite{LiuLi2}; neither is refereed. In any case two irrational numbers can have a rational difference, so neither result says anything about $\chi_2(1/5)=\frac12(\Li_2(\frac15)-\Li_2(-\frac15))$. The linear independence results of Rhin--Viola \cite{RhinViola2005} (one point $1/z$) and Viola--Zudilin \cite{ViolaZudilin2018} (the two points $1/z$ and $1/(1-z)$) do not cover the pair $\pm\frac15$ either. \item \emph{Identities do not suffice.} Landen's identity \cite[App.~A.2.1, (24)]{Lewin1981} $\chi_2\bigl(\tfrac{1-x}{1+x}\bigr)+\chi_2(x)=\tfrac{\pi^2}{8}+\tfrac12\log x\,\log\tfrac{1+x}{1-x}$ gives, for example, $\chi_2(\frac13)+\chi_2(\frac12)=\frac{\pi^2}8-\frac12\log2\log3$. Both $\chi_2(\frac12)$ and $\log2\log3$ are open. \end{itemize} Our search for prior work covered the web, arXiv and recent Lean repositories, but not MathSciNet or zbMATH. \subsection{The method}\label{sec:method} Fix an integer $q\ge2$ and put $w:=q^{-2}$. For $h\ge1$ let $x_k:=-(k+\frac12)$ for $0\le k0$ with $d_h\Delta_h\in\ZZ[X]$ and \[ \limsup_{h\to\infty}\frac{\log d_h}{h^2}\le\alpha_q:=\frac{133}{60}+\frac{\log2}{4}+\ind{q=5}\frac{\log3}{4}-\frac{\log q}{3}. \] The term $133/60=\frac45+\frac{17}{12}$ comes from the primes $p\nmid 2q(q^2-1)$. Primes $p<2h/5$ are handled by a Lagrange-basis bound and primes $p\ge2h/5$ by a bound adapted to the residue classes modulo $p$; the prime number theorem then sums the two contributions. The prime $q$ gives a \emph{gain}: a reflection of the functional shows that every coefficient of $\Delta_h$ has $v_q\ge\lfloor(h^2-7h)/3\rfloor-O(h\log h)$. The primes $2$ and $3\mid q^2-1$ occur in the denominators with exponents at most $\frac14h^2+O(h\log h)$. \item \emph{Size} (Sections~\ref{sec:analytic}--\ref{sec:cert}). For every \emph{dual certificate} (a step density $\mu$ with cell bounds on its potential) $\limsup h^{-2}\log|\Delta_h(\chi_2(1/q))|\le\Phi$, an explicit exponent computed from the certificate. The proof treats $\Delta_h(\chi_2(1/q))$ as the partition function of a discrete log-gas with at most two particles per integer node, and compares it with $\mu$ through a lattice energy inequality of P\'olya type. Explicit certificates, checked by exact rational interval arithmetic, give $\Phi<-2.078$ for $q=3$ and $\Phi<-2.385$ for $q=5$. \item \emph{Nonvanishing} (Section~\ref{sec:nonvan}). For every rational $a/b$, $\Delta_h(a/b)\ne0$ for infinitely many $h$. We take $h=3\ell$ with $\ell$ a large prime. In a Lagrange basis and after an $\ell$-adic rescaling, the Gram matrix of $\Lambda_{a/b}=A+\frac ab B$ is $\ell$-integral and block upper triangular modulo~$\ell$, with explicit $3\times3$ diagonal blocks of three types. Their determinants are three fixed nonzero rationals for each $q$, so they are units for all large $\ell$. \end{enumerate} Since $\alpha_3=2.0237\ldots$ and $\alpha_5=2.1281\ldots$, the margins are \[ \alpha_3-2.078<-0.054,\qquad \alpha_5-2.385<-0.256, \] and the standard argument (Proposition~\ref{prop:criterion}) concludes. Table~\ref{tab:budget} lists the contributions. \begin{table}[ht] \centering \begin{tabular}{@{}lccl@{}} \toprule contribution (per $h^2$) & $q=3$ & $q=5$ & source\\ \midrule primes $p\nmid2q(q^2-1)$: $\frac{133}{60}$ & $2.21667$ & $2.21667$ & Thm.~\ref{thm:generic}\\ $p=2$: $\frac14\log2$ & $0.17329$ & $0.17329$ & Lemma~\ref{lem:two}\\ $p=3\mid q^2-1$: $\frac14\log3$ & --- & $0.27465$ & Lemma~\ref{lem:poleorder}\\ $p=q$ (gain): $-\frac13\log q$ & $-0.36620$ & $-0.53648$ & Lemma~\ref{lem:qadic}\\ \midrule arithmetic $\alpha_q$ & $2.02375$ & $2.12813$ & \\ analytic $\Phi$ & $<-2.07832$ & $<-2.38515$ & Thms.~\ref{thm:B}, \ref{thm:cert}\\ \midrule margin $\alpha_q+\Phi$ & $<-0.0545$ & $<-0.2570$ & \\ \bottomrule \end{tabular} \caption{The exponential budget. The analytic values are those of the certificates of Section~\ref{sec:cert}; the main theorem only uses $\Phi<-2.078$ and $\Phi<-2.385$.}\label{tab:budget} \end{table} \subsection{The formalisation} The statement of Theorem~\ref{thm:main} and its complete proof are formalised in Lean~4 \cite{LeanFour} with Mathlib \cite{Mathlib} and checked by the Lean kernel. This includes the prime number theorem, the two dual certificates and the block determinants. The proof depends only on Lean's three standard axioms (\lean{propext}, \lean{Classical.choice}, \lean{Quot.sound}). It contains no \lean{sorry} and no \lean{native\_decide}: every proof, including every computation, is checked by the kernel. The repository is \url{https://github.com/telaviv/chi2-irrationality} \cite{Chi2Repo}; Section~\ref{sec:lean} describes it. The prose proof below is self-contained and can be read without the formalisation, except that two kinds of finite computation are only described, not reproduced: the two dual certificates (Theorem~\ref{thm:cert}), which are decidable statements about rational data proved by \lean{decide +kernel}, and the six block determinants of Section~\ref{sec:nonvan}, which are evaluated exactly by \lean{norm\_num}. \subsection{Organisation and notation} Section~\ref{sec:construction} sets up the functional and proves the pole expansion. Section~\ref{sec:criterion} states the criterion and reduces Theorem~\ref{thm:main} to the three inputs. Sections~\ref{sec:arith1} and~\ref{sec:arith2} bound the denominators, Sections~\ref{sec:analytic} and~\ref{sec:cert} bound the size, and Section~\ref{sec:nonvan} proves nonvanishing. Section~\ref{sec:lean} describes the formalisation and Section~\ref{sec:remarks} contains remarks, including why $\chi_2(1/2)$ is out of reach of this construction. Throughout, $p$ and $\ell$ denote primes; $v_p$ is the $p$-adic valuation on $\QQ$ and $|x|_p=p^{-v_p(x)}$. $\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)$ is the forward difference. We write $\theta(x)=\sum_{p\le x}\log p$. % =========================================================================== \section{The construction}\label{sec:construction} % =========================================================================== \subsection{Data}\label{sec:data} Fix an integer $q\ge2$; later $q\in\{3,5\}$. Put \[ z:=1/q,\qquad w:=z^2=q^{-2},\qquad \chi:=\chi_2(z). \] For $h\ge1$ we use $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, because $d_hP_h$ has integer coefficients and degree $\le h$. 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} Let $q\ge2$. 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(\chi_2(1/q))|\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 $\chi_2(1/q)$ 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} For $q=3$ and $q=5$ the three hypotheses are Theorem~\ref{thm:arith} with $\alpha=\alpha_q$, Theorems~\ref{thm:B} and~\ref{thm:cert} with $\beta=-2.078$ and $\beta=-2.385$, and Theorem~\ref{thm:nonvan}. The final assembly is in Section~\ref{sec:proof}. % =========================================================================== \section{Denominators I: the symbolic machine and the generic primes}\label{sec:arith1} % =========================================================================== \subsection{The free ring}\label{sec:free} It is convenient to treat $q$ and $1/(q^2-1)$ as independent indeterminates. Let $\cR:=\QQ[q,E]$ be the polynomial ring in two variables. 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}$, and reading $S_k(q)$ and $q^{2k+1}$ as elements of $\QQ[q]$, 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} % =========================================================================== \section{\texorpdfstring{Denominators II: the primes $q$, $2$ and the divisors of $q^2-1$}{Denominators II: the primes q, 2 and the divisors of q^2-1}}\label{sec:arith2} % =========================================================================== \subsection{The pole order at \texorpdfstring{$q^2=1$}{q^2=1}} 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_{ik$ give $q^{2k+1}\chi_2(q)$), \eqref{eq:reflect} and Lemma~\ref{lem:pole} combine to \begin{equation}\label{eq:recomb} \psi\bigl(\Lambda^{\cR}_X(g)\bigr)=-\sum_{m\ge0}q^{2m}(g\varphi)'(-m)-4\,(X+\chi_2(q))\sum_{ka_h$, $q^{a_h}$ divides every coefficient of $\psi(\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]]$), $\operatorname{cl}_{\beta_h}f=(q^2-1)^{\beta_h}\psi(f)$ in $\QQ[[q]]$, which is divisible by $q^{a_h}$. As $\operatorname{cl}_{\beta_h}f$ is a polynomial in $q$, its monomials of degree $0$ with $d_h\Delta_h\in\ZZ[X]$ for every $h\ge1$, such that for every $\eps>0$ and all large $h$, \[ \log d_h\le(\alpha_q+\eps)h^2,\qquad \alpha_q=\frac{133}{60}+\frac{\log2}4+\ind{q=5}\frac{\log3}4-\frac{\log q}3 . \] \end{theorem} \begin{proof} Let $c$ be a coefficient of $\Delta_h$; then $c=\operatorname{ev}_q(f)$ with $f$ the corresponding coefficient of $\Delta^{\cR}_h$. We bound $|c|_p$ for every prime $p$. \begin{itemize} \item $p=2$: $|c|_2\le2^{\beta_h+h(L+6)}$ by Lemma~\ref{lem:two}. \item $p=q$: by \eqref{eq:clear}, $c=\operatorname{ev}(\operatorname{cl}_{\beta_h}f)/(q^2-1)^{\beta_h}$, and $q^2-1$ is a $q$-unit. By Lemma~\ref{lem:qadic} every monomial of $\operatorname{cl}_{\beta_h}f$ has degree $\ge a_h$, so $|c|_q\le\|\operatorname{cl}_{\beta_h}f\|_q\,q^{-a_h}\le\|f\|_q\,q^{-a_h}\le q^{2h\lev(q)-a_h}$ by Lemma~\ref{lem:nine}. \item $p$ odd with $p\mid q^2-1$ (so $p=3$, $q=5$): by Lemma~\ref{lem:poleorder} and \eqref{eq:clear}, $|c|_p=|\operatorname{ev}(\operatorname{cl}_{\beta_h}f)|_p\,|q^2-1|_p^{-\beta_h}\le\|f\|_p\,|q^2-1|_p^{-\beta_h}\le p^{2h\lev(p)+v_p(q^2-1)\beta_h}$, by Lemma~\ref{lem:nine}. \item every other $p$: $q$ and $1/(q^2-1)$ 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}$, where $e_2=\beta_h+h(L+6)$, $e_q=2h\lev(q)$, $e_3=2h\lev(3)+\beta_h$ if $q=5$, and $e_p=e(h,p)$ otherwise. Only primes $p<2h+q^2$ occur, because $e(h,p)=0$ for $p\ge2h$. Put $d_h:=N_h/q^{a_h}$. Then $|d_hc|_p\le1$ for every prime $p$, so $d_hc\in\ZZ$. Finally \begin{multline*} \log d_h\le\sum_{p\nmid2q(q^2-1)}e(h,p)\log p+\Bigl(\frac{h^2+2h}4+h(L+6)\Bigr)\log2\\ +\ind{q=5}\frac{h^2+2h}4\log3-a_h\log q+O(h\log h), \end{multline*} where the $O(h\log h)$ collects the terms $2h\lev(p)\log p\le2h\log(2h)$ for $p\in\{3,q\}$. Theorem~\ref{thm:generic} and $a_h\ge(h^2-7h-2)/3$ give the claim. \end{proof} % =========================================================================== \section{The size of \texorpdfstring{$\Delta_h(\chi)$}{Delta_h(chi)}: Theorem B}\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 \[ V(x):=x\log w-\psi(x+1)+\psi(x)=x\log w-(x+1)\log(x+1)+x\log x+1 \] for $x\ge0$. A \emph{step density} is $\mu=\sum_{jM$. 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(\chi)|\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)$. Numerically $C(1/9)\approx-2.1003$ and $C(1/25)\approx-2.4565$. The finite-$h$ values $h^{-2}\log|\Delta_h(\chi)|$, computed in ball arithmetic up to $h=320$, approach these constants [numerical], so Theorem~\ref{thm:B} is essentially sharp for this construction. Only the form with an explicit certificate is used. \end{remark} % =========================================================================== \section{The two certificates}\label{sec:cert} % =========================================================================== \begin{theorem}\label{thm:cert} There are dual certificates with exponent $\Phi<-2.078$ for $q=3$ and $\Phi<-2.385$ for $q=5$. \end{theorem} The certificates are explicit rational data (Table~\ref{tab:cert}). The density $\mu$ is constant on the $J$ cells $[js/L,(j+1)s/L)$ with dyadic heights $c_j\in[0,2]$ (denominator $2^{16}$) and exact mass $\sum_jc_j\,s/L=1$. The bounds $S_k$ are rationals. All checks are inequalities between explicit rational numbers and finitely many values of $\log$ at rational points, and are verified as follows. \begin{itemize} \item \emph{Logarithms.} A table of dyadic intervals of width $2\cdot2^{-40}$ for $\log n$, $n\le n_{\max}$, each checked against the series of $\log(1-x)$ with an explicit tail bound, after reducing the argument by powers of $2$; $\log2$ is enclosed to width $2^{-100}$. \item \emph{Potential.} By summation by parts, $2U^\mu(x)+V(x)=\sum_jD_j\,\psi(x-\alpha_j/L)+x\log w$, with $D_j=2(c_j-c_{j-1})$ at $\alpha_j=js$, plus the terms $\psi(x)$ and $-\psi(x+1)$ of $V$. On each grid cell $[k/L,(k+1)/L]$ every term is bounded above by an affine function: by the chord where the term is convex, and by a tangent (at the midpoint, or at the endpoint away from $\alpha_j/L$) where it is concave. Summing the affine bounds and taking the larger endpoint value bounds $F$ on the cell. All values are rational enclosures. \item \emph{Energy.} $E(\mu)=\sum_{j,j'}c_jc_{j'}\iint\log|x-y|$ over pairs of cells, and the double integral over $[a_1,b_1]\times[a_2,b_2]$ equals $-\Psi(b_1-b_2)+\Psi(b_1-a_2)+\Psi(a_1-b_2)-\Psi(a_1-a_2)$ with $\Psi(u)=\frac12u^2\log|u|-\frac34u^2$. A rational lower bound $E_{\mathrm{lo}}\le E(\mu)$ is computed in interval arithmetic. \item \emph{Tail.} $1/X+\log w<0$ and $\log X+X\log w<\lambda$, from the enclosures of $\log X$ and $\log q$. \end{itemize} The certified exponent is the rational number $\Phi_{\mathbb Q}:=-E_{\mathrm{lo}}+\lambda+\frac2L\sum_k(S_k-\lambda)_+\ge\Phi$. \begin{table}[ht] \centering \begin{tabular}{@{}lcc@{}} \toprule & $q=3$ & $q=5$\\ \midrule grid width $1/L$ & $1/100$ & $1/40$\\ near region $[0,X]$ (cells $XL$) & $[0,3]$ ($300$) & $[0,2]$ ($80$)\\ density: $J$ cells of width $s/L$ & $30\times\frac1{20}$ & $23\times\frac1{20}$\\ $N$; entries of the log table & $2$; $804$ & $2$; $244$\\ $-E_{\mathrm{lo}}$ & $1.532174204$ & $1.768055783$\\ $\lambda$ & $-3.900735042$ & $-4.649276378$\\ $\frac2L\sum_k(S_k-\lambda)_+$ & $0.290234795$ & $0.496069677$\\ $\Phi_{\mathbb Q}$ & $-2.0783260426\ldots$ & $-2.3851509182\ldots$\\ \bottomrule \end{tabular} \caption{The two dual certificates (decimal values rounded).}\label{tab:cert} \end{table} Exactly, $\Phi_{\mathbb Q}=-25979075532629/12500000000000$ for $q=3$ and $\Phi_{\mathbb Q}=-9540603672893/4000000000000$ for $q=5$. The data are generated by a script that optimises the density in floating point, rounds it to dyadic rationals, and then replicates the interval arithmetic exactly in rational arithmetic. The script is not trusted: in the formalisation every check above is a decidable statement about the data, proved by evaluation in the Lean kernel (Section~\ref{sec:lean}). % =========================================================================== \section{Nonvanishing: Lemma P}\label{sec:nonvan} % =========================================================================== \subsection{Statement} For $r\in\{0,1,2\}$ put $c_r:=1/\prod_{a\in\{0,1,2\},a\ne r}(a-r)$, so $(c_0,c_1,c_2)=(\frac12,-1,\frac12)$. Recall $T(M)=\sum_{s\le M,\,s\text{ odd}}z^s/s^2$. Define three $3\times3$ rational matrices, indexed by $r,s\in\{0,1,2\}$: \begin{align*} M_S(q)_{rs}&=\frac{c_r}{1-w}+\ind{r=s}\,4q^{2r+1}T(2r-1),\\ M_L(q)_{rs}&=\frac{w\,c_r}{1-w}+\ind{r=s}\,4q^{2r+1}T(2r+1),\\ M_D(q)_{rs}&=w\,c_r\Bigl(\frac{e_{rs}}{1-w}+\frac{2w}{(1-w)^2}\Bigr)-\ind{r=s}\,4\bigl(r+\tfrac12\bigr)q^{2r+1}T(2r+1), \end{align*} where $e_{rs}=\frac{11}2-2r$ if $r=s$ and $e_{rs}=(3-r-s)+\frac52$ if $r\ne s$. \begin{theorem}[Lemma~P]\label{thm:lemmaP} Let $q\ge2$ and let $\ell\ge7$ be a prime with $\ell\nmid q(q^2-1)$ such that $\det M_S(q)$, $\det M_L(q)$ and $\det M_D(q)$ are $\ell$-adic units. Then $\Delta_{3\ell}(a/b)\ne0$ for all $a\in\ZZ$ and $b\ge1$ with $\ell\nmid b$. \end{theorem} \begin{theorem}\label{thm:nonvan} For $q\in\{3,5\}$ and every $a\in\ZZ$, $b\ge1$, we have $\Delta_h(a/b)\ne0$ for infinitely many $h$. \end{theorem} \begin{proof} Exact evaluation gives \[ \begin{array}{lccc} & \det M_S & \det M_L & \det M_D\\[2pt] q=3: & 6642 & \frac{10896962}{225} & -\frac{5947389}{80}\\[4pt] q=5: & \frac{3531250}{27} & \frac{246357730}{243} & -\frac{6934894375}{3888} \end{array} \] (the factor $9q^2+1$ of $\det M_S=8q^6(9q^2+1)/(9(q^2-1))$ comes from $T(3)=z+z^3/9$). Every prime $\ell$ larger than all these numerators and denominators, than $q^2$, and than $b$, satisfies the hypotheses of Theorem~\ref{thm:lemmaP} and $\ell\nmid b$. 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$. 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$ [proof sketch]. 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 [numerical]. \end{remark} % =========================================================================== \section{Proof of Theorem~\ref{thm:main}}\label{sec:proof} % =========================================================================== Let $q\in\{3,5\}$. We verify the hypotheses of Theorem~\ref{thm:conditional}. \begin{enumerate} \item Theorem~\ref{thm:arith} gives $d_h$ with $\alpha=\alpha_q$. \item Theorem~\ref{thm:B}, applied to the certificate of Theorem~\ref{thm:cert}, gives (ii) with $\beta=-2.078$ ($q=3$) or $\beta=-2.385$ ($q=5$). \item Theorem~\ref{thm:nonvan} gives (iii). \end{enumerate} It remains to check $\alpha_q+\beta<0$, using only elementary bounds for logarithms: $0.6931471803<\log2<0.6931471808$, and, from $\log x\ge1-1/x$, $\log3\ge\log2+\frac13$, $\log3\le2\log2-\frac14$ and $\log5\ge2\log2+\frac15$. Then \[ \alpha_3-2.078\le\frac{133}{60}+\frac{\log2}4-\frac{\log2}3-\frac19-2.078<-0.030, \] \[ \alpha_5-2.385\le\frac{133}{60}+\frac{\log2}4+\frac{2\log2-\frac14}4-\frac{2\log2+\frac15}3-2.385<-0.23 . \] (The true values are $\alpha_3-2.078=-0.05425\ldots$ and $\alpha_5-2.385=-0.25687\ldots$.) Theorem~\ref{thm:conditional} shows that $\chi_2(1/3)$ and $\chi_2(1/5)$ are irrational. \qed % =========================================================================== \section{The formalisation}\label{sec:lean} % =========================================================================== \subsection{What is formalised} The repository \url{https://github.com/telaviv/chi2-irrationality} \cite{Chi2Repo} contains a proof of Theorem~\ref{thm:main} in Lean~4 \cite{LeanFour} (version v4.35.0) with Mathlib \cite{Mathlib} (version v4.35.0 \cite{Mathlib4}). It has 61 Lean files under \lean{Chi2Irrational\slash{}}, with about $18{,}000$ lines. The formalisation covers every step of the proof, including the parts that a written proof would cite: the prime number theorem, the Andreief identity, the lattice energy inequality, both dual certificates and the block determinants. Paths below are relative to the folder \lean{Chi2Irrational\slash{}}, and all declarations are in the namespace \lean{Chi2Irr}. \subsection{The statement} The definitions that the reader has to check are, in \lean{Defs.lean} and \lean{Statement.lean}: \begin{quote}\ttfamily\footnotesize noncomputable def chi2Term (z : $\mathbb{R}$) (n : $\mathbb{N}$) : $\mathbb{R}$ :=\\ \hspace*{2em}z \^{} (2 * n + 1) / (2 * (n : $\mathbb{R}$) + 1) \^{} 2\\[2pt] noncomputable def chi2 (z : $\mathbb{R}$) : $\mathbb{R}$ :=\\ \hspace*{2em}$\sum$' n : $\mathbb{N}$, chi2Term z n\\[2pt] def Chi2OneThirdIrrational : Prop := Irrational (chi2 (1 / 3))\\ def Chi2OneFifthIrrational : Prop := Irrational (chi2 (1 / 5))\\[2pt] theorem chi2\_one\_third\_irrational : Chi2OneThirdIrrational\\ theorem chi2\_one\_fifth\_irrational : Chi2OneFifthIrrational \end{quote} The theorems are in \lean{Arith\slash{}Assembly.lean}. Here $\sum'$ is Mathlib's unconditional sum (\lean{tsum}). \lean{Defs.lean} proves that the series is summable for $|z|\le1$ (\lean{summable\_chi2Term}), so \lean{chi2 z} is the genuine value $\chi_2(z)$. \lean{Irrational x} is Mathlib's predicate $x\notin\QQ$. The command \lean{lake env lean Axioms.lean} prints \begin{quote}\ttfamily\small 'Chi2Irr.chi2\_one\_third\_irrational' depends on axioms:\\ \hspace*{2em}[propext, Classical.choice, Quot.sound]\\ 'Chi2Irr.chi2\_one\_fifth\_irrational' depends on axioms:\\ \hspace*{2em}[propext, Classical.choice, Quot.sound] \end{quote} and the same list for each of the main ingredients listed in \lean{Axioms.lean}. These are Lean's three standard axioms, which Mathlib also uses. The development contains no \lean{sorry}, no added axiom, no \lean{native\_decide} and no \lean{implemented\_by}, so no step relies on compiled code. \subsection{Correspondence with the paper} Table~\ref{tab:lean} lists the main formal counterparts. \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:pole}, \eqref{eq:value} & \lean{powSum\_eq\_tsum}, \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{MachineBounds}, \lean{irrational\_of\_bounds} (\lean{MainCond})\\ Section~\ref{sec:free} & \lean{map\_DeltaF} (\lean{Arith\slash{}Free}); \lean{det\_GLeX}, \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{classBd\_eq\_zero} (\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})\\ Lemma~\ref{lem:poleorder}, \eqref{eq:clear} & \lean{EDeg\_DeltaF}, \lean{aeval\_clearE} (\lean{Arith\slash{}PoleOrder})\\ Lemma~\ref{lem:qadic}, \eqref{eq:andreief} & \lean{ord\_DeltaP}, \lean{qdeg\_clearE\_DeltaF} (\lean{Arith\slash{}QAdic}); \lean{factorial\_smul\_det\_sum\_rankOne} (\lean{Analytic\slash{}Andreief})\\ Lemmas~\ref{lem:two}, \ref{lem:fdseq} & \lean{twoAdic\_Delta} (\lean{Arith\slash{}TwoAdic}); \lean{V2\_fd\_seq}, \lean{V2\_U} (\lean{Arith\slash{}TwoAdicBasis}); \lean{V2\_entry} (\lean{Arith\slash{}TwoAdicEntries})\\ Thm.~\ref{thm:arith} & \lean{denQ}, \lean{padicNorm\_Delta\_eN}, \lean{denQ\_int} (\lean{Arith\slash{}Special}); \lean{arith\_denQ} (\lean{Arith\slash{}Assembly})\\ node expansion, Lemma~\ref{lem:slotdet} & \lean{HT\_rankOne}, \lean{abs\_Delta\_le\_of} (\lean{Analytic\slash{}Nodes}); \lean{abs\_det\_slot\_le} (\lean{Analytic\slash{}SlotDet})\\ Lemmas~\ref{lem:polya}, \ref{lem:dual} & \lean{polya\_log} (\lean{Analytic\slash{}Polya}); \lean{pattern\_le}, \lean{abs\_det\_HT\_le\_dual} (\lean{Analytic\slash{}Dual})\\ Lemma~\ref{lem:discrete} & \lean{log\_bN\_le}, \lean{StepData.Pm\_le}, \lean{StepData.Em\_ge} (\lean{Analytic\slash{}Discrete})\\ Def.~\ref{def:cert}, Thm.~\ref{thm:B} & \lean{DualCert}, \lean{DualCert.det\_bound}, \lean{DualCert.analytic} (\lean{Analytic\slash{}TheoremB})\\ Thm.~\ref{thm:cert} & \lean{CData.Valid}, \lean{CData.toCert}, \lean{CData.Phi\_le} (\lean{Cert\slash{}Instance}); \lean{Cert.Q3.analytic}, \lean{Cert.Q5.analytic} (\lean{Cert\slash{}Q3}, \lean{Cert\slash{}Q5})\\ Thm.~\ref{thm:lemmaP} & \lean{Delta\_eval\_ne\_zero\_of\_det} (\lean{NonVan\slash{}Gram}); \lean{MS}, \lean{ML}, \lean{MD} (\lean{NonVan\slash{}BlockMat}); \lean{lemmaP} (\lean{NonVan\slash{}LemmaP})\\ Thm.~\ref{thm:nonvan} & \lean{nonvan\_of}, \lean{nonvan\_three}, \lean{nonvan\_five} (\lean{NonVan\slash{}NonVanQ})\\ Section~\ref{sec:proof} & \lean{margin\_three}, \lean{margin\_five}, \lean{boundsThree}, \lean{boundsFive}, \lean{chi2\_one\_third\_irrational}, \lean{chi2\_one\_fifth\_irrational} (\lean{Arith\slash{}Assembly})\\ \bottomrule \end{tabular} \caption{Formal counterparts of the main steps.}\label{tab:lean} \end{table} A few arguments are organised differently in the formalisation. \begin{itemize} \item The prime number theorem $\theta(x)/x\to1$ is ported from the PrimeNumberTheoremAnd project \cite{PNTplus} (Wiener--Ikehara route), through the port in the \lean{zeta5} repository of C\'esar Del Solar \cite{zeta5} and the author's formalisation \cite{BetaRepo} of a result on Dirichlet beta values. The ported files keep their Apache License~2.0. \item The discretization bounds of Lemma~\ref{lem:discrete}(ii)--(iii) are proved piece by piece of the step density, with the antiderivatives $\psi$ and $\Psi$, and with the error terms $8J(1+\log h)+2\log(Nh+1)$ and $4h\log(Nh+1)$ instead of those stated here. Only their size $O(h\log h)$ matters. \item The value $\beta_h=\lfloor h^2/4\rfloor$ of Lemma~\ref{lem:poleorder} is not formalised; the formal proof uses $4\beta_h\le h^2+2h$. \item The bound $a_h\ge(h^2-7h-2)/3$ and the two margins are proved with the elementary logarithm bounds of Section~\ref{sec:proof}. The formal $a_h$ is $(h(h-1)-6h)/3$ in natural-number arithmetic, which is the $\max(0,\cdot)$ of Section~\ref{sec:arith2}. \item The potential $U^\mu$ and the energy $E(\mu)$ of a step density are \emph{defined} in Lean by their closed forms $\sum_jc_j(\psi(x-a_j)-\psi(x-a_{j+1}))$ and $\sum_{j,j'}c_jc_{j'}(\cdots)$ with $\Psi$, which equal the integrals of Section~\ref{sec:analytic}. Both Theorem~\ref{thm:B} and the certificates use these closed forms. \end{itemize} \subsection{How the certificates are checked} The dual certificates are records of rational data (\lean{Cert\slash{}DataQ3.lean}, \lean{Cert\slash{}DataQ5.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}}$. \lean{CData.Valid} collects every check of Section~\ref{sec:cert} as a Boolean computation, and \lean{Cert\slash{}Q3.lean} and \lean{Cert\slash{}Q5.lean} prove it by \lean{decide +kernel}, i.e.\ by evaluation in the Lean kernel. The interval arithmetic (\lean{Interval\slash{}}) has exact rational endpoints (only the log-table entries and the enclosure of $\log2$ are dyadic by construction), and its soundness lemmas turn \lean{check = true} into real inequalities; the enclosure of $\log2$ is itself checked by \lean{decide +kernel} against Mathlib's series bound. The data were produced by the script \lean{scripts\slash{}gen\_cert.py}, which is not trusted: a wrong value would make the build fail but could not make a false statement provable. Re-running the script reproduces both data files byte for byte. The six block determinants of Theorem~\ref{thm:nonvan} are evaluated exactly by \lean{norm\_num}. \subsection{Cost} With Mathlib's prebuilt cache, a clean build of the project takes about ten minutes on a desktop computer. The two kernel-checked certificates are a small part of it. \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 Theorem~\ref{thm:main}, and the Mathlib definitions they use (real numbers, \lean{tsum}, \lean{Irrational}). Nothing else, in particular no numerical data and no generating script, needs to be trusted. A reader who does not want to trust the elaborator's environment handling can replay the environment with \lean{lean4checker}; we have not done so. 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{Remarks}\label{sec:remarks} % =========================================================================== \subsection{The margins} For $q=3$ the exponent that must be negative is $\alpha_3+\Phi_{\mathbb Q}\approx-0.0546$ per $h^2$ with the certificate value $\Phi_{\mathbb Q}$ ($-0.0543$ with the rounded value $-2.078$ used in Section~\ref{sec:proof}). The arithmetic part is $2.02375$, so the margin is under $3\%$ of it. A $2$-adic constant larger than about $0.33$ instead of $\frac14$ in Lemma~\ref{lem:two} would have consumed it. For $q=5$ the margin is $-0.257$, and no single constant is critical. With the sharpest available analytic constant, the equilibrium value $C(w)$, the margins would be about $-0.077$ and $-0.328$ [numerical]. \subsection{Effectivity} Every bound in the proof is effective except the prime number theorem, which is used without an error term in Theorem~\ref{thm:generic}. Even with an explicit form, the $O(h\log h)$ terms and the prime-power contributions of Lemma~\ref{lem:nine} decay slowly relative to the margin for $q=3$. The irrationality statement is not affected. \subsection{Other values of \texorpdfstring{$q$}{q}} The construction works verbatim for every integer $q\ge2$. The arithmetic part is $\frac{133}{60}+c_2(q)\log2+\sum_{p\mid q^2-1,\,p\text{ odd}}\frac{v_p(q^2-1)}4\log p-\frac13\log q$, where $c_2(q)$ is the $2$-adic constant ($c_2=\frac14$ when $v_2(q^2-1)=3$). The analytic part improves as $q$ grows [numerical]. We expect the method to prove $\chi_2(1/q)\notin\QQ$ for every $q\ge3$ once these constants are made explicit, with $q=3$ the hardest case [heuristic]. We have not carried this out. \subsection{\texorpdfstring{$\chi_2(1/2)$}{chi2(1/2)}} At $q=2$ ($w=\frac14$) the same construction fails [numerical]. The analytic part is only about $C(\frac14)\approx-1.744$, the generic primes still cost $\frac{133}{60}$, and the prime $3\mid q^2-1$ costs $\frac14\log3$. The $2$-adic gain ($-\frac13\log2$) does not compensate. The limiting exponent is about $+0.52$ per $h^2$, and exact computations up to $h=64$ confirm the trend. Variations of the external field (pole sets, numerator zeros, node regions) gained at most $0.01$ in our experiments. Since $\chi_2(\frac13)+\chi_2(\frac12)=\frac{\pi^2}8-\frac12\log2\log3$, a proof that $\chi_2(1/2)$ is irrational, together with Theorem~\ref{thm:main}, would still not decide the irrationality of $\log2\log3$. \section*{Acknowledgements and disclosure} The construction, the proofs, the certificate programs, the Lean formalisation 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, was carried out by AI systems. 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, through the \lean{zeta5} repository of C\'esar Del Solar. \bibliographystyle{amsplain} \bibliography{references} \end{document}