% =========================================================================== \section{Formal verification}\label{sec:lean} % =========================================================================== Theorem~\ref{thm:main} is formalised in Lean~4 with Mathlib. The formal statement is \begin{center} \texttt{theorem LucasB.irrational\_Xib \{b :~}$\mathbb N$\texttt{\} (hb :~2~}$\le$\texttt{~b) :~Irrational (Xib b)}, \end{center} with $\texttt{Xib}\ b=\sum_{n\ge0}b^{3(n+1)}/(b^{2(n+1)}-1)^3$ over $\RR$, and it depends only on the axioms \texttt{propext}, \texttt{Classical.choice} and \texttt{Quot.sound}. The construction and the results of \cite{KriL} that we import are taken from the formalisation of \cite{KriL}, used as a dependency (commit \texttt{daf7bd6}); the new part has about 4500 lines. The versions are Lean and Mathlib \texttt{v4.35.0}. The code is available at \url{https://github.com/telaviv/lucas-b-irrationality}. \begin{center} \small \begin{tabular}{ll} \toprule Here & Lean\\ \midrule Proposition~\ref{prop:decay} & \texttt{LucasU.Analytic.decayBound} (with \texttt{LucasB.good\_inv})\\ Proposition~\ref{prop:nonvan} & \texttt{LucasU.NonVan.nonvanishing}\\ Proposition~\ref{prop:old} & \texttt{LucasU.Denom.localBounds}\\ Proposition~\ref{prop:badic} & \texttt{LucasB.BAdic.badicContent}\\ Lemma~\ref{lem:V}(a) & \texttt{LucasB.Even.vge\_Lpoly}\\ Lemma~\ref{lem:E} & \texttt{LucasB.Even.entry\_vge}, \texttt{LucasB.Even.wt\_quot}\\ Theorem~\ref{prop:bound} & \texttt{LucasB.Odd.localBoundsNew}\\ \quad the two caps & \texttt{LucasB.Even.even\_cap}, \texttt{LucasB.Odd.odd\_cap}\\ Corollary~\ref{cor:global} & \texttt{LucasB.integralityNew}\\ Proposition~\ref{prop:size}(ii) & \texttt{LucasB.Cost.costNew} (constant $1.055$)\\ Section~\ref{sec:proof} & \texttt{LucasB.irrational\_Xib\_of}, \texttt{LucasB.CKnew\_recip}\\ Theorem~\ref{thm:main} & \texttt{LucasB.irrational\_Xib}\\ \bottomrule \end{tabular} \end{center} The formal proof differs from the text in the following points; none of them changes a statement used in the proof. \begin{itemize} \item The cost bound is proved with the cubic constant $1.055$ in place of $C=1.0505754\ldots$; any constant below $\frac{19}{18}$ closes the argument, and the formal margin is $\frac1{1800}$ per $K^3\log b$. Lemma~\ref{lem:partial} is replaced by sums over pieces on which the weight is linear, and $I_o$ is not computed: the intervals $[\frac1{m+1},\frac1m]$ with $m<30$ are integrated exactly and the range $d\le K/30$ is bounded trivially. \item The weighted order of Section~\ref{sec:local} is defined algebraically, by $q(\omega(1+u))=\sum_iP_iu^i$ and $v(P_i)\ge n-i$, without the exponential coordinate. Lemma~\ref{lem:V}(a) is proved by a geometric expansion of $\tau^{2k+1}/(1-\tau^{2k+1})$ modulo powers of $\varpi$; parts (b) and (c) are not formalised, since for odd $d$ only the regularity of $\varpi\nu_k$ \cite[\S4]{KriL} is used. \item Theorem~\ref{thm:local} is not stated in general: the half-integer weights are replaced by integer row and column weights in the two applications, and the cap $3K$ is proved without the hypothesis $e\le K$. \item The decay is used in the weaker form $2\sum_{j