% =========================================================================== \section{Formal verification}\label{sec:lean} % =========================================================================== Theorems~\ref{thm:A} and~\ref{thm:B} and Corollaries~\ref{cor:C} and~\ref{cor:D} have been formalised in Lean~4 with Mathlib. The code is available at \url{https://github.com/telaviv/log-base-b-irrationality-exponent} (commit \leancommit). For example, Theorem~\ref{thm:A} is formalised as \begin{center} \small \begin{tabular}{l} \texttt{theorem MuBLog.theoremA :~StatementA}, \quad where \texttt{StatementA} is\\[2pt] $\forall$\,\texttt{r :~}$\QQ$\texttt{, 0 < r }$\to$\texttt{ r }$\ne$\texttt{ 1 }$\to$\ $\forall$\,\texttt{b :~}$\NN$% \texttt{, 2 }$\le$\texttt{ b }$\to$\ $\forall$\,$\nu$\texttt{ :~}$\RR$\texttt{, 1 < }$\nu$\ $\to$\\ \texttt{\ \ \char`\{np :~}$\NN\times\ZZ$\texttt{ | |Real.log r - np.2 / b\char`\^np.1|}\\ \texttt{\ \ \ \ \ \ }$\le$\texttt{ b\char`\^(-(}$\nu$\texttt{ * np.1))\char`\}.Finite} \end{tabular} \end{center} with the obvious casts to $\RR$. The statements are written with Mathlib's definitions (\texttt{Real.log}, \texttt{Irrational}, \texttt{Real.convergent}, \texttt{Nat.primeFactors}) and three short local definitions: the exponent $\mu_b$ as a supremum, the digit $d_k=\lfloor b^kx\rfloor-b\lfloor b^{k-1}x\rfloor$ for $k\ge1$, and the greatest prime factor. The formal digit function is shown to satisfy $0\le d_k0$. So the interpolation theorem is part of the kernel-checked proof, and Theorem~\ref{thm:A} does not depend on the proof in \cite{LJZ}. \begin{center} \small \begin{tabular}{>{\raggedright\arraybackslash}p{0.24\textwidth}>{\raggedright\arraybackslash}p{0.68\textwidth}} \toprule Here & Lean (namespace \texttt{MuBLog} unless a source is given)\\ \midrule Theorem~\ref{thm:interp} & \lean{OAI.PiExponent.DistinctMultiplicative.separated_distinct_multiplicative_interpolation} \cite{RLog}; the proof calls \lean{Degree.Weighted.eventual_interpolation_of_separated_weights} there\\ Lemma~\ref{lem:trunc} & \lean{Param.cofinal_packets} (interpolation at the centres $(r^j,jp_i/q_i)$), with the truncation and the nonzero minor from \lean{IrrationalityReview.RationalLogMatrixBridge.rationalBase_nonzero_centeredSelectedMinor} \cite{RLog}\\ \eqref{eq:cleared}, Lemma~\ref{lem:rowdec} & \lean{Arith.cleared_entry_expansion}, \lean{Arith.clearedMatrix_row_decomposition}\\ Lemma~\ref{lem:yu} & \lean{Yu.Determinant.row_decomposition_dvd_det}\\ Proposition~\ref{prop:arith} & \lean{Arith.arith}\\ Proposition~\ref{prop:analytic} & \lean{RationalLogReview.Analytic.actual_minor_analytic_bound} \cite{RLog}\\ Section~\ref{sec:proof} & \lean{Param.no_muData}, \lean{Param.log_power_bound_of_arith}\\ Theorem~\ref{thm:A} & \lean{theoremA}, \lean{theoremA_exponent}\\ Lemma~\ref{lem:cover} & \lean{Cor.covering}\\ Theorem~\ref{thm:B} & \lean{theoremB}, \lean{theoremB_irrational}, \lean{theoremB_exponent}, \lean{theoremB_linear}, \lean{theoremB_linear_reduction}\\ Corollary~\ref{cor:C} & \lean{corollaryC}, \lean{corollaryC_convergents}\\ Corollary~\ref{cor:D} & \lean{corollaryD_runs}, \lean{corollaryD_changes}, \lean{corollaryD_other}, \lean{corollaryD_binary}\\ \bottomrule \end{tabular} \end{center} The formal proof differs from the text in the following points. None of them changes a statement of Section~\ref{sec:intro}. \begin{itemize} \item \emph{Parameters.} Instead of Lemma~\ref{lem:params} and the choices of Section~\ref{sec:proof}, the formal proof takes the parameters of \cite{RLog} at the exponent $\nu+1$, as Yu's Lean code does for $\pi$. The gap of the $\mu=2$ argument at $\nu+1$, namely $(\nu+1)(A(1-\eta)-\theta)-(1-\theta)$, equals the gap $g$ of \eqref{eq:gap}. The label bound \eqref{eq:labelcap} is derived from the condition that the collision rate exceeds $1$, not from the separate condition $2(m+1)KA^m<\eta/2$. \item \emph{Denominator.} The clearing factor is $\prod_i\operatorname{lcm}(1,\dots,T_i)^{\lfloor H/w_i\rfloor}$, that of \cite{RLog}, instead of $D_H$. This adds $\Lambda\sum_i1/w_i$ to $\Ear$, which tends to $0$ with $w_*$. \item \emph{Analytic constants.} The radius and the error terms are those of \cite{RLog} (for instance the radius $(4(|\log r|+1)+1)K$ and $\log(2K)$ in place of $\log K$), not those of Proposition~\ref{prop:analytic}. Only their limits matter. \item \emph{Form of Theorem~\ref{thm:A}.} It is first proved in the form ``for all large $n$ and all $p$, $|\log r-p/b^n|>b^{-n\nu}$'', then converted into the finiteness and exponent forms. \item \emph{Theorem~\ref{thm:B}.} The passage from $\log s$ to $u\log s+v$ is done by an affine transfer of the smooth bound, equivalent to Step~2 of the proof. \item \emph{Slight strengthenings.} In the formal Theorem~\ref{thm:B} the set $S$ is any finite set of natural numbers, and the formal Corollary~\ref{cor:D} allows every integer $d$. \end{itemize} The following are not formalised: the expression of $\mu_b(x)$ by a limsup in Section~\ref{sec:intro} (the formal $\mu_b$ is the supremum); the base-$2$ sentence of Corollary~\ref{cor:D}(b) for general $x=u\log s+v$, which is formalised for $x=\log s$ (\lean{corollaryD_binary}) and otherwise follows at once from \lean{corollaryD_other} and $0\le d_k