% Appendix A. The formal companion of AHM III. \section{The formal companion}\label{app:formal} \subsection{Scope}\label{ss:formal-scope} The formal companion of this paper consists of two Lean~4 modules, \code{MUTKernel} and \code{MUTArthur}, each importing only Mathlib \cite{mathlib2020}, with declarations in the namespaces \code{MUT.Kernel} and \code{MUT.Arthur}. The paper also cites five modules of the companion of AHM~II \cite{Liu2026AHMII}, with namespaces \code{SC2.RamanujanHodge}, \code{SC2.S5}, \code{SC2.Universe}, \code{SC2.SpinCert} and \code{SC2.Deficit}; they are compiled again, without change, with those of this paper. The toolchain is \code{leanprover/lean4:v4.36.0-rc2} with the Mathlib of the companions of the first two papers. The Lean statements formalize linear algebra and finite combinatorics. The geometric inputs, namely the spanning of Tate classes by cycles, the intersection formulas of Tian--Xiao and Helm--Tian--Xiao, the Hasse--Minkowski theorem and its integral form, Milne's category of Weil numbers and its polarization, and the comparison theorems, enter as hypotheses or are cited. For every statement whose finite core is verified, the declarations on which it rests are listed in \S\ref{ss:formal-anchors}. Not formalized: the Laurent identity for general $g$ (\cref{thm:laurent}), whose proof uses the theorem of turning tangents; the classification of quadratic and hermitian forms over $\Q$ and $\Q_v$; the integral local--global principle; Milne's construction of the category of Weil numbers; the theorem of Honda and Tate; and the cited theorems of \cref{app:inputs}. \subsection{Verification record}\label{ss:formal-record} Each of the seven files is compiled with \code{lake}~\code{env}~\code{lean} against this toolchain. The verification requires that no file has an error or uses \code{sorry}, and that the \code{#print}~\code{axioms} line of every theorem names no axiom other than \code{propext}, \code{Classical.choice} and \code{Quot.sound}. In the two modules of this paper every theorem carries such a line; for the five modules of AHM~II the axioms of every theorem are determined in the same way, from an unmodified copy of each file. The record of the verification and the list of anchors are part of the deposit. \subsection{Anchors}\label{ss:formal-anchors} The anchors of the statements are collected in this appendix rather than in the body: for every statement whose finite core is verified, \cref{tab:anchors-a,tab:anchors-b} give the declarations of the companion on which it rests, grouped by module, and the verification checks each of them against the declarations of the companion. \input{generated/lean-anchors.tex}