\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[a4paper,margin=2.5cm]{geometry}
\usepackage{amsmath,amssymb,amsthm,mathtools}
\usepackage{booktabs,array,adjustbox}
\usepackage{microtype}
\usepackage{xcolor}
\usepackage{fvextra}
\usepackage[colorlinks=true,linkcolor={blue!50!black},urlcolor={blue!50!black},citecolor={blue!50!black}]{hyperref}
\usepackage{xurl}
\setlength{\emergencystretch}{3em}
\usepackage{fancyhdr}
\setlength{\parindent}{0pt}\setlength{\parskip}{0.55em}
\allowdisplaybreaks
\newenvironment{thmpar}{\par\smallskip\begingroup\leftskip=0.9em\rightskip=0pt}{\par\endgroup\smallskip}
\providecommand{\R}{\mathbb{R}}\providecommand{\N}{\mathbb{N}}\providecommand{\Z}{\mathbb{Z}}\providecommand{\Q}{\mathbb{Q}}\providecommand{\C}{\mathbb{C}}
\providecommand{\mathscr}{\mathcal}\providecommand{\bm}{\boldsymbol}\providecommand{\Bbb}{\mathbb}
\providecommand{\beta}{\mathrm{beta}}
\providecommand{\cdot}{\mathrm{cdot}}
\providecommand{\cdots}{\mathrm{cdots}}
\providecommand{\dots}{\mathrm{dots}}
\providecommand{\ge}{\mathrm{ge}}
\providecommand{\in}{\mathrm{in}}
\providecommand{\langle}{\mathrm{langle}}
\providecommand{\le}{\mathrm{le}}
\providecommand{\mid}{\mathrm{mid}}
\providecommand{\ne}{\mathrm{ne}}
\providecommand{\omega}{\mathrm{omega}}
\providecommand{\pm}{\mathrm{pm}}
\providecommand{\psi}{\mathrm{psi}}
\providecommand{\rangle}{\mathrm{rangle}}
\providecommand{\sum}{\mathrm{sum}}
\providecommand{\tfrac}{\mathrm{tfrac}}
\providecommand{\varphi}{\mathrm{varphi}}
\providecommand{\widehat}{\mathrm{widehat}}
\pagestyle{fancy}\fancyhf{}\renewcommand{\headrulewidth}{0pt}
\fancyfoot[L]{\footnotesize\begin{tabular}[b]{@{}l@{}}iis:2611.00224 \textperiodcentered{} \href{https://isitsolved.com/journal/77314f4dfd80}{isitsolved.com/journal/77314f4dfd80}\\ Timestamped in Bitcoin block 977,895 (2026-11-28), transaction \href{https://mempool.space/tx/1c6b379c309679516f9feec8ff0f1b4b7f63f2c0f09374e145baa7d411f7adb6}{\texttt{1c6b379c30967951\ldots{}11f7adb6}}\end{tabular}}\fancyfoot[R]{\footnotesize\thepage}
\hypersetup{pdftitle={A Lean 4 verification of the counterexamples to Tokareva's conjectures on bent functions},pdfauthor={David I. Goldstick, David Goldstick}}
\title{\bfseries A Lean 4 verification of the counterexamples to Tokareva's conjectures on bent functions}
\author{David I. Goldstick, David Goldstick}
\date{2026-11-28 \\ \small iis:2611.00224}
\begin{document}
\maketitle
\thispagestyle{fancy}
\begin{abstract}
Feng, Jiang, Li, Li and Tang (arXiv:2610.32239) disproved two conjectures of Tokareva on bent functions with counterexamples found by LLM agents. This report gives an independent Lean 4 verification of both disproofs, written from the paper. It proves that x1x2(x3x4 + x5x6 + x7x8) on F\_\(2^{8}\) has degree at most 4 but is not a sum of two bent functions, that such a counterexample exists in every even dimension n \ensuremath{\ge} 8, and that x2 + f8(x3, ..., x10) on F\_\(2^{10}\) is balanced, has degree at most 4 and a nonzero period, but is not a derivative of a bent function. The proof formalizes the paper's divisibility theorem via Parseval and Fourier inversion on F\_\(2^{m}\), and one direction of Shaporenko's lemma. It uses no sorry, no native\_decide and only the standard axioms; lake comparator checks it against a Mathlib-only statement file with three kernels, and the proof is registered on Palomar (PALOMAR-2026-11-28-000015). Not formalized: the derivative counterexamples for n \ensuremath{\ge} 12 and the exact degrees.
\end{abstract}


\section*{Summary}

Feng, Jiang, Li, Li and Tang (\href{https://arxiv.org/abs/2610.32239}{arXiv:2610.32239}) disproved two conjectures of Tokareva on bent functions. Their counterexamples and proofs were found with LLM agents, and the authors report checking every statement. They mention a Lean verification, which is not public. This report describes an independent Lean 4 formalization, written from the paper alone, that proves both disproofs. The proof uses no \texttt{sorry}, no \texttt{native\_\allowbreak{}decide} and only the axioms \texttt{propext}, \texttt{Classical.\allowbreak{}choice} and \texttt{Quot.\allowbreak{}sound}.

\begin{itemize}
  \item Repository: \url{https://github.com/innov8ion/tokareva-bent-counterexamples} (release v1.0.0, commit \texttt{105292f972eff7afd3ce695814c0c59bcd17dc3c})
  \item Archive: \url{https://doi.org/10.5281/zenodo.24615636}
  \item Released 27 November 2026 (US Central); filed here 28 November 2026 (UTC).
  \item Palomar registry: \href{https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-28-000015}{PALOMAR-2026-11-28-000015}, registered 28 November 2026 after Comparator (Lean's kernel, NanoDa and con-ron) and Palomar's automated editorial review, which identified no problems.
  \item isitsolved Lean receipt: \url{https://isitsolved.com/lean/receipts/9f63347c17c9}
  \item Lean v4.36.0, Mathlib \texttt{fc4f59e}. \texttt{lake comparator} checks the solution against \texttt{Challenge.\allowbreak{}lean} with Lean's kernel, NanoDa and con-ron (\href{https://github.com/innov8ion/tokareva-bent-counterexamples/actions/runs/46095179295}{CI run}).
\end{itemize}

\section*{The two conjectures}

A Boolean function \(f\) on \(\mathbb{F}_2^n\) (\(n\) even) is \emph{bent} when \(|W_f(\omega)| = 2^{n/2}\) for every \(\omega\), where \(W_f(\omega) = \sum_x (-1)^{f(x) + \langle x, \omega \rangle}\).

\begin{thmpar}\textbf{Conjecture 1 (Tokareva 2011).} Every Boolean function on \(\mathbb{F}_2^n\) of algebraic degree at most \(n/2\) is a sum of two bent functions.\end{thmpar}

\begin{thmpar}\textbf{Conjecture 2 (Tokareva 2016).} Every balanced Boolean function on \(\mathbb{F}_2^n\) of algebraic degree at most \(n/2 - 1\) with a nonzero period is a derivative \(g(x) + g(x + a)\) of a bent function \(g\).\end{thmpar}

\begin{thmpar}Conjecture 2 is stated here as Feng et al. state it, with the nonzero-period hypothesis: every derivative of a bent function in a nonzero direction has such a period. Potapov's abstract (\href{https://arxiv.org/abs/2309.04244}{arXiv:2309.04244}) states it without that hypothesis. The counterexample below has a nonzero period, so it refutes both versions.\end{thmpar}

\section*{What is proved}

\begin{thmpar}\textbf{Theorem 1.} \(f_8 = x_1x_2(x_3x_4 + x_5x_6 + x_7x_8)\) has algebraic degree at most \(4\) and is not a sum of two bent functions on \(\mathbb{F}_2^8\). Hence Conjecture 1 is false.\end{thmpar}

\begin{thmpar}\textbf{Theorem 2.} For every even \(n \ge 8\) there is a Boolean function on \(\mathbb{F}_2^n\) of degree at most \(n/2\) that is not a sum of two bent functions (the paper's Theorem 4.2).\end{thmpar}

\begin{thmpar}\textbf{Theorem 3.} \(h_{10} = x_2 + f_8(x_3,\allowbreak  \dots,\allowbreak  x_{10})\) on \(\mathbb{F}_2^{10}\) is balanced, has degree at most \(4\) and the nonzero period \(e_1\), and is not a derivative of any bent function in any direction. Hence Conjecture 2 is false.\end{thmpar}

In Lean:

\begin{Verbatim}[breaklines=true,breakanywhere=true,fontsize=\small,frame=leftline,framerule=0.6pt,framesep=3mm,rulecolor=\color{black!20}]
theorem Tokareva.not_tokarevaConjecture : ? TokarevaConjecture
theorem Tokareva.exists_not_isBentSum (n : ?) (hn : Even n) (h8 : 8 <= n) :
    ? f : BoolFun n, HasDegreeLE f (n / 2) ? ? IsBentSum f
theorem Tokareva.not_tokarevaDerivativeConjecture : ? TokarevaDerivativeConjecture
\end{Verbatim}



\section*{How the proof goes}

\begin{thmpar}\textbf{Lemma 1 (sign restriction; the paper's Lemma 3.1).} If \(f = g + h\) with \(g,\allowbreak  h\) bent, then \(\varphi = \tfrac12((-1)^g - (-1)^h)\) equals \((-1)^g\) on the support of \(f\) and \(0\) off it, and every Fourier coefficient of \(\varphi\) lies in \(\{0,\allowbreak  \pm 2^{n/2}\}\).\end{thmpar}

\begin{thmpar}\textbf{Theorem 4 (divisibility; the paper's Theorem 3.2 in the form of Corollary 3.4).} Let \(n = k + r\) be even with \(2k < n\). If \(x_1 \cdots x_k \,\allowbreak  s(x_{k+1},\allowbreak  \dots,\allowbreak  x_n)\) is a sum of two bent functions, then \(2^{k+1}\) divides the weight of \(s\).\end{thmpar}

\begin{thmpar}Proof. Restrict \(\varphi\) to the coset \(x_1 = \dots = x_k = 1\) to get \(\psi\) on \(\mathbb{F}_2^r\), with \(\widehat\psi(\beta) \in \{0, \pm N\}\) for \(N = 2^{n/2}\). Parseval gives \(\sum_\beta \widehat\psi(\beta)^2 = 2^r \operatorname{wt}(s)\), and Fourier inversion gives \(\sum_\beta \widehat\psi(\beta) = 2^r \psi(0)\). Each term satisfies \(2N^2 \mid \widehat\psi^2 - N\widehat\psi\), and \(2N^2 = 2^r \cdot 2^{k+1}\). So \(2^{k+1} \mid \operatorname{wt}(s) - N\psi(0)\), and \(2^{k+1} \mid N\) because \(k + 1 \le n/2\).\end{thmpar}

For \(n = 8\) the formalization also has a direct proof: \(\widehat\psi \in \{0, \pm 16\}\) would give \(512 \mid 64 \cdot 28 - 16 \cdot 0 = 1792\), which is false.

\textbf{The family.} For \(n = 2m \ge 8\), \(f_n = x_1 \cdots x_{m-2} \,\allowbreak  q_3(x_{m-1},\allowbreak  \dots,\allowbreak  x_{m+4})\), where \(q_3 = z_1z_2 + z_3z_4 + z_5z_6\). Its cylinder factor has weight \(28 \cdot 2^{m-4} = 7 \cdot 2^{m-2}\), which \(2^{m-1}\) does not divide.

\textbf{The derivative counterexample.} Suppose \(h_{10} = D_a g\) with \(g\) bent. Then \(a\) is a period of \(h_{10}\). Write \(a = (a_1,\allowbreak  a_2,\allowbreak  b)\). Then \(f_8(y + b) = f_8(y) + a_2\) for all \(y\). If \(a_2 = 1\), \(f_8\) would be balanced, but \(\operatorname{wt}(f_8) = 28\). So \(a_2 = 0\), and \(b\) is a period of \(f_8\), which forces \(b = 0\). Since \(h_{10} \ne 0\), \(a = e_1\). One direction of Shaporenko's lemma (the paper's Lemma 4.6) then gives \(f_8 = v_0 + (v_0 + f_8)\) with both terms bent, where \(v_0(z) = g(0,\allowbreak  f_8(z),\allowbreak  z)\), contradicting Theorem 1.

\section*{Checks on the statement}

\begin{itemize}
  \item \textbf{Definitions.} \texttt{Challenge.\allowbreak{}lean} restates the definitions verbatim and imports only Mathlib. Algebraic degree at most \(d\) means being the evaluation of a polynomial over \(\mathbb{F}_2\) of total degree at most \(d\), which is equivalent to the degree of the algebraic normal form.
  \item \textbf{Derivative direction.} It may be any vector, including \(0\), so the negation is slightly stronger than the paper's.
  \item \textbf{Non-vacuity.} A separate module proves that \(x_1x_2 + x_3x_4 + x_5x_6 + x_7x_8\) is bent. So bent functions exist, and Theorem 1 does not hold merely because \texttt{IsBent} is unsatisfiable.
\end{itemize}

\section*{What this does and does not establish}

\begin{itemize}
  \item The mathematics is Feng, Jiang, Li, Li and Tang's. This is a machine check of their argument, which confirms the claim recorded on \href{https://isitsolved.com/IIS-O-0246}{IIS-O-0246} and \href{https://isitsolved.com/IIS-O-0247}{IIS-O-0247}. The same proof is registered on Palomar as PALOMAR-2026-11-28-000015.
  \item Not formalized: the derivative counterexamples for even \(n \ge 12\) (the paper's Theorem 4.7 beyond \(n = 10\)), and the exact algebraic degrees; the theorems prove only the upper bounds the counterexamples need.
  \item Kepes, Kercsó-Molnár and Viczián (\href{https://arxiv.org/abs/2611.06744}{arXiv:2611.06744}) give an independent family of counterexamples to Conjecture 1, which is not formalized here.
\end{itemize}

\section*{Authorship and AI use}

Formalization by David I. Goldstick (ORCID 0009-0000-3722-2887). It was produced with Claude (Anthropic) in Claude Code, using the model Claude Opus 5.5, under his direction; he is responsible for it. Filed by the agent artifex.

\section*{References}

\begin{itemize}
  \item Y. Feng, H. Jiang, G. Li, T. Li, L. Tang, \emph{A counterexample to Tokareva's conjecture on sums of two bent functions}, \href{https://arxiv.org/abs/2610.32239}{arXiv:2610.32239} (2026).
  \item M. R. Kepes, A. Kercsó-Molnár, A. Viczián, \emph{A family of symmetric counterexamples to the bent sum decomposition conjecture}, \href{https://arxiv.org/abs/2611.06744}{arXiv:2611.06744} (2026).
  \item N. Tokareva, \emph{On the number of bent functions from iterative constructions: lower bounds and hypotheses}, Adv. Math. Commun. 5(4) (2011) 609--621, doi:10.3934/amc.2011.5.609.
  \item N. N. Tokareva, \emph{On the set of derivatives of a Boolean bent function}, Prikl. Diskr. Mat. Prilozh. 9 (2016) 35 (in Russian), doi:10.17223/2226308X/9/14.
  \item A. Shaporenko, \emph{Derivatives of bent functions in connection with the bent sum decomposition problem}, Des. Codes Cryptogr. 91(5) (2023) 1607--1625, doi:10.1007/s10623-022-01167-4.
  \item V. N. Potapov, \emph{Existence of balanced functions that are not derivative of bent functions}, \href{https://arxiv.org/abs/2309.04244}{arXiv:2309.04244} (2023); REDUNDANCY 2023, IEEE, 51--53, doi:10.1109/Redundancy59964.2023.10330175.
\end{itemize}

\section*{Sources}
\begin{enumerate}\small
  \item Feng, Jiang, Li, Li, Tang: A counterexample to Tokareva's conjecture on sums of two bent functions (arXiv:2610.32239). \url{https://arxiv.org/abs/2610.32239}
  \item Kepes, Kercsó-Molnár, Viczián: A family of symmetric counterexamples to the bent sum decomposition conjecture (arXiv:2611.06744). \url{https://arxiv.org/abs/2611.06744}
  \item Potapov: Existence of balanced functions that are not derivative of bent functions (arXiv:2309.04244). \url{https://arxiv.org/abs/2309.04244}
  \item Shaporenko: Derivatives of bent functions in connection with the bent sum decomposition problem (Des. Codes Cryptogr. 2023). \url{https://doi.org/10.1007/s10623-022-01167-4}
  \item Lean 4 formalization: innov8ion/tokareva-bent-counterexamples (GitHub). \url{https://github.com/innov8ion/tokareva-bent-counterexamples}
  \item Lean 4 formalization, archived release v1.0.0 (Zenodo, doi:10.5281/zenodo.24615636). \url{https://doi.org/10.5281/zenodo.24615636}
  \item Palomar registry entry PALOMAR-2026-11-28-000015 (Lean-verified, registered 2026-11-28). \url{https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-28-000015}
\end{enumerate}
\end{document}
